/* ==========================================================================
   CALYVO · feuille de style
   Système : papier (façade) / nuit (infrastructure) + un seul signal vert.
   Le vert n'est jamais décoratif : il marque ce qui circule.
   ========================================================================== */

:root {
  /* Façade : papier technique, légèrement froid */
  --paper: #F2F3EF;
  --paper-2: #E8EAE4;
  --paper-3: #DCDFD8;
  --ink: #121614;
  --ink-2: #39403C;
  --mute: #5F6762;
  --rule: #C8CDC6;

  /* Infrastructure : nuit graphite */
  --night: #0F1311;
  --night-2: #161B18;
  --night-3: #1F2622;
  --night-rule: #2D3531;
  --night-ink: #E8ECE7;
  --night-2ink: #B6BEB8;
  --night-mute: #85908A;

  /* Signal Calyvo : "voie libre" */
  --signal: #14C47A;
  --signal-ink: #06723F;       /* texte vert sur papier (contraste AA) */
  --signal-soft: rgba(20, 196, 122, .14);

  --rail: #8E9690;

  --f-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --pad: 16px;          /* marge latérale */
  --gut: 30px;          /* gouttière de la ligne */
  --rail-off: 7px;      /* position de la ligne dans la gouttière */
  --hdr: 58px;

  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: light;
}

@media (min-width: 720px) { :root { --pad: 28px; --gut: 64px; --rail-off: 18px; } }
@media (min-width: 1024px) { :root { --pad: 40px; --gut: 112px; --rail-off: 34px; --hdr: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ol, ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--ink); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Section = station ---------- */
.stn {
  --bg: var(--paper); --fg: var(--ink); --fg-2: var(--ink-2); --fg-mute: var(--mute); --line: var(--rule); --panel: var(--paper-2);
  --sig-text: var(--signal-ink);
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(72px, 10vw, 140px);
}
.tone-dark {
  --bg: var(--night); --fg: var(--night-ink); --fg-2: var(--night-2ink); --fg-mute: var(--night-mute); --line: var(--night-rule); --panel: var(--night-2);
  --sig-text: var(--signal);
  color-scheme: dark;
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: calc(var(--pad) + var(--gut)) var(--pad);
}
.stn-head { position: relative; display: flex; align-items: center; min-height: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.stn-mark {
  position: absolute; z-index: 4;
  left: calc(-1 * var(--gut) + var(--rail-off));
  top: 50%;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--rail);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.stn-mark.is-passed { border-color: var(--signal); }
.stn-mark.is-current { background: var(--signal); border-color: var(--signal); transform: translate(-50%, -50%) scale(1.15); }
.stn-mark-end { border-radius: 0; width: 26px; height: 26px; }
.stn-code {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute);
  display: flex; gap: 10px; align-items: baseline;
}
.stn-code b { color: var(--fg); font-weight: 600; }

/* ---------- Typo ---------- */
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-stretch: 112%;
  font-weight: 700;
  text-wrap: balance;
  max-width: 17ch;
}
.h2-wide { max-width: 24ch; }
.h2 .mute { color: var(--fg-mute); }
.h3 { font-size: 1.35rem; line-height: 1.2; font-stretch: 108%; letter-spacing: -.01em; text-wrap: balance; }
.prose p, .prose-s { color: var(--fg-2); max-width: 52ch; }
.prose p + p { margin-top: .9em; }
.prose-s + .prose-s { margin-top: .8em; }
.prose-s b, .prose b { color: var(--fg); font-weight: 600; }
.lede-s { color: var(--fg-2); max-width: 60ch; margin-top: 20px; }
.note { margin-top: 16px; font-size: .85rem; color: var(--fg-mute); }
.sig { color: var(--signal); }
.sig-ink { color: var(--sig-text); }

.split { display: grid; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .split { grid-template-columns: 1.25fr 1fr; } }

