/* =========================================================================
   AMBITION ESCAPE — V3 « Ultimate Experience »
   Concept : un complexe secret qu'on traverse en descendant la page.
   Chaque section est une « salle » qui s'allume à l'approche.
   ========================================================================= */

/* ---------- Polices auto-hébergées (OFL-1.1, aucune requête externe) ---------- */
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Jetons de la charte (univers sombre assumé, thème unique) ---------- */
:root {
  --noir: #05070A;
  --noir-2: #0B1014;
  --noir-3: #10171C;
  --neon: #39FF88;
  --neon-doux: rgba(57, 255, 136, 0.55);
  --neon-faible: rgba(57, 255, 136, 0.16);
  --neon-trace: rgba(57, 255, 136, 0.08);
  --vert-sombre: #0B3324;
  --blanc: #F5F7F6;
  --texte-2: #C9D2CD;
  --gris: #9BA7A1;
  --gris-3: #7E8B84;
  --ligne: rgba(245, 247, 246, 0.14);
  --ambre: #FFC979;
  --erreur: #FF9C8A;

  --f-titre: "Chakra Petch", "Rajdhani", "Arial Narrow", system-ui, sans-serif;
  --f-texte: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-xs: 0.75rem; --t-s: 0.875rem; --t-m: 1rem; --t-l: 1.125rem;
  --t-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --t-h2: clamp(2rem, 1.3rem + 3vw, 3.6rem);

  --gutter-min: 20px;
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--noir); }
body {
  margin: 0; background: var(--noir); color: var(--blanc);
  font-family: var(--f-texte); font-size: var(--t-m); line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--neon); text-underline-offset: 3px; }
a:hover { color: #B8FFD4; }
h1, h2, h3, h4 { font-family: var(--f-titre); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: 0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--neon); color: var(--noir); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--gutter-min), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter-min), env(safe-area-inset-right, 0px));
}
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--neon); color: var(--noir); padding: 12px 18px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); color: var(--noir); }

