/* =====================================================================
   CLICK & PLAY — MAQUETTE INDEX V2 (desktop)
   Concept : un "studio de nuit". Fond d'encre profond, la couleur de
   marque n'existe que sous forme de lumière ambiante qui change
   d'univers en univers ; typographie large et cinématographique.
   ===================================================================== */

@property --amb-a { syntax: '<color>'; inherits: true; initial-value: #2a1466; }
@property --amb-b { syntax: '<color>'; inherits: true; initial-value: #6b1240; }
@property --lx { syntax: '<percentage>'; inherits: true; initial-value: 62%; }
@property --ly { syntax: '<percentage>'; inherits: true; initial-value: 40%; }

:root {
  /* Couleurs */
  --ink: #08070b;          /* noir profond, légère teinte violette */
  --ink-2: #0f0d14;        /* anthracite */
  --ink-3: #17141d;
  --paper: #eeebe5;        /* blanc cassé */
  --mute: #9a96a3;         /* textes secondaires */
  --dim: #5f5b68;
  --line: rgba(238, 235, 229, .1);
  --violet: #6b2bff;
  --magenta: #f2296f;
  --orange: #ff8f1a;
  --grad: linear-gradient(100deg, #6b2bff 0%, #f2296f 55%, #ff8f1a 100%);

  /* Typographie */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rythme */
  --gutter: max(16px, 5vw);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--magenta); color: #fff; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 16px; }

.wrap { max-width: 1480px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ex-head, .services, .u-side, .work-head > div, .about-text, .finale-inner { container-type: inline-size; }

/* ---------- Lumière ambiante + grain (fixes) ---------- */
.ambient {
  position: fixed; inset: -10vh -10vw; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42vw 36vw at 82% 8%, color-mix(in srgb, var(--amb-a) 34%, transparent), transparent 70%),
    radial-gradient(38vw 30vw at 6% 96%, color-mix(in srgb, var(--amb-b) 22%, transparent), transparent 70%),
    radial-gradient(120vw 80vh at 50% 50%, #0c0a11, var(--ink) 70%);
  transition: --amb-a 1.4s var(--ease-io), --amb-b 1.4s var(--ease-io);
}
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mute); display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); opacity: .9; }
.lead { font-size: 19px; line-height: 1.6; color: var(--mute); max-width: 34em; }

.display-xl, .display-l, .display-s, .display-fin, .hero-title, .world-title, .m-a, .m-b {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-stretch: 108%; letter-spacing: -.015em; line-height: .92; text-wrap: balance;
}
.display-l { font-size: clamp(44px, 6.2vw, 108px); }
.work-head > div { flex: 1 1 auto; min-width: 0; }
.work-head .display-l { font-size: clamp(44px, 8.4cqi, 96px); }
.display-xl { font-size: clamp(64px, 11vw, 200px); line-height: .84; }
.display-s { font-size: clamp(30px, 3.2vw, 52px); font-weight: 700; line-height: 1; }
em, .em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none;
  letter-spacing: -.01em; font-stretch: 100%;
}
/* Le seul texte "éclairé" de la page : les mots en italique des grands titres */
.hero-title em, .display-l em, .display-xl em, .display-fin em, .m-b em {
  background: linear-gradient(100deg, var(--paper) 10%, #ffc9a3 45%, #f2296f 78%, #8f5bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}

/* Lignes masquées (révélation) */
/* LOT 10B (A-04) : le masque des lignes révélées n'est plus « overflow: hidden » (qui coupait à la boîte de la ligne : accent du
   « É » des capitales, jambages des italiques, contour de « LAVANRY ») mais un découpage clip-path élargi de .24em vers le
   haut, de .08em vers le bas et de .08em sur les côtés. La mise en page est strictement inchangée (mêmes marges et marges
   intérieures).
   Tant que le texte attend sous la ligne (révélation pas encore faite, ouverture du Hero en cours), le bas du masque reste
   exactement celui d'avant (bord de la boîte) : le haut des accents de la ligne en attente ne peut pas dépasser, quelle que
   soit la police (vérifié par outils/revelation.js et outils/ouverture-titre.js, police de secours comprise). Le bas ne
   s'élargit qu'une fois le mouvement terminé (1,4 s après la révélation, ou à la fin de l'ouverture) : la révélation se
   déroule donc à l'identique. */
.line { display: block; overflow: visible; clip-path: inset(-.24em -.08em -.08em -.08em); padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-reveal="lines"]:not(.in) .line, .js .hero:not(.done) .line { clip-path: inset(-.24em -.08em 0 -.08em); }
.js [data-reveal="lines"].in .line { transition: clip-path 0s 1.4s; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal="lines"].in .line { transition-delay: 0s; } }
.line > span { display: block; }

/* Liens fléchés */
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; letter-spacing: .01em;
  padding-block: 6px; position: relative; color: var(--paper);
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.link-arrow::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 1;
}
.link-arrow span { transition: transform .5s var(--ease); }
.link-arrow:hover::before { transform: scaleX(1); }
.link-arrow:hover span { transform: translateX(6px); }

