/* Feuille de style du site — identité validée le 10/10/2026 (couleurs de la maquette A, titres Bricolage Grotesque, texte Atkinson Hyperlegible).
   Polices : polices.css (hébergées sur le site). Aucun style inline : la CSP l'interdit (style-src 'self'). */
:root {
  --encre: #17233F;       /* texte, titres */
  --encre-2: #4A5672;     /* texte secondaire */
  --fond: #F4F7F6;        /* fond de page */
  --papier: #FFFFFF;      /* surfaces */
  --trait: #D9E0DD;
  --prairie: #1F7A4D;     /* action principale, liens */
  --prairie-clair: #E3F1E9;
  --prairie-encre: #15573A;
  --soleil: #F5C542;      /* mise en avant */
  --pluie: #3D6FB6;       /* focus, « s'il pleut » */
  --pluie-clair: #E2ECF8;
  --pluie-encre: #234C86;
  --ambre-clair: #FDF0D5;
  --ambre-encre: #7A5300;
  --titre: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --encre: #E8ECF3; --encre-2: #A9B3C6; --fond: #10161F; --papier: #18202D; --trait: #2B3546;
    --prairie: #5CC48E; --prairie-clair: #17352A; --prairie-encre: #8FDDB2;
    --pluie: #7FA8E6; --pluie-clair: #1C2B44; --pluie-encre: #B5CDF2;
    --ambre-clair: #3A2F12; --ambre-encre: #F2D48A;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); }
a { color: var(--prairie); }
:focus-visible { outline: 3px solid var(--pluie); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.15; text-wrap: balance; letter-spacing: -.01em; }
.saut { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--papier); padding: .6rem 1rem; z-index: 20; }
.saut:focus { left: 1rem; top: 1rem; }
.env { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .env { padding-inline: 32px; } }