/* ---------- Typographie utilitaire ---------- */
.eyebrow { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.24em; text-transform: uppercase; color: var(--neon); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.lead { font-size: var(--t-l); line-height: 1.65; color: var(--texte-2); max-width: 62ch; }
.mono { font-family: var(--f-mono); }
.neon { color: var(--neon); }

/* ---------- Boutons premium ---------- */
.btn {
  --b: var(--ligne);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--f-titre); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blanc); text-decoration: none; background: rgba(11, 16, 20, 0.6);
  border: 1px solid var(--b); cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .15s var(--ease);
}
.btn::before { /* balayage lumineux au survol */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(57,255,136,.28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover { color: var(--blanc); border-color: var(--neon-doux); box-shadow: inset 0 0 22px rgba(57,255,136,.12); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: scale(0.97); }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--primary { --b: var(--neon); color: var(--noir); background: var(--neon); font-weight: 700; box-shadow: 0 0 0 0 rgba(57,255,136,.5), 0 0 32px rgba(57,255,136,.35); }
.btn--primary::before { background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.65) 50%, transparent 75%); }
.btn--primary:hover { color: var(--noir); background: #5CFFA0; box-shadow: 0 0 0 4px rgba(57,255,136,.18), 0 0 48px rgba(57,255,136,.55); }
.btn--primary.is-beacon::before { animation: beacon-sweep 3.4s var(--ease) infinite 2.4s; }
.btn--primary.is-beacon:hover::before { animation: none; }
@keyframes beacon-sweep { 0% { transform: translateX(-120%); } 38%, 100% { transform: translateX(120%); } }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 0.8rem; letter-spacing: 0.12em; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.btn--ghost { background: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.is-pressed { animation: press .35s var(--ease); }
@keyframes press { 40% { transform: scale(.96); } }

/* ---------- Badges de statut ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 10px; border: 1px solid currentColor; line-height: 1; white-space: nowrap; }
.badge--on { color: var(--noir); background: var(--neon); border-color: var(--neon); }
.badge--muted { color: var(--gris); border-color: rgba(155,167,161,.4); }
.badge--demo { color: var(--ambre); background: rgba(255,201,121,.07); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex: 0 0 auto; }
.dot--pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.notice { font-family: var(--f-mono); font-size: var(--t-xs); line-height: 1.6; letter-spacing: 0.04em; color: var(--ambre); border: 1px solid rgba(255,201,121,.45); background: rgba(255,201,121,.06); padding: 10px 14px; }
.notice strong { letter-spacing: 0.12em; }

/* =========================================================================
   INTRODUCTION — activation du système (≈ 2 s, une fois par session)
   ========================================================================= */
.intro { display: none; }
.intro-on .intro {
  display: flex; position: fixed; inset: 0; z-index: 300; background: var(--noir);
  align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  animation: intro-out .55s var(--ease) 1.75s forwards;
}
.intro__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--neon); box-shadow: 0 0 18px var(--neon), 0 0 60px var(--neon); transform: scaleX(0); animation: intro-line .45s var(--ease-out) .05s forwards, intro-line-fade .4s ease .55s forwards; }
.intro__scan { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(57,255,136,.18) 48%, rgba(57,255,136,.4) 50%, rgba(57,255,136,.18) 52%, transparent); transform: translateY(-100%); animation: intro-scan .7s var(--ease) .45s forwards; }
.intro__name { position: relative; text-align: center; max-width: calc(100vw - 32px); font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.9rem, 6.4vw, 5.5rem); letter-spacing: 0.12em; clip-path: inset(0 100% 0 0); animation: intro-reveal .6s var(--ease-out) .75s forwards; text-shadow: 0 0 28px rgba(57,255,136,.45); }
.intro__name span { color: var(--neon); }
.intro__sys { position: relative; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.3em; color: var(--neon); opacity: 0; animation: fade-in .3s ease 1s forwards; }
.intro__pulse { position: absolute; left: 50%; top: 50%; width: 30vmax; height: 30vmax; margin: -15vmax 0 0 -15vmax; border-radius: 50%; background: radial-gradient(circle, rgba(57,255,136,.35), transparent 65%); transform: scale(.2); opacity: 0; animation: intro-pulse .9s var(--ease-out) 1.2s forwards; }
.intro__skip { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 0 16px; background: transparent; border: 1px solid var(--ligne); color: var(--texte-2); font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.18em; cursor: pointer; }
.intro__skip:hover { color: var(--blanc); border-color: var(--neon-doux); }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-line-fade { to { opacity: 0; } }
@keyframes intro-scan { to { transform: translateY(100%); } }
@keyframes intro-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-pulse { 30% { opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes fade-in { to { opacity: 1; } }

/* =========================================================================
   EN-TÊTE — fixe, transparent puis renforcé au défilement
   ========================================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(to bottom, rgba(5,7,10,.65), rgba(5,7,10,0));
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(5,7,10,.94); border-bottom-color: var(--neon-faible); box-shadow: 0 1px 0 rgba(57,255,136,.06), 0 10px 30px rgba(0,0,0,.45); }
.site-header::after { /* fine bordure lumineuse qui court */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 22%;
  background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled::after { opacity: .8; animation: header-run 7s linear infinite; }
@keyframes header-run { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blanc); min-height: 44px; flex: 0 0 auto; }
.brand:hover { color: var(--blanc); }
.brand__mark { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px dashed var(--neon-doux); font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; color: var(--neon); }
.brand__mark::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--neon-faible); animation: mark-breath 4s ease-in-out infinite; }
@keyframes mark-breath { 0%, 100% { opacity: .2; transform: scale(.94); } 50% { opacity: .9; transform: scale(1); } }
.brand__name { font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.16em; white-space: nowrap; }
.brand__name span { color: var(--neon); }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--texte-2); text-decoration: none; font-size: var(--t-s); font-weight: 500; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1px; background: var(--neon); box-shadow: 0 0 8px var(--neon); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav__links a:hover { color: var(--blanc); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--blanc); }
.nav__tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.sound-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--ligne); color: var(--gris); font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .14em; cursor: pointer; transition: color .25s, border-color .25s; }
.sound-toggle:hover { color: var(--blanc); border-color: var(--neon-doux); }
.sound-toggle[aria-pressed="true"] { color: var(--neon); border-color: var(--neon-doux); }
.sound-toggle .spk { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .spk .on { display: none; }
.sound-toggle[aria-pressed="true"] .spk .on { display: inline; animation: pulse 1.6s ease-in-out infinite; }
.sound-toggle[aria-pressed="true"] .spk .off { display: none; }
.menu-btn { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--ligne); cursor: pointer; }
.menu-btn__bars { position: relative; width: 20px; height: 12px; }
.menu-btn__bars::before, .menu-btn__bars::after, .menu-btn__bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--blanc); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-btn__bars::before { top: 0; } .menu-btn__bars span { top: 5px; } .menu-btn__bars::after { top: 10px; }
.menu-open .menu-btn__bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn__bars span { opacity: 0; }
.menu-open .menu-btn__bars::after { top: 5px; transform: rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(5,7,10,.97);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.mobile-menu::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(57,255,136,.12), transparent 70%); }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.mobile-menu ol { list-style: none; display: flex; flex-direction: column; counter-reset: m; position: relative; }
.mobile-menu li { counter-increment: m; border-bottom: 1px solid var(--ligne); opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.menu-open .mobile-menu li { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(2) { transition-delay: .04s; } .menu-open .mobile-menu li:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-menu li:nth-child(4) { transition-delay: .12s; } .menu-open .mobile-menu li:nth-child(5) { transition-delay: .16s; }
.menu-open .mobile-menu li:nth-child(6) { transition-delay: .2s; }
.mobile-menu ol a { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; min-height: 60px; font-family: var(--f-titre); font-weight: 600; font-size: 1.6rem; letter-spacing: .04em; color: var(--blanc); text-decoration: none; }
.mobile-menu ol a::before { content: "0" counter(m); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--neon); letter-spacing: .1em; }
.mobile-menu ol a.is-active { color: var(--neon); }
.mobile-menu__foot { position: relative; margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.mobile-menu__foot .btn { width: 100%; }

/* =========================================================================
   HERO — 5 couches : décor, lumière, particules, HUD, profondeur
   ========================================================================= */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(640px, 94svh, 920px); display: flex; align-items: center; --px: 0; --py: 0; }
.hero__scene { position: absolute; inset: -4%; z-index: -1; pointer-events: none; }
.layer { position: absolute; inset: 0; transform: translate3d(calc(var(--px) * var(--depth, 0) * -1px), calc(var(--py) * var(--depth, 0) * -1px), 0); transition: transform .9s var(--ease-out); will-change: transform; }

/* Couche 1 — complexe secret : plafond, sol, baies de serveurs */
.corridor { position: absolute; inset: 0; perspective: 600px; }
.corridor__floor, .corridor__ceil { position: absolute; left: -40%; right: -40%; height: 52%; background-image: linear-gradient(rgba(57,255,136,.34) 1px, transparent 1px), linear-gradient(90deg, rgba(57,255,136,.2) 1px, transparent 1px); background-size: 70px 70px; }
.corridor__floor { bottom: -6%; height: 60%; transform: rotateX(70deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 80%); mask-image: linear-gradient(to top, #000 10%, transparent 80%); animation: floor-move 3.6s linear infinite; will-change: transform; }
.corridor__ceil { top: -6%; transform: rotateX(-70deg); transform-origin: 50% 0; opacity: .45; -webkit-mask-image: linear-gradient(to bottom, #000 5%, transparent 70%); mask-image: linear-gradient(to bottom, #000 5%, transparent 70%); animation: ceil-move 3.6s linear infinite; will-change: transform; }
@keyframes floor-move { from { transform: rotateX(70deg) translateY(-70px); } to { transform: rotateX(70deg) translateY(0); } }
@keyframes ceil-move { from { transform: rotateX(-70deg) translateY(0); } to { transform: rotateX(-70deg) translateY(-70px); } }
.racks { position: absolute; inset: 12% 0 18%; display: flex; justify-content: space-between; padding-inline: 4%; }
.rack { width: clamp(70px, 10vw, 150px); height: 100%; border: 1px solid rgba(57,255,136,.12); background: repeating-linear-gradient(to bottom, rgba(11,16,20,.95) 0 22px, rgba(57,255,136,.06) 22px 23px), linear-gradient(90deg, rgba(57,255,136,.06), transparent); position: relative; }
.rack--l { transform: perspective(500px) rotateY(38deg); transform-origin: left center; }
.rack--r { transform: perspective(500px) rotateY(-38deg); transform-origin: right center; }
.rack i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); opacity: .2; animation: led 3s steps(2, jump-none) infinite; animation-delay: var(--d, 0s); left: var(--x, 20%); top: var(--y, 10%); }
@keyframes led { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* Couche 1b — le sas au centre */
.sas { position: absolute; left: 50%; top: 50%; width: min(78vmin, 720px); aspect-ratio: 1; transform: translate(-50%, -52%); opacity: .55; }
.sas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sas .ring-svg { will-change: transform; }
.sas .ring--a { animation: spin 60s linear infinite; }
.sas .ring--b { animation: spin 38s linear infinite reverse; }
.sas .ring--c { animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Couche 2 — éclairage volumétrique simulé */
.light { position: absolute; inset: 0; }
.light__halo { position: absolute; left: 50%; top: 46%; width: min(900px, 120vw); height: min(560px, 80vw); transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(57,255,136,.26), rgba(57,255,136,.06) 45%, transparent 70%); animation: halo 7s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.97); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); } }
.light__beam { position: absolute; top: -20%; width: 34vw; max-width: 460px; height: 140%; background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(57,255,136,.20), rgba(57,255,136,.06) 45%, rgba(57,255,136,0) 72%); transform-origin: top center; will-change: transform, opacity; }
.light__beam--l { left: 14%; transform: rotate(16deg); animation: sway-l 11s ease-in-out infinite; }
.light__beam--r { right: 14%; transform: rotate(-16deg); animation: sway-r 13s ease-in-out infinite; }
@keyframes sway-l { 0%, 100% { transform: rotate(14deg); opacity: .7; } 50% { transform: rotate(20deg); opacity: 1; } }
@keyframes sway-r { 0%, 100% { transform: rotate(-14deg); opacity: .8; } 50% { transform: rotate(-21deg); opacity: .55; } }

