/* Communautés OCI et Maghreb : feuille de style commune.
   Couleurs du Québec, d'après la palette du Système de design gouvernemental
   (design.quebec.ca) : bleu PIV, bleu foncé, bleu pâle, gris et rose d'accent.
   Roboto pour les titres et les chiffres, Open Sans pour le texte.
   Le site reste celui du CCMQ : aucune signature gouvernementale n'est reprise. */

@font-face {
  font-family: "Open Sans";
  src: url("../polices/OpenSans-italic-latin-ext.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  src: url("../polices/OpenSans-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  src: url("../polices/OpenSans-normal-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  src: url("../polices/OpenSans-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  src: url("../polices/Roboto-normal-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  src: url("../polices/Roboto-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bleu-fonce: #223654;
  --bleu-moyen: #19406c;
  --bleu-piv: #095797;
  --bleu: #1472bf;
  --bleu-clair: #4a98d9;
  --bleu-tendre: #a9cbea;
  --bleu-pale: #dae6f0;
  --gris-pale: #f1f1f2;
  --gris-clair: #c5cad2;
  --blanc: #ffffff;
  --texte: #223654;
  --texte-doux: #4e5662;
  --sur-fonce: #c5d3e3;
  --sur-piv: #dae6f0;
  --accent: #e58271;
  --jaune: #e0ad03;
  --jaune-pale: #fdf3cc;
  --ligne: #dfe3e9;
  --affiche: "Open Sans", Arial, sans-serif;
  --titre: "Roboto", Arial, sans-serif;
  --citation: "Open Sans", Arial, sans-serif;
  --largeur: 1280px;
  --marge: 40px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gris-pale);
  color: var(--texte);
  font-family: var(--affiche);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu-piv); text-underline-offset: 3px; }
a:hover { color: var(--bleu-moyen); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu-piv); outline-offset: 2px; }
.sur-sombre :focus-visible, .pied :focus-visible { outline-color: var(--blanc); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; line-height: 1.12; font-family: var(--titre); font-weight: 700; color: inherit; }
.chiffre, .titre-bloc, .marque-titre, .valeur, .val, .etiquette, .nav a, .onglets a, .bouton-indic, .pilule, .mesure .num, .statut, .infobulle strong, .histo-barres .b.sommet::after, .classement .v, .rond { font-family: var(--titre); }
p { margin: 0; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--bleu-fonce);
  padding: 12px 18px; font-weight: 800; text-decoration: none;
}
.evitement:focus { top: 12px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }

/* ---------- En-tête : fond blanc, logo officiel sans cartouche ---------- */
.entete { background: var(--blanc); color: var(--texte); position: relative; z-index: 20; border-top: 6px solid var(--bleu-piv); box-shadow: 0 1px 0 var(--gris-clair); }
.entete-int {
  max-width: var(--largeur); margin: 0 auto; padding: 12px var(--marge);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
}
.marque { display: flex; align-items: center; gap: 18px; color: var(--texte); text-decoration: none; }
.marque:hover { color: var(--texte); }
.logo { height: 56px; width: auto; }
.marque-texte { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 1px solid var(--ligne); }
.marque-titre { font-size: 20px; font-weight: 700; letter-spacing: 0; color: var(--bleu-fonce); }
.marque-sous { font-size: 13px; color: var(--texte-doux); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a {
  color: var(--texte-doux); text-decoration: none; padding: 12px 13px 9px; font-weight: 600; font-size: 15px;
  border-bottom: 3px solid transparent; min-height: 44px; display: flex; align-items: center;
}
.nav a:hover { color: var(--texte); border-bottom-color: var(--bleu-pale); }
.nav a[aria-current="page"] { color: var(--bleu-piv); font-weight: 700; border-bottom-color: var(--bleu-piv); }
.nav a { color: var(--bleu-fonce); }

/* ---------- Typographie commune ---------- */
.etiquette {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bleu-piv);
}
.sur-sombre .etiquette { color: var(--sur-fonce); }
.encadre .etiquette, .mesure.religion .etiquette { color: var(--sur-fonce); }
.source { font-size: 13px; line-height: 1.45; color: var(--texte-doux); }
.source a { color: inherit; }
.sur-sombre .source { color: var(--sur-fonce); }
.chiffre {
  font-weight: 800; letter-spacing: -0.025em; line-height: 0.9;
  font-variant-numeric: lining-nums tabular-nums;
}
.voix { font-family: var(--citation); font-style: italic; font-weight: 600; }
.titre-bloc { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.intro { font-size: 18px; line-height: 1.5; color: var(--texte-doux); max-width: 760px; }
.nr { color: var(--texte-doux); font-weight: 600; font-style: normal; }

/* ---------- Héros ---------- */
.heros { background: var(--bleu-piv); color: var(--blanc); position: relative; overflow: hidden; isolation: isolate; }
.heros-int { position: relative; z-index: 1; max-width: var(--largeur); margin: 0 auto; padding: 76px var(--marge) 64px; display: flex; flex-direction: column; gap: 26px; }
.heros .eclats { position: absolute; z-index: 0; right: -80px; top: -60px; width: min(720px, 70vw); height: auto; pointer-events: none; }
.heros-chiffre { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 44px; }
.heros-chiffre .chiffre { font-size: clamp(80px, 13vw, 184px); color: var(--blanc); }
.heros .etiquette, .heros-pays .etiquette { color: var(--sur-piv); }
.heros-int > .etiquette::before { content: ""; display: block; width: 56px; height: 6px; background: var(--accent); margin-bottom: 18px; }
.heros-pays .conteneur::before { content: ""; display: block; width: 56px; height: 6px; background: var(--accent); }
.heros-chiffre p { font-size: clamp(21px, 2.3vw, 29px); line-height: 1.15; font-weight: 700; max-width: 520px; margin-bottom: 14px; }
.recherche { display: flex; flex-wrap: wrap; max-width: 760px; position: relative; margin-top: 6px; }
.recherche input {
  flex: 1 1 300px; min-width: 0; height: 58px; border: 0; padding: 0 20px; font-size: 17px; background: var(--blanc); color: var(--texte);
}
.recherche button {
  height: 58px; padding: 0 28px; border: 0; background: var(--bleu-fonce); color: var(--blanc); font-size: 16px; font-weight: 750; cursor: pointer;
}
.recherche button:hover { background: var(--bleu-moyen); }
.suggestions {
  position: absolute; left: 0; right: 0; top: 58px; background: var(--blanc); color: var(--texte); list-style: none; margin: 0; padding: 6px 0;
  box-shadow: 0 18px 40px rgba(34, 54, 84, 0.35); z-index: 10; max-height: 340px; overflow-y: auto;
}
.suggestions[hidden] { display: none; }
.suggestions a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--texte); text-decoration: none; min-height: 44px; }
.suggestions a:hover, .suggestions a:focus, .suggestions a.actif { background: var(--bleu-pale); outline: none; }
.suggestions .type { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--texte-doux); text-transform: uppercase; }

/* ---------- Cartes de chiffres ---------- */
.section { padding-top: 56px; }
.grille-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.carte-chiffre { background: var(--blanc); padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 10px; border-top: 6px solid var(--bleu-piv); box-shadow: 0 1px 3px rgba(34, 54, 84, 0.12); }
.carte-chiffre.pale { border-top-color: var(--bleu-pale); }
.carte-chiffre .chiffre { font-size: clamp(40px, 4.2vw, 52px); color: var(--bleu-piv); font-stretch: 112%; }
.carte-chiffre .chiffre.nr { font-size: 30px; color: var(--texte-doux); letter-spacing: -0.01em; font-stretch: 100%; }
.carte-chiffre .quoi { font-size: 17px; font-weight: 650; line-height: 1.3; }
.carte-chiffre .source { margin-top: auto; padding-top: 6px; }

.bloc { background: var(--blanc); box-shadow: 0 1px 3px rgba(34, 54, 84, 0.12); padding: 36px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bloc-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; }
.lien-fort { font-weight: 750; font-size: 15px; }
.rangee { display: flex; flex-wrap: wrap; gap: 24px; }
.rangee > .large { flex: 999 1 560px; }
.rangee > .etroit { flex: 1 1 320px; }