/* ---------- Boutons ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--fg, var(--ink)); --b-bd: currentColor;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 50px; padding: 0 22px;
  background: var(--b-bg); color: var(--b-fg);
  border: 1.5px solid var(--b-bd);
  font-family: var(--f-sans); font-weight: 600; font-size: 1rem; font-stretch: 105%;
  text-decoration: none; cursor: pointer;
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-signal { --b-bg: var(--signal); --b-fg: var(--ink); --b-bd: var(--signal); }
.btn-signal:hover { --b-bg: #10b06d; --b-bd: #10b06d; }
.btn-line:hover { --b-bg: var(--fg, var(--ink)); --b-fg: var(--bg, var(--paper)); --b-bd: var(--fg, var(--ink)); }
.btn-ghost { --b-bd: var(--line); }
.btn-ghost:hover { --b-bd: var(--fg); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-arrow { position: relative; width: 26px; height: 2px; background: currentColor; transition: width .25s var(--ease); }
.btn-arrow::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.btn:hover .btn-arrow { width: 38px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(242, 243, 239, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: background .3s;
}
.hdr.on-dark { background: rgba(15, 19, 17, .9); border-bottom-color: var(--night-rule); color: var(--night-ink); }
.hdr-in {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  height: var(--hdr); display: flex; align-items: center; gap: 20px;
  transition: height .3s var(--ease);
}
.hdr.is-compact .hdr-in { height: calc(var(--hdr) - 8px); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font-weight: 800; font-stretch: 125%; letter-spacing: .06em; font-size: 1.05rem; }
.hdr-nav { display: none; gap: 4px; margin-left: 12px; }
.hdr-nav a { text-decoration: none; font-size: .93rem; font-weight: 500; padding: 8px 10px; border-radius: 2px; position: relative; }
.hdr-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.hdr-nav a:hover::after, .hdr-nav a.is-active::after { transform: scaleX(1); }
.hdr-stn {
  margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
}
.hdr-stn-code { background: var(--ink); color: var(--paper); padding: 3px 6px; font-weight: 600; }
.hdr.on-dark .hdr-stn-code { background: var(--signal); color: var(--ink); }
.hdr-stn-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-stn-next { display: none; color: var(--mute); white-space: nowrap; }
.hdr.on-dark .hdr-stn-next { color: var(--night-mute); }
.hdr-cta { display: none; }
.hdr-menu { display: inline-grid; gap: 5px; place-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex: none; }
.hdr-menu i { display: block; width: 22px; height: 2px; background: currentColor; }
.hdr-menu i:last-child { width: 14px; justify-self: end; }
@media (min-width: 720px) { .hdr-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .hdr-nav { display: flex; }
  .hdr-menu { display: none; }
  .hdr-stn { margin-left: auto; }
  .hdr-stn-next { display: inline; }
}
@media (max-width: 380px) { .hdr-stn-name { display: none; } }

/* Menu mobile : plan de ligne */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--night-ink); padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 24px); overflow-y: auto; }
.menu-in { max-width: 560px; margin-inline: auto; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 44px; color: var(--night-mute); }
.menu-close { background: none; border: 1px solid var(--night-rule); color: var(--night-ink); padding: 8px 14px; cursor: pointer; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.menu-line { margin-top: 28px; position: relative; padding-left: 36px; }
.menu-line::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 18px; width: 3px; background: var(--signal); }
.menu-line li { position: relative; }
.menu-line li::before { content: ""; position: absolute; left: -36px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; border-radius: 50%; background: var(--night); border: 3px solid var(--signal); box-sizing: border-box; }
.menu-line li.is-end::before { border-radius: 0; background: var(--signal); }
.menu-line a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; text-decoration: none; font-size: 1.7rem; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; }
.menu-line b { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; color: var(--night-mute); letter-spacing: .06em; width: 34px; flex: none; }

/* ==========================================================================
   LIGNE PRINCIPALE
   ========================================================================== */
.network { position: relative; }
.rail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.rail-base { stroke: var(--rail); stroke-width: 2; }
.rail-prog { stroke: var(--signal); stroke-width: 4; }
.rail-branch { fill: none; stroke: var(--rail); stroke-width: 2; stroke-dasharray: 3 5; }
.rail-dot {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 5px var(--signal-soft);
  will-change: transform;
}
.rail-token {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  background: var(--signal); color: var(--ink); padding: 3px 7px; white-space: nowrap;
  display: none;
}
.rail-token::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 2px; background: var(--signal); }
@media (min-width: 1024px) { .rail-token { display: block; } }

/* ==========================================================================
   C00 · HERO
   ========================================================================== */
.stn-hero { padding-top: calc(var(--hdr) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: clamp(20px, 3vw, 32px); }
.tag-signal { font-weight: 700; font-stretch: 110%; font-size: .95rem; padding: 5px 10px; border: 1.5px solid var(--ink); }
.plus { font-family: var(--f-mono); color: var(--signal-ink); font-weight: 600; }
.for { color: var(--ink-2); font-size: .95rem; margin-left: 4px; }
.hero-title {
  font-size: clamp(2.5rem, 6.2vw, 5.9rem);
  line-height: .96;
  letter-spacing: -.035em;
  font-stretch: 116%;
  font-weight: 750;
}
.hero-title .l1, .hero-title .l2 { display: block; }
.hero-title .l2 { color: var(--mute); }
.sig-dot {
  display: inline-block; width: .19em; height: .19em; margin-left: .06em;
  background: var(--signal); border-radius: 50%;
  vertical-align: baseline;
  animation: sigPulse 2.8s ease-in-out infinite;
}
@keyframes sigPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(20, 196, 122, .35); } 50% { box-shadow: 0 0 0 .12em rgba(20, 196, 122, 0); } }
.hero-foot { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 48px); align-items: end; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--ink-2); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bandeau de ligne (comme au-dessus des portes d'un train) */
.band { margin: clamp(48px, 7vw, 88px) 0 0; border-top: 1.5px solid var(--ink); padding-top: 18px; }
.band-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 30px; color: var(--ink-2); }
.band-legend { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--mute); }
.band-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-off { border: 2px solid var(--rail); }
.lg-on { background: var(--signal); margin-left: 10px; }
.band-line { position: relative; display: flex; justify-content: space-between; --p: 0; }
.band-line::before, .band-line::after { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 3px; margin-top: -1.5px; }
.band-line::before { background: var(--rail); }
.band-line::after { background: var(--signal); transform-origin: left; transform: scaleX(var(--p)); transition: transform .5s linear; }
.band-stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 0 0 auto; width: 14px; }
.band-stop i { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--rail); transition: all .25s; }
.band-stop.is-origin i, .band-stop.is-end i { border-radius: 0; }
.band-stop span { font-size: .82rem; font-weight: 500; white-space: nowrap; color: var(--mute); transition: color .25s; }
.band-stop:first-child { align-items: flex-start; }
.band-stop:last-child { align-items: flex-end; }
.band-stop.is-lit i { border-color: var(--signal); background: var(--signal); }
.band-stop.is-lit span { color: var(--ink); }
@media (max-width: 719px) {
  .band-stop.minor, .band-stop.minor-m { display: none; }
  .band-line { margin-top: 26px; }
  .band-stop.up span { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); }
  .band-stop span { font-size: .78rem; }
}

