/* Site « coût du maintien de l'ordre » — feuille de style.
   Direction graphique (2026-12-01, soir) : épurée. La donnée au premier plan, beaucoup de blanc, pas de cartes ;
   fond clair chaud, encre noire, un seul accent orange ; étiquettes en chasse fixe ; grands chiffres fins.
   Les explications sont repliées derrière des « Voir plus ». Les graphiques s'animent quand ils entrent dans
   l'écran (classe .anime posée par app.js, jamais si l'utilisateur a demandé moins d'animations).
   Aucune police chargée : polices du système seulement. */

/* Deux jeux de couleurs. La page alterne des bandes claires et des bandes foncées (.inverse) : chaque
   bande redéfinit les mêmes variables, si bien que tous les composants s'adaptent seuls.
   Code couleur des quatre niveaux : teintes de la palette Okabe-Ito, distinctes pour les daltoniens,
   toujours doublées d'une forme et d'un mot. Dégradé --g1 à --g6 : gris du donut. */
:root {
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --doux: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root {
  color-scheme: light;
  --plan: #f1f0eb;
  --creux: #e4e2da;
  --encre: #141414;
  --encre-2: #55534e;
  --encre-3: #6b6963;
  --grille: #dddbd3;
  --axe: #bdbbb2;
  --officiel: #0b68a8;       /* bleu */
  --presse: #a3407b;         /* pourpre */
  --calcule: #00755a;        /* vert */
  --estime-c: #b5440a;       /* orange, en texte et en trait */
  --marque: var(--officiel);
  --marque-2: var(--presse);
  --g1: #141414; --g2: #33322f; --g3: #4f4d49; --g4: #696762; --g5: #84827c; --g6: #a09e97;
  --estime: #f6d9c6;         /* fond d'une fourchette estimée (toujours cernée d'un trait orange) */
  --accent: #e8471f;         /* orange vif : réservé aux estimations */
  --accent-texte: #b5440a;
  --survol: rgba(20, 20, 20, 0.06);
}
.inverse {
  color-scheme: dark;
  --plan: #151514;
  --creux: #2a2a28;
  --encre: #f1eee6;
  --encre-2: #bdbab1;
  --encre-3: #96938b;
  --grille: #2e2d2b;
  --axe: #4a4844;
  --officiel: #56b4e9;
  --presse: #e39ac4;
  --calcule: #3fc39b;
  --estime-c: #ff8a4c;
  --marque: var(--officiel);
  --marque-2: var(--presse);
  --g1: #f1eee6; --g2: #d3d0c8; --g3: #b5b2aa; --g4: #97948d; --g5: #7a7872; --g6: #605e59;
  --estime: #4a2c1c;
  --accent: #ff6a3d;
  --accent-texte: #ff8a4c;
  --survol: rgba(255, 255, 255, 0.07);
}
/* Si le lecteur préfère un thème sombre, les rôles s'échangent : la page est foncée, les bandes « inverse » claires. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --plan: #151514;
    --creux: #2a2a28;
    --encre: #f1eee6;
    --encre-2: #bdbab1;
    --encre-3: #96938b;
    --grille: #2e2d2b;
    --axe: #4a4844;
    --officiel: #56b4e9;
    --presse: #e39ac4;
    --calcule: #3fc39b;
    --estime-c: #ff8a4c;
    --marque: var(--officiel);
    --marque-2: var(--presse);
    --g1: #f1eee6; --g2: #d3d0c8; --g3: #b5b2aa; --g4: #97948d; --g5: #7a7872; --g6: #605e59;
    --estime: #4a2c1c;
    --accent: #ff6a3d;
    --accent-texte: #ff8a4c;
    --survol: rgba(255, 255, 255, 0.07);
  }
  .inverse {
    color-scheme: light;
    --plan: #f1f0eb;
    --creux: #e4e2da;
    --encre: #141414;
    --encre-2: #55534e;
    --encre-3: #6b6963;
    --grille: #dddbd3;
    --axe: #bdbbb2;
    --officiel: #0b68a8;       /* bleu */
    --presse: #a3407b;         /* pourpre */
    --calcule: #00755a;        /* vert */
    --estime-c: #b5440a;       /* orange, en texte et en trait */
    --marque: var(--officiel);
    --marque-2: var(--presse);
    --g1: #141414; --g2: #33322f; --g3: #4f4d49; --g4: #696762; --g5: #84827c; --g6: #a09e97;
    --estime: #f6d9c6;         /* fond d'une fourchette estimée (toujours cernée d'un trait orange) */
    --accent: #e8471f;         /* orange vif : réservé aux estimations */
    --accent-texte: #b5440a;
    --survol: rgba(20, 20, 20, 0.06);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plan);
  color: var(--encre);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--encre); text-decoration-color: var(--encre-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
/* Les liens externes s'ouvrent dans un nouvel onglet : une flèche le signale.
   Les signes ajoutés par la feuille de style (flèches, « + », formes des étiquettes) sont des dessins. Chacun a deux
   déclarations « content » : la seconde lui donne un texte de remplacement vide, pour que les lecteurs d'écran ne le
   lisent pas (« Voir plus plus », « losange Estimé »). Un navigateur qui ne connaît pas cette écriture garde la première. */
a[target="_blank"]::after { content: "\00a0↗"; content: "\00a0↗" / ""; font-size: 0.85em; color: var(--encre-3); }
a:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }

