/* Leonida Atlas — thème nuit tropicale. */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #0f0c1d;
  --fond-2: #151129;
  --surface: #1c1735;
  --surface-2: #261f45;
  --trait: #352c5c;
  --texte: #f3f0ff;
  --texte-2: #b9b2d6;
  --texte-3: #8d86ad;
  --rose: #ff4fa3;
  --orange: #ff9a3c;
  --cyan: #3fe0e6;
  --vert: #5be39a;
  --jaune: #ffd166;
  --rouge: #ff6b6b;
  --degrade: linear-gradient(100deg, #ff4fa3, #ff9a3c);
  --rayon: 14px;
  --rayon-s: 9px;
  --ombre: 0 10px 34px rgba(4, 2, 14, .55);
  --barre: 58px;
  --dock: 0px;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titre: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barre) + 16px); }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.55 var(--police); min-height: 100dvh; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--titre); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--cyan); }
ul, ol { margin: 0 0 .8em; padding-left: 1.2em; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.evitement { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 3000; }
.evitement:focus { left: 8px; }
.ico { display: inline-flex; flex: none; }
.ico svg { display: block; }

/* ---------- barre et navigation ---------- */
.barre { position: sticky; top: 0; z-index: 1200; height: var(--barre); display: flex; align-items: center; gap: 20px; padding: 0 max(16px, env(safe-area-inset-left)); background: rgba(15, 12, 29, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--trait); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); flex: none; }
.marque-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--degrade); position: relative; box-shadow: 0 0 18px rgba(255, 79, 163, .45); }
.marque-logo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: #120e20; transform: translate(-50%, -60%) rotate(-45deg); }
.marque-texte { display: flex; flex-direction: column; line-height: 1.05; }
.marque-texte b { font-family: var(--titre); font-weight: 400; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.marque-texte small { color: var(--texte-3); font-size: .7rem; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav a { color: var(--texte-2); text-decoration: none; padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav a:hover { color: var(--texte); background: var(--surface); }
.nav a.actif { color: #fff; background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--rose); }
.nav a.discret { color: var(--texte-3); font-weight: 500; }
.dock, .menu-plus { display: none; }

/* ---------- pages ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.page-tete h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.chapo { color: var(--texte-2); font-size: 1.08rem; max-width: 70ch; }
.chargement { padding: 60px 20px; text-align: center; color: var(--texte-3); }
.bloc { margin-top: 38px; }
.bloc > h2, .bloc-tete h2 { font-size: 1.6rem; margin: 0; }
.bloc > h2 { margin-bottom: 16px; }
.bloc h3 { margin-top: 1.1em; }
.bloc-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.lien-plus { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.lien-plus:hover { text-decoration: underline; }
.discret { color: var(--texte-3); font-size: .9rem; }
.petit-texte { font-size: .8rem; }
.meta { color: var(--texte-3); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: .4em; }
.source { color: var(--texte-3); font-size: .8rem; text-decoration: none; white-space: nowrap; }
.source:hover { color: var(--cyan); text-decoration: underline; }
.sources { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 6px; }
.etat-vide { color: var(--texte-3); background: var(--fond-2); border: 1px dashed var(--trait); border-radius: var(--rayon); padding: 22px; text-align: center; }
.etat-vide p { margin: 0; }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--trait); background: var(--surface); color: var(--texte); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; min-height: 40px; }
.bouton:hover { background: var(--surface-2); border-color: #4b3f80; }
.bouton.principal { background: var(--degrade); border-color: transparent; color: #1a0f1f; }
.bouton.principal:hover { filter: brightness(1.08); }
.bouton.fait { background: rgba(91, 227, 154, .16); border-color: var(--vert); color: var(--vert); }
.bouton.danger { color: var(--rouge); border-color: rgba(255, 107, 107, .5); }
.bouton.grand { padding: 13px 20px; font-size: 1rem; min-height: 48px; }
.bouton.petit { padding: 5px 10px; font-size: .8rem; min-height: 32px; border-radius: 8px; }
.bouton-icone { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: var(--texte-2); cursor: pointer; flex: none; }
.bouton-icone:hover { background: var(--surface-2); color: var(--texte); }
.groupe-boutons { display: flex; flex-wrap: wrap; gap: 6px; }

.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.puce { border: 1px solid var(--trait); background: var(--fond-2); color: var(--texte-2); border-radius: 999px; padding: 5px 12px; font-size: .84rem; font-weight: 600; cursor: pointer; min-height: 32px; }
.puce:hover { color: var(--texte); border-color: #4b3f80; }
.puce[aria-pressed="true"] { background: var(--surface-2); color: #fff; border-color: var(--rose); }
.puce[aria-pressed="true"]::before { content: "✓ "; color: var(--rose); }
.sommaire { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.sommaire .puce::before { content: none; }

.etiquette { display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 8px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); color: var(--texte-2); }
.etiquette[data-v="officiel"], .etiquette[data-v="vérifié"], .etiquette[data-v="élevée"], .etiquette[data-v="corrigé"] { background: rgba(91, 227, 154, .16); color: var(--vert); }
.etiquette[data-v="rumeur"], .etiquette[data-v="moyenne"], .etiquette[data-v="plusieurs sources"], .etiquette[data-v="contournement"] { background: rgba(255, 209, 102, .16); color: var(--jaune); }
.etiquette[data-v="faible"], .etiquette[data-v="une seule source"], .etiquette[data-v="mythe/théorie"], .etiquette[data-v="ouvert"] { background: rgba(255, 154, 60, .16); color: var(--orange); }
.etiquette[data-v="démenti"] { background: rgba(255, 107, 107, .16); color: var(--rouge); }
.ligne-etiquettes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }

.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.carte, .carte-actu { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.carte h3, .carte-actu h3 { margin-top: 0; }
.carte p:last-child { margin-bottom: 0; }
.carte.officiel { border-left: 3px solid var(--vert); }
.prix { color: var(--orange); font-weight: 700; }
.note { font-family: var(--titre); font-size: 1.7rem; color: var(--jaune); margin: 0; }
.grille-actus { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.liste-courte { padding-left: 1.1em; color: var(--texte-2); font-size: .93rem; }
.liste-faits { list-style: none; padding: 0; display: grid; gap: 8px; }
.liste-faits li { background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 10px 14px; overflow-wrap: anywhere; }
.encart { background: var(--fond-2); border: 1px solid var(--trait); border-left: 3px solid var(--cyan); border-radius: var(--rayon-s); padding: 12px 14px; margin: 12px 0; }
.encart h3 { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan); }
.encart p:last-child { margin: 0; }
details { background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 10px 14px; margin: 8px 0; }
details > summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: 8px; }
.spoiler { border-color: rgba(255, 154, 60, .5); }
.faq details { background: var(--surface); }

.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.deux-colonnes .grille-actus { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.colonne { display: grid; gap: 0; }
.encadre { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; }
.encadre h2 { font-size: 1.25rem; }
.echeances { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.echeances li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: .92rem; }
.echeance-date { color: var(--orange); font-weight: 700; }

.bandeau-etat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; margin-top: 24px; }
.bandeau-etat > div { background: var(--surface); padding: 12px 16px; display: flex; flex-direction: column; min-width: 0; }
.bandeau-etat span { color: var(--texte-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.bandeau-etat b { font-size: 1rem; overflow-wrap: anywhere; }

.fiche-jeu { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; margin: 0; }
.fiche-jeu > div { background: var(--surface); padding: 12px 16px; min-width: 0; }
.fiche-jeu dt { color: var(--texte-3); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fiche-jeu dd { margin: 2px 0 0; overflow-wrap: anywhere; }

.frise { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--trait); }
.frise > li { position: relative; padding: 0 0 18px 20px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.frise > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--rose); border: 2px solid var(--fond); }
.frise-date { color: var(--orange); font-weight: 700; font-size: .9rem; }
.frise p { margin: 4px 0 0; color: var(--texte-2); }
.frise-large article { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px; min-width: 0; }
.frise-large h3 { margin-top: 0; }

.scores { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.score { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 20px; display: flex; flex-direction: column; align-items: center; min-width: 130px; }
.score b { font-family: var(--titre); font-size: 2.4rem; font-weight: 400; color: var(--vert); line-height: 1; }
.table-defilante { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--trait); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }
td.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }

.pastille { display: inline-grid; place-items: center; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #120e20; }
.grille-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.theme { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px 14px; text-decoration: none; color: var(--texte); min-width: 0; }
.theme:hover { border-color: var(--rose); background: var(--surface-2); }
.theme span:last-child { display: flex; flex-direction: column; min-width: 0; }
.theme small { color: var(--texte-3); }
.carte.guide { align-self: start; }
.guide-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.guide-tete h3 { margin: 0; }
.guide-tete .meta { margin: 0; }

.jauge { height: 8px; background: var(--fond); border-radius: 99px; overflow: hidden; border: 1px solid var(--trait); }
.jauge span { display: block; height: 100%; background: var(--degrade); border-radius: 99px; min-width: 0; }
.jauge.fine { height: 6px; margin: 4px 0; }
.progression-globale { display: grid; gap: 6px; }
.progression-texte { display: flex; justify-content: space-between; gap: 8px; font-size: .84rem; color: var(--texte-2); }
.progression-texte b { color: var(--texte); }
.progression-globale.grande { max-width: 520px; margin-bottom: 12px; }
.pied { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--trait); color: var(--texte-3); font-size: .84rem; }

/* ---------- accueil ---------- */
.page-accueil { padding-top: 0; }
.hero { position: relative; margin: 0 -20px; padding: 64px 20px 40px; overflow: hidden; border-bottom: 1px solid var(--trait); }
.hero-fond { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(15, 12, 29, .25) 0%, rgba(15, 12, 29, .82) 62%, var(--fond) 100%),
  radial-gradient(900px 420px at 78% 0%, rgba(255, 79, 163, .55), transparent 70%),
  radial-gradient(700px 380px at 12% 10%, rgba(255, 154, 60, .45), transparent 70%),
  url("../img/hero.jpg") center 38% / cover no-repeat; }
.hero-contenu { position: relative; max-width: 1140px; margin: 0 auto; }
.surtitre { color: var(--jaune); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 6rem); line-height: .98; margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero h1 em { font-style: normal; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .chapo { color: #e6e0ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; max-width: 820px; }
.chiffres > div { background: rgba(28, 23, 53, .78); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px 16px; display: flex; flex-direction: column-reverse; backdrop-filter: blur(6px); }
.chiffres dt { color: var(--texte-2); font-size: .8rem; }
.chiffres dd { margin: 0; font-family: var(--titre); font-size: 1.9rem; line-height: 1.1; }

/* ---------- carte ---------- */
body.mode-carte { overflow: hidden; }
body.mode-carte main { height: calc(100dvh - var(--barre) - var(--dock)); }
.carte-coque { display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; position: relative; }
.carte-coque.panneau-ouvert { grid-template-columns: 368px minmax(0, 1fr); }
.panneau { background: var(--fond-2); border-right: 1px solid var(--trait); display: none; flex-direction: column; min-height: 0; overflow: hidden; }
.panneau-ouvert .panneau { display: flex; }
.panneau-tete { padding: 12px 14px; border-bottom: 1px solid var(--trait); display: grid; gap: 10px; flex: none; }
.panneau-titre { display: flex; align-items: center; justify-content: space-between; }
.panneau-titre h1 { font-size: 1.25rem; margin: 0; }
.panneau-defilant { overflow-y: auto; flex: 1; min-height: 0; padding: 12px 14px 30px; overscroll-behavior: contain; }
.champ-recherche { display: flex; align-items: center; gap: 8px; background: var(--fond); border: 1px solid var(--trait); border-radius: 10px; padding: 0 12px; color: var(--texte-3); }
.champ-recherche:focus-within { border-color: var(--cyan); }
.champ-recherche input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; outline: 0; color: var(--texte); font-size: 1rem; }
.champ-recherche.large { max-width: 520px; margin-bottom: 14px; }
.filtres-rapides { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--trait); }
.champ-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; font-size: .9rem; color: var(--texte-2); }
select { background: var(--fond); border: 1px solid var(--trait); border-radius: 8px; padding: 8px 10px; min-height: 38px; }
.case { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; color: var(--texte-2); cursor: pointer; }
.case input { width: 18px; height: 18px; accent-color: var(--rose); margin: 2px 0 0; flex: none; }
.groupe { margin-top: 16px; }
.groupe-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.groupe-tete h2 { font-family: var(--police); font-weight: 700; font-size: .78rem; letter-spacing: .1em; color: var(--texte-3); margin: 0; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-radius: 9px; }
.cat-bascule { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; background: transparent; border: 0; padding: 6px 8px; border-radius: 9px; cursor: pointer; text-align: left; min-height: 40px; color: var(--texte-3); }
.cat-bascule:hover { background: var(--surface); }
.cat-bascule .pastille { opacity: .32; filter: grayscale(.8); }
.cat.active .cat-bascule { color: var(--texte); }
.cat.active .cat-bascule .pastille { opacity: 1; filter: none; }
.cat-nom { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat:not(.active) .cat-nom { text-decoration: line-through; text-decoration-color: rgba(141, 134, 173, .5); }
.cat-compte { font-size: .78rem; color: var(--texte-3); font-variant-numeric: tabular-nums; }
.cat-plus[aria-expanded="true"] .ico { transform: rotate(90deg); }
.cat-detail { grid-column: 1 / -1; padding: 6px 8px 12px 40px; display: grid; gap: 8px; }
.cat-detail .puces { margin: 0; }
.cat-detail .puce { font-size: .76rem; padding: 3px 9px; min-height: 28px; }
.segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fond); border: 1px solid var(--trait); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 10px; }
.segments button { border: 0; background: transparent; border-radius: 7px; padding: 7px 6px; font-weight: 600; font-size: .84rem; color: var(--texte-2); cursor: pointer; min-height: 36px; }
.segments button[aria-checked="true"] { background: var(--surface-2); color: #fff; box-shadow: inset 0 -2px 0 var(--rose); }
.resultats-tete { display: grid; gap: 8px; margin-bottom: 10px; justify-items: start; }
.resultats-tete h2 { font-family: var(--police); font-weight: 700; font-size: .95rem; text-transform: none; letter-spacing: 0; margin: 0; }
.resultats { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 2px; }
.resultats button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; background: transparent; border: 0; border-radius: 9px; padding: 7px 8px; text-align: left; cursor: pointer; min-height: 44px; }
.resultats button:hover, .resultats button:focus-visible { background: var(--surface); }
.res-texte { display: flex; flex-direction: column; min-width: 0; }
.res-texte b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-texte small { color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-fait { color: var(--vert); }

.carte-zone { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.carte-fond { position: absolute; inset: 0; background: #2f90b0; z-index: 0; }
.leaflet-container { font: inherit; background: transparent; }
.couche-points { position: absolute; left: 0; top: 0; pointer-events: none; }
.leaflet-control-attribution { background: rgba(15, 12, 29, .8) !important; color: var(--texte-2) !important; font-size: .68rem !important; border-radius: 8px 0 0 0; }
.leaflet-control-attribution a { color: var(--cyan) !important; }
.leaflet-bar { border: 1px solid var(--trait) !important; box-shadow: var(--ombre) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-bar a { background: var(--surface) !important; color: var(--texte) !important; border-bottom-color: var(--trait) !important; width: 38px !important; height: 38px !important; line-height: 38px !important; }
.leaflet-bar a:hover { background: var(--surface-2) !important; }
.carte-outils { position: absolute; z-index: 800; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.carte-outils > * { pointer-events: auto; }
.bouton-carte { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--texte); border: 1px solid var(--trait); border-radius: 10px; padding: 9px 13px; font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: var(--ombre); min-height: 42px; }
.panneau-ouvert .ouvrir-panneau { display: none; }
.compteur-carte { background: rgba(15, 12, 29, .82); color: var(--texte-2); border-radius: 99px; padding: 5px 12px; font-size: .78rem; font-weight: 600; }
.infobulle { position: absolute; left: 0; top: 0; z-index: 900; pointer-events: none; background: rgba(15, 12, 29, .95); border: 1px solid var(--trait); border-radius: 9px; padding: 6px 10px; display: flex; flex-direction: column; max-width: 260px; box-shadow: var(--ombre); }
.infobulle b { font-size: .86rem; }
.infobulle span { font-size: .74rem; color: var(--texte-3); }

.fiche { position: absolute; z-index: 850; right: 12px; top: 12px; bottom: 12px; width: min(390px, calc(100% - 24px)); background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); display: flex; flex-direction: column; overflow: hidden; max-height: calc(100% - 24px); height: fit-content; }
.fiche-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--trait); flex: none; }
.fiche-cat { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); min-width: 0; }
.fiche-corps { padding: 14px; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.fiche-corps h2 { font-size: 1.5rem; margin-bottom: 4px; }
.fiche-sous { color: var(--texte-3); font-size: .86rem; }
.capture { display: block; margin: 10px 0; border-radius: var(--rayon-s); overflow: hidden; border: 1px solid var(--trait); background: var(--fond); min-height: 60px; }
.capture img { width: 100%; height: auto; }
.statut { display: inline-flex; gap: 6px; align-items: center; border-radius: 7px; padding: 3px 9px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--jaune); }
.statut[data-statut="vérifié"] { color: var(--vert); }
.statut[data-statut="démenti"] { color: var(--rouge); }
.puce-info { font-size: .86rem; color: var(--texte-2); }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.fiche-liens h3 { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); margin: 0 0 4px; }
.fiche-liens ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fiche-pied { color: var(--texte-3); font-size: .72rem; margin: 10px 0 0; }

