/* rapport.css : copie de annee-exception-2026/charte/charte.css (polices → fonts/) + compléments du rapport (en fin de fichier). */
/*
 * Charte « Nuit tropicale » du rapport web « 2026, une année d'exception » (Plume Visuals).
 * Canevas logique 1600 × 900 mis à l'échelle (comme report.html de la démo d'accueil), onglets de pages façon Power BI.
 * Doc : CHARTE-RAPPORT.md. Les jetons (bloc JETONS) sont écrits par charte.py : ne pas les modifier à la main.
 * Aucune ressource externe : polices auto-hébergées (polices/, licence OFL), fonds en CSS + SVG légers (fonds/).
 */

/* ------------------------------------------------------------------ polices (copies des paquets @fontsource du site) */
@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/fraunces-latin-opsz-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
}

/* JETONS:DEBUT (généré par charte.py) */
:root {
  --nuit: #110F0E;
  --nuit-bord: #0A0908;
  --carte: #1B1917;
  --carte2: #262320;
  --bulle: #3A3530;
  --filet: #2C2824;
  --grille: #34302B;
  --axe: #4A443D;
  --texte: #F3EFE8;
  --texte2: #B4ACA0;
  --texte3: #958D81;
  --braise: #FF5B37;
  --braise-fonce: #7A3A2A;
  --ocre: #E0A23C;
  --eau: #63A4F5;
  --a1976: #716859;
  --a2003: #A39785;
  --a2022: #D8CBB6;
  --passe: #776E63;
  --normale: #CFC8BD;
  --bande: #F3EFE8;
  --div-1: #6E9DDC; --div-2: #4A79BA; --div-3: #3E5D8B; --div-4: #3F4D63; --div-5: #3A3530; --div-6: #7A3A2A; --div-7: #A43D2B; --div-8: #D6482F; --div-9: #FF5B37;
  --sec-0: #262320; --sec-1: #5E4A33; --sec-2: #86602E; --sec-3: #AF7A2C; --sec-4: #D69A33; --sec-5: #EFC35E; --sec-6: #FAE3A2;
  --vig-aucune: #262320; --vig-vigilance: #EFE38A; --vig-alerte: #F49A3A; --vig-renforcee: #E9473F; --vig-crise: #BE3B9A;
  --onde-visible: #63A4F5; --onde-faible: #A9C8EC; --onde-nonvisible: #A88E66; --onde-assec: #E0A23C;
  --page-l: 1600px; --page-h: 900px; --marge: 60px; --col: 105px; --gout: 20px; --pas: 125px;
}
/* JETONS:FIN */

:root {
  /* Variables de page attendues par report.js (--pg-*) : mêmes noms que la démo d'accueil */
  --pg-bg: var(--nuit);
  --pg-fg: var(--texte);
  --pg-muted: var(--texte2);
  --pg-accent: var(--braise);
  --pg-grid: var(--grille);
  --pg-surface: var(--carte);
  --pg-font: "Segoe UI", wf_segoe-ui_normal, "Inter Variable", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --pg-title-font: "Fraunces Variable", Georgia, "Times New Roman", serif;
  --pg-num-font: "Segoe UI", "Inter Variable", system-ui, Helvetica, Arial, sans-serif;
  /* couleur du chapitre (kicker, halo) : réglée par data-chapitre sur .pg */
  --chap: var(--braise);
  /* fond : halo d'ambiance */
  --halo: var(--chap);
  --halo-x: 8%;
  --halo-y: 0%;
  --halo-force: 13%;
  --rayon: 8px;
  --onglets-h: 48px;
}

/* ------------------------------------------------------------------ coque : outspace, cadre de page, onglets */
.rp-coque {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%;
  background: var(--nuit-bord); color: var(--texte); font-family: var(--pg-font);
  -webkit-font-smoothing: antialiased;
}
.rp-scene { position: relative; flex: 1 1 auto; overflow: hidden; }
/* la page est posée en (0,0) puis translate + scale par le script d'ajustement (voir CHARTE-RAPPORT.md §4.3) */
.pg {
  position: absolute; left: 0; top: 0; width: var(--page-l); height: var(--page-h); overflow: hidden;
  transform-origin: 0 0; background: var(--nuit); color: var(--texte); font-family: var(--pg-font);
  box-shadow: 0 0 0 1px var(--filet), 0 18px 60px rgba(0, 0, 0, .55);
  font-variant-numeric: lining-nums;
}
.pg[data-chapitre="chaleur"], .pg[data-chapitre="annee2026"], .pg[data-chapitre="records"] { --chap: var(--braise); }
.pg[data-chapitre="sols"] { --chap: var(--ocre); }
.pg[data-chapitre="eau"] { --chap: var(--eau); }
.pg[data-chapitre="methode"] { --chap: var(--texte2); --halo-force: 4%; }