.colonne { max-width: 900px; margin: 0 auto; padding: 0 22px; }
/* Texte réservé aux lecteurs d'écran : il est dans la page, mais invisible (voir « Accessibilité » dans CLAUDE.md).
   On ne peut pas le sélectionner, pour qu'un texte copié ne contienne pas deux fois la même chose. */
.masque { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; -webkit-user-select: none; user-select: none; }
main:focus { outline: none; }       /* le lien « Aller au contenu » y porte le focus : pas de cadre autour de la page */
.evitement { position: absolute; left: -999px; top: 8px; background: var(--plan); padding: 8px 12px; }
.evitement:focus { left: 8px; z-index: 10; }

/* En-tête : peu de mots */
/* Bandes pleine largeur, alternativement claires et foncées */
.bande { background: var(--plan); color: var(--encre); padding: clamp(64px, 10vw, 116px) 0; }
.entete { padding: 56px 0 44px; }
.sur, .num { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-3); }
.sur { margin: 0 0 18px; }
.sur .num { margin-right: 12px; }
h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; max-width: 20em; }
.chapo { margin: 0; font-size: 19px; color: var(--encre-2); max-width: 34em; }

/* Sections : beaucoup d'air, un titre discret */

h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 14px; }
h2 .num { flex: none; }
h3 { margin: 28px 0 8px; font-size: 17px; }
.accroche { margin: 0 0 26px; color: var(--encre-2); max-width: 38em; }
section p { max-width: 42em; }

/* Le chiffre de tête */
.une { padding-top: clamp(40px, 7vw, 76px); padding-bottom: clamp(56px, 8vw, 96px); }
.geant, .grand { margin: 0; font-weight: 200; line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.geant { font-size: clamp(132px, 34vw, 340px); margin-left: -0.05em; }
.grand { font-size: clamp(84px, 18vw, 180px); margin-top: 22px; }
.geant .unite, .grand .unite { font-size: 0.28em; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); margin-left: 0.18em; }
.sous-geant { margin: 18px 0 0; color: var(--encre-2); max-width: 36em; }

/* Fourchette sous le chiffre de tête : un trait, deux bornes, un point */
.fourchette { margin: 34px 0 0; max-width: 640px; }
.fourchette .piste { position: relative; height: 18px; }
.fourchette .fond { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--grille); }
.fourchette .trait { position: absolute; top: 5px; height: 8px; border-radius: 4px; background: var(--encre); transform-origin: 0 50%; }
.fourchette .pt { position: absolute; top: -1px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--plan); }
.fourchette .bornes { position: relative; height: 22px; margin-top: 8px; font: 12px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--encre-2); }
.fourchette .bornes span { position: absolute; white-space: nowrap; }
.fourchette .bornes .fin { right: 0; }
.fourchette .bornes .milieu { color: var(--accent-texte); transform: translateX(-50%); }

/* « Voir plus » : l'explicatif, si ça intéresse */
details.plus { margin-top: 22px; }
summary { cursor: pointer; width: fit-content; list-style: none; font: 500 12px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-2); padding: 4px 0; border-bottom: 1px solid var(--axe); }
summary::-webkit-details-marker { display: none; }
summary::after { content: " +"; content: " +" / ""; color: var(--encre); }
details[open] > summary::after { content: " −"; content: " −" / ""; }
summary:hover { color: var(--encre); border-bottom-color: var(--encre); }
details.plus > *:not(summary) { color: var(--encre-2); font-size: 16px; }
details.plus > p:first-of-type { margin-top: 16px; }
details.plus strong { color: var(--encre); }

