/* Vigibruit v2 — deux modules, deux couleurs :
   ANALYSE = papier minéral + bleu de mesure ; ALERTE = encre + jaune signalisation. */
:root {
  --paper: #e9ecea;
  --panel: #fbfcfb;
  --ink: #15191c;
  --ink-2: #4a5258;
  --ink-3: #6d767c;
  --rule: #c5ccc9;
  --signal: #f2c230;
  --signal-soft: #f8e7a6;
  --la: #2a78d6;
  --la-soft: #86b6ef;
  --lc: #eb6834;
  --ok: #0f7a3d;
  --err: #b42318;

  /* surfaces sombres (hero de nuit, module Alerte, contact) */
  --night: #15191c;
  --night-2: #1d2327;
  --night-3: #2b3236;
  --night-ink: #e9ecea;
  --night-ink-2: #b7c0c4;
  --night-ink-3: #8fa0a8;

  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--f-body); font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--la); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--signal); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(42px, 6vw, 84px); text-transform: uppercase; }
h2 { font-size: clamp(34px, 4.6vw, 58px); text-transform: uppercase; }
h3 { font-size: clamp(24px, 2.4vw, 30px); text-transform: uppercase; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 38em; }
.dark .lede { color: var(--night-ink-2); }
.mark { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 92%, transparent 92%); padding: 0 .08em; }
.dark .mark { background: none; color: var(--signal); padding: 0; }

