/* Composants des pages du dossier (#14), au design de l'accueil : chargée après css/info.css et css/site.css.
 * Remplace l'ancienne feuille style.css : plus de sections sombres, mêmes titres, cartes, boutons et couleurs que l'accueil ;
 * le simulateur garde son tableau de bord sombre, posé comme un panneau (comme le schéma des trajets de l'accueil). */
:root { --ink-2:#3a3f47; --grey-1:#f4f5f6; --grey-2:#e3e5e8; --grey-3:#c9ccd1; --asphalt-2:#24272c; --asphalt-3:#2f333a; --yellow-ink:#1b1d21;
  --chart-text:#9aa1ab; --chart-grid:rgba(255,255,255,.12); --chart-axis:rgba(255,255,255,.25); --chart-cursor:#ffd400; }
main p { margin:0 0 1em }
main h3 { font-family:var(--font-display); font-weight:800; font-size:21px; line-height:1.15; letter-spacing:-.01em; margin:0 0 .45em }
main h4 { font-family:var(--font-display); font-weight:800 }
main h2 { margin-bottom:.5em; max-width:28ch }
.lead { color:var(--muted); max-width:64ch; font-size:17.5px }
.btn-ink { background:var(--ink); color:#fff }
.textlink { background:none; border:0; padding:0; font:inherit; color:inherit; text-decoration:underline; text-underline-offset:4px; cursor:pointer; font-weight:600 }
.chip { background:transparent; border:1px solid var(--asphalt-3); color:var(--asphalt-ink); font:inherit; font-size:.86rem; font-weight:500; padding:6px 12px; cursor:pointer }
.chip[aria-pressed="true"] { background:var(--yellow); color:var(--yellow-ink); border-color:var(--yellow) }
.chip:disabled { opacity:.4; cursor:not-allowed }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0) }
.live { background: var(--grey-1); padding: 22px 24px 18px; }
.live-title { font-size: 1.05rem; margin-bottom: 10px; }
.live-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.live-table td { padding: 8px 0; border-top: 1px solid var(--grey-2); vertical-align: baseline; }
.live-table tr:first-child td { border-top: 0; }
.live-table .st { color: var(--muted); font-size: .85rem; }
.live-table .n { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; text-align: right; white-space: nowrap; font-variation-settings: 'wdth' 90; }
.live-table .n small { font-family: var(--font-ui); font-weight: 500; font-size: .75rem; color: var(--muted); margin-left: 4px; }
.live-table .sp { text-align: right; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.live-note { color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
.live-table .na { color: var(--muted); font-weight: 500; font-size: 1rem; }
.live-title { font-size:20px !important; max-width:none }
/* cartes Leaflet : sous l'en-tête collant */
.leaflet-container { z-index:0; font-family:var(--font-ui) }

/* Compteurs : revoir une autre heure */
.live-hist { margin-top: 14px; border-top: 1px solid var(--grey-2); padding-top: 12px; }
.live-hist-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.live-hist-title { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.live-chip { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--grey-3); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; padding: 4px 11px 4px 9px; cursor: pointer; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-3); }
.live-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); cursor: default; }
.live-chip[aria-pressed="true"] i { background: #6fd39a; box-shadow: 0 0 0 3px rgba(111, 211, 154, .35); }
.live-day { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 6px; }
.live-step { height: 34px; background: var(--paper); border: 1px solid var(--grey-2); color: var(--ink); font: inherit; font-size: 1.4rem; line-height: 1; padding: 0 0 3px; cursor: pointer; }
.live-step:hover:not(:disabled) { border-color: var(--grey-3); }
.live-step:disabled { opacity: .3; cursor: default; }
.live-day-out { text-align: center; font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 700; font-size: 1.05rem; }
.live-day-out::first-letter { text-transform: uppercase; }
.live-spark { width: 100%; height: auto; display: block; margin-top: 10px; touch-action: none; cursor: crosshair; }
.live-spark text { font-family: var(--font-ui); font-size: 9px; fill: var(--muted); }
.live-spark .axis { stroke: var(--grey-2); }
.live-spark .cursor { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 2; }
.live-spark .cursor-dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.5; }
.live-spark-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--muted); margin-top: 4px; }
.live-spark-legend i { display: inline-block; width: 12px; height: 3px; margin-right: 5px; vertical-align: middle; }
.live-spark-note { margin-left: auto; }
.live-speed { margin-top: 0; }
.live-chart-title { font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 700; font-size: 1rem; margin: 14px 0 2px; }
.live-chart-title small { font-family: var(--font-ui); font-weight: 500; font-size: .8rem; color: var(--muted); margin-left: 6px; }
.live-spark line.ref { stroke-width: 1; }
.live-spark path.proj { fill: none; stroke: #8a9099; stroke-opacity: .38; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.live-spark rect.sat-1 { fill: var(--amber); fill-opacity: .16; }
.live-spark rect.sat-2 { fill: var(--red); fill-opacity: .16; }
.live-spark text.sat-lab { font-size: 8.5px; font-weight: 600; fill: var(--red); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.live-spark-legend i.sat { width: 8px; height: 10px; margin-right: 0; }
.live-spark-legend i.sat-1 { background: rgba(224,150,15,.3); }
.live-spark-legend i.sat-2 { background: rgba(208,44,44,.3); margin-right: 5px; }
.live-spark-legend i.proj { height: 6px; background: #8a9099; opacity: .5; }
.live-proj-note { font-size: .74rem; line-height: 1.35; color: var(--muted); margin: 4px 0 0; }
.live-spark line.ref-rb { stroke: var(--red); stroke-dasharray: 2 3; }
.live-spark line.ref-lane { stroke: var(--green); stroke-dasharray: 2 3; }
.live-spark text.ref-lab { font-size: 8.5px; font-weight: 600; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.live-spark text.ref-rb { fill: var(--red); }
.live-spark text.ref-lane { fill: var(--green); }
.live-spark line.ref-q { stroke: var(--ink); stroke-dasharray: 5 2; }
.live-spark text.ref-q { fill: var(--ink); }
.live-spark line.ref-slow { stroke: var(--amber); stroke-dasharray: 2 3; }
.live-spark text.ref-slow { fill: var(--amber); }
.live-spark .cursor-dot { stroke-width: 2; }
.live-stations { display: flex; gap: 6px; margin-top: 12px; }
.live-st { background: transparent; border: 1px solid var(--grey-3); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; padding: 4px 11px; cursor: pointer; border-radius: 999px; }
.live-st[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); cursor: default; }
.live-table .n.f-green { color: var(--green); }
.live-table .n.f-amber { color: var(--amber); }
.live-table .n.f-red { color: var(--red); }
.live-time { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-top: 6px; }
.live-time output { font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 700; font-size: 1.35rem; min-width: 4.8ch; text-align: right; font-variant-numeric: tabular-nums; }

/* Simulateur */
.sim { background: var(--asphalt); color: var(--asphalt-ink); padding-top: clamp(48px, 6vw, 80px); }
.sim-head { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.sim-head h2 { margin: 0; }
.sim-head p { margin: 0; color: var(--asphalt-muted); font-size: 1.05rem; }
.sc-switch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--asphalt-3); }
@media (max-width: 980px) { .sc-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sc-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-badge { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--yellow); }
.sc[aria-pressed="true"] .sc-badge { color: inherit; opacity: .8; }
.sc { background: var(--asphalt-2); color: var(--asphalt-ink); border: 0; border-right: 1px solid var(--asphalt-3); border-bottom: 1px solid var(--asphalt-3); padding: 14px 16px 12px; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: background .15s ease; }
.sc:hover { background: var(--asphalt-3); }
.sc[aria-pressed="true"] { background: var(--yellow); color: var(--yellow-ink); }
.sc-name { font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.sc-meta { display: flex; gap: 10px; align-items: baseline; font-size: .82rem; flex-wrap: wrap; }
.sc-meta .pill { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.sc[aria-pressed="false"] .pill.fluide { color: #6fd39a; } .sc[aria-pressed="false"] .pill.dense { color: #f3c04d; } .sc[aria-pressed="false"] .pill.bouchon { color: #ff6b6b; }
.sc .n-queue, .sc .n-delay { font-variant-numeric: tabular-nums; opacity: .85; }
.sc-desc { color: var(--asphalt-muted); font-size: .98rem; margin: 14px 0 22px; max-width: 90ch; min-height: 1.6em; }

.sim-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 1000px) { .sim-grid { grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); align-items: start; } }
.stage-canvas { aspect-ratio: 5 / 3; background: #27362b; overflow: hidden; }
.stage-canvas canvas { width: 100%; height: 100%; display: block; }
.stage-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--asphalt-2); padding: 10px 14px; }
.stage-bar .hour { display: flex; align-items: baseline; gap: 10px; font-size: .88rem; color: var(--asphalt-muted); white-space: nowrap; }
.stage-bar .hour output { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--asphalt-ink); font-variation-settings: 'wdth' 90; }
.ghost { background: none; border: 1px solid var(--asphalt-3); color: var(--asphalt-ink); font: inherit; font-size: .85rem; padding: 6px 12px; cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--asphalt-muted); margin-top: 10px; align-items: baseline; }
.legend i { display: inline-block; width: 16px; height: 8px; margin-right: 6px; vertical-align: middle; }
.legend-note { margin-left: auto; }
input[type=range] { width: 100%; height: 26px; margin: 0; accent-color: var(--yellow); }
.ctl.down input[type=range] { accent-color: var(--down); } .ctl.up input[type=range] { accent-color: var(--up); } .ctl.ut input[type=range] { accent-color: var(--uturn); } .ctl.rp input[type=range] { accent-color: var(--ramp); }