/* Niveaux de solidité : une forme et un mot, jamais la couleur seule */
.niveau {
  display: inline-block; white-space: nowrap;
  padding: 2px 7px 1px 6px; margin-right: 2px;
  border: 1px solid var(--axe); border-radius: 3px;
  font: 500 11px/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--encre-2);
  vertical-align: 0.12em;
}
.niveau::before { margin-right: 5px; font-size: 0.95em; }
.niveau-p::before { content: "●"; content: "●" / ""; }
.niveau-s::before { content: "◐"; content: "◐" / ""; }
.niveau-nv::before, .niveau-vide::before { content: "○"; content: "○" / ""; }
.niveau-calcule::before { content: "■"; content: "■" / ""; }
.niveau-h::before { content: "◆"; content: "◆" / ""; }
.niveau-p { --n: var(--officiel); }
.niveau-s { --n: var(--presse); }
.niveau-calcule { --n: var(--calcule); }
.niveau-h { --n: var(--estime-c); }
.niveau-p, .niveau-s, .niveau-calcule, .niveau-h {
  color: var(--n); border-color: color-mix(in srgb, var(--n) 55%, transparent);
  background: color-mix(in srgb, var(--n) 9%, transparent);
}
.definitions { margin: 22px 0 0; border-bottom: 1px solid var(--grille); }
.definitions div { display: grid; grid-template-columns: 190px 1fr; gap: 6px 20px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--grille); }
.definitions dd { margin: 0; font-size: 17px; line-height: 1.45; }
.definitions .niveau { font-size: 13px; padding: 6px 12px 5px 10px; border-width: 1.5px; }
@media (max-width: 560px) { .definitions div { grid-template-columns: 1fr; } }
.petit { margin: 22px 0 0; font-size: 14px; line-height: 1.5; color: var(--encre-2); max-width: 46em; }

/* Graphiques */
.legende { margin: 0 0 14px; color: var(--encre-2); font: 12px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 4px 20px; max-width: none; }
.legende .item { display: inline-flex; align-items: center; gap: 7px; }
.cle { display: inline-block; flex: none; width: 8px; height: 14px; border-radius: 4px; }
.cle-officiel { background: var(--marque); }
.cle-presse { background: var(--marque-2); }
.cle-estime { background: var(--estime); box-shadow: inset 0 0 0 1px var(--estime-c); position: relative; }
.cle-estime::after { content: ""; position: absolute; left: 1px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--estime-c); }
.cle-nationale { background: var(--encre); width: 8px; height: 8px; border-radius: 0; transform: rotate(45deg) scale(0.8); }
.graphique svg { display: block; width: 100%; height: auto; overflow: visible; }
.graphique text { font: 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; fill: var(--encre-3); font-variant-numeric: tabular-nums; }
.graphique .valeur-directe { fill: var(--encre); font-weight: 600; }
.graphique .grille { stroke: var(--grille); stroke-width: 1; }
.graphique .base { stroke: var(--encre); stroke-width: 1; }
.barre-officiel { fill: var(--marque); }
.barre-presse { fill: var(--marque-2); }
.barre-estime { fill: var(--estime); stroke: var(--estime-c); stroke-width: 1; }
.point-realiste { fill: var(--estime-c); }
.marque-nationale { fill: var(--encre); }
.cible { fill: transparent; cursor: pointer; }
.cible:hover { fill: var(--survol); }
.guide.choisie { stroke: var(--encre); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; fill: none; }
.pastille-choisie.choisie { fill: var(--encre); }
.unite-axe { margin: 8px 0 0; font: 11.5px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--encre-3); max-width: none; }

