/* ASK Studio. Direction : sobriété type Apple. Noir et blanc uniquement, sections alternées,
   la vidéo d'abord, très peu de texte, grands titres centrés, boutons en pilule, médias arrondis.
   Typos : Akira Expanded (grands titres) + Coolvetica (tout le reste). Fichiers dans /fonts. */
@font-face {
  font-family: "Akira Expanded";
  src: url("fonts/akira-expanded.woff2") format("woff2"), url("fonts/akira-expanded.otf") format("opentype"), url("fonts/akira-expanded.ttf") format("truetype");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Coolvetica";
  src: url("fonts/coolvetica.woff2") format("woff2"), url("fonts/coolvetica.otf") format("opentype"), url("fonts/coolvetica.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --ink: #1d1d1f;        /* texte sur fond blanc */
  --mist: #f5f5f7;       /* cartes sur fond blanc */
  --grey: #86868b;       /* texte secondaire */
  --line: #2a2a2c;       /* filets sur fond noir */

  --f-display: "Akira Expanded", "Archivo", "Arial Black", sans-serif;
  --f-body: "Coolvetica", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --radius: 22px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1.0625rem/1.55 var(--f-body);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; line-height: 1.08; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(1.5rem, 3.8vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.8rem); }
h3 { font: 400 1.3rem/1.2 var(--f-body); margin: 0; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--grey); line-height: 1.4; max-width: 34ch; margin-inline: auto; }

/* ---------- Boutons pilule ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 980px; font: 400 1rem/1 var(--f-body); border: 1px solid transparent; cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { opacity: .85; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.link-more { font-size: 1.05rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-more:hover { opacity: .7; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: center; align-items: center; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0,0,0,.72);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; }
.logo { display: block; line-height: 0; }
.logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { font-size: 0.9rem; color: rgba(255,255,255,.8); transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-links .btn { color: var(--black); padding: 8px 16px; font-size: 0.85rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px 0; cursor: pointer; font-size: 0.95rem; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; background: var(--black); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.4rem; color: var(--white); }
  .nav-links .btn { display: inline-flex; margin-top: 12px; font-size: 1rem; padding: 12px 22px; }
}

/* ---------- Showreel ---------- */
.reel-stage { background: var(--black); }
.reel {
  position: relative;
  width: 100%;
  height: calc(100svh - 52px);
  min-height: 420px;
  background: var(--black);
  overflow: hidden;
}
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .reel { height: 74svh; min-height: 360px; }
}
.sound-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  padding: 9px 16px; border-radius: 980px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.18); color: var(--white); font-size: 0.85rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .2s, color .2s;
}
.sound-toggle:hover { background: rgba(255,255,255,.3); }
.sound-toggle[aria-pressed="true"] { background: var(--white); color: var(--black); }
@media (max-width: 640px) { .sound-toggle { right: 10px; bottom: 10px; padding: 7px 12px; font-size: 0.78rem; } }

.intro { text-align: center; padding-block: clamp(40px, 6vw, 72px) clamp(40px, 5vw, 64px); display: grid; gap: 22px; justify-items: center; }

/* ---------- Carrousel de logos ---------- */
.trust { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 24px; }
.trust-title { text-align: center; color: var(--grey); font-size: 0.85rem; letter-spacing: .14em; text-transform: uppercase; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: defile 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); list-style: none; margin: 0; padding: 0 clamp(24px, 3.5vw, 48px); }
.marquee li { flex: none; display: flex; align-items: center; }
.marquee img { width: auto; height: var(--h, 40px); opacity: .9; }
.marquee .sil { filter: brightness(0) invert(1); }
.marquee .gray { filter: grayscale(1) brightness(1.45); }
.trust .actions { margin-top: 8px; }
@keyframes defile { to { transform: translateX(var(--shift, -50%)); } }
@media (max-width: 600px) { .marquee img { height: calc(var(--h, 40px) * .78); } .marquee-track { animation-duration: 24s; } }