/* Onglets façon Power BI, à la taille réelle de l'écran (jamais mis à l'échelle : lisibles et tactiles sur mobile) */
.rp-onglets {
  flex: 0 0 var(--onglets-h); display: flex; align-items: stretch; gap: 2px; padding: 0 12px;
  background: var(--nuit-bord); border-top: 1px solid var(--filet);
  overflow-x: auto; scrollbar-width: none; font-family: var(--pg-font);
}
.rp-onglets::-webkit-scrollbar { display: none; }
.rp-onglet {
  position: relative; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 0 16px; min-height: 44px;
  border: 0; background: transparent; color: var(--texte3); font: 500 14px/1 var(--pg-font); cursor: pointer; white-space: nowrap;
  transition: color 150ms cubic-bezier(.2, 0, 0, 1), background-color 150ms cubic-bezier(.2, 0, 0, 1);
}
.rp-onglet b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--texte3); letter-spacing: .04em; }
.rp-onglet:hover { color: var(--texte); background: var(--carte); }
.rp-onglet[aria-selected="true"] { color: var(--texte); background: var(--carte); }
.rp-onglet[aria-selected="true"] b { color: var(--braise); }
.rp-onglet[aria-selected="true"]::before { /* filet d'onglet actif, comme Power BI, à la couleur signature */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--braise);
}
.rp-onglet:focus-visible { outline: 2px solid var(--braise); outline-offset: -2px; }
.rp-onglets__fin { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-left: 16px; color: var(--texte3); font-size: 13px; white-space: nowrap; }
.rp-onglets__fin a { color: var(--texte2); font-weight: 600; text-decoration: none; }
.rp-onglets__fin a:hover { color: var(--texte); }
/* Portrait (mobile) : la page se cale en haut à pleine largeur, les onglets suivent, puis une astuce */
.rp-astuce { display: none; margin: 14px 16px; padding: 12px 14px; border-radius: 8px; background: var(--carte); color: var(--texte2); font: 400 14px/20px var(--pg-font); }
.rp-coque--portrait { height: auto; min-height: 100%; }
.rp-coque--portrait .rp-astuce { display: block; }
/* Portrait : le message de la page, repris à taille lisible sous les onglets (rempli par coque.js) */
.rp-resume { display: none; margin: 18px 16px 0; }
.rp-coque--portrait .rp-resume { display: block; }
.rp-resume__kicker { margin: 0; font: 700 12px/16px var(--pg-font); letter-spacing: .14em; text-transform: uppercase; color: var(--braise); }
.rp-resume__titre { margin: 6px 0 0; font-family: var(--pg-title-font); font-weight: 620; font-size: 26px; line-height: 31px; font-variation-settings: "opsz" 48; color: var(--texte); text-wrap: balance; }
.rp-resume__dek { margin: 8px 0 0; font: 400 16px/23px var(--pg-font); color: var(--texte2); }
.rp-resume__dek em { font-style: normal; color: var(--braise); font-weight: 600; }
.rp-resume__dek b { color: var(--texte); font-weight: 600; }
/* Mode vidéo (?video=1) : sans onglets ni curseur, la page seule */
.rp-coque[data-mode="video"] .rp-onglets { display: none; }
.rp-coque[data-mode="video"], .rp-coque[data-mode="video"] * { cursor: none !important; }
/* Téléphone en paysage : onglets plus bas */
@media (max-height: 500px) {
  :root { --onglets-h: 38px; }
  .rp-onglet { min-height: 36px; font-size: 13px; }
}
/* Mobile : onglets compacts (numéro seul pour les pages non actives) */
@media (max-width: 720px) {
  .rp-onglet { padding: 0 12px; font-size: 13px; }
  .rp-onglet:not([aria-selected="true"]) span { display: none; }
  .rp-onglets__fin { display: none; }
}

/* ------------------------------------------------------------------ fond de page (sous les visuels, sans texte) */
.pg-fond { --halo: var(--chap); position: absolute; inset: 0; pointer-events: none; background-color: var(--nuit); }
.pg-fond::before { /* halo d'ambiance du chapitre + vignettage */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 85% at var(--halo-x) var(--halo-y), color-mix(in srgb, var(--halo) var(--halo-force), transparent) 0%, color-mix(in srgb, var(--halo) calc(var(--halo-force) * .45), transparent) 40%, transparent 72%),
    radial-gradient(ellipse 90% 90% at 50% 45%, transparent 55%, color-mix(in srgb, var(--nuit-bord) 80%, transparent) 100%);
}
.pg-fond::after { /* grain fin : évite les bandes des dégradés sombres dans la vidéo compressée */
  content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}
.pg-fond--couverture { --halo: var(--braise); --halo-x: 92%; --halo-y: 88%; --halo-force: 22%; }
.pg-fond--couverture::before {
  background:
    radial-gradient(ellipse 60% 70% at var(--halo-x) var(--halo-y), color-mix(in srgb, var(--braise) 22%, transparent) 0%, color-mix(in srgb, var(--braise) 8%, transparent) 42%, transparent 72%),
    radial-gradient(ellipse 50% 55% at 12% 4%, color-mix(in srgb, var(--eau) 5%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 90% 90% at 50% 45%, transparent 55%, color-mix(in srgb, var(--nuit-bord) 85%, transparent) 100%);
}
.pg-fond--annee2026 { --halo: var(--braise); --halo-x: 92%; --halo-y: 0%; --halo-force: 16%; }
.pg-fond--comparaison { --halo: var(--texte); --halo-force: 3.5%; }
.pg-fond--comparaison .pg-fond__lueur { /* la colonne 2026 rayonne autour de sa carte */
  position: absolute; left: 980px; top: 180px; width: 640px; height: 720px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--braise) 20%, transparent) 0%, color-mix(in srgb, var(--braise) 7%, transparent) 45%, transparent 70%);
}
.pg-fond--video { --halo: var(--braise); --halo-x: 50%; --halo-y: 108%; --halo-force: 17%; }
.pg-fond--methode { --halo: var(--texte); --halo-force: 3%; }