/* Couche 3 — particules (un seul canvas) */
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 40%, rgba(5,7,10,.88) 100%), linear-gradient(to bottom, rgba(5,7,10,.5), transparent 25%, transparent 70%, var(--noir)); }
.hero__scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px); }
.hero__sweep { position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(to bottom, transparent, rgba(57,255,136,.06), transparent); animation: sweep-y 8s linear infinite; will-change: transform; }
@keyframes sweep-y { from { transform: translateY(-160px); } to { transform: translateY(110vh); } }

/* Couche 4 — HUD périphérique (décoratif, données fictives) */
.hud { position: absolute; inset: calc(var(--header-h) + 22px) max(24px, env(safe-area-inset-right, 0px)) 28px max(24px, env(safe-area-inset-left, 0px)); pointer-events: none; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .16em; color: var(--gris); z-index: 0; }
.hud__c { position: absolute; display: flex; flex-direction: column; gap: 6px; opacity: 0; animation: fade-in .6s ease forwards; animation-delay: calc(var(--base, .2s) + .9s); }
.hud__c b { font-weight: 500; color: var(--neon); }
.hud__c::before { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--neon-doux); border-style: solid; }
.hud__tl { left: 0; top: 0; padding: 10px 0 0 22px; } .hud__tl::before { left: 0; top: 0; border-width: 1px 0 0 1px; }
.hud__tr { right: 0; top: 0; padding: 10px 22px 0 0; text-align: right; } .hud__tr::before { right: 0; top: 0; border-width: 1px 1px 0 0; }
.hud__bl { left: 0; bottom: 0; padding: 0 0 10px 22px; } .hud__bl::before { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.hud__br { right: 0; bottom: 0; padding: 0 22px 10px 0; text-align: right; } .hud__br::before { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.hud__bar { width: 160px; height: 3px; background: rgba(57,255,136,.12); position: relative; overflow: hidden; }
.hud__bar::after { content: ""; position: absolute; inset: 0; background: var(--neon); box-shadow: 0 0 8px var(--neon); transform-origin: left; transform: scaleX(0); animation: load-bar 2.4s var(--ease-out) forwards; animation-delay: calc(var(--base, .2s) + 1.1s); }
@keyframes load-bar { to { transform: scaleX(1); } }

/* Contenu du hero */
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-block: calc(var(--header-h) + 64px) 110px; }
.hero__title { position: relative; isolation: isolate; font-weight: 700; font-size: clamp(3.2rem, 1rem + 10.5vw, 9.4rem); line-height: .9; letter-spacing: .035em; display: flex; flex-direction: column; align-items: center; }
.t-line { display: block; white-space: nowrap; }
.t-line--neon { position: relative; color: var(--neon); text-shadow: 0 0 22px rgba(57,255,136,.55), 0 0 70px rgba(57,255,136,.3); }
.t-line--neon::before { content: ""; position: absolute; inset: -25% -8%; z-index: -1; background: radial-gradient(ellipse at center, rgba(57,255,136,.22), transparent 68%); opacity: .5; animation: neon-breath 5s ease-in-out infinite; animation-delay: calc(var(--base, .2s) + 1.4s); will-change: opacity; }
@keyframes neon-breath { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.ch { display: inline-block; animation: ch-in .9s var(--ease-out) both; animation-delay: calc(var(--base, .2s) + var(--i) * 55ms); }
@keyframes ch-in { from { opacity: 0; transform: translateY(.38em) scaleY(1.25); filter: blur(10px); clip-path: inset(0 0 100% 0); } 60% { opacity: 1; filter: blur(0); } to { opacity: 1; transform: none; filter: none; clip-path: inset(-20% -10% -20% -10%); } }
.hero__title::after { /* balayage lumineux qui traverse le titre */
  content: ""; position: absolute; top: -10%; bottom: -10%; width: 22%; left: -30%;
  background: linear-gradient(100deg, transparent, rgba(230,255,240,.16), transparent); pointer-events: none; will-change: left;
  animation: title-sweep 1.4s var(--ease) forwards; animation-delay: calc(var(--base, .2s) + .8s);
}
@keyframes title-sweep { 0% { left: -30%; opacity: 0; } 15%, 80% { opacity: 1; } 100% { left: 110%; opacity: 0; } }
.hero__title.is-glitch .t-line { animation: none; transform: translateX(2px); text-shadow: -2px 0 rgba(57,255,136,.5), 2px 0 rgba(245,247,246,.25); }
.hero__title.is-glitch .t-line:last-child { transform: translateX(-3px) skewX(-4deg); }
.hero__tagline { font-family: var(--f-titre); font-weight: 600; font-size: clamp(1.05rem, .8rem + 1.2vw, 1.7rem); letter-spacing: .2em; opacity: 0; animation: rise .8s var(--ease-out) forwards; animation-delay: calc(var(--base, .2s) + .7s); }
.hero__intro { max-width: 40rem; font-size: var(--t-l); color: var(--texte-2); opacity: 0; animation: rise .8s var(--ease-out) forwards; animation-delay: calc(var(--base, .2s) + .85s); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; opacity: 0; animation: rise .8s var(--ease-out) forwards; animation-delay: calc(var(--base, .2s) + 1s); }
.hero__status { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 12px 20px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .16em; color: var(--gris); border: 1px solid var(--neon-faible); background: rgba(11,16,20,.72); opacity: 0; animation: rise .8s var(--ease-out) forwards; animation-delay: calc(var(--base, .2s) + 1.2s); }
.hero__status span { display: inline-flex; align-items: center; gap: 8px; }
.hero__status .neon { color: var(--neon); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: .3em; color: var(--gris); text-decoration: none; }
.hero__scroll::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--neon), transparent); animation: scroll-hint 2s ease-in-out infinite; }
@keyframes scroll-hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.intro-on { --base: 1.95s; }