/* ---------- Avis ---------- */
.reviews { text-align: center; display: grid; gap: 22px; justify-items: center; }
.stars { font-size: 1.6rem; letter-spacing: .2em; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 60px; }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section.light { background: var(--white); color: var(--ink); }
.section.light .lead, .section.light .muted { color: #6e6e73; }
.head { text-align: center; display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.muted { color: var(--grey); }

/* ---------- Vignettes vidéo ---------- */
.tile { display: grid; gap: 14px; min-width: 0; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; text-align: left; }
.tile .media { position: relative; overflow: hidden; border-radius: var(--radius); background: #111; aspect-ratio: 16 / 9; }
.tile.portrait .media { aspect-ratio: 9 / 16; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.04); }
.tile .media::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23000'/%3E%3C/svg%3E") 54% 50% / 26px no-repeat;
  transition: transform .3s;
}
.tile.portrait .media::after { width: 52px; height: 52px; margin: -26px 0 0 -26px; background-size: 22px; }
.tile:hover .media::after { transform: scale(1.08); }
.tile .caption { display: grid; gap: 2px; }
.tile .caption span { color: var(--grey); font-size: 0.95rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-rs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-rs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.block { margin-top: clamp(56px, 7vw, 88px); }
#realisations { padding-top: clamp(40px, 5vw, 64px); }
.block .head { margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { background: var(--mist); border-radius: var(--radius); padding: clamp(26px, 3vw, 36px); display: grid; gap: 8px; align-content: start; min-width: 0; }
.service p { color: #6e6e73; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.studio-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #111; filter: grayscale(1); }
.studio-copy { display: grid; gap: 24px; min-width: 0; }
.studio-copy .lead { margin: 0; color: rgba(255,255,255,.75); max-width: 30ch; }
.signature { display: flex; gap: 14px; align-items: center; }
.signature img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #111; filter: grayscale(1); }
.signature span { display: block; color: var(--grey); font-size: 0.95rem; }
@media (max-width: 820px) { .studio { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; border-top: 1px solid #d2d2d7; }
.faq details { border-bottom: 1px solid #d2d2d7; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.8rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: #6e6e73; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.contact-lines a { overflow-wrap: anywhere; }
.contact-lines a:hover { opacity: .7; }
form { max-width: 640px; margin: clamp(40px, 6vw, 64px) auto 0; display: grid; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
input, textarea {
  font: 400 1.05rem/1.4 var(--f-body); color: var(--white); width: 100%;
  background: #111; border: 1px solid #333; border-radius: 14px; padding: 16px 18px;
}
input::placeholder, textarea::placeholder { color: #6e6e73; }
input:focus, textarea:focus { outline: none; border-color: var(--white); }
textarea { min-height: 140px; resize: vertical; }
.hidden-field { display: none; }
form .actions { margin-top: 6px; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 36px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; color: var(--grey); font-size: 0.85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a:hover { color: var(--white); }

/* ---------- Lecteur plein écran ---------- */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lb-frame { width: min(92vw, calc(84svh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.lb-frame.portrait { width: min(92vw, calc(84svh * 9 / 16)); aspect-ratio: 9 / 16; }
.lb-frame iframe, .lb-frame video { width: 100%; height: 100%; border: 0; display: block; }
.lb-close {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); color: var(--white); font-size: 1.6rem; line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-note { display: grid; place-content: center; gap: 12px; height: 100%; padding: 24px; text-align: center; color: var(--grey); }
.lb-note strong { color: var(--white); font-weight: 400; font-size: 1.2rem; }

/* ---------- Pages simples (mentions légales, merci) ---------- */
.page { padding-block: clamp(56px, 8vw, 110px); }
.page .wrap { display: grid; gap: 24px; max-width: 780px; }
.page h1 { font-size: clamp(1.5rem, 4.5vw, 2.6rem); }
.page h2 { font-size: 1.05rem; margin-top: 16px; }
.page p, .page li { color: var(--grey); }
.todo { color: var(--white); background: #333; padding: 0 4px; border-radius: 4px; }
.tc { font-size: 0.85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.tc b { color: var(--white); font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