/* ======================= HEADER ======================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 28px var(--gutter);
  transition: padding .5s var(--ease), background-color .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 14px;
  background: rgba(10, 9, 13, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: auto; }
.brand-word {
  font-family: var(--f-display); font-weight: 700; font-stretch: 118%; font-size: 13px;
  letter-spacing: .2em; text-transform: uppercase;
}
.brand-word b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; gap: 40px; }
.main-nav a { font-size: 14px; color: var(--mute); position: relative; padding-block: 6px; transition: color .3s; }
.main-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--paper);
  transition: left .45s var(--ease), right .45s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--paper); }
.main-nav a:hover::after, .main-nav a.is-active::after { left: 0; right: 0; }

.btn-ghost {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(238, 235, 229, .22);
  transition: border-color .4s, background-color .4s, box-shadow .5s;
}
.btn-ghost .arr { transition: transform .45s var(--ease); }
.btn-ghost:hover {
  border-color: rgba(242, 41, 111, .7); background: rgba(242, 41, 111, .06);
  box-shadow: 0 0 32px -6px rgba(242, 41, 111, .45), inset 0 0 18px -10px rgba(255, 143, 26, .6);
}
.btn-ghost:hover .arr { transform: translate(3px, -3px); }
/* LOT 10C — lien « Contact » de l'en-tête mobile. Affiché seulement sous 561 px, là où « Parlons de votre projet » est masqué :
   jamais les deux à la fois, rien sur ordinateur ni tablette. Lien typographique (même famille, même graisse et même couleur
   que les liens fléchés), souligné d'un filet fixe au dégradé Click & Play, sans animation. Zone tactile de 44 px de haut
   au moins, obtenue par une marge intérieure compensée : la hauteur de l'en-tête et la place du logo ne changent pas. Marge
   intérieure latérale limitée à 4 px : la zone tactile reste à 12 px au moins du bord de l'écran, même à 320 px. */
.nav-contact { display: none; position: relative; align-items: center; min-height: 44px; padding: 10px 4px; margin: -10px -4px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em; line-height: 24px; color: var(--paper); }
.nav-contact::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 9px; height: 1px; background: var(--grad); opacity: .85; }
.nav-contact:focus-visible { outline-offset: 0; border-radius: 6px; }
/* pendant l'ouverture, l'en-tête est invisible : le lien n'y est pas non plus cliquable (un toucher dans le coin ne doit pas
   quitter la page sans que le lien ait été vu). Il réapparaît avec l'en-tête, dans le même fondu. */
.js .site-header.pre .nav-contact { visibility: hidden; }