/* La journée choisie : quatre chiffres, sans cadre */
.cadre-journee { margin-top: 30px; }
.detail-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.detail-entete h3 { margin: 0; flex: 1 1 260px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
select { font: 13px/1.3 var(--mono); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--axe); background: transparent; color: var(--encre); max-width: 100%; }
.fiche { margin: 18px 0 0; display: grid; gap: 22px 28px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fiche > div { border-top: 1px solid var(--encre); padding-top: 10px; }
.fiche dt { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-2); margin-bottom: 8px; }
.fiche dd { margin: 0; }
.fiche .ligne { margin: 0; line-height: 1.2; }
.fiche .ligne + .ligne, .fiche .source + .ligne { margin-top: 12px; }
.fiche .qui { display: block; color: var(--encre-2); font-size: 13px; margin-bottom: 2px; }
.fiche .valeur { display: block; font-weight: 300; font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.fiche .bloc-cout .valeur { color: var(--accent-texte); }
.fiche .absent { color: var(--encre-3); font-size: 15px; }
.fiche .source { display: block; color: var(--encre-3); font-size: 12.5px; line-height: 1.4; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche .source a { color: var(--encre-2); text-decoration-color: var(--axe); text-decoration-thickness: 1px; }
.fiche details { margin-top: 8px; }
.postes-jour { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--encre-2); }
.postes-jour li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--grille); }
.postes-jour .montant-jour { white-space: nowrap; font: 12px/1.6 var(--mono); color: var(--encre); }

/* Où part l'argent : un donut en dégradé de gris (du poste le plus lourd au plus léger) et sa liste */
.donut-bloc { display: grid; grid-template-columns: minmax(240px, 400px) minmax(0, 1fr); gap: 28px 48px; align-items: center; margin-top: 8px; }
.donut { position: relative; width: 100%; max-width: 400px; margin: 0 auto; }
.donut svg { display: block; width: 100%; height: auto; overflow: visible; }
.tranche { stroke: var(--plan); stroke-width: 2.5; cursor: pointer; transition: opacity 0.2s ease; outline: none; }
.tranche.autres { fill: var(--creux); }
.donut svg.survol .tranche:not(.actif) { opacity: 0.25; }
.donut .centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 0 24%; }
.donut .centre .val { font-size: clamp(40px, 9vw, 72px); line-height: 0.95; font-weight: 200; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.donut .centre .val small { font-size: 0.36em; font-weight: 400; letter-spacing: 0; margin-left: 4px; color: var(--encre-2); }
.donut .centre .lib { margin-top: 8px; font: 11.5px/1.35 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--encre-2); }
.tranches { list-style: none; margin: 0; padding: 0; }
.tranches > li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--grille); cursor: default; transition: opacity 0.2s ease; }
.tranches > li:first-child { border-top: 0; }
.tranches.survol > li:not(.actif) { opacity: 0.4; }
.tranches .pastille { width: 12px; height: 12px; border-radius: 3px; align-self: center; box-shadow: inset 0 0 0 1px var(--encre-3); }
.tranches .t { font-size: 15.5px; line-height: 1.3; }
.tranches .pc { font-size: 24px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tranches .pc small { font-size: 0.55em; font-weight: 400; margin-left: 2px; color: var(--encre-2); }
.tranches .m { grid-column: 2 / -1; font: 12px/1.4 var(--mono); letter-spacing: 0.03em; color: var(--encre-2); }
.tranches details { grid-column: 2 / -1; margin: 2px 0 0; }
.tranches details ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; color: var(--encre-2); }
.tranches details li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--grille); }
.tranches details li > span:last-child { font: 12px/1.6 var(--mono); color: var(--encre); white-space: nowrap; }
@media (max-width: 700px) { .donut-bloc { grid-template-columns: 1fr; } .donut { max-width: 320px; } }

/* Ce à quoi aurait pu servir cet argent : quatre grands nombres */
.equivalences { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; margin-top: 8px; }
.equivalence { border-top: 1px solid var(--encre); padding-top: 14px; }
.equivalence .val { margin: 0; font-size: clamp(64px, 11vw, 112px); line-height: 0.95; font-weight: 200; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.equivalence .val small { font-size: 0.3em; font-weight: 400; letter-spacing: 0; margin-left: 6px; color: var(--encre-2); }
.equivalence .lib { margin: 10px 0 0; font-size: 18px; line-height: 1.3; max-width: 16em; }
.equivalence .plage { margin: 6px 0 0; font: 12px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--encre-3); }