/* ---------- Histogramme annuel ---------- */
.histo { position: relative; }
.histo-barres {
  display: flex; align-items: flex-end; gap: 3px; height: 280px; border-bottom: 1px solid var(--sur-fonce); padding-top: 34px; position: relative;
}
.histo-barres .b { flex: 1 1 0; min-width: 2px; position: relative; background: var(--bleu-piv); transition: background 0.15s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); transform-origin: bottom; }
.histo-barres .b.arr { background: var(--bleu-tendre); }
.histo-barres .b.prov { background: repeating-linear-gradient(135deg, var(--bleu-clair) 0 4px, var(--bleu-pale) 4px 8px); }
.histo-barres .b.nd { background: var(--sur-fonce); height: 3px !important; }
.histo-barres .b:hover, .histo-barres .b:focus-visible { background: var(--bleu-moyen); }
.histo-barres .b.sommet::after {
  content: attr(data-etiquette); position: absolute; bottom: 100%; left: 50%; transform: translate(-60%, -6px);
  font-size: 15px; font-weight: 850; color: var(--texte); white-space: nowrap; font-stretch: 110%;
}
.histo-axe { display: flex; gap: 3px; margin-top: 8px; font-size: 13px; color: var(--texte-doux); }
.histo-axe span { flex: 1 1 0; min-width: 2px; text-align: center; white-space: nowrap; overflow: visible; }
.histo.anime .b { transform: scaleY(0); }
.infobulle {
  position: absolute; z-index: 30; pointer-events: none; background: var(--bleu-fonce); color: var(--blanc); padding: 10px 14px;
  font-size: 14px; line-height: 1.35; white-space: nowrap; box-shadow: 0 10px 24px rgba(34, 54, 84, 0.3); transform: translate(-50%, -100%);
}
.infobulle strong { font-size: 18px; font-weight: 850; display: block; font-stretch: 110%; }
.infobulle[hidden] { display: none; }
.legende { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--texte-doux); }
.legende span { display: inline-flex; align-items: center; gap: 8px; }
.pastille { width: 14px; height: 14px; flex: none; display: inline-block; }

details.tableau-equivalent summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--bleu-piv); min-height: 32px; display: flex; align-items: center; }
details.tableau-equivalent table { margin-top: 10px; }

/* ---------- Tableaux ---------- */
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; }
.tableau th { text-align: left; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texte-doux); font-weight: 700; padding: 10px 8px; }
.tableau td { padding: 10px 8px; border-top: 1px solid var(--ligne); vertical-align: middle; }
.tableau .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.tableau tbody tr { transition: background 0.12s ease; }
.tableau tbody tr.cliquable { cursor: pointer; }
.tableau tbody tr.cliquable:hover { background: var(--gris-pale); }
.tableau .rang { color: var(--texte-doux); font-weight: 700; width: 48px; }
.tableau a.pays-lien { color: var(--texte); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 28px; }
.tableau a.pays-lien:hover { color: var(--bleu-piv); text-decoration: underline; }
.drapeau { width: 22px; height: 16px; object-fit: cover; box-shadow: 0 0 0 1px rgba(18, 23, 29, 0.12); flex: none; }
.mini { display: flex; align-items: center; gap: 10px; }
.mini .piste { flex: 1; height: 12px; background: var(--gris-pale); }
.mini .piste i { display: block; height: 12px; background: var(--bleu-clair); }
.mini .piste i.mag { background: var(--bleu-piv); }
.mini span { width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.defile { overflow-x: auto; }

/* ---------- Bascule entre deux mesures ---------- */
.bascule { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--bleu-piv); align-self: flex-start; }
.bascule button { min-height: 44px; padding: 8px 16px; border: 0; background: var(--blanc); color: var(--bleu-piv); font-family: var(--titre); font-weight: 600; font-size: 15px; cursor: pointer; }
.bascule button[aria-pressed="true"] { background: var(--bleu-piv); color: var(--blanc); }
.bascule button:hover { background: var(--bleu-pale); color: var(--bleu-fonce); }
.bascule button[aria-pressed="true"]:hover { background: var(--bleu-fonce); color: var(--blanc); }

/* ---------- Encadré sombre ---------- */
.encadre { background: var(--bleu-fonce); color: var(--blanc); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.encadre .voix { font-size: 25px; line-height: 1.22; }
.encadre p { font-size: 15px; line-height: 1.5; color: var(--bleu-pale); }
.encadre a { color: var(--blanc); font-weight: 750; }

/* ---------- Quatre mesures ---------- */
.mesures { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; background: var(--blanc); }
.mesure { padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--ligne); position: relative; }
.mesure:first-child { border-left: 0; }
.mesure .num { font-size: 15px; font-weight: 800; color: var(--bleu-piv); letter-spacing: 0.08em; }
.mesure h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.mesure .valeur { font-size: 38px; font-weight: 900; font-stretch: 114%; letter-spacing: -0.035em; color: var(--texte); line-height: 0.9; font-variant-numeric: tabular-nums; }
.mesure p { font-size: 15px; line-height: 1.45; color: var(--texte-doux); }
.mesure.religion { background: var(--bleu-fonce); color: var(--blanc); }
.mesure.religion .num { color: var(--accent); }
.mesure.religion p { color: var(--sur-fonce); }
.mesure.religion .valeur { color: var(--blanc); }

/* ---------- Barres horizontales ---------- */
.barres-h { display: flex; flex-direction: column; gap: 16px; }
.barre-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; }
.barre-h .nom { font-weight: 700; font-size: 16px; }
.barre-h .val { font-weight: 850; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; }
.barre-h .val small { font-weight: 600; color: var(--texte-doux); font-size: 14px; margin-left: 6px; }
.barre-h .piste { grid-column: 1 / -1; height: 14px; background: var(--gris-pale); }
.barre-h .piste i { display: block; height: 100%; background: var(--bleu-piv); transform-origin: left; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }

/* ---------- Explorer ---------- */
.grille-liens { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.carte-lien {
  text-decoration: none; color: var(--texte); background: var(--blanc); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 172px;
  position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; border-bottom: 4px solid transparent;
}
.carte-lien:hover { color: var(--texte); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(25, 64, 108, 0.12); border-bottom-color: var(--bleu-piv); }
.carte-lien svg { width: 34px; height: 34px; stroke: var(--bleu-piv); }
.carte-lien strong { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.carte-lien span { font-size: 15px; line-height: 1.45; color: var(--texte-doux); }
.carte-lien .externe { position: absolute; top: 26px; right: 26px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--texte-doux); }

/* ---------- Pied de page ---------- */
.pied { margin-top: 80px; background: var(--bleu-fonce); color: var(--sur-fonce); border-top: 6px solid var(--bleu-piv); }
.pied-int { max-width: var(--largeur); margin: 0 auto; padding: 52px var(--marge) 36px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.pied h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blanc); margin-bottom: 12px; font-weight: 700; }
.pied p, .pied li { font-size: 15px; line-height: 1.55; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pied a { color: var(--bleu-pale); }
.pied a:hover { color: var(--blanc); }
.pied-bas { max-width: var(--largeur); margin: 0 auto; padding: 18px var(--marge) 28px; border-top: 1px solid rgba(197, 202, 210, 0.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.signature-nom { color: var(--blanc); font-weight: 700; }
.non-affiliation { flex-basis: 100%; color: var(--sur-fonce); }

/* ---------- Fiche pays ---------- */
.barre-outils { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.barre-outils .conteneur { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 14px; padding-bottom: 14px; }
.barre-outils label { font-size: 14px; font-weight: 700; color: var(--texte-doux); }
.choix { height: 46px; min-width: 240px; padding: 0 40px 0 14px; font-size: 16px; border: 1px solid var(--sur-fonce); background: var(--blanc); border-radius: 0; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--texte) 50%), linear-gradient(135deg, var(--texte) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; background-size: 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.choix:hover { border-color: var(--bleu-piv); }
.heros-pays { background: var(--bleu-piv); color: var(--blanc); position: relative; overflow: hidden; isolation: isolate; }
.heros-pays .eclats { position: absolute; right: -40px; bottom: -70px; width: min(680px, 80vw); z-index: 0; opacity: 0.9; pointer-events: none; }
.heros-pays .conteneur { position: relative; z-index: 1; padding-top: 52px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.pilules { display: flex; flex-wrap: wrap; gap: 8px; }
.pilule { font-size: 12.5px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; background: var(--bleu-moyen); color: var(--blanc); }
.pilule.contour { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55); }
.nom-pays { display: flex; align-items: center; gap: 22px; }
.nom-pays img { width: 74px; height: 54px; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,0.9); }
.nom-pays h1 { font-size: clamp(56px, 9vw, 128px); line-height: 0.86; font-weight: 850; letter-spacing: -0.035em; }
.heros-pays .chiffre { font-size: clamp(64px, 8vw, 100px); }
.heros-pays .heros-chiffre p { font-size: 21px; margin-bottom: 8px; max-width: 470px; }
.heros-pays .source { color: var(--sur-piv); font-size: 14px; }
.onglets { background: var(--blanc); position: sticky; top: 0; z-index: 15; box-shadow: 0 1px 0 var(--ligne); }
.onglets .conteneur { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.onglets a { text-decoration: none; color: var(--texte-doux); padding: 16px 16px 13px; font-weight: 650; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.onglets a:hover, .onglets a.actif { color: var(--texte); border-bottom-color: var(--bleu-piv); }
.ancre { scroll-margin-top: 70px; }
.parcours { display: flex; flex-direction: column; gap: 26px; }
.etape { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; }
.etape .rond { grid-row: span 3; width: 44px; height: 44px; border-radius: 50%; background: var(--bleu-pale); color: var(--bleu-moyen); font-weight: 850; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.etape .ligne1 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.etape .ligne1 strong { font-size: 17px; }
.etape .ligne1 .val { font-size: 22px; font-weight: 900; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.etape .piste { height: 28px; background: var(--gris-pale); display: flex; }
.etape .piste i { display: block; height: 100%; transform-origin: left; }
.etape .source { margin-top: 2px; }
.legende-gen { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; margin-top: 4px; }
.legende-gen span { display: inline-flex; align-items: center; gap: 8px; }
.conclusion { font-size: 21px; line-height: 1.35; color: var(--texte-doux); border-top: 1px solid var(--ligne); padding-top: 22px; }
.tableau-portrait th:not(:first-child), .tableau-portrait td:not(:first-child) { text-align: right; }
.tableau-portrait .groupe td { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texte-doux); font-weight: 750; padding-top: 22px; border-top: 0; }
.tableau-portrait td.pays-col, .tableau-portrait th.pays-col { background: var(--bleu-pale); }
.relations { background: var(--bleu-fonce); color: var(--blanc); }
.relations a { color: var(--blanc); }
.relations .item strong { display: block; font-size: 20px; font-weight: 800; }
.relations .item span { color: var(--sur-fonce); font-size: 15px; }
.etincelle { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.etincelle i { flex: 1; background: var(--bleu-clair); min-height: 2px; }
.etincelle i.der { background: var(--bleu-piv); }

/* ---------- Au fil des recensements ---------- */
.recens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: end; min-height: 300px; padding-top: 10px; }
.recens .col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.recens .pile { height: 210px; display: flex; flex-direction: column; justify-content: flex-end; }
.recens .tot { background: var(--bleu-piv); position: relative; display: flex; flex-direction: column; justify-content: flex-end; transform-origin: bottom; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.recens .rec { background: var(--bleu-tendre); }
.recens .vide-2026 { height: 100%; border: 2px dashed var(--sur-fonce); display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-size: 14px; font-weight: 650; color: var(--texte-doux); background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(218,230,240,.5) 8px 16px); }
.recens .val { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; font-stretch: 112%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.recens .lib { font-size: 14px; font-weight: 700; }
.recens .dont { font-size: 13.5px; color: var(--texte-doux); line-height: 1.35; }
.recens .dont strong { color: var(--texte); }
.panneau-pays h2 { font-size: 26px; font-weight: 850; }
.panneau-pays dl { margin: 0; display: flex; flex-direction: column; }
.panneau-pays .ligne { padding: 12px 0; border-top: 1px solid rgba(197, 202, 210, 0.25); display: flex; flex-direction: column; gap: 2px; }
.panneau-pays dt { font-size: 13.5px; color: var(--sur-fonce); }
.panneau-pays dd { margin: 0; font-size: 22px; font-weight: 850; font-stretch: 110%; font-variant-numeric: tabular-nums; color: var(--blanc); }
.panneau-pays dd small { display: block; font-size: 13px; font-weight: 500; color: var(--sur-fonce); font-stretch: 100%; margin-top: 2px; }
.panneau-pays dd.en-cours { font-size: 16px; font-weight: 650; color: var(--bleu-pale); }
.sous-etape { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sous-etape .ent { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 700; }
.sous-etape .piste { height: 18px; }

/* ---------- Carte du monde ---------- */
.ecran-carte { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 0; background: var(--blanc); }
.panneau { padding: 26px; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid var(--ligne); }
.choix-indicateur { display: flex; flex-direction: column; gap: 8px; }
.bouton-indic {
  min-height: 52px; text-align: left; padding: 10px 14px; border: 1px solid var(--sur-fonce); background: var(--blanc); font-size: 15px; font-weight: 600;
  cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: border-color 0.15s ease, background 0.15s ease;
}
.bouton-indic small { font-size: 12.5px; color: var(--texte-doux); font-weight: 500; }
.bouton-indic:hover { border-color: var(--bleu-piv); }
.bouton-indic[aria-pressed="true"] { border: 2px solid var(--bleu-piv); background: var(--bleu-pale); font-weight: 750; padding: 9px 13px; }
.periode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bloc-generation { display: flex; flex-direction: column; gap: 8px; }
.periode label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--texte-doux); }
.periode .choix { min-width: 0; width: 100%; }
.zone-carte { position: relative; min-height: 640px; background: var(--bleu-pale); }
#carte { position: absolute; inset: 0; }
.legende-carte { display: flex; flex-direction: column; gap: 10px; }
.cercles-legende { display: flex; align-items: flex-end; gap: 16px; }
.cercles-legende div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; }
.cercles-legende i { border-radius: 50%; background: rgba(74, 152, 217, 0.7); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--bleu-moyen); display: block; }
.rampe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.rampe i { height: 14px; display: block; }
.rampe-etiq { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--texte-doux); }
.fiche-flottante {
  position: absolute; z-index: 5; right: 20px; top: 20px; width: 340px; max-width: calc(100% - 40px); background: var(--blanc); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 44px rgba(34, 54, 84, 0.4);
}
.fiche-flottante[hidden] { display: none; }
.fiche-flottante .tete { display: flex; align-items: center; gap: 12px; }
.fiche-flottante .tete h2 { font-size: 24px; font-weight: 850; }
.fiche-flottante .fermer { margin-left: auto; width: 40px; height: 40px; border: 0; background: var(--gris-pale); cursor: pointer; font-size: 22px; line-height: 1; }
.fiche-flottante dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; font-size: 14.5px; }
.fiche-flottante dt { color: var(--texte-doux); }
.fiche-flottante dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.mention-carte { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 10px 0; font-size: 13px; color: var(--texte-doux); }
.mention-carte a { color: inherit; }
.classement { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.classement button {
  display: grid; grid-template-columns: 30px 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; min-height: 48px;
  border: 1px solid var(--ligne); background: var(--blanc); cursor: pointer; text-align: left; font-size: 14.5px;
}
.classement button:hover, .classement button[aria-pressed="true"] { border-color: var(--bleu-piv); background: var(--bleu-pale); }
.classement .r { color: var(--texte-doux); font-weight: 700; font-size: 13px; }
.classement .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.classement .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.maplibregl-popup-content { font-family: var(--affiche); border-radius: 0 !important; padding: 10px 14px !important; background: var(--bleu-fonce) !important; color: var(--blanc); box-shadow: 0 10px 24px rgba(0,0,0,0.35) !important; }
.maplibregl-popup-tip { border-top-color: var(--bleu-fonce) !important; border-bottom-color: var(--bleu-fonce) !important; }
.maplibregl-ctrl-group { border-radius: 0 !important; }
.maplibregl-ctrl-attrib { font-family: var(--affiche); }

/* ---------- Écoles ---------- */
.heros-ecoles .heros-int { padding-top: 56px; padding-bottom: 56px; gap: 20px; }
.heros-ecoles h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 820; max-width: 820px; line-height: 0.98; }
.heros-ecoles p.intro { color: var(--bleu-pale); }
.disposition-filtres { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.filtres { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 20px; }
.filtres fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.filtres legend, .filtres .etiquette { margin-bottom: 8px; }
.case { display: flex; align-items: center; gap: 12px; font-size: 16px; min-height: 44px; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--bleu-piv); flex: none; }
.case .compte { margin-left: auto; font-size: 13px; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.bouton-pilule { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 0; background: var(--bleu-piv); color: var(--blanc); text-decoration: none; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; }
.bouton-pilule:hover { background: var(--bleu-fonce); color: var(--blanc); }
.bouton-pilule.secondaire { background: transparent; color: var(--bleu-piv); box-shadow: inset 0 0 0 2px var(--bleu-piv); }
.liste-ecoles { display: flex; flex-direction: column; gap: 14px; }
.ecole { background: var(--blanc); padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; border-left: 0; position: relative; }
.ecole .type { font-size: 12px; font-weight: 750; letter-spacing: 0.14em; color: var(--texte-doux); text-transform: uppercase; }
.ecole h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 6px 0 4px; }
.ecole .adr { font-size: 15px; color: var(--texte-doux); }
.ecole .ordres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ecole .ordres span { font-size: 13px; font-weight: 650; padding: 5px 12px; border-radius: 999px; background: var(--bleu-pale); }
.ecole .remarque { font-size: 14.5px; line-height: 1.45; margin-top: 10px; color: var(--texte); }
.ecole .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.statut { font-size: 13px; font-weight: 750; padding: 6px 14px; border-radius: 999px; background: var(--jaune-pale); color: var(--texte); box-shadow: inset 0 0 0 1px var(--jaune); white-space: nowrap; }
.statut.ok { background: var(--bleu-pale); box-shadow: none; }
.ecole dl { margin: 12px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 14px; }
.ecole dt { color: var(--texte-doux); }
.ecole dd { margin: 0; font-weight: 600; }
.formulaire { background: var(--blanc); padding: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.formulaire .plein { grid-column: 1 / -1; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-weight: 700; font-size: 14.5px; }
.champ .aide { font-size: 13px; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea { min-height: 48px; border: 1px solid var(--sur-fonce); padding: 10px 14px; font-size: 16px; background: var(--blanc); border-radius: 0; }
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--bleu-piv); }
.message { padding: 14px 18px; font-weight: 650; }
.message.ok { background: var(--bleu-pale); }
.message.attention { background: var(--jaune-pale); box-shadow: inset 4px 0 0 var(--jaune); }
.vide { background: var(--blanc); padding: 36px; text-align: center; color: var(--texte-doux); }

/* ---------- Méthodologie ---------- */
.texte { max-width: 820px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.6; }
.texte h2 { font-size: 28px; font-weight: 800; margin-top: 28px; }
.texte h3 { font-size: 20px; font-weight: 800; margin-top: 12px; }
.texte ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Animation d'entrée ---------- */
.apparait { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.apparait.vu { opacity: 1; transform: none; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 980px) {
  .ecran-carte { grid-template-columns: 1fr; }
  .panneau { border-right: 0; border-bottom: 1px solid var(--ligne); }
  .zone-carte { min-height: 520px; }
  .disposition-filtres { grid-template-columns: 1fr; }
  .filtres { position: static; }
  .pied-int { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .recens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --marge: 18px; }
  .entete-int { padding-top: 12px; padding-bottom: 6px; }
  .logo { height: 42px; }
  .marque-texte { padding-left: 12px; }
  .marque-sous { display: none; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -6px; }
  .nav a { white-space: nowrap; font-size: 14.5px; padding: 10px 10px 8px; }
  .heros-int { padding-top: 44px; padding-bottom: 40px; }
  .bloc, .encadre, .formulaire { padding: 24px 20px; }
  .formulaire { grid-template-columns: 1fr; }
  .histo-barres { gap: 1px; height: 220px; }
  .histo-axe { gap: 1px; font-size: 11px; }
  .mesure { border-left: 0; border-top: 1px solid var(--ligne); }
  .ecole { grid-template-columns: 1fr; padding: 20px; }
  .ecole .meta { align-items: flex-start; text-align: left; }
  .nom-pays img { width: 54px; height: 40px; }
  .fiche-flottante { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .apparait { opacity: 1; transform: none; }
  .histo.anime .b { transform: none; }
}
.fiche-flottante .fiche-chiffre { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 4px; border-top: 1px solid var(--ligne); }
.fiche-flottante .fiche-chiffre .chiffre { font-size: 44px; color: var(--bleu-piv); }
.fiche-flottante .fiche-chiffre .quoi { font-size: 15px; font-weight: 600; }

/* ---------- Asile et résidence temporaire ---------- */
.choix-annee { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--texte-doux); }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tuile { background: var(--gris-pale); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.tuile.forte { background: var(--bleu-piv); color: var(--blanc); }
.tuile .v { font-family: var(--titre); font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tuile .v .nr { font-size: 15px; font-weight: 600; }
.tuile.forte .v .nr { color: var(--sur-piv); }
.tuile .l { font-size: 14px; font-weight: 600; line-height: 1.3; }
.taux { font-size: 15px; }
.sous-titre { font-size: 18px; font-weight: 700; margin-top: 10px; }
.etincelle.grande { height: 110px; }
.grille-temporaires { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.grille-temporaires .chiffre { font-size: 40px; color: var(--bleu-piv); }
.grille-temporaires .l { font-size: 14px; color: var(--texte-doux); line-height: 1.35; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo > div { display: flex; flex-direction: column; gap: 6px; }
.barres-h.compacte { gap: 10px; }
.barres-h.compacte .barre-h .nom { font-size: 14px; font-weight: 600; }
.barres-h.compacte .barre-h .val { font-size: 15px; }
.barres-h.compacte .barre-h .piste { height: 10px; }

.grille-detention { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.carte-detention { border: 1px solid var(--ligne); padding: 18px 20px; }
.carte-detention h3 { font-size: 17px; margin-bottom: 6px; }
.carte-detention .tableau { font-size: 14px; }
.carte-detention .tableau td, .carte-detention .tableau th { padding: 7px 6px; }
.tableau-asile td, .tableau-asile th { white-space: nowrap; }
.heros .choix-annee .choix { color: var(--texte); }

/* ---------- Barre des années (carte du monde) ---------- */
.barre-annees { background: var(--blanc); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 22px 22px; border-bottom: 1px solid var(--ligne); box-shadow: 0 1px 3px rgba(34, 54, 84, 0.12); }
.barre-annees .lecture { width: 48px; height: 48px; flex: none; border: 0; background: var(--bleu-piv); color: var(--blanc); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.barre-annees .lecture svg { width: 22px; height: 22px; fill: currentColor; }
.barre-annees .lecture:hover { background: var(--bleu-fonce); }
.barre-annees .lecture:disabled { background: var(--gris-clair); cursor: default; }
.annee-courante { display: flex; flex-direction: column; min-width: 120px; }
.annee-courante output { font-family: var(--titre); font-size: 34px; font-weight: 800; line-height: 1; color: var(--bleu-fonce); font-variant-numeric: tabular-nums; }
.annee-courante span { font-size: 13px; color: var(--texte-doux); min-height: 17px; }
.curseur { flex: 1 1 360px; position: relative; padding-bottom: 20px; }
.curseur input[type=range] { width: 100%; height: 32px; accent-color: var(--bleu-piv); cursor: pointer; margin: 0; }
.curseur input[type=range]:disabled { cursor: default; opacity: 0.5; }
.graduations { position: absolute; left: 8px; right: 8px; bottom: 0; height: 18px; }
.graduations span { position: absolute; transform: translateX(-50%); font-size: 12.5px; color: var(--texte-doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.barre-annees.inactive .curseur, .barre-annees.inactive .annee-courante output { opacity: 0.45; }
.fiche-serie { display: flex; flex-direction: column; gap: 6px; }
.fiche-barres { display: flex; align-items: flex-end; gap: 2px; height: 80px; border-bottom: 1px solid var(--gris-clair); }
.fiche-barres button { flex: 1 1 0; min-width: 2px; padding: 0; border: 0; background: var(--bleu-clair); cursor: pointer; }
.fiche-barres button:hover { background: var(--bleu-fonce); }
.fiche-barres button.choisie { background: var(--accent); }
.fiche-barres button.nd { background: var(--gris-clair); }
.fiche-detail summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--bleu-piv); min-height: 32px; display: flex; align-items: center; }
.fiche-detail dl { margin: 6px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; font-size: 14px; max-height: 190px; overflow-y: auto; padding-right: 6px; }
.fiche-detail dt { color: var(--texte-doux); }
.fiche-detail dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fiche-flottante { max-height: calc(100% - 40px); overflow-y: auto; }
.couches { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.couches legend { margin-bottom: 8px; }
.formulaire > * { min-width: 0; }
.champ input, .champ select, .champ textarea { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 980px) {
  .ecran-carte .zone-carte { order: -1; }
  .choix-indicateur { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .choix-indicateur .etiquette { grid-column: 1 / -1; }
}

.ecole.surlignee { box-shadow: inset 0 0 0 3px var(--accent); }
/* Tableaux asile et temporaires dans la fiche du pays (carte du monde) */
.fiche-flottante { width: 430px; }
.fiche-temporaires { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--ligne); padding-top: 10px; }
.fiche-temporaires details { border-bottom: 1px solid var(--ligne); }
.fiche-temporaires summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--bleu-piv); min-height: 40px; display: flex; align-items: center; }
.fiche-temporaires .defile { max-height: 230px; overflow: auto; }
.tableau-fiche { font-size: 13px; }
.tableau-fiche th, .tableau-fiche td { padding: 5px 6px; white-space: nowrap; }
.tableau-fiche thead th { position: sticky; top: 0; background: var(--blanc); font-size: 11px; letter-spacing: 0.04em; }
.tableau-fiche tbody th { font-weight: 600; text-align: left; }
.tableau-fiche tr.choisie th, .tableau-fiche tr.choisie td { background: #fbe3de; }
.fiche-temporaires .source { font-size: 12px; margin: 6px 0 8px; }
@media (max-width: 720px) { .fiche-flottante { width: auto; } }

/* Commandes de déplacement des cartes */
.maplibregl-ctrl-group.commandes-carte { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 34px); background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 4px rgba(34, 54, 84, 0.3); }
.maplibregl-ctrl-group.commandes-carte button { width: 34px; height: 34px; border: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; color: var(--bleu-fonce); background: transparent; cursor: pointer; }
.maplibregl-ctrl-group.commandes-carte button + button { border-top: 0; }
.maplibregl-ctrl-group.commandes-carte button:hover { background: var(--bleu-pale); }
.maplibregl-ctrl-group.commandes-carte button.origine { background: var(--bleu-piv); color: var(--blanc); }
.maplibregl-ctrl-group.commandes-carte button.origine:hover { background: var(--bleu-fonce); }
.maplibregl-ctrl-group.commandes-carte svg { width: 18px; height: 18px; fill: currentColor; }
.zone-carte:fullscreen { background: var(--bleu-pale); }
.zone-carte:fullscreen #carte { position: absolute; inset: 0; }
/* Carte du monde : la carte s arrete avec le panneau des indicateurs, la legende passe dessous */
.ecran-carte .zone-carte { min-height: 560px; }
.legende-bas { background: var(--blanc); border-top: 1px solid var(--ligne); padding: 18px 24px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 3px rgba(34, 54, 84, 0.12); }
.legende-bas .legende-carte { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.legende-bas .legende-carte .etiquette { margin-right: 4px; }
.legende-bas .legende-carte .source { flex-basis: 100%; }
.legende-bas .rampe { width: 260px; }
.legende-bas .rampe-etiq { width: 260px; }
.legende-bas > .source { border-top: 1px solid var(--ligne); padding-top: 10px; }
