/* Mise en page : bandeau d'agence vert forêt (marque + menu à icônes), bandeau défilant de chiffres,
   contenu en colonnes de presse sur fond clair teinté de vert ; couleurs du drapeau en touches, jamais en aplat. */
:root {
  color-scheme: light;
  --encre: #0b3b2c;          /* vert forêt de la marque : bandeaux, bloc à la une */
  --encre-2: #0f4a37;
  --sur-encre: #f2f6f1;      /* texte sur le vert forêt */
  --sur-encre-2: #b9d3c4;
  --vert: #0f7a43; --rouge: #d0312d; --jaune: #f2c230;
  --surface-0: #f2f5f0;
  --surface-1: #ffffff;
  --surface-2: #e8eee7;
  --bordure: #d6dfd5;
  --texte: #0f1c15;
  --texte-2: #48594f;
  --texte-3: #6b7b71;
  --accent: #0f7a43;
  --accent-texte: #ffffff;
  --accent-doux: #dcefe2;
  --grille: #e3e9e2;
  --vide-carte: #e3e9e2;
  --serie-1: #1f6fd1; --serie-2: #e5652f; --serie-3: #13a072; --serie-4: #d99a00; --serie-5: #d9578a; --serie-6: #2f8f3a; --serie-7: #6a55d6;
  --seq-1: #d4ecdc; --seq-2: #9fd3b1; --seq-3: #55ad7c; --seq-4: #1f8350; --seq-5: #0b5131;
  --hausse: #0d7a3a; --baisse: #c0302b;
  --ombre: 0 1px 2px rgba(11,59,44,.06), 0 8px 24px rgba(11,59,44,.07);
  --police-titre: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --police-texte: "Source Serif 4", Georgia, "Times New Roman", serif;
  --police-ui: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rayon: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --encre: #0a2c21; --encre-2: #0e3a2c; --sur-encre: #eef5ef; --sur-encre-2: #a9c6b6;
    --surface-0: #0b120e; --surface-1: #131d18; --surface-2: #1b2821; --bordure: #28362e;
    --texte: #e8f0ea; --texte-2: #b1c0b6; --texte-3: #8a9a90;
    --accent: #3fbf7a; --accent-texte: #06140d; --accent-doux: #173826;
    --grille: #24312a; --vide-carte: #24312a;
    --serie-1: #4b93ea; --serie-2: #ee7a45; --serie-3: #2fc08d; --serie-4: #e3ad1d; --serie-5: #e07aa3; --serie-6: #4fb35a; --serie-7: #9184ee;
    --seq-1: #12382a; --seq-2: #175a3c; --seq-3: #23855a; --seq-4: #48b07d; --seq-5: #96dcb4;
    --hausse: #4cc77a; --baisse: #f07a75;
    --ombre: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --encre: #0a2c21; --encre-2: #0e3a2c; --sur-encre: #eef5ef; --sur-encre-2: #a9c6b6;
  --surface-0: #0b120e; --surface-1: #131d18; --surface-2: #1b2821; --bordure: #28362e;
  --texte: #e8f0ea; --texte-2: #b1c0b6; --texte-3: #8a9a90;
  --accent: #3fbf7a; --accent-texte: #06140d; --accent-doux: #173826;
  --grille: #24312a; --vide-carte: #24312a;
  --serie-1: #4b93ea; --serie-2: #ee7a45; --serie-3: #2fc08d; --serie-4: #e3ad1d; --serie-5: #e07aa3; --serie-6: #4fb35a; --serie-7: #9184ee;
  --seq-1: #12382a; --seq-2: #175a3c; --seq-3: #23855a; --seq-4: #48b07d; --seq-5: #96dcb4;
  --hausse: #4cc77a; --baisse: #f07a75; --ombre: none;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--surface-0); color: var(--texte);
  font: 15px/1.55 var(--police-ui);
}
a { color: var(--accent); }
.muted { color: var(--texte-2); }
.drapeau { display: flex; height: 5px; }
.drapeau span { flex: 1; }
.drapeau span:nth-child(1) { background: #007a3d; }
.drapeau span:nth-child(2) { background: #ce1126; }
.drapeau span:nth-child(3) { background: #fcd116; }

.entete, .chiffres, .onglets, main, .pied {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.entete { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; padding-top: 28px; padding-bottom: 20px; }
.entete h1 { margin: 0; font-size: 28px; letter-spacing: -.01em; }
.entete p { margin: 4px 0 0; color: var(--texte-2); }
.entete-etat { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }

.btn {
  border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-texte);
}
.btn:disabled { opacity: .55; cursor: progress; }
.btn-secondaire { background: var(--surface-2); color: var(--texte); }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.chiffre { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 16px; }
.chiffre b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.chiffre span { color: var(--texte-2); font-size: 13px; }

.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--bordure); overflow-x: auto; }
.onglet {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer;
  font: inherit; color: var(--texte-2); white-space: nowrap;
}
.onglet.actif { color: var(--texte); border-bottom-color: var(--accent); font-weight: 600; }
.badge { background: var(--accent); color: var(--accent-texte); border-radius: 10px; padding: 0 7px; font-size: 12px; margin-left: 4px; }

main { padding-top: 20px; padding-bottom: 40px; }
.filtres { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
input[type=search] {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--bordure);
  background: var(--surface-1); color: var(--texte); font: inherit;
}
.puces { display: flex; gap: 8px; flex-wrap: wrap; }
.puce {
  border: 1px solid var(--bordure); background: var(--surface-1); color: var(--texte-2);
  border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 13px;
}
.puce.active { background: var(--texte); color: var(--surface-1); border-color: var(--texte); }

.categorie h2 { font-size: 17px; margin: 28px 0 12px; }
.categorie:first-child h2 { margin-top: 0; }
.categorie h2 .compte { font-size: 13px; font-weight: 400; color: var(--texte-3); margin-left: 6px; }
.groupe { border: 1px solid var(--bordure); border-radius: 10px; margin-bottom: 8px; }
.groupe > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 16px; font-weight: 600; font-size: 15px; }
.groupe > summary::-webkit-details-marker { display: none; }
.groupe > summary::before { content: "▸"; color: var(--texte-2); margin-right: 8px; transition: transform .15s; }
.groupe[open] > summary::before { transform: rotate(90deg); }
.groupe > summary span:first-child { flex: 1; }
.groupe > summary .compte { font-weight: 400; font-size: 13px; color: var(--texte-2); background: var(--surface-2);
  border-radius: 999px; padding: 2px 10px; }
.groupe > .grille { padding: 4px 12px 14px; }
.carte-famille { grid-column: 1 / -1; background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px;
  padding: 14px 16px 10px; box-shadow: var(--ombre); }