/* ======================= HERO ======================= */
.hero { position: relative; height: 100vh; min-height: 680px; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: -1; transform-origin: 60% 40%; will-change: transform, opacity; }
.layer { position: absolute; inset: -4%; will-change: transform; }
.frag { position: absolute; }
.f-smoke {
  right: -6%; top: -10%; width: 64%; opacity: .55; filter: brightness(.5) saturate(1.5) contrast(1.15) blur(1px);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
}
.f-moon {
  left: 8%; top: 6%; width: 24%; opacity: .2; filter: blur(2.5px) saturate(.7);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
}
.f-fire {
  left: -6%; bottom: -8%; width: 42%; opacity: .3; filter: blur(2px);
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
}
.f-code {
  right: 9%; bottom: 10%; width: 28%; opacity: .26; filter: blur(.8px);
  transform: perspective(900px) rotateY(-14deg) rotateZ(-3deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.rings { position: absolute; right: 4%; top: 6%; width: 52vw; max-width: 900px; opacity: .5; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.f-phone {
  left: 56%; top: 54%; width: 9.5vw; aspect-ratio: 423 / 939; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(238, 235, 229, .16); opacity: .5; transform: rotate(9deg); filter: blur(.4px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(242, 41, 111, .35);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
}
.f-phone img { width: 100%; height: 100%; object-fit: cover; }
.ui { position: absolute; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(238, 235, 229, .5); }
.ui-night { left: 9%; top: 34%; display: flex; align-items: center; gap: 10px; }
.ui-night i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ui-rank {
  right: 12%; top: 26%; display: grid; gap: 4px; padding: 14px 18px; border-left: 1px solid rgba(238, 235, 229, .2);
}
.ui-rank strong { font-family: var(--f-display); font-stretch: 110%; font-size: 30px; letter-spacing: 0; color: rgba(238, 235, 229, .75); font-weight: 700; }
.ui-rank strong em { font-family: var(--f-mono); font-style: normal; font-size: 11px; color: var(--dim); margin-left: 4px; }
.ui-rank .up { color: #ffb37a; }
.ui-timer { right: 33%; bottom: 17%; display: grid; gap: 2px; }
.ui-timer strong { font-size: 26px; font-weight: 400; letter-spacing: .06em; color: rgba(238, 235, 229, .6); }
.ui-wave { left: 30%; bottom: 13%; display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.ui-wave b { width: 2px; background: rgba(238, 235, 229, .4); height: 30%; animation: eq 1.1s ease-in-out infinite alternate; }
.ui-wave b:nth-child(3n) { animation-duration: .8s; }
.ui-wave b:nth-child(4n+1) { animation-duration: 1.4s; animation-delay: -.3s; }
.ui-wave b:nth-child(5n+2) { animation-duration: .95s; animation-delay: -.6s; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }

.halo {
  position: absolute; width: 70vmax; height: 70vmax; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(107, 43, 255, .26), rgba(242, 41, 111, .12) 45%, transparent 75%);
  transform: translate3d(calc(var(--hx, 60vw) - 35vmax), calc(var(--hy, 40vh) - 35vmax), 0);
  mix-blend-mode: screen; pointer-events: none;
}
.vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 11, .55) 0%, transparent 22%, transparent 55%, rgba(8, 7, 11, .95) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(8, 7, 11, .85) 100%);
}

/* Séquence d'ouverture */
.intro { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.intro > * { grid-area: 1 / 1; opacity: 0; }
.intro-mark { width: 120px; filter: drop-shadow(0 0 40px rgba(242, 41, 111, .5)); }
.intro-word {
  font-family: var(--f-display); font-weight: 700; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 56px); letter-spacing: .3em; padding-left: .3em;
}
.intro-word.w3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-main { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18vh; will-change: transform, opacity; }
.hero-eyebrow { margin-bottom: 34px; }
.hero-title { font-size: clamp(56px, 7.6vw, 140px); line-height: .9; font-stretch: 112%; }
.hero-title em { font-size: 1.08em; letter-spacing: -.02em; }
.hero-sub {
  margin-top: 36px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.hero-sub i { font-style: normal; color: var(--magenta); margin-inline: 10px; }
.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
/* LOT 10B (AC-01) : « Conçu, développé et animé en Normandie » passe de --dim (#5f5b68, 2,97:1 au pire) à #7f7b88
   (4,75:1 au pire, sur fond réel mesuré pendant la lumière du CP, l'apparition et sous le halo du pointeur). Même teinte,
   nettement sous --mute (#9a96a3, « Découvrir ») : la hiérarchie est conservée. */
.hero-foot p { color: #7f7b88; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; color: var(--mute); }
.scroll-cue span { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--paper); animation: drip 3.6s var(--ease-io) 1s infinite; }
@keyframes drip { to { top: 100%; } }

/* États de la séquence (uniquement avec JS) */
.js .hero:not(.done) .scene,
.js .hero:not(.done) .hero-eyebrow,
.js .hero:not(.done) .hero-sub,
.js .hero:not(.done) .hero-foot,
.js .hero:not(.done) .line > span { opacity: 0; }
.js .site-header.pre { opacity: 0; }
.site-header { transition: opacity 1s var(--ease), padding .5s var(--ease), background-color .5s, border-color .5s; }

.hero.play .scene { animation: sceneIn 3s var(--ease) .6s both; }
.hero.play .intro-mark { animation: markIn .95s var(--ease-io) .08s both; }
.hero.play .w1 { animation: wordFlash .8s var(--ease-io) .78s both; }
.hero.play .w2 { animation: wordFlash .8s var(--ease-io) 1.62s both; }
.hero.play .w3 { animation: wordFlashLast .95s var(--ease-io) 2.46s both; }
.hero.play .hero-title .line:nth-child(1) > span { animation: rise 1s var(--ease) 3.6s both; }
.hero.play .hero-title .line:nth-child(2) > span { animation: rise 1s var(--ease) 3.7s both; }
.hero.play .hero-eyebrow { animation: fadeUp .9s var(--ease) 3.85s both; }
.hero.play .hero-sub { animation: fadeUp .9s var(--ease) 4s both; }
.hero.play .hero-foot { animation: fadeUp 1.2s var(--ease) 4.5s both; }

@keyframes sceneIn { from { opacity: 0; transform: scale(1.08); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes markIn {
  0% { opacity: 0; transform: scale(.86); filter: blur(10px) drop-shadow(0 0 0 transparent); }
  40% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 40px rgba(242, 41, 111, .5)); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.06); filter: blur(6px); }
}
@keyframes wordFlash {
  0% { opacity: 0; transform: translateY(12px) scale(.98); filter: blur(10px); letter-spacing: .4em; }
  27% { opacity: 1; transform: none; filter: blur(0); letter-spacing: .3em; }
  74% { opacity: 1; transform: none; filter: blur(0); letter-spacing: .3em; }
  100% { opacity: 0; transform: translateY(-8px); filter: blur(8px); letter-spacing: .27em; }
}
@keyframes wordFlashLast {
  0% { opacity: 0; transform: translateY(12px) scale(.98); filter: blur(10px); letter-spacing: .4em; }
  24% { opacity: 1; transform: none; filter: blur(0); letter-spacing: .3em; }
  80% { opacity: 1; transform: none; filter: blur(0); letter-spacing: .3em; }
  100% { opacity: 0; transform: scale(1.04); filter: blur(10px); letter-spacing: .34em; }
}
@keyframes rise { from { opacity: 1; transform: translateY(130%); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* (LOT 3) Anciens visuels provisoires des quatre univers retirés : remplacés par les mini-scènes (assets/univers/). */

/* ======================= CTA FINAL ======================= */
.finale { position: relative; min-height: 115vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding-block: 18vh; }
.dawn {
  position: absolute; left: 50%; bottom: 0; z-index: -1; width: 150vw; height: 110vh; border-radius: 50%;
  transform: translate(-50%, calc(70% - var(--dawn, 0) * 30%)); opacity: calc(.3 + var(--dawn, 0) * .7);
  background: radial-gradient(closest-side, rgba(255, 143, 26, .42), rgba(242, 41, 111, .28) 35%, rgba(107, 43, 255, .18) 60%, transparent 100%);
  filter: blur(20px);
}
.dawn::after {
  content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 190, .9), transparent); filter: blur(.5px);
}
.finale-inner { display: grid; gap: 44px; justify-items: center; text-align: center; width: 100%; }
.display-fin { font-size: clamp(44px, 7.6cqi, 124px); line-height: .92; font-stretch: 108%; }
.display-fin .line > span { white-space: nowrap; }
.display-fin em { font-size: 1.1em; }
.fin-actions { display: grid; gap: 26px; justify-items: center; margin-top: 10px; }
.btn-main {
  display: inline-flex; align-items: center; gap: 16px; padding: 24px 40px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-stretch: 115%; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(238, 235, 229, .4), 0 20px 80px -10px rgba(242, 41, 111, .55);
  transition: box-shadow .5s, background-color .4s; will-change: transform;
}
.btn-main .arr { transition: transform .5s var(--ease); }
.btn-main:hover { box-shadow: 0 0 0 1px #fff, 0 30px 110px -10px rgba(255, 143, 26, .75); background: #fff; }
.btn-main:hover .arr { transform: translate(3px, -3px); }
.fin-contact { display: flex; gap: 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); user-select: all; }
.fin-contact span + span { color: var(--dim); }

/* ---------- Badge maquette ---------- */
.mock-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(15, 13, 20, .8); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.mock-badge button { background: none; border: 1px solid rgba(238, 235, 229, .2); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); }
.mock-badge button:hover { border-color: var(--magenta); }

/* ======================= RÉVÉLATIONS ======================= */
.js [data-reveal]:not([data-reveal="lines"]):not([data-reveal="image"]) { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in:not([data-reveal="lines"]):not([data-reveal="image"]) { opacity: 1; transform: none; }
.js [data-reveal="lines"] .line > span { transform: translateY(130%); transition: transform 1.2s var(--ease); }
.js [data-reveal="lines"] .line:nth-child(2) > span { transition-delay: .09s; }
.js [data-reveal="lines"] .line:nth-child(3) > span { transition-delay: .18s; }
.js [data-reveal="lines"].in .line > span { transform: none; }
.js [data-reveal="image"] { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js [data-reveal="image"] > img:first-child { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.js [data-reveal="image"].in { clip-path: inset(0 0 0 0); }
.js [data-reveal="image"].in > img:first-child { transform: scale(1.04); }
.js .world-text > [data-reveal]:nth-child(2) { transition-delay: .05s; }
.js .world-text > [data-reveal]:nth-child(3) { transition-delay: .15s; }
.js .world-text > [data-reveal]:nth-child(4) { transition-delay: .22s; }
.js .world-text > [data-reveal]:nth-child(5) { transition-delay: .3s; }
.js .world-text > [data-reveal]:nth-child(6) { transition-delay: .38s; }
.js .posts .post:nth-child(2) { transition-delay: .1s; }
.js .posts .post:nth-child(3) { transition-delay: .2s; }

/* Sans JavaScript : le manifeste s'affiche simplement */
html:not(.js) .manifesto { height: auto; }
html:not(.js) .m-stage { position: relative; height: auto; padding-block: 20vh; }
html:not(.js) .m-stack { gap: 40px; }
html:not(.js) .m-stack > * { grid-area: auto; }
html:not(.js) .m-a .w, html:not(.js) .m-a { color: var(--paper); }

/* ======================= MOUVEMENT RÉDUIT ======================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rings { animation: none; }
}


/* =====================================================================
   V2 — SECTIONS DU HUB
   ===================================================================== */
section { position: relative; }

/* ---------- 2. Expertises ---------- */
.expertises { isolation: isolate; overflow-x: clip; }
.expertises > .wrap { position: relative; z-index: 2; }
.ex-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.4vw; align-items: start; }
.ex-head { grid-column: 1 / span 6; display: grid; gap: 30px; position: sticky; top: 18vh; }
.ex-head .display-l { font-size: clamp(44px, 13.4cqi, 108px); }
.ex-head .lead { font-size: 17px; max-width: 26em; }
.services { grid-column: 8 / -1; border-bottom: 1px solid var(--line); margin-top: 6px; }
.service a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; column-gap: 24px; align-items: end;
  padding-block: 34px; border-top: 1px solid var(--line); position: relative;
}
.service a::before {
  content: ""; position: absolute; inset: 0 -16px; z-index: -1; opacity: 0; transition: opacity .6s; border-radius: 4px;
  background: linear-gradient(90deg, rgba(107, 43, 255, .1), rgba(242, 41, 111, .06) 50%, transparent);
}
.s-name {
  font-family: var(--f-display); font-weight: 800; font-stretch: 108%; text-transform: uppercase;
  grid-column: 1 / -1; font-size: min(calc((100cqi - 14px) / 9.2), 56px); line-height: .95; letter-spacing: -.01em; color: #cfcbc4;
  transition: color .5s, transform .7s var(--ease);
}
.s-desc { grid-column: 1; color: var(--mute); font-size: 16px; transition: color .5s; }
.s-cta {
  grid-column: 2; grid-row: 2; align-self: end; white-space: nowrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
  display: inline-flex; gap: 10px; transition: color .4s;
}
.s-cta span { transition: transform .5s var(--ease); }
.service a:hover::before, .service a:focus-visible::before { opacity: 1; }
.service a:hover .s-name, .service a:focus-visible .s-name { color: var(--paper); transform: translateX(10px); }
.service a:hover .s-desc { color: #c9c5cf; }
.service a:hover .s-cta, .service a:focus-visible .s-cta { color: var(--paper); }
.service a:hover .s-cta span { transform: translateX(6px); }
.preview {
  position: fixed; left: 0; top: 0; width: 340px; aspect-ratio: 4 / 3; z-index: 1; opacity: .85; pointer-events: none; overflow: hidden; border-radius: 4px;
  clip-path: inset(50% 50% 50% 50%); transition: clip-path .6s var(--ease); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9);
}
.preview.show { clip-path: inset(0 0 0 0); }
.preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform .9s var(--ease); }
.preview.show img { transform: scale(1); }

/* ---------- 3. Univers ---------- */
.universes { overflow-x: clip; }
.universes::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9; transition: background 1.2s var(--ease-io);
  background: radial-gradient(60% 70% at 72% 50%, color-mix(in srgb, var(--u-a, #7a1406) 26%, transparent), transparent 70%);
}
.u-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.4vw; align-items: center; }
.u-side { grid-column: 1 / span 5; display: grid; gap: 34px; align-content: center; }
.u-side .display-l { font-size: clamp(34px, 11.6cqi, 80px); }
.u-side .display-l .line > span { white-space: nowrap; }
.u-list { display: grid; border-top: 1px solid var(--line); }
.u-item {
  position: relative; display: flex; align-items: center; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line);
}
.u-name {
  font-family: var(--f-display); font-weight: 700; font-stretch: 110%; text-transform: uppercase;
  font-size: clamp(18px, calc((100cqi - 30px) / 14.9), 36px); line-height: 1; letter-spacing: .005em; color: #46424f; white-space: nowrap;
  transition: color .5s, transform .7s var(--ease);
}
.u-item:hover .u-name, .u-item.on .u-name { color: var(--paper); }
.u-item.on .u-name { transform: translateX(18px); }
.u-item::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--u-dot, var(--orange)); box-shadow: 0 0 14px var(--u-dot, var(--orange)); transform: scale(0); transition: transform .5s var(--ease);
}
.u-item.on::before { transform: scale(1); }
.u-bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.u-item.on .u-bar { transform: scaleX(1); transition: transform .8s var(--ease); }
.universes.auto .u-item.on .u-bar { animation: uBar var(--u-dur, 6s) linear both; transition: none; }
@keyframes uBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.soon { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border: 1px solid rgba(238, 235, 229, .18); border-radius: 999px; padding: 3px 8px; }