.side { display: flex; flex-direction: column; gap: 14px; }
.dir-switch { background: var(--asphalt-2); border: 1px solid var(--asphalt-3); padding: 12px 14px 10px; }
.dir-title { display: block; font-size: .8rem; font-weight: 600; color: var(--asphalt-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.dirs.big { display: grid; grid-template-columns: 1fr 1fr; border: 0; align-self: stretch; gap: 6px; }
.dirs.big button { border: 2px solid var(--asphalt-3); padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.dirs.big button b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; font-variation-settings: 'wdth' 90; }
.dirs.big button small { font-size: .8rem; font-weight: 500; opacity: .85; }
.dirs.big button[aria-pressed="true"] { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.dir-note { margin: 10px 0 0; font-size: .86rem; color: var(--asphalt-ink); }
.dir-tag { display: inline-block; background: var(--yellow); color: var(--yellow-ink); font-family: var(--font-ui); font-weight: 600; font-size: .78rem; padding: 2px 8px; vertical-align: middle; margin-left: 4px; }
.dirs { display: inline-flex; border: 1px solid var(--asphalt-3); align-self: start; }
.dirs button { background: transparent; border: 0; color: var(--asphalt-muted); font: inherit; font-weight: 600; font-size: .9rem; padding: 7px 16px; cursor: pointer; }
.dirs button[aria-pressed="true"] { background: var(--asphalt-ink); color: var(--asphalt); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--asphalt-3); border: 1px solid var(--asphalt-3); }
.kpi { background: var(--asphalt-2); padding: 14px 16px 12px; display: flex; flex-direction: column; min-width: 0; }
.k-lab { font-size: .8rem; color: var(--asphalt-muted); font-weight: 500; }
.k-val { font-family: var(--font-display); font-variation-settings: 'wdth' 88; font-weight: 800; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.05; margin: 4px 0 2px; letter-spacing: -.02em; }
.k-val small { font-family: var(--font-ui); font-weight: 500; font-size: .42em; color: var(--asphalt-muted); margin-left: 4px; letter-spacing: 0; }
.k-sub { font-size: .76rem; color: var(--asphalt-muted); }
.kpi.good .k-val { color: #6fd39a; } .kpi.mid .k-val { color: #f3c04d; } .kpi.bad .k-val { color: #ff6b6b; }
.margin-line { margin: 0; font-size: .95rem; color: var(--asphalt-ink); }
.margin-line .pill { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; margin-right: 8px; }
.pill.fluide { color: #6fd39a; } .pill.dense { color: #f3c04d; } .pill.bouchon { color: #ff6b6b; }
.controls { border-top: 1px solid var(--asphalt-3); padding-top: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ctl { margin-bottom: 10px; }
.ctl label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .86rem; color: var(--asphalt-ink); margin-bottom: 2px; }
.ctl label output { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; font-variation-settings: 'wdth' 90; }
.ctl label output small { font-family: var(--font-ui); font-weight: 500; color: var(--asphalt-muted); font-size: .72rem; margin-left: 3px; }
.hint { color: var(--asphalt-muted); font-size: .8rem; margin: 0 0 8px; }
details.adv { border-top: 1px solid var(--asphalt-3); padding-top: 10px; }
details.adv summary { cursor: pointer; font-size: .9rem; color: var(--asphalt-muted); font-weight: 500; }
details.adv .ctl { margin-top: 12px; }
details.adv .textlink { color: var(--asphalt-muted); font-size: .86rem; margin-top: 8px; }

.charts { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
@media (min-width: 1000px) { .charts { grid-template-columns: 1fr 1fr; } }
.chart-box { margin: 0; border-top: 1px solid var(--asphalt-3); padding-top: 14px; }
.chart-box figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.chart-box .fig-note { font-family: var(--font-ui); font-weight: 400; font-size: .85rem; color: var(--asphalt-muted); }
.chart-box .dirs { align-self: auto; }
.fig-title { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dirs.dir-mini { vertical-align: middle; border-color: var(--asphalt-3); }
.dirs.dir-mini button { font-family: var(--font-ui); font-size: .8rem; font-weight: 600; padding: 4px 12px; }
.dirs.dir-mini button[aria-pressed="true"] { background: var(--yellow); color: var(--yellow-ink); }
.score-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-box .dirs button { padding: 4px 10px; font-size: .8rem; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font-ui); fill: var(--chart-text); font-size: 11px; }
.chart .axis { stroke: var(--chart-axis); }
.chart .grid { stroke: var(--chart-grid); }
.chart .cursor { stroke: var(--chart-cursor); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--asphalt-muted); margin-top: 6px; }
.chart-legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; }

.score-title { margin-top: 40px; }
.score-wrap { overflow-x: auto; border-top: 1px solid var(--asphalt-3); }
.score { border-collapse: collapse; width: 100%; min-width: 900px; font-size: .95rem; }
.score th, .score td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--asphalt-3); white-space: nowrap; }
.score th:first-child, .score td:first-child { text-align: left; position: sticky; left: 0; background: var(--asphalt); font-weight: 500; color: var(--asphalt-muted); }
.score thead th { font-family: var(--font-display); font-weight: 700; color: var(--asphalt-ink); }
.score thead th i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: middle; }
.score td { font-family: var(--font-display); font-weight: 600; font-variation-settings: 'wdth' 92; }
.score td.best { color: #6fd39a; } .score td.worst { color: #ff6b6b; }
.score-note { color: var(--asphalt-muted); font-size: .85rem; margin-top: 10px; }
@media (max-width: 600px) { .score { min-width: 0; } .score th:first-child, .score td:first-child { white-space: normal; min-width: 120px; max-width: 150px; font-size: .8rem; line-height: 1.25; } .score thead th { font-size: .78rem; } }

/* Pourquoi ça bloque */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 40px 48px; margin-top: 36px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-grid article p { color: var(--ink-2); }
.figure { margin: 0 0 14px; display: flex; flex-direction: column; }
.figure .big { font-family: var(--font-display); font-variation-settings: 'wdth' 87; font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.02em; }
.figure .vs { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.diagram { width: 100%; max-width: 320px; height: auto; margin-bottom: 10px; display: block; }
.evap { margin: 48px 0 0; padding: 0; max-width: 46ch; }
.evap p { font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.25; margin: 0 0 10px; }
.evap footer { color: var(--muted); font-size: .9rem; }
details.model { margin-top: 36px; border-top: 1px solid var(--grey-2); padding-top: 14px; max-width: 80ch; }
details.model summary { cursor: pointer; font-weight: 600; }
details.model ol { padding-left: 20px; color: var(--ink-2); }
details.model li { margin: 10px 0; }

.situation-fig { margin: 48px 0 0; }
#situation { height: 440px; background: var(--grey-1); }
.situation-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; max-width: 80ch; }

/* Quand passer : créneaux d'après les séries OFROU */
.when { background: var(--asphalt); color: var(--asphalt-ink); }
.when .lead { color: var(--asphalt-muted); }
.when-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
@media (min-width: 900px) { .when-grid { grid-template-columns: 1fr 1fr; } }
.when-card { background: var(--asphalt-2); padding: 22px 22px 16px; }
.when-card h3 { margin-bottom: 2px; }
.when-sub { color: var(--asphalt-muted); font-size: .9rem; margin-bottom: 14px; }
.when-advice { font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; color: var(--yellow); margin-bottom: 18px; }
.strip-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; margin-top: 8px; font-size: .85rem; color: var(--asphalt-muted); }
.strip { display: grid; grid-template-columns: repeat(96, 1fr); height: 22px; gap: 1px; }
.strip i { display: block; background: var(--asphalt-3); }
.strip i.f-green { background: #2f9e62; } .strip i.f-amber { background: #e0960f; } .strip i.f-red { background: #d02c2c; }
.strip-hours { display: flex; justify-content: space-between; margin: 4px 0 0 122px; font-size: .75rem; color: var(--asphalt-muted); }
.when-cmp { color: var(--asphalt-muted); font-size: .88rem; margin: 14px 0 0; }
.when-note { color: var(--asphalt-muted); font-size: .85rem; margin: 22px 0 0; max-width: 90ch; }
@media (max-width: 600px) { .strip-row { grid-template-columns: 1fr; gap: 4px; } .strip-hours { margin-left: 0; } }

/* Alternatives (texte de la pétition, carte) */
.position { background: var(--grey-1); padding-top: clamp(40px, 5vw, 64px); }
.pos-intro { max-width: 70ch; margin: 0; }
.pos-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; align-items: start; }
@media (min-width: 980px) { .pos-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }
.pos-text p { color: var(--ink-2); max-width: 54ch; }
.alt-fig { margin: 0; }
.alt-fig a { display: block; }
.alt-fig img { width: 100%; height: auto; display: block; }
.alt-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.answers { margin-top: 56px; max-width: 72ch; }
.answers p { color: var(--ink-2); }
.answers .em { color: var(--ink); font-weight: 600; font-style: italic; }

