/* Touch Media — touchmedia.ma · production stylesheet
   Identity: dusk over the port of Casablanca — space-navy ground, brand magenta
   (#EB1B66, from the Touch Media logo) bleeding into the film's sunset coral. */

/* self-hosted Google Fonts (latin + latin-ext), no third-party request */
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrumentsans-italic-latin-ext-edbc99.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrumentsans-italic-latin-1e2b27.woff2) format('woff2');
  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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrumentsans-normal-latin-ext-416253.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrumentsans-normal-latin-e190a6.woff2) format('woff2');
  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: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrumentsans-normal-latin-ext-416253.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrumentsans-normal-latin-e190a6.woff2) format('woff2');
  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: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrumentsans-normal-latin-ext-416253.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrumentsans-normal-latin-e190a6.woff2) format('woff2');
  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: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/syne-normal-latin-ext-f2eba9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/syne-normal-latin-c37e2f.woff2) format('woff2');
  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: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/syne-normal-latin-ext-f2eba9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/syne-normal-latin-c37e2f.woff2) format('woff2');
  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: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/syne-normal-latin-ext-f2eba9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/syne-normal-latin-c37e2f.woff2) format('woff2');
  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;
}

:root {
  --ground: #05080F;
  --panel: #0A1322;
  --card: rgba(10, 19, 34, 0.55);
  --text: #EAEFF7;
  --muted: #93A1B8;
  --accent: #EB1B66;
  --accent-hot: #FF3D7E;
  --rose: #F58DB2;
  --rose-bright: #FFD1E3;
  --accent-deep: #B3134C;
  --blue-glow: rgba(37, 99, 235, 0.09);
  --grad: linear-gradient(92deg, #EB1B66 0%, #FF4D6B 55%, #FF7A45 100%);
  --grad-v: linear-gradient(180deg, #EB1B66 0%, #FF4D6B 55%, #FF7A45 100%);
  /* button surfaces: same family, deepened so 12-15px white text holds 4.5:1 (AA) */
  --accent-btn: #E21A62;
  --accent-btn-hot: #D51557;
  --grad-btn: linear-gradient(92deg, #E21A62 0%, #D13F58 55%, #BA5932 100%);
  --line: rgba(147, 161, 184, 0.22);
  --display: 'Syne', Georgia, sans-serif;
  --body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 48px);
  --sp: 0;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  /* will-change keeps the jitter composited: uncomposited it registers as layout shift (CLS) */
  .grain { animation: grain 9s steps(10) infinite; will-change: transform; }
  @keyframes grain {
    0%, 100% { transform: translate3d(0, 0, 0); } 20% { transform: translate3d(-3%, 2%, 0); }
    40% { transform: translate3d(2%, -3%, 0); } 60% { transform: translate3d(-2%, -2%, 0); }
    80% { transform: translate3d(3%, 3%, 0); }
  }
}

/* ─ The 2027 signature: a glowing vertical progress line, left edge ─ */
.progress-rail {
  position: fixed; left: clamp(10px, 1.5vw, 22px); top: 0; bottom: 0; width: 2px;
  z-index: 120; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(235, 27, 102, .14) 10%, rgba(235, 27, 102, .14) 90%, transparent 100%);
}
.progress-rail .fill {
  position: absolute; top: 0; left: 0; width: 100%;
  height: calc(var(--sp) * 100%);
  background: var(--grad-v);
  box-shadow: 0 0 10px rgba(235, 27, 102, .75), 0 0 26px rgba(235, 27, 102, .35);
}
.progress-rail .dot {
  position: absolute; left: 50%; top: calc(var(--sp) * 100%);
  width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%);
  background: #FFE1EC;
  box-shadow: 0 0 10px 2px rgba(255, 122, 168, .95), 0 0 30px 8px rgba(235, 27, 102, .55);
}
@media (prefers-reduced-motion: no-preference) {
  .progress-rail .dot { animation: dot-breathe 2.6s ease-in-out infinite; }
  @keyframes dot-breathe {
    0%, 100% { box-shadow: 0 0 10px 2px rgba(255, 122, 168, .95), 0 0 30px 8px rgba(235, 27, 102, .55); }
    50% { box-shadow: 0 0 14px 3px rgba(255, 122, 168, 1), 0 0 44px 14px rgba(235, 27, 102, .7); }
  }
}
@media (max-width: 640px) { .progress-rail { display: none; } }