/* Halo de curseur (ordinateur, le curseur natif est conservé) */
.cursor-glow { position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(57,255,136,.06), transparent 60%); transform: translate3d(-999px, -999px, 0); transition: opacity .4s; will-change: transform; }

/* =========================================================================
   SECTIONS — chaque salle a sa mise en scène
   ========================================================================= */
.section { position: relative; padding-block: clamp(80px, 9vw, 140px); }
.section__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 860px; }
.section__head h2 { font-size: var(--t-h2); font-weight: 700; }
.section__head--center { margin-inline: auto; text-align: center; align-items: center; }
.section__index { position: absolute; top: clamp(30px, 4vw, 54px); right: max(20px, env(safe-area-inset-right, 0px)); font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .2em; color: var(--gris-3); }
.divider { position: relative; height: 1px; background: var(--ligne); overflow: hidden; }
.divider::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--neon), transparent); transform: translateX(-100%); }
.divider.is-in::after { animation: divider-run 1.6s var(--ease) forwards; }
@keyframes divider-run { to { transform: translateX(100%); } }

/* Révélations au défilement (le contenu reste visible sans JS) */
.js [data-reveal].is-pending { opacity: 0; }
.js [data-reveal="up"].is-pending { transform: translateY(34px); }
.js [data-reveal="left"].is-pending { transform: translateX(-34px); }
.js [data-reveal="scale"].is-pending { transform: scale(.94); filter: blur(4px); }
.js [data-reveal="mask"].is-pending { clip-path: inset(0 0 100% 0); opacity: 1; }
.js [data-reveal="dark"].is-pending { filter: brightness(.25) blur(2px); opacity: .25; transform: translateY(20px); }
[data-reveal="mask"] { clip-path: inset(-12% -4% -24% -4%); }
[data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out), clip-path 1s var(--ease-out); transition-delay: var(--delay, 0s); }

/* Carte « projecteur » : la lumière suit le pointeur */
.spot { position: relative; isolation: isolate; --mx: 50%; --my: 0%; }
.spot::before { content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none; background: radial-gradient(280px circle at var(--mx) var(--my), rgba(57,255,136,.18), transparent 65%); opacity: 0; transition: opacity .4s; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid transparent; background: radial-gradient(220px circle at var(--mx) var(--my), rgba(57,255,136,.9), transparent 60%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .4s; }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- L'expérience ---------- */
.xp { background: radial-gradient(ellipse 60% 40% at 15% 0%, rgba(57,255,136,.07), transparent 70%), var(--noir); }
.xp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xp-main { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(57,255,136,.35); background: radial-gradient(ellipse 70% 100% at 100% 50%, rgba(57,255,136,.12), transparent 70%), linear-gradient(135deg, var(--noir-2), var(--noir)); overflow: hidden; }
.xp-main__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.xp-main h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 700; }
.xp-main p { color: var(--texte-2); font-size: var(--t-l); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; border: 1px solid var(--ligne); padding: 8px 12px; color: var(--texte-2); }