.tag {
  display: inline-block; font: 500 13px/1 var(--f-mono); letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid currentColor; padding: 6px 8px; margin-bottom: 20px;
}
.dark .tag { color: var(--night-ink-2); }
/* Étiquette de module : dit à quel module appartient le contenu */
.mod { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px 6px 8px; }
.mod::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mod.an { background: var(--la); color: #fff; }
.mod.al { background: var(--signal); color: var(--ink); }
.mod.an::before { background: #fff; }
.mod.al::before { background: var(--ink); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--nav-h); background: rgba(21,25,28,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--night-ink); border-bottom: 1px solid var(--night-3); transition: background .3s, color .3s, border-color .3s; }
.nav.on-paper { background: rgba(233,236,234,.94); color: var(--ink); border-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { text-decoration: none; }
.brand b { font: 700 26px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.brand b i { font-style: normal; background: var(--signal); color: var(--ink); padding: 0 4px; margin-left: 1px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: .8; }
.nav ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav ul a.an::before, .nav ul a.al::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 2px; }
.nav ul a.an::before { background: var(--la); }
.nav ul a.al::before { background: var(--signal); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 600 16px/1 var(--f-body); text-decoration: none;
  background: var(--ink); color: #fff; border: 2px solid var(--ink); padding: 13px 18px;
}
.btn:hover { background: #000; }
.btn.alt { background: transparent; color: inherit; border-color: currentColor; }
.btn.alt:hover { background: rgba(127,127,127,.12); }
.btn.sig { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.btn.sig:hover { background: #e5b320; border-color: #e5b320; }
.nav .btn { padding: 10px 14px; font-size: 15px; }
.lang { font: 500 13px var(--f-mono); opacity: .75; white-space: nowrap; }
.lang a { text-decoration: none; padding: 4px; }
.lang a[aria-current] { opacity: 1; border-bottom: 2px solid var(--signal); }
@media (max-width: 1000px) { .nav ul { display: none; } .lang { margin-left: auto; } }
@media (max-width: 480px) { .nav .btn { padding: 9px 10px; font-size: 14px; } .nav .wrap { gap: 12px; } }

main { display: block; }
section.block { padding: clamp(64px, 9vw, 120px) 0; }
section.block h2 { margin-bottom: 20px; }
.dark { background: var(--night); color: var(--night-ink); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.note { font-size: 15px; color: var(--ink-3); max-width: 46em; margin-top: 14px; }
.dark .note { color: var(--night-ink-3); }

/* =========================================================
   HERO — scène épinglée
   ========================================================= */
.hero { padding-top: var(--nav-h); }
.hero-in { min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: 28px; padding-bottom: 28px; }
.copy { position: relative; }
.copy .intro .lede { margin: 22px 0 0; }
.copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.copy .intro .tag { margin-bottom: 22px; }
.cap { margin-top: 32px; border-top: 1px solid var(--night-3); padding-top: 18px; max-width: 30em; }
.cap .when { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cap .n { margin-left: auto; font: 500 13px var(--f-mono); color: var(--night-ink-3); }
.cap time { font: 600 22px/1 var(--f-mono); color: var(--signal); }
.cap p { font: 500 clamp(22px, 2.3vw, 31px)/1.25 var(--f-body); color: var(--night-ink); margin: 0; }
.cap p small { display: block; margin-top: 12px; font: 400 17px/1.5 var(--f-body); line-height: 1.5; color: var(--night-ink-3); }
.scroll-hint { display: none; }

/* scène */
.stage { position: relative; }
.stage svg.scene { width: 100%; height: auto; overflow: visible; }
.scene .bld { fill: #232a2e; stroke: #3a4348; stroke-width: 1.5; }
.scene .win { fill: #1a1f22; stroke: #3a4348; }
.scene .win.lit { fill: #f2c230; fill-opacity: .14; stroke: #6b5a1c; }
.scene .glow { fill: #f2c230; }
.scene .ground { stroke: #3a4348; stroke-width: 2; }
.scene .lbl { font: 500 15px var(--f-mono); fill: var(--night-ink-3); letter-spacing: .04em; text-transform: uppercase; }
.scene .wave { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; }
.scene .balise rect { fill: #fbfcfb; }
.scene .ping { fill: none; stroke: var(--la-soft); stroke-width: 2; }
.meter { fill: #0f1315; stroke: #3a4348; }
.meter-lbl { font: 500 15px var(--f-mono); fill: var(--night-ink-3); letter-spacing: .04em; }
.meter-val { font: 600 58px var(--f-mono); fill: var(--night-ink); }
.meter-unit { font: 500 20px var(--f-mono); fill: var(--night-ink-3); }
.spark { fill: none; stroke: var(--la-soft); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.thr { stroke: var(--signal); stroke-dasharray: 5 5; stroke-width: 1.5; }
.thr-lbl { font: 600 15px var(--f-mono); fill: var(--signal); }
.ia-chip rect { fill: var(--la); }
.ia-chip text { font: 600 17px var(--f-mono); fill: #fff; }

/* Scénarios : une seule source de bruit visible à la fois */
.scene .src { visibility: hidden; opacity: 0; }
.scene .src.on { visibility: visible; opacity: 1; }
.scn { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 0 10px; }
.scn[hidden] { display: none; }
.scn-k { font: 500 12.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--night-ink-3); margin-right: 6px; }
.scn button {
  position: relative; overflow: hidden; font: 600 13px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--night-ink-2); background: transparent; border: 1px solid var(--night-3); padding: 9px 12px; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.scn button:hover { color: var(--night-ink); border-color: var(--night-ink-3); }
.scn button[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--ink); }
/* Barre de progression du défilement automatique des exemples */
.scn button i { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--ink); opacity: .45; transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 900px) { .scn { justify-content: flex-start; } }
@media (max-width: 420px) { .scn-k { display: none; } .scn button { padding: 8px 9px; font-size: 12px; } }

/* téléphone (HTML, pour un texte qui se replie) */
.phone {
  position: absolute; left: 2%; bottom: -36px; width: min(300px, 44%);
  background: #0b0e10; border: 2px solid #3a4348; border-radius: 30px; padding: 30px 12px 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.phone::before { content: ""; position: absolute; top: 11px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 3px; background: #2b3236; }
.phone .who { text-align: center; font: 500 12px var(--f-mono); color: var(--night-ink-3); margin-bottom: 10px; }
.phone .who b { display: block; color: var(--night-ink); font: 600 14px var(--f-body); }
.bubble { background: #2b3236; color: var(--night-ink); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font: 13.5px/1.42 var(--f-body); margin-top: 8px; }
.bubble a { color: var(--signal); }
.bubble > span { display: block; }
.bubble small { display: block; font: 11px var(--f-mono); color: var(--night-ink-3); margin-bottom: 3px; }
.bubble.calm { border-left: 3px solid #7ee2a8; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; padding-top: 20px; }
  .copy .intro .lede { font-size: 17px; margin-top: 14px; }
  .copy .actions { margin-top: 18px; }
  .cap { margin-top: 0; padding-top: 0; border: 0; }
  .cap p { font-size: 18px; }
  .cap p small { font-size: 15px; margin-top: 6px; }
  .phone { width: 196px; left: 0; bottom: -150px; padding: 22px 8px 10px; border-radius: 22px; }
  .bubble { font-size: 11.5px; padding: 7px 9px; }
}

/* Mode animé : les légendes se superposent dans la même cellule */
.anim .copy { display: grid; }
.anim .copy > * { grid-area: 1 / 1; }
.anim .cap { margin-top: 0; align-self: start; }
@media (min-width: 901px) { .anim .cap { align-self: center; } }
.anim .scroll-hint { display: flex; align-items: center; gap: 10px; position: absolute; left: 0; bottom: -54px; font: 500 12.5px var(--f-mono); color: var(--night-ink-3); letter-spacing: .04em; text-transform: uppercase; }
.anim .scroll-hint i { width: 1px; height: 28px; background: var(--night-ink-3); transform-origin: top; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) { .anim .scroll-hint { display: none; } }

/* Sans animation : les étapes forment une chronologie lisible */
html:not(.anim) .cap { border-top: 1px solid var(--night-3); padding-top: 16px; margin-top: 16px; }
html:not(.anim) .hero-in { align-items: start; }

/* =========================================================
   Graphiques (module Analyse)
   ========================================================= */
.panel { background: var(--panel); border: 1px solid var(--rule); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font: 500 13px/1.4 var(--f-mono); color: var(--ink-2); }
.panel-head strong { color: var(--ink); font-weight: 600; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 12px 16px; border-top: 1px solid var(--rule); font: 13px/1.45 var(--f-mono); color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 0; border-top: 2px solid; display: inline-block; }
.legend i.dash { border-top-style: dashed; }
.legend i.box { height: 10px; border: 0; }
.chart { position: relative; padding: 8px 8px 4px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font: 12px var(--f-mono); fill: var(--ink-3); }
.chart .grid line { stroke: #e3e7e5; }
.chart .big { font: 600 15px var(--f-mono); fill: var(--ink); }
.chart .halo { paint-order: stroke; stroke: var(--panel); stroke-width: 5px; stroke-linejoin: round; }
details.table { border-top: 1px solid var(--rule); }
details.table summary { cursor: pointer; padding: 10px 16px; font: 13px var(--f-mono); color: var(--ink-2); }
details.table .scroll { max-height: 260px; overflow: auto; padding: 0 16px 14px; }
details.table table { border-collapse: collapse; font: 12.5px var(--f-mono); }
details.table td, details.table th { padding: 3px 14px 3px 0; text-align: right; }
details.table th { color: var(--ink-3); font-weight: 500; }

/* sélecteur d'indicateur + curseur de seuil */
.seg { display: inline-flex; border: 2px solid var(--ink); }
.seg button { font: 600 14px var(--f-mono); background: transparent; border: 0; padding: 8px 12px; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.thr-ctl { display: flex; align-items: center; gap: 10px; }
.thr-ctl .rng { width: 190px; }
.thr-ctl output { font: 600 14px var(--f-mono); color: var(--ink); min-width: 4.5em; }
.count { font: 600 14px var(--f-mono); color: var(--ink); background: var(--signal-soft); padding: 4px 8px; }

.howto { list-style: none; counter-reset: h; margin: 22px 0 0; padding: 0; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-2); }
.howto li::before { content: counter(h); font: 600 26px/1 var(--f-display); color: var(--la); }
.howto b { color: var(--ink); }

/* IA */
.ia-panel .chart { padding: 14px 16px 6px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 14px 16px 16px; border-top: 1px solid var(--rule); }
.cats button { font: 500 13px var(--f-mono); padding: 7px 11px; border: 1px solid var(--rule); color: var(--ink-2); background: var(--paper); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cats button:hover { border-color: var(--ink); color: var(--ink); }
.cats button.on { background: var(--ink); color: var(--signal); border-color: var(--ink); }
.cat-desc { margin: 0; padding: 0 16px 16px; font-size: 15.5px; color: var(--ink-2); min-height: 3.2em; }
.ia-verdict { font: 600 14px var(--f-mono); }
.ia-verdict b { background: var(--signal); padding: 2px 6px; }

/* journée heure par heure */
.hours { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px 32px; align-items: center; padding: 14px 16px 16px; border-top: 1px solid var(--rule); }
.hours-ctl { display: flex; align-items: center; gap: 16px; }
.hours-ctl .play { flex: none; font-size: 14px; padding: 10px 12px; min-width: 9.5em; justify-content: center; }
.hours-track { flex: 1; min-width: 0; }
.hour-strip svg { width: 100%; height: 34px; display: block; }
.hours-track .rng { display: block; margin-top: 2px; }
.hour-ticks { display: flex; justify-content: space-between; font: 12px var(--f-mono); color: var(--ink-3); }
.hours-read output { display: block; font: 600 22px var(--f-mono); margin-bottom: 8px; }
.delta { display: grid; grid-template-columns: 11em 1fr 5.5em; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); margin: 4px 0; }
.delta i { height: 12px; background: #e3e7e5; display: block; }
.delta b { display: block; height: 100%; width: 0; transition: width .35s ease; }
.delta em { font: 600 14px var(--f-mono); font-style: normal; color: var(--ink); text-align: right; }
.hours-read small { font-size: 13px; color: var(--ink-3); }
@media (max-width: 860px) { .hours { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hours-ctl { flex-direction: column; align-items: stretch; } .delta { grid-template-columns: 8.5em 1fr 5em; font-size: 13.5px; } }

/* anti fausses alertes */
.rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 32px; }
@media (max-width: 860px) { .rules { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.rules li { padding: 13px 0; border-top: 1px solid var(--rule); }
.rules b { display: block; }
.rules span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 640px) { .rules { grid-template-columns: 1fr; } }

/* =========================================================
   Module ALERTE
   ========================================================= */
.al-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.moments { list-style: none; margin: 0; padding: 0; }
.moments li { padding: 16px 0 14px 20px; border-left: 3px solid var(--night-3); transition: opacity .35s, border-color .35s; }
.moments li + li { margin-top: 6px; }
.anim .moments li { opacity: .38; }
.anim .moments li.on { opacity: 1; border-left-color: var(--signal); }
.moments time { font: 600 18px var(--f-mono); color: var(--signal); }
.moments p { color: var(--night-ink-2); margin: 0; max-width: 30em; }
.sms-phone .phone { position: relative; left: auto; right: auto; bottom: auto; width: 100%; max-width: 340px; margin: 0 auto; }
.sms-phone .bubble { font-size: 14.5px; }
@media (max-width: 900px) {
  .al-grid { grid-template-columns: minmax(0,1fr); }
  .sms-phone { order: -1; }
}

.card { background: var(--night-2); border: 1px solid var(--night-3); padding: 22px; }

/* page d'écoute */
.listen { background: var(--panel); color: var(--ink); margin-top: 16px; font-size: 14.5px; }
.listen .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid #e3e7e5; }
.listen .k { color: var(--ink-3); }
.listen .v { font-family: var(--f-mono); font-weight: 600; text-align: right; }
.listen .v.over { color: var(--err); }
.listen .badge { background: var(--ink); color: var(--signal); padding: 2px 7px; font-size: 13px; }
.listen .player { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.listen .play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); position: relative; }
.listen .play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--signal); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.listen svg { flex: 1; height: 38px; }
.listen .wf rect { fill: #c5ccc9; }
.listen .wf rect.played { fill: var(--ink); }

/* qui est prévenu */
.week { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.week th { font: 500 12px var(--f-mono); color: var(--night-ink-3); text-transform: uppercase; padding: 0 0 8px; text-align: center; }
.week th:first-child { text-align: left; }
.week td { padding: 4px 3px; }
.week td:first-child { padding-left: 0; color: var(--night-ink); white-space: nowrap; }
.week td:first-child small { display: block; font: 12px var(--f-mono); color: var(--night-ink-3); }
.week .d { height: 26px; background: var(--night-3); }
.week .d.on { background: var(--signal); }
.week .d.em { background: var(--la-soft); }

.al-more { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 32px; }
.al-more li { padding: 16px 0; border-top: 1px solid var(--night-3); }
.al-more b { display: block; margin-bottom: 4px; color: #fff; }
.al-more span { color: var(--night-ink-2); font-size: 16px; }
@media (max-width: 860px) { .al-more { grid-template-columns: 1fr; } }

/* =========================================================
   Usages
   ========================================================= */
.uses { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.use { background: var(--panel); padding: 26px 24px 22px; }
.use svg { width: 56px; height: 56px; margin-bottom: 14px; }
.use svg * { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.use svg .hl { stroke: var(--la); }
.use h3 { margin-bottom: 10px; }
.use p { color: var(--ink-2); font-size: 16.5px; }
.use dl { margin: 14px 0 0; font-size: 15.5px; }
.use dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--rule); }
.use dt { font: 600 12px/1.9 var(--f-mono); text-transform: uppercase; }
.use dt.an { color: var(--la); }
.use dt.al { color: #8a6a00; }
.use dd { margin: 0; }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; } .use dl div { grid-template-columns: 1fr; gap: 0; } }

/* =========================================================
   Comparatif
   ========================================================= */
.cmp-wrap { margin-top: 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); background: var(--panel); }
.cmp { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 15px; }
.cmp th, .cmp td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.cmp thead th { font: 600 13px/1.35 var(--f-mono); text-transform: uppercase; color: var(--ink-2); background: var(--paper); border-bottom: 2px solid var(--ink); }
.cmp thead th small { display: block; font: 400 12px/1.4 var(--f-mono); text-transform: none; color: var(--ink-3); margin-top: 4px; }
.cmp tbody th { font-weight: 600; width: 26%; position: sticky; left: 0; background: var(--panel); z-index: 1; }
.cmp tbody th span { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.cmp .us { background: #fff8dc; border-left: 3px solid var(--signal); border-right: 3px solid var(--signal); }
.cmp thead .us { background: var(--signal); color: var(--ink); border-bottom-color: var(--ink); }
.cmp td { color: var(--ink-2); }
.cmp .y, .cmp .n, .cmp .p { display: flex; gap: 8px; align-items: flex-start; }
.cmp .y svg, .cmp .n svg, .cmp .p svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.cmp .y svg path { stroke: var(--ok); }
.cmp .n svg path { stroke: var(--ink-3); }
.cmp .p svg path { stroke: #a77b00; }
.cmp svg path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cmp .us .y { color: var(--ink); font-weight: 500; }
.cmp-src { font-size: 14px; color: var(--ink-3); margin-top: 16px; max-width: 60em; }
.cmp-src a { color: var(--ink-2); }
.cmp-hint { display: none; font: 12.5px var(--f-mono); color: var(--ink-3); margin-top: 10px; }
@media (max-width: 900px) { .cmp-hint { display: block; } }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 2; }
@media (max-width: 700px) {
  .cmp { min-width: 720px; font-size: 14px; }
  .cmp tbody th, .cmp thead th:first-child { width: 140px; min-width: 140px; }
  .cmp th, .cmp td { padding: 11px 10px; }
}

/* =========================================================
   Déroulé
   ========================================================= */
.steps-wrap { position: relative; margin-top: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); counter-reset: s; }
.steps-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--rule); }
.steps .bar { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: left; }
.steps li { counter-increment: s; padding: 20px 20px 0 0; }
.steps li::before { content: counter(s); display: block; font: 600 44px/1 var(--f-display); margin-bottom: 10px; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--ink-2); font-size: 16px; }
.steps .mod { margin-top: 10px; font-size: 12.5px; color: #fff; }
.steps .mod.al { color: var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 24px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Réglementation */
.regs { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 16px; }
.regs th { text-align: left; font: 500 12.5px var(--f-mono); text-transform: uppercase; color: var(--ink-3); padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
.regs td { vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.regs td:first-child { color: var(--ink); font-weight: 600; width: 22%; }
.regs td:nth-child(2) { width: 24%; font-size: 15px; }
.regs .mono { color: var(--ink); font-size: 14.5px; }
@media (max-width: 760px) {
  .regs thead { display: none; }
  .regs tr, .regs td { display: block; width: auto !important; }
  .regs td { padding: 4px 0; border: 0; }
  .regs tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
}
.border-top { border-top: 1px solid var(--rule); }

/* Fiche technique */
.spec-sheet { margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.spec-sheet > div { background: var(--panel); padding: 20px 20px 18px; }
.spec-sheet dt { font: 600 13px var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--la); margin-bottom: 10px; }
.spec-sheet dd { margin: 0; }
.spec-sheet ul { margin: 0; padding: 0; list-style: none; }
.spec-sheet li { position: relative; padding: 3px 0 3px 16px; font-size: 15.5px; color: var(--ink-2); }
.spec-sheet li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 2px; background: var(--ink); }
@media (max-width: 1000px) { .spec-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .spec-sheet { grid-template-columns: 1fr; } }

/* Contact */
.contact .direct { margin-top: 28px; font: 15px/2 var(--f-mono); }
.contact .direct a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--signal); }
form.quote { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
form.quote .full { grid-column: 1 / -1; }
form.quote label { display: block; font: 500 13px var(--f-mono); color: var(--night-ink-2); margin-bottom: 6px; }
form.quote input, form.quote select, form.quote textarea { width: 100%; font: 16px var(--f-body); color: var(--ink); background: #fbfcfb; border: 2px solid #fbfcfb; padding: 11px 12px; border-radius: 0; }
form.quote textarea { min-height: 140px; resize: vertical; }
form.quote input:focus, form.quote select:focus, form.quote textarea:focus { outline: none; border-color: var(--signal); }
form.quote .hp { position: absolute; left: -9999px; }
form.quote .status { font: 14px/1.5 var(--f-mono); min-height: 1.5em; }
form.quote .status.ok { color: #7ee2a8; }
form.quote .status.err { color: #ff9b8f; }
form.quote button[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 560px) { form.quote { grid-template-columns: 1fr; } }

footer { background: var(--night); color: var(--night-ink-3); border-top: 1px solid var(--night-3); padding: 26px 0 34px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer a { color: #c9d1d4; }

/* Révélations : état initial posé seulement si les animations tournent */
.anim [data-reveal] { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .anim [data-reveal] { opacity: 1; transform: none; }
  .anim .scroll-hint i { animation: none; }
}

/* =========================================================
   Comment ça marche : trois modules dans un carrousel
   ========================================================= */
/* Balise : troisième module, en encre (neutre) */
.mod.ba { background: var(--ink); color: #fff; }
.mod.ba::before { background: #fff; }
.dark .mod.ba { background: var(--night-ink); color: var(--ink); }
.dark .mod.ba::before { background: var(--ink); }
.nav ul a.ba::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 2px; box-shadow: inset 0 0 0 2px currentColor; }

.how { background: var(--night); color: var(--night-ink); border-top: 1px solid var(--night-3); }
.how-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.how .tag { color: var(--night-ink-2); }
.how .lede { color: var(--night-ink-2); }
.how .lede b { color: #fff; }
.how .lede u { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-skip-ink: none; }
.how .lede u.u-ba { text-decoration-color: var(--night-ink); }
.how .lede u.u-an { text-decoration-color: #4d95ec; }
.how .lede u.u-al { text-decoration-color: var(--signal); }
.how :focus-visible { outline-color: var(--signal); }
.skip { font: 500 14px var(--f-mono); color: var(--night-ink-3); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; margin-bottom: 1em; }
.skip:hover { color: var(--night-ink); }

.car { margin-top: clamp(36px, 5vw, 64px); scroll-margin-top: calc(var(--nav-h) + 12px); }

/* Navigation en vumètre : un segment par diapositive, groupés par module.
   Le module courant s'allume dans sa couleur ; la barre monte jusqu'à la diapositive affichée. */
.car-meter { display: flex; gap: clamp(10px, 2.4vw, 28px); align-items: flex-end; }
.cm-g { flex: 1 1 0; min-width: 0; --c: var(--night-ink); }
.cm-g.an { --c: #4d95ec; }
.cm-g.al { --c: var(--signal); }
.cm-h { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0 0 14px; margin: 0; cursor: pointer; color: inherit; font: inherit; }
.cm-h b {
  display: block; font: 700 clamp(28px, 5.6vw, 76px)/.86 var(--f-display); text-transform: uppercase; letter-spacing: .005em;
  color: transparent; -webkit-text-stroke: 1.3px var(--night-ink-3); transition: color .35s, -webkit-text-stroke-color .35s;
  white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.cm-h:hover b { -webkit-text-stroke-color: var(--night-ink); }
.cm-g.is-on .cm-h b { color: var(--c); -webkit-text-stroke-color: var(--c); }
.cm-h span { display: inline-block; margin-top: 10px; font: 500 12.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-3); transition: color .35s; }
.cm-g.is-on .cm-h span { color: var(--night-ink); }
.cm-h em { font: 600 12.5px var(--f-mono); font-style: normal; color: var(--c); margin-left: 10px; }
.cm-row { display: flex; gap: 4px; height: 26px; align-items: flex-end; }
.cm-s { position: relative; flex: 1 1 0; height: 10px; padding: 0; border: 0; background: var(--night-3); cursor: pointer; transition: height .3s, background-color .3s, box-shadow .3s, opacity .3s; }
.cm-s::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; bottom: -8px; }
.cm-s:hover { background: var(--night-ink-3); }
.cm-g .cm-s.on { background: var(--c); opacity: .42; }
.cm-g .cm-s.cur { opacity: 1; height: 26px; box-shadow: 0 0 22px var(--c), 0 0 3px var(--c); }
@media (max-width: 760px) {
  .cm-h span { display: none; }
  .cm-h em { display: none; }
  .cm-h b { -webkit-text-stroke-width: 1px; }
  .cm-row { height: 20px; gap: 3px; }
  .cm-g .cm-s.cur { height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .cm-s, .cm-h b { transition: none; } }

.car-view { margin-top: 26px; position: relative; }
.car.ready .car-view { overflow: hidden; overflow: clip; transition: height .5s cubic-bezier(.7,0,.2,1); }
.car.ready .car-track { display: flex; align-items: flex-start; gap: 20px; transition: transform .65s cubic-bezier(.7,0,.2,1); }
.car-track > .slide + .slide { margin-top: 24px; }
.car.ready .car-track > .slide + .slide { margin-top: 0; }
/* La diapositive suivante dépasse sur le bord : on voit qu'il y a une suite */
.car.ready .slide { flex: 0 0 calc(100% - 84px); transition: opacity .5s, transform .65s cubic-bezier(.7,0,.2,1); }
.car.ready .slide:not(.is-on) { opacity: .26; transform: scale(.955); }
.car.ready .slide.is-next { cursor: pointer; }
@media (max-width: 760px) { .car.ready .slide { flex-basis: calc(100% - 26px); } .car.ready .car-track { gap: 12px; } }
.car:not(.ready) .car-meter, .car:not(.ready) .car-ctl { display: none; }
@media (prefers-reduced-motion: reduce) { .car.ready .car-view, .car.ready .car-track, .car.ready .slide { transition: none; } }

.slide { flex: 0 0 100%; min-width: 0; color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-top: 6px solid var(--night-ink); padding: clamp(18px, 3vw, 40px); }
.slide.an { border-top-color: var(--la); }
.slide.al { border-color: var(--night-3); border-top-color: var(--signal); }
.slide.dark { background: var(--night-2); color: var(--night-ink); }
.slide:not(.dark) :focus-visible { outline-color: var(--la); }
.sl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sl-n { font: 500 13px var(--f-mono); color: var(--ink-3); }
.dark .sl-n { color: var(--night-ink-3); }
.sl-intro h3 { margin-bottom: 12px; }
.sl-intro p { color: var(--ink-2); max-width: 44em; }
.dark .sl-intro p { color: var(--night-ink-2); }
.sl-intro .try { font: 600 13px var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.sl-intro .try::before { content: "→ "; color: var(--la); }
.dark .sl-intro .try { color: var(--signal); }
.dark .sl-intro .try::before { color: var(--signal); }
.slide figure { margin: 0; }
.slide > figure.panel { margin-top: 8px; }
.slide > .split + figure.panel { margin-top: 24px; }
.slide .howto { margin-top: 0; }
.slide .rules { margin-top: 20px; }

.car-ctl { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.car-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/1 var(--f-body); background: transparent; color: var(--night-ink); border: 2px solid var(--night-ink-3); padding: 0 20px; cursor: pointer; min-height: 52px; transition: background-color .2s, border-color .2s, color .2s; }
.car-btn.prev { width: 52px; padding: 0; border-radius: 50%; font-size: 18px; }
.car-btn.prev:hover { border-color: var(--night-ink); }
.car-btn.next { margin-left: auto; background: var(--signal); border-color: var(--signal); color: var(--ink); font-size: 16px; }
.car-btn.next:hover { background: #ffd447; border-color: #ffd447; }
.car-btn.next span[aria-hidden] { transition: transform .2s; }
.car-btn.next:hover span[aria-hidden] { transform: translateX(4px); }
.car-btn[disabled] { opacity: .25; cursor: default; }
.car-kbd { font: 500 12.5px var(--f-mono); color: var(--night-ink-3); letter-spacing: .04em; }
.car-kbd kbd { display: inline-block; font: 600 12px var(--f-mono); color: var(--night-ink); border: 1px solid var(--night-3); border-bottom-width: 2px; padding: 2px 6px; margin-right: 2px; }
@media (hover: none), (max-width: 760px) { .car-kbd { display: none; } }
@media (max-width: 560px) { .car-btn.next .lbl { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* ---- Balise ---- */
.ba-grid { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,5fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 12px; }
@media (max-width: 860px) { .ba-grid { grid-template-columns: minmax(0,1fr); } }
.anat { width: 100%; height: auto; overflow: visible; }
.callout path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.callout circle { fill: var(--signal); stroke: var(--ink); stroke-width: 1.5; }
.callout .c-t { font: 600 18px var(--f-body); fill: var(--ink); }
.callout .c-s { font: 15px var(--f-body); fill: var(--ink-3); }
@media (max-width: 560px) { .callout .c-s { display: none; } .callout .c-t { font-size: 26px; } }
.live-spec { padding: 12px 16px 6px; }
.live-spec svg { width: 100%; height: 80px; }
.live-spec rect { fill: var(--la); }
.live-ax { display: flex; justify-content: space-between; font: 11.5px var(--f-mono); color: var(--ink-3); margin-top: 4px; }
.live-rows { width: 100%; border-collapse: collapse; font: 13.5px var(--f-mono); }
.live-rows th { font-weight: 500; color: var(--ink-3); text-align: right; padding: 8px 16px 4px; border-top: 1px solid var(--rule); }
.live-rows td { text-align: right; padding: 3px 16px; color: var(--ink-3); }
.live-rows th:first-child, .live-rows td:first-child { text-align: left; }
.live-rows tbody tr:first-child td { color: var(--ink); font-weight: 600; }
.live-rows tbody tr:last-child td { padding-bottom: 12px; }
.live-4g { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.live-4g i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.live-4g.tx i { animation: tx .5s ease-out; }
@keyframes tx { from { box-shadow: 0 0 0 0 rgba(15,122,61,.6); } to { box-shadow: 0 0 0 8px rgba(15,122,61,0); } }
.place { width: 100%; height: auto; margin-top: 8px; }
.place .p-lbl { font: 500 15px var(--f-mono); fill: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.place .p-k { font: 700 17px var(--f-mono); fill: var(--signal); }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 32px; }
.facts li { border-top: 2px solid var(--ink); padding-top: 12px; }
.facts b { display: block; margin-bottom: 2px; }
.facts span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0,1fr); gap: 16px; } }
.pw svg { width: 100%; height: auto; padding: 8px; }
.pw-wire { fill: none; stroke: #8fa0a8; stroke-width: 4; stroke-linecap: round; }
.pw-flow { fill: none; stroke: var(--signal); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 18; animation: pw-flow 1.1s linear infinite; }
@keyframes pw-flow { to { stroke-dashoffset: -28; } }
.pw .pw-sol, .pw .pw-sun, .pw .pw-cut { opacity: 0; }
.pw .pw-sol, .pw .pw-sun, .pw .pw-cut, .pw .pw-sec { transition: opacity .4s; }
.pw[data-pw="solaire"] .pw-sol, .pw[data-pw="solaire"] .pw-sun { opacity: 1; }
.pw[data-pw="solaire"] .pw-sec { opacity: .3; }
.pw[data-pw="solaire"] .pw-sec .pw-flow, .pw[data-pw="coupure"] .pw-sec .pw-flow, .pw[data-pw="coupure"] .pw-bolt { display: none; }
.pw[data-pw="coupure"] .pw-cut { opacity: 1; }
.pw-v { font: 600 22px var(--f-mono); fill: var(--ink); }
.pw-s { font: 13px var(--f-mono); fill: var(--ink-3); }
.pw-txt { min-height: 4.7em; margin: 16px 0 0; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .pw-flow { animation: none; } }

/* ---- Analyse : durée de la moyenne ---- */
.leq-foot { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 16px 36px; align-items: center; padding: 14px 16px 16px; border-top: 1px solid var(--rule); }
.win-ctl label { display: block; font: 500 13px var(--f-mono); color: var(--ink-2); margin-bottom: 30px; }
.win-ctl .rng { display: block; }
.win-ticks { position: relative; height: 1.5em; font: 600 12.5px var(--f-mono); color: var(--ink-3); }
.win-ticks span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; cursor: pointer; }
.win-ticks span:nth-child(1) { left: 13px; transform: none; left: 0; }
.win-ticks span:nth-child(2) { left: calc(13px + (100% - 26px) / 3); }
.win-ticks span:nth-child(3) { left: calc(13px + (100% - 26px) * 2 / 3); }
.win-ticks span:nth-child(4) { left: auto; right: 0; transform: none; }
.win-ticks span.on { color: var(--ink); }
.leq-read { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px 16px; }
.kpi b { display: block; font: 600 clamp(22px, 2.3vw, 30px)/1.05 var(--f-mono); color: var(--ink); white-space: nowrap; }
.kpi.bad b { color: var(--err); }
.kpi span { font-size: 13.5px; line-height: 1.3; color: var(--ink-2); display: block; }
@media (max-width: 900px) { .leq-foot { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 480px) { .leq-read { grid-template-columns: repeat(2, minmax(0,1fr)); } .kpi b { font-size: 26px; } }

/* ---- Alerte, dans le carrousel ---- */
.slide .al-grid { margin-top: 0; }
.slide .moments { margin-top: 18px; }
.moments h4 { font: 600 24px/1.02 var(--f-display); text-transform: uppercase; margin: 6px 0; }
.slide .listen { margin-top: 0; }
.listen .play { border: 0; padding: 0; cursor: pointer; }
.listen .play.on::after { left: 11px; top: 10px; width: 12px; height: 14px; border: 0; border-left: 4px solid var(--signal); border-right: 4px solid var(--signal); }
.listen.hint .play { animation: pulse-ring 1.8s ease-out infinite; }
.wf-t { flex: none; font: 600 13px var(--f-mono); color: var(--ink-2); min-width: 2.8em; text-align: right; }
.wf-note { margin: 0; padding: 0 14px 12px; font-size: 13px; color: var(--ink-3); }
.slide .card { padding: 18px 20px; background: var(--night); }
.slide .week { margin-top: 0; }
.slide .week th:not(:first-child), .slide .week td:not(:first-child) { width: 9%; }
.week-lg { margin-top: 12px; font: 12.5px var(--f-mono); color: var(--night-ink-3); }

/* =========================================================
   Curseurs : poignée bien visible et invitation à glisser,
   tant que le visiteur n'y a pas touché
   ========================================================= */
.rng { --p: .5; position: relative; display: inline-block; vertical-align: middle; }
.rng input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: transparent; cursor: grab; }
.rng input[type="range"]:active { cursor: grabbing; }
.rng input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--ink) calc(var(--p) * 100%), var(--rule) 0); }
.rng input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--rule); }
.rng input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.rng input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; border: 3px solid var(--panel);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 3.5v7M7 3.5v7M10 3.5v7' stroke='%23f2c230' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 1px var(--ink), 0 2px 6px rgba(0,0,0,.25);
}
.rng input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--panel);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 3.5v7M7 3.5v7M10 3.5v7' stroke='%23f2c230' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 1px var(--ink), 0 2px 6px rgba(0,0,0,.25);
}
.rng input[type="range"]:focus-visible { outline: none; }
.rng input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--la); }
.rng input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--la); }
.rng.hint input[type="range"]::-webkit-slider-thumb { animation: pulse-ring 1.8s ease-out infinite; }
.rng.hint input[type="range"]::-moz-range-thumb { animation: pulse-ring 1.8s ease-out infinite; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 1px var(--ink), 0 0 0 0 rgba(242,194,48,.9); }
  70% { box-shadow: 0 0 0 1px var(--ink), 0 0 0 13px rgba(242,194,48,0); }
  100% { box-shadow: 0 0 0 1px var(--ink), 0 0 0 0 rgba(242,194,48,0); }
}
.drag-hint {
  position: absolute; bottom: calc(100% + 2px); left: calc(13px + var(--p) * (100% - 26px)); --tx: calc(var(--p) * -100%); transform: translateX(var(--tx));
  font: 600 11.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: var(--signal); color: var(--ink); padding: 5px 7px; pointer-events: none; transition: opacity .3s; z-index: 2;
}
.drag-hint::before { content: "‹ "; }
.drag-hint::after { content: " ›"; }
.rng.hint .drag-hint { animation: nudge 1.8s ease-in-out infinite; }
.rng:not(.hint) .drag-hint { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateX(var(--tx)); } 25% { transform: translateX(calc(var(--tx) - 7px)); } 75% { transform: translateX(calc(var(--tx) + 7px)); } }
@media (prefers-reduced-motion: reduce) { .rng.hint .drag-hint, .rng.hint input::-webkit-slider-thumb, .listen.hint .play { animation: none; } }

/* =========================================================
   HERO : indicateur vertical des étapes
   ========================================================= */
.rail { display: none; }
.anim .rail { display: block; position: absolute; left: 0; top: 50%; height: 240px; margin: -120px 0 0; padding: 0; width: 22px; list-style: none; z-index: 2; visibility: hidden; }
.anim .rail::before, .rail-fill { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--night-3); }
.rail-fill { background: var(--signal); transform-origin: top; transform: scaleY(0); }
.rail li { position: absolute; left: 0; width: 22px; height: 22px; margin-top: -11px; }
.rail li:nth-of-type(1) { top: 0; } .rail li:nth-of-type(2) { top: 25%; } .rail li:nth-of-type(3) { top: 50%; } .rail li:nth-of-type(4) { top: 75%; } .rail li:nth-of-type(5) { top: 100%; }
.rail button { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.rail button i { width: 10px; height: 10px; border-radius: 50%; background: var(--night); border: 2px solid var(--night-ink-3); transition: transform .25s, background-color .25s, border-color .25s; }
.rail li.done i { background: var(--night-ink-3); }
.rail li.cur i { background: var(--signal); border-color: var(--signal); transform: scale(1.5); box-shadow: 0 0 0 4px rgba(242,194,48,.22); }
.rail button:hover i { border-color: var(--night-ink); }
.anim .cap { padding-left: 42px; border-top: 0; }
@media (max-width: 900px) {
  .anim .rail { top: 2px; height: 128px; margin-top: 0; }
  .anim .cap { padding-left: 34px; }
}

form.quote .legal-note { font: 13px/1.5 var(--f-body); color: var(--night-ink-2); margin: 0; }
form.quote .legal-note a { color: inherit; text-decoration: underline; }
