/* L6 — polices servies depuis notre domaine (fichiers Fontsource, licence OFL,
   voir fonts/LICENSE-OFL.txt). Plus aucune requête vers Google Fonts. */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/nunito-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: italic; font-weight: 800; font-display: swap; src: url(../fonts/nunito-latin-800-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/dm-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/dm-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/dm-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); }

/* ═══════════════════════════════════════════════════════════════════════
   NeuroConnect 360° - v6
   Refonte éditoriale. Thème sombre assumé, un seul accent, photographie
   plein cadre, micro-libellés en chasse fixe.
   Neutres biaisés chaud vers l'orange de marque, jamais du gris pur.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* Fonds, du plus profond au plus clair */
  --ink:      #0A0908;
  --ink-2:    #131110;
  --ink-3:    #1C1917;
  --line:     #2B2623;
  --line-2:   #3A332E;

  /* Texte */
  --fg:       #F5F2ED;
  --fg-2:     #A8A098;
  /* #756C64 ne donnait que 3.86:1 sur --ink : sous le seuil AA pour les
     légendes et libellés en 10-13px. Celui-ci donne 4.83:1. */
  --fg-3:     #857C73;

  /* Accent unique, verrouillé sur toute la page */
  --accent:     #F08826;
  --accent-dim: #C2671A;
  --accent-ink: #1C0F03;
  --accent-wash: rgba(240, 136, 38, .12);

  /* Bleu de marque : teinte profonde seulement, jamais un second accent */
  --deep:     #112A47;

  /* Typographie */
  --display: 'Nunito', 'SF Pro Display', system-ui, sans-serif;
  --body:    'DM Sans', 'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Échelle typographique, cinq crans */
  --t-xl: clamp(3.2rem, 9vw, 8.5rem);
  --t-lg: clamp(2.2rem, 5.2vw, 4.4rem);
  --t-md: clamp(1.5rem, 2.6vw, 2.1rem);
  --t-sm: 1.0625rem;
  --t-xs: 0.8125rem;

  /* Rythme */
  --gut: 22px;
  --rail: 1320px;
  --bloc: clamp(88px, 11vw, 168px);

  /* Rayons : un seul système. Cartes 16, interactif pilule. */
  --r: 16px;
  --r-sm: 10px;

  /* Courbes. L'ease-out natif manque de nerf. */
  --out:    cubic-bezier(.16, 1, .3, 1);
  --in-out: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--t-sm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
/* height:auto est obligatoire : les attributs width/height du HTML réservent
   la place (bon pour le CLS) mais déforment l'image dès qu'une largeur CSS
   s'applique sans lui. Les règles plus spécifiques ci-dessous la redéfinissent. */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.rail {
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.bloc { padding-block: var(--bloc); }

/* Micro-libellé en chasse fixe. Rationné : deux sur toute la page. */
.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--fg-2);
  max-width: 58ch;
  line-height: 1.55;
}