/* ─ Navigation: airborne over the film, docked glass once in the content ─ */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 26px;
  padding: 14px var(--pad);
  background: linear-gradient(180deg, rgba(5, 8, 15, .88), rgba(5, 8, 15, 0));
}
.main-nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 8, 15, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 141, 178, .14);
  opacity: 0;
}
.main-nav.docked::before { opacity: 1; }
.main-nav.docked { padding-top: 10px; padding-bottom: 10px; }
.main-nav .brand { display: inline-flex; position: relative; }
.main-nav .brand img { transform-origin: left center; }
.main-nav.docked .brand img { transform: scale(.92); }
.js.motion .main-nav { transition: padding .35s ease; }
.js.motion .main-nav::before { transition: opacity .35s ease; }
.js.motion .main-nav .brand img { transition: transform .35s ease; }
.main-nav .links { display: flex; gap: 22px; margin-left: auto; position: relative; }
.main-nav .links a {
  color: var(--text); text-decoration: none; font-size: 13.5px; letter-spacing: .04em;
  opacity: .85; transition: opacity .25s;
}
.main-nav .links a:hover { opacity: 1; }
.main-nav .links a[aria-current="true"] { opacity: 1; }
.main-nav .links a:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 4px; }
/* one shared indicator glides between links: rests under the active section, follows hover */
.nav-ind {
  position: absolute; left: 0; bottom: -7px; width: 40px; height: 2px;
  background: var(--grad); opacity: 0; pointer-events: none;
}
.nav-ind.on { opacity: 1; }
.js.motion .nav-ind { transition: transform .35s cubic-bezier(.6, 0, .2, 1), width .35s cubic-bezier(.6, 0, .2, 1), opacity .25s; }
/* first-paint choreography */
.js.motion .main-nav .brand { animation: nav-in .5s ease backwards; }
.js.motion .main-nav .links a { animation: nav-in .5s ease backwards; }
.js.motion .main-nav .links a:nth-child(1) { animation-delay: .06s; }
.js.motion .main-nav .links a:nth-child(2) { animation-delay: .12s; }
.js.motion .main-nav .links a:nth-child(3) { animation-delay: .18s; }
.js.motion .main-nav .links a:nth-child(4) { animation-delay: .24s; }
.js.motion .main-nav .links a:nth-child(5) { animation-delay: .3s; }
.js.motion .main-nav .links a:nth-child(6) { animation-delay: .36s; }
.js.motion .main-nav .links a:nth-child(7) { animation-delay: .42s; }
.js.motion .main-nav .cta-mini { animation: nav-in .5s ease backwards; animation-delay: .5s; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 1080px) {
  .main-nav .links { gap: 13px; }
  .main-nav .links a { font-size: 13px; }
  .cta-mini { padding: 9px 12px; }
}
/* seven links no longer fit under ~1000px: the menu takes over, the CTA stays */
@media (max-width: 960px) {
  .main-nav { gap: 14px; }
  .main-nav .links { display: none; }
  .main-nav .cta-mini { margin-left: auto; }
}