/* Ruban des années, 6 px en haut de page : 68 bandes 1959 → 2026 (fonds/ruban-annees.svg, généré sur les données) */
.pg-ruban { position: absolute; left: 0; top: 0; width: 100%; height: 6px; background: url(fonds/ruban-annees.svg) 0 0 / 100% 100% no-repeat; }
/* Couverture : « la dernière bande », grand ruban 1959 → 2026 où 2026 dépasse et rayonne (fonds/bandes-couverture.svg) */
.pg-bandes { position: absolute; left: 60px; top: 700px; width: 1480px; height: 76px; background: url(fonds/bandes-couverture.svg) 0 0 / 100% 100% no-repeat; }
.pg-bandes__debut, .pg-bandes__fin { position: absolute; top: 784px; font: 600 15px/1 var(--pg-font); font-variant-numeric: tabular-nums; color: var(--texte2); }
.pg-bandes__debut { left: 60px; }
.pg-bandes__fin { right: 60px; color: var(--braise); font-weight: 700; }
/* Filet du pied */
.pg-filet { position: absolute; left: 60px; right: 60px; top: 830px; height: 1px; background: var(--filet); }

/* ------------------------------------------------------------------ conteneurs des visuels (faux hôte Power BI) */
.pbi-container { position: absolute; box-sizing: border-box; }
.pbi-visual { position: absolute; inset: 0; }
/* Les visuels Plume dessinent eux-mêmes leur carte (style.colorBackground = --carte, angle 8 px).
   Deneb et les blocs HTML de la page prennent la même carte : */
.carte { position: absolute; box-sizing: border-box; border-radius: var(--rayon); background: var(--carte); }
/* Vitrine de l'éditeur : fonctions premium montrées sans le filigrane (comme la démo d'accueil) */
.tp-watermark, .tp-badge, .rp-watermark, .rp-badge, .kpi-watermark, .pl-watermark, .pl-foot-link, .pl-foot-note { display: none !important; }
/* Info-bulle du faux hôte */
.pbi-tooltip {
  position: fixed; z-index: 100; display: none; pointer-events: none; max-width: 320px; box-sizing: border-box;
  background: var(--carte2); color: var(--texte); border: 1px solid var(--grille); box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  padding: 8px 12px; font: 13px/1.5 var(--pg-font); border-radius: 6px; font-variant-numeric: tabular-nums;
}
.pbi-tooltip-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pbi-tooltip-row span { color: var(--texte2); }
.pbi-tooltip-row strong { margin-left: auto; padding-left: 12px; font-weight: 600; }
.pbi-tooltip-row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ------------------------------------------------------------------ composants de page (positions : gabarits.json) */
.abs { position: absolute; box-sizing: border-box; }

/* Bandeau de chapitre numéroté : kicker + titre-message + sous-titre */
.bandeau { position: absolute; left: 60px; top: 30px; width: 980px; }
.bandeau__kicker {
  display: flex; align-items: center; gap: 12px; margin: 0; height: 18px;
  font: 700 15px/18px var(--pg-font); letter-spacing: .14em; text-transform: uppercase; color: var(--chap);
}
.bandeau__kicker::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--chap); }
.bandeau__titre {
  margin: 10px 0 0; font-family: var(--pg-title-font); font-weight: 620; font-size: 40px; line-height: 50px;
  font-variation-settings: "opsz" 72; letter-spacing: -.012em; color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bandeau__dek { margin: 6px 0 0; font: 400 20px/26px var(--pg-font); color: var(--texte2); }
.bandeau__dek b { color: var(--texte); font-weight: 600; }
.bandeau__dek em { font-style: normal; color: var(--braise); font-weight: 600; }

/* Couverture */
.couv__kicker { position: absolute; left: 60px; top: 84px; margin: 0; font: 700 16px/20px var(--pg-font); letter-spacing: .16em; text-transform: uppercase; color: var(--braise); }
.couv__titre {
  position: absolute; left: 60px; top: 112px; width: 860px; margin: 0;
  font-family: var(--pg-title-font); font-weight: 640; font-size: 84px; line-height: 88px; font-variation-settings: "opsz" 96;
  letter-spacing: -.02em; color: var(--texte); text-wrap: balance;
}
.couv__promesse { position: absolute; left: 60px; top: 318px; width: 830px; margin: 0; font: 400 23px/32px var(--pg-font); color: var(--texte2); }
.bouton {
  position: absolute; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box;
  height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--braise); background: transparent;
  color: var(--texte); font: 600 18px/1 var(--pg-font); cursor: pointer; text-decoration: none;
  transition: background-color 150ms cubic-bezier(.2, 0, 0, 1), color 150ms cubic-bezier(.2, 0, 0, 1);
}
.bouton:hover { background: var(--braise); color: var(--nuit); }
.bouton:focus-visible { outline: 2px solid var(--texte); outline-offset: 3px; }