/* ─── Bandeau bêta ──────────────────────────────────────────────────── */
.beta {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--t-xs);
  font-weight: 700;
}
.beta .rail {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  align-items: center; justify-content: center;
  padding-block: 9px; text-align: center;
}
.beta a { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Navigation ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 9, 8, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .rail {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}
.mark {
  font-family: var(--display); font-weight: 800;
  font-size: 1.0625rem; letter-spacing: -0.03em;
  margin-right: auto; white-space: nowrap;
}
.mark b { font-weight: 900; color: var(--accent); }
.nav-links { display: none; gap: 26px; font-size: 0.9375rem; color: var(--fg-2); }
.nav-links a { transition: color 160ms ease; }

/* ─── Boutons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body); font-size: 0.9375rem; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--out), background-color 180ms ease, border-color 180ms ease;
}
.btn:active { transform: scale(.97); }
.btn--on { background: var(--accent); color: var(--accent-ink); }
.btn--off { border-color: var(--line-2); color: var(--fg); }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--fg); }
  .btn--on:hover  { background: #FF9A3D; }
  .btn--off:hover { border-color: var(--fg-2); }
}

/* ─── Héros : média plein cadre ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(10,9,8,.55) 46%, rgba(10,9,8,.22) 100%),
    linear-gradient(to right, rgba(10,9,8,.82) 0%, rgba(10,9,8,.1) 62%);
}
.hero .rail { position: relative; padding-block: clamp(56px, 8vw, 104px); }
/* « jamais » porte un jambage : line-height 1.02 le couperait. */
.hero h1 { font-size: var(--t-xl); max-width: 14ch; line-height: 1.08; padding-bottom: .06em; }
.hero h1 em { font-style: italic; font-weight: 800; color: var(--accent); }
.hero__sub { margin-top: 22px; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Libellé d'angle, repris de la grammaire des sites de pilote. */
.hero__corner {
  position: absolute; left: var(--gut); top: 26px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2);
  display: flex; align-items: center; gap: 9px;
}
.hero__corner::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ─── Bande de chiffres : filets, pas de cartes ─────────────────────── */
.stats { border-bottom: 1px solid var(--line); }
.stats .rail { display: grid; gap: 0; padding-block: 0; }
.stat {
  padding-block: clamp(34px, 4.5vw, 54px);
  border-top: 1px solid var(--line);
}
.stat:first-child { border-top: 0; }
.stat b {
  display: block;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 10px; color: var(--fg-2); max-width: 30ch; }

/* ─── Terrain : média et texte en vis-à-vis ─────────────────────────── */
.terrain .rail { display: grid; gap: clamp(30px, 4vw, 60px); align-items: center; }
.terrain img { border-radius: var(--r); width: 100%; }
.terrain h2 { font-size: var(--t-lg); max-width: 12ch; }
.terrain h2 em { font-style: normal; color: var(--accent); }
.terrain .lede { margin-top: 20px; }
.terrain ul { margin-top: 26px; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.terrain li { background: var(--ink); padding: 15px 18px; color: var(--fg-2); font-size: 0.9375rem; }
.terrain li b { color: var(--fg); font-weight: 700; }

/* ─── Bento : six cellules pour six familles ────────────────────────── */
.bento { display: grid; gap: 14px; margin-top: clamp(34px, 4vw, 56px); }
.cell {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--ink-2);
  min-height: 285px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  min-width: 0;
}
.cell--img { padding: 0; }
.cell--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell--img .cell__txt {
  position: relative; padding: 26px; width: 100%;
  background: linear-gradient(to top, rgba(10,9,8,.94) 18%, rgba(10,9,8,.0) 100%);
}
/* Les captures sont des portraits 945x2048 : cadrées sur la zone utile,
   pas sur la barre d'état. */
.cell--shot img { object-position: 50% 34%; }
.cell--shot-bas img { object-position: 50% 44%; }
/* Une capture contient du texte : sous le titre, le fond doit être plein. */
.cell--shot .cell__txt {
  padding-top: 64px;
  background: linear-gradient(to top, rgba(10,9,8,.97) 0%, rgba(10,9,8,.97) 68%, rgba(10,9,8,0) 100%);
}
.cell--accent { border-color: var(--accent); background: var(--accent-wash); }
.cell h3 { font-size: var(--t-md); }
.cell p { margin-top: 8px; color: var(--fg-2); font-size: 0.9375rem; max-width: 36ch; }
.cell--accent p { color: #E8D9C8; }

/* ─── Bracelet ──────────────────────────────────────────────────────── */
.band { background: var(--ink-2); border-block: 1px solid var(--line); }
.band__top { display: grid; gap: clamp(32px, 4vw, 64px); align-items: center; }
.band h2 { font-size: var(--t-lg); max-width: 13ch; margin-top: 16px; }
.band h2 em { font-style: normal; color: var(--accent); }
.band .lede { margin-top: 20px; }
.band__shot { display: grid; place-items: center; }
.band__shot img { width: min(76%, 330px); filter: drop-shadow(0 30px 56px rgba(0,0,0,.7)); }
.band__note {
  margin-top: 14px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .07em; color: var(--fg-3); text-align: center; max-width: 34ch;
}

/* Courbe du signal : une donnée, pas une décoration. */
.signal { margin-top: clamp(44px, 5vw, 76px); }
.signal svg { width: 100%; height: auto; display: block; }
.signal__trace { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.is-in .signal__trace { animation: trace 1.5s var(--out) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 2px; }
.step { background: var(--ink-2); padding: 22px 24px; min-width: 0; }
.step time { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.step h3 { font-size: 1.25rem; margin-top: 8px; }
.step p { margin-top: 6px; color: var(--fg-2); font-size: 0.9375rem; }

.rules { display: grid; gap: 14px; margin-top: clamp(40px, 4.5vw, 64px); }
.rule { border-top: 1px solid var(--line-2); padding-top: 18px; min-width: 0; }
.rule h3 { font-size: 1.1875rem; }
.rule p { margin-top: 7px; color: var(--fg-2); font-size: 0.9375rem; }

/* ─── Pour qui : défilement par crans ───────────────────────────────── */
.who__scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 34vw);
  gap: 14px; margin-top: clamp(32px, 4vw, 52px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; scrollbar-width: thin;
}
.who__card {
  scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; background: var(--ink-2); min-width: 0;
}
.who__card h3 { font-size: 1.375rem; }
.who__card dl { margin: 18px 0 0; display: grid; gap: 14px; }
.who__card dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.who__card dd { margin: 4px 0 0; font-size: 0.9375rem; color: var(--fg-2); }
.who__card dd.adds { color: var(--fg); }
.who__card dd.adds::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 9px; vertical-align: middle;
}

/* ─── État d'avancement ─────────────────────────────────────────────── */
.state { display: grid; gap: clamp(26px, 3vw, 44px); margin-top: clamp(32px, 4vw, 52px); }
.state h3 { font-size: 1.25rem; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.state li { padding: 14px 0 14px 28px; position: relative; color: var(--fg-2); font-size: 0.9375rem; border-bottom: 1px solid var(--line); }
.state li::before { position: absolute; left: 0; top: 14px; font-family: var(--mono); font-weight: 700; }
.state .now li::before  { content: "OK"; font-size: 10px; letter-spacing: .04em; color: var(--accent); }
.state .next li::before { content: "->"; font-size: 12px; color: var(--fg-3); }

/* ─── Appel final ───────────────────────────────────────────────────── */
.end { text-align: center; border-top: 1px solid var(--line); }
.end h2 { font-size: var(--t-lg); max-width: 16ch; margin-inline: auto; }
.end .lede { margin: 20px auto 0; }
.end__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ─── Pied de page ──────────────────────────────────────────────────── */
footer { background: var(--ink-2); border-top: 1px solid var(--line); }
footer .rail { padding-block: 52px; display: grid; gap: 34px; }
.foot__cols { display: grid; gap: 28px; }
.foot h4 { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 12px; }
.foot li { padding: 5px 0; color: var(--fg-2); font-size: 0.9375rem; }
.foot__sign { font-family: var(--display); font-weight: 800; font-style: italic; color: var(--fg-2); }
.foot__legal { border-top: 1px solid var(--line); padding-top: 22px; color: var(--fg-3); font-size: var(--t-xs); display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (hover: hover) and (pointer: fine) {
  .foot li a:hover, .nav-links a:hover { color: var(--fg); }
}

/* ─── Révélation au défilement ──────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--out), transform .7s var(--out); }
.rv.is-in { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: 60ms; }
.rv:nth-child(3) { transition-delay: 120ms; }
.rv:nth-child(4) { transition-delay: 180ms; }

/* Entrée du héros, une seule fois au chargement. */
.hero h1, .hero__sub, .hero__cta { animation: rise .8s var(--out) backwards; }
.hero__sub { animation-delay: .1s; }
.hero__cta { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ─── Points de rupture ─────────────────────────────────────────────── */
@media (min-width: 620px) {
  .stats .rail { grid-template-columns: repeat(3, 1fr); column-gap: 34px; }
  .stat { border-top: 0; border-bottom: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
  .state { grid-template-columns: repeat(2, 1fr); }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  :root { --gut: 34px; }
  .nav-links { display: flex; }
  .terrain .rail { grid-template-columns: 1fr 1fr; }
  .band__top { grid-template-columns: 1.05fr .95fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  .cell--wide { grid-column: span 2; }
  .foot .rail { grid-template-columns: 1fr 2fr; gap: 54px; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .signal__trace { stroke-dashoffset: 0; }
}

/* Césure du titre maîtrisée au-dessus de 700px, naturelle en dessous. */
.large { display: none; }
@media (min-width: 700px) { .large { display: inline; } }

/* ═══════════════════════════════════════════════════════════════════════
   COUCHE DYNAMIQUE
   Chaque effet porte sa justification. Tout retombe à l'état statique
   sous prefers-reduced-motion, et l'état de repos est l'état visible :
   si le script ne se charge pas, la page reste entière.
   ═══════════════════════════════════════════════════════════════════════ */

/* Grain. Fixe et inerte : aucun repaint pendant le défilement. */
#grain {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none; opacity: .04;
  background-repeat: repeat; background-size: 128px 128px;
  mix-blend-mode: overlay;
}

/* Jauge de lecture, pilotée par la timeline native, sans une ligne de JS. */
#jauge {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  #jauge { animation: jauge linear both; animation-timeline: scroll(root block); }
}
@keyframes jauge { to { transform: scaleX(1); } }

/* ── Héros ──────────────────────────────────────────────────────────── */

/* Parallaxe : la photographie monte plus lentement que le texte, ce qui
   installe une profondeur dès le premier geste de défilement. */
@supports (animation-timeline: view()) {
  .hero__media img {
    animation: parallaxe linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}
@keyframes parallaxe {
  from { transform: scale(1.12) translateY(-3%); }
  to   { transform: scale(1.12) translateY(5%); }
}

/* Titre mot à mot. Justification : hiérarchie, le regard entre par la
   première ligne. Le jambage du « j » impose une réserve sous la ligne. */
.hero__h1 .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.hero__h1 .w i { display: inline-block; font-style: normal; }
.hero__h1 .em { font-style: italic; font-weight: 800; color: var(--accent); }
.hero__h1 .w i { animation: monte .85s var(--out) backwards; }
.hero__h1 .w:nth-of-type(1) i { animation-delay: .05s; }
.hero__h1 .w:nth-of-type(2) i { animation-delay: .11s; }
.hero__h1 .w:nth-of-type(3) i { animation-delay: .17s; }
.hero__h1 .w:nth-of-type(4) i { animation-delay: .23s; }
.hero__h1 .w:nth-of-type(5) i { animation-delay: .31s; }
.hero__h1 .w:nth-of-type(6) i { animation-delay: .37s; }
@keyframes monte { from { transform: translateY(105%); } }

/* Tracé cardiaque en bas du héros : le signal du produit, posé là où
   l'image s'éteint. */
.hero__ecg {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  width: 100%; opacity: .5; pointer-events: none;
}
.hero__ecg path {
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: battre 3.2s 1s var(--in-out) forwards;
}
@keyframes battre { to { stroke-dashoffset: 0; } }

/* ── Bande photographique ───────────────────────────────────────────── */
/* Justification : montrer l'ampleur du quotidien accompagné sans demander
   d'attention à chaque image. Une seule bande sur toute la page. */
.bande { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); }
.bande__piste { display: flex; width: max-content; animation: defile 64s linear infinite; }
.bande__jeu { display: flex; gap: 14px; padding: 14px 7px; }
.bande__jeu img {
  height: clamp(150px, 20vw, 240px); width: auto; border-radius: var(--r-sm);
  object-fit: cover; filter: grayscale(.35) brightness(.82);
  transition: filter 420ms var(--out);
}
@keyframes defile { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) {
  .bande:hover .bande__piste { animation-play-state: paused; }
  .bande__jeu img:hover { filter: none; }
}

/* ── Terrain : paire décalée ────────────────────────────────────────── */
.terrain__pile { position: relative; padding-bottom: 54px; }
.shot { margin: 0; overflow: hidden; border-radius: var(--r); }
.shot img { width: 100%; }
.shot--petit {
  position: absolute; right: -14px; bottom: 0; width: 44%;
  border: 3px solid var(--ink); border-radius: var(--r);
  box-shadow: 0 24px 48px rgba(0,0,0,.55);
}
/* Révélation par volet : l'image se découvre du bas vers le haut. */
@supports (animation-timeline: view()) {
  .shot img { animation: volet linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
}
@keyframes volet {
  from { clip-path: inset(0 0 100% 0); transform: scale(1.06); }
  to   { clip-path: inset(0 0 0 0);    transform: scale(1); }
}

/* ── Bento : projecteur au curseur ──────────────────────────────────── */
/* Justification : retour tactile. La carte réagit, donc elle paraît
   interactive. Souris fine seulement. */
.cell::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity 260ms ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
              rgba(240,136,38,.16), transparent 62%);
}
.cell__txt, .cell h3, .cell p { position: relative; z-index: 1; }
.cell--img img { transition: transform 620ms var(--out), filter 420ms ease; }
@media (hover: hover) and (pointer: fine) {
  .cell:hover::after { opacity: 1; }
  .cell:hover { border-color: var(--line-2); }
  .cell--img:hover img { transform: scale(1.05); }
}

/* ── Bracelet ───────────────────────────────────────────────────────── */
.band__shot { position: relative; }
#pouls { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.band__shot img { position: relative; animation: flotte 7s ease-in-out infinite; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* La courbe se trace au rythme du défilement : le lecteur fait monter le
   signal lui-même, ce qui raconte la montée mieux qu'une lecture. */
.signal__trace { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.signal.is-in .signal__trace { animation: trace 1.5s var(--out) forwards; }
@supports (animation-timeline: view()) {
  .signal.is-in .signal__trace { animation: none; }
  .signal__trace { animation: trace linear both; animation-timeline: view(); animation-range: entry 25% cover 55%; }
}
.signal__pt { opacity: 0; animation: point .4s 1.2s ease forwards; }
@keyframes point { to { opacity: 1; } }

/* ── Pour qui : réseau et rail ──────────────────────────────────────── */
.who { position: relative; overflow: hidden; }
#reseau { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.who .rail { position: relative; }
.who__rail { height: 2px; background: var(--line); border-radius: 2px; margin-top: 16px; overflow: hidden; }
.who__rail span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.18); transition: transform 160ms var(--out); }

/* ── Utilitaires ────────────────────────────────────────────────────── */
.h-section { font-size: var(--t-lg); max-width: 16ch; margin-top: 14px; }
.h-section + .lede { margin-top: 18px; }
.etat { background: var(--ink-2); border-top: 1px solid var(--line); }
.foot__sign { margin-top: 10px; }

/* ── Révélation ─────────────────────────────────────────────────────── */
[data-rv] { opacity: 0; transform: translateY(20px); transition: opacity .75s var(--out), transform .75s var(--out); }
[data-rv].is-in { opacity: 1; transform: none; }
.stat:nth-child(2)[data-rv] { transition-delay: 70ms; }
.stat:nth-child(3)[data-rv] { transition-delay: 140ms; }
.cell:nth-child(2)[data-rv] { transition-delay: 60ms; }
.cell:nth-child(3)[data-rv] { transition-delay: 120ms; }
.cell:nth-child(4)[data-rv] { transition-delay: 60ms; }
.cell:nth-child(5)[data-rv] { transition-delay: 120ms; }
.cell:nth-child(6)[data-rv] { transition-delay: 180ms; }
.step:nth-child(2)[data-rv] { transition-delay: 60ms; }
.step:nth-child(3)[data-rv] { transition-delay: 120ms; }
.step:nth-child(4)[data-rv] { transition-delay: 180ms; }

@media (min-width: 1000px) {
  .terrain__pile { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  #jauge, .hero__ecg { display: none; }
  .bande__piste { animation: none; }
  .band__shot img { animation: none; }
  .hero__h1 .w i { animation: none; }
  .shot img { animation: none; clip-path: none; transform: none; }
  .hero__media img { animation: none; transform: none; }
  .signal__trace { animation: none; stroke-dashoffset: 0; }
  .signal__pt { animation: none; opacity: 1; }
  [data-rv] { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SECONDE PASSE
   Trois manques corrigés : aucune interaction, un bento à cellules
   égales, aucune rupture d'échelle typographique.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Simulateur de seuil ────────────────────────────────────────────── */
.sim {
  margin-top: clamp(44px, 5vw, 76px);
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--ink); padding: clamp(22px, 3vw, 36px);
  transition: border-color 420ms var(--out), box-shadow 420ms var(--out);
}
.sim[data-etat="est-seuil"]  { border-color: var(--accent-dim); }
.sim[data-etat="est-alerte"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 60px rgba(240,136,38,.14);
}

.sim__top h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.sim__top p { margin-top: 8px; color: var(--fg-2); font-size: 0.9375rem; max-width: 62ch; }

#sim-svg { width: 100%; height: auto; display: block; margin-top: 22px; }
#sim-plein { transition: none; }
#sim-pointe { transition: none; }

.sim__ctrl { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sim__temps {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Un curseur natif, donc utilisable au clavier et par un lecteur d'écran. */
.sim input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; background: transparent; cursor: grab;
}
.sim input[type="range"]:active { cursor: grabbing; }
.sim input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px; background: var(--line-2);
}
.sim input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 4px; background: var(--line-2);
}
.sim input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -11px;
  border-radius: 50%; background: var(--accent);
  border: 4px solid var(--ink);
  box-shadow: 0 2px 14px rgba(240,136,38,.5);
  transition: transform 160ms var(--out);
}
.sim input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border: 4px solid var(--ink);
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 2px 14px rgba(240,136,38,.5);
}
.sim input[type="range"]:active::-webkit-slider-thumb { transform: scale(.92); }
.sim input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }

.sim__out {
  display: grid; gap: 1px; margin: 22px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden;
}
.sim__out > div { background: var(--ink-2); padding: 16px 18px; min-width: 0; }
.sim__out dt {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
}
.sim__out dd {
  margin: 7px 0 0; font-size: 0.9375rem; color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.sim__out dd b {
  font-family: var(--display); font-weight: 900; font-size: 1.75rem;
  color: var(--fg); letter-spacing: -0.03em; margin-right: 5px;
  transition: color 260ms ease;
}
.sim__out .depasse dd b { color: var(--accent); }
.sim__etat dd { color: var(--fg); font-weight: 700; }
.sim[data-etat="est-alerte"] .sim__etat dd { color: var(--accent); }

/* ── Bento : des tailles, pas six cartes égales ─────────────────────── */
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(300px, auto); }
  .bento > :nth-child(2) { grid-column: span 2; }
  .bento > :nth-child(6) { grid-column: span 2; }
}

/* ── Rupture d'échelle : la signature, en grand ─────────────────────── */
/* C'est la vraie devise de la marque, pas une bande décorative : elle a
   droit au plus gros corps de la page. */
.credo { border-block: 1px solid var(--line); background: var(--ink); overflow: hidden; }
.credo .rail { padding-block: clamp(76px, 12vw, 180px); }
.credo p {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.6rem, 9.4vw, 8rem);
  line-height: .98; letter-spacing: -0.045em;
  max-width: 16ch;
}
.credo > .rail > p > span { display: block; }
.credo > .rail > p > span:last-child .m:not(.on) { color: var(--fg-3); }
.credo em { font-style: italic; color: var(--accent); }
/* Le jambage du « f » italique a besoin d'air sous la ligne. */
.credo > .rail > p > span:last-child { padding-bottom: .08em; }