/* Écran de classement — illustration animée */
.board { position: relative; border: 1px solid var(--neon-faible); background: rgba(5,7,10,.75); padding: 20px; display: flex; flex-direction: column; gap: 14px; font-family: var(--f-mono); min-width: 0; box-shadow: 0 0 60px rgba(57,255,136,.08) inset; }
.board__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--t-xs); letter-spacing: .16em; color: var(--gris); flex-wrap: wrap; }
.board__chrono { font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); letter-spacing: .06em; color: var(--blanc); font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(57,255,136,.35); }
.board__rows { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.board__row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 54px; align-items: center; gap: 12px; font-size: var(--t-s); }
.board__rank { color: var(--neon); }
.board__track { height: 8px; background: rgba(245,247,246,.06); position: relative; overflow: hidden; }
.board__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--vert-sombre), var(--neon)); box-shadow: 0 0 12px rgba(57,255,136,.5); transform-origin: left; transform: scaleX(.04); transition: transform 1.8s var(--ease-out); transition-delay: var(--delay, 0s); }
.is-in .board__fill, .no-io .board__fill { transform: scaleX(var(--v, .5)); }
.board__val { text-align: right; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.board__name { display: block; font-size: var(--t-xs); letter-spacing: .14em; color: var(--gris); margin-bottom: 4px; }
.board__foot { display: flex; justify-content: space-between; gap: 10px; font-size: 0.625rem; letter-spacing: .18em; color: var(--gris-3); }

.xp-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border: 1px solid var(--ligne); background: var(--noir-2); min-height: 220px; transition: transform .45s var(--ease-out), border-color .45s; }
.xp-card:hover { transform: translateY(-4px); border-color: rgba(57,255,136,.3); }
.xp-card h3 { font-size: var(--t-h3); font-weight: 700; }
.xp-card p { color: var(--gris); font-size: 0.95rem; line-height: 1.55; }
.pict { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--neon-faible); color: var(--neon); transition: box-shadow .4s, background-color .4s; }
.pict svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.xp-card:hover .pict { box-shadow: 0 0 22px rgba(57,255,136,.35); background: rgba(57,255,136,.06); }
.xp-card:hover .pict svg { transform: rotate(-8deg) scale(1.1); }
.xp-card__tag { margin-top: auto; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .16em; color: var(--gris-3); }

/* ---------- Univers et missions ---------- */
.univers { background: linear-gradient(180deg, var(--noir), #06100B 45%, var(--noir)); border-block: 1px solid var(--neon-trace); overflow: hidden; }
.univers::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(57,255,136,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(57,255,136,.05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent); }
.mission { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid rgba(57,255,136,.45); background: var(--noir-2); margin-bottom: 18px; transform-style: preserve-3d; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out), box-shadow .6s; }
.mission:hover { box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(57,255,136,.12); }
.mission__body { position: relative; z-index: 1; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mission__title { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 700; letter-spacing: .03em; }
.caret { color: var(--neon); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mission__pitch { color: var(--texte-2); font-size: var(--t-l); }
.placeholder { color: var(--ambre); font-family: var(--f-mono); font-size: var(--t-s); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); list-style: none; }
.specs li { background: var(--noir-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.specs b { font-family: var(--f-titre); font-size: 1.6rem; color: var(--neon); font-weight: 700; line-height: 1.1; }
.specs span { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .14em; color: var(--gris); text-transform: uppercase; }
.mission__visual { position: relative; min-height: 420px; border-left: 1px solid var(--neon-faible); background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(57,255,136,.14), transparent 70%), #04080A; overflow: hidden; transform: translateZ(30px); }
.mission__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route { fill: none; stroke: var(--neon); stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 0 6px rgba(57,255,136,.8)); transition: stroke-dashoffset 2.4s var(--ease); }
.is-in .route, .no-io .route { stroke-dashoffset: 0; }
.node circle.core { fill: var(--noir); stroke: var(--neon); stroke-width: 2; }
.node circle.halo { fill: rgba(57,255,136,.18); transform-box: fill-box; transform-origin: center; animation: node-ping 3.2s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes node-ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
.node text { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; fill: var(--blanc); }
.node text.code { fill: var(--neon); font-size: 11px; }
.mission__visual .scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: var(--neon); box-shadow: 0 0 16px var(--neon); opacity: .5; animation: scan-y 5s ease-in-out infinite; }
@keyframes scan-y { 0%, 100% { top: 6%; } 50% { top: 94%; } }
.mission__hud { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: .18em; color: var(--gris); }
.mission__details { grid-column: 1 / -1; border-top: 1px solid var(--neon-faible); padding: 0 clamp(28px, 4vw, 52px); display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out), padding .6s var(--ease-out); }
.mission__details > div { overflow: hidden; }
.mission.is-open .mission__details { grid-template-rows: 1fr; padding-block: 28px 36px; }
.rooms { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rooms li { border: 1px solid var(--ligne); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; background: rgba(5,7,10,.6); }
.rooms .code { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--neon); letter-spacing: .16em; }
.rooms h4 { font-size: 1.1rem; font-weight: 600; }
.rooms p { font-size: var(--t-s); color: var(--gris); line-height: 1.5; }
.locked-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.locked { position: relative; overflow: hidden; min-height: 180px; padding: 22px 20px; border: 1px dashed rgba(245,247,246,.2); background: rgba(11,16,20,.6); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: border-color .4s; }
.locked::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(245,247,246,.025) 10px 11px); pointer-events: none; }
.locked:hover { border-color: rgba(57,255,136,.35); }
.locked h3 { font-size: 1.15rem; font-weight: 600; color: var(--texte-2); }
.locked__lock { width: 22px; height: 22px; stroke: var(--gris); fill: none; stroke-width: 1.5; }

/* ---------- Formats ---------- */
.formats { background: radial-gradient(ellipse 55% 60% at 0% 20%, rgba(11,51,36,.9), transparent 70%), radial-gradient(ellipse 40% 50% at 100% 100%, rgba(57,255,136,.07), transparent 70%), var(--noir); }
.formats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.format { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; min-height: 200px; border: 1px solid var(--ligne); background: rgba(11,16,20,.82); transition: transform .45s var(--ease-out), border-color .45s; }
.format:hover { transform: translateY(-4px); border-color: rgba(57,255,136,.3); }
.format__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.format__top svg { width: 28px; height: 28px; stroke: var(--neon); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.format h3 { font-size: var(--t-h3); font-weight: 700; }
.format p { color: var(--gris); font-size: .95rem; line-height: 1.55; }
.format--feature { grid-column: span 2; justify-content: space-between; gap: 26px; padding: clamp(28px, 4vw, 48px); border-color: rgba(57,255,136,.45); background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(57,255,136,.18), transparent 60%), linear-gradient(160deg, #0A1A13, var(--noir-2)); overflow: hidden; position: relative; }
.format--feature h3 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.2rem); line-height: 1; }
.format--feature p { font-size: var(--t-l); color: var(--texte-2); max-width: 46ch; }
.format--feature .rings { position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; pointer-events: none; opacity: .5; }
.format--feature .rings circle { fill: none; stroke: var(--neon); transform-box: fill-box; transform-origin: center; }