/* Chiffre héros (couverture, vidéo) */
.heros { position: absolute; color: var(--texte); text-align: right; }
.heros--centre { text-align: center; }
.heros__surtitre { margin: 0; font: 700 15px/18px var(--pg-font); letter-spacing: .14em; text-transform: uppercase; color: var(--texte2); }
.heros__valeur {
  margin: 8px 0 0; font-family: var(--pg-title-font); font-weight: 720; font-size: 168px; line-height: 150px;
  font-variation-settings: "opsz" 60; /* opsz modéré : déliés assez épais pour la vidéo réduite sur mobile */ letter-spacing: -.035em; color: var(--braise);
  font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 60px color-mix(in srgb, var(--braise) 35%, transparent);
}
.heros__phrase { margin: 14px 0 0; font: 600 26px/32px var(--pg-font); color: var(--texte); }
.heros__preuve { margin: 6px 0 0; font: 400 19px/26px var(--pg-font); color: var(--texte2); }

/* Carte « chiffre clé » en HTML (quand ce n'est pas un Plume KPI) */
.chiffre { position: absolute; box-sizing: border-box; padding: 18px 20px; border-radius: var(--rayon); background: var(--carte); }
.chiffre__libelle { margin: 0; font: 400 16px/20px var(--pg-font); color: var(--texte2); }
.chiffre__valeur { margin: 8px 0 0; font: 600 46px/52px var(--pg-num-font); font-variant-numeric: tabular-nums; color: var(--texte); letter-spacing: -.01em; }
.chiffre__valeur--2026 { color: var(--braise); }
.chiffre__comparaison { margin: 8px 0 0; font: 600 16px/20px var(--pg-font); color: var(--texte2); }
.chiffre__comparaison--record { color: var(--braise); }

/* Pastille « 2026 » */
.pastille {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; box-sizing: border-box; border-radius: 999px;
  border: 1.5px solid var(--braise); color: var(--braise); font: 700 15px/1 var(--pg-font); font-variant-numeric: tabular-nums; vertical-align: middle;
}
.pastille--pleine { border: 0; background: var(--braise); color: var(--nuit); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Annotation : bulle + trait d'ancrage vers le point annoté (--ax, --ay : position du point, relative à la bulle) */
.annotation {
  position: absolute; box-sizing: border-box; max-width: 300px; padding: 10px 14px; border-radius: 6px;
  background: var(--bulle); border-left: 3px solid var(--braise); color: var(--texte); box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
}
.annotation__titre { margin: 0; font: 700 15px/20px var(--pg-font); color: var(--braise); font-variant-numeric: tabular-nums; }
.annotation__texte { margin: 2px 0 0; font: 400 16px/22px var(--pg-font); }
.annotation__trait { position: absolute; height: 1.5px; background: var(--texte2); transform-origin: 0 50%; }
.annotation__point { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--braise); box-shadow: 0 0 0 3px var(--nuit), 0 0 18px var(--braise); }

/* Légendes */
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; font: 400 16px/22px var(--pg-font); color: var(--texte2); }
.legende__item { display: inline-flex; align-items: center; gap: 10px; }
.legende__trait { width: 34px; height: 0; border-top: 2.5px solid var(--passe); }
.legende__trait--normale { border-top: 2px dotted var(--normale); }
.legende__trait--1976 { border-color: var(--a1976); }
.legende__trait--2003 { border-color: var(--a2003); }
.legende__trait--2022 { border-color: var(--a2022); }
.legende__trait--2026 { border-top-width: 4px; border-color: var(--braise); }
.legende__item--2026 { color: var(--texte); font-weight: 700; }
.legende__case { width: 14px; height: 14px; border-radius: 3px; background: var(--passe); }
/* Légende d'échelle (carte des départements, heatmaps) */
.echelle { width: 340px; font: 400 14px/18px var(--pg-font); color: var(--texte2); }
.echelle__titre { margin: 0 0 8px; font-weight: 600; color: var(--texte); }
.echelle__barre { display: flex; height: 14px; border-radius: 3px; overflow: hidden; }
.echelle__barre i { flex: 1; }
.echelle__bornes { display: flex; justify-content: space-between; margin-top: 6px; font-variant-numeric: tabular-nums; }
.echelle__bornes b { color: var(--braise); font-weight: 600; }
.echelle--divergente .echelle__barre { background: linear-gradient(90deg, var(--div-1) 0 11.11%, var(--div-2) 0 22.22%, var(--div-3) 0 33.33%, var(--div-4) 0 44.44%, var(--div-5) 0 55.55%, var(--div-6) 0 66.66%, var(--div-7) 0 77.77%, var(--div-8) 0 88.88%, var(--div-9) 0); }
.echelle--secheresse .echelle__barre { background: linear-gradient(90deg, var(--sec-0) 0 14.28%, var(--sec-1) 0 28.57%, var(--sec-2) 0 42.85%, var(--sec-3) 0 57.14%, var(--sec-4) 0 71.42%, var(--sec-5) 0 85.71%, var(--sec-6) 0); }
.echelle--secheresse .echelle__bornes b { color: var(--sec-5); }

