/* ═══════════════════════════════════════════════════════════════
   KAEL REFLEX — landing
   Monde 05 « Le silence » (design-dna.html, re-verrouillé 2026-09-10 —
   remplace le Monde ⑦ « Réflexe » rouge du 22 août)
   Registre : zéro accent chromatique, un seul ton froid décliné en
   opacité — ancré sur HackFirst.io (CSSDA Website of the Day)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ═══ Palette « Le silence » — identique a l'app (re-verrouillee le
     2026-09-10, remplace le NOIR · ROUGE · CREME du 27 aout). La landing
     et le produit doivent etre le meme monde : un visiteur qui passe de
     l'une a l'autre ne doit pas sentir de couture.

     UN SEUL TON froid (#e9f7fc, Monde 05 "Le silence", ancre sur
     HackFirst.io) decline tout en opacite — voir l'entete de
     ../app/public/styles.css pour le detail de la recherche qui a fait
     abandonner le rouge (1 seul site sur 12 sites sombres primes met sa
     couleur de marque dans le CTA ; l'accent rouge mesurait 3,00:1 sur
     la carte, sous AA). */
  --bg: #000000;
  --bg-2: #050505;
  --s1: #0e0f10;
  --s1-hi: #141416;
  --s2: #1c1d1f;
  --s3: #26282b;
  --line: rgba(233, 247, 252, 0.1);
  --line-2: rgba(233, 247, 252, 0.2);

  --accent: #e9f7fc;
  --accent-2: #e9f7fc;
  --accent-deep: rgba(233, 247, 252, 0.7);
  --accent-dim: rgba(233, 247, 252, 0.1);
  --accent-glow: rgba(233, 247, 252, 0.18);
  --vin: #e9f7fc;
  --vin-clair: #e9f7fc;
  --vin-fonce: #e9f7fc;

  /* Un seul ton : plus de famille secondaire distincte du texte/accent. */
  --creme: #e9f7fc;
  --creme-dim: rgba(233, 247, 252, 0.08);
  --creme-ligne: rgba(233, 247, 252, 0.34);

  /* Texte pose SUR une surface accent pleine (CTA) : fond clair, texte
     fonce — le pattern HackFirst, jamais l'inverse. */
  --sur-vin: #000000;

  /* Lueurs ambiantes : la meme regle, encore plus faible. Un halo blanc
     a peine perceptible, jamais une brume coloree. */
  --halo-1: rgba(233, 247, 252, 0.06);
  --halo-2: rgba(233, 247, 252, 0.03);

  /* Zero degrade de marque chez HackFirst — les tokens restent (pour ne
     pas toucher chaque regle consommatrice) mais resolvent en aplat. */
  --grad-vin: linear-gradient(140deg, #e9f7fc 0%, #e9f7fc 100%);
  --grad-rouge: linear-gradient(150deg, #e9f7fc 0%, #e9f7fc 100%);
  --text: #e9f7fc;
  --text-2: #8a99b8;
  --text-3: #6c7690;

  /* UNE seule courbe d'easing pour tout le site (grammaire Ayzz §18) */
  --ease: cubic-bezier(0.19, 1, 0.22, 1);

  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  /* échelle typo fluide — jamais une taille devinée (règle T13 / Ayzz) */
  --fs-eyebrow: 11px;
  --fs-body: clamp(15px, 1.05vw, 17px);
  --fs-lede: clamp(17px, 1.4vw, 20px);
  --fs-h3: clamp(18px, 1.5vw, 21px);
  --fs-h2: clamp(30px, 4.2vw, 52px);
  /* ⚠️ plafonné : à 82px le titre prenait 3 lignes et poussait l'appareil
     SOUS la ligne de flottaison — or il doit se voir dès l'arrivée. */
  --fs-h1: clamp(34px, 4.4vw, 58px);
  --fs-giant: clamp(44px, 8vw, 104px);
}

* { box-sizing: border-box; }
/* le clip doit etre sur html AUSSI : le mot fantome du hero deborde sinon
   la largeur du document sur mobile (overflowX vu a la capture 390) */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════ LOADER D'INTRO ═══════════════════
   N'attend AUCUNE librairie : tout en CSS, il apparaît dès que la feuille
   de style est là. GSAP charge en parallèle pour le reste de la page. */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  overflow: hidden;
}
/* halo qui respire derrière le tracé */
.loader::before {
  content: ""; position: absolute; width: 70vw; height: 46vh; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-dim) 0%, transparent 70%);
  filter: blur(40px);
  animation: ldGlow 3.4s var(--ease) forwards;
}
body.loading { overflow: hidden; }