/* Pourquoi l'écart est si large : la fourchette de chaque poste */
.ecart { display: grid; grid-template-columns: minmax(150px, 30%) minmax(0, 1fr) 118px; gap: 4px 18px; align-items: center; padding: 11px 0; border-top: 1px solid var(--grille); }
.ecart:first-child { border-top: 0; }
.ecart .nom { font-size: 15px; line-height: 1.3; }
.ecart .piste { position: relative; height: 16px; }
.ecart .plage { position: absolute; top: 2px; height: 12px; min-width: 12px; border-radius: 6px; background: var(--estime); box-shadow: inset 0 0 0 1px var(--estime-c); transform-origin: 0 50%; }
.ecart .pt { position: absolute; top: 3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--estime-c); }
.ecart .bornes { font: 12px/1.4 var(--mono); letter-spacing: 0.02em; color: var(--encre-2); text-align: right; white-space: nowrap; }
.ecart.total .nom { font-weight: 650; }
.ecart.total .plage { background: var(--marque); box-shadow: none; }
.ecart.total .pt { background: var(--accent); width: 14px; height: 14px; top: 1px; margin-left: -7px; border: 2px solid var(--plan); }
@media (max-width: 620px) {
  .ecart { grid-template-columns: 1fr 108px; }
  .ecart .piste { grid-column: 1 / -1; grid-row: 2; }
}