/* Frise des événements (gabarit Frise) */
.frise { position: absolute; box-sizing: border-box; padding: 0 30px; border-radius: var(--rayon); background: var(--carte); display: flex; }
.frise::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 1px; background: var(--axe); }
.frise__jalon { position: relative; flex: 1; padding-top: 22px; }
.frise__jalon::before { content: ""; display: block; width: 10px; height: 10px; margin: 3px 0 0 1px; border-radius: 50%; background: var(--texte3); box-shadow: 0 0 0 3px var(--carte); }
.frise__date { margin: 14px 0 0; font: 700 14px/18px var(--pg-font); letter-spacing: .1em; text-transform: uppercase; color: var(--texte2); }
.frise__evenement { margin: 5px 0 0; font: 400 17px/22px var(--pg-font); color: var(--texte3); white-space: nowrap; }
.frise__jalon--fort::before { width: 16px; height: 16px; margin: 0; background: var(--braise); box-shadow: 0 0 0 3px var(--carte), 0 0 16px var(--braise); }
.frise__jalon--fort .frise__date { color: var(--braise); }
.frise__jalon--fort .frise__evenement { color: var(--texte); font-weight: 600; }

/* Encadré « Un seul réglage » (Méthode, fin de vidéo) */
.geste { position: absolute; box-sizing: border-box; padding: 22px 24px; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--grille); }
.geste__surtitre { margin: 0; font: 700 14px/18px var(--pg-font); letter-spacing: .14em; text-transform: uppercase; color: var(--braise); }
.geste__titre { margin: 8px 0 0; font-family: var(--pg-title-font); font-weight: 620; font-size: 28px; line-height: 34px; color: var(--texte); }
.geste__texte { margin: 10px 0 0; font: 400 17px/25px var(--pg-font); color: var(--texte2); }
.geste__nuancier { display: flex; gap: 8px; margin-top: 14px; }
.geste__nuancier i { width: 26px; height: 26px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--axe); }
.geste__code { margin: 14px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--nuit); font: 500 13px/19px Consolas, "Cascadia Mono", Menlo, monospace; color: var(--texte2); white-space: pre; overflow: hidden; }

/* Pied de page : sources, marque, numéro de page */
.pied { position: absolute; left: 60px; right: 60px; top: 844px; height: 32px; display: flex; align-items: center; gap: 14px; font: 400 14px/18px var(--pg-font); color: var(--texte3); }
.pied__logo { width: 22px; height: 22px; flex: 0 0 auto; background: url(fonds/plume-sombre.svg) center / contain no-repeat; }
.pied__sources { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pied__marque { color: var(--texte2); font-weight: 600; text-decoration: none; }
.pied__page { flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--texte2); letter-spacing: .06em; }
.pied__page b { color: var(--chap); }

/* Page vidéo */
.video__titre {
  position: absolute; left: 350px; top: 52px; width: 900px; margin: 0; text-align: center;
  font-family: var(--pg-title-font); font-weight: 660; font-size: 62px; line-height: 72px; font-variation-settings: "opsz" 72; letter-spacing: -.015em;
}
.video__phrase { position: absolute; left: 350px; top: 776px; width: 900px; margin: 0; text-align: center; font: 600 30px/38px var(--pg-font); color: var(--texte); }
.video__phrase small { display: block; margin-top: 4px; font-size: 20px; font-weight: 400; color: var(--texte2); }
.video__aile { position: absolute; top: 330px; width: 260px; margin: 0; font: 400 18px/24px var(--pg-font); color: var(--texte3); }
.video__aile strong { display: block; font: 600 40px/44px var(--pg-num-font); font-variant-numeric: tabular-nums; color: var(--texte2); }
.video__aile--fin { text-align: right; }
.video__aile--fin strong { color: var(--braise); }
.video__signature { position: absolute; right: 60px; bottom: 26px; display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--pg-font); color: var(--texte2); }
.video__signature i { width: 22px; height: 22px; background: url(fonds/plume-sombre.svg) center / contain no-repeat; }

/* Texte courant (Méthode) */
.texte-page { position: absolute; box-sizing: border-box; padding: 24px 26px; border-radius: var(--rayon); background: var(--carte); font: 400 16px/25px var(--pg-font); color: var(--texte2); }
.texte-page h3 { margin: 0 0 10px; font: 700 14px/18px var(--pg-font); letter-spacing: .14em; text-transform: uppercase; color: var(--texte); }
.texte-page p { margin: 0 0 12px; }
.texte-page b { color: var(--texte); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .rp-onglet, .bouton { transition: none; }
}

/* =====================================================================================================================
 * RAPPORT : compléments propres au rapport web (socle.js). Tout ce qui précède est la copie de
 * annee-exception-2026/charte/charte.css (chemins des polices → fonts/) : en cas de changement de charte, recopier ce bloc.
 * ===================================================================================================================== */
html, body { margin: 0; padding: 0; height: 100%; background: var(--nuit-bord); overflow: hidden; }
body { font-family: var(--pg-font); color: var(--texte); }
html.rp-portrait, html.rp-portrait body { overflow-y: auto; height: auto; min-height: 100%; }
#report { position: relative; width: 100%; height: 100%; }
html.rp-portrait #report { height: auto; }
.rp-coque { height: 100%; }
.pg { --vk: 1; }
.rp-coque[data-mode="video"] .pg { --vk: 1.25; }
/* les filigranes « Aperçu premium » en mosaïque (Waterfall, Sankey, Candle, Text Plume) : absents de la liste de la charte */
.pl-wm-tiles { display: none !important; }