.loader-stage {
  position: relative; width: min(920px, 86vw);
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  animation: ldContract 0.95s var(--ease) 2.45s forwards;
}
.loader-trace { width: 100%; height: auto; display: block; overflow: visible; }
.loader-trace path {
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 22px var(--accent));
  animation: ldDraw 1.55s cubic-bezier(.66,0,.34,1) forwards;
}
.loader-text { text-align: center; }
.loader-text p { margin: 0; opacity: 0; }
.lt1 {
  font-size: clamp(22px, 3.2vw, 38px); font-weight: 750; letter-spacing: -.02em;
  animation: ldUp 0.8s var(--ease) 1.05s forwards;
}
.lt2 {
  font-size: clamp(13px, 1.3vw, 16px); color: var(--text-2); margin-top: 10px !important;
  animation: ldUp 0.8s var(--ease) 1.45s forwards;
}
.loader-skip {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  background: none; border: 1px solid var(--line); color: var(--text-3);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  min-height: 38px; padding: 0 18px; border-radius: 100px; cursor: pointer;
  opacity: 0; animation: ldUp .5s ease 1.1s forwards;
}
.loader-skip:hover { border-color: var(--accent); color: var(--text); }

@keyframes ldDraw { to { stroke-dashoffset: 0; } }
@keyframes ldUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ldGlow { 0% { opacity: 0; transform: scale(.85); } 40% { opacity: 1; transform: scale(1); } 100% { opacity: .25; transform: scale(1.05); } }
/* la contraction : le tracé se recompose en la marque (§17 Ayzz) */
@keyframes ldContract { to { transform: scale(.075) translateY(-40px); opacity: 0; } }

/* sortie du rideau — déclenchée en JS */
.loader.out {
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  opacity: 0; transform: scale(1.06); pointer-events: none;
}
.loader.done { display: none; }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}
@media (max-width: 620px) {
  .loader-stage { gap: 18px; }
  .loader-skip { bottom: calc(24px + env(safe-area-inset-bottom)); }
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- primitives ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  color: var(--text-2);
  text-transform: uppercase;
  margin: 0 0 16px;
}
h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 18px;
}
h2.big { font-size: var(--fs-giant); }
h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.01em; margin: 0 0 8px; }
p { margin: 0 0 16px; }

/* ACCENT — budget serré.
   Mesure Dr. Squatch (45 frames) : l'orange d'action n'occupe que ~1,3 % de la surface.
   Six mots géants en rouge plein faisaient exploser ce budget (défaut vu au screenshot).
   Le mot reste blanc, il reçoit un SEGMENT DE LIGNE accent dessous — brand-native,
   et ça prolonge le concept au lieu de le diluer. Le rouge plein est réservé au CTA final. */
.acc {
  color: var(--text);
  position: relative;
  white-space: nowrap;
}
.acc::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.1em;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.final .acc { color: var(--accent); }
.final .acc::after { display: none; }