/* ==========================================================================
   C01 · SOURCES
   ========================================================================== */
.map { margin: 0 0 clamp(40px, 5vw, 56px); }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map .map-mob { display: block; max-width: 420px; }
.map .map-desk { display: none; }
@media (min-width: 900px) { .map .map-mob { display: none; } .map .map-desk { display: block; } }
.src-labels text { font-family: var(--f-mono); font-size: 12px; fill: var(--ink-2); letter-spacing: .02em; }
.src-paths path { fill: none; stroke: var(--rail); stroke-width: 1.5; transition: stroke .3s, stroke-width .3s; }
.src-paths path.is-lit { stroke: var(--signal); stroke-width: 2.5; }
.main-path { fill: none; stroke: var(--ink); stroke-width: 3; }
.nodes circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.nodes .node-site { fill: var(--ink); }
.nodes .node-end { fill: var(--signal); stroke: var(--ink); stroke-width: 2; }
.nodes .n-t { font-family: var(--f-sans); font-weight: 700; font-size: 17px; fill: var(--ink); text-anchor: middle; font-stretch: 110%; }
.nodes .n-s { font-family: var(--f-mono); font-size: 11px; fill: var(--mute); text-anchor: middle; }
.pulse { fill: var(--signal); }
.map-mob .nodes .n-t, .map-mob .nodes .n-s { text-anchor: start; }
.map-mob .nodes .n-t { paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }

.facts { display: grid; gap: 18px 40px; border-top: 1px solid var(--line); padding-top: 28px; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { color: var(--fg-2); max-width: 34ch; }
.facts b { display: block; color: var(--fg); font-size: 1.15rem; font-stretch: 108%; margin-bottom: 4px; }

/* ==========================================================================
   C02 · RADIOGRAPHIE façade / infrastructure
   ========================================================================== */
.hint { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--mute) !important; margin-top: 14px !important; }
.hint-key { font-family: var(--f-mono); display: inline-grid; place-items: center; width: 30px; height: 24px; border: 1px solid var(--rule); color: var(--ink); }

.xray { position: relative; --x: 52%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.xr-layer {
  display: grid; gap: 28px;
  padding: clamp(20px, 3.4vw, 44px);
  grid-template-columns: minmax(0, 1fr);
  min-height: 100%;
}
@media (min-width: 800px) { .xr-layer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; } }
.xr-back { background: var(--night); color: var(--night-ink); position: relative; }
.xr-back::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--night-rule) 1px, transparent 1px), linear-gradient(90deg, var(--night-rule) 1px, transparent 1px); background-size: 24px 24px; opacity: .45; pointer-events: none; }
.xr-front {
  position: absolute; inset: 0; background: #FBFBF8;
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
  border: 1px solid var(--rule);
}
.xr-site, .xr-flow, .xr-calm { position: relative; }
.xr-eyebrow { display: block; height: 20px; line-height: 20px; font-size: .8rem; color: var(--mute); margin-bottom: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-back .xr-eyebrow { color: var(--signal); }
.xr-form { display: grid; gap: 12px; }
.ff, .xf { min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 14px; }
.ff { background: #fff; border: 1px solid #D9DCD5; border-radius: 6px; }
.ff-l { font-size: .74rem; color: var(--mute); }
.ff-v { font-size: .98rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.chev { width: 8px; height: 8px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg) translateY(-3px); }
.ff-area, .xf-area { min-height: 76px; justify-content: flex-start; }
.ff-btn { background: #1C2A26; color: #fff; border-color: #1C2A26; align-items: center; font-weight: 600; font-size: .98rem; }
.xf { border: 1px dashed #3E4A44; font-family: var(--f-mono); position: relative; }
.xf-l { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--night-mute); }
.xf-v { font-size: .82rem; color: var(--night-ink); }
.xf-btn { border-style: solid; border-color: var(--signal); }
.xf-btn .xf-v { color: var(--signal); }
.xf::after { content: ""; position: absolute; right: -8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--signal); }
.xr-flow { display: grid; gap: 10px; counter-reset: xf; position: relative; padding-left: 26px; }
.xr-flow::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--signal); }
.xr-flow li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--night-rule); }
.xr-flow li::before { content: ""; position: absolute; left: -26px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--night); border: 2.5px solid var(--signal); }
.xr-flow b { font-weight: 700; font-stretch: 108%; font-size: 1.02rem; }
.xr-flow span { font-family: var(--f-mono); font-size: .76rem; color: var(--night-2ink); }
.xr-calm { align-self: center; }
.xr-calm-t { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; font-stretch: 110%; letter-spacing: -.02em; }
.xr-calm-s { color: var(--ink-2); margin-top: 8px; max-width: 30ch; }
.xr-handle {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 44px; margin-left: -22px;
  cursor: ew-resize; z-index: 3; touch-action: none; outline: none;
}
.xr-handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--signal); }
.xr-grip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--signal); display: flex; align-items: center; justify-content: center; gap: 5px; box-shadow: 0 0 0 6px var(--signal-soft); }
.xr-grip i { width: 2px; height: 14px; background: var(--ink); }
.xr-handle:focus-visible .xr-grip { outline: 2px solid var(--ink); outline-offset: 3px; }
.xr-lab { position: absolute; top: 12px; font-size: .64rem; padding: 3px 6px; white-space: nowrap; }
.xr-lab-l { right: 30px; background: var(--ink); color: var(--paper); }
.xr-lab-r { left: 30px; background: var(--signal); color: var(--ink); }

