/*
 * Néo-Production — version cinéma
 * Chaque scène reçoit sa progression de défilement dans --p (0 → 1), posée par cine.js.
 */
@font-face { font-family: 'Martian Mono'; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 112.5%;
  src: url(/fonts/martian-mono.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 112.5%;
  src: url(/fonts/martian-mono-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/fonts/schibsted.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/fonts/schibsted-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: italic; font-display: swap; font-weight: 400 900; src: url(/fonts/schibsted-italic.woff2) format('woff2-variations'); }

:root {
  --void: #07091C;      /* noir de salle, teinté nuit */
  --night: #0E1233;
  --night-2: #161C4A;
  --ink: #F1EEFF;
  --ink-2: #ABA7D6;
  --ink-3: #6E6AA0;
  --line: rgba(241, 238, 255, .14);
  --lime: #E6FF3D;
  --pink: #FF4FA3;
  --cyan: #3DE8FF;
  --orange: #FF8F2E;
  --lilac: #B9A2FF;
  --wide: 'Martian Mono', ui-monospace, Menlo, monospace;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --bar: clamp(26px, 7vh, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color: var(--ink); -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--pink); color: var(--void); }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, p { margin: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--lime); color: var(--void); font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Habillage ------------------------------------------------------------------ */
.bars { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.bar { position: absolute; left: 0; right: 0; height: var(--bar); background: #000; transition: transform 1.4s cubic-bezier(.7, 0, .2, 1); }
.bar-t { top: 0; } .bar-b { bottom: 0; }
html.is-film .bar-t { transform: translateY(-100%); }
html.is-film .bar-b { transform: translateY(100%); }
html.is-credits .bar-t { transform: none; }
html.is-credits .bar-b { transform: none; }

.grain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 49; pointer-events: none; opacity: .045; mix-blend-mode: screen; }
.glow {
  position: fixed; z-index: 0; width: 70vmax; height: 70vmax; left: 0; top: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 162, 255, .16), transparent 62%);
  transform: translate(calc(var(--gx, 50vw) - 50%), calc(var(--gy, 40vh) - 50%)); transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.hud {
  position: fixed; z-index: 60; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: var(--bar); padding: 0 var(--pad); font-size: 12px; letter-spacing: .02em; color: var(--ink-2);
}
.hud-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--wide); font-stretch: 112%; font-weight: 600; font-size: 12px; }
.hud-brand svg { width: 22px; height: 22px; color: var(--lime); }
.hud-rec { display: inline-flex; align-items: center; gap: 9px; font-family: var(--wide); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.hud-scene { display: none; }
.hud-cta { justify-self: end; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.hud-cta:hover { background: var(--lime); border-color: var(--lime); color: var(--void); }

/* Scènes : une scène = plusieurs écrans de défilement, une scène fixe à l'intérieur */
main { position: relative; z-index: 1; }
.scene { position: relative; --p: 0; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; padding: var(--bar) var(--pad); }
.s-open { height: 220vh; }
.s-manifest { height: 320vh; }
.s-craft { height: 420vh; }
.s-field { height: 240vh; }
.s-credits { height: 360vh; }

/* Plan 1 : ouverture --------------------------------------------------------- */
.s-open .stage { text-align: center; align-content: center; gap: clamp(14px, 3vh, 26px); }
.presents { font-family: var(--wide); font-stretch: 112%; font-size: clamp(11px, 1.2vw, 14px); color: var(--ink-2); opacity: 0; animation: fadeInOut 3s ease .4s forwards; }
.presents span { color: var(--ink); }
@keyframes fadeInOut { 15%, 70% { opacity: 1; } 100% { opacity: .85; } }
.mega {
  font-family: var(--wide); font-weight: 800; font-stretch: 112%; letter-spacing: -.04em; line-height: .9;
  font-size: clamp(30px, 7.6vw, 150px); white-space: nowrap;
  transform: scale(calc(1 + var(--p) * .55)); filter: blur(calc(var(--p) * 18px)); opacity: calc(1 - var(--p) * 1.25);
}
.mega .word { display: inline-block; white-space: nowrap; }
.mega .ch { display: inline-block; opacity: 0; transform: translateY(.18em) scaleY(1.4); filter: blur(12px); font-stretch: 75%; color: var(--ink);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .9, .2, 1), filter 1s ease, font-stretch 1.6s cubic-bezier(.2, .9, .2, 1), color .6s; }
.is-titled .mega .ch { opacity: 1; transform: none; filter: none; font-stretch: 112%; }
.mega .ch.hot { color: var(--c); }
.open-sub { font-family: var(--wide); font-stretch: 112%; font-size: clamp(12px, 1.4vw, 16px); letter-spacing: .3em; color: var(--lime); opacity: 0; transition: opacity 1.2s ease 1.4s; }
.is-titled .open-sub { opacity: calc(1 - var(--p) * 2); }
.open-ticket {
  position: relative; z-index: 2; justify-self: center; display: inline-flex; align-items: center; gap: 12px; margin-top: 6px;
  padding: 10px 12px 10px 10px; border: 1px solid rgba(255, 79, 163, .45); border-radius: 999px; background: rgba(255, 79, 163, .08);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none;
  transition: opacity 1.2s ease 2s, background .25s, border-color .25s, box-shadow .25s;
}
.is-titled .open-ticket { opacity: calc(1 - var(--p) * 2.5); pointer-events: auto; }
.open-ticket:hover, .open-ticket:focus-visible { background: rgba(255, 79, 163, .2); border-color: var(--pink); box-shadow: 0 0 34px rgba(255, 79, 163, .35); }
.ot-play { width: 30px; height: 30px; border-radius: 50%; background: var(--pink); position: relative; flex: none; box-shadow: 0 0 18px rgba(255, 79, 163, .6); }
.ot-play::after { content: ''; position: absolute; left: 11px; top: 9px; border-left: 10px solid var(--void); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ot-room { font-family: var(--wide); font-stretch: 112%; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--void); background: var(--lime); padding: 5px 9px; border-radius: 999px; }
.scroll-hint { position: absolute; bottom: calc(var(--bar) + 26px); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); opacity: 0; transition: opacity 1s ease 2.4s; }
.is-titled .scroll-hint { opacity: calc(1 - var(--p) * 4); }
.scroll-hint span { width: 1px; height: 44px; background: linear-gradient(var(--ink-2), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Plan 2 : manifeste --------------------------------------------------------- */
.s-manifest .stage { place-items: center start; }
.line {
  position: absolute; left: var(--pad); right: var(--pad); top: 50%; margin-top: -.6em;
  font-family: var(--sans); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(44px, 9vw, 150px);
  /* chaque ligne occupe un tiers de la scène : --q = progression locale */
  --q: clamp(0, (var(--p) - var(--a)) * 3, 1);
  opacity: calc(min(var(--q) * 4, (1 - var(--q)) * 4, 1));
  clip-path: inset(0 calc((1 - min(var(--q) * 2.4, 1)) * 100%) 0 0);
  transform: translateX(calc((.5 - var(--q)) * 6vw));
}
.l1 { --a: 0; color: var(--ink); }
.l2 { --a: .3333; color: var(--ink); }
.l3 { --a: .6666; font-size: clamp(34px, 6.4vw, 110px); max-width: 15ch;
  background: linear-gradient(100deg, var(--lime), var(--cyan) 45%, var(--pink) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l3 { --q: clamp(0, (var(--p) - var(--a)) * 3.4, 1); opacity: calc(min(var(--q) * 4, 1)); }

/* Plan 3 : savoir-faire -------------------------------------------------------- */
.s-craft .stage { place-items: center start; padding: 0; }
.reel { display: flex; width: 300vw; height: 100%; transform: translateX(calc(var(--p) * -200vw)); will-change: transform; }
.panel { position: relative; isolation: isolate; flex: none; width: 100vw; height: 100%; display: grid; align-content: center; gap: 22px; padding: var(--bar) var(--pad); }
.panel::before { /* lumière colorée propre à chaque plan */
  content: ''; position: absolute; z-index: -1; width: 110vmax; height: 110vmax; right: -45vmax; top: 50%; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--tone-rgb), .26), rgba(var(--tone-rgb), .08) 55%, transparent);
}
.p-lime { --tone: var(--lime); --tone-rgb: 230, 255, 61; } .p-pink { --tone: var(--pink); --tone-rgb: 255, 79, 163; } .p-cyan { --tone: var(--cyan); --tone-rgb: 61, 232, 255; }
.panel-kicker { font-family: var(--wide); font-stretch: 112%; font-size: clamp(11px, 1.1vw, 14px); color: var(--tone); }
.panel-word {
  font-family: var(--wide); font-weight: 800; font-stretch: 112%; letter-spacing: -.05em; line-height: 1.12; padding-bottom: .04em;
  font-size: clamp(34px, 10.2vw, 220px); white-space: nowrap; color: transparent;
  background: linear-gradient(90deg, var(--tone) 0 var(--fill, 0%), rgba(241, 238, 255, .14) var(--fill, 0%)); -webkit-background-clip: text; background-clip: text;
}
.panel-text { max-width: 30em; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.45; color: var(--ink); }

/* Plan 4 : le terrain ---------------------------------------------------------- */
.s-field .stage { align-content: center; justify-items: start; gap: clamp(24px, 5vh, 56px); }
.field-title { font-family: var(--sans); font-weight: 800; letter-spacing: -.035em; font-size: clamp(38px, 6.6vw, 112px); line-height: 1;
  opacity: calc(min(var(--p) * 5, 1)); transform: translateY(calc((1 - min(var(--p) * 5, 1)) * 40px)); }
.figures { display: flex; flex-wrap: wrap; gap: clamp(24px, 6vw, 96px); }
.figure { display: grid; gap: 6px; opacity: calc(min((var(--p) - .15) * 5, 1)); }
.figure b { font-family: var(--wide); font-weight: 800; font-stretch: 112%; letter-spacing: -.05em; line-height: .9; font-size: clamp(64px, 12vw, 200px); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink) 30%, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.figure:nth-child(2) b { background-image: linear-gradient(180deg, var(--lime) 30%, var(--orange)); }
.figure b small { font-size: .5em; letter-spacing: -.02em; margin-left: .12em; }
.figure span { font-size: clamp(14px, 1.3vw, 17px); color: var(--ink-2); max-width: 18em; }
.field-text { max-width: 36em; font-size: clamp(17px, 1.6vw, 22px); color: var(--ink); opacity: calc(min((var(--p) - .35) * 4, 1)); }

/* Plan 5 : générique ------------------------------------------------------------ */
.s-credits .stage { place-items: start center; padding-top: 0; padding-bottom: 0; }
.roll { width: min(900px, 100%); padding: 100vh 0 60vh; text-align: center; transform: translateY(calc(var(--p) * -1 * var(--roll, 1000px))); will-change: transform; }
.roll-title { font-family: var(--wide); font-weight: 700; font-stretch: 112%; font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .4em; color: var(--lime); margin-bottom: 9vh; }
.credits { margin: 0; display: grid; gap: clamp(36px, 7vh, 64px); }
.credits div { display: grid; gap: 8px; }
.credits dt { font-family: var(--wide); font-stretch: 112%; font-size: clamp(10.5px, 1vw, 12px); letter-spacing: .14em; color: var(--ink-3); }
.credits dd { margin: 0; font-weight: 700; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -.015em; }
.credits div:first-child dd { font-family: var(--wide); font-stretch: 112%; font-weight: 800; font-size: clamp(34px, 5vw, 64px); color: var(--ink); }
.roll-end { margin-top: 14vh; font-family: var(--sans); font-style: italic; font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-2); }