/* reveal : combo opacity + translate, jamais une seule propriété (Ayzz §18) */
.reveal { opacity: 0; transform: translateY(18px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  background: rgba(19, 19, 19, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.mark {
  width: 26px; height: 26px; border-radius: 6px; background: var(--s2);
  display: grid; place-items: center; flex-shrink: 0;
}
.mark svg { width: 16px; height: 16px; }
.mark.sm { width: 22px; height: 22px; }
.mark.sm svg { width: 13px; height: 13px; }
.nav-cta {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-2); text-decoration: none;
  border: 1px solid var(--line); border-radius: 100px;
  min-height: 38px; padding: 0 16px;
  display: inline-flex; align-items: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { border-color: var(--accent); color: var(--text); }

/* ---------- 01 · HERO ---------- */
/* padding resserré : tout le bloc texte doit tenir dans le premier écran
   ET laisser voir le haut de l'appareil. */
.hero { padding: 104px 24px 70px; max-width: 1140px; margin: 0 auto; position: relative; }

/* ATMOSPHÈRE — la leçon principale prise sur taurusarena : l'accent n'est pas
   posé sur des éléments, il ÉCLAIRE la scène. Dégradé « source de lumière »
   (technique Ayzz §3 : du clair au foncé, beaucoup de flou). */
.atmo {
  position: absolute;
  /* ⚠️ `inset: -50vw` debordait horizontalement (overflowX vu a la capture).
     Meme technique que la ligne : pleine largeur SANS creer de scroll. */
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(58% 46% at 50% 34%, var(--accent-dim) 0%, var(--accent-dim) 42%, transparent 72%),
    radial-gradient(34% 26% at 50% 26%, var(--accent-dim) 0%, transparent 70%);
  filter: blur(28px);
}

/* ⚠️ RETIRÉS (audit JOBS-PAR-SECTION) : le mot fantôme « KAEL » et les points HUD.
   Ils ne démontraient rien — le nom est déjà dans la nav, et les points étaient
   du vocabulaire « instrument » emprunté sans qu'il serve le travail du hero. */

/* hero CENTRÉ : le regard descend en ligne droite vers le produit */
.hero-inner {
  /* élargi pour que « Ton jugement, jamais. » tienne sur UNE ligne (2 au total) */
  max-width: 880px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--text-2); text-decoration: none;
  background: var(--s1); border: 1px solid var(--line);
  border-radius: 100px; min-height: 34px; padding: 0 14px;
  margin-bottom: 26px;
  transition: border-color .25s ease, color .25s ease;
}
.pill:hover { border-color: var(--line-2); color: var(--text); }
.pill b {
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  color: var(--accent); font-weight: 500;
}
.spike-word { position: relative; display: inline-block; }
/* LA LIGNE — le geste signature : elle spike sous le mot accent (Ayzz move #35) */
.ligne-hero {
  position: relative; height: 44px; margin: 2px 0 4px;
  width: 100vw; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.ligne-hero svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* le motif signature est traité comme une SOURCE DE LUMIÈRE (lecture taurusarena) :
   la ligne rayonne au lieu d'être un simple trait de couleur */
.ligne-hero path {
  opacity: 0.95;
  filter: drop-shadow(0 0 5px var(--accent))
          drop-shadow(0 0 18px var(--accent-dim));
}
.ligne-final svg { overflow: visible; }
.ligne-final path {
  filter: drop-shadow(0 0 6px var(--accent))
          drop-shadow(0 0 22px var(--accent));
}

.lede { font-size: var(--fs-lede); color: var(--text-2); max-width: 580px; margin: 0 0 24px; }
.lede b { color: var(--text); }
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.btn-primary {
  background: var(--grad-vin); color: var(--sur-vin); text-decoration: none;
  font-weight: 600; font-size: 15px;
  min-height: 52px; padding: 0 28px; border-radius: 100px;
  display: inline-flex; align-items: center;
  transition: transform 0.2s var(--ease), filter 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost {
  color: var(--text-2); text-decoration: none; font-size: 15px;
  min-height: 52px; display: inline-flex; align-items: center; padding: 0 6px;
  transition: color 0.2s ease;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost .arrow { margin-left: 8px; transition: transform 0.25s var(--ease); display: inline-block; }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.trust { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-3); margin: 0; }

/* ⭐ LE PRODUIT EN GRAND dans le hero.
   Le travail du hero est de rendre le mécanisme lisible en 3 secondes :
   l'ancien encart obligeait à plisser les yeux. Ici il domine la moitié basse. */
.hero-device {
  margin: 40px auto 0;
  display: grid; place-items: center;
  perspective: 2200px;
  position: relative;
}
.hd-glow {
  position: absolute; width: 130%; height: 78%; border-radius: 50%;
  background: radial-gradient(50% 46% at 50% 52%, var(--accent-dim) 0%, var(--accent-dim) 46%, transparent 72%);
  filter: blur(40px); pointer-events: none;
}
/* presque de face, léger basculement — on privilégie la LISIBILITÉ de l'écran */
.device-hero {
  width: 366px; height: 748px;
  transform: rotateX(7deg) rotateY(-5deg) rotateZ(0.8deg);
}
.device-hero .ui { padding: 40px 16px 16px; }
.device-hero .u,
.device-hero .o p,
.device-hero .lect { font-size: 13px; }
.device-hero .o span { font-size: 8px; }
.device-hero .ui-head b { font-size: 14px; }
.device-hero .notch { width: 120px; height: 29px; }
.device-hero .ui-bar i { height: 34px; }
.device-hero .ui-bar b { width: 34px; height: 34px; }

/* (ancien encart — conservé pour compat, plus utilisé dans le hero) */
.demo-wrap { margin-top: 64px; perspective: 1600px; }
.demo {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  max-width: 620px;
  transform: rotateX(9deg) rotateY(-7deg) rotateZ(0.6deg);
  transform-origin: 50% 0;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.demo-head {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.demo-title { font-size: 13.5px; font-weight: 600; }
.demo-tag {
  margin-left: auto; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.13em; color: var(--text-3);
}
.demo-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.d-user {
  align-self: flex-end; max-width: 84%;
  background: var(--grad-vin); color: var(--sur-vin);
  padding: 10px 14px; border-radius: 13px; border-bottom-right-radius: 4px;
  font-size: 14px; line-height: 1.5;
}
.d-think { height: 24px; width: 120px; opacity: 0; }
.d-think svg { width: 100%; height: 100%; }
.d-spike { opacity: 0; }
.d-opts { display: flex; flex-direction: column; gap: 8px; }
.d-opt {
  background: var(--s2); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 14px;
  opacity: 0; transform: translateY(8px);
}
.d-badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em;
  padding: 3px 8px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--text-2); display: inline-block; margin-bottom: 7px;
}
.d-badge.juste { border-color: var(--accent); color: var(--text); }
.d-badge.audace { border-color: var(--accent-dim); color: var(--accent-2); }
.d-opt p { margin: 0; font-size: 14px; line-height: 1.5; }

/* ---------- 02 · PROBLÈME (pin + barre qui grandit) ---------- */
/* Mécanique portée de « Scroll Reveal Content A » (21st.dev / @abui, id 19203) :
   sticky 100vh + spacer, barre verticale dont la hauteur suit la progression par tranches. */
.pin-wrap { position: relative; }
.pin-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.pin-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px;
  width: 100%; align-items: center;
}
.pin-left h2 { margin-bottom: 10px; }
.pin-note { color: var(--text-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
/* la pile occupe une vraie hauteur : sinon le 100vh laisse un trou vide
   (defaut vu au screenshot — le gate Ayzz rejette le vide non ancre) */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.step { display: grid; grid-template-columns: 42px 2px 1fr; gap: 18px; align-items: start; opacity: 0.32; transition: opacity 0.4s ease; }
.step.on { opacity: 1; }
.step-n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-2); padding-top: 3px; }
/* hauteur calibree : assez pour remplir le 100vh sans deborder (les deux etats
   ont ete vus a la capture — 74px laissait un trou, 122px coupait l'etape 01) */
.step-bar { position: relative; width: 2px; height: 100%; min-height: 92px; background: var(--line); }
.step-bar i { position: absolute; inset: 0 0 auto 0; width: 2px; height: 0%; background: var(--accent); display: block; }
.step-txt h3 { margin-bottom: 5px; }
.step-txt p { color: var(--text-2); margin: 0; }
.pin-spacer { height: 260vh; }

/* ---------- 03 · MÉCANISME ---------- */
.mecanisme { padding: 130px 0; border-top: 1px solid var(--line); overflow: hidden; }
/* SET-PIECE : la ligne se brise sur le mot « casse » */
.ligne-break { height: 90px; margin: 10px 0 6px; width: 100%; }
.ligne-break svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ligne-break .brk {
  filter: drop-shadow(0 0 5px var(--accent)) drop-shadow(0 0 16px var(--accent-dim));
}

/* ---------- set-pieces génériques ---------- */
/* zoom d'entrée : l'état AVANT est posé ici, GSAP anime vers l'état final */
.zoom { opacity: 0; transform: scale(0.93) translateY(26px); }
/* entrée directionnelle, dans l'ordre de lecture */
.slide-l { opacity: 0; transform: translateX(-38px); }
.slide-r { opacity: 0; transform: translateX(38px); }
.meca-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; margin-top: 34px; align-items: start; }
.meca-body { font-size: var(--fs-lede); line-height: 1.6; color: var(--text-2); }
.meca-body b { color: var(--text); }
.meca-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.meca-list li { border-left: 2px solid var(--accent); padding-left: 15px; }
.meca-list b { display: block; font-size: 15.5px; }
.meca-list span { color: var(--text-2); font-size: 14px; }

/* ═══════════ 04 · LE VOYAGE — l'appareil traverse les sections ═══════════
   Pattern « product-scroll-travel » : le produit tient, le reste défile. */
.travel { border-top: 1px solid var(--line); position: relative; }
.travel-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 0.92fr; gap: 70px;
  align-items: start;
}
.acts { padding: 14vh 0 18vh; }
.act {
  min-height: 86vh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0.22; transition: opacity 0.5s var(--ease);
}
.act.on { opacity: 1; }
.act-n {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--accent); margin-bottom: 16px;
}
.act h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 16px; }
.act p { color: var(--text-2); font-size: var(--fs-lede); max-width: 420px; margin: 0; }
.act p b { color: var(--text); }