.annonce { position: fixed; left: 50%; bottom: calc(var(--dock) + 22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #fff; color: #17122b; font-weight: 600; padding: 9px 16px; border-radius: 99px; box-shadow: var(--ombre); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 3000; font-size: .9rem; max-width: calc(100vw - 32px); }
.annonce.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- écrans moyens ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 8px 9px; font-size: .86rem; }
  .marque-texte small { display: none; }
  .carte-coque.panneau-ouvert { grid-template-columns: 330px minmax(0, 1fr); }
}

/* ---------- écrans étroits : dock en bas, panneaux en feuilles ---------- */
@media (max-width: 860px) {
  :root { --barre: 50px; --dock: calc(58px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .barre { justify-content: center; }
  .marque-logo { width: 28px; height: 28px; border-radius: 8px; }
  body { padding-bottom: var(--dock); }
  body.mode-carte { padding-bottom: 0; }
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: var(--dock); padding-bottom: env(safe-area-inset-bottom); background: rgba(15, 12, 29, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--trait); z-index: 1300; }
  .dock a, .dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--texte-3); text-decoration: none; font-size: .66rem; font-weight: 600; background: transparent; border: 0; cursor: pointer; min-width: 0; }
  .dock span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .dock .actif { color: var(--rose); }
  .menu-plus { display: grid; position: fixed; right: 8px; bottom: calc(var(--dock) + 8px); background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 6px; z-index: 1400; min-width: 210px; }
  .menu-plus a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--texte); text-decoration: none; font-weight: 600; border-radius: 9px; }
  .menu-plus a:hover { background: var(--surface-2); }
  .page { padding: 20px 16px 40px; }
  .page.page-accueil { padding-top: 0; }
  .hero { margin: 0 -16px; padding: 40px 16px 28px; }
  .deux-colonnes { grid-template-columns: minmax(0, 1fr); }
  .frise > li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bloc > h2, .bloc-tete h2 { font-size: 1.4rem; }

  .carte-coque, .carte-coque.panneau-ouvert { grid-template-columns: minmax(0, 1fr); }
  .panneau { position: absolute; inset: 0; z-index: 1000; border-right: 0; }
  .fiche { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 58%; }
  .fiche-corps h2 { font-size: 1.3rem; }
  .carte-outils { left: 8px; top: 8px; right: 8px; flex-wrap: wrap; }
  .leaflet-bottom.leaflet-right .leaflet-control-zoom { display: none; }
  .fiche-ouverte .leaflet-control-attribution { display: none; }
}
@media (min-width: 861px) {
  .fermer-panneau { display: none; }
  .carte-coque.panneau-ouvert .carte-outils::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