/* En-tête */
.entete { background: var(--papier); border-bottom: 1px solid var(--trait); }
.entete .env { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.marque { font: 800 1.2rem/1 var(--titre); text-decoration: none; color: var(--encre); display: flex; align-items: center; gap: .5rem; }
.nav-haut { margin-left: auto; display: none; gap: 1.5rem; font-weight: 700; font-size: .95rem; }
.nav-haut a { text-decoration: none; color: var(--encre); }
.nav-haut a[aria-current] { color: var(--prairie); }
.langue { margin-left: auto; border: 1px solid var(--trait); border-radius: 99px; padding: .35rem .75rem; background: none; font: 700 .9rem/1 var(--texte); color: var(--encre); min-height: 40px; }
@media (min-width: 860px) { .nav-haut { display: flex; } .langue { margin-left: 0; } }

/* Fil d'Ariane */
.ariane { font-size: .9rem; color: var(--encre-2); padding-block: .9rem .2rem; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .4rem; }
.ariane li + li::before { content: "/"; margin-right: .4rem; color: var(--trait); }
.ariane a { color: var(--encre-2); }

/* Boutons, badges */
.bouton { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.2rem; border-radius: 99px; border: 0; background: var(--prairie); color: #fff; font: 700 1rem/1 var(--texte); text-decoration: none; cursor: pointer; }
.bouton.second { background: var(--papier); color: var(--encre); border: 2px solid var(--trait); }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { display: inline-block; font: 700 .82rem/1 var(--texte); padding: .4rem .6rem; border-radius: 6px; background: var(--prairie-clair); color: var(--prairie-encre); }
.badge.bleu { background: var(--pluie-clair); color: var(--pluie-encre); }
.badge.ambre { background: var(--ambre-clair); color: var(--ambre-encre); }

/* Bloc « En bref » : réponse courte, datée, citable */
.en-bref { background: var(--papier); border: 1px solid var(--trait); border-left: 5px solid var(--prairie); border-radius: 0 var(--r) var(--r) 0; padding: 1rem 1.2rem; }
.en-bref h2 { font-size: 1rem; font-family: var(--texte); margin: 0 0 .3rem; letter-spacing: 0; }
.en-bref p { margin: 0; max-width: 68ch; }
.maj { font-size: .88rem; color: var(--encre-2); margin: .5rem 0 0; }

/* Cartes de sortie (comme la maquette A) */
.sorties { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sorties { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sorties { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sortie { position: relative; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.sortie .visuel { aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255,255,255,.85); position: relative; }
.sortie .visuel svg { width: 52px; height: 52px; }
.sortie .moment { position: absolute; left: .7rem; top: .7rem; background: var(--papier); color: var(--encre); font: 700 .82rem/1 var(--texte); padding: .4rem .6rem; border-radius: 8px; }
.sortie .corps { padding: .9rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.sortie h3 { font-size: 1.15rem; margin: 0; }
.sortie h3 a { color: var(--encre); text-decoration: none; }
.sortie h3 a::after { content: ""; position: absolute; inset: 0; }
.sortie .infos { margin: 0; color: var(--encre-2); font-size: .95rem; }
.sortie .badges { margin-top: auto; }
.v1 { background: linear-gradient(160deg, #4F7FB8, #23466F); }
.v2 { background: linear-gradient(160deg, #6BAA75, #2D6B44); }
.v3 { background: linear-gradient(160deg, #C9894B, #7A4B22); }
.v4 { background: linear-gradient(160deg, #7C6FB0, #3E3471); }
.v5 { background: linear-gradient(160deg, #4AA3A2, #1F5E61); }
.v6 { background: linear-gradient(160deg, #B9677A, #6E2E3D); }

/* Sections */
.section { padding-block: 1.6rem; }
.section-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: 1rem; }
.section-tete h2 { font-size: 1.55rem; margin: 0; }
.section-tete p { margin: 0; color: var(--encre-2); }

/* FAQ */
.faq details { background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: .1rem 1.1rem; margin-bottom: .5rem; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: .8rem; min-height: 44px; }
.faq details p { margin: 0 0 1rem; max-width: 70ch; color: var(--encre-2); }

/* Tableaux */
.tableau { overflow-x: auto; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); }
.tableau table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .97rem; }
.tableau caption { text-align: left; font-weight: 700; padding: .9rem 1rem .3rem; }
.tableau th, .tableau td { text-align: left; padding: .65rem 1rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau thead th { font-size: .86rem; color: var(--encre-2); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pied et onglets mobiles */
.pied { background: #17233F; color: #DCE3EE; padding-block: 2rem 6rem; font-size: .95rem; margin-top: 2rem; }
.pied a { color: #fff; }
.pied p { margin: 0 0 .5rem; max-width: 70ch; }
@media (min-width: 860px) { .pied { padding-block: 2rem; } }
.onglets { position: fixed; left: 0; right: 0; bottom: 0; background: var(--papier); border-top: 1px solid var(--trait); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 5; }
.onglets a { display: grid; justify-items: center; gap: .15rem; padding: .55rem 0 .5rem; text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--encre-2); min-height: 56px; }
.onglets a[aria-current] { color: var(--prairie); }
.onglets svg { width: 22px; height: 22px; }
@media (min-width: 860px) { .onglets { display: none; } }

/* Menu des langues : un bouton « FR ▾ », la liste s'ouvre en dessous */
.langues { margin-left: auto; position: relative; }
.langues summary { list-style: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .2rem; padding: 0 .6rem;
  border: 1px solid var(--trait); border-radius: 99px; font: 700 .85rem/1 var(--texte); color: var(--encre); letter-spacing: .03em; cursor: pointer; }
.langues summary::-webkit-details-marker { display: none; }
.langues summary:focus-visible { outline: 3px solid var(--pluie); outline-offset: 2px; }
.langues .fleche { font-size: .7rem; }
.langues[open] .fleche { transform: rotate(180deg); }
.langues ul { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 9500; list-style: none; margin: 0; padding: .35rem; min-width: 11rem;
  background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 8px 24px rgba(23, 35, 63, .15); }
.langues li a { display: flex; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: 8px; color: var(--encre); text-decoration: none; font-weight: 600; }
.langues li a:hover { background: var(--fond); }
.langues li a[aria-current] { background: var(--encre); color: var(--papier); }
@media (min-width: 860px) { .langues { margin-left: 0; } }

/* Pages simples (erreurs, socle) */
.page-simple { padding-block: 3rem 4rem; max-width: 46rem; }
.page-simple h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
.page-simple p { max-width: 65ch; }
.page-simple .code { font: 800 1rem/1 var(--titre); color: var(--prairie); margin: 0 0 .5rem; }
.liens-utiles { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.recherche-simple { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.recherche-simple input { flex: 1 1 14rem; min-width: 0; min-height: 48px; border: 2px solid var(--trait); border-radius: 99px; padding: 0 1.1rem; font: inherit; color: var(--encre); background: var(--papier); }
.recherche-simple input:focus { border-color: var(--pluie); outline: none; }
.liste-verifs { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.liste-verifs li { background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: .7rem 1rem; }
.liste-verifs b { color: var(--prairie-encre); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Visuellement caché, lu par les lecteurs d'écran */
.vc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Pied de page en bas de l'écran, même sur une page courte */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }

/* ── Fiche lieu (maquette E) ───────────────────────────────── */
.photo { position: relative; margin: 0; aspect-ratio: 16 / 9; max-height: 480px; width: 100%; overflow: hidden; background: var(--trait); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .photo { aspect-ratio: 21 / 8; } }
.credit { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; padding: .2rem .45rem; border-radius: 4px; max-width: calc(100% - 1rem); }
.tete { padding-block: 1rem 0; display: grid; gap: .6rem; }
.tete h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0; }
.lieu-ou { margin: 0; color: var(--encre-2); }
.tete .badges { list-style: none; margin: 0; padding: 0; }
.mise-en-page { display: grid; gap: 1.5rem; padding-block: 1.2rem 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .mise-en-page { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.principal { display: grid; gap: 1.8rem; min-width: 0; grid-template-columns: minmax(0, 1fr); } /* jamais plus large que l'écran */
.principal h2 { font-size: 1.45rem; margin: 0 0 .7rem; }
.principal .en-bref h2 { font: 700 1rem/1.3 var(--texte); margin: 0 0 .4rem; letter-spacing: 0; }
.en-bref .resume { font-weight: 700; margin: 0 0 .6rem; }
.texte-long p { margin: 0 0 .7rem; max-width: 68ch; }
.traduit { font-size: .9rem; color: var(--encre-2); margin: .3rem 0 0; }
.famille { background: var(--papier); border: 2px solid var(--prairie); border-radius: var(--r); padding: 1rem 1.1rem; }
.verdicts { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
@media (min-width: 560px) { .verdicts { grid-template-columns: 1fr 1fr; } }
.verdicts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .5rem; align-items: start; }
.verdicts .rond { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--prairie-clair); color: var(--prairie-encre); }
.verdicts b { display: block; }
.verdicts .d { color: var(--encre-2); font-size: .93rem; }
.periode { background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: .7rem 1rem; margin-bottom: .5rem; }
.periode p { margin: 0; }
.periode-dates { font-weight: 700; }
.liste-simple { margin: 0; padding-left: 1.2rem; }
.liste-simple li { margin-bottom: .25rem; }
.liste-colonnes { margin: 0; padding-left: 1.2rem; columns: 2 14rem; column-gap: 2rem; }
.liste-colonnes li { break-inside: avoid; margin-bottom: .25rem; }
.liste-evts, .proches { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.liste-evts li, .proches li { background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: .7rem 1rem; display: grid; gap: .15rem; }
.liste-evts a, .proches a { font-weight: 700; color: var(--encre); }
.liste-evts .maj, .proches .maj { margin: 0; }
.pratique { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); padding: 1rem 1.1rem; display: grid; gap: .9rem; }
@media (min-width: 960px) { .pratique { position: sticky; top: 1rem; } }
.pratique h2 { font-size: 1.15rem; margin: 0; }
.pratique dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem .8rem; font-size: .96rem; }
.pratique dt { color: var(--encre-2); }
.pratique dd { margin: 0; overflow-wrap: anywhere; }
.pratique .bouton { width: 100%; }
.source { font-size: .9rem; color: var(--encre-2); border-top: 1px solid var(--trait); padding-top: 1rem; }
.source p { margin: 0; max-width: 75ch; }

/* ── Page ville (maquette F) ───────────────────────────────── */
.ouverture { display: grid; gap: 1rem; padding-block: .6rem 1rem; max-width: 52rem; }
.ouverture h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0; }
.ouverture .en-bref p { margin: 0; max-width: 68ch; }
.ouverture .en-bref .maj { margin-top: .5rem; }
.chiffres { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 0; padding: 0; list-style: none; color: var(--encre-2); font-size: .95rem; }
.chiffres b { color: var(--encre); font-variant-numeric: tabular-nums; }
.reponse { margin: -.4rem 0 1rem; color: var(--encre-2); }
.sortie .visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voisines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 760px) { .voisines { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tuile { display: grid; gap: .1rem; background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: .7rem .8rem; text-decoration: none; color: var(--encre); min-height: 64px; height: 100%; }
.tuile span { color: var(--encre-2); font-size: .88rem; font-variant-numeric: tabular-nums; }

/* Galerie de photos de la fiche */
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .6rem; }
.galerie figure { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--trait); }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; padding: .2rem .45rem; }

/* ── Phrase à compléter (maquette A) et recherche ──────────── */
.phrase { display: grid; gap: 1rem; }
.phrase-texte { font: 700 clamp(1.15rem, 3.2vw, 1.6rem)/2.1 var(--titre); margin: 0; max-width: 40em; }
.trou { font: inherit; font-size: .92em; line-height: 1.3; color: #17233F; background: var(--soleil); border: 0; border-radius: 10px; padding: .1rem .45rem; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); cursor: pointer; max-width: 100%; }
.trou:focus-visible { outline: 3px solid var(--pluie); outline-offset: 2px; }
.trou.ville { width: 11em; cursor: text; }
.trou.ville::placeholder { color: #5b5230; }
.trou.date { width: auto; }
.filtres { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.puce { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem; border-radius: 99px; border: 1px solid var(--trait); background: var(--papier); font-weight: 700; font-size: .93rem; cursor: pointer; }
.puce input { width: 20px; height: 20px; accent-color: var(--prairie); margin: 0; }
.puce:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
.phrase-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.recherche-tete { padding-block: 1.4rem .6rem; display: grid; gap: 1rem; }
.recherche-tete h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; }
.resume { font-weight: 700; margin: .8rem 0 0; }
.message { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); padding: 1rem 1.2rem; margin-block: 1rem; }
.message p { margin: 0 0 .6rem; }
.message p:last-child { margin: 0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.4rem; }

/* ── Accueil (maquette A) ─────────────────────────────────── */
.accueil-tete { padding-block: 2rem 1.6rem; display: grid; gap: 1.2rem; }
.accueil-tete h1 { font: 800 clamp(2rem, 6vw, 3.4rem)/1.08 var(--titre); letter-spacing: -.02em; margin: 0; max-width: 22ch; }
.pourquoi { margin-block: 1rem 2rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); padding: 1.2rem 1.3rem; }
.pourquoi h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.pourquoi p { margin: 0; color: var(--encre-2); max-width: 70ch; }

/* Labels */
.badge.label { background: #F4ECD8; color: #6B4A12; }
.badge a { color: inherit; }
.distinctions { list-style: none; margin: 0 0 1rem; padding: 0; }
.label-liste { background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: .1rem 1rem; margin-bottom: .5rem; }
.label-liste summary { cursor: pointer; font-weight: 700; padding-block: .7rem; min-height: 44px; }
.label-liste ul { margin: 0 0 .8rem; padding-left: 1.2rem; columns: 2 16rem; column-gap: 2rem; }
.label-liste li { break-inside: avoid; margin-bottom: .2rem; }

/* ── Fiche événement ──────────────────────────────────────── */
.mois-titre { font-weight: 700; color: var(--encre-2); margin: .8rem 0 .3rem; }
.liste-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.liste-dates li { background: var(--papier); border: 1px solid var(--trait); border-radius: 8px; padding: .35rem .65rem; font-size: .93rem; }
.feuille { border: 2px solid var(--prairie); border-radius: var(--r); padding: 1rem 1.1rem; background: var(--papier); }
.feuille h2 { margin-top: 0; }
.feuille form { display: grid; gap: 1rem; }
.feuille fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.feuille legend { font-weight: 700; margin-bottom: .45rem; padding: 0; }
.dates { display: flex; flex-wrap: wrap; gap: .4rem; }
.dates label { position: relative; }
.dates input { position: absolute; opacity: 0; }
.dates label > span { display: inline-flex; gap: .4rem; flex-wrap: wrap; align-items: center; min-height: 44px; padding: 0 .75rem; border: 2px solid var(--trait); border-radius: 10px; font-weight: 700; font-size: .92rem; cursor: pointer; }
.dates input:checked + span { border-color: var(--prairie); background: var(--prairie-clair); color: var(--prairie-encre); }
.dates input:focus-visible + span { outline: 3px solid var(--pluie); outline-offset: 2px; }
/* Cases à cocher (page du rappel : plusieurs dates possibles) : un carré visible, coché ✓ */
.dates input[type="checkbox"] + span::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; border: 2px solid var(--encre-2); border-radius: 4px; background: #fff; }
.dates input[type="checkbox"]:checked + span::before { content: "✓"; border-color: var(--prairie); background: var(--prairie); color: #fff; font-size: .8rem; line-height: 1.1rem; text-align: center; }
.cases { display: grid; gap: .1rem; }
.case { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.case input { width: 22px; height: 22px; accent-color: var(--prairie); margin: 0; }
.case.grisee { color: var(--encre-2); opacity: .6; cursor: not-allowed; }
.aide { font-size: .9rem; color: var(--encre-2); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Mes sorties */
.lien-favoris { margin-left: auto; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--encre); white-space: nowrap; }
.lien-favoris + .langues { margin-left: .5rem; }
.favoris { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.favoris li:not(.message) { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: .6rem 1rem; }
.favoris a { font-weight: 700; color: var(--encre); }
.bouton.petit { min-height: 36px; padding: 0 .8rem; font-size: .88rem; margin-left: auto; }

.prix-famille { font: 800 1.15rem/1.4 var(--titre); background: var(--prairie-clair); color: var(--prairie-encre); border-radius: 10px; padding: .7rem .9rem; margin: 0 0 .4rem; }

/* En-tête sur petit écran : logo seul, cœur pour « Mes sorties » */
.lien-favoris .coeur { display: none; color: #B4233C; font-size: 1.2rem; }
@media (max-width: 600px) {
  .entete .env { gap: .5rem; }
  .texte-large { display: none; }
  .lien-favoris .coeur { display: inline; }
}

/* ── Carte des labels ─────────────────────────────────────── */
.carte-cadre { display: grid; gap: 0; border-block: 1px solid var(--trait); background: var(--papier); }
@media (min-width: 900px) { .carte-cadre { grid-template-columns: 300px minmax(0, 1fr); height: min(78vh, 760px); } }
.carte-panneau { padding: 1rem; overflow-y: auto; max-height: 40vh; border-bottom: 1px solid var(--trait); }
@media (min-width: 900px) { .carte-panneau { max-height: none; border-bottom: 0; border-right: 1px solid var(--trait); } }
.carte-panneau h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.carte-groupe { border: 0; margin: 0 0 .8rem; padding: 0; }
.carte-groupe legend { font-weight: 700; font-size: .85rem; color: var(--encre-2); margin-bottom: .2rem; padding: 0; }
.avec-tout { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; }
/* Case « tout » : alignée sur les cases des calques (même colonne de 22 px à droite) */
.carte-tout { width: 20px; height: 20px; margin: 0 .1rem 0 0; flex: none; accent-color: var(--encre); cursor: pointer; }
.carte-zone { position: relative; }
.carte-chargement { position: absolute; z-index: 1000; left: 50%; top: 1rem; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem; border-radius: 99px; background: var(--papier); color: var(--encre); font-weight: 700; font-size: .9rem; box-shadow: 0 6px 20px rgba(23, 35, 63, .2); }
.carte-roue { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--prairie-clair); border-top-color: var(--prairie); }
@media (prefers-reduced-motion: no-preference) { .carte-roue { animation: carte-roue .8s linear infinite; } }
@keyframes carte-roue { to { transform: rotate(360deg); } }
.carte-calque { display: grid; grid-template-columns: 22px 20px minmax(0, 1fr) auto; gap: .45rem; align-items: center; min-height: 40px; cursor: pointer; font-size: .92rem; }
.carte-calque input { width: 20px; height: 20px; margin: 0; accent-color: var(--c, var(--prairie)); }
.carte-calque img { width: 20px; height: 20px; object-fit: contain; }
.carte-calque .pastille { width: 14px; height: 14px; border-radius: 50%; justify-self: center; }
.carte-calque .nb { color: var(--encre-2); font-variant-numeric: tabular-nums; font-size: .82rem; }
.carte-zone { min-height: 60vh; }
@media (min-width: 900px) { .carte-zone { min-height: 0; height: 100%; } }
.carte-epingle { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; border: 3px solid var(--c); display: grid; place-items: center; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.carte-epingle img { width: 20px; height: 20px; transform: rotate(45deg); object-fit: contain; }
.carte-bulle { display: grid; gap: .25rem; font: .92rem/1.4 var(--texte); min-width: 180px; }
.carte-bulle-label { justify-self: start; font-size: .75rem; font-weight: 700; color: #fff; background: var(--c); border-radius: 4px; padding: .1rem .4rem; }
.carte-bulle-info { color: #4A5672; }
.carte-bulle small { color: #6b7385; }
.carte-bouton a { font-size: 1.2rem; line-height: 30px; text-align: center; text-decoration: none; }
.leaflet-bar.carte-bouton a.carte-localiser { display: flex; align-items: center; justify-content: center; line-height: 1; color: #17233F; background: #fff; }

/* Pages de texte */
.page-texte { max-width: 46rem; padding-block: 2rem 3rem; }
.page-texte h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 .8rem; }
.page-texte .chapeau { font-size: 1.15rem; color: var(--encre-2); }
.page-texte h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.page-texte p { max-width: 68ch; }

/* JavaScript actif (classe posée dans <head>) : éléments masqués ou montrés AVANT le premier affichage (pas de décalage) */
.js .si-js-masque { display: none; }
.si-js { display: none; }
.js .si-js { display: inline-flex; }

/* Formulaires */
.formulaire { display: grid; gap: 1rem; max-width: 38rem; }
.champ { display: grid; gap: .35rem; }
.champ label { font-weight: 700; }
.champ input, .champ select, .champ textarea { font: inherit; color: var(--encre); background: var(--papier); border: 2px solid var(--trait); border-radius: 10px; padding: .7rem .9rem; min-height: 48px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--pluie); outline: none; }
.champ [aria-invalid="true"] { border-color: #B4233C; }
.erreur { color: #B4233C; font-weight: 700; margin: 0; }
.confirmation { background: var(--prairie-clair); color: var(--prairie-encre); border-radius: 10px; padding: .9rem 1rem; font-weight: 700; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Alertes et rappels par e-mail (lot 5) ── */
[hidden] { display: none !important; }
.js section.si-js, .js form.si-js, .js p.si-js, .js input.si-js { display: block; }
fieldset.champ { min-width: 0; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
fieldset.champ > legend:not(.vc) { font-weight: 800; font-size: 1.05rem; margin-bottom: .4rem; width: 100%; }
fieldset.champ > label:not(.puce):not(.vc), fieldset.champ > input, fieldset.champ > select, fieldset.champ > .rayon, fieldset.champ > p { width: 100%; }
fieldset.champ select[multiple] { min-height: 14rem; max-width: 100%; }
.alerte .rayon { display: flex; align-items: center; gap: .8rem; }
.alerte .rayon input[type="number"] { width: 6.5rem; }
.alerte .rayon input[type="range"] { flex: 1; accent-color: var(--prairie); min-height: 44px; }
.alerte .ligne, .ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.ligne input, .ligne select { font: inherit; border: 2px solid var(--trait); border-radius: 10px; padding: .5rem .7rem; min-height: 44px; background: var(--papier); color: var(--encre); }
.ligne input[type="email"], .ligne input[type="text"] { flex: 1 1 14rem; min-width: 0; }
.cartes-reglages { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: .6rem; }
.cartes-reglages li { display: grid; gap: .25rem; background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; padding: .9rem 1rem; }
.cartes-reglages .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.espace-alertes form { margin: .6rem 0; }
.espace-alertes .infos { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1rem; }
.espace-alertes .infos dt { font-weight: 700; }
.espace-alertes .infos dd { margin: 0; overflow-wrap: anywhere; }
.danger { border-top: 1px solid var(--trait); padding-top: 1rem; display: grid; gap: .6rem; justify-items: start; }
button.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--pluie); text-decoration: underline; cursor: pointer; text-align: left; }
#rappel fieldset input[type="email"] { font: inherit; border: 2px solid var(--trait); border-radius: 10px; padding: .6rem .8rem; min-height: 48px; width: 100%; max-width: 26rem; display: block; margin: .3rem 0 .6rem; background: var(--papier); color: var(--encre); }
.transfert { margin-top: 2rem; }

/* Carte des labels en plein écran (ou plein cadre sur iPhone) */
.carte-cadre.carte-plein { position: fixed; inset: 0; z-index: 10000; height: 100vh; height: 100dvh; grid-template-rows: auto minmax(0, 1fr); border: 0; }
@media (min-width: 900px) { .carte-cadre.carte-plein { grid-template-rows: none; } }
.carte-cadre.carte-plein .carte-panneau { max-height: 30vh; }
@media (min-width: 900px) { .carte-cadre.carte-plein .carte-panneau { max-height: none; } }
.carte-cadre.carte-plein .carte-zone { height: 100%; min-height: 0; }
html.carte-plein-actif, html.carte-plein-actif body { overflow: hidden; }

/* Page d'un label : logo à côté du titre, avec la mention des droits */
.label-titre { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.label-titre h1 { margin: 0; }
.label-logo { margin: 0; display: grid; justify-items: center; gap: .3rem; max-width: 9rem; }
.label-logo img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 8px; image-rendering: auto; }
.label-logo figcaption { font-size: .72rem; line-height: 1.3; color: var(--encre-2); text-align: center; }
/* Dates d'un événement : horaires dans la case du jour, plus discrets */
.dates label > span .num { font-weight: 600; color: var(--encre-2); }
.dates input:checked + span .num { color: inherit; }
.autres-mois > summary { cursor: pointer; font-weight: 700; margin: .4rem 0; padding: .7rem 0; }
.ne-pas-oublier { border-top: 1px solid var(--trait); margin-top: 1rem; padding-top: .8rem; }
.ne-pas-oublier h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.ne-pas-oublier .boutons { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }

/* Bandeau temporaire après avoir gardé un événement (« Gardé dans Mes sorties · Me le rappeler ») */
.bandeau { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9000;
  width: min(92vw, 30rem); display: flex; align-items: center; gap: .5rem;
  background: var(--encre); color: var(--papier); border-radius: 14px; padding: .7rem .8rem .7rem 1rem; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.bandeau span { flex: 1 1 auto; min-width: 0; font-weight: 700; line-height: 1.3; }
.bandeau .bouton { flex: none; white-space: nowrap; }
.bandeau .bouton { background: var(--papier); color: var(--encre); }
.bandeau .fermer { background: none; border: 0; color: inherit; font-size: 1.1rem; min-width: 44px; min-height: 44px; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { .bandeau { animation: bandeau-entree .25s ease-out; } }
@keyframes bandeau-entree { from { transform: translate(-50%, 1rem); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

.ne-pas-oublier [data-zone-email] label { display: block; font-weight: 700; margin-top: .6rem; }
.ne-pas-oublier input[type="email"] { font: inherit; border: 2px solid var(--trait); border-radius: 10px; padding: .6rem .8rem; min-height: 48px; width: 100%; max-width: 26rem; margin: .3rem 0 .4rem; background: var(--papier); color: var(--encre); }

/* Carte du rayon d'une alerte (formulaire) */
.carte-rayon { width: 100%; height: 220px; border-radius: 12px; border: 1px solid var(--trait); margin: .2rem 0 .4rem; z-index: 0; }

/* Connexion par code */
input.code { font: 700 1.6rem/1 Menlo, Consolas, monospace; letter-spacing: .35em; text-align: center; max-width: 12rem; }
.connecte { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; background: var(--prairie-clair); color: var(--prairie-encre);
  border-radius: 12px; padding: .6rem .9rem; margin: 0 0 1rem; font-weight: 700; }

/* Interrupteur « 🔔 Rappel oui / non » dans Mes sorties */
.interrupteur[aria-pressed="true"] { background: var(--prairie-clair); border-color: var(--prairie); color: var(--prairie-encre); }
.lien-discret { font-size: .85rem; color: var(--encre-2); }
.reglage-rappels .case { display: flex; align-items: center; gap: .5rem; min-height: 44px; }

/* Labels dans la recherche : étiquettes, cartes simples (lieux sans fiche), villages labellisés */
.etiquettes { margin-top: .6rem; }
.etiquettes legend { font-weight: 700; font-size: .9rem; color: var(--encre-2); margin-bottom: .4rem; padding: 0; width: 100%; }
.sortie.simple { border-style: dashed; }
.sortie.simple .corps { gap: .35rem; }
.sortie.simple .etiquettes-label { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.sortie.simple .lien-site { margin: auto 0 0; }
.sortie.simple .lien-site a { font-weight: 700; }
.villages-labels { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.villages-labels li { background: var(--papier); border: 1px solid var(--trait); border-radius: 10px; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .4rem; }
.villages-labels a { color: var(--encre); }
.villages-labels .badges { display: flex; flex-wrap: wrap; gap: .3rem; }

/* Tarifs sur téléphone : une ligne par tarif (« Adulte · 9,50 € · haute saison »), plus de tableau à faire glisser */
@media (max-width: 600px) {
  .tableau table { min-width: 0; }
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding: .6rem 1rem; border-bottom: 1px solid var(--trait); }
  .tableau tr:last-child { border-bottom: 0; }
  .tableau td { padding: 0; border: 0; }
  .tableau td:nth-child(3) { grid-column: 1 / -1; color: var(--encre-2); font-size: .88rem; }
  .tableau td:nth-child(3):empty { display: none; }
  .tableau td:empty { display: none; }
  .tableau td:first-child:empty ~ td:nth-child(3) { color: var(--encre); font-size: inherit; }
}
.jours-ouverture { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .25rem; }
.autres-periodes { margin-top: .4rem; }
.autres-periodes summary, .periode details summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; }

/* Infos pratiques en bref sous le titre (téléphone, tablette) ; le bloc complet de droite ne sert que sur grand écran */
.pratique-haut { margin-top: 1rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); padding: .8rem 1rem; }
.pratique-haut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pratique-haut li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; }
.pratique-haut .ic { flex: none; width: 1.4rem; text-align: center; }
.pratique-haut .tx { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.pratique-haut .bouton.petit { margin-left: auto; }
.pratique-haut .lien-discret { font-size: .88rem; }
.boutons-pratique { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; }
.boutons-pratique .bouton.petit { margin-left: 0; min-height: 44px; }
@media (max-width: 959px) { .mise-en-page > .pratique { display: none; } }
@media (min-width: 960px) { .pratique-haut { display: none; } }

/* Visionneuse de photos (fiches) : plein écran sur fond noir */
img.agrandissable { cursor: zoom-in; }
img.agrandissable:focus-visible { outline: 3px solid var(--pluie); outline-offset: -3px; }
.visionneuse { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; background: #000; color: #fff; overflow: hidden; }
.visionneuse::backdrop { background: rgba(0, 0, 0, .92); }
.visionneuse[open] { display: grid; place-items: center; }
.v-image { max-width: 100%; max-height: calc(100dvh - 6rem); object-fit: contain; user-select: none; }
.v-compteur { position: absolute; top: max(.8rem, env(safe-area-inset-top)); left: 1rem; margin: 0; font-weight: 700; }
.v-credit { position: absolute; bottom: max(.8rem, env(safe-area-inset-bottom)); left: 1rem; right: 1rem; margin: 0; font-size: .85rem; text-align: center; color: rgba(255, 255, 255, .85); }
.v-fermer, .v-nav { position: absolute; min-width: 48px; min-height: 48px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.4rem; cursor: pointer; }
.v-fermer { top: max(.5rem, env(safe-area-inset-top)); right: .5rem; }
.v-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; }
.v-prec { left: .5rem; } .v-suiv { right: .5rem; }
.v-fermer:focus-visible, .v-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pratique .reseaux { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.pratique .reseaux .bouton { width: auto; margin-left: 0; }

/* Cartes compactes sur téléphone : vignette de 96 px à gauche, date au-dessus du titre, 2 lignes de titre, 2 badges + « +N ».
   Toutes les cartes pareilles (rien n'est mis en avant) ; sur ordinateur, les grandes cartes restent. */
.sortie .moment-c, .badge.plus { display: none; }
@media (max-width: 600px) {
  .sorties { gap: .6rem; }
  .sortie:not(.simple) { flex-direction: row; min-height: 96px; }
  .sortie .visuel { flex: none; width: 96px; aspect-ratio: auto; }
  .sortie .visuel svg { width: 34px; height: 34px; }
  .sortie .visuel .moment { display: none; }
  .sortie .moment-c { display: block; margin: 0; font-weight: 700; font-size: .8rem; color: var(--prairie-encre); }
  .sortie .corps { padding: .55rem .8rem; gap: .25rem; min-width: 0; }
  .sortie h3 { font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sortie .infos { font-size: .85rem; }
  .sortie .badges { margin-top: .1rem; }
  .sortie .badge { font-size: .72rem; padding: .15rem .45rem; }
  .sortie .badge.en-trop { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sortie .badge.plus { display: inline-block; }
}

/* Formulaire de recherche : 📍 dans le champ de la ville, bouton pleine largeur, « ⚙ Affiner (n) » repliable */
.ville-loc { display: inline-flex; align-items: center; gap: .15rem; max-width: 100%; }
.loc { border: 0; background: none; font-size: 1.15rem; min-width: 44px; min-height: 44px; cursor: pointer; border-radius: 10px; }
.loc:focus-visible { outline: 3px solid var(--pluie); outline-offset: 2px; }
.bouton.large { width: 100%; max-width: 26rem; }
.affiner { border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); padding: 0 .9rem; }
.affiner > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: .4rem; font-weight: 700; }
.affiner > summary::-webkit-details-marker { display: none; }
.affiner .fl { margin-left: auto; transition: transform .15s; } .affiner[open] .fl { transform: rotate(180deg); }
.affiner .compte { color: var(--prairie-encre); }
.affiner > fieldset { margin-bottom: .9rem; }
/* Résumé de la recherche (page de résultats) */
.resume-recherche { background: var(--papier); border: 1px solid var(--trait); border-radius: 14px; padding: .8rem .9rem; display: grid; gap: .6rem; max-width: 46rem; }
.resume-recherche .lignes { display: grid; gap: .45rem; }
.resume-recherche .ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: 0; font-weight: 700; }
.pastille { font: 700 .95rem/1 var(--texte); color: #17233F; background: var(--soleil); border: 0; border-radius: 8px; padding: .35rem .5rem; cursor: pointer; min-height: 36px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.pastille:focus-visible { outline: 3px solid var(--pluie); outline-offset: 2px; }
.bas-resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--trait); padding-top: .6rem; }
.bas-resume .bouton.petit { margin-left: 0; min-height: 44px; }
.prevenir-lien { font-weight: 700; color: var(--prairie-encre); }
.formulaire-replie { padding-top: .2rem; }
.sauts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .2rem; }
.sauts a { border: 1px solid var(--trait); background: var(--papier); border-radius: 99px; padding: .45rem .85rem; font-weight: 700; font-size: .9rem; color: var(--encre); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.encart-prevenir { margin-top: 1rem; background: var(--prairie-clair); color: var(--prairie-encre); border-radius: 12px; padding: .8rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.encart-prevenir p { margin: 0; flex: 1 1 16rem; }
.encart-prevenir .bouton { margin-left: 0; }
.encart-prevenir.haut { margin-top: .6rem; }
.section.prevenir { background: var(--prairie-clair); border-radius: 14px; padding: 1rem 1.1rem; margin-block: 1rem; }
.section.prevenir h2 { margin-top: 0; }
.section.prevenir p:last-child { margin-bottom: 0; }
.voir-autour { margin: .7rem 0 0; }
.voir-autour a { font-weight: 700; color: var(--prairie-encre); display: inline-flex; align-items: center; min-height: 44px; }

/* Pages ville, département, région : sommaire, listes repliées, « Me prévenir » discret, sources */
.sommaire { margin: 1rem 0 0; }
.sommaire .prevenir-lien { border: 0; background: none; color: var(--prairie-encre); padding-inline: .4rem; }
.voir-plus-tuiles { margin-top: .6rem; }
.voir-plus-tuiles > summary { cursor: pointer; font-weight: 700; color: var(--prairie-encre); min-height: 44px; display: flex; align-items: center; }
.voir-plus-tuiles[open] > summary { margin-bottom: .5rem; }
.prevenir-fin { margin: 1.4rem 0 .4rem; }
.prevenir-fin a { font-weight: 700; color: var(--prairie-encre); display: inline-flex; min-height: 44px; align-items: center; }
.pied-donnees { font-size: .82rem; opacity: .85; }

/* « Toutes les communes » : filtre collé en haut, tri, lettres, liste (3 colonnes sur grand écran) */
.outils-liste { display: grid; gap: .6rem; padding: .4rem 0 .5rem; border-bottom: 1px solid var(--trait); margin-top: 1rem; }
.champ-colle { position: sticky; top: 0; z-index: 5; background: var(--fond); padding: .5rem 0; }
.champ-colle input { width: 100%; min-height: 48px; font: inherit; padding: 0 .9rem; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); color: var(--encre); }
.tri { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.tri button { min-height: 40px; border: 1px solid var(--trait); background: var(--papier); color: var(--encre); border-radius: 99px; padding: 0 .9rem; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.tri button[aria-pressed="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.lettres { display: flex; flex-wrap: wrap; gap: .15rem; }
.lettres a { min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; font-weight: 700; color: var(--prairie-encre); text-decoration: none; border-radius: 8px; }
.lettres a:hover { background: var(--prairie-clair); }
.compte { font-size: .9rem; color: var(--encre-2); margin: 0; }
.groupe h2 { font-size: 1.3rem; margin: 1.2rem 0 .2rem; }
.liste-communes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 1.5rem; }
@media (min-width: 760px) { .liste-communes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.liste-communes li { border-bottom: 1px solid var(--trait); padding: .55rem 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; }
.liste-communes a { color: var(--encre); text-decoration: none; display: inline-flex; gap: .45rem; align-items: baseline; min-height: 32px; }
.liste-communes a b { text-decoration: underline; text-decoration-color: var(--trait); text-underline-offset: 3px; }
.liste-communes li.vide a, .liste-communes li.vide .maj { color: var(--encre-2); }
.liste-communes .badges { display: flex; flex-wrap: wrap; gap: .25rem; }
.liste-communes .badge { font-size: .72rem; padding: .12rem .4rem; }

/* Carte des labels sur téléphone : la carte d'abord, les labels dans un panneau qui monte du bas (« 🏷 Labels (n) ») */
.carte-bouton-labels, .carte-fermer-panneau, .carte-voile { display: none; }
@media (max-width: 899px) {
  .js .carte-zone { min-height: 72vh; height: 72vh; }
  .js .carte-bouton-labels { display: block; }
  .js .carte-bouton-labels a { width: auto !important; padding: 0 .9rem; font: 700 .95rem/44px var(--texte); height: 44px; white-space: nowrap; background: var(--papier); color: var(--encre); }
  .js .carte-panneau { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10001; max-height: 75vh; overflow-y: auto; background: var(--papier);
    border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(23, 35, 63, .25); border: 0; padding: 1.4rem 1rem calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform .2s ease-out; visibility: hidden; }
  .js .carte-panneau::before { content: ""; position: absolute; top: .55rem; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--trait); }
  .js .labels-ouverts .carte-panneau { transform: none; visibility: visible; }
  .js .labels-ouverts .carte-voile { display: block; position: fixed; inset: 0; z-index: 10000; background: rgba(23, 35, 63, .35); }
  .js .carte-fermer-panneau { display: block; position: sticky; bottom: 0; width: 100%; margin-top: 1rem; }
  .js .carte-cadre.carte-plein { grid-template-rows: minmax(0, 1fr); }
  .js .carte-cadre.carte-plein .carte-zone { height: 100%; min-height: 0; }
  .js .carte-cadre.carte-plein .carte-panneau { max-height: 75vh; }
}
@media (prefers-reduced-motion: reduce) { .js .carte-panneau { transition: none; } }

/* Page d'un label : logo à gauche du titre, nature du label, mention discrète ; chiffres ; petite carte du label */
.label-entete { display: flex; gap: 1rem; align-items: center; margin: .4rem 0 1rem; }
.label-entete .label-logo { flex: none; width: 72px; height: 72px; border: 1px solid var(--trait); border-radius: 14px; background: #fff; padding: 6px; object-fit: contain; }
.label-entete h1 { margin: 0; }
.label-nature { margin: .2rem 0 0; font-weight: 700; color: var(--prairie-encre); }
.label-mention { margin: .25rem 0 0; font-size: .78rem; color: var(--encre-2); }
.chiffres-label { margin: 1rem 0 0; }
.chiffres-label li b { font-size: 1.5rem; }
.mini-carte { height: 340px; margin-top: 1rem; border-radius: 14px; border: 1px solid var(--trait); overflow: hidden; }
@media (min-width: 900px) { .mini-carte { height: 420px; } }
.mini-carte .carte-grand a { width: auto !important; padding: 0 .8rem; font: 700 .9rem/34px var(--texte); white-space: nowrap; color: var(--encre); }
.tuile small { font-weight: 400; color: var(--encre-2); }
.fleurs { letter-spacing: -.1em; }
.filtre-fleurs { display: flex; flex-wrap: wrap; gap: .4rem; }
.filtre-fleurs button { min-height: 40px; border: 1px solid var(--trait); background: var(--papier); color: var(--encre); border-radius: 99px; padding: 0 .8rem; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.filtre-fleurs button[aria-pressed="true"] { background: var(--prairie-clair); border-color: var(--prairie); color: var(--prairie-encre); }

/* Boutons posés sur les cartes : fond blanc ET texte foncé, aussi en mode sombre (sinon texte clair sur blanc, « blanchi ») */
.leaflet-bar.carte-bouton a, .leaflet-bar.carte-bouton a:hover { background: #fff; color: #17233F; }
.js .carte-bouton-labels a { background: #fff !important; color: #17233F !important; }
/* « Utilisez deux doigts pour déplacer la carte » (écrans tactiles, carte dans une page) */
.carte-avis-doigts { position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; text-align: center;
  background: rgba(23, 35, 63, .55); color: #fff; font-weight: 700; font-size: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.carte-avis-doigts.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .carte-avis-doigts { transition: none; } }