/* ==========================================================================
   C03 · AIGUILLAGE
   ========================================================================== */
.switch-grid { display: grid; gap: 28px; margin-top: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .switch-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; } }
.lane-panel { border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px); background: var(--night-2); }
.lane-auto { border-color: rgba(20, 196, 122, .5); }
.lp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 18px; }
.lp-head .mono { color: var(--fg-mute); }
.lp-head b { font-size: 1.25rem; font-stretch: 110%; }
.lp-count { margin-left: auto; color: var(--fg-2) !important; }
.lane-auto .lp-count { color: var(--signal) !important; }
.lp-foot { margin-top: 18px; color: var(--fg-2); font-size: .95rem; }

.lanes { position: relative; --cell: 30px; }
@media (min-width: 560px) { .lanes { --cell: 56px; } }
.lanes-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(var(--n), var(--cell)); align-items: center; min-height: 42px; position: relative; z-index: 1; }
.lanes-head { min-height: 30px; }
.lanes-head span { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-mute); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 560px) { .lanes-head span { font-size: .64rem; } }
.lanes-lbl { font-size: .82rem; line-height: 1.25; color: var(--fg-2); display: flex; gap: 8px; align-items: baseline; padding-right: 8px; transition: color .3s; }
.lanes-lbl i { font-style: normal; font-family: var(--f-mono); font-size: .66rem; color: var(--fg-mute); }
.lanes-cell { position: relative; height: 42px; display: grid; place-items: center; }
.lanes-cell::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.lanes-cell .nd { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--night-2); border: 2px solid var(--night-mute); transition: all .3s; }
.lane-manual .lanes-row.is-on .lanes-lbl { color: var(--fg); }
.lane-manual .lanes-row.is-on .nd { border-color: var(--fg); background: var(--fg); }
.lane-auto .nd { border-color: var(--signal); }
.lane-auto.is-on .nd { background: var(--signal); }
.lane-auto .sys-bar { position: absolute; z-index: 0; height: 30px; background: rgba(20, 196, 122, .12); border: 1.5px solid var(--signal); }
.lanes svg.lanes-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.lanes-path path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lane-manual .lanes-path path { stroke: var(--night-2ink); stroke-dasharray: var(--len) var(--len); stroke-dashoffset: calc(var(--len) * (1 - var(--p, 0))); }
.lane-auto .lanes-path path { stroke: var(--signal); stroke-width: 3; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.2s var(--ease); }
.lane-auto.is-on .lanes-path path { stroke-dashoffset: 0; }
.punch { margin-top: clamp(48px, 6vw, 80px); font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.15; max-width: 30ch; text-wrap: balance; }

/* ==========================================================================
   C04 · SIMULATEUR
   ========================================================================== */