/* ---------- Comment jouer — parcours animé ---------- */
.howto { overflow: hidden; }
.timeline { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding-top: 34px; --progress: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 12px; left: 10%; right: 10%; height: 2px; }
.timeline::before { background: var(--ligne); }
.timeline::after { background: var(--neon); box-shadow: 0 0 14px var(--neon); transform-origin: left; transform: scaleX(var(--progress)); transition: transform .9s var(--ease-out); }
.no-io .timeline { --progress: 1; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.step__node { position: absolute; top: -34px; width: 26px; height: 26px; border: 1px solid var(--ligne); background: var(--noir); display: grid; place-items: center; transition: border-color .5s, box-shadow .5s; transform: rotate(45deg); }
.step__node::after { content: ""; width: 8px; height: 8px; background: var(--gris-3); transition: background-color .5s, box-shadow .5s; }
.step.is-on .step__node, .no-io .step .step__node { border-color: var(--neon); box-shadow: 0 0 18px rgba(57,255,136,.5); }
.step.is-on .step__node::after, .no-io .step .step__node::after { background: var(--neon); box-shadow: 0 0 10px var(--neon); }
.step__num { margin-top: 18px; font-family: var(--f-titre); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--gris-3); transition: color .5s, text-shadow .5s; }
.step.is-on .step__num, .no-io .step .step__num { color: var(--neon); text-shadow: 0 0 24px rgba(57,255,136,.5); }
.step h3 { font-size: 1.15rem; font-weight: 700; }
.step p { font-size: var(--t-s); color: var(--gris); max-width: 24ch; }
.screens { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.screen { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--ligne); background: var(--noir-2); }
.screen svg { width: 34px; height: 34px; flex: 0 0 auto; stroke: var(--neon); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.screen h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.screen p { font-size: var(--t-s); color: var(--gris); }

/* ---------- FAQ ---------- */
.faq { background: #070B0E; border-top: 1px solid var(--neon-trace); }
.faq__list { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--neon-faible); }
.faq__item { border-bottom: 1px solid var(--neon-faible); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding: 18px 0; font-family: var(--f-titre); font-weight: 600; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); letter-spacing: .02em; transition: color .25s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--neon); }
.faq__sign { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--neon); transition: transform .35s var(--ease-out); }
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__item p { padding: 0 0 24px; color: var(--texte-2); max-width: 70ch; animation: rise .45s var(--ease-out); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 30px); }
.contact-aside h2 { font-size: var(--t-h2); font-weight: 700; }
.form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--neon-faible); background: linear-gradient(160deg, rgba(11,16,20,.95), rgba(5,7,10,.95)); }
.form::before { content: "TERMINAL DE CONTACT"; position: absolute; top: -9px; left: 22px; padding: 0 8px; background: var(--noir); font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: .22em; color: var(--neon); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: var(--t-s); font-weight: 500; color: var(--texte-2); }
.field .opt { color: var(--gris-3); font-weight: 400; }
.input { width: 100%; min-height: 52px; padding: 14px 16px; background: var(--noir); color: var(--blanc); border: 1px solid rgba(245,247,246,.2); font: inherit; font-size: 16px; border-radius: 0; transition: border-color .25s, box-shadow .25s, background-color .25s; -webkit-appearance: none; appearance: none; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--neon) 50%), linear-gradient(135deg, var(--neon) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.55; }
.input:hover { border-color: rgba(245,247,246,.35); }
.input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(57,255,136,.16), 0 0 26px rgba(57,255,136,.18); background: #070C0E; }
.input[aria-invalid="true"] { border-color: var(--erreur); }
.field__error { font-size: var(--t-s); color: var(--erreur); min-height: 0; }
.field__error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-s); line-height: 1.55; color: var(--gris); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--neon); flex: 0 0 auto; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.form__status { grid-column: 1 / -1; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--neon-faible); background: #030405; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr); gap: 40px; padding-block: 64px 44px; }
.afa { display: flex; flex-direction: column; gap: 16px; }
.afa__sig { display: flex; align-items: center; gap: 14px; }
.logo-slot { width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; text-align: center; border: 1px dashed rgba(245,247,246,.4); font-family: var(--f-mono); font-size: 9px; color: var(--gris); line-height: 1.3; }
.afa__sig span { font-family: var(--f-titre); font-weight: 600; font-size: var(--t-s); letter-spacing: .22em; color: var(--texte-2); line-height: 1.5; }
.afa p { font-size: var(--t-s); color: var(--gris); max-width: 46ch; }
.footer-col h2 { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .22em; color: var(--neon); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texte-2); text-decoration: none; font-size: var(--t-s); }
.footer-col a:hover { color: var(--neon); }
.prefs { display: flex; flex-direction: column; gap: 8px; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 44px; width: 100%; padding: 0; background: none; border: none; cursor: pointer; color: var(--texte-2); font-size: var(--t-s); text-align: left; }
.pref__sw { position: relative; width: 42px; height: 22px; flex: 0 0 auto; border: 1px solid var(--ligne); background: var(--noir-2); transition: border-color .25s, background-color .25s; }
.pref__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--gris); transition: transform .3s var(--ease-out), background-color .25s; }
.pref[aria-pressed="true"] .pref__sw { border-color: var(--neon-doux); background: rgba(57,255,136,.1); }
.pref[aria-pressed="true"] .pref__sw::after { transform: translateX(20px); background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.footer-bottom { border-top: 1px solid rgba(245,247,246,.08); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; color: var(--gris-3); }

/* =========================================================================
   PAGES TERMINAL (connexion) ET MISSION CONTROL (espace joueur)
   ========================================================================= */
.app-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(5,7,10,.88); border-bottom: 1px solid var(--neon-faible); }
body.app-page::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--noir); }
.app-header .nav { min-height: 64px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--texte-2); text-decoration: none; font-size: var(--t-s); }
.back-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .3s var(--ease-out); }
.back-link:hover { color: var(--blanc); }
.back-link:hover svg { transform: translateX(-3px); }