.u-details { display: grid; min-height: 132px; }
.u-detail { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; justify-items: start; opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s .6s; }
.u-detail.on { opacity: 1; transform: none; visibility: visible; transition: opacity .7s var(--ease) .12s, transform .8s var(--ease) .12s, visibility 0s; }
.u-mood { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--u-dot, var(--orange)); transition: color .6s; }
.u-tag { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2vw, 32px); line-height: 1.15; max-width: 17em; }

.u-stage { grid-column: 7 / -1; position: relative; aspect-ratio: 16 / 12.5; border-radius: 4px; overflow: hidden; background: #08070b; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9); }
/* LOT 3 : fondu de 1 s de la V3 conservé, zoom des panneaux retiré (les mini-scènes ont leurs propres mouvements).
   L'univers entrant se fond par-dessus l'univers sortant, qui reste opaque dessous pendant le fondu (aucun creux vers
   le fond du cadre), puis sort du rendu (.is-out, display: none) : ses observateurs le voient alors hors écran. */
.u-panel {
  position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease-io), visibility 0s 1s;
}
.u-panel.on { opacity: 1; visibility: visible; transition: opacity 1s var(--ease-io), visibility 0s; z-index: 2; }
.u-panel.is-leaving { opacity: 1; visibility: visible; transition: none; z-index: 1; }
.u-panel.is-out { display: none; }
.u-count { position: absolute; right: 20px; bottom: 18px; z-index: 6; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: rgba(238, 235, 229, .5); }
.u-count b { color: var(--paper); font-weight: 500; }