.stn-sim { border-top: 1px solid var(--night-rule); }
.sim { border: 1px solid var(--night-rule); background: var(--night-2); }
.sim-line { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--night-rule); }
@media (min-width: 900px) { .sim-line { grid-template-columns: 220px minmax(0, 1fr); } }
.sim-go {
  display: flex; align-items: center; gap: 14px; justify-content: flex-start;
  padding: 22px 24px; background: var(--signal); color: var(--ink); border: 0; cursor: pointer;
  font-weight: 700; font-stretch: 108%; font-size: 1.05rem; text-align: left;
}
.sim-go:hover { background: #10b06d; }
.sim-go[disabled] { cursor: progress; }
.sim-go-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); flex: none; box-shadow: 0 0 0 4px rgba(18, 22, 20, .15); }
.sim.is-running .sim-go-dot { animation: goPulse .8s ease-in-out infinite; }
@keyframes goPulse { 50% { box-shadow: 0 0 0 8px rgba(18, 22, 20, 0); } }
.sim-steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 10px 18px 14px 18px; }
.sim-steps::before { content: ""; position: absolute; left: 30px; top: 30px; bottom: 30px; width: 2px; background: var(--night-rule); }
.sim-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--night-mute); width: 100%; }
.sim-step .ss-n { font-family: var(--f-mono); font-size: .68rem; width: 20px; flex: none; order: 2; }
.sim-step .ss-d { position: relative; z-index: 1; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--night-rule); background: var(--night-2); display: grid; place-items: center; transition: all .35s var(--ease); }
.sim-step .ss-d::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--night-rule); transition: background .3s; }
.sim-step .ss-l { order: 3; font-weight: 600; font-size: .98rem; transition: color .3s; }
.sim-step.is-done { color: var(--night-2ink); }
.sim-step.is-done .ss-d { border-color: var(--signal); }
.sim-step.is-done .ss-d::after { background: var(--signal); }
.sim-step.is-active { color: var(--night-ink); }
.sim-step.is-active .ss-d { background: var(--signal); border-color: var(--signal); transform: scale(1.12); }
.sim-step.is-active .ss-d::after { background: var(--ink); }
.sim-prog { position: absolute; left: 30px; top: 30px; width: 2px; background: var(--signal); height: 0; transition: height .5s var(--ease); z-index: 0; }
@media (min-width: 900px) {
  .sim-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 26px 24px 22px; }
  .sim-steps::before { left: 37px; right: 37px; top: 39px; bottom: auto; width: auto; height: 2px; }
  .sim-prog { left: 37px; top: 39px; height: 2px !important; width: 0; transition: width .5s var(--ease); }
  .sim-step { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 10px 0 0; }
  .sim-step .ss-n { order: 2; }
  .sim-step .ss-l { order: 3; font-size: .92rem; line-height: 1.25; }
}
.sim-out { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sim-out { grid-template-columns: 1.1fr 1fr; } }
.sim-token { min-height: 220px; padding: 24px; border-bottom: 1px solid var(--night-rule); display: flex; align-items: center; }
@media (min-width: 900px) { .sim-token { border-bottom: 0; border-right: 1px solid var(--night-rule); padding: 32px; } }
.sim-desc { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
@media (min-width: 900px) { .sim-desc { padding: 32px; } }
.sim-desc-k { color: var(--signal); }
.sim-desc-t { font-size: 1.15rem; line-height: 1.4; color: var(--night-ink); max-width: 36ch; }
.sim-ai { color: var(--night-mute); border: 1px dashed var(--night-rule); padding: 5px 8px; align-self: flex-start; }

/* formes successives de la donnée */
.tk { width: 100%; font-family: var(--f-mono); font-size: .84rem; line-height: 1.5; animation: tkIn .45s var(--ease); }
@keyframes tkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tk-cap { display: flex; justify-content: space-between; gap: 10px; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--night-mute); margin-bottom: 10px; }
.tk-cap b { color: var(--signal); font-weight: 600; }
.tk-raw { border-left: 2px solid var(--night-mute); padding: 4px 0 4px 14px; color: var(--night-2ink); font-family: var(--f-sans); font-size: 1rem; font-style: italic; }
.tk-fields { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--night-rule); }
.tk-fields dt, .tk-fields dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--night-rule); }
.tk-fields dt { color: var(--night-mute); padding-right: 18px; }
.tk-fields dd { color: var(--night-ink); }
.tk-rec { border: 1px solid var(--night-rule); }
.tk-rec-h, .tk-rec-r { display: grid; grid-template-columns: 1.2fr 1.4fr .9fr; gap: 10px; padding: 8px 12px; }
.tk-rec-h { color: var(--night-mute); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--night-rule); }
.tk-rec-r.old { color: var(--night-mute); }
.tk-rec-r.new { background: rgba(20, 196, 122, .1); color: var(--night-ink); }
.tk-rec-r .st { color: var(--signal); }
.tk-note { border: 1px solid var(--night-rule); padding: 14px 16px; display: grid; gap: 4px; position: relative; }
.tk-note::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--signal); }
.tk-note b { color: var(--night-ink); font-family: var(--f-sans); font-size: 1rem; }
.tk-note span { color: var(--night-2ink); }
.tk-mail { border: 1px solid var(--night-rule); padding: 14px 16px; font-family: var(--f-sans); font-size: .95rem; color: var(--night-2ink); }
.tk-mail .to { font-family: var(--f-mono); font-size: .72rem; color: var(--night-mute); margin-bottom: 8px; }
.tk-mail .st { display: inline-block; margin-top: 10px; font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--signal); padding: 2px 6px; }
.tk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tk-cal span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--night-rule); font-size: .72rem; color: var(--night-mute); }
.tk-cal span.today { color: var(--night-ink); border-color: var(--night-2ink); }
.tk-cal span.target { background: var(--signal); color: var(--ink); border-color: var(--signal); font-weight: 600; }
.tk-idle { color: var(--night-mute); display: grid; gap: 14px; justify-items: start; }
.tk-idle .env { width: 64px; height: 44px; border: 1.5px dashed var(--night-mute); position: relative; }
.tk-idle .env::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 18px; border-bottom: 1.5px dashed var(--night-mute); transform: skewY(0); }