.terminal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: calc(100svh - 65px); }
.vault { position: relative; overflow: hidden; isolation: isolate; border-right: 1px solid var(--neon-faible); background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(57,255,136,.16), transparent 70%), #030608; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.vault__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(57,255,136,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(57,255,136,.06) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent); }
.vault__door { position: relative; width: min(520px, 100%); aspect-ratio: 1; }
.vault__door svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vault .ring-svg { will-change: transform; }
.vault .r1 { animation: spin 40s linear infinite; }
.vault .r2 { animation: spin 26s linear infinite reverse; }
.vault .r3 { animation: spin 70s linear infinite; }
.vault .lock-seg { transition: stroke .6s, opacity .6s; }
.vault__scanner { position: absolute; left: 14%; right: 14%; height: 3px; top: 22%; background: var(--neon); box-shadow: 0 0 20px var(--neon), 0 0 60px rgba(57,255,136,.6); border-radius: 2px; animation: vault-scan 3.4s ease-in-out infinite; opacity: .8; will-change: transform; }
.vault__door { container-type: size; }
@keyframes vault-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(54cqh); } }
.vault__label { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-mono); letter-spacing: .3em; font-size: var(--t-xs); color: var(--neon); white-space: nowrap; text-shadow: 0 0 12px rgba(57,255,136,.6); }
.vault__label small { color: var(--gris); letter-spacing: .2em; font-size: 0.625rem; }
.vault__log { position: absolute; left: 24px; top: 24px; display: flex; flex-direction: column; gap: 5px; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .12em; color: var(--gris); }
.vault__log span { opacity: 0; animation: fade-in .3s ease forwards; }
.vault__log span:nth-child(1) { animation-delay: .3s; } .vault__log span:nth-child(2) { animation-delay: .7s; }
.vault__log span:nth-child(3) { animation-delay: 1.1s; } .vault__log span:nth-child(4) { animation-delay: 1.5s; color: var(--neon); }
.vault__meta { position: absolute; right: 24px; top: 24px; text-align: right; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: .18em; color: var(--gris-3); line-height: 1.8; }
.vault.is-focus .vault__scanner { animation-duration: 1.6s; }
.vault.is-focus .lock-seg { stroke: var(--neon); opacity: 1; }
.vault.is-busy .r1, .vault.is-busy .r2 { animation-duration: 3s; }

.access { display: flex; align-items: center; justify-content: center; padding: 48px max(20px, env(safe-area-inset-right, 0px)) 56px max(20px, env(safe-area-inset-left, 0px)); }
.access__panel { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.access h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem); font-weight: 700; letter-spacing: .03em; }
.access__lead { color: var(--texte-2); }
.access form { display: flex; flex-direction: column; gap: 18px; }
.pw { display: flex; border: 1px solid rgba(245,247,246,.2); background: var(--noir); transition: border-color .25s, box-shadow .25s; }
.pw:focus-within { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(57,255,136,.16), 0 0 26px rgba(57,255,136,.18); }
.pw.is-invalid { border-color: var(--erreur); }
.pw .input { border: none; box-shadow: none; min-width: 0; flex: 1 1 auto; }
.pw .input:focus { box-shadow: none; }
.pw button { width: 54px; flex: 0 0 auto; background: none; border: none; border-left: 1px solid rgba(245,247,246,.14); color: var(--gris); cursor: pointer; display: grid; place-items: center; }
.pw button:hover { color: var(--neon); }
.pw button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(5,7,10,.3); border-top-color: var(--noir); border-radius: 50%; animation: spin .8s linear infinite; }
.result { border-left: 2px solid var(--neon); padding: 6px 0 6px 14px; display: flex; flex-direction: column; gap: 8px; color: var(--texte-2); font-size: var(--t-s); animation: rise .4s var(--ease-out); }
.result--error { border-left-color: var(--erreur); color: #FFD3CA; }
.help { font-size: var(--t-s); color: var(--gris); border-top: 1px solid var(--ligne); padding-top: 18px; }

/* Mission control */
.mc { padding-block: 40px 72px; display: flex; flex-direction: column; gap: 28px; }
.mc__welcome { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.mc__hello { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--neon-faible); background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(57,255,136,.14), transparent 60%), var(--noir-2); display: flex; flex-direction: column; gap: 14px; }
.mc__hello h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; }
.mc__hello p { color: var(--texte-2); }
.mc__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.stat { background: var(--noir-2); padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.stat b { font-family: var(--f-titre); font-size: 2.2rem; line-height: 1; color: var(--neon); font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .14em; color: var(--gris); text-transform: uppercase; }
.mc__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.mc__bar h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); font-weight: 700; }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.game { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 22px; border: 1px solid var(--ligne); background: var(--noir-2); overflow: hidden; }
.game--open { border-color: rgba(57,255,136,.55); background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(57,255,136,.14), transparent 65%), var(--noir-2); }
.game--open::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--neon), transparent); animation: header-run 4s linear infinite; }
.game__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.game__when { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--gris); }
.game h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: .03em; }
.game__session { color: var(--texte-2); font-size: var(--t-s); margin-top: 4px; }
.game dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.game dt { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: .14em; color: var(--gris-3); }
.game dd { margin: 2px 0 0; font-size: var(--t-s); }
.game .btn { width: 100%; margin-top: auto; }
.game--done { opacity: .78; }
.mc__lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panel { padding: 24px; border: 1px solid var(--ligne); background: var(--noir-2); display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .22em; color: var(--neon); }
.panel p, .panel li { font-size: var(--t-s); color: var(--texte-2); }
.panel ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.install-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.install-tabs button { min-height: 40px; padding: 0 14px; background: transparent; border: 1px solid var(--ligne); color: var(--gris); font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; cursor: pointer; }
.install-tabs button[aria-selected="true"] { color: var(--neon); border-color: var(--neon-doux); }

