/* A16 Taubenloch. Deux familles : Archivo (titres, chiffres) et IBM Plex Sans (texte). */
:root {
  --paper: #ffffff;
  --ink: #15171b;
  --ink-2: #3a3f47;
  --muted: #646b75;
  --grey-1: #f2f4f7;
  --grey-2: #e3e6eb;
  --grey-3: #c9ccd1;
  --asphalt: #1b1d21;
  --asphalt-2: #24272c;
  --asphalt-3: #2f333a;
  --asphalt-ink: #eceef1;
  --asphalt-muted: #9aa1ab;
  --yellow: #ffd400;
  --yellow-ink: #1b1d21;
  --red: #d02c2c;
  --green: #22925b;
  --amber: #e0960f;
  --down: #3b7dd8;
  --up: #ef8a1f;
  --ramp: #2a9d5c;
  --uturn: #b453d6;
  --font-ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', 'IBM Plex Sans', system-ui, sans-serif;
  --wrap: 1240px;
  --chart-text: var(--asphalt-muted);
  --chart-grid: rgba(255,255,255,.12);
  --chart-axis: rgba(255,255,255,.25);
  --chart-cursor: #ffd400;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #121417; --ink: #eceef1; --ink-2: #c9ccd1; --muted: #9aa1ab; --grey-1: #1a1d22; --grey-2: #262a30; --grey-3: #3a3f47; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #121417; --ink: #eceef1; --ink-2: #c9ccd1; --muted: #9aa1ab; --grey-1: #1a1d22; --grey-2: #262a30; --grey-3: #3a3f47; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 17px; line-height: 1.6; font-feature-settings: 'tnum' 1; }
h1, h2, h3 { font-family: var(--font-display); font-variation-settings: 'wdth' 90; letter-spacing: -.01em; line-height: 1.05; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); font-weight: 800; max-width: 16ch; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); max-width: 24ch; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
b { font-weight: 600; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.lead { font-size: 1.12rem; max-width: 64ch; color: var(--ink-2); }
section { padding: clamp(56px, 8vw, 110px) 0; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-variation-settings: 'wdth' 92; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; padding: 14px 24px; border: 0; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--yellow-ink); color: var(--yellow); }
.textlink { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.textlink:hover { text-decoration-thickness: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.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; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); transition: box-shadow .2s ease, background .2s ease; }
.top.scrolled { box-shadow: 0 1px 0 var(--grey-2); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.mark { font-family: var(--font-display); font-variation-settings: 'wdth' 87; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.mark-sign { width: 14px; height: 14px; background: var(--yellow); display: inline-block; }
.menu { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.menu::-webkit-scrollbar { display: none; }
.menu a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 8px 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--ink); border-bottom-color: var(--yellow); }
.lang { flex: none; background: none; border: 1px solid var(--grey-2); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 500; padding: 6px 12px; cursor: pointer; text-decoration: none; }
@media (max-width: 899px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding: 10px 0 0; row-gap: 4px; }
  .mark { order: 1; } .lang { order: 2; margin-left: auto; }
  .menu { order: 3; width: 100%; margin: 0 -20px; padding: 0 20px 6px; }
  .menu a { font-size: .9rem; padding: 6px 10px; }
}

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.hero-lead { font-size: 1.15rem; max-width: 60ch; color: var(--ink-2); margin-top: 22px; }
.hero-lead-2 { font-size: 1.05rem; max-width: 56ch; color: var(--ink-2); }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.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; }

/* 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(4, minmax(0, 1fr)); border: 1px solid var(--asphalt-3); }
@media (max-width: 760px) { .sc-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.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; }
.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; }
.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: 760px; 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; }

/* 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); }

/* Témoignages */
.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; }

/* Pétition */
.petition { background: var(--yellow); color: var(--yellow-ink); }
.pet-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 980px) { .pet-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.petition .lead { color: var(--yellow-ink); opacity: .85; }
.pet-count { display: flex; align-items: baseline; gap: 14px; margin: 28px 0 10px; font-size: 1.1rem; font-weight: 600; }
.huge { font-family: var(--font-display); font-variation-settings: 'wdth' 87; font-weight: 800; font-size: clamp(4rem, 9vw, 7rem); line-height: .95; letter-spacing: -.03em; }
.bar { height: 8px; background: rgba(27,29,33,.18); max-width: 560px; }
.bar span { display: block; height: 100%; width: 0; background: var(--yellow-ink); transition: width .6s ease; }
.pet-goal { font-size: .9rem; margin: 8px 0 24px; opacity: .8; }
.pet-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.pet-deadline { max-width: 56ch; }
.pet-deadline .days { display: inline-block; font-family: var(--font-display); font-weight: 700; margin-left: 6px; }
.pet-side h3 { margin-bottom: 6px; }
.pet-comments { list-style: none; margin: 0; padding: 0; }
.pet-comments li { border-top: 1px solid rgba(27,29,33,.25); padding: 12px 0; }
.pet-comments li:last-child { border-bottom: 1px solid rgba(27,29,33,.25); }
.pet-comments q { quotes: '«\00a0' '\00a0»'; }
.pet-comments small { display: block; opacity: .75; margin-top: 4px; font-size: .85rem; }
.pet-form { grid-column: 1 / -1; background: #fff; }
.pet-form iframe { width: 100%; height: 640px; border: 0; display: block; }

/* Pied */
.foot { padding: 40px 0 110px; border-top: 1px solid var(--grey-2); color: var(--ink-2); font-size: .95rem; }
.foot p { max-width: 80ch; }
.foot-mark { font-family: var(--font-display); font-variation-settings: 'wdth' 87; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.foot .small { font-size: .85rem; color: var(--muted); }
@media (min-width: 900px) { .foot { padding-bottom: 50px; } }

/* Appel à signer, mobile */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--asphalt); color: var(--yellow); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; transform: translateY(100%); transition: transform .25s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta b { font-weight: 500; color: var(--asphalt-ink); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } .sticky-cta { transition: none; } .bar span { transition: none; } }