/* Routes secondaires : conséquence, pas cause */
.spill { margin-top: 64px; border-top: 1px solid var(--grey-2); padding-top: 40px; }
.spill-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); max-width: 30ch; }
.spill-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
@media (min-width: 800px) { .spill-grid { grid-template-columns: repeat(3, 1fr); } }
.spill-card { background: var(--grey-1); padding: 18px 18px 14px; display: flex; flex-direction: column; }
.spill-card svg { width: 100%; height: auto; display: block; max-width: 320px; margin: 0 auto 10px; }
.spill-card h4 { font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-size: 1.15rem; line-height: 1.15; margin: 6px 0; }
.spill-card p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.spill-kpis { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 10px 0 0; border-top: 1px solid var(--grey-2); padding-top: 10px; }
.spill-kpis div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.spill-kpis dt { font-size: .82rem; color: var(--muted); margin: 0; }
.spill-kpis dd { margin: 0; font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.spill-card[data-case="b"] dd[data-spill$="_queue"], .spill-card[data-case="b"] dd[data-spill$="_delay"] { color: var(--red); }
.spill-card[data-case="c"] dd { color: var(--green); }
.spill-note { color: var(--muted); font-size: .85rem; margin: 14px 0 0; max-width: 80ch; }
.spill svg .lbl { font-family: var(--font-ui); font-size: 11px; fill: var(--muted); }
.spill svg .road-lbl { font-weight: 600; fill: var(--ink-2); }
.spill svg .sign { font-size: 10px; fill: var(--red); font-weight: 600; }
.spill svg .road { stroke: var(--grey-3); }
.spill svg .side { stroke: var(--grey-3); fill: none; stroke-width: 3; }
.spill svg .ring { fill: var(--grey-1); stroke: var(--yellow); stroke-width: 5; }
.spill svg .queue { fill: var(--red); }
.spill svg .car { fill: var(--ink); }
.spill svg .flow { fill: var(--green); }
.spill svg .divert { stroke: var(--red); stroke-width: 2; fill: none; }
.spill svg .divert-head { fill: var(--red); }
.spill svg .noentry { fill: var(--red); }
.spill svg .noentry-bar { fill: #fff; }

/* Depuis 2018 */
.history { background: var(--grey-1); }
.contrast { display: flex; flex-wrap: wrap; gap: 10px 48px; margin: 28px 0 40px; color: var(--muted); font-size: .95rem; }
.contrast span > b { display: block; font-family: var(--font-display); font-variation-settings: 'wdth' 87; font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 90ch; }
.timeline li { display: grid; grid-template-columns: 1fr; gap: 4px 28px; padding: 18px 0; border-top: 1px solid var(--grey-2); }
@media (min-width: 700px) { .timeline li { grid-template-columns: 200px 1fr; } }
.timeline time { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.timeline p { margin: 0 0 4px; color: var(--ink-2); }
.timeline a { font-size: .85rem; color: var(--muted); }
.tl-fig { margin: 12px 0 10px; max-width: 620px; }
.tl-fig a { display: block; }
.tl-fig img { width: 100%; height: auto; display: block; border: 1px solid var(--grey-2); }

/* Témoignages */
.quote-featured { margin: 36px 0 8px; padding: 0 0 0 22px; border-left: 4px solid var(--yellow); max-width: 62ch; }
.quote-featured p { font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 600; font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.3; margin: 0 0 10px; }
.quote-featured p::before { content: '«\00a0'; } .quote-featured p::after { content: '\00a0»'; }
.quote-featured footer { color: var(--muted); font-size: .9rem; }
.quotes { columns: 1; column-gap: 40px; margin-top: 30px; }
@media (min-width: 700px) { .quotes { columns: 2; } }
@media (min-width: 1000px) { .quotes { columns: 3; } }
.quote { break-inside: avoid; border-top: 1px solid var(--grey-2); padding: 16px 0 18px; margin: 0; }
.quote p { margin: 0 0 8px; font-size: 1.02rem; }
.quote p::before { content: '«\00a0'; } .quote p::after { content: '\00a0»'; }
.quote footer { color: var(--muted); font-size: .85rem; }
.quote.hidden { display: none; }
.more { margin: 10px 0 40px; }
.map-fig { margin: 0; }
#map { height: 480px; background: var(--grey-1); }
.map-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.source { color: var(--muted); font-size: .85rem; margin-top: 18px; }
.leaflet-container { font-family: var(--font-ui); }

/* Questions */
.faq { margin-top: 24px; max-width: 80ch; }
.faq details { border-top: 1px solid var(--grey-2); }
.faq details:last-child { border-bottom: 1px solid var(--grey-2); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); white-space: pre-line; max-width: 70ch; }

/* Actualités et presse */
.news { background: var(--asphalt); color: var(--asphalt-ink); padding: clamp(40px, 5vw, 64px) 0; }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
@media (min-width: 980px) { .news-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.news-main { border-left: 6px solid var(--yellow); padding-left: clamp(16px, 2.4vw, 28px); }
.news-kicker { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); margin-bottom: 10px; }
.news h2 { color: #fff; max-width: 22ch; }
.news-main p { max-width: 62ch; color: var(--asphalt-ink); }
.news-lead { font-size: 1.12rem; }
.news-strong { font-weight: 600; color: #fff; }
.news-cta { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.news-mail { color: #fff; text-underline-offset: 4px; }
.news-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin: 22px 0 20px; }
.news-stats p { margin: 0; color: var(--asphalt-muted); }
.news-stats b { font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 800; font-size: 2.6rem; line-height: 1; color: #fff; margin-right: 4px; }
.news-stats p:first-child b { color: var(--yellow); font-size: 3.6rem; }
.news-stats small { flex-basis: 100%; color: var(--asphalt-muted); font-size: .8rem; }
.news-notice { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--asphalt-3); }
.news-notice h2 { max-width: 30ch; font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 10px; }
.news-prev { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--asphalt-3); }
.news-prev h3 { color: #fff; max-width: 30ch; margin-bottom: 10px; }
.news-prev p { font-size: .96rem; }
.news .btn { background: var(--yellow); color: var(--yellow-ink); }
.press h3 { color: #fff; margin-bottom: 8px; }
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list li { border-top: 1px solid var(--asphalt-3); }
.press-list li:last-child { border-bottom: 1px solid var(--asphalt-3); }
.press-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.press-link { display: block; flex: 1; padding-right: 28px; text-decoration: none; position: relative; }
.press-link::after { content: '↗'; position: absolute; right: 2px; top: 0; color: var(--yellow); font-size: 1.1rem; }
.press-link.interne::after { content: '↓'; }
.press-link:hover .press-title { text-decoration: underline; text-underline-offset: 3px; }
.press-src { display: block; font-size: .8rem; color: var(--asphalt-muted); margin-bottom: 4px; }
.press-note { display: block; font-size: .8rem; color: var(--asphalt-muted); margin-top: 4px; }
.press-title { display: block; font-family: var(--font-display); font-variation-settings: 'wdth' 90; font-weight: 700; font-size: 1.08rem; line-height: 1.25; color: #fff; }
.press-thumb { flex: none; width: 112px; display: block; background: #fff; padding: 3px; position: relative; cursor: zoom-in; transition: transform .15s ease; }
.press-thumb:hover { transform: translateY(-2px); }
.press-thumb img { width: 100%; height: auto; display: block; }
.zoom-ico { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--asphalt); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.zoom-ico::before { content: ''; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border: 2px solid var(--yellow); border-radius: 50%; }
.zoom-ico::after { content: ''; position: absolute; left: 14px; top: 14px; width: 5px; height: 2px; background: var(--yellow); transform: rotate(45deg); transform-origin: left center; }
@media (max-width: 520px) { .press-thumb { width: 88px; } }
.tl-fig a { cursor: zoom-in; }

/* Visionneuse */
.zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; overflow: hidden; }
.zoom[open] { display: flex; align-items: center; justify-content: center; }
.zoom::backdrop { background: rgba(12, 13, 15, .9); }
.zoom figure { margin: 0; padding: 56px 16px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box; cursor: zoom-out; }
.zoom img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5); cursor: default; }
.zoom figcaption { color: #eceef1; font-size: .9rem; margin-top: 12px; text-align: center; max-width: 80ch; cursor: default; }
.zoom-close { position: fixed; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--yellow-ink); font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2; }


/* ---------- ajustements au design de l'accueil ---------- */
/* Quand passer : cartes blanches comme les « mesures » de l'accueil */
.when { background:#fff; color:var(--ink) }
.when-card { background:#fff; border:1px solid var(--line); border-top:5px solid var(--ink); padding:20px 20px 16px }
.when-card.down { border-top-color:var(--down) } .when-card.up { border-top-color:var(--up) }
.when-sub, .strip-row, .strip-hours, .when-cmp, .when-note { color:var(--muted) }
.when-advice { color:var(--ink); font-family:var(--font-display); font-weight:800 }
.when-advice { background:linear-gradient(transparent 58%, rgba(255,212,0,.55) 58%); display:inline }
.when-card .when-advice + .strip-row { margin-top:18px }
.strip i { background:var(--grey-2) }
.live-s { background:#f4f5f6 }
.live { background:#fff; border:1px solid var(--line) }
/* Simulateur : section claire, tableau de bord sombre en panneau */
.sim { background:#f4f5f6; color:var(--ink) }
.sim-panel { background:var(--asphalt); color:var(--asphalt-ink); padding:20px 20px 24px; border-radius:6px }
.sim-panel .sc-desc { color:var(--asphalt-muted) }
.score th:first-child, .score td:first-child { background:var(--asphalt) }
/* Pourquoi ça bloque */
.why-grid article { background:#fff; border:1px solid var(--line); border-top:5px solid var(--ink); padding:18px 18px 20px }
.why-grid { gap:16px; margin-top:0 }
.evap { border-left:4px solid var(--yellow); padding-left:20px }
.spill { border-top:0; margin-top:0; padding-top:0 }
.spill-card { background:#fff; border:1px solid var(--line) }
.position { background:#f4f5f6 }
/* Depuis 2018, témoignages, questions */
.history { background:#fff }
.timeline time { color:var(--ink) }
/* Actualités : fond clair, carte « presse » comme la liste d'actualités de l'accueil */
.news { background:#fff; color:var(--ink); padding:52px 0 }
.news h2, .news-prev h3, .news-strong { color:var(--ink) }
.news-main p { color:#2c3036 }
.news-kicker { color:var(--muted); font-size:12.5px; letter-spacing:.1em }
.news-mail { color:var(--ink) }
.news-stats p { color:var(--muted) } .news-stats b { color:var(--ink) } .news-stats p:first-child b { color:var(--ink); background:linear-gradient(transparent 60%, rgba(255,212,0,.6) 60%) }
.news-stats small { color:var(--muted) }
.news-notice, .news-prev { border-color:var(--line) }
.news .btn { background:var(--ink); color:#fff }
.press { background:#f4f5f6; padding:18px 18px 8px }
.press h3 { color:var(--ink) }
.press-list li { border-color:var(--line) }
.press-link::after { color:var(--ink) }
.press-src, .press-note { color:var(--muted) }
.press-title { color:var(--ink) }
.press-thumb { border:1px solid var(--line) }
/* Pétition (page) : même bloc jaune que sur l'accueil */
.pet-s .pet-grid { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:28px 48px; background:var(--yellow); padding:28px; align-items:start }
.pet-count { display:flex; align-items:baseline; gap:12px; margin:0 0 10px; font-weight:600 }
.huge { font-family:var(--font-display); font-weight:800; font-size:clamp(56px,8vw,92px); line-height:.95; letter-spacing:-.03em }
.bar { height:8px; background:rgba(27,29,33,.18); max-width:520px }
.bar span { display:block; height:100%; background:var(--ink) }
.pet-goal { font-size:14px; margin:8px 0 18px; opacity:.85 }
.pet-actions { display:flex; align-items:center; gap:10px 20px; flex-wrap:wrap; margin-bottom:20px }
.pet-actions .btn { margin-top:0 }
.pet-deadline { font-size:16px; padding:12px 14px; border:2px solid var(--ink); margin-bottom:14px; max-width:56ch }
.pet-deadline b { display:block; font-family:var(--font-display); font-weight:800 }
.pet-handover { max-width:56ch; font-size:16px }
.pet-side h3 { font-size:18px }
.pet-comments { list-style:none }
.pet-comments li { border-top:1px solid rgba(27,29,33,.25); padding:12px 0; font-size:15.5px }
.pet-comments q { quotes:'«\00a0' '\00a0»' }
.pet-comments small { display:block; opacity:.75; margin-top:4px; font-size:13.5px }
.pet-form { grid-column:1 / -1; background:#fff }
.pet-form iframe { width:100%; height:640px; border:0; display:block }
@media (max-width:900px) { .pet-s .pet-grid { grid-template-columns:minmax(0,1fr); padding:20px } }

/* Quand passer : graphiques au style de l'accueil (#17) */
.p-trafic .live-s .direct { margin-top:22px }
.live-hist { margin-top:26px; border:0; padding:0 }
.t-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; background:#fff; border:1px solid var(--line); padding:10px 14px }
.t-bar .live-day { display:grid; grid-template-columns:34px minmax(200px,auto) 34px; align-items:center; gap:8px }
.p-trafic .live-time { background:#fff; border:1px solid var(--line); border-top:0; padding:6px 14px 8px; margin:0 }
.p-trafic .live-time input { accent-color:var(--ink) }
.tg { display:block; width:100%; height:auto; touch-action:none; cursor:crosshair }
.tg text { font-family:var(--font-ui); font-size:10px; fill:#8a9099 }
.tg .grid { stroke:#eceef1 }
.tg .sat-1 { fill:var(--amber); fill-opacity:.13 } .tg .sat-2 { fill:var(--red); fill-opacity:.13 }
.tg .ref { stroke-width:1.2; stroke-dasharray:4 4 } .tg .ref-rb { stroke:var(--red) } .tg .ref-lane { stroke:var(--green) } .tg .ref-q { stroke:var(--ink) } .tg .ref-slow { stroke:var(--amber) }
.tg text.ref-lab { font-size:10px; font-weight:600; paint-order:stroke; stroke:#fff; stroke-width:3px; stroke-linejoin:round }
.tg text.ref-rb { fill:var(--red) } .tg text.ref-lane { fill:var(--green) } .tg text.ref-q { fill:var(--ink) } .tg text.ref-slow { fill:var(--amber) }
.tg .proj { fill:none; stroke:#8a9099; stroke-opacity:.35; stroke-width:7; stroke-linejoin:round; stroke-linecap:round }
.tg text.sat-lab { font-size:10px; font-weight:600; fill:var(--red); paint-order:stroke; stroke:#fff; stroke-width:3px }
.tg .cursor { stroke:var(--ink); stroke-width:1.2; stroke-dasharray:3 3 }
.tg .cursor-dot { fill:var(--yellow); stroke-width:2 }
.g-leg i.g-proj { height:7px; background:#8a9099; opacity:.45 }
.g-leg i.g-sat1 { height:10px; width:10px; background:rgba(224,150,15,.3) } .g-leg i.g-sat2 { height:10px; width:10px; background:rgba(208,44,44,.3) }
.g-leg i.g-ref-rb { background:repeating-linear-gradient(90deg,var(--red) 0 4px,transparent 4px 7px) } .g-leg i.g-ref-lane { background:repeating-linear-gradient(90deg,var(--green) 0 4px,transparent 4px 7px) }
.t-how { margin-top:14px; max-width:80ch; color:var(--muted); font-size:14.5px }
.t-how summary { cursor:pointer; font-weight:600; color:var(--ink) }
.t-how p { margin:10px 0 0 }
@media (max-width:800px) { .g-card .tg text, .g-card .tg text.ref-lab, .g-card .tg text.sat-lab { font-size:15px } }

/* Réponse de l'OFROU (#24) et statut de la pétition (#27) */
.news-quote { margin:16px 0; padding:12px 16px; border-left:5px solid var(--yellow); background:#fffbe6 }
.news-quote p { font-family:var(--font-display); font-size:1.15rem; line-height:1.35; color:var(--ink) }
.news-quote footer { margin-top:6px; font-size:13.5px; color:var(--muted) }
.news-list { margin:8px 0 14px 1.2em } .news-list li { margin:4px 0 }
.pet-status { font-size:16px; padding:12px 14px; background:#fff8d6; border-left:5px solid var(--yellow); margin-bottom:14px; max-width:56ch }
.pet-status b { display:block; font-family:var(--font-display); font-weight:800 }
.pet-status a { font-weight:600; color:var(--ink) }
/* Actualités : durée des mesures, plan OFROU (16.11.2026) */
.news-duree { margin:14px 0; padding:10px 14px; background:#fffbe6; border-left:5px solid var(--yellow); font-weight:600; color:var(--ink) }
.news-fig { margin:16px 0 }
.news-fig a { display:block }
.news-fig img { display:block; width:100%; max-width:687px; height:auto; border:1px solid var(--line, #ddd) }
.news-fig figcaption { margin-top:6px; font-size:13.5px; color:var(--muted) }

/* ---------- jour par jour (#30) ---------- */
.jours { background:#fff }
.j-weeks { margin-top:12px; max-width:72ch; background:#fff8d6; border-left:5px solid var(--yellow); padding:10px 14px; font-size:15px }
.j-tabs { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; margin-top:22px }
.j-tabs button { font:inherit; font-size:15px; font-weight:600; padding:10px 0; border:2px solid var(--ink); background:#fff; color:var(--ink); cursor:pointer; text-transform:capitalize }
.j-tabs button[aria-selected="true"] { background:var(--ink); color:#fff }
.j-tabs button:focus-visible, .jh-day:focus-visible { outline:3px solid var(--yellow); outline-offset:2px }
.j-panel { margin-top:18px }
.j-day { font-family:var(--font-display); font-size:24px; letter-spacing:-.01em }
.j-dayn { color:var(--muted); font-size:14.5px; margin-top:2px }
.j-cards { margin-top:16px }
.j-big { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:6px 0 2px }
.j-big b { font-family:var(--font-display); font-weight:800; font-size:30px; letter-spacing:-.02em; line-height:1.1; background:linear-gradient(transparent 58%, rgba(255,212,0,.55) 58%) }
.j-big span { color:var(--muted); font-size:14.5px }
.j-row { display:grid; grid-template-columns:78px 1fr; gap:8px; margin-top:8px; font-size:16px }
.j-row span { font-size:12.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); padding-top:3px }
.j-avoid b { color:var(--red) }
.j-strip { margin-top:14px; height:18px }
.strip i.h0 { background:#cfe8da } .strip i.h1 { background:#f3cf86 } .strip i.h2 { background:#e0960f } .strip i.h3 { background:#d02c2c }
.when-card .strip-hours { margin-left:0 }
.j-share { margin-top:16px; display:flex; flex-wrap:wrap; align-items:center; gap:10px }
.btn-share { font:inherit; font-weight:700; font-size:15.5px; padding:11px 16px; background:var(--yellow); color:var(--ink); border:0; cursor:pointer }
.btn-share::before { content:'↗ ' }
#joursShareMsg { font-size:14px; color:var(--muted) }
.j-week-t { font-family:var(--font-display); font-size:22px; margin-top:40px; letter-spacing:-.01em }
.j-week-p { color:var(--muted); font-size:15px; max-width:70ch; margin-top:4px }
.jh { display:grid; grid-template-columns:1fr; gap:20px; margin-top:16px }
@media (min-width:900px) { .jh { grid-template-columns:1fr 1fr } }
.jh-card { border:1px solid var(--line); border-top:5px solid var(--ink); padding:14px 14px 12px }
.jh-card.down { border-top-color:var(--down) } .jh-card.up { border-top-color:var(--up) }
.jh-card h3 { font-size:17px; margin-bottom:10px }
.jh-grid { display:grid; grid-template-columns:40px repeat(var(--cols),minmax(0,1fr)) 62px; gap:2px; align-items:stretch }
.jh-grid i { display:block; min-height:26px; cursor:pointer }
.jh-grid i.h0 { background:#cfe8da } .jh-grid i.h1 { background:#f3cf86 } .jh-grid i.h2 { background:#e0960f } .jh-grid i.h3 { background:#d02c2c } .jh-grid i.f-none { background:#eef0f2 }
.jh-h { font-size:11px; color:var(--muted); text-align:left; line-height:1.2 }
.jh-t { text-align:right }
.jh-day { font:inherit; font-size:13px; font-weight:600; background:none; border:0; text-align:left; padding:0 4px 0 0; cursor:pointer; color:var(--ink); text-transform:capitalize }
.jh-day.on { background:var(--ink); color:#fff; padding-left:4px }
.jh-tot { font-size:12.5px; font-weight:600; text-align:right; align-self:center; white-space:nowrap }
.jh-verdict { font-size:14.5px; color:#2c3036; margin-top:12px }
.j-leg i { height:12px !important; width:14px }
.j-leg i.h0 { background:#cfe8da } .j-leg i.h1 { background:#f3cf86 } .j-leg i.h2 { background:#e0960f } .j-leg i.h3 { background:#d02c2c }
.j-leg { margin-top:12px }
@media (max-width:600px) { .j-tabs button { font-size:13.5px; padding:9px 0 } .jh-grid { grid-template-columns:34px repeat(var(--cols),minmax(0,1fr)) 54px; gap:1px } .jh-grid i { min-height:24px } .jh-tot { font-size:11.5px } .j-big b { font-size:26px } }
.when h2 { margin-bottom:4px }