.auto-after { display: grid; gap: 36px; margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .auto-after { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.auto-after .h3 { margin-bottom: 16px; }
.wf-list { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 600px) { .wf-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.wf-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 2px 0; }
.wf-list li i { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--signal); grid-row: span 2; padding-top: 3px; }
.wf-list b { font-stretch: 106%; }
.wf-list span { color: var(--fg-2); font-size: .92rem; }

/* ==========================================================================
   C05 · RÉALISATIONS
   ========================================================================== */
.fork { margin-top: clamp(40px, 6vw, 72px); }
.fork-root { display: flex; align-items: center; gap: 12px; justify-content: flex-start; color: var(--ink-2); }
.fork-node { width: 18px; height: 18px; background: var(--ink); flex: none; }
.fork-svg { display: none; }
@media (min-width: 900px) {
  .fork-root { justify-content: center; }
  .fork-svg { display: block; width: 100%; height: 70px; }
  .fork-svg path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
}
.fork-cols { display: grid; gap: 56px; margin-top: 28px; }
@media (min-width: 900px) { .fork-cols { grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 0; } }
.case { display: grid; gap: 22px; align-content: start; }
.case-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.case-name { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; font-stretch: 120%; letter-spacing: -.02em; line-height: 1; }
.case-trade { font-size: 1.05rem; color: var(--ink-2); }
.case-status { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--ink); padding: 3px 7px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; position: relative; }
.chain li:first-child::before { content: ""; width: 10px; height: 10px; background: var(--ink); margin-right: 8px; }
.chain li { display: flex; align-items: center; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.chain li::after { content: ""; width: 18px; height: 2px; background: var(--rail); margin: 0 6px; }
.chain li:last-child::after { display: none; }
.chain li:last-child { color: var(--ink); font-weight: 600; background: var(--paper-3); padding: 3px 6px; }
.case.is-hot .chain li::after { background: var(--signal); }
.case-sum { color: var(--ink-2); max-width: 48ch; }
.case-det { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-2); }
.case-det li::before { content: ""; display: inline-block; width: 7px; height: 7px; border: 1.5px solid var(--ink); border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.case-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.case-link .btn-arrow { width: 20px; }
.case-nolink { font-size: .88rem; color: var(--mute); }
.statement { margin-top: clamp(56px, 8vw, 104px); font-size: clamp(1.7rem, 3.8vw, 3.1rem); font-weight: 750; font-stretch: 115%; letter-spacing: -.03em; line-height: 1.05; max-width: 22ch; text-wrap: balance; }

/* mini démo Voltis */
.demo { position: relative; overflow: hidden; }
.demo-voltis { background: #0B0D10; color: #E6E8EB; padding: 18px; border: 1px solid #0B0D10; }
.dv-top, .ds-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.dv-logo { font-weight: 800; font-stretch: 125%; letter-spacing: .12em; font-size: .95rem; color: #F2D23A; }
.dv-sub { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: #7D848C; }
.dv-board { display: grid; gap: 12px; background-image: linear-gradient(#171B20 1px, transparent 1px), linear-gradient(90deg, #171B20 1px, transparent 1px); background-size: 20px 20px; padding: 10px; border: 1px solid #1E2329; }
.dv-svg { width: 100%; height: auto; display: block; }
.dv-bus { stroke: #F2D23A; stroke-width: 3; fill: none; }
.dv-c { stroke: #F2D23A; stroke-width: 2; fill: none; transition: stroke .25s, opacity .25s; }
.dv-c.off { stroke: #333A42; }
.dv-load { fill: #F2D23A; transition: fill .25s; }
.dv-load.off { fill: #262C33; }
.dv-breakers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dv-br { background: #14181D; border: 1px solid #2A3037; color: #7D848C; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; padding: 26px 2px 8px; cursor: pointer; position: relative; min-height: 44px; }
.dv-br::before { content: ""; position: absolute; left: 50%; top: 8px; width: 12px; height: 14px; margin-left: -6px; background: #333A42; transition: background .2s, transform .2s; transform: translateY(4px); }
.dv-br.is-on { color: #E6E8EB; }
.dv-br.is-on::before { background: #F2D23A; transform: none; }
.demo-hint { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: #7D848C; margin-top: 10px; }

/* mini démo Sillage */
.demo-sillage { background: #EFEBE3; color: #2F3A2C; padding: 18px; border: 1px solid #DAD3C6; }
.ds-logo { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.3rem; letter-spacing: .01em; }
.ds-sub { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: #6B6655; }
.ds-svg { width: 100%; height: auto; display: block; }
.ds-plot { fill: #DCE3CF; stroke: #B8BFA6; }
.ds-house { fill: #F7F4EE; stroke: #8A8472; stroke-width: 1.2; }
.ds-terrace { fill: #E7DCC8; stroke: #B7A98C; stroke-width: 1; }
.ds-path { fill: none; stroke: #EFE7D6; stroke-width: 7; stroke-linecap: round; }
.ds-tree { fill: #6F8757; stroke: #55693F; stroke-width: 1; }
.ds-shadows > * { fill: rgba(46, 58, 60, .28); }
.ds-n { font-family: var(--f-mono); font-size: 8px; fill: #7A705C; }
.ds-range { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-top: 12px; }
.ds-h { font-family: var(--f-mono); font-size: .8rem; min-width: 52px; }
.ds-range input { width: 100%; accent-color: #6F8757; height: 28px; }

/* ==========================================================================
   C06 · TARIFS
   ========================================================================== */
.fares { display: grid; gap: clamp(40px, 5vw, 64px); }
.fare-title { display: flex; align-items: center; gap: 12px; font-weight: 700; font-stretch: 110%; font-size: 1.2rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.line-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: .95rem; }
.fare-rows li { position: relative; }
.fare {
  display: grid; gap: 14px 24px; padding: 24px 0; border-bottom: 1px solid var(--rule);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "route route" "desc desc";
}
@media (min-width: 900px) {
  .fare { grid-template-columns: 200px minmax(160px, 260px) minmax(0, 1fr) 150px; grid-template-areas: "name route desc price"; align-items: start; padding: 30px 0; }
}
.fare-name { grid-area: name; }
.fare-name b { display: block; font-size: 1.35rem; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.15; }
.fare-name span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.fare-route { grid-area: route; height: 44px; }
.fare-route svg { width: 100%; height: 44px; overflow: visible; display: block; }
.fare-route .fr-l { stroke: var(--rail); stroke-width: 2.5; fill: none; transition: stroke .35s; }
.fare-route .fr-o { stroke: var(--rail); stroke-width: 2; stroke-dasharray: 3 4; fill: none; }
.fare-route .fr-n { fill: var(--paper); stroke: var(--ink); stroke-width: 2; transition: fill .35s, stroke .35s; }
.fare-route .fr-s { fill: var(--ink); }
.fare:hover .fr-l, .fare:focus-within .fr-l, .fare.is-lit .fr-l { stroke: var(--signal); }
.fare:hover .fr-n, .fare.is-lit .fr-n { stroke: var(--signal-ink); }
.fare-desc { grid-area: desc; color: var(--ink-2); display: grid; gap: 8px; }
.fare-desc p { max-width: 50ch; }
.fare-desc .ex { font-size: .9rem; color: var(--mute); }
.fare-inc { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--ink-2); }
.fare-inc li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--signal); border-radius: 50%; margin-right: 8px; vertical-align: 2px; }
.fare-price { grid-area: price; text-align: right; }
.fare-price b { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); font-stretch: 110%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; white-space: nowrap; }
.fare-price span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.fare-note { color: var(--mute); font-size: .9rem; margin-top: -20px; }
.combo { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 28px 0 0; border-top: 2px solid var(--ink); }
.combo p { max-width: 56ch; color: var(--ink-2); }
.combo b { color: var(--ink); }

/* ==========================================================================
   C07 · LÉGENDE
   ========================================================================== */
.legend-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .legend-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; } }
.legend-grid .h2 { margin-bottom: 22px; }
.legend { border: 2px solid var(--ink); background: var(--paper); }
.legend-t { padding: 10px 18px; background: var(--ink); color: var(--paper); }
.legend-rows li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; border-top: 1px solid var(--rule); }
.legend-rows li:first-child { border-top: 0; }
.legend-rows svg { width: 72px; height: 28px; overflow: visible; }
.legend-rows svg * { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.legend-rows svg .sg { stroke: var(--signal); }
.legend-rows svg .fl { fill: var(--ink); stroke: none; }
.legend-rows svg .fs { fill: var(--signal); stroke: none; }
.legend-rows svg .hol { fill: var(--paper); }
.legend-rows svg .ds { stroke-dasharray: 3 4; stroke: var(--rail); }
.legend-rows b { display: flex; gap: 10px; align-items: baseline; font-size: 1.08rem; font-stretch: 108%; }
.legend-rows b i { font-style: normal; font-family: var(--f-mono); font-size: .68rem; color: var(--mute); font-weight: 500; }
.legend-rows p { color: var(--ink-2); font-size: .95rem; }

/* ==========================================================================
   C08 · ITINÉRAIRE
   ========================================================================== */
.route { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.route-line { position: relative; display: grid; gap: 0; padding-left: 34px; }
.route-line::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 3px; background: var(--ink); }
.route-line li { position: relative; padding: 0 0 26px; }
.route-line li::before { content: ""; position: absolute; left: -34px; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-sizing: border-box; transition: background .3s, border-color .3s; }
.route-line li.is-lit::before { background: var(--signal); border-color: var(--signal); }
.route-line li:last-child::before { border-radius: 0; }
.route-line .rn { font-family: var(--f-mono); font-size: .7rem; color: var(--mute); letter-spacing: .06em; }
.route-line b { display: block; font-size: 1.3rem; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.2; }
.route-line p { color: var(--ink-2); font-size: .95rem; }
.route-loop { display: none; }
.route-loop-m { margin-top: 4px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--signal-ink); display: flex; gap: 8px; align-items: center; }
.route-loop-m::before { content: "↺"; font-size: 1rem; }
@media (min-width: 1024px) {
  .route { padding-bottom: 70px; }
  .route-line { grid-template-columns: repeat(7, minmax(0, 1fr)); padding-left: 0; padding-top: 0; }
  .route-line::before { left: 10px; right: 10px; top: 10px; bottom: auto; height: 3px; width: auto; }
  .route-line li { padding: 44px 16px 0 0; }
  .route-line li::before { left: 0; top: 0; }
  .route-loop { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
  .route-loop path { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-dasharray: 5 6; }
  .route-loop-m { position: absolute; bottom: 0; }
}

/* ==========================================================================
   C09 · MAINTENANCE
   ========================================================================== */
.maint { overflow-x: auto; }
.mt { width: 100%; border-collapse: collapse; }
.mt .pp small { display: block; }
.mt th, .mt td { padding: 16px 12px; border-bottom: 1px solid var(--rule); text-align: left; }
.mt thead th { vertical-align: bottom; border-bottom: 2px solid var(--ink); }
.mt thead th:not(:first-child), .mt td:not(:first-child) { text-align: center; width: 26%; }
.mt .pn { display: block; font-size: 1.05rem; font-stretch: 108%; }
.mt .pp { display: block; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 750; font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.mt .pp small { font-size: .9rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.mt td:first-child { color: var(--ink-2); }
.mt .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); }
.mt .no { display: inline-block; width: 14px; height: 2px; background: var(--rule); vertical-align: middle; }
@media (max-width: 559px) { .mt { table-layout: fixed; } .mt th, .mt td { padding: 14px 6px; } .mt thead th:first-child { width: 34%; } .mt td:first-child { font-size: .9rem; overflow-wrap: anywhere; } .mt .pn { font-size: .82rem; line-height: 1.2; font-stretch: 100%; hyphens: auto; -webkit-hyphens: auto; } .mt .pp { font-size: 1.35rem; } .mt thead th:not(:first-child), .mt td:not(:first-child) { width: 33%; } }

/* ==========================================================================
   C10 · FAQ
   ========================================================================== */
.faq-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } .faq-grid .h2 { position: sticky; top: calc(var(--hdr) + 40px); } }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 8px; align-items: baseline; padding: 20px 0; font-weight: 600; font-size: 1.08rem; font-stretch: 104%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-style: normal; font-family: var(--f-mono); font-size: .68rem; color: var(--mute); font-weight: 500; }
.faq summary::after { content: ""; justify-self: end; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); transition: background .2s, border-color .2s; align-self: center; }
.faq details[open] summary::after { background: var(--signal); border-color: var(--signal); }
.faq details p { padding: 0 32px 22px 46px; color: var(--ink-2); max-width: 62ch; }

/* ==========================================================================
   C11 · AUDIT
   ========================================================================== */
.audit { display: grid; gap: 32px; }
.audit-intro .h2 { margin-bottom: 14px; }
.audit-body { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .audit-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } .aroute { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hdr) + 32px); } }
.aform, .adone { border: 1px solid var(--night-rule); background: var(--night-2); padding: clamp(20px, 3vw, 36px); }
.astep { border: 0; margin: 0; padding: 0; min-width: 0; }
.astep-l { display: flex; flex-direction: column; gap: 6px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; padding: 0; margin-bottom: 22px; line-height: 1.15; }
.astep-l .mono { color: var(--signal); }
.choices { display: grid; gap: 8px; }
@media (min-width: 640px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--night-rule); cursor: pointer; transition: border-color .2s, background .2s; min-height: 56px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--night-mute); flex: none; transition: all .2s; }
.choice span { font-size: .98rem; color: var(--night-2ink); }
.choice:hover { border-color: var(--night-mute); }
.choice:has(input:checked) { border-color: var(--signal); background: rgba(20, 196, 122, .08); }
.choice:has(input:checked) i { background: var(--signal); border-color: var(--signal); }
.choice:has(input:checked) span { color: var(--night-ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.fields { display: grid; gap: 14px; }
.fields-2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: .85rem; color: var(--night-2ink); }
.fld em { font-style: normal; color: var(--night-mute); }
.fld input, .fld textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--night-ink);
  background: var(--night); border: 1px solid var(--night-rule); border-radius: 2px;
  padding: 13px 14px; min-height: 50px; transition: border-color .2s;
}
.fld textarea { resize: vertical; min-height: 110px; }
.fld input::placeholder, .fld textarea::placeholder { color: #838D87; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: #E0785B; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.aconsent { margin-top: 16px; font-size: .85rem; color: var(--night-mute); }
.aconsent a { color: var(--night-2ink); text-underline-offset: 3px; }
.aform[aria-busy="true"] .btn-signal { cursor: progress; }
.aerr { margin-top: 16px; color: #F0A48E; font-size: .92rem; }
.anav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.anav .btn-signal { margin-left: auto; }
.tone-dark .btn-ghost { --b-bd: var(--night-rule); }
.aroute { border-left: 0; }
.aroute-t { color: var(--night-mute); margin-bottom: 18px; }
.aroute-line { position: relative; display: grid; gap: 0; padding-left: 32px; }
.aroute-line::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 30px; width: 2px; background: var(--night-rule); }
.aroute-line li { position: relative; padding-bottom: 22px; display: grid; gap: 2px; }
.aroute-line li i { position: absolute; left: -32px; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--night-mute); background: var(--night); transition: all .35s var(--ease); }
.aroute-line li[data-n="calyvo"] i { border-radius: 3px; }
.aroute-line li[data-n="end"] i { border-radius: 0; }
.aroute-line b { font-size: 1.05rem; font-stretch: 108%; color: var(--night-2ink); transition: color .3s; }
.aroute-line span { font-family: var(--f-mono); font-size: .72rem; color: var(--night-mute); letter-spacing: .03em; }
.aroute-line li.is-set b { color: var(--night-ink); }
.aroute-line li.is-set i { border-color: var(--signal); background: var(--signal); }
.aroute-line li.is-set::after { content: ""; position: absolute; left: -24px; top: 20px; bottom: -2px; width: 2px; background: var(--signal); }
.aroute-line li:last-child::after { display: none; }
.aroute-line li[data-n="point"].is-set b { color: var(--signal); }
@media (max-width: 959px) {
  .aroute { order: -1; }
  .aroute-line { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 0; padding-top: 28px; }
  .aroute-line::before { left: 9px; right: 9px; top: 8px; bottom: auto; height: 2px; width: auto; }
  .aroute-line li { padding: 0 8px 0 0; }
  .aroute-line li i { left: 0; top: -28px; }
  .aroute-line li.is-set::after { left: 18px; right: 0; top: -20px; bottom: auto; width: auto; height: 2px; }
  .aroute-line b { font-size: .82rem; line-height: 1.2; }
  .aroute-line span { font-size: .62rem; word-break: break-word; }
}
.adone { display: grid; gap: 18px; }
.adone:focus { outline: none; }
.adone-t { font-size: clamp(1.6rem, 3vw, 2.4rem); font-stretch: 112%; letter-spacing: -.02em; line-height: 1.08; }
.adone-sum { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--f-mono); font-size: .8rem; line-height: 1.6; color: var(--night-2ink); background: var(--night); border: 1px solid var(--night-rule); padding: 16px; max-height: 320px; overflow: auto; }
.adone-note { font-size: .88rem; color: var(--night-mute); max-width: 60ch; }
.adone-note b { color: var(--night-ink); font-weight: 600; user-select: all; }

/* ==========================================================================
   TERMINUS · FOOTER
   ========================================================================== */
.stn-end { --bg: var(--paper); padding-top: clamp(80px, 10vw, 140px); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); }
.end-title { font-size: clamp(2.8rem, 9vw, 8.4rem); font-weight: 800; font-stretch: 122%; letter-spacing: -.045em; line-height: .92; }
.end-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(64px, 8vw, 110px); border-bottom: 2px solid var(--ink); }
.end-q { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; font-stretch: 108%; color: var(--ink-2); }
.foot { display: grid; gap: 36px 28px; padding-top: 44px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; } }
.foot-brand p { color: var(--ink-2); margin-top: 14px; max-width: 30ch; font-size: .95rem; }
.foot-col { display: grid; gap: 8px; align-content: start; font-size: .95rem; }
.foot-col .mono { color: var(--mute); margin-bottom: 6px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover, .linklike:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot-col .muted { color: var(--mute); }
.copyline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-v { user-select: all; font-weight: 600; word-break: break-all; }
.copy-btn { font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; background: none; border: 1px solid var(--rule); padding: 4px 8px; cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }
.linklike { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: .95rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--mute); }

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