/* ---------- 4. Réalisations ---------- */
.work { }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 64px; }
.work-head > div { display: grid; gap: 28px; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.4vw; align-items: start; }
.w-feature { grid-column: 1 / span 7; display: grid; gap: 22px; }
.w-visual { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 4px; background: var(--ink-2); }
.w-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); filter: brightness(.92); }
.w-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .08) 50%, transparent 65%);
  transform: translateX(-100%); transition: transform 1.2s var(--ease);
}
.w-visual:hover img { transform: scale(1.035); }
.w-visual:hover::after { transform: translateX(100%); }
.w-cap { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.w-name { font-family: var(--f-display); font-weight: 800; font-stretch: 106%; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 46px); line-height: .95; }
.w-name.s { font-size: clamp(22px, 1.8vw, 30px); }
.w-type { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: 10px; }
.w-side { grid-column: 9 / -1; display: grid; border-top: 1px solid var(--line); }
.w-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 28px; border-bottom: 1px solid var(--line); }
.w-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; border: 1px dashed rgba(238, 235, 229, .16); background: var(--ink-2); }
.ph { width: 62%; aspect-ratio: 1; border-radius: 4px; background: #f7f2ec; display: grid; place-items: center; padding: 8%; transition: transform .7s var(--ease); }
.ph.round { border-radius: 50%; }
.ph img { width: 100%; height: 100%; object-fit: contain; }
.w-thumb:hover .ph { transform: scale(1.06); }
.ph-note { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.w-txt { display: grid; gap: 4px; justify-items: start; }
.w-txt .link-arrow { margin-top: 10px; font-size: 14px; }

/* ---------- 5. À propos ---------- */
.about { }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2.4vw; align-items: center; }
.about-img { grid-column: 1 / span 5; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.about-text { grid-column: 7 / span 5; display: grid; gap: 18px; justify-items: start; }
.about-name { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; text-transform: uppercase; font-size: clamp(30px, 8.6cqi, 60px); line-height: .95; margin-top: 8px; }
.about-role { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); padding-left: 16px; border-left: 1px solid var(--magenta); }
.about-body { color: var(--mute); max-width: 32em; margin-top: 8px; }
.journal {
  margin-top: 9vh; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding-block: 22px; border-top: 1px solid var(--line);
}
.j-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.j-title { font-size: 16px; color: var(--mute); transition: color .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-cta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; gap: 10px; }
.j-cta span { transition: transform .5s var(--ease); }
.journal:hover .j-title { color: var(--paper); }
.journal:hover .j-cta span { transform: translateX(6px); }

/* ---------- 6. Final ---------- */
.finale { min-height: 88vh; padding-block: calc(var(--sec-top) + 40px) 14vh; }
.display-fin .line > span { white-space: nowrap; }
.fin-contact { user-select: all; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: rgba(8, 7, 11, .92); }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 44px; }
.f-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--mute); }
.f-nav a, .f-links a { transition: color .3s; }
.f-nav a:hover, .f-links a:hover { color: var(--paper); }
.f-contact { display: grid; gap: 4px; text-align: right; font-size: 14px; color: var(--mute); user-select: text; }
.f-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.mock-badge .v1-link { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding: 6px 8px; }
.mock-badge .v1-link:hover { color: var(--paper); }