.cta-mini {
  margin-left: 12px; background: var(--grad-btn); color: #fff; font-weight: 600;
  font-size: 12.5px; padding: 9px 15px; text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: box-shadow .25s;
}
.cta-mini:hover { box-shadow: 0 6px 22px rgba(235, 27, 102, .5); }
.cta-mini .arr { display: inline-block; transition: transform .3s; }
.cta-mini:hover .arr { transform: translate(2px, -2px); }
.js.motion .cta-mini::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg); transition: transform .55s ease;
}
.js.motion .cta-mini:hover::before, .js.motion .cta-mini:focus-visible::before { transform: skewX(-18deg) translateX(430%); }
.cta-mini:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ─ Hero (lives inside the film stage as .ov0) — lean: pill, title, sub, actions ─ */
.ov0 {
  left: 0; right: 0; bottom: 0; top: auto; opacity: 1;
  padding: 130px 0 64px;
  background:
    radial-gradient(560px at 6% 100%, rgba(235, 27, 102, .17), transparent 64%),
    linear-gradient(180deg, rgba(5, 8, 15, 0) 0%, rgba(5, 8, 15, .5) 52%, rgba(5, 8, 15, .93) 100%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
.ov0-in { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--pad); }
.ov0-in > * { max-width: 720px; }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -.015em;
  max-width: 15ch; text-wrap: balance; text-transform: uppercase;
}
h1 .accent-i { color: var(--accent-hot); font-style: normal; }
@supports (-webkit-background-clip: text) {
  h1 .accent-i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.ov0 .sub { margin-top: 20px; font-size: clamp(17px, 1.6vw, 21px); max-width: 52ch; color: #D9E1EE; line-height: 1.55; }
.ov0 .sub strong { color: #fff; font-weight: 650; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.cta {
  display: inline-block; background: var(--accent-btn); color: #fff; font-weight: 650;
  text-decoration: none; padding: 14px 28px; font-size: 15px; border: 0; cursor: pointer;
  font-family: var(--body);
  transition: transform .25s cubic-bezier(.6, 0, .2, 1), background .25s, box-shadow .25s;
}
.cta:hover { background: var(--accent-btn-hot); box-shadow: 0 10px 34px rgba(235, 27, 102, .45); }
.cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.cta-ghost {
  display: inline-block; border: 1px solid rgba(235, 27, 102, .55); color: var(--text);
  text-decoration: none; padding: 13px 24px; font-size: 15px; transition: border-color .25s, color .25s;
}
.cta-ghost:hover, .cta-ghost:focus-visible { border-color: var(--accent-hot); color: var(--rose); outline: none; }
.hint {
  position: absolute; bottom: calc(18px + var(--consent-h, 0px)); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .hint { animation: bob 2.2s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
}

@media (max-height: 720px) {
  .ov0 h1 { font-size: clamp(30px, 5.2vw, 54px); }
  .ov0 { padding-bottom: 44px; }
}
@media (max-width: 640px) {
  .ov0 { padding: 92px 0 40px; }
  .ov0 h1 { font-size: clamp(26px, 8.6vw, 36px); }
  .ov0 .sub { font-size: 15px; margin-top: 14px; }
  .hero-ctas { margin-top: 22px; }
  .ov0 .cta { padding: 12px 22px; font-size: 14px; }
  .ov0 .cta-ghost { padding: 11px 20px; font-size: 14px; }
  .hint { display: none; }
}

/* ─ The film — 760vh: the scrub keeps its pace and each chapter earns a dwell ─ */
.chapter-film { position: relative; height: 760vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #05080F; }
.stage video.film, .stage img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .stage video.film, .stage img.poster { object-position: 64% 50%; } }
.scrim-film {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 15, .28) 0%, rgba(5, 8, 15, 0) 24%, rgba(5, 8, 15, 0) 78%, rgba(5, 8, 15, .34) 100%);
}
.hud-alt {
  position: absolute; left: clamp(24px, 2.6vw, 38px); bottom: calc(16px + var(--consent-h, 0px)); z-index: 6;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em;
  color: var(--rose); text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  font-variant-numeric: tabular-nums;
}
.ov { position: absolute; opacity: 0; will-change: transform, opacity; z-index: 5; }
.ov.ov0 { opacity: 1; }
.ov .tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .26em;
  color: var(--rose-bright); margin-bottom: 14px;
  background: rgba(5, 8, 15, .6); border: 1px solid rgba(245, 141, 178, .3);
  padding: 7px 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-shadow: none;
}
.ov h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.8vw, 46px); line-height: 1.06; text-wrap: balance; text-transform: uppercase; letter-spacing: -.01em; }
.ov p { margin-top: 14px; font-size: clamp(16px, 1.75vw, 22px); line-height: 1.5; max-width: 46ch; font-weight: 500; }
.ov1 { left: 6%; top: 13%; max-width: 46%; color: var(--text); text-shadow: 0 1px 4px rgba(0, 0, 0, .85), 0 2px 24px rgba(0, 0, 0, .75); }
.ov2 { right: 6%; top: 16%; max-width: 44%; text-align: right; color: var(--text); text-shadow: 0 1px 4px rgba(0, 0, 0, .85), 0 2px 24px rgba(0, 0, 0, .75); }
.ov2 p { margin-left: auto; }
.ov3 { right: 4%; top: 24%; max-width: 38%; color: #16202E; }
.ov3 .tag { color: #fff; background: rgba(22, 32, 46, .78); border-color: rgba(22, 32, 46, .2); }
.ov3 h2 { text-shadow: 0 1px 14px rgba(255, 255, 255, .65), 0 0 30px rgba(255, 255, 255, .5); }
.ov3 p {
  color: #1C2940; display: inline-block; text-shadow: none;
  background: rgba(255, 255, 255, .58); border: 1px solid rgba(22, 32, 46, .12);
  padding: 12px 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ov4 { left: 6%; top: 27%; max-width: 34%; color: var(--text); text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.ov4 h2 { font-size: clamp(20px, 2.6vw, 36px); }
.ov4 p { font-size: clamp(15px, 1.45vw, 19px); }
.ov4 .cta { margin-top: 22px; text-shadow: none; }
@media (max-width: 640px) {
  .ov1 { left: 7%; top: 10%; max-width: 84%; }
  .ov2 { right: 7%; top: 12%; max-width: 82%; }
  .ov3 { max-width: 70%; right: 6%; top: 18%; }
  /* mobile only: the closing title leaves the black wall on narrow crops —
     glass card + soft glow keep it readable (desktop stays bare, wall is enough) */
  .ov4 {
    max-width: 84%; left: 6%; top: 14%;
    background: rgba(5, 8, 15, .55); border: 1px solid rgba(245, 141, 178, .22);
    padding: 16px 18px 20px;
    backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  }
  .ov4 h2 { text-shadow: 0 0 22px rgba(255, 209, 227, .45), 0 2px 10px rgba(0, 0, 0, .85); }
  .ov4 p { text-shadow: 0 0 16px rgba(255, 209, 227, .3), 0 1px 8px rgba(0, 0, 0, .85); }
  .ov h2 { font-size: clamp(22px, 6.4vw, 30px); }
  .ov4 h2 { font-size: clamp(17px, 5vw, 24px); }
  .ov p { font-size: 14.5px; }
  .hud-alt { font-size: 11px; left: 16px; }
}

html:not(.js) .chapter-film { height: auto; }
html:not(.js) .stage { position: static; height: auto; }
html:not(.js) .stage img.poster { position: relative; inset: auto; }
html:not(.js) .stage video.film, html:not(.js) .hud-alt { display: none; }
html:not(.js) .ov { display: none; }
html:not(.js) .ov.ov0 { display: block; position: static; opacity: 1; background: none; }
html:not(.js) .hint { display: none; }
html:not(.js) .ov.ov-noscript { display: block; position: static; opacity: 1; margin: 16px 24px; color: var(--muted); }
.ov-noscript { font-size: 15px; }


/* ─ Content sections — each block carries its own atmosphere ─
   NOTE: no overflow:hidden here — it would break position:sticky inside
   (the réalisations stage); every atmosphere layer is inset:0 anyway. */
.block { position: relative; padding: 100px 0 88px; scroll-margin-top: 58px; }
.block.alt { background: var(--panel); }
.block > * { position: relative; z-index: 1; }
.block::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; }

#apropos::before {
  background:
    radial-gradient(720px at 88% -12%, rgba(235, 27, 102, .13), transparent 62%),
    radial-gradient(900px at -14% 118%, var(--blue-glow), transparent 60%);
}
#apropos::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(147, 161, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 161, 184, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(820px at 82% 8%, #000 30%, transparent 74%);
  mask-image: radial-gradient(820px at 82% 8%, #000 30%, transparent 74%);
}

#services::before {
  background:
    conic-gradient(from 210deg at 18% -6%, rgba(235, 27, 102, .10), transparent 24%, transparent 76%, rgba(255, 122, 69, .06)),
    radial-gradient(760px at 108% 88%, var(--blue-glow), transparent 62%);
}

#references::before {
  background: linear-gradient(115deg, transparent 42%, rgba(235, 27, 102, .07) 50%, transparent 58%);
  background-size: 260% 100%;
  background-position: 0% 0;
}
.js.motion #references::before { animation: beam 16s ease-in-out infinite alternate; }
@keyframes beam { to { background-position: 100% 0; } }