/* la colonne appareil : épinglée sur toute la traversée */
.travel-device {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center;
  perspective: 2000px;
}
.dev-glow {
  position: absolute; width: 118%; height: 76%; border-radius: 50%;
  background: radial-gradient(50% 45% at 50% 50%, var(--accent-dim) 0%, var(--accent-dim) 46%, transparent 72%);
  filter: blur(36px); pointer-events: none;
}

/* ── L'APPAREIL : coque ET écran dans le MÊME élément transformé.
      Le désalignement devient structurellement impossible (l'incrustation
      sur un rendu IA a été essayée puis rejetée — perspective jamais juste). ── */
.device {
  position: relative; width: 292px; height: 598px;
  transform-style: preserve-3d;
  transform: rotateX(9deg) rotateY(-16deg) rotateZ(3deg);
  filter: drop-shadow(0 46px 58px rgba(0,0,0,.85));
}
/* chassis eclairci : a la capture, l'appareil se noyait dans le fond quasi-noir.
   Il lui faut sa propre valeur pour exister comme OBJET. */
.frame {
  position: absolute; inset: 0; border-radius: 44px; padding: 3px;
  background: linear-gradient(145deg,#83838a 0%,#3d3d43 13%,#232328 34%,#2b2b31 58%,#6d6d76 82%,#2a2a30 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(255,255,255,.10),
    0 0 0 1px rgba(0,0,0,.9),
    0 0 44px -6px rgba(255,255,255,.05);
}
/* le liseré accent sur la tranche — la marque posée sur l'objet */
.frame::before {
  content: ""; position: absolute; left: -1px; top: 17%; bottom: 17%; width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  box-shadow: 0 0 10px var(--accent);
}
.btn-side { position: absolute; left: -3px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg,#3a3a3e,#1b1b1e); }
.btn-side.v1 { top: 26%; height: 50px; }
.btn-side.v2 { top: 35%; height: 50px; }
.btn-side.pw { left: auto; right: -3px; top: 30%; height: 72px; }

.bezel { position: absolute; inset: 3px; border-radius: 41px; background: #000; padding: 9px; }
.screen { position: absolute; inset: 9px; border-radius: 33px; overflow: hidden;
  background: linear-gradient(180deg,#0e0e0e,#080808); }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 25px; background: #000; border-radius: 0 0 14px 14px; z-index: 9; }
.notch::after { content: ""; position: absolute; right: 23px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: #141418; box-shadow: inset 0 0 3px rgba(90,120,160,.55); }

/* ⭐ le verre PAR-DESSUS le contenu — c'est lui qui empêche l'effet « capture collée » */
.glass { position: absolute; inset: 0; z-index: 10; pointer-events: none; border-radius: 33px;
  background:
    linear-gradient(154deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.05) 16%,
      rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%),
    radial-gradient(130% 60% at 12% -4%, rgba(255,255,255,.06), transparent 52%);
  box-shadow: inset 0 0 30px 8px rgba(0,0,0,.5); }

/* ── les écrans : empilés, un seul visible, du VRAI DOM ── */
.ui {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; padding: 33px 13px 13px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.ui.on { opacity: 1; transform: translateY(0); }
.ui-head { display: flex; align-items: center; gap: 7px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.ui-head b { font-size: 12.5px; letter-spacing: -.01em; }
.ui .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.ui .dot.warn { background: var(--creme); box-shadow: 0 0 7px var(--creme); }
.ui-tag { margin-left: auto; font-family: var(--mono); font-size: 7px; letter-spacing: .14em; color: #4d4d4d; }
/* l'ecran doit se REMPLIR : le contenu s'etalait sur le tiers haut et laissait
   un grand vide noir en bas (vu a la capture). */
.thread { flex: 1; display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px; overflow: hidden; justify-content: center; }
.u { align-self: flex-end; max-width: 88%; background: var(--grad-vin); color: var(--sur-vin);
  padding: 8px 11px; border-radius: 12px; border-bottom-right-radius: 4px; font-size: 10.5px; line-height: 1.45; }
.e { align-self: flex-start; max-width: 88%; background: var(--s2); border: 1px solid var(--line);
  padding: 8px 11px; border-radius: 12px; border-bottom-left-radius: 4px; font-size: 10.5px; line-height: 1.45; }
.o { background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 11px; }
.o span { font-family: var(--mono); font-size: 7px; letter-spacing: .14em; color: var(--text-2); display: block; margin-bottom: 4px; }
.o.j { border-color: var(--accent); } .o.j span { color: var(--text); }
.o.a span { color: var(--accent-2); }
.o p { margin: 0; font-size: 10.5px; line-height: 1.45; }
.lect { font-size: 10.5px; line-height: 1.5; color: var(--text); margin: 0 0 3px; }
.dq { font-size: 10.5px; font-weight: 600; margin: 3px 0 0; }
.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pills i { font-style: normal; font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em;
  padding: 6px 9px; border-radius: 100px; background: var(--s2); border: 1px solid var(--line); color: var(--text-2); }
.pills i.sel { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }
.reveal-note { border-left: 2px solid var(--accent); padding-left: 9px; margin-top: 4px; }
.reveal-note span { font-family: var(--mono); font-size: 7px; letter-spacing: .14em; color: var(--text-2); display: block; margin-bottom: 3px; }
.reveal-note p { margin: 0; font-size: 10.5px; font-style: italic; line-height: 1.45; }
.alert { background: var(--creme-dim); border: 1px solid var(--creme-dim); border-radius: 12px; padding: 8px 11px; }
.alert span { font-family: var(--mono); font-size: 7px; letter-spacing: .14em; color: var(--creme); display: block; margin-bottom: 4px; }
.alert p { margin: 0; font-size: 10.5px; line-height: 1.45; }
.typing { display: flex; gap: 4px; padding: 9px 2px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); animation: tp 1.3s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tp { 0%,60%,100% { opacity: .3; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-3px) } }
.ui-bar { margin-top: 10px; display: flex; align-items: center; gap: 7px; }
.ui-bar i { flex: 1; height: 28px; border-radius: 100px; background: var(--s2); border: 1px solid var(--line); }
.ui-bar b { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 12px var(--accent); }

/* ---------- 04b · (ancienne grille — conservée pour compat) ---------- */
.how { padding: 110px 0; border-top: 1px solid var(--line); }
/* grille volontairement asymétrique (gate anti-symétrie) */
.how-grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 16px; margin-top: 36px; }
.how-card {
  background: var(--s1); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 24px;
}
.how-card:nth-child(2) { background: var(--s2); transform: translateY(-18px); }
.how-n {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--accent); display: block; margin-bottom: 16px;
}
.how-card p { color: var(--text-2); margin: 0; font-size: 14.5px; }

/* ═══════════ 05 · RAIL — défilement horizontal ═══════════
   La section s'épingle, la piste glisse latéralement au scroll vertical. */
/* la section epinglee occupe 100vh : le contenu doit le REMPLIR,
   sinon on epingle un grand vide (defaut vu a la capture). */
.rail { border-top: 1px solid var(--line); position: relative;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 60px 0; }
.rail-head { margin-bottom: 42px; }
.rail-hint {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--text-3); display: flex; align-items: center; gap: 10px; margin: 6px 0 0;
}
.rail-hint span {
  width: 44px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent);
  display: block;
}
.rail-view { overflow: hidden; }
.rail-track { display: flex; gap: 18px; padding: 0 24px; width: max-content; }

.rc {
  width: 358px; flex-shrink: 0;
  background: var(--s1); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: border-color .3s ease, background .3s ease;
}
.rc:hover { border-color: var(--line-2); background: var(--s2); }
.rc-n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--text-3); margin-bottom: 16px; }
/* le motif de marque décliné, comme sur toutes les cartes */
.rc h3::before {
  content: ""; display: block; width: 16px; height: 2px; background: var(--accent);
  border-radius: 2px; margin-bottom: 12px; box-shadow: 0 0 8px var(--accent);
}
.rc h3 { font-size: 21px; margin-bottom: 10px; }
.rc > p { color: var(--text-2); font-size: 14.5px; margin: 0 0 20px; }
.rc > p b { color: var(--text); }
.rc ul { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.rc li { font-size: 13px; color: var(--text-3); padding-left: 15px; position: relative; margin-bottom: 8px; }
.rc li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 1px; background: var(--text-3); }
.rc li:last-child { margin-bottom: 0; }
.rc-acc { border-color: var(--accent-dim); background: var(--s2); }

/* ═══════════ TORCHE — la souris éclaire le texte ═══════════
   Deux couches du même texte : une sombre, une claire masquée par un
   dégradé radial placé sous le curseur. Le geste dit ce que la section
   raconte : faire le tri dans une masse, un faisceau à la fois. */
.torch-wrap { position: relative; margin: 0 0 10px; }
.torch-base, .torch-lit {
  font-size: var(--fs-lede); line-height: 1.6; margin: 0;
}
/* ⚠️ ACCESSIBILITE : le texte doit rester lisible SANS la torche.
   var(--line-2) sur var(--bg) donnait ~2,5:1, sous le minimum AA. La torche
   ECLAIRE un texte deja lisible — elle n'est jamais le seul moyen de lire. */
.torch-base { color: var(--text-2); }
.torch-lit {
  position: absolute; inset: 0; color: var(--text); pointer-events: none;
  --mx: 50%; --my: 50%;
  -webkit-mask-image: radial-gradient(180px 180px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 42%, transparent 72%);
          mask-image: radial-gradient(180px 180px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 42%, transparent 72%);
  opacity: 0; transition: opacity .35s ease;
}
.torch-wrap:hover .torch-lit, .torch-lit.on { opacity: 1; }
.torch-note {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--text-3); margin: 0;
}
/* sans souris (tactile) : pas de torche, le texte est simplement lisible */
@media (hover: none) {
  .torch-base { color: var(--text-2); }
  .torch-lit, .torch-note { display: none; }
}