@supports (animation-timeline: view()) {
  .credo span:first-child { animation: glisseG linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
  .credo span:last-child  { animation: glisseD linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
}
@keyframes glisseG { from { transform: translateX(-4%); } to { transform: translateX(2%); } }
@keyframes glisseD { from { transform: translateX(6%);  } to { transform: translateX(-2%); } }

@media (max-width: 620px) {
  .sim__out { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .sim__out { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .credo span { animation: none !important; transform: none !important; }
  .sim { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   TROISIÈME PASSE
   Relevé sur Linear et Resend, puis transposé :
   - l'entrée des titres se fait en flou, pas en fondu ;
   - les bords se terminent par un masque dégradé, jamais par une coupe ;
   - aux très grandes tailles la graisse baisse au lieu de monter ;
   - une lueur chaude, large et masquée, remplace l'aplat uniforme.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Graisses : du poids en petit, de la légèreté en grand ──────────── */
.hero__h1 { font-weight: 800; letter-spacing: -0.045em; }
.credo p  { font-weight: 800; letter-spacing: -0.05em; }
.h-section, .terrain h2, .band h2, .end h2 { font-weight: 800; letter-spacing: -0.04em; }

/* ── Entrée en flou ─────────────────────────────────────────────────── */
/* Le flou rend l'arrivée matérielle : le mot se forme au lieu d'apparaître. */
.hero__h1 .w i { animation: formeToi .9s var(--out) backwards; }
@keyframes formeToi {
  from { transform: translateY(105%); filter: blur(14px); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: translateY(0);    filter: blur(0);    opacity: 1; }
}
h2[data-rv], .h-section[data-rv], .end h2[data-rv] { filter: blur(7px); }
h2[data-rv].is-in, .h-section[data-rv].is-in { filter: blur(0); }
[data-rv] { transition: opacity .75s var(--out), transform .75s var(--out), filter .75s var(--out); }

/* ── Fondus par masque plutôt que coupes nettes ─────────────────────── */
.bande {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
/* Le bas de la photographie du héros se dissout au lieu de s'arrêter. */
.hero__media::after {
  background:
    linear-gradient(to top, var(--ink) 2%, rgba(10,9,8,.48) 42%, rgba(10,9,8,.18) 100%),
    linear-gradient(to right, rgba(10,9,8,.84) 0%, rgba(10,9,8,.06) 64%);
}
/* Les listes longues se terminent en fondu, pas sur un filet sec. */
.state ul {
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, rgba(0,0,0,.45));
          mask-image: linear-gradient(to bottom, #000 82%, rgba(0,0,0,.45));
}

/* ── Lueur chaude, large et masquée ─────────────────────────────────── */
/* Une seule teinte, celle de l'accent. Posée derrière, jamais sur le texte. */
.credo, .band { position: relative; isolation: isolate; overflow: hidden; }
.credo::before, .band::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: min(1400px, 150%); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(240,136,38,.16), transparent 62%);
  filter: blur(42px);
}
.band::before { top: 34%; }

/* ── Le credo s'allume mot à mot, au rythme du défilement ───────────── */
/* C'est le lecteur qui éclaire la phrase en descendant. */
.credo .m { color: var(--fg-3); transition: color .45s var(--out); }
.credo .m.on { color: var(--fg); }
.credo .m em, .credo .m.on em { color: var(--accent); font-style: italic; }
@supports (animation-timeline: view()) {
  .credo .m { animation: allume linear both; animation-timeline: view(); transition: none; }
  .credo > .rail > p > span { animation: none !important; transform: none !important; }
}
@keyframes allume { to { color: var(--fg); } }

/* Verre dépoli sur la carte du simulateur : elle flotte au-dessus du fond. */
.sim { backdrop-filter: blur(10px); background: rgba(10, 9, 8, .72); }

@media (prefers-reduced-motion: reduce) {
  .hero__h1 .w i { animation: none; filter: none; opacity: 1; }
  [data-rv] { filter: none; }
  .credo .m { color: var(--fg); animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .sim { backdrop-filter: none; background: var(--ink); }
}

/* Les mots restent dans le flux de leur ligne. */
.credo .m { display: inline; }

/* « jamais » : `.hero__h1 .w i` (0,2,1) l'emportait sur `.hero__h1 .em`
   (0,2,0) et le remettait en romain. Sélecteur plus spécifique. */
.hero__h1 .w i.em { font-style: italic; font-weight: 800; color: var(--accent); }