/* Calques de la page : fond (sans texte), visuels et blocs HTML (positions en px logiques), décor au-dessus */
.pg-calque { position: absolute; inset: 0; }
.pg-calque--visuels { transition: opacity .2s ease; }
.pg.rp-change .pg-calque--visuels { opacity: 0; }
.pbi-empty > .pbi-visual { visibility: hidden; }
.pbi-empty-msg { display: none; }
.pbi-empty > .pbi-empty-msg { display: grid; place-items: center; position: absolute; inset: 0; border-radius: var(--rayon); background: var(--carte); font: 400 15px/1.4 var(--pg-font); color: var(--texte3); }

/* Bandeau : titre jusqu'à 2 lignes quand la page le demande (titre long) */
.bandeau__titre--2l { white-space: normal; text-wrap: balance; font-size: 34px; line-height: 40px; }
.bandeau__dek { text-wrap: pretty; }

/* Chiffre héros des pages d'analyse (en haut à droite, colonnes 9-12) */
.heros--page { text-align: right; }
.heros--page .heros__surtitre { font-size: 13px; line-height: 16px; }
.heros--page .heros__valeur { margin-top: 2px; font-size: 76px; line-height: 74px; letter-spacing: -.03em; text-shadow: 0 0 40px color-mix(in srgb, var(--braise) 30%, transparent); }
.heros--page .heros__phrase { margin-top: 4px; font-size: 16px; line-height: 20px; font-weight: 600; }
.heros--page .heros__preuve { margin-top: 2px; font-size: 14px; line-height: 18px; }
.heros__valeur small { font-size: .42em; letter-spacing: 0; margin-left: .08em; }