#equipe::before {
  background-image: radial-gradient(rgba(147, 161, 184, .16) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(900px at 12% 0%, #000 24%, transparent 72%);
  mask-image: radial-gradient(900px at 12% 0%, #000 24%, transparent 72%);
}
#equipe::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(680px at 96% 104%, rgba(235, 27, 102, .10), transparent 62%);
}

#realisations::before {
  background:
    radial-gradient(1100px at -10% 10%, rgba(235, 27, 102, .06), transparent 78%),
    radial-gradient(1000px at 112% 92%, rgba(37, 99, 235, .06), transparent 78%);
}

#contact::before {
  background:
    radial-gradient(640px at 84% 26%, rgba(235, 27, 102, .11), transparent 62%),
    radial-gradient(760px at -8% 100%, var(--blue-glow), transparent 60%);
}

.inner { max-width: 1060px; margin: 0 auto; padding: 0 var(--pad); }
.sec-line { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sec-line .no { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--accent-hot); }
.sec-line .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; color: var(--muted); white-space: nowrap; }
.sec-line .rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(235, 27, 102, .55), var(--line) 40%, transparent 96%); }
.title {
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.05; max-width: 24ch; text-wrap: balance; margin-bottom: 18px;
  letter-spacing: -.01em; text-transform: uppercase;
}
.lead { color: var(--muted); max-width: 60ch; font-size: 17px; }

.stats { display: flex; flex-wrap: wrap; gap: 16px 60px; margin-top: 46px; }
.stat .n {
  font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 72px);
  color: var(--accent-hot); font-variant-numeric: tabular-nums; line-height: 1;
}
@supports (-webkit-background-clip: text) {
  .stat .n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }

/* ─ Services: crawlable panes + control column, 2027 skin ─ */
.svc-panel { display: grid; grid-template-columns: minmax(240px, 350px) 1fr; gap: 34px; margin-top: 46px; align-items: start; }
.svc-tabs { grid-column: 1; grid-row: 1; }
.svc-panes { grid-column: 2; grid-row: 1 / span 2; }
.svc-panel .gbadge-row { grid-column: 1; grid-row: 2; }
@media (max-width: 760px) {
  .svc-panel { grid-template-columns: 1fr; gap: 20px; }
  .svc-tabs, .svc-panes, .svc-panel .gbadge-row { grid-column: auto; grid-row: auto; }
  .svc-pane { padding: 26px 20px 30px; min-height: 0; }
  .p-ghost { font-size: 110px; top: -20px; right: 0; }
  .svc-pane { scroll-margin-top: 72px; }
}
.svc-tabs { display: flex; flex-direction: column; position: relative; }
/* one glowing segment glides along the shared spine to the active tab */
.tab-glide {
  position: absolute; left: 0; top: 0; width: 2px; height: 46px;
  background: var(--grad-v); opacity: 0; pointer-events: none;
  box-shadow: 0 0 12px rgba(235, 27, 102, .5);
}
.tab-glide.on { opacity: 1; }
.js.motion .tab-glide { transition: transform .4s cubic-bezier(.6, 0, .2, 1), height .4s cubic-bezier(.6, 0, .2, 1), opacity .3s; }
.svc-tabs [role="tab"] {
  position: relative; display: flex; align-items: baseline; gap: 14px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 15px 8px 15px 16px; cursor: pointer;
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--muted);
  transition: color .25s, transform .25s, background .25s;
}
.svc-tabs [role="tab"]::before {
  content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 2px;
  background: var(--grad-v); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .3s cubic-bezier(.6, 0, .2, 1);
}
/* under JS the shared glide replaces the per-tab bar */
html.js .svc-tabs [role="tab"]::before { display: none; }
/* the active tab reaches across the gap into its pane */
@media (min-width: 761px) {
  .svc-tabs [role="tab"][aria-selected="true"]::after {
    content: ''; position: absolute; right: -34px; width: 34px; top: 50%; height: 1px;
    background: linear-gradient(90deg, var(--accent-hot), rgba(235, 27, 102, .12));
    transform-origin: 0 50%;
  }
  .js.motion .svc-tabs [role="tab"][aria-selected="true"]::after { animation: con-in .45s cubic-bezier(.2, .8, .2, 1); }
  @keyframes con-in { from { transform: scaleX(0); } }
}
.svc-tabs .s-no { font-family: var(--display); font-weight: 700; font-size: 11px; color: rgba(245, 141, 178, .55); letter-spacing: .06em; }
.svc-tabs [role="tab"]:hover { color: var(--text); transform: translateX(4px); }
.svc-tabs [role="tab"][aria-selected="true"] { color: var(--text); background: linear-gradient(90deg, rgba(235, 27, 102, .10), transparent 70%); }
.svc-tabs [role="tab"][aria-selected="true"]::before { transform: scaleY(1); }
.svc-tabs [role="tab"][aria-selected="true"] .s-no { color: var(--accent-hot); }
.svc-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.svc-panes { position: relative; }
.svc-pane {
  position: relative; overflow: hidden; min-height: 300px;
  border: 1px solid rgba(245, 141, 178, .16);
  background: linear-gradient(160deg, rgba(235, 27, 102, .06), rgba(10, 19, 34, .55) 46%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 36px 38px 40px;
}
.svc-pane::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.svc-pane[hidden] { display: none; }
/* no JS: the tabs cannot toggle, so all seven métiers stack open */
html:not(.js) .svc-pane[hidden] { display: block; margin-bottom: 16px; }
.p-ghost {
  position: absolute; right: 4px; top: -34px; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 800; font-size: 170px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 141, 178, .13);
}
.svc-pane > * { position: relative; z-index: 1; }
.svc-pane h3 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 12px; }
.svc-pane p { color: var(--muted); max-width: 54ch; font-size: 16.5px; }
.scope-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.scope-chips span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--rose-bright);
  border: 1px solid rgba(245, 141, 178, .3); background: rgba(235, 27, 102, .07); padding: 6px 10px;
  transition: border-color .25s, background .25s, color .25s, transform .25s;
}
.scope-chips span:hover { border-color: rgba(245, 141, 178, .65); background: rgba(235, 27, 102, .16); color: #fff; transform: translateY(-1px); }
/* pane swap is directional: content arrives from the side you are heading to */
.js.motion .svc-pane.swap-down { animation: pane-down .38s cubic-bezier(.2, .8, .2, 1); }
.js.motion .svc-pane.swap-up { animation: pane-up .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes pane-down { from { opacity: 0; transform: translateY(16px); } }
@keyframes pane-up { from { opacity: 0; transform: translateY(-16px); } }
.js.motion .svc-pane.swap-down .p-ghost { animation: ghost-down .5s cubic-bezier(.2, .8, .2, 1); }
.js.motion .svc-pane.swap-up .p-ghost { animation: ghost-up .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes ghost-down { from { opacity: 0; transform: translateY(34px); } }
@keyframes ghost-up { from { opacity: 0; transform: translateY(-34px); } }
.js.motion .svc-pane.swap-down .scope-chips span,
.js.motion .svc-pane.swap-up .scope-chips span { animation: chip-in .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.js.motion .svc-pane.swap-down .scope-chips span:nth-child(1), .js.motion .svc-pane.swap-up .scope-chips span:nth-child(1) { animation-delay: .1s; }
.js.motion .svc-pane.swap-down .scope-chips span:nth-child(2), .js.motion .svc-pane.swap-up .scope-chips span:nth-child(2) { animation-delay: .14s; }
.js.motion .svc-pane.swap-down .scope-chips span:nth-child(3), .js.motion .svc-pane.swap-up .scope-chips span:nth-child(3) { animation-delay: .18s; }
.js.motion .svc-pane.swap-down .scope-chips span:nth-child(4), .js.motion .svc-pane.swap-up .scope-chips span:nth-child(4) { animation-delay: .22s; }
.js.motion .svc-pane.swap-down .scope-chips span:nth-child(5), .js.motion .svc-pane.swap-up .scope-chips span:nth-child(5) { animation-delay: .26s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px); } }
/* certification sits under the métier list, aligned to its text edge */
.gbadge-row { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-left: 16px; }
.gbadge-row img { width: 72px; height: 72px; display: block; }
.gbadge-row .gb-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); max-width: 22ch; }