.fam-entete { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.fam-entete .carte-nom { min-height: 0; font-weight: 600; color: var(--texte); font-size: 15px; }
.fam-ligne { display: grid; grid-template-columns: minmax(150px, 1.3fr) 2fr 190px minmax(160px, 1.4fr);
  align-items: center; gap: 12px; width: 100%; padding: 7px 4px; border: 0; border-top: 1px solid var(--grille);
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 4px; }
.fam-ligne:hover, .fam-ligne:focus-visible { background: var(--surface-2); }
.fam-total .fam-variante { font-weight: 600; }
.fam-variante { font-size: 14px; }
.fam-barre { height: 10px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.fam-sous .fam-variante { padding-left: 18px; color: var(--texte-2); font-size: 13px; }
.fam-sous .fam-barre > span { opacity: .55; }
.fam-barre > span { display: block; height: 100%; background: var(--serie-1); border-radius: 0 4px 4px 0; }
.fam-valeur { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.fam-valeur small { font-weight: 400; color: var(--texte-2); }
.fam-meta { font-size: 12px; color: var(--texte-3); }
.fam-autres { display: block; }
.fam-autres > span { display: block; color: var(--texte-2); }
.fam-autres > span::before { content: "aussi : "; color: var(--texte-3); }
.carte-autres { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--texte-2);
  border-top: 1px dashed var(--bordure); padding-top: 6px; margin-top: 2px; }
.carte-autres b, .fam-autres b { color: var(--texte); font-variant-numeric: tabular-nums; }
.meme-annee { font-weight: 600; }
@media (max-width: 640px) {
  .fam-ligne { grid-template-columns: 1fr auto; row-gap: 4px; }
  .fam-barre { grid-column: 1 / -1; grid-row: 3; }
  .fam-meta { grid-column: 1 / -1; }
}
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.carte {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 6px; transition: border-color .15s;
}
.carte:hover, .carte:focus-visible { border-color: var(--accent); outline: none; }
.carte-nom { font-size: 14px; color: var(--texte-2); min-height: 2.6em; }
.carte-valeur { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.15; }
.carte-unite { font-size: 13px; color: var(--texte-2); font-weight: 400; }
.carte-pied { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--texte-3); }
.variation { font-size: 12px; font-variant-numeric: tabular-nums; }
.variation.hausse { color: var(--hausse); } .variation.baisse { color: var(--baisse); }
.sparkline { width: 100%; height: 34px; display: block; }
.sparkline path { fill: none; stroke: var(--serie-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.etiquettes-sources { display: flex; gap: 4px; }
.etiquette { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--texte-2); }
.vide { padding: 40px; text-align: center; color: var(--texte-2); }

/* Détail */
.voile { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; z-index: 10;
  padding: calc(40px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
.voile[hidden] { display: none; }
.panneau { background: var(--surface-1); border-radius: 14px; width: 100%; max-width: 900px; padding: 24px; position: relative; }
.fermer { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 28px; color: var(--texte-2); cursor: pointer; line-height: 1; }
.panneau h2 { margin: 0 32px 4px 0; font-size: 22px; }
.panneau .sous-titre { color: var(--texte-2); margin: 0 0 16px; }
.legende { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--texte-2); margin-bottom: 8px; }
.legende i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legende .tirets { background: repeating-linear-gradient(90deg, var(--texte-3) 0 4px, transparent 4px 7px); }
.graphique { position: relative; }
.graphique svg { width: 100%; height: auto; display: block; overflow: visible; }
.graphique .axe text { fill: var(--texte-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.graphique .grille-ligne { stroke: var(--grille); stroke-width: 1; }
.graphique .zone-proj { fill: var(--surface-2); }
.graphique .lib-proj { fill: var(--texte-3); font-size: 11px; }
.graphique .serie { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.graphique .lib-direct { font-size: 12px; fill: var(--texte-2); }
.graphique .curseur { stroke: var(--texte-3); stroke-width: 1; }
.graphique .point { stroke: var(--surface-1); stroke-width: 2; }
.infobulle {
  position: absolute; pointer-events: none; background: var(--surface-1); border: 1px solid var(--bordure);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 160px;
  font-variant-numeric: tabular-nums; z-index: 2;
}
.infobulle b { display: block; margin-bottom: 4px; }
.infobulle div { display: flex; justify-content: space-between; gap: 12px; color: var(--texte-2); }
.infobulle div span:last-child { color: var(--texte); font-weight: 600; }
.infobulle i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.actions a.btn { text-decoration: none; display: inline-block; }

table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--bordure); }
th { color: var(--texte-2); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
td.num, th.num { text-align: right; }
.tableau-defile { max-height: 360px; overflow: auto; border: 1px solid var(--bordure); border-radius: 8px; }
.sources-liste { margin-top: 16px; font-size: 13px; color: var(--texte-2); }
.sources-liste li { margin-bottom: 4px; }
.erreur { color: var(--baisse); }

/* Découvertes */
.intro p { margin-top: 0; color: var(--texte-2); }
.intro { margin-bottom: 16px; }
.decouverte { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.decouverte h3 { margin: 0 0 4px; font-size: 15px; }
.decouverte h3 a { color: var(--texte); text-decoration: none; }
.decouverte h3 a:hover { text-decoration: underline; }
.decouverte .meta { font-size: 12px; color: var(--texte-3); margin-bottom: 6px; }
.decouverte p { margin: 0 0 10px; font-size: 13px; color: var(--texte-2); }
.decouverte .btn { padding: 6px 12px; font-size: 13px; }
.nouveau { background: var(--accent); color: var(--accent-texte); font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }

.statut-ok { color: var(--hausse); } .statut-partiel { color: #b07400; } .statut-echec { color: var(--baisse); }


@media (max-width: 600px) {
  .entete h1 { font-size: 23px; }
  .panneau { padding: 18px 16px; }
  .voile { padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
}

/* --- Ajouts : sources, thématiques, administration --- */
.marque { display: flex; gap: 14px; align-items: center; }
.marque img { flex: none; border-radius: 12px; }
.mot-marque { font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.entete h1.mot-marque { font-size: 34px; }
.mot-marque span { color: var(--accent); }
.entete p.slogan { margin-top: 6px; color: var(--texte); font-weight: 600; }
.deconnexion { font-size: 13px; color: var(--texte-2); }
@media (max-width: 560px) { .marque img { width: 40px; height: 40px; } .entete h1, .entete h1.mot-marque { font-size: 26px; } }
.sous-marque { font-size: 14px; vertical-align: middle; background: var(--accent); color: var(--accent-texte); border-radius: 6px; padding: 2px 8px; margin-left: 6px; }
.carte-source { font-size: 12px; color: var(--texte-2); }
.carte-source b { font-weight: 600; color: var(--texte); }
.type-calc { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--surface-2); color: var(--texte-2); margin-left: 4px; }
.bloc-source { border: 1px solid var(--bordure); border-radius: 10px; padding: 12px 14px; margin-top: 12px; font-size: 13px; }
.bloc-source h4 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.bloc-source h4 i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.bloc-source .methode { color: var(--texte-2); margin: 4px 0; }
.bloc-source .liens { margin-top: 6px; word-break: break-all; }
.bloc-source .liens a { display: block; }
.admin-tag { font-size: 11px; background: var(--texte); color: var(--surface-1); padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
td .periode { display: block; font-size: 11px; color: var(--texte-3); }
.infobulle .periode { display: block; font-size: 11px; color: var(--texte-3); font-weight: 400; text-align: right; }
.grille-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.carte-theme { text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 16px; box-shadow: var(--ombre); }
.carte-theme:hover, .carte-theme:focus-visible { border-color: var(--accent); outline: none; }
.carte-theme .icone { font-size: 26px; }
.carte-theme h3 { margin: 6px 0 4px; font-size: 16px; }
.carte-theme p { margin: 0 0 8px; font-size: 13px; color: var(--texte-2); }
.carte-theme small { color: var(--texte-3); }
.retour { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; margin-bottom: 12px; }
.entete-theme h2 { margin: 0 0 4px; font-size: 22px; }
.entete-theme p { margin: 0 0 20px; color: var(--texte-2); }
.acces { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.acces-gratuit { background: #dff3e4; color: #0b5d1e; }
.acces-cle { background: #e1ecfb; color: #184f95; }
.acces-payant { background: #fde4d8; color: #8a2f0b; }
.acces-demande { background: var(--surface-2); color: var(--texte-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .acces-gratuit { background: #12361d; color: #8fdca5; }
  :root:not([data-theme="light"]) .acces-cle { background: #142a4a; color: #9ec5f4; }
  :root:not([data-theme="light"]) .acces-payant { background: #47200f; color: #f5b392; }
}
:root[data-theme="dark"] .acces-gratuit { background: #12361d; color: #8fdca5; }
:root[data-theme="dark"] .acces-cle { background: #142a4a; color: #9ec5f4; }
:root[data-theme="dark"] .acces-payant { background: #47200f; color: #f5b392; }
.panneau-etroit { max-width: 420px; margin-top: 60px; }
.panneau-etroit input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--bordure); background: var(--surface-0); color: var(--texte); font: inherit; }
h3.section { font-size: 16px; margin: 28px 0 10px; }
.registre-source { margin-bottom: 24px; }
.registre-source td { vertical-align: top; }
.registre-source td a { word-break: break-all; }

/* --- Régions --- */
.choix-periode { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texte-2); }
select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--bordure); background: var(--surface-1); color: var(--texte); font: inherit; }
.regions-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .regions-grille { grid-template-columns: minmax(0, 1fr); } }
.carte-geo { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 12px; position: relative; }
.carte-geo svg { width: 100%; height: auto; display: block; }
.carte-geo path.region { stroke: var(--surface-1); stroke-width: 1.2; cursor: pointer; transition: opacity .15s; }
.carte-geo path.region:hover, .carte-geo path.region:focus-visible { opacity: .82; outline: none; }
.carte-geo path.region.choisie { stroke: var(--texte); stroke-width: 2.4; }
.carte-geo text.nom-region { font-size: 11px; fill: var(--texte); paint-order: stroke; stroke: var(--surface-1); stroke-width: 3px; pointer-events: none; }
.legende-carte { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--texte-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.legende-carte i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
tr.ligne-region { cursor: pointer; }
tr.ligne-region:hover td, tr.ligne-region.choisie td { background: var(--surface-2); }
tr.ligne-pays td { font-weight: 600; }
.barre { height: 8px; border-radius: 4px; background: var(--seq-3); min-width: 2px; }
.bloc-evolution { margin-top: 20px; background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 16px; }
.bloc-evolution h3 { margin: 0 0 8px; font-size: 16px; }

/* --- Intelligence artificielle --- */
.ia-section { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.ia-section h3 { margin: 0 0 6px; font-size: 16px; }
.ia-section > p { margin: 0 0 12px; color: var(--texte-2); font-size: 13px; }
.ia-section textarea { width: 100%; min-height: 80px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--bordure); background: var(--surface-0); color: var(--texte); font: inherit; resize: vertical; }
.ia-section input[type=url], .ia-section input[type=text] { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--bordure); background: var(--surface-0); color: var(--texte); font: inherit; }
.ligne-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.reponse-ia { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.reponse-ia p { margin: 0 0 8px; } .reponse-ia ul { margin: 0 0 8px; padding-left: 20px; }
.attente { color: var(--texte-2); font-size: 13px; }
.attente::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: tourne 1s linear infinite; vertical-align: -1px; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .attente::before { animation: none; } }
.etat-ia { font-size: 13px; margin-bottom: 12px; }
.extraction td { vertical-align: top; }
.extraction .citation { overflow-wrap: anywhere; }
.extraction .citation { font-size: 12px; color: var(--texte-2); font-style: italic; max-width: 340px; }
.extraction select { max-width: 220px; font-size: 12px; }
.extraction .btn { padding: 5px 10px; font-size: 12px; }
.puce-statut { font-size: 11px; padding: 1px 7px; border-radius: 4px; background: var(--surface-2); color: var(--texte-2); white-space: nowrap; }
.puce-statut.ok { color: var(--hausse); } .puce-statut.erreur { color: var(--baisse); }

/* --- Tableau de bord simplifié --- */
.grille-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .grille-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grille-kpi .carte { gap: 4px; padding: 12px 14px; }
.grille-kpi .carte-nom { min-height: 0; }
.grille-kpi .carte-valeur { font-size: 26px; }
.grille-kpi .sparkline { height: 26px; }
.accueil-grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tableau-complet { max-height: none; }
@media (max-width: 900px) { .accueil-grille { grid-template-columns: minmax(0, 1fr); } }
.panneau-accueil { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.entete-panneau { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.entete-panneau h2 { margin: 0; font-size: 16px; }
.segments { display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface-2); border-radius: 9px; padding: 3px; }
.segments button { border: 0; background: none; color: var(--texte-2); font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.segments button.actif { background: var(--surface-1); color: var(--texte); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.segments button:focus-visible { outline: 2px solid var(--accent); }
.note-source { margin: 0; font-size: 12px; color: var(--texte-2); }
#mini-carte svg { width: 100%; height: auto; display: block; }
#mini-carte path.region { stroke: var(--surface-1); stroke-width: 1; cursor: pointer; }
#mini-carte path.region:hover { opacity: .8; }
#mini-carte { position: relative; }
.lien-page { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; margin-top: auto; }
.raccourcis { margin-top: 24px; }
.raccourcis h2 { font-size: 16px; margin: 0 0 10px; }
.raccourcis .puce { font-size: 14px; padding: 7px 14px; }
@media (max-width: 600px) {
  .grille-kpi { gap: 8px; }
  .grille-kpi .carte { padding: 10px 12px; }
  .grille-kpi .carte-nom { font-size: 13px; }
  .grille-kpi .carte-valeur { font-size: 21px; }
  .grille-kpi .carte-unite { display: block; font-size: 12px; }
  .grille-kpi .carte-source { font-size: 11px; }
  .grille-kpi .type-calc, .grille-kpi .sparkline { display: none; }
}
.reponse-ia h4 { margin: 14px 0 6px; font-size: 15px; }
.reponse-ia h4:first-child { margin-top: 0; }
.reponse-ia .tableau-defile { margin: 8px 0 12px; background: var(--surface-1); }

/* --- Genre et âge --- */
.panneau-genre { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.panneau-genre h3 { margin: 0 0 8px; font-size: 16px; }
.barres { display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; font-size: 13px; }
.barres .mod { color: var(--texte); }
.barres .paire { display: flex; flex-direction: column; gap: 3px; }
.barres .ligne-barre { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.barres .barre-h { height: 10px; border-radius: 0 4px 4px 0; min-width: 2px; }
.barres .ecart { font-size: 12px; color: var(--texte-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barres .entete-col { font-size: 12px; color: var(--texte-3); }
@media (max-width: 600px) { .barres { grid-template-columns: minmax(80px, 110px) minmax(0, 1fr); } .barres .ecart, .barres .entete-ecart { display: none; } }
.avertissement { border: 1px solid var(--serie-4); background: color-mix(in srgb, var(--serie-4) 12%, transparent); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.etiquette-estimation { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--serie-4); color: #1a1a19; margin-left: 4px; vertical-align: middle; }

/* ---------- Tableau de bord d'une thématique ---------- */
.nav-themes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: thin; align-items: center; }
.nav-themes .puce { white-space: nowrap; flex: none; }
.nav-themes .retour { margin: 0 6px 0 0; white-space: nowrap; }
.panneau-theme { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 16px; margin: 16px 0;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panneau-theme h3 { margin: 0; font-size: 16px; }
.choix-mesure { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--texte-2); flex-wrap: wrap; }
.choix-mesure select, .filtres-theme select { font: inherit; font-size: 14px; color: var(--texte); background: var(--surface-0);
  border: 1px solid var(--bordure); border-radius: 8px; padding: 6px 8px; max-width: 100%; }
.choix-mesure select { min-width: min(420px, 100%); }
.filtres-theme { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 13px; color: var(--texte-2); }
.filtres-theme label { display: flex; gap: 6px; align-items: center; }
.groupe-filtre { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.groupe-filtre > span { margin-right: 2px; }
.puce-filtre { font-size: 13px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; }
.puce-filtre i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.puce-filtre:not(.active) { opacity: .55; text-decoration: line-through; }
.barres-theme { display: flex; flex-direction: column; }
.bt-ligne { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr 190px minmax(140px, 1.2fr); gap: 12px;
  align-items: center; padding: 7px 4px; border: 0; border-top: 1px solid var(--grille); background: none; font: inherit;
  color: inherit; text-align: left; cursor: pointer; border-radius: 4px; }
.bt-ligne:first-child { border-top: 0; }
.bt-ligne:hover, .bt-ligne:focus-visible { background: var(--surface-2); }
.bt-lib { font-size: 14px; }
.bt-piste { height: 12px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bt-piste > span { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.bt-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-val small { font-weight: 400; color: var(--texte-2); }
.bt-meta { font-size: 12px; color: var(--texte-3); }
.tableau-donnees summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.tableau-donnees .tableau-defile { max-height: 360px; overflow: auto; margin-top: 8px; }
@media (max-width: 640px) {
  .bt-ligne { grid-template-columns: 1fr auto; row-gap: 4px; }
  .bt-piste { grid-column: 1 / -1; grid-row: 2; }
  .bt-meta { grid-column: 1 / -1; }
}
.puce-choix { font-size: 13px; padding: 4px 10px; }
.legende i.tirets-serie { background: repeating-linear-gradient(90deg, var(--c) 0 3px, transparent 3px 6px) !important; }
#recherche-sites { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 8px;
  background: var(--surface-0); color: var(--texte); min-width: min(260px, 100%); }
.tableau-sites { max-height: 460px; overflow: auto; }
.tableau-sites td:nth-child(3) { white-space: nowrap; }
.groupe-regional { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.titre-groupe-regional { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--texte-3);
  flex-basis: 100%; }
.etiquette-mesure { font-size: 10px; margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--surface-2); color: var(--hausse); }
#choix-regional { display: block; }

/* ---------- KmerStats : partie média ---------- */
.nav-principale .onglet { font-size: 15px; }
.sous-nav { border-bottom: 0; padding-top: 4px; }
.sous-nav .onglet { font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
.entete-section { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 28px 0 12px; }
.entete-section h2 { margin: 0; font-size: 20px; }
.entete-section .lien-page { margin: 0; }
.rubrique { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

.grille-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.carte-article { display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.carte-article:hover, .carte-article:focus-visible { border-color: var(--accent); box-shadow: var(--ombre); outline: none; }
.ca-graphique { padding: 12px 12px 0; max-height: 210px; overflow: hidden; pointer-events: none; }
.ca-graphique .bt-meta { display: none; }
.ca-texte { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.ca-texte h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.carte-article.grande { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.carte-article.grande .ca-graphique { order: 2; max-height: 340px; padding: 20px; }
.carte-article.grande .ca-texte { padding: 24px; justify-content: center; }
.carte-article.grande h3 { font-size: 28px; letter-spacing: -.01em; }
.carte-article .chapo { margin: 0; color: var(--texte-2); }
.une-principale { margin-top: 20px; }
.une-vide { margin-top: 20px; padding: 32px; text-align: center; background: var(--surface-1); border: 1px dashed var(--bordure); border-radius: 12px; }
.liste-nouveautes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.liste-nouveautes li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 12px; background: var(--surface-1);
  border: 1px solid var(--bordure); border-radius: 8px; }
.liste-nouveautes .lien-page { margin: 0; text-align: left; }
.bandeau-comparateur { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin: 28px 0;
  padding: 20px 24px; border-radius: 12px; background: #0b3b2c; color: #f4f3ef; }
.bandeau-comparateur h2 { margin: 0 0 4px; font-size: 20px; }
.bandeau-comparateur p { margin: 0; opacity: .85; }
.bandeau-comparateur .btn { background: #f7c81e; color: #0b0b0b; }

.article-complet { max-width: 760px; margin: 20px auto 0; }
.article-complet h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.015em; margin: 6px 0 12px; }
.article-complet .chapo { font-size: 19px; line-height: 1.5; font-weight: 500; margin: 0 0 16px; }
.retour-articles { display: block; margin: 0 0 16px; }
.meta-article { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 10px 0; margin-bottom: 20px;
  border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); font-size: 13px; color: var(--texte-2); }
.partage { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.partage a, .partage .lien-page { color: var(--accent); font-weight: 600; text-decoration: none; margin: 0; }
.corps-article { font-size: 17px; line-height: 1.7; }
.corps-article h2 { font-size: 22px; margin: 28px 0 8px; }
.corps-article p { margin: 0 0 16px; }
.figure-article { margin: 24px 0; padding: 16px; background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; font-size: 15px; }
.figure-article figcaption { margin-bottom: 8px; }
.encadre-sources { margin: 28px 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--surface-1); border-radius: 0 12px 12px 0; font-size: 14px; }
.encadre-sources h3 { margin: 0 0 8px; font-size: 16px; }
.encadre-sources ul { margin: 0 0 8px; padding-left: 18px; }
.encadre-sources .lien-page { margin: 0; }
mark { background: #fde68a; color: #0b0b0b; padding: 0 2px; border-radius: 3px; }

.commentaires { max-width: 760px; margin: 32px auto; }
.commentaire { padding: 12px 0; border-bottom: 1px solid var(--bordure); }
.commentaire p { margin: 4px 0; white-space: pre-line; }
.commentaire .lien-page { margin: 0; font-size: 13px; }
.commentaire.reponse { margin-left: 24px; border-bottom: 0; border-left: 3px solid var(--bordure); padding-left: 12px; }
.commentaire.moderation { padding: 12px; margin-bottom: 8px; border: 1px solid var(--bordure); border-radius: 8px; }
.c-entete { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.form-commentaire, .form-edition, .form-sujet, .form-reglages { display: grid; gap: 12px; margin-top: 16px; }
.form-commentaire label, .form-edition label, .form-sujet label, .form-reglages label { display: grid; gap: 4px; font-size: 13px; color: var(--texte-2); }
.form-commentaire input, .form-commentaire textarea, .form-edition input, .form-edition textarea, .form-sujet textarea,
.form-sujet select, .form-reglages input[type=number] { font: inherit; font-size: 15px; color: var(--texte); background: var(--surface-1);
  border: 1px solid var(--bordure); border-radius: 8px; padding: 9px 12px; width: 100%; }
.form-reglages label.case { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--texte); }
.form-reglages input[type=number] { width: 90px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-commentaire .btn, .form-sujet .btn, .form-reglages .btn { justify-self: start; }
.ok { color: var(--hausse); } .erreur { color: var(--baisse); }

.bandeau-validation, .bandeau-admin { max-width: 760px; margin: 16px auto 0; padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--bordure); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center; }
.bandeau-admin .lien-page { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bloc-edition { display: grid; gap: 4px; }
.graphique-edition { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: 14px; }
.graphique-edition .lien-page { margin: 0; }

.mise-page { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin-top: 24px; }
.menu-pages { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; align-self: start; }
.menu-pages button { text-align: left; background: none; border: 0; padding: 8px 12px; border-radius: 8px; font: inherit; color: var(--texte-2); cursor: pointer; }
.menu-pages button.actif { background: var(--surface-2); color: var(--texte); font-weight: 600; }
.page-fixe { max-width: 720px; font-size: 16px; line-height: 1.7; }
.page-fixe h1 { font-size: 30px; margin: 0 0 12px; }
.page-fixe h2 { font-size: 21px; margin: 28px 0 8px; }
.page-fixe .chapeau { font-size: 18px; font-weight: 500; }
.page-fixe .formule { padding: 12px 16px; background: var(--surface-2); border-radius: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; overflow-x: auto; }
.a-completer { background: #fde68a; color: #0b0b0b; padding: 0 4px; border-radius: 3px; }

.carte-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; }
.carte-kpi span { font-size: 13px; color: var(--texte-2); }
.carte-kpi b { font-size: 28px; line-height: 1.2; }
.carte-kpi small { color: var(--texte-3); }

.pied { margin-top: 48px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--bordure); font-size: 13px; display: grid; gap: 16px; }
.pied-marque { display: flex; gap: 12px; align-items: center; }
.pied-marque b { font-size: 20px; }
.pied-marque p { margin: 2px 0 0; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pied-liens .lien-page { margin: 0; font-weight: 500; }
.pied-sources { margin: 0; }

@media (max-width: 760px) {
  .carte-article.grande { grid-template-columns: 1fr; }
  .carte-article.grande .ca-graphique { order: 0; padding: 12px 12px 0; }
  .carte-article.grande h3 { font-size: 22px; }
  .article-complet h1 { font-size: 26px; }
  .article-complet .chapo { font-size: 17px; }
  .mise-page { grid-template-columns: 1fr; gap: 12px; }
  .menu-pages { position: static; flex-direction: row; overflow-x: auto; }
  .menu-pages button { white-space: nowrap; }
  .champs-2 { grid-template-columns: 1fr; }
}
.sous-nav[hidden] { display: none; }

/* =====================================================================
   Refonte KmerStats : identité d'agence d'information de données
   ===================================================================== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; }
h1, h2, h3, .mot-marque { font-family: var(--police-titre); text-wrap: balance; }
h2 { letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bandeau tricolore et barre de marque */
.drapeau { height: 4px; }
.drapeau span:nth-child(1) { background: var(--vert); }
.drapeau span:nth-child(2) { background: var(--rouge); }
.drapeau span:nth-child(3) { background: var(--jaune); }
.bandeau-marque { background: var(--encre); color: var(--sur-encre); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.barre-int, .ticker-int, .sous-nav-int { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 20px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.barre-int { min-height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.marque img { border-radius: 10px; }
.bandeau-marque .mot-marque { font-size: 26px; font-weight: 800; font-stretch: 92%; letter-spacing: -.03em; color: var(--sur-encre); }
.bandeau-marque .mot-marque span { color: var(--jaune); }
.bandeau-marque .onglets { max-width: none; margin: 0; padding: 0; border: 0; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.bandeau-marque .onglets::-webkit-scrollbar { display: none; }
.bandeau-marque .onglet { display: inline-flex; align-items: center; gap: 8px; color: var(--sur-encre-2); border: 0; border-radius: 999px;
  padding: 8px 14px; margin: 0; font: 600 14px/1 var(--police-ui); white-space: nowrap; background: none; cursor: pointer;
  transition: background .15s, color .15s; }
.bandeau-marque .onglet:hover { color: var(--sur-encre); background: rgba(255,255,255,.08); }
.bandeau-marque .onglet.actif { color: var(--encre); background: var(--sur-encre); font-weight: 700; }
.bandeau-marque .onglet.actif .ic { color: var(--vert); }
.barre-outils { display: flex; align-items: center; gap: 6px; }
.btn-icone { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid rgba(255,255,255,.18);
  color: var(--sur-encre-2); border-radius: 999px; padding: 7px 10px; font: 600 13px/1 var(--police-ui); cursor: pointer; text-decoration: none; }
.btn-icone:hover, .btn-icone.actif { color: var(--sur-encre); border-color: var(--sur-encre-2); }
.btn-icone span { display: none; }
.btn-icone.actif span { display: inline; }
.btn-clair { background: var(--jaune); color: #14201a; }
.barre-admin { background: var(--encre-2); border-top: 1px solid rgba(255,255,255,.08); }
.barre-admin .barre-int { min-height: 44px; }
.etiquette-admin { display: inline-flex; gap: 6px; align-items: center; font: 700 11px/1 var(--police-ui); letter-spacing: .08em;
  text-transform: uppercase; color: var(--jaune); white-space: nowrap; }
.barre-admin .onglet { padding: 6px 12px; font-size: 13px; }

/* Bandeau défilant des derniers chiffres */
.ticker { background: var(--surface-1); border-bottom: 1px solid var(--bordure); font-size: 13px; }
.ticker-int { min-height: 38px; gap: 14px; }
.ticker-titre { display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var(--police-ui); letter-spacing: .08em;
  text-transform: uppercase; color: var(--rouge); white-space: nowrap; }
.ticker-titre .ic { width: 15px; height: 15px; fill: var(--jaune); stroke: var(--rouge); }
.ticker-piste { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-defile { display: inline-flex; gap: 32px; white-space: nowrap; animation: defile 70s linear infinite; padding-left: 8px; }
.ticker:hover .ticker-defile { animation-play-state: paused; }
.ticker-defile button { background: none; border: 0; padding: 0; font: inherit; color: var(--texte-2); cursor: pointer; }
.ticker-defile b { color: var(--texte); font-variant-numeric: tabular-nums; }
.ticker-defile .hausse { color: var(--hausse); font-weight: 700; } .ticker-defile .baisse { color: var(--baisse); font-weight: 700; }
.ticker-etat { color: var(--texte-3); white-space: nowrap; font-size: 12px; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-defile { animation: none; } .ticker-piste { overflow-x: auto; } }

/* Sous-menu des données */
.sous-nav { background: var(--surface-1); border-bottom: 1px solid var(--bordure); }
.sous-nav[hidden] { display: none; }
.sous-nav-int { gap: 4px; overflow-x: auto; padding-block: 8px; }
.sous-nav .onglet { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 999px;
  padding: 6px 12px; font: 600 13px/1 var(--police-ui); color: var(--texte-2); background: none; white-space: nowrap; margin: 0; cursor: pointer; }
.sous-nav .onglet .ic { width: 16px; height: 16px; }
.sous-nav .onglet:hover { color: var(--texte); background: var(--surface-2); }
.sous-nav .onglet.actif { color: var(--accent); background: var(--accent-doux); border-color: transparent; }

main { max-width: 1240px; padding-top: 8px; }

/* Titres de section façon agence */
.entete-section { border-top: 3px solid var(--texte); padding-top: 10px; margin: 36px 0 16px; }
.entete-section h2 { font-size: 15px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.entete-section h2 .ic { color: var(--accent); }
.entete-section .lien-page { display: inline-flex; gap: 6px; align-items: center; }
.entete-theme h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.pastille-theme { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--encre); color: var(--jaune); }
.pastille-theme .ic { width: 24px; height: 24px; }
.rubrique { display: inline-flex; align-items: center; gap: 6px; color: var(--rouge); font-family: var(--police-ui); }
.rubrique .ic { width: 14px; height: 14px; }

/* À la une : bloc vedette */
.une-grille { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.vedette { background: var(--encre); color: var(--sur-encre); border-radius: var(--rayon); overflow: hidden; display: grid; position: relative; }
.vedette .ca-graphique { background: var(--surface-1); margin: 0 20px 20px; border-radius: 10px; padding: 14px; max-height: 320px; }
.vedette .ca-texte { padding: 28px 28px 18px; gap: 10px; }
.vedette .rubrique { color: var(--jaune); }
.vedette h3, .vedette h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; font-stretch: 90%; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.vedette .chapo { color: var(--sur-encre-2); font-family: var(--police-texte); font-size: 18px; line-height: 1.5; }
.vedette .muted { color: var(--sur-encre-2); }
.vedette.carte-article { border: 0; cursor: pointer; }
.vedette.carte-article:hover { box-shadow: 0 10px 30px rgba(11,59,44,.35); }
.hero-donnees { padding: 32px; gap: 18px; align-content: start; }
.hero-donnees h1 { color: var(--sur-encre); }
.hero-donnees > p { margin: 0; font-family: var(--police-texte); font-size: 18px; color: var(--sur-encre-2); max-width: 60ch; }
.chiffres-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.chiffre-hero { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px; display: grid; gap: 4px;
  text-align: left; color: inherit; font: inherit; cursor: pointer; }
.chiffre-hero:hover { background: rgba(255,255,255,.1); }
.chiffre-hero b { font: 800 clamp(28px, 4vw, 42px)/1 var(--police-titre); font-stretch: 88%; color: var(--jaune); font-variant-numeric: tabular-nums; }
.chiffre-hero span { font-size: 14px; color: var(--sur-encre); }
.chiffre-hero small { font-size: 12px; color: var(--sur-encre-2); }
.boutons-hero { display: flex; flex-wrap: wrap; gap: 10px; }
.boutons-hero .btn { display: inline-flex; gap: 8px; align-items: center; background: var(--jaune); color: #14201a; border-radius: 999px; padding: 11px 18px; }
.boutons-hero .btn-secondaire { background: transparent; color: var(--sur-encre); border: 1px solid rgba(255,255,255,.3); }

.colonne-une { display: grid; gap: 16px; align-content: start; }
.encart { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 18px; }
.encart h2 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.encart h2 .ic { color: var(--rouge); }
.chiffre-jour b { display: block; font: 800 52px/1 var(--police-titre); font-stretch: 85%; color: var(--accent); font-variant-numeric: tabular-nums; }
.chiffre-jour .unite { font: 600 16px var(--police-ui); color: var(--texte-2); }
.chiffre-jour p { margin: 8px 0 4px; font-family: var(--police-texte); font-size: 17px; line-height: 1.4; }
.chiffre-jour small { color: var(--texte-3); }
.en-bref { list-style: none; margin: 0; padding: 0; display: grid; }
.en-bref li { padding: 10px 0; border-top: 1px solid var(--bordure); display: grid; gap: 2px; }
.en-bref li:first-child { border-top: 0; padding-top: 0; }
.en-bref button { background: none; border: 0; padding: 0; text-align: left; font: 600 14px/1.35 var(--police-ui); color: var(--texte); cursor: pointer; }
.en-bref button:hover { color: var(--accent); }
.en-bref .valeur { font: 800 18px var(--police-titre); color: var(--texte); font-variant-numeric: tabular-nums; }
.en-bref small { color: var(--texte-3); font-size: 12px; }

/* Cartes d'articles */
.grille-articles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.carte-article { border-radius: var(--rayon); }
.carte-article .ca-graphique { background: var(--surface-1); border-bottom: 1px solid var(--bordure); padding: 14px 14px 6px; height: 180px; }
.carte-article h3 { font-weight: 750; font-size: 19px; line-height: 1.2; }
.carte-article:hover h3 { color: var(--accent); }

/* Thématiques en tuiles à icônes */
.tuiles-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tuile-theme { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--surface-1); border: 1px solid var(--bordure);
  border-radius: 12px; padding: 14px; font: 600 14px/1.25 var(--police-ui); color: var(--texte); cursor: pointer; transition: border-color .15s, transform .15s; }
.tuile-theme:hover { border-color: var(--accent); transform: translateY(-2px); }
.tuile-theme .icone-tuile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-doux); color: var(--accent); flex: none; }
.carte-theme .icone { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-doux); color: var(--accent); }
.carte-theme .icone .ic { width: 22px; height: 22px; }
.puce { display: inline-flex; align-items: center; gap: 6px; }
.puce .ic { width: 15px; height: 15px; }

/* Bandeau comparateur */
.bandeau-comparateur { background: var(--encre); color: var(--sur-encre); position: relative; overflow: hidden; padding: 28px 32px; }
.bandeau-comparateur::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%;
  border: 28px solid rgba(242,194,48,.18); pointer-events: none; }
.bandeau-comparateur h2 { font-size: 24px; font-weight: 800; }
.bandeau-comparateur .rang { font: 800 46px/1 var(--police-titre); color: var(--jaune); margin-right: 6px; }

/* Cartes chiffres et panneaux */
.carte { border-radius: 12px; }
.carte-valeur { font-family: var(--police-titre); font-weight: 800; font-stretch: 92%; }
.btn { border-radius: 999px; font-family: var(--police-ui); }
.panneau-theme, .panneau-accueil { border-radius: var(--rayon); }

/* Article */
.article-complet h1 { font-weight: 800; font-stretch: 92%; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.07; letter-spacing: -.025em; }
.article-complet .chapo { font-family: var(--police-texte); font-size: 21px; font-weight: 500; color: var(--texte-2); }
.corps-article { font-family: var(--police-texte); font-size: 19px; line-height: 1.68; }
.corps-article > p:first-child::first-letter { float: left; font: 800 64px/.85 var(--police-titre); margin: 6px 10px 0 0; color: var(--accent); }
.corps-article h2 { font-family: var(--police-titre); font-weight: 800; }
.figure-article { font-family: var(--police-ui); }
.meta-article .partage a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--texte); }
.meta-article .partage a.whatsapp { background: #1fa855; color: #fff; }

/* Pied de page en bandeau */
.pied { max-width: none; margin-top: 64px; border-top: 0; padding: 0; background: var(--encre); color: var(--sur-encre-2); display: block; }
.pied-int { max-width: 1240px; margin: 0 auto; display: grid; gap: 18px; padding-block: 36px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.pied .mot-marque { color: var(--sur-encre); }
.pied .mot-marque span { color: var(--jaune); }
.pied .muted { color: var(--sur-encre-2); }
.pied-liens .lien-page { color: var(--sur-encre); }
.pied-sources { font-size: 12px; opacity: .85; }

@media (max-width: 900px) {
  .une-grille { grid-template-columns: 1fr; }
  .chiffres-hero { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .barre-int { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px 6px; }
  .bandeau-marque .onglets { order: 3; flex-basis: 100%; }
  .barre-outils { margin-left: auto; }
  .bandeau-marque .onglet { padding: 8px 11px; }
  .bandeau-marque .mot-marque { font-size: 22px; }
  .ticker-etat { display: none; }
  .ticker-titre span, .ticker-titre { font-size: 0; gap: 0; }
  .ticker-titre .ic { width: 16px; height: 16px; }
  .hero-donnees { padding: 22px; }
  .chiffres-hero { grid-template-columns: 1fr; }
  .corps-article { font-size: 18px; }
}
.champ-connexion { display: grid; gap: 4px; font-size: 13px; color: var(--texte-2); margin-top: 12px; }
.champ-connexion input { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: 10px; background: var(--surface-0); color: var(--texte); }
#form-connexion .actions { margin-top: 18px; }
.vedette { align-self: start; }
/* Estimations de l'année en cours (prolongement de tendance) */
.etiquette-estimation { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font: 700 11px/1 var(--police-ui);
  letter-spacing: .05em; text-transform: uppercase; color: var(--encre); background: var(--jaune); border-radius: 999px; padding: 4px 8px; }
.carte-estimee { border-style: dashed; }
.carte-estimee .carte-valeur { color: var(--texte); }
.carte-publiee { font-size: 12px; color: var(--texte-2); padding-top: 6px; border-top: 1px dashed var(--bordure); }
.carte-publiee b { color: var(--texte); font-variant-numeric: tabular-nums; }
.encadre-estimation { margin: 4px 0 16px; padding: 14px 16px; border: 1px dashed var(--bordure); border-radius: 12px; background: var(--surface-0);
  display: grid; gap: 6px; }
.encadre-estimation b { font: 800 24px/1.1 var(--police-titre); }
.encadre-estimation p { margin: 0; font-size: 13px; color: var(--texte-2); }
.fam-meta .etiquette-estimation { font-size: 10px; padding: 2px 6px; margin-right: 4px; vertical-align: 1px; }
.encadre-estimation .etiquette-estimation { justify-self: start; }
.voile { z-index: 40; }
/* Dons */
.btn-don { display: inline-flex; align-items: center; gap: 6px; background: var(--rouge); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 14px; font: 700 13px/1 var(--police-ui); cursor: pointer; white-space: nowrap; }
.btn-don:hover { filter: brightness(1.08); }
.btn-don .ic { width: 16px; height: 16px; }
.moyens-don { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }
.moyen-don { background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 12px; padding: 14px 16px; }
.moyen-don h3 { margin: 0 0 6px; font-size: 16px; }
.moyen-don p { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .btn-don span { display: none; } .btn-don { padding: 8px 10px; } }
.barre-admin #btn-maj { margin-left: auto; padding: 6px 12px; font-size: 12px; white-space: nowrap; }
/* Audience (administrateur) */
.grille-audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-audience .carte-kpi small strong { color: var(--texte); }
.defile-audience { overflow-x: auto; }
.graphe-audience { width: 100%; min-width: 600px; height: auto; display: block; }
.graphe-audience text { font: 10px var(--police-ui); fill: var(--texte-3); }
.colonne-audience { fill: var(--accent); }
.colonne-audience:hover { fill: var(--jaune); }
.grille-audience-tables { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.grille-audience-tables .panneau-theme { margin: 0; min-width: 0; }
@media (max-width: 900px) { .grille-audience, .grille-audience-tables { grid-template-columns: 1fr; } }
.vedette.carte-article h3 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.08; }
.vedette .ca-graphique { height: auto; max-height: 300px; border-bottom: 0; }
.vedette .ca-graphique { max-height: none; overflow: visible; }
/* Chiffres sur la carte du Cameroun */
.etiquette-region text { paint-order: stroke; stroke: var(--surface-1); stroke-width: 3px; stroke-linejoin: round; font-family: var(--police-ui); }
.er-nom { fill: var(--texte-2); font-weight: 600; }
.er-valeur { fill: var(--texte); font-weight: 800; font-variant-numeric: tabular-nums; }
/* Bandeau tricolore : l'étoile jaune au milieu du rouge, comme sur le drapeau */
.drapeau { height: 6px; position: relative; }
.drapeau span:nth-child(2) { position: relative; }
.drapeau span:nth-child(2)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px;
  transform: translate(-50%, -38%); background: var(--jaune);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.drapeau { overflow: visible; z-index: 25; }

/* Texte justifié (paragraphes de lecture) */
.corps-article p, .article-complet .chapo, .page-fixe p, .page-fixe li, .encadre-sources, .carte-article .chapo,
.vedette .chapo, .hero-donnees > p, .entete-theme p, .commentaire p, .chiffre-jour p, .note-source, .methode, .encadre-estimation p {
  text-align: justify; }

/* Illustrations des articles */
.illustration { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1200 / 630; }
.carte-article .ca-illustration { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--encre); border-bottom: 1px solid var(--bordure); }
.vedette .ca-illustration { margin: 0 20px 20px; border-radius: 10px; overflow: hidden; }
.article-complet .illustration-tete { margin: 0 0 20px; border-radius: 14px; overflow: hidden; }
.g-carte svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.g-total { text-align: center; margin: 6px 0 0; font-size: 14px; color: var(--texte-2); }
/* Graphiques des articles : couleurs des styles variés (aire, colonnes, pente, points, gaufre, anneau, chiffre) */
.graphe-article { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--police-ui); }
.graphe-article .g-grille { stroke: var(--grille); stroke-width: 1; }
.graphe-article .g-axe { fill: var(--texte-3); font-size: 12px; }
.graphe-article .g-axe.g-gras { fill: var(--texte); font-weight: 700; }
.graphe-article .g-valeur { fill: var(--texte); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.graphe-article .g-valeur.g-grand { font-size: 22px; }
.graphe-article .g-valeur.g-petit { font-size: 12px; }
.graphe-article .g-trait { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.graphe-article .g-deg-haut { stop-color: var(--accent); stop-opacity: .35; }
.graphe-article .g-deg-bas { stop-color: var(--accent); stop-opacity: .02; }
.graphe-article .g-point { fill: var(--accent); stroke: var(--surface-1); stroke-width: 3; }
.graphe-article .g-doux-point { fill: var(--texte-3); stroke: var(--surface-1); stroke-width: 2; }
.graphe-article .g-fort { fill: var(--accent); }
.graphe-article .g-doux { fill: var(--texte-3); opacity: .55; }
.graphe-article .g-vide { fill: var(--surface-2); stroke: var(--bordure); stroke-width: 1; }
.graphe-article .g-tige { stroke: var(--texte-3); stroke-width: 2; opacity: .6; }
.graphe-article .g-tige-forte { stroke: var(--accent); opacity: 1; }
.graphe-article .g-pente { stroke-width: 4; stroke-linecap: round; }
.graphe-article .g-hausse { stroke: var(--hausse); } .graphe-article .g-baisse { stroke: var(--baisse); }
.graphe-article .g-badge { font-size: 15px; font-weight: 800; }
.graphe-article .g-hausse-t { fill: var(--hausse); } .graphe-article .g-baisse-t { fill: var(--baisse); }
.g-etincelle { width: 100%; max-width: 320px; height: 60px; display: block; }
.g-etincelle .g-trait { fill: none; stroke: var(--accent); stroke-width: 3; }
.g-chiffre { display: grid; gap: 6px; padding: 8px 4px; }
.g-chiffre b { font: 800 clamp(44px, 8vw, 72px)/1 var(--police-titre); color: var(--accent); font-variant-numeric: tabular-nums; }
.g-chiffre span { font: 600 18px var(--police-ui); color: var(--texte-2); margin-left: 8px; }
.g-chiffre p { margin: 0; color: var(--texte-2); }
.g-gaufre { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.g-gaufre .graphe-article { width: 216px; max-width: 100%; }
.g-gaufre p { margin: 0; font-size: 16px; }
.g-gaufre p b { font: 800 34px var(--police-titre); color: var(--accent); display: block; }
.g-anneau { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.g-anneau .graphe-article { width: 220px; max-width: 100%; }
.g-anneau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-anneau li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.g-anneau li i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.g-anneau li small { color: var(--texte-3); }
/* Couleurs des graphiques, accordées à la marque ; le Cameroun ressort toujours */
:root { --or: #b07d00; --bleu-nuit: #2b4c7e; --neutre-graphe: #b9c4bc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --or: #e3ad1d; --bleu-nuit: #7ea2d8; --neutre-graphe: #46564d; } }
:root[data-theme="dark"] { --or: #e3ad1d; --bleu-nuit: #7ea2d8; --neutre-graphe: #46564d; }
.bt-ligne.bt-fort { background: var(--accent-doux); border-radius: 8px; }
.bt-ligne.bt-fort .bt-lib, .bt-ligne.bt-fort .bt-val { font-weight: 800; color: var(--texte); }
.graphe-article .g-doux { fill: var(--neutre-graphe); opacity: 1; }
.graphe-article .g-doux-point { fill: var(--neutre-graphe); }
/* Carrousel de la une */
.carrousel { position: relative; display: grid; align-self: start; }
.carrousel .diapo { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.carrousel .diapo.active { opacity: 1; visibility: visible; }
.points-carrousel { position: absolute; left: 28px; bottom: 14px; display: flex; gap: 8px; z-index: 2; }
.points-carrousel button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.35); transition: width .3s, background .3s; }
.points-carrousel button.actif { width: 28px; background: var(--jaune); }
.carrousel .vedette { padding-bottom: 26px; }
@media (prefers-reduced-motion: reduce) { .carrousel .diapo { transition: none; } }
/* Titres justifiés aussi */
.article-complet h1, .carte-article h3, .vedette h3, .vedette h1, .page-fixe h1, .hero-donnees h1 { text-align: justify; }
.avis-ia { font-size: 13px; margin: 4px 0 8px; }
.suggestion { padding: 12px; border: 1px solid var(--bordure); border-radius: 10px; margin-bottom: 10px; display: grid; gap: 4px; }
.suggestion.a_traiter { border-left: 4px solid var(--jaune); }
.suggestion.traitee, .suggestion.ecartee { opacity: .65; }
.suggestion p { margin: 0; }
.pastille-type { font: 700 11px/1 var(--police-ui); text-transform: uppercase; letter-spacing: .05em; background: var(--accent-doux); color: var(--accent); padding: 4px 8px; border-radius: 999px; }
/* Titres justifiés jusqu'à la dernière ligne */
.article-complet h1, .vedette h3, .carte-article h3, .page-fixe h1 { text-align: justify; text-align-last: left; text-wrap: pretty; }
/* Aucune coupure de mot en fin de ligne : les mots restent entiers */
body, p, li, h1, h2, h3, .chapo, .corps-article, .page-fixe { hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal; }
/* Palette élargie : jusqu'à 12 séries distinctes sur un même graphique */
:root { --serie-8: #8c564b; --serie-9: #17becf; --serie-10: #7f7f00; --serie-11: #a83279; --serie-12: #4d4d4d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --serie-8: #c49c94; --serie-9: #5fd3e0; --serie-10: #c7c74a; --serie-11: #e07bb8; --serie-12: #b0b0b0; } }
:root[data-theme="dark"] { --serie-8: #c49c94; --serie-9: #5fd3e0; --serie-10: #c7c74a; --serie-11: #e07bb8; --serie-12: #b0b0b0; }
/* Recherche sur tout le site */
.btn-recherche span { display: inline; }
.voile-recherche { align-items: flex-start; padding-top: max(8vh, 40px); }
.panneau-recherche { max-width: 720px; padding: 0; overflow: hidden; }
.champ-recherche { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--bordure); }
.champ-recherche .ic { color: var(--texte-3); width: 20px; height: 20px; }
.champ-recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 18px var(--police-ui); color: var(--texte); }
.fermer-recherche { border: 1px solid var(--bordure); background: var(--surface-2); color: var(--texte-2); border-radius: 6px; font: 600 11px var(--police-ui); padding: 4px 8px; cursor: pointer; }
.resultats-recherche { max-height: min(65vh, 560px); overflow-y: auto; padding: 8px 10px 14px; }
.resultats-recherche h3 { margin: 12px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.resultat { display: grid; gap: 2px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--texte); }
.resultat:hover, .resultat:focus-visible { background: var(--accent-doux); outline: none; }
.resultat b { font-size: 15px; } .resultat span { font-size: 13px; color: var(--texte-2); }
.aide-recherche { padding: 16px 12px; margin: 0; }
@media (max-width: 760px) { .btn-recherche span { display: none; } .voile-recherche { padding-top: 12px; } }

/* Compteur en direct dans un article */
.compteur-direct { display: flex; gap: .7rem; align-items: center; margin: 1.4rem 0; padding: .9rem 1.1rem;
  border-left: 4px solid var(--accent); background: var(--accent-doux); border-radius: 0 10px 10px 0;
  font-size: 1.08rem; text-align: left; hyphens: none; }
.compteur-direct svg { flex: none; width: 1.4rem; height: 1.4rem; }
.compteur-n { font-variant-numeric: tabular-nums; color: var(--accent); font-size: 1.25em; }

/* Adresse de contact du pied de page (fond toujours sombre, quel que soit le thème) */
.pied-mail { color: #7fdcaa; font-weight: 600; text-decoration: none; }
.pied-mail:hover, .pied-mail:focus-visible { color: #f7c81e; text-decoration: underline; }

/* Page Articles : recherche, filtre par date, pagination */
.outils-articles { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; }
.champ-recherche-articles { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 999px; min-height: 44px; }
.champ-recherche-articles:focus-within, .champ-date-articles:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.champ-recherche-articles input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: inherit; padding: 10px 0; outline: none; }
.champ-date-articles { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 44px;
  background: var(--surface-1); border: 1px solid var(--bordure); border-radius: 999px; font-size: 14px; }
.champ-date-articles span { color: var(--texte-2, inherit); white-space: nowrap; }
.champ-date-articles input { border: 0; background: transparent; font: inherit; color: inherit; outline: none; color-scheme: light dark; }
.resume-articles { margin: 6px 0 12px; font-size: 14px; text-align: left; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 8px; }
.pagination .btn[disabled] { opacity: .4; cursor: default; }
.num-page { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--bordure); background: var(--surface-1);
  color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.num-page:hover { border-color: var(--accent); }
.num-page.active { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
@media (max-width: 560px) { .champ-date-articles { flex: 1 1 100%; } .pagination .btn { padding-inline: 10px; } }

/* Page d'une région (/regions/<nom>) */
.contenu-seo:empty { display: none; }
.fiche-region h1 { margin: 2px 0 8px; text-align: left; }
.surtitre { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.entete-fiche-region { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; margin-bottom: 18px; }
.carte-fiche-region { width: 100%; height: auto; }
.carte-fiche-region path { stroke: var(--surface-1); stroke-width: 1.2; transition: fill .15s; }
.carte-fiche-region .region-autre { fill: var(--bordure); cursor: pointer; }
.carte-fiche-region a:hover .region-autre, .carte-fiche-region a:focus-visible .region-autre { fill: var(--accent-doux); }
.carte-fiche-region .region-active { fill: var(--accent); }
.tableau-fiche-region td:first-child { min-width: 220px; }
.tableau-fiche-region .petit { font-size: 13px; }
.pastille-rang { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2, var(--accent-doux)); border: 1px solid var(--bordure); }
.pastille-rang.rang-haut { background: var(--accent-doux); border-color: var(--accent); color: var(--accent); }
.pastille-rang.rang-bas { background: transparent; }
.autres-regions, .liens-fiches-regions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0 8px; }
.autres-regions h2 { flex-basis: 100%; margin: 0 0 4px; }
.liens-fiches-regions { margin: 0 0 14px; }
.liens-fiches-regions span { font-weight: 600; margin-right: 4px; }
.autres-regions a.puce, .liens-fiches-regions a.puce { text-decoration: none; color: inherit; }
@media (max-width: 760px) { .entete-fiche-region { grid-template-columns: 1fr; } .carte-fiche-region { max-width: 240px; margin: 0 auto; } }
.tableau-fiche-region td:first-child .lien-page { text-align: left; }
.entete-fiche-region { grid-template-columns: minmax(0, 1fr) 220px; }
.carte-fiche-region { max-height: 290px; }
/* Comparaison entre pays : le Cameroun plus épais, au premier plan ; les autres pays en gris discret */
.serie.serie-forte { stroke-width: 3.5; }
.serie.serie-grisee { stroke-width: 1.5; opacity: .75; }