/* Pied : deux lignes (sources de la page · mention Power BI), navigation, numéro de page */
.pied { top: 838px; height: 46px; gap: 16px; }
/* Sur le site (Netlify), le badge « Powered by Netlify » est fixé en bas à droite du cadre : navigation et numéro décalés vers la gauche (25/10/2026) */
.pied { right: 240px; }
.pied__textes { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pied__sources { font-size: 13px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pied__mention { font-size: 13px; line-height: 17px; color: var(--texte3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pied__mention a { color: var(--texte2); font-weight: 600; text-decoration: none; }
.pied__mention a:hover { color: var(--texte); }
.pied__nav { flex: 0 0 auto; display: flex; gap: 8px; }
.rp-nav {
  height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--axe); background: transparent; color: var(--texte2);
  font: 600 14px/1 var(--pg-font); cursor: pointer; white-space: nowrap; transition: background-color 150ms, color 150ms, border-color 150ms;
}
.rp-nav:hover { color: var(--texte); border-color: var(--texte2); background: var(--carte); }
.rp-nav--suite { border-color: var(--braise); color: var(--texte); }
.rp-nav--suite:hover { background: var(--braise); color: var(--nuit); border-color: var(--braise); }
.rp-nav:focus-visible { outline: 2px solid var(--braise); outline-offset: 2px; }
.rp-nav[hidden] { display: none; }
/* Mode vidéo : la page seule, plein cadre */
.rp-coque[data-mode="video"] .pied, .rp-coque[data-mode="video"] .pg-filet { display: none; }

/* Carte HTML (bloc de page au même rendu qu'un visuel Plume) */
.bloc { position: absolute; box-sizing: border-box; border-radius: var(--rayon); background: var(--carte); color: var(--texte); }
.bloc__titre { margin: 0; font: 600 18px/24px var(--pg-font); color: var(--texte); }
.bloc__texte { margin: 6px 0 0; font: 400 15px/21px var(--pg-font); color: var(--texte2); }
.texte { position: absolute; box-sizing: border-box; margin: 0; color: var(--texte2); font: 400 15px/21px var(--pg-font); }
.texte b { color: var(--texte); font-weight: 600; } .texte em { font-style: normal; color: var(--braise); font-weight: 600; }

/* Annotation : taille agrandie en mode vidéo (--vk) */
.annotation__titre { font-size: calc(15px * var(--vk)); line-height: calc(20px * var(--vk)); }
.annotation__texte { font-size: calc(15px * var(--vk)); line-height: calc(21px * var(--vk)); }
.annotation--sans-bord { border-left: 0; }
/* Accolade SVG (ex. « 1,44 °C entre le n° 2 et le n° 15 ») */
.accolade { position: absolute; overflow: visible; pointer-events: none; }
.accolade path { fill: none; stroke: var(--texte2); stroke-width: 1.5; }
.accolade__texte { position: absolute; transform: translateX(-50%); white-space: nowrap; font: 600 calc(15px * var(--vk))/1.3 var(--pg-font); color: var(--texte); text-align: center; pointer-events: none; }
.accolade__texte span { display: block; font-weight: 400; font-size: calc(13px * var(--vk)); color: var(--texte2); }
.etiquette { position: absolute; white-space: nowrap; pointer-events: none; font: 700 calc(16px * var(--vk))/1.2 var(--pg-font); color: var(--braise); font-variant-numeric: tabular-nums; }

/* Sommaire (couverture) : chaque ligne est un lien vers sa page */
.sommaire { position: absolute; box-sizing: border-box; padding: 18px 20px 16px; border-radius: var(--rayon); background: var(--carte); display: flex; flex-direction: column; }
.sommaire__titre { margin: 0 0 6px; font: 700 13px/16px var(--pg-font); letter-spacing: .14em; text-transform: uppercase; color: var(--texte2); }
.sommaire__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1 1 auto; justify-content: space-between; }
.sommaire__lien {
  display: grid; grid-template-columns: 30px 1fr; gap: 0 6px; padding: 7px 8px 7px 6px; margin: 0 -8px 0 -6px; border-radius: 6px;
  color: var(--texte); text-decoration: none; font: 400 14px/19px var(--pg-font); cursor: pointer; transition: background-color 150ms;
}
.sommaire__lien b { font-weight: 700; color: var(--braise); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.sommaire__lien:hover, .sommaire__lien:focus-visible { background: var(--carte2); outline: none; }
.sommaire__lien span { text-wrap: pretty; }
.sommaire__lien:hover span { color: var(--texte); text-decoration: underline; text-decoration-color: var(--braise); text-underline-offset: 3px; }

/* Infobulles enrichies (équivalent des pages d'infobulle Power BI) : en px d'écran, comme dans Power BI */
.rp-tip {
  position: fixed; z-index: 120; display: none; pointer-events: none; box-sizing: border-box; width: 300px;
  padding: 12px 14px 12px; border-radius: 8px; background: var(--carte2); border: 1px solid var(--grille); border-top: 3px solid var(--braise);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .5); color: var(--texte); font: 400 13px/1.45 var(--pg-font); font-variant-numeric: tabular-nums;
}
.rp-tip__titre { margin: 0; display: flex; align-items: baseline; gap: 8px; font: 700 20px/1.1 var(--pg-title-font); font-variation-settings: "opsz" 48; }
.rp-tip__titre small { font: 600 12px/1.2 var(--pg-font); color: var(--texte2); letter-spacing: .02em; }
.rp-tip__sous { margin: 3px 0 8px; color: var(--texte2); font-size: 12px; line-height: 1.35; }
.rp-tip__ligne { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; border-top: 1px solid var(--filet); }
.rp-tip__ligne span { color: var(--texte2); flex: 1 1 auto; }
.rp-tip__ligne strong { font-weight: 600; white-space: nowrap; }
.rp-tip__ligne strong.chaud { color: var(--braise); }
.rp-tip__ligne strong.froid { color: var(--eau); }
.rp-tip__rang { margin-top: 8px; }
.rp-tip__rang-barre { position: relative; display: flex; gap: 1px; height: 10px; }
.rp-tip__rang-barre i { flex: 1; background: var(--grille); border-radius: 1px; }
.rp-tip__rang-barre i.on { background: var(--texte2); }
.rp-tip__rang-barre i.moi { background: var(--braise); box-shadow: 0 0 6px var(--braise); }
.rp-tip__rang-bornes { display: flex; justify-content: space-between; margin-top: 3px; font-size: 11px; color: var(--texte3); }
.rp-tip__pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rp-tip__pastilles .pastille { height: 22px; font-size: 12px; padding: 0 9px; }

/* Curseur de démonstration (?cursor=1) : rond + halo au clic, visible dans les captures */
.rp-curseur {
  position: fixed; z-index: 200; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; pointer-events: none;
  background: color-mix(in srgb, var(--texte) 30%, transparent); border: 2px solid var(--texte); box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  transition: transform 120ms ease;
}
.rp-curseur::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--braise); opacity: 0; transform: scale(1); }
.rp-curseur.clic { transform: scale(.82); }
.rp-curseur.clic::after { animation: rp-halo 520ms ease-out; }
@keyframes rp-halo { from { opacity: .95; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
html.rp-curseur-actif, html.rp-curseur-actif * { cursor: none !important; }

/* Page en préparation (gabarit d'une page pas encore développée) */
.chantier { position: absolute; box-sizing: border-box; display: grid; place-items: center; border-radius: var(--rayon); border: 1px dashed var(--axe); color: var(--texte3); font: 400 16px/1.5 var(--pg-font); text-align: center; padding: 40px; }

@media (prefers-reduced-motion: reduce) {
  .pg-calque--visuels, .rp-nav, .sommaire__lien { transition: none; }
  .rp-curseur.clic::after { animation: none; }
}
.accolade__texte--droite { transform: none; text-align: left; }
.accolade__texte--droite span { display: inline; margin-left: 4px; }
.p02-lecture { padding: 12px 16px; }
.p02-lecture .bloc__texte { margin: 0; font-size: 14px; line-height: 19px; }
.p02-lecture b { color: var(--texte); font-weight: 600; }

/* Carte des départements (ctx.carte) */
.carte-dep path { stroke: var(--nuit); stroke-width: .6; stroke-linejoin: round; cursor: pointer; transition: fill 300ms ease, opacity 200ms ease; }
.carte-dep path:hover { stroke: var(--texte); stroke-width: 1.5; }
.carte-dep--choix path:not(.on) { opacity: .28; }
.carte-dep path.on { stroke: var(--texte); stroke-width: 1.2; }
/* Pied d'une page qui ajoute ses sources (ex. p04) : sources sur deux lignes, texte un peu plus petit */
.pied--long .pied__textes { gap: 1px; }
.pied--long .pied__sources { font-size: 12px; line-height: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pied--long .pied__mention { font-size: 12px; line-height: 15px; }

/* Cadre « overlay » (ctx.visual({ overlay: { h } })) : segment à liste déroulante dans un cadre haut et transparent ; seule la barre
   visible (carte .pbi-overlay-fond dessous) et les menus captent la souris */
.pbi-container.pbi-overlay, .pbi-overlay .pbi-visual, .pbi-overlay .pl-root, .pbi-overlay .pl-body { pointer-events: none; }
.pbi-overlay .pl-root { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
.pbi-overlay .pl-root::before { bottom: auto !important; height: var(--overlay-h, 56px) !important; }
.pbi-overlay .pl-header, .pbi-overlay .fb-bar, .pbi-overlay .pl-popover, .pbi-overlay .tp-wrap > *, .pbi-overlay .bsl-card, .pbi-overlay button, .pbi-overlay input { pointer-events: auto; }
.pbi-overlay-fond { border: 1px solid var(--grille); pointer-events: none; }
/* Bandeau d'une page sans chiffre héros (ex. p08) : chapeau sur toute la largeur utile */
.bandeau--large { width: 1480px; }
.bandeau--large .bandeau__dek { max-width: 1300px; }

/* Portrait : chiffre héros repris sous le chapeau (vérification 22/10, M19) ; onglets plus serrés pour tenir sur 390 px */
.rp-resume .heros--resume { position: static; text-align: left; margin: 16px 0 6px; padding: 12px 14px; background: var(--carte); border-left: 3px solid var(--braise); border-radius: 8px; }
.rp-resume .heros--resume .heros__surtitre { font-size: 11px; line-height: 14px; }
.rp-resume .heros--resume .heros__valeur { margin-top: 2px; font-size: 44px; line-height: 46px; }
.rp-resume .heros--resume .heros__phrase { margin-top: 2px; font-size: 15px; line-height: 20px; }
.rp-resume .heros--resume .heros__preuve { margin-top: 2px; font-size: 13px; line-height: 18px; }
@media (max-width: 720px) {
  .rp-onglets { padding: 0 6px; gap: 0; }
  .rp-onglet { padding: 0 9px; }
}

/* Variantes focus vidéo (?focus=…&video=1, ?cadre=4x5) : habillage commun (ctx.focusHabillage). 4:5 = page logique 720 × 900. */
.vf { position: absolute; inset: 0; pointer-events: none; font-family: var(--pg-font); color: var(--texte); }
.vf-tete { position: absolute; }
.vf-kicker { margin: 0; font: 700 16px/20px var(--pg-font); letter-spacing: .14em; text-transform: uppercase; color: var(--ocre, #E0A23C); }
.vf-titre { margin: 8px 0 0; font-family: var(--pg-title-font); font-weight: 640; color: var(--texte); text-wrap: balance; font-variation-settings: "opsz" 72; }
.vf-titre em { font-style: normal; color: var(--braise); }
.vf-compteur { position: absolute; }
.vf-compteur__lib { display: block; font: 500 22px/26px var(--pg-font); color: var(--texte2); font-variant-numeric: tabular-nums; }
.vf-compteur__ligne { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.vf-compteur__val { font: 700 78px/1 var(--pg-num-font, var(--pg-font)); color: var(--braise); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.vf-compteur__col { display: flex; flex-direction: column; gap: 2px; }
.vf-compteur__txt { font: 600 24px/28px var(--pg-font); color: var(--texte); }
.vf-compteur__note { display: block; min-height: 26px; margin-top: 2px; font: 500 22px/26px var(--pg-font); color: var(--ocre, #E0A23C); visibility: hidden; }
.vf-compteur__note.on { visibility: visible; }
.vf-leg { position: absolute; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font: 500 18px/22px var(--pg-font); color: var(--texte2); }
.vf-leg__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.vf-leg__mq { display: inline-block; width: 22px; height: 12px; border-radius: 3px; }
.vf-leg__mq--trait { height: 4px; border-radius: 2px; }
.vf-signature { position: absolute; margin: 0; font: 500 15px/19px var(--pg-font); color: var(--texte3); }
.vf--45 .vf-tete { left: 36px; top: 28px; width: 648px; }
.vf--45 .vf-titre { font-size: 58px; line-height: 62px; }
.vf--45 .vf-compteur { left: 36px; top: 262px; width: 648px; }
.vf--45 .vf-leg { left: 24px; top: 804px; width: 672px; }
.vf--45 .vf-signature { left: 36px; top: 862px; width: 648px; }
.vf--169 .vf-tete { left: 80px; top: 36px; width: 880px; }
.vf--169 .vf-titre { font-size: 50px; line-height: 56px; }
.vf--169 .vf-compteur { right: 60px; top: 40px; width: 560px; text-align: right; }
.vf--169 .vf-compteur__ligne { justify-content: flex-end; }
.vf--169 .vf-leg { left: 60px; top: 806px; width: 1480px; }
.vf--169 .vf-signature { left: 80px; top: 852px; width: 1440px; }