/* marquee — constrained to the content column */
.marquee { overflow: hidden; margin: 40px 0 26px; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; }
.marquee-track img { height: 44px; width: auto; background: #fff; padding: 7px 12px; filter: grayscale(1); opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 36s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 26px; }
.logo-wall img {
  width: 100%; height: 62px; object-fit: contain; background: #fff; padding: 8px 12px;
  filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s, transform .3s;
}
.logo-wall:hover img { opacity: .22; }
.logo-wall img:hover { filter: none; opacity: 1; transform: scale(1.06); }

/* ─ Team: 24 faces, direction first ─ */
.team-dirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px 20px; margin-top: 46px; max-width: 880px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 30px 16px; margin-top: 40px; }
.tm { text-align: left; }
.tm img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.tm:hover img { transform: translateY(-4px); border-color: rgba(235, 27, 102, .6); box-shadow: 0 12px 34px rgba(235, 27, 102, .22); }
.tm figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--text); margin-top: 10px; line-height: 1.5; }
.tm .role { display: block; font-size: 9.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.team-dirs .tm figcaption { font-size: 12px; }
.team-dirs .tm .role { font-size: 10px; color: var(--rose); }

/* ─ Réalisations: scroll-driven cinemascope — title rides inside the pinned stage ─ */
.works { position: relative; }
.works-stage { position: relative; }
.works-head { margin-bottom: 6px; }
.works-belt { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 26px; }
.works-belt::-webkit-scrollbar { display: none; }
.works-track { display: flex; gap: clamp(16px, 2.6vw, 38px); padding: 4px var(--pad) 12px; width: max-content; }
.work { position: relative; flex: 0 0 min(78vw, 720px); scroll-snap-align: center; overflow: hidden; }
.work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 46px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 15, .88));
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--rose-bright);
}
.work .w-no { margin-right: 12px; color: var(--accent-hot); font-weight: 700; }
.works-hud {
  display: none; position: absolute; top: 4px; right: var(--pad); z-index: 3;
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--rose);
}
@media (min-width: 900px) {
  .works-hud { display: block; }
  .js.motion .works { height: 340vh; }
  .js.motion .works-stage {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .js.motion .works-head { padding-top: 88px; width: 100%; }
  .js.motion .works-belt { flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; margin-top: 0; scroll-snap-type: none; }
  .js.motion .works-track { padding: 0 8vw; will-change: transform; }
  /* fill the stage: width follows the viewport, the svh term keeps the 16/10
     card (plus head room) inside short screens, the px cap tames ultra-wide */
  .js.motion .work { flex-basis: min(58vw, calc(147svh - 340px), 1100px); }
  /* the scroll-jacked copy and the plain strip drivers swap with the mode */
  .js.motion .lead-scroll { display: inline; }
  .js.motion .lead-swipe, .js.motion .works-ctl { display: none; }
}
/* strip mode (narrow screens, or reduced motion at any width): the belt is a
   native horizontal scroller with a hidden scrollbar, so it gets visible
   drivers: prev/next, a live position, mouse drag and arrow keys */
.lead-scroll { display: none; }
.lead-swipe { display: inline; }
.works-ctl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.w-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(245, 141, 178, .35);
  background: rgba(5, 8, 15, .55); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px;
  transition: border-color .25s, opacity .25s, background .25s;
}
.w-btn:hover { border-color: var(--accent-hot); background: rgba(235, 27, 102, .16); }
.w-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.w-btn[disabled] { opacity: .3; cursor: default; }
.w-btn[disabled]:hover { border-color: rgba(245, 141, 178, .35); background: rgba(5, 8, 15, .55); }
.w-pos { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--rose); min-width: 7ch; text-align: center; }
.works-belt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.work img { -webkit-user-drag: none; user-select: none; }
@media (pointer: fine) { .works-belt[tabindex="0"] { cursor: grab; } }
.works-belt.is-drag, .works-belt[tabindex="0"].is-drag { scroll-snap-type: none; cursor: grabbing; -webkit-user-select: none; user-select: none; }
.works-belt.is-drag .work { pointer-events: none; }

/* ─ Contact: a compact left column + the devis form at the same level ─ */
.contact-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 1.2fr; gap: 48px; margin-top: 34px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
/* desktop: the map's bottom edge sits flush with the form card's bottom */
@media (min-width: 821px) {
  .contact-grid { align-items: stretch; }
  .contact-grid > div { display: flex; flex-direction: column; }
  .contact-grid .mini-map { margin-top: auto; }
}
.contact-h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2vw, 25px);
  line-height: 1.25; text-transform: uppercase; letter-spacing: -.01em;
  text-wrap: balance; margin-bottom: 24px; max-width: 24ch;
}
/* the real map, converted to the site's night palette; the light original never shows */
.mini-map {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); background: rgba(5, 8, 15, .5); margin-top: 26px;
  transition: border-color .3s;
}
.mini-map img {
  display: block; width: 100%; height: auto;
  filter: invert(1) hue-rotate(195deg) saturate(.55) brightness(.92) contrast(.95);
}
.mini-map::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(5, 8, 15, .2);
}
.mini-map::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245, 141, 178, .12), inset 0 0 46px rgba(235, 27, 102, .10);
}
.mini-map:hover { border-color: rgba(245, 141, 178, .5); }
.mini-map:focus-visible { outline: none; border-color: rgba(245, 141, 178, .6); box-shadow: 0 0 0 2px rgba(235, 27, 102, .45); }
/* brand ring pulsing on the baked-in pin (percent-positioned on the aspect-locked box) */
.map-dot { position: absolute; left: 44.1%; top: 42%; z-index: 3; width: 0; height: 0; pointer-events: none; }
.map-dot::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(255, 61, 126, .55); box-shadow: 0 0 10px rgba(235, 27, 102, .5);
}
.map-dot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255, 61, 126, .75); }
.js.motion .map-dot::after { animation: map-ping 2.4s ease-out infinite; }
@keyframes map-ping { from { transform: scale(.35); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.map-open {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--rose-bright);
  background: rgba(5, 8, 15, .72); border: 1px solid rgba(245, 141, 178, .3); padding: 5px 8px;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.mini-map:hover .map-open, .mini-map:focus-visible .map-open { opacity: 1; transform: none; }
@media (hover: none) { .map-open { opacity: 1; transform: none; } }

.devis-form {
  position: relative; padding: 34px 34px 38px;
  border: 1px solid rgba(245, 141, 178, .16);
  background: linear-gradient(165deg, rgba(235, 27, 102, .05), rgba(10, 19, 34, .5) 44%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.devis-form::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.devis-form h3 { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2.2vw, 26px); text-transform: uppercase; margin-bottom: 26px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
@media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }
.f-field { position: relative; padding-top: 14px; }
.f-field.wide { grid-column: 1 / -1; }
.f-field input, .f-field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); font-family: var(--body); font-size: 15.5px; padding: 10px 2px;
  border-radius: 0; transition: border-color .25s;
}
.f-field textarea { resize: vertical; min-height: 96px; }
.f-field label {
  position: absolute; left: 2px; top: 22px; pointer-events: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--muted);
  text-transform: uppercase; transition: top .25s, font-size .25s, color .25s;
}
.f-field input:focus, .f-field textarea:focus { outline: none; border-bottom-color: transparent; }
.f-field input:focus + label, .f-field input:not(:placeholder-shown) + label,
.f-field textarea:focus + label, .f-field textarea:not(:placeholder-shown) + label {
  top: 0; font-size: 9.5px; color: var(--rose);
}
.f-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s cubic-bezier(.6, 0, .2, 1);
  box-shadow: 0 0 10px rgba(235, 27, 102, .5);
}
.f-field input:focus ~ .f-line, .f-field textarea:focus ~ .f-line { transform: scaleX(1); }
/* piège à robots : hors écran, jamais atteignable au clavier ni annoncé */
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-box { grid-column: 1 / -1; margin-top: 4px; min-height: 65px; }
.f-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.f-consent input { accent-color: var(--accent); margin-top: 3px; }
.f-legal { grid-column: 1 / -1; margin: -6px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); opacity: .85; }
.f-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-grad {
  background: var(--grad-btn); color: #fff; border: 0; cursor: pointer;
  font-family: var(--body); font-weight: 650; font-size: 15px; padding: 15px 30px;
  transition: box-shadow .25s, transform .25s;
}
.cta-grad:hover { box-shadow: 0 12px 38px rgba(235, 27, 102, .45); }
.cta-grad:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.f-note { font-family: var(--mono); font-size: 12px; color: var(--muted); min-height: 1em; }
.f-note.ok { color: #7BE0AD; }
.f-note.err { color: var(--rose); }

.film-lite-note { display: none; }
html.film-lite .film-lite-note { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 10px 24px; }

/* HUD chapter rail */
.hud-rail { position: absolute; right: 18px; bottom: calc(14px + var(--consent-h, 0px)); z-index: 6; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; max-width: 44vw; }
.hud-rail button {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--muted);
  opacity: .55; transition: color .3s, opacity .3s; text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
}
.hud-rail button.on { color: var(--rose); opacity: 1; }
.hud-rail button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .hud-rail { display: none; } }