/* ---------- 05b · BENTO (conservé pour compat) ---------- */
.piliers { padding: 110px 0; border-top: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
/* cartes : le motif se réduit à un petit tiret accent (le même geste décliné à
   toutes les échelles — c'est ça qui fait système, lecture taurusarena) */
.b {
  background: var(--s1); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.b h3::before {
  content: "";
  display: block;
  width: 16px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 12px;
  box-shadow: 0 0 8px var(--accent);
}
.b:hover { border-color: var(--line-2); background: var(--s2); }
/* la grande carte ne doit pas etre une boite vide avec du texte en bas :
   elle porte le motif de marque en haut (zero coin mort, gate Ayzz) */
.b-lg { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.b-lg::before {
  content: "";
  display: block;
  height: 76px;
  background: no-repeat center/contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'><polyline points='0,20 70,20 80,6 92,34 101,20 200,20' fill='none' stroke='%23D20A0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.75'/></svg>");
  margin-bottom: 20px;
}
.b-wide { grid-column: span 2; }
.b p { color: var(--text-2); margin: 0; font-size: 14.5px; }

/* ---------- 06 · KAEL ---------- */
.kael { padding: 110px 0; border-top: 1px solid var(--line); }
.kael-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.kael-body { color: var(--text-2); font-size: var(--fs-lede); }
.kael-body b { color: var(--text); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kpi { background: var(--s1); padding: 24px 20px; }
.kpi b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.kpi span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--text-2); margin-top: 9px; }

/* ---------- 07 · PROOF ---------- */
.proof { padding: 100px 0; border-top: 1px solid var(--line); }
.proof-body { max-width: 620px; color: var(--text-2); font-size: var(--fs-lede); }
.proof-body b { color: var(--text); }

/* ---------- 08 · OFFRE ---------- */
.offre { padding: 110px 0; border-top: 1px solid var(--line); }
.tiers { display: grid; grid-template-columns: 1fr 1.12fr; gap: 16px; margin-top: 36px; align-items: start; }
.tier { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.tier-vip { border-color: var(--accent); background: var(--s2); }
.t-price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.t-price span { font-size: 14px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.tier h3 { margin: 0 0 6px; }
.t-line { color: var(--text-2); font-size: 14.5px; margin: 0 0 18px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tier li { font-size: 14.5px; color: var(--text-2); padding-left: 18px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.tier-vip li::before { background: var(--accent); }
.tier li b { color: var(--text); }
.t-trust { margin-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-3); }

/* ---------- 09 · FAQ ---------- */
.faq { padding: 110px 0; border-top: 1px solid var(--line); }
.acc-list { margin-top: 30px; border-top: 1px solid var(--line); }
.acc-list details { border-bottom: 1px solid var(--line); }
.acc-list summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font-size: 16.5px; font-weight: 550;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px;
}
.acc-list summary::-webkit-details-marker { display: none; }
.acc-list summary::after { content: "+"; color: var(--text-3); font-size: 20px; font-weight: 300; flex-shrink: 0; }
.acc-list details[open] summary::after { content: "−"; color: var(--accent); }
.acc-list details p { color: var(--text-2); padding: 0 0 20px; margin: 0; max-width: 720px; font-size: 15px; }

/* ---------- 10 · FINAL ---------- */
.final { padding: 120px 0 130px; border-top: 1px solid var(--line); text-align: center; }
.final-inner { position: relative; }
.ligne-final { height: 60px; margin: 0 auto 22px; max-width: 600px; }
.ligne-final svg { width: 100%; height: 100%; display: block; }
/* le CTA final n'est pas le hero : au format giant la ligne cassait mal
   (« Le prochain « salut ça / va », » — vu au screenshot). On borne. */
.final h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 720px; margin-left: auto; margin-right: auto; }
.final-lede { color: var(--text-2); font-size: var(--fs-lede); max-width: 520px; margin: 0 auto 30px; }

.wait { display: flex; gap: 9px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.wait input {
  flex: 1; min-width: 220px; background: var(--s2);
  border: 1px solid var(--line); border-radius: 100px;
  min-height: 52px; padding: 0 20px; color: var(--text);
  font-family: var(--sans); font-size: 15px; outline: none;
}
.wait input:focus { border-color: var(--line-2); }
.wait input::placeholder { color: var(--text-3); }
.wait button {
  background: var(--grad-vin); color: var(--sur-vin); border: none;
  border-radius: 100px; min-height: 52px; padding: 0 26px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s var(--ease);
}
.wait button:hover { filter: brightness(1.12); }
.wait button:active { transform: scale(0.97); }
.wait button:disabled { opacity: 0.5; cursor: not-allowed; }
.wait-msg { min-height: 22px; margin: 14px 0 0; font-size: 14px; }
.wait-msg.ok { color: #27a644; }
.wait-msg.err { color: var(--accent-2); }
.final-trust { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-3); margin-top: 10px; }

/* ---------- FOOTER ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px 0 46px; }
.foot-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.05em; }
.foot-note { margin-left: auto; }

/* ---------- STICKY CTA ---------- */
.sticky-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  background: var(--grad-vin); color: var(--sur-vin); text-decoration: none;
  font-size: 14px; font-weight: 600;
  min-height: 50px; padding: 0 24px; border-radius: 100px;
  display: inline-flex; align-items: center;
  box-shadow: 0 14px 34px -8px var(--accent);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.sticky-cta.on { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ═══════════ MOBILE — canvas primaire (≈95 % du trafic froid) ═══════════ */
@media (max-width: 900px) {
  /* le voyage sur mobile : l'appareil s'épingle EN HAUT, les actes passent dessous */
  .travel-inner { grid-template-columns: 1fr; gap: 0; }
  .travel-device { top: 62px; height: auto; padding: 22px 0 14px; order: -1;
    background: linear-gradient(180deg, var(--bg) 72%, transparent); z-index: 5; }
  .device { width: 218px; height: 446px; transform: rotateX(6deg) rotateY(-9deg) rotateZ(1.5deg); }
  .notch { width: 78px; height: 20px; }
  .ui { padding: 27px 10px 10px; }
  .acts { padding: 6vh 0 10vh; }
  .act { min-height: 62vh; }
  .dev-glow { width: 150%; height: 90%; }

  /* rail sur mobile : pas d'epinglage, on balaie au doigt */
  .rail-view { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding-bottom: 60px; }
  .rail-view::-webkit-scrollbar { display: none; }
  .rail-track { transform: none !important; padding: 0 20px; gap: 14px; }
  .rc { width: 78vw; max-width: 320px; scroll-snap-align: center; }
  .rail { padding-top: 70px; }

  .pin-inner { grid-template-columns: 1fr; gap: 34px; }
  .meca-grid, .kael-grid { grid-template-columns: 1fr; gap: 30px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card:nth-child(2) { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-lg { grid-row: auto; }
  .b-wide { grid-column: span 2; }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero { padding: 118px 20px 70px; }
  .wrap { padding: 0 20px; }
  .demo { transform: none; }            /* pas d'inclinaison sur mobile : lisibilité d'abord */
  .demo-wrap { perspective: none; margin-top: 44px; }
  .bento { grid-template-columns: 1fr; }
  .b-wide { grid-column: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .pin-sticky { height: auto; position: relative; padding: 80px 0; }
  .pin-spacer { display: none; }        /* pas de pin sur mobile : scroll libre */
  .step { opacity: 1; }
  .step-bar i { height: 100% !important; }
  .foot-note { margin-left: 0; width: 100%; }
  .sticky-cta { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .mecanisme, .how, .piliers, .kael, .offre, .faq { padding: 80px 0; }
  .final { padding: 90px 0 100px; }
  .atmo { height: 620px; top: -110px; }
  /* l'appareil du hero reste GRAND sur mobile : c'est la preuve principale */
  .hero-device { margin-top: 48px; }
  .device-hero { width: 290px; height: 594px; transform: rotateX(4deg) rotateY(-3deg); }
  .device-hero .ui { padding: 34px 13px 13px; }
  .device-hero .u, .device-hero .o p, .device-hero .lect { font-size: 11.5px; }
  .device-hero .notch { width: 98px; height: 25px; }
  .pill { font-size: 11.5px; }
}