/* Plan 6 : contact ----------------------------------------------------------- */
.s-contact { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-rows: 1fr auto; background: linear-gradient(var(--void), var(--night) 40%); }
.contact-inner { width: min(980px, 100%); margin: 0 auto; padding: clamp(110px, 16vh, 180px) var(--pad) 60px; }
.contact-title { font-family: var(--sans); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(42px, 7vw, 120px); max-width: 11ch; }
.contact-sub { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.form { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.fld { display: grid; gap: 6px; }
.fld-wide { grid-column: 1 / -1; }
.fld label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
.fld input, .fld textarea {
  width: 100%; padding: 12px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 19px; outline: none; transition: border-color .25s;
}
.fld textarea { resize: vertical; min-height: 6.5em; line-height: 1.5; }
.fld input:focus, .fld textarea:focus { border-bottom-color: var(--lime); }
.fld.is-bad input, .fld.is-bad textarea { border-bottom-color: var(--pink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.send {
  position: relative; overflow: hidden; min-height: 58px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--void); background: var(--lime); transition: transform .15s, box-shadow .3s;
  box-shadow: 0 0 0 0 rgba(230, 255, 61, .4);
}
.send:hover { box-shadow: 0 0 40px 0 rgba(230, 255, 61, .35); }
.send:active { transform: scale(.97); }
.send[disabled] { opacity: .6; cursor: progress; }
.legal-note { flex: 1 1 260px; font-size: 13px; color: var(--ink-3); }
.legal-note a { color: var(--ink-2); }
.out { grid-column: 1 / -1; font-size: 15px; min-height: 1.5em; }
.out .ok { color: var(--lime); } .out .err { color: var(--pink); }
.direct { margin-top: 34px; color: var(--ink-2); }
.credits-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.credits-foot nav { display: flex; gap: 20px; }
.credits-foot a { color: var(--ink-2); }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 760px) {
  .hud { grid-template-columns: 1fr auto; }
  .hud-rec { display: none; }
  .hud-brand { font-size: 11px; }
  .hud-cta { padding: 8px 13px; font-size: 12px; }
  .form { grid-template-columns: 1fr; }
  .mega { font-size: 12.6vw; white-space: normal; line-height: .98; }
  .open-ticket, .ot-room { white-space: nowrap; }
  .open-ticket { font-size: 13px; gap: 9px; }
}
@media (max-width: 380px) { .hud-brand span, .hud-brand { gap: 6px; } }

/* Sans animation : le film devient une page simple, tout est visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .s-open, .s-manifest, .s-craft, .s-field, .s-credits { height: auto; }
  .stage { position: relative; height: auto; min-height: 70vh; overflow: visible; }
  .scene { --p: .5 !important; }
  .mega { transform: none; filter: none; opacity: 1; }
  .mega .ch, .presents, .open-sub, .open-ticket, .scroll-hint { pointer-events: auto; opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .line { position: relative; left: auto; right: auto; opacity: 1; clip-path: none; transform: none; margin: 4vh 0; }
  .s-manifest .stage { display: block; padding-top: 14vh; }
  .reel { flex-direction: column; width: 100%; transform: none; }
  .panel { width: 100%; height: auto; padding: 12vh var(--pad); }
  .panel-word { --fill: 100% !important; }
  .field-title, .figure, .field-text { opacity: 1; transform: none; }
  .roll { transform: none; padding: 14vh 0; }
  .bar { display: none; }
  .glow, .grain { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media (max-width: 340px) { .ot-room { display: none; } }