/* Transition immersive vers la partie */
.warp { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--noir); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; padding: 24px; }
.warp.is-on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.warp__doors { position: absolute; inset: 0; display: flex; pointer-events: none; }
.warp__doors i { flex: 1; background: linear-gradient(90deg, #070C0E, #0B1014); border-right: 1px solid var(--neon-faible); transform: translateX(0); }
.warp.is-on .warp__doors i:first-child { animation: door-l 1.1s var(--ease-out) .3s forwards; }
.warp.is-on .warp__doors i:last-child { border-right: none; border-left: 1px solid var(--neon-faible); animation: door-r 1.1s var(--ease-out) .3s forwards; }
@keyframes door-l { to { transform: translateX(-100%); } }
@keyframes door-r { to { transform: translateX(100%); } }
.warp__box { position: relative; max-width: 460px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; }
.warp.is-on .warp__box { animation: rise .5s var(--ease-out) 1.1s forwards; }
.warp__box h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.warp__box p { color: var(--texte-2); }

/* ---------- Pages simples (404, légal) ---------- */
.simple { min-height: calc(100svh - 65px); display: flex; align-items: center; padding-block: 64px; }
.legal { padding-block: 56px 90px; max-width: 820px; }
.legal h1 { font-size: var(--t-h2); margin-bottom: 18px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--texte-2); }
.legal ul { padding-left: 1.2em; }
.todo { color: var(--ambre); font-family: var(--f-mono); font-size: var(--t-s); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
  .nav__links a { padding: 0 9px; }
  .rooms, .locked-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .nav__links, .nav__tools .btn--connect { display: none; }
  .menu-btn { display: inline-flex; }
  .xp-grid, .formats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-main { grid-template-columns: minmax(0, 1fr); }
  .mission { grid-template-columns: minmax(0, 1fr); }
  .mission__visual { border-left: none; border-top: 1px solid var(--neon-faible); min-height: 340px; transform: none; }
  .format--feature { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid .afa { grid-column: 1 / -1; }
  .terminal { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .vault { border-right: none; border-bottom: 1px solid var(--neon-faible); min-height: 360px; padding: 32px 16px; }
  .vault__door { width: min(300px, 78vw); }
  .mc__welcome, .mc__lower { grid-template-columns: minmax(0, 1fr); }
  .hud__tr, .hud__br { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 0; padding-left: 52px; }
  .timeline::before, .timeline::after { top: 6px; bottom: 6px; left: 12px; right: auto; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(var(--progress)); }
  .step { align-items: flex-start; text-align: left; }
  .step__node { top: 4px; left: -52px; }
  .step__num { margin-top: 0; font-size: 2rem; }
  .step p { max-width: none; }
  .screens { grid-template-columns: minmax(0, 1fr); }
  .rooms, .locked-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games { grid-template-columns: minmax(0, 1fr); }
  .racks { display: none; }
  .light__beam { filter: none; opacity: .6; }
  .hud__bl { display: none; }
  .hud { font-size: 0.625rem; }
  .sound-toggle .label { display: none; }
}
@media (max-width: 560px) {
  .intro__name span { display: block; }
  .hud__tl span:last-child { display: none; }
  .hud__tl { padding-top: 4px; }
  .eyebrow--afa { flex-direction: column; gap: 10px; text-align: center; letter-spacing: .2em; line-height: 1.7; }
  .eyebrow--afa .afa-mini { width: 40px; height: 40px; }
  .xp-grid, .formats-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .hero__ctas { flex-direction: column; width: 100%; max-width: 360px; }
  .hero__ctas .btn { width: 100%; }
  .hero__content { gap: 22px; padding-block: calc(var(--header-h) + 72px) 96px; }
  .hero__intro { font-size: var(--t-m); }
  .hero__status { gap: 6px 14px; padding: 10px 14px; font-size: 0.625rem; }
  .sas { width: 120vw; opacity: .4; }
  .rooms { grid-template-columns: minmax(0, 1fr); }
  .locked-grid { grid-template-columns: minmax(0, 1fr); }
  .locked { min-height: 0; flex-direction: row; align-items: center; padding: 18px; }
  .specs b { font-size: 1.35rem; }
  .brand__name { font-size: .95rem; letter-spacing: .12em; }
  .brand__mark { display: none; }
  .section__index { display: none; }
  .vault__log, .vault__meta { display: none; }
  .mc__stats .stat b { font-size: 1.8rem; }
}
@media (max-width: 380px) { .brand__name { font-size: .88rem; } :root { --gutter-min: 16px; } }

/* Appareils tactiles : pas de survol simulé coûteux */
@media (hover: none) {
  .spot::before, .spot::after, .cursor-glow { display: none; }
  .layer { transition: none; }
  .hero__scene .layer--door { animation: drift 18s ease-in-out infinite; }
}
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0) scale(1.02); } }

/* =========================================================================
   MOUVEMENT RÉDUIT — système (prefers-reduced-motion) ou réglage du pied de page
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
.fx-off *, .fx-off *::before, .fx-off *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
.fx-off .hero__particles, .fx-off .cursor-glow, .fx-off .hero__sweep, .fx-off .light__beam { display: none; }
.fx-off [data-reveal].is-pending { opacity: 1; transform: none; filter: none; clip-path: none; }

/* Saisie du code de session */
.code-input { font-family: var(--f-mono); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); letter-spacing: .32em; text-align: center; text-transform: uppercase; min-height: 66px; }
.code-input::placeholder { color: var(--gris-3); letter-spacing: .2em; }
.vault.is-ok .lock-seg { stroke: var(--neon); opacity: 1; }
.vault.is-ok .vault__scanner { animation-duration: .9s; }

/* Logo officiel AFA */
.afa-logo { width: 72px; height: 72px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 0 14px rgba(57,255,136,.18)); }
.afa-sig { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .2em; color: var(--gris-3); }
.afa-sig img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.afa-logo { width: 72px; height: 72px; }
.afa-sig picture, .afa-sig img { width: 40px; height: 40px; }
.eyebrow--afa { gap: 12px; }
.eyebrow--afa::before { display: none; }
.eyebrow--afa .afa-mini { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(57,255,136,.25)); }
picture { display: contents; }