/* Save-Data / 2G: film collapses to poster, page stays light */
html.film-lite .chapter-film { height: auto; }
html.film-lite .stage { position: static; height: auto; }
html.film-lite .stage img.poster { position: relative; inset: auto; }
html.film-lite .stage video.film, html.film-lite .hud-alt, html.film-lite .hud-rail, html.film-lite .hint, html.film-lite .progress-rail { display: none; }
html.film-lite .ov { position: static; opacity: 1; transform: none !important; margin: 14px 24px; max-width: none; text-shadow: none; color: var(--text); }
html.film-lite .ov.ov0 { margin: 0; padding: 90px 24px 30px; background: none; }
html.film-lite .ov3, html.film-lite .ov3 p { color: var(--muted); }
.mono-list { font-family: var(--mono); font-style: normal; font-size: 14px; line-height: 2.3; }
.mono-list span { color: var(--muted); }
.mono-list a { color: var(--text); text-decoration-color: rgba(235, 27, 102, .5); text-underline-offset: 3px; }
.mono-list a:hover { color: var(--rose); }

/* ─ Footer: a last call to action, then the essentials ─ */
footer { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(10, 19, 34, 0), rgba(10, 19, 34, .85)); }
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, #FF7A45 70%, transparent);
}
footer::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(820px at 50% 140%, rgba(235, 27, 102, .15), transparent 65%);
}
footer > * { position: relative; z-index: 1; }
.foot-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding-top: 58px; padding-bottom: 44px;
}
.foot-line {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance;
}
.foot-line .fx { color: var(--accent-hot); }
@supports (-webkit-background-clip: text) {
  .foot-line .fx { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.foot-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 34px;
  border-top: 1px solid rgba(147, 161, 184, .14);
  padding-top: 40px; padding-bottom: 40px; align-items: start;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.f-brand .f-tagline { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-top: 14px; text-transform: uppercase; }
.f-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 130px)); gap: 12px 18px; align-content: start; }
.f-nav a { text-decoration: none; font-size: 14px; color: var(--muted); width: fit-content; transition: color .25s; }
.f-nav a:hover { color: var(--rose); }
.f-nav a:focus-visible { color: var(--rose); outline: 2px solid var(--accent); outline-offset: 3px; }
.f-co { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: #C3CCDA; }
.f-co .f-label { display: block; font-size: 9.5px; letter-spacing: .22em; color: rgba(147, 161, 184, .75); margin: 2px 0 14px; }
.f-co .f-row { margin: 0 0 12px; }
.f-co .f-row:last-child { margin-bottom: 0; }
.f-co a { color: var(--text); text-decoration-color: rgba(235, 27, 102, .5); text-underline-offset: 3px; }
.f-co a:hover { color: var(--rose); }
.f-co a:focus-visible { color: var(--rose); outline: 2px solid var(--accent); outline-offset: 3px; }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  border-top: 1px solid rgba(147, 161, 184, .14);
  padding-top: 20px; padding-bottom: 30px;
}
.foot-base p { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }

/* ─ Mobile menu ─ */
.menu-btn {
  display: none; margin-left: auto; width: 40px; height: 40px; padding: 9px 8px;
  flex-direction: column; justify-content: space-between; align-items: stretch;
  background: none; border: 0; cursor: pointer; z-index: 140;
}
.menu-btn span { height: 2px; background: var(--text); transition: transform .3s, opacity .3s; transform-origin: 50% 50%; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); background: var(--rose); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); background: var(--rose); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.m-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(5, 8, 15, .93);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 90px var(--pad) 40px;
}
.m-menu[hidden] { display: none; }
.m-menu a:not(.cta) {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 7.5vw, 34px); line-height: 1.5; text-decoration: none;
  color: var(--text); display: flex; align-items: baseline; gap: 14px;
}
.m-menu a .m-no { font-family: var(--mono); font-size: 12px; color: var(--rose); letter-spacing: .1em; }
.m-menu a:not(.cta):active, .m-menu a:not(.cta):hover { color: var(--rose); }
.m-menu .cta { margin-top: 26px; align-self: flex-start; font-size: 15px; }
.js.motion .m-menu:not([hidden]) a { animation: m-in .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.js.motion .m-menu:not([hidden]) a:nth-child(2) { animation-delay: .05s; }
.js.motion .m-menu:not([hidden]) a:nth-child(3) { animation-delay: .1s; }
.js.motion .m-menu:not([hidden]) a:nth-child(4) { animation-delay: .15s; }
.js.motion .m-menu:not([hidden]) a:nth-child(5) { animation-delay: .2s; }
.js.motion .m-menu:not([hidden]) a:nth-child(6) { animation-delay: .25s; }
.js.motion .m-menu:not([hidden]) a:nth-child(7) { animation-delay: .3s; }
@keyframes m-in { from { opacity: 0; transform: translateY(18px); } }
html.menu-open { overflow: hidden; }
@media (max-width: 960px) {
  .menu-btn { display: flex; }
}
@media (max-width: 760px) {
  .cta-mini { display: none; }
}

/* ─ Reveals ─ */
.js.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.4, 0, .2, 1) var(--d, 0s); }
.js.motion .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chapter-film { height: auto; }
  .stage { position: static; height: auto; min-height: 44svh; overflow: visible; padding-bottom: 24px; }
  .stage img.poster { position: relative; inset: auto; height: 44svh; }
  .stage video.film { display: none; }
  .ov { position: static; opacity: 1 !important; transform: none !important; margin: 16px 24px; max-width: none; text-align: left; color: var(--text); text-shadow: none; }
  .ov0 { padding: 90px 24px 20px; background: none; }
  .hint { display: none; }
  .ov3, .ov3 p { color: var(--muted); }
  .hud-alt, .grain, .hud-rail, .progress-rail { display: none; }
  .marquee-track { flex-wrap: wrap; }
}

/* ─ Cookies : bannière d'opt-in (consentement préalable, CNDP) ─ */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding: 16px var(--pad) calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 8, 15, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(245, 141, 178, .22);
}
.consent[hidden] { display: none; }
/* pendant que la bannière est ouverte, l'indice de défilement remonterait dans les boutons du hero : on le retire */
html.consent-open .hint { opacity: 0; }
@media (max-width: 640px) {
  /* sur petit écran, l'altimètre remonté chevaucherait le texte du hero */
  html.consent-open .hud-alt { opacity: 0; }
  .consent { gap: 10px 16px; padding-top: 12px; }
  .consent p { font-size: 13px; }
  .consent-actions { width: 100%; }
  .consent-yes, .consent-no { flex: 1; }
}
.consent p { margin: 0; font-size: 14px; line-height: 1.5; color: #C3CCDA; max-width: 78ch; }
.consent p a { color: var(--rose); text-decoration-color: rgba(235, 27, 102, .5); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-yes, .consent-no {
  font-family: var(--body); font-weight: 600; font-size: 13.5px; padding: 10px 18px; cursor: pointer; border: 0;
  transition: background .25s, border-color .25s, color .25s;
}
.consent-yes { background: var(--accent-btn); color: #fff; }
.consent-yes:hover { background: var(--accent-btn-hot); }
.consent-no { background: transparent; color: var(--text); border: 1px solid rgba(235, 27, 102, .55); }
.consent-no:hover { border-color: var(--accent-hot); color: var(--rose); }
.consent-yes:focus-visible, .consent-no:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.js.motion .consent:not([hidden]) { animation: consent-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes consent-in { from { transform: translateY(24px); opacity: 0; } }
.cookies-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(235, 27, 102, .5); text-underline-offset: 3px; }
.cookies-btn:hover, .foot-base a:hover { color: var(--rose); }
.cookies-btn:focus-visible, .foot-base a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.foot-base a { color: inherit; text-decoration-color: rgba(235, 27, 102, .5); text-underline-offset: 3px; }
.f-consent a { color: var(--rose); text-decoration-color: rgba(235, 27, 102, .5); text-underline-offset: 3px; }

/* ─ Page charte : contenu long, même identité, menu et pied de page de l'accueil ─ */
.legal { padding: 130px 0 80px; }
.legal .title { font-size: clamp(30px, 4.2vw, 54px); }
.legal .lead { max-width: 60ch; }
.legal-body { max-width: 76ch; margin-top: 44px; font-size: 16px; line-height: 1.7; color: #C3CCDA; }
.legal-body h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(18px, 2vw, 22px); color: var(--text); margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid rgba(147, 161, 184, .16); }
.legal-body h3 { font-family: var(--body); font-weight: 600; font-size: 16.5px; color: var(--text); margin: 24px 0 8px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--rose); text-decoration-color: rgba(235, 27, 102, .5); text-underline-offset: 3px; word-break: break-word; }
.legal-body strong { color: var(--text); font-weight: 600; }