/* Postes et « hors calcul » : une ligne par élément, qui s'ouvre */
.postes, .hors { border-bottom: 1px solid var(--grille); }
.postes details, .hors details { border-top: 1px solid var(--grille); }
.postes summary, .hors summary { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border: 0; font: 400 16px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; color: var(--encre); }
.postes summary::after, .hors summary::after { order: 3; font: 400 18px/1 var(--mono); color: var(--encre-3); content: "+"; content: "+" / ""; }
.postes details[open] > summary::after, .hors details[open] > summary::after { content: "−"; content: "−" / ""; }
.postes summary .t { flex: 1 1 auto; }
.postes summary .t .niveau { margin-left: 6px; }
.postes summary .v { flex: none; font-size: 30px; line-height: 1; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--encre); white-space: nowrap; }
.postes summary .v small { font-size: 0.42em; font-weight: 400; letter-spacing: 0; margin-left: 3px; color: var(--encre-2); }
.postes summary:hover .t, .hors summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.postes .corps { padding: 2px 0 18px; }
.hors details p { margin: 0 0 16px; color: var(--encre-2); font-size: 16px; }
.trois { display: flex; gap: 8px 36px; flex-wrap: wrap; align-items: flex-end; margin: 6px 0 16px; font-size: 26px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.trois > span { display: flex; flex-direction: column; color: var(--encre-2); }
.trois small { font: 500 11px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-3); }
.trois .reel { color: var(--estime-c); font-size: 44px; line-height: 1; }
.formule { margin: 14px 0 0; padding: 12px 14px; background: var(--creux); border-radius: 4px; font: 15px/1.5 var(--mono); color: var(--encre); overflow-wrap: anywhere; }
.formule > span { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-3); margin-bottom: 2px; }
.formule b { font-weight: 700; color: var(--estime-c); white-space: nowrap; }
.regle { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--encre-2); }
.note { margin: 10px 0 0; color: var(--encre-2); font-size: 14.5px; }
.parametres { list-style: none; margin: 12px 0 0; padding: 0; }
.parametres li { padding: 14px 0; border-top: 1px solid var(--grille); font-size: 14.5px; line-height: 1.45; }
.parametres .nom-param { display: block; font-weight: 600; font-size: 15px; }
.parametres .nom-param .niveau { margin-left: 4px; font-weight: 500; }
.parametres .vals { display: block; margin: 6px 0 4px; color: var(--encre-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.parametres .vals b { font-size: 22px; font-weight: 300; letter-spacing: -0.02em; color: var(--encre-2); }
.parametres .vals b.reel { font-size: 28px; color: var(--encre); font-weight: 400; }
.parametres .vals i { font-style: normal; margin: 0 8px; color: var(--axe); }
.parametres .remarque, .parametres .source { display: block; color: var(--encre-2); font-size: 13.5px; margin-top: 3px; }

/* Liste de toutes les données d'une journée */
.faits { list-style: none; margin: 12px 0 0; padding: 0; }
.faits li { padding: 10px 0; border-top: 1px solid var(--grille); font-size: 15px; line-height: 1.45; color: var(--encre); }
.faits .valeur { font-weight: 650; }
.faits .zone { color: var(--encre-2); }
.faits .precision, .faits .source { display: block; color: var(--encre-2); font-size: 13.5px; margin-top: 2px; }
.faits .ecarte { color: var(--encre-2); }

/* Sources */
.liens { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.liens a { display: inline-block; padding: 8px 14px; border: 1px solid var(--axe); border-radius: 999px; font: 13px/1.3 var(--mono); text-decoration: none; }
.liens a::after { content: " ↓"; content: " ↓" / ""; color: var(--encre-3); }
.liens a:hover { border-color: var(--encre); }

/* Tableaux */
.defilement { overflow-x: auto; margin-top: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--encre); }
caption { text-align: left; color: var(--encre-2); padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-top: 1px solid var(--grille); }
thead th { border-top: 0; border-bottom: 1px solid var(--encre); color: var(--encre-2); font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }
td.vide { color: var(--encre-3); }
td.estime .plage { color: var(--encre-2); white-space: nowrap; }
.defilement td:nth-child(2) { white-space: nowrap; }
tr.total th, tr.total td { font-weight: 650; border-top: 1px solid var(--encre); }
/* Tableau des paramètres : le nom s'écrit sur plusieurs lignes ; la remarque occupe une seconde ligne,
   sur toute la largeur, pour garder des lignes basses. */
.t-parametres { min-width: 720px; table-layout: fixed; font-size: 13.5px; }
.t-parametres th, .t-parametres td { white-space: normal; overflow-wrap: break-word; }
.t-parametres tbody th { white-space: normal; font-weight: 600; }
.t-parametres col.c-nom { width: 25%; }
.t-parametres col.c-val { width: 7.5%; }
.t-parametres col.c-unite { width: 12%; }
.t-parametres col.c-nature { width: 13%; }
.t-parametres td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-parametres tr.p th, .t-parametres tr.p td { border-top: 1px solid var(--axe); padding-bottom: 4px; }
.t-parametres tr.r td { border-top: 0; padding: 0 0 12px; color: var(--encre-2); font-size: 13px; line-height: 1.45; }

/* Infobulle : noire, comme une étiquette */
.infobulle {
  position: fixed; z-index: 20; pointer-events: none; max-width: 300px;
  background: var(--encre); color: var(--plan);
  border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  padding: 9px 12px; font-size: 13px; line-height: 1.4;
}
.infobulle strong { display: block; font-size: 15px; font-weight: 600; }
.infobulle span { display: block; opacity: 0.78; }

.pied { padding: 0 0 44px; color: var(--encre-3); font: 12px/1.6 var(--mono); letter-spacing: 0.03em; }
.pied p { margin: 0; padding-top: 18px; border-top: 1px solid var(--grille); }

/* Page de mentions légales : libellé en chasse fixe à gauche, texte à droite ; bouton de refus de la mesure d'audience */
.sur a { color: inherit; text-decoration: none; }
.sur a:hover { color: var(--encre); text-decoration: underline; }
.mentions dt { font: 500 12px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-2); }
code { font: 0.9em var(--mono); }
.insecable { white-space: nowrap; }       /* références de loi : pas de coupure dans « article 1-1 » */
.refus { margin-top: 34px; border-top: 1px solid var(--grille); }
.refus .etat { margin: 16px 0 12px; font-weight: 600; }
.refus .etat:empty { display: none; }
.refus + .petit { margin-top: 28px; }
.bouton { font: 13px/1.3 var(--mono); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--encre); background: transparent; color: var(--encre); cursor: pointer; }
.bouton:hover { background: var(--encre); color: var(--plan); }
.bouton:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }

/* ---------- Animations au défilement ----------
   .anime est posée sur <html> par app.js, sauf si l'utilisateur a demandé moins d'animations.
   Sans elle, tout est affiché dans son état final. */
.anime .apparait { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s var(--doux); }
.anime .vu .apparait, .anime .apparait.vu { opacity: 1; transform: none; }
.anime .pousse { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.9s var(--doux); }
.anime .vu .pousse { transform: none; }
.anime .eclot { opacity: 0; transition: opacity 0.4s ease; }
.anime .vu .eclot { opacity: 1; }
.anime .etire { transform: scaleX(0); transition: transform 1s var(--doux); }
.anime .vu .etire, .anime .vu.etire { transform: none; }
.anime .saute { transform: scale(0); transition: transform 0.5s var(--doux) 0.7s; }
.anime .vu .saute { transform: none; }
.anime .balayage { stroke-dashoffset: var(--tour); transition: stroke-dashoffset 1.7s var(--doux); }
.anime .vu .balayage { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  body { background: #fff; }
  details > *:not(summary) { display: block; }
  .infobulle, select { display: none; }
}