/* ---------- Mouvement réduit / tactile / préparation responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (hover: none) { .halo { display: none; } }
@media (max-width: 960px) {
  .main-nav { display: none; }
  .ex-grid, .u-grid, .work-grid, .about-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .ex-head, .services, .u-side, .u-stage, .w-feature, .w-side, .about-img, .about-text { grid-column: 1; }
  .ex-head { position: static; }
  .u-side .display-l .line > span { white-space: normal; }
  .f-top, .work-head { flex-direction: column; align-items: flex-start; }
  .f-contact { text-align: left; }
  .journal { grid-template-columns: 1fr; gap: 10px; }
  .j-title { white-space: normal; }
  .display-fin .line > span { white-space: normal; }
  .mock-badge span { display: none; }
}
@media (max-width: 560px) {
  .btn-ghost { display: none; }
  .nav-contact { display: inline-flex; }   /* LOT 10C */
  .hero-foot p { display: none; }
  .w-row { grid-template-columns: 96px minmax(0, 1fr); }
}

/* =====================================================================
   V3 — SÉPARATION DES SECTIONS : ESPACE + LIGNE + TRANSITION LUMINEUSE
   ===================================================================== */
:root { --sec-top: clamp(64px, 10vh, 120px); --sec-bottom: clamp(88px, 14vh, 160px); }
.expertises, .universes, .work, .about { padding-bottom: var(--sec-bottom); }
.sec-start { padding-top: 0; margin-bottom: var(--sec-top); position: relative; z-index: 3; }
.sep { position: relative; height: 1px; display: block; }
/* la ligne : un filet clair qui s'éteint vers la droite */
.sep-line {
  position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(90deg, rgba(238, 235, 229, .26), rgba(238, 235, 229, .13) 45%, rgba(238, 235, 229, .04) 100%);
}
/* l'accent : un court segment de lumière Click & Play, avec son point */
.sep-line::before {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 72px; background: var(--grad);
  box-shadow: 0 0 10px rgba(242, 41, 111, .55);
}
.sep-line::after {
  content: ""; position: absolute; left: 72px; top: -1.5px; width: 4px; height: 4px; border-radius: 50%;
  background: #ffb37a; box-shadow: 0 0 8px 2px rgba(255, 143, 26, .6);
}
/* la lueur : déborde légèrement au-dessus et au-dessous, pour ne pas faire mur */
.sep::before {
  content: ""; position: absolute; left: -60px; top: -60px; width: 320px; height: 120px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--amb-b) 22%, transparent), transparent);
  filter: blur(8px); opacity: .8; transition: background 1.4s var(--ease-io);
}
.sep-idx {
  position: absolute; right: 0; top: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em;
  color: var(--dim); font-variant-numeric: tabular-nums;
}
.sep-idx b { color: var(--mute); font-weight: 400; }
/* dessin à l'arrivée */
.js .sep .sep-line { transform: scaleX(0); transition: transform 1.6s var(--ease); }
.js .sep .sep-idx, .js .sep::before { opacity: 0; transition: opacity 1s var(--ease) .4s; }
.js .sep.in .sep-line { transform: none; }
.js .sep.in .sep-idx { opacity: 1; }
.js .sep.in::before { opacity: .8; }
.finale > .sec-start { position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .js .sep .sep-line { transform: none; } .js .sep .sep-idx, .js .sep::before { opacity: 1; } }
