/* Champi-Perso — feuille de style unique. Suit maquettes/index.html (v2).
   Couleurs : tout passe par les variables de :root, redéfinies en sombre. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/static/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/fraunces-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #F7F2E7; --surface: #FFFDF8; --surface-2: #F1EADB;
  --ink: #23281F; --ink-2: #5B6152; --line: #DDD3BF;
  --forest: #1F3A2B; --moss: #4F6B3A; --ocre: #B97A2E; --on-forest: #F7F2E7;
  /* Couleurs de score : les mêmes partout, en clair comme en sombre. */
  --s0: #9C9A8F; --s1: #D9A92B; --s2: #DD7327; --s3: #2F9E44;
  --danger: #B3261E; --danger-bg: #FBE4E1; --info-bg: #E7EEDF;
  --water: #7FB0C2; --position: #2F7DE1;
  --nav-bg: rgb(255 253 248 / .9);
  --ombre: 0 8px 24px rgb(0 0 0 / .14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 66px;
  --nav-bas: calc(14px + var(--safe-bottom));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141A11; --surface: #1C2418; --surface-2: #242E1F;
    --ink: #ECE6D6; --ink-2: #A7AD98; --line: #33402C;
    --forest: #9CC48A; --moss: #9CC48A; --ocre: #E0A85A; --on-forest: #10160D;
    --danger: #FF8A80; --danger-bg: #3A1A17; --info-bg: #22301C;
    --water: #4F8597;
    --nav-bg: rgb(28 36 24 / .9);
    --ombre: 0 8px 24px rgb(0 0 0 / .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif, h1, h2, .verdict .grand, .sp-nom { font-family: "Fraunces", Georgia, serif; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }

/* ---------- Écran (tout sauf la carte) ---------- */
.ecran {
  display: block; max-width: 560px; margin: 0 auto;
  padding: calc(var(--safe-top) + 12px) 16px calc(var(--nav-h) + var(--nav-bas) + 28px);
  outline: none;
}
.ecran.sans-nav { padding-bottom: calc(var(--safe-bottom) + 28px); }
.chargement { min-height: 70vh; display: grid; place-items: center; }
.chargement img { border-radius: 18px; opacity: .9; }

.haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 2px 14px; }
.haut h1 { font-size: 32px; line-height: 1.05; }
.surtitre { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.retour {
  flex: none; min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none;
}
.profil {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 4px 12px rgb(0 0 0 / .1);
  display: grid; place-items: center; color: var(--forest); text-decoration: none;
}
.profil svg { width: 22px; height: 22px; }

.carte-bloc, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; margin-bottom: 12px;
}
.lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.muted { color: var(--ink-2); font-size: 13px; }
p.muted { font-size: 14px; }
h2.titre-section { font-size: 22px; margin: 18px 2px 8px; }

.verdict { background: var(--forest); color: var(--on-forest); border: none; }
.verdict .grand { font-size: 22px; font-weight: 700; line-height: 1.2; }
.verdict p { opacity: .9; margin-top: 6px; font-size: 14px; }
.verdict.possible { background: var(--moss); }
.verdict.rien { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.verdict.sec { background: var(--ocre); color: #fff; }
@media (prefers-color-scheme: dark) {
  .verdict.possible { background: #3C5530; color: var(--ink); }
  .verdict.sec { background: #6B4A1E; color: var(--ink); }
}

.lien-bloc { display: block; text-decoration: none; color: inherit; }
.meilleure { display: flex; align-items: center; gap: 12px; }
.meilleure b { font-size: 17px; display: block; }
.score { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; }
.mini { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; }
.sc0 { background: var(--s0); } .sc1 { background: var(--s1); } .sc2 { background: var(--s2); } .sc3 { background: var(--s3); }
.chevron { flex: none; color: var(--ink-2); font-size: 22px; line-height: 1; }

.ligne {
  display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit; min-height: 56px;
}
.ligne:first-of-type { border-top: none; }
.ligne .qui { flex: 1; min-width: 0; }
.qui b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.points { display: flex; gap: 5px; margin-top: 6px; }
.points i { width: 15px; height: 15px; border-radius: 50%; display: block; }
.points i.auj { outline: 2px solid var(--ink); outline-offset: 1px; }

.meteo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.meteo b { display: block; font-size: 17px; }
.meteo span { font-size: 12px; color: var(--ink-2); }

.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: var(--ink-2); margin: 6px 0 4px; }
.legende span { display: inline-flex; align-items: center; gap: 5px; }
.legende i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: var(--surface-2); color: var(--ink-2); vertical-align: 1px; }
.tag.ocre { background: var(--ocre); color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  border-radius: 14px; font-weight: 700; font-size: 16px; border: none; width: 100%;
  text-decoration: none; padding: 0 16px; text-align: center;
}
.btn.pri { background: var(--forest); color: var(--on-forest); }
.btn.sec { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--danger-bg); color: var(--danger); }
.btn.rond { border-radius: 999px; width: auto; padding: 0 28px; margin: 14px auto 0; }
.btn.auto { width: auto; display: inline-flex; padding: 0 18px; }
.btn[disabled] { opacity: .55; cursor: default; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pile > * + * { margin-top: 10px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 0 16px; font-size: 15px; font-weight: 600; min-height: 44px; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.chips.retour-ligne { flex-wrap: wrap; overflow: visible; }

/* ---------- Premier lancement ---------- */
.vide { border: 2px dashed var(--line); border-radius: 22px; padding: 18px 14px; text-align: center; margin-bottom: 12px; }
.vide b.serif { display: block; font-size: 20px; margin-top: 6px; }
.etape { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.etape span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--on-forest); font-size: 15px; }
.position-off b { display: flex; gap: 8px; align-items: center; }
.aide { margin-top: 10px; font-size: 14px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }

/* ---------- Fiche d'un coin ---------- */
.sous-titre { margin: -6px 2px 12px; }
.graphe svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.graphe .graduations { margin-top: 2px; }
.pourquoi li { list-style: none; padding: 7px 0; display: flex; gap: 10px; font-size: 15px; border-top: 1px solid var(--line); }
.pourquoi li:first-child { border-top: none; }
.pourquoi .ok { color: var(--s3); font-weight: 800; flex: none; width: 16px; }
.pourquoi .ko { color: var(--danger); font-weight: 800; flex: none; width: 16px; }
.note-info { background: var(--info-bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 8px; }
.notes-coin { white-space: pre-wrap; font-size: 14px; }

/* ---------- Espèces ---------- */
.carrousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 10px; padding: 4px 16px 8px; scrollbar-width: none; }
.carrousel::-webkit-scrollbar { display: none; }
.sp {
  flex: none; width: min(290px, calc(100vw - 72px)); height: 390px; border-radius: 26px; padding: 18px;
  color: #fff; position: relative; overflow: hidden; scroll-snap-align: center;
  display: flex; flex-direction: column; background: var(--sp-fond, #6E4A2E);
}
.sp-cepe { --sp-fond: linear-gradient(160deg, #6E4A2E, #4D3420); }
.sp-girolle { --sp-fond: linear-gradient(160deg, #B8891F, #816016); }
.sp-trompette { --sp-fond: linear-gradient(160deg, #3E3832, #2B2723); }
.sp-pied_de_mouton { --sp-fond: linear-gradient(160deg, #A47C4E, #735737); }
.sp-chanterelle_tube { --sp-fond: linear-gradient(160deg, #7A6236, #554526); }
.sp .pastille-saison { align-self: flex-start; background: rgb(255 255 255 / .18); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sp .pastille-saison.hors { opacity: .75; }
.sp .ill { position: absolute; right: -18px; top: 44px; width: 190px; height: 190px; }
.sp .latin { margin-top: auto; font-style: italic; font-family: "Fraunces", Georgia, serif; font-weight: 500; opacity: .85; font-size: 14px; }
.sp-nom { font-size: 32px; font-weight: 700; line-height: 1.05; }
.saison { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 14px; }
.saison i { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .25); }
.saison i.oui { background: rgb(255 255 255 / .92); }
.saison i.maint { background: #F6D35B; }
.mois { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 10px; text-align: center; opacity: .8; margin-top: 4px; }
.mois b { color: #F6D35B; }
.sp .meilleur-sp { margin-top: 12px; background: rgb(0 0 0 / .2); border-radius: 14px; padding: 9px 12px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 58px; }
.sp .meilleur-sp b { font-size: 16px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.pager i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .2s; }
.pager i.on { width: 22px; background: var(--forest); }
.danger-bloc { background: var(--danger-bg); border: none; }
.danger-bloc b { color: var(--danger); }

/* ---------- Réglages ---------- */
.membre { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.membre:first-of-type { border-top: none; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.av0 { background: #4F6B3A; } .av1 { background: #B97A2E; } .av2 { background: #6B5A8E; } .av3 { background: #2F6F7E; } .av4 { background: #8E4B5A; }
.lien-invit { font: 14px/1.35 ui-monospace, Menlo, monospace; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; word-break: break-all; margin: 8px 0 10px; user-select: all; -webkit-user-select: all; }
.barre { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.barre i { display: block; height: 100%; width: 0; background: var(--forest); transition: width .2s; }
.reglage { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.reglage:first-of-type { border-top: none; }

/* ---------- Connexion ---------- */
.connexion { min-height: calc(100vh - var(--safe-top) - var(--safe-bottom) - 40px); display: flex; flex-direction: column; justify-content: center; max-width: 420px; margin: 0 auto; }
.connexion .logo { width: 84px; height: 84px; border-radius: 20px; display: block; margin: 0 auto 16px; box-shadow: var(--ombre); }
.connexion h1 { text-align: center; font-size: 34px; }
.connexion .accroche { text-align: center; color: var(--ink-2); margin: 6px 0 22px; }
.champ { display: block; margin-bottom: 12px; }
.champ > span { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px 2px; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); padding: 12px 14px; font-size: 16px;
}
.champ textarea { min-height: 84px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: transparent; }
.erreur { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.bascule { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; cursor: pointer; }
.bascule input { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; transition: background .15s; cursor: pointer; }
.bascule input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.bascule input:checked { background: var(--moss); }
.bascule input:checked::after { transform: translateX(20px); }
.bascule .txt { flex: 1; }
.bascule .txt b { display: block; font-size: 15px; }

/* ---------- Bientôt ---------- */
.bientot { text-align: center; padding: 30px 10px; }
.bientot svg { width: 96px; height: 96px; color: var(--moss); }
.bientot h2 { font-size: 24px; margin: 10px 0 6px; }

/* ---------- Barre du bas ---------- */
.nav {
  position: fixed; z-index: 50; bottom: var(--nav-bas);
  left: max(12px, calc(50% - 260px)); right: max(12px, calc(50% - 260px));
  height: var(--nav-h); border-radius: 999px; background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); display: flex; padding: 5px; box-shadow: var(--ombre);
}
.nav a { flex: 1; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav a svg { width: 23px; height: 23px; }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--forest); }

/* ---------- Bandeaux ---------- */
.bandeau-horsligne {
  position: fixed; z-index: 60; top: calc(var(--safe-top) + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--ombre); max-width: calc(100vw - 24px);
  overflow: hidden; text-overflow: ellipsis;
}
.toast {
  position: fixed; z-index: 120; left: 16px; right: 16px; bottom: calc(var(--nav-h) + var(--nav-bas) + 12px);
  max-width: 520px; margin: 0 auto; background: var(--ink); color: var(--bg); border-radius: 14px;
  padding: 12px 14px; font-size: 14px; font-weight: 600; box-shadow: var(--ombre);
}
.toast.erreur-toast { background: #B3261E; color: #fff; }

/* ---------- Feuilles (formulaires, confirmations) ---------- */
.feuille-fond { position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / .38); display: flex; align-items: flex-end; justify-content: center; }
.feuille {
  width: 100%; max-width: 560px; max-height: calc(100vh - var(--safe-top) - 24px); overflow-y: auto;
  background: var(--bg); border-radius: 22px 22px 0 0; padding: 10px 16px calc(var(--safe-bottom) + 18px);
  box-shadow: 0 -6px 18px rgb(0 0 0 / .18); overscroll-behavior: contain;
}
.feuille::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.feuille h2 { font-size: 24px; margin: 4px 2px 12px; }

/* ---------- Carte ---------- */
.ecran-carte { position: fixed; inset: 0; z-index: 1; background: var(--surface-2); }
.carte { position: absolute; inset: 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.leaflet-container { background: var(--surface-2); font: inherit; }
@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane { filter: brightness(.72) contrast(1.08) saturate(.85); }
}
.leaflet-control-attribution { font-size: 10px; border-radius: 0 0 0 8px; }
.carte-boutons { position: absolute; z-index: 500; right: 16px; top: calc(var(--safe-top) + 14px); display: flex; flex-direction: column; gap: 10px; }
.fab {
  width: 60px; height: 60px; border-radius: 50%; background: var(--forest); color: var(--on-forest);
  display: grid; place-items: center; border: none; box-shadow: 0 6px 16px rgb(0 0 0 / .25);
}
.fab svg { width: 28px; height: 28px; }
.fab.petit { width: 50px; height: 50px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.fab.petit svg { width: 24px; height: 24px; }
#carte-ajouter { position: absolute; z-index: 500; right: 16px; bottom: calc(var(--panneau-h, 220px) + 14px); }
.carte-pastille { position: absolute; z-index: 500; left: 16px; top: calc(var(--safe-top) + 34px); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; box-shadow: var(--ombre); }
.carte-panneau {
  position: absolute; z-index: 500; left: 0; right: 0; bottom: 0;
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 18px rgb(0 0 0 / .12);
  padding: 12px 16px calc(var(--nav-h) + var(--nav-bas) + 12px);
}
.carte-panneau > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.curseur { display: block; margin: 12px 0 2px; }
.curseur input { width: 100%; height: 36px; background: transparent; -webkit-appearance: none; appearance: none; }
.curseur input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--surface-2); }
.curseur input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-2); }
.curseur input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: var(--forest); border: 3px solid var(--surface); box-shadow: 0 2px 6px rgb(0 0 0 / .25); }
.curseur input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--forest); border: 3px solid var(--surface); }
.graduations { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-2); }
.graduations b { color: var(--forest); font-size: 14px; }
.astuce { font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 6px; }

/* Pastilles des coins sur la carte */
.coin-marqueur { background: none; border: none; }
.coin-marqueur .rond {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #fff; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px;
  box-shadow: 0 2px 6px rgb(0 0 0 / .35);
}
.coin-marqueur .nom {
  position: absolute; top: 38px; left: 18px; transform: translateX(-50%); white-space: nowrap;
  font-size: 12px; font-weight: 700; color: #23281F; background: rgb(255 253 248 / .88);
  padding: 1px 6px; border-radius: 6px; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.repere-nouveau .rond { background: var(--ocre); }
.ma-position { width: 18px; height: 18px; border-radius: 50%; background: var(--position); border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(47 125 225 / .2); }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--ink); border-radius: 16px; }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; min-width: 190px; }
.popup-coin b { display: block; font-size: 16px; }
.popup-coin .btn { min-height: 46px; font-size: 15px; padding: 6px 8px; }
.popup-coin .deux { margin-top: 10px; gap: 8px; }
.popup-coin .btn.pri { color: var(--on-forest); }
.popup-coin .btn.sec { color: var(--ink); }
.leaflet-popup-content { min-width: 240px; }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 22px; }
.actions-feuille { margin-top: 16px; }
.position-off p.muted { margin: 6px 0 12px; }
.meilleure .qui { flex: 1; min-width: 0; }
.popup-coin .muted { display: block; margin-top: 2px; }
.leaflet-top { top: var(--safe-top); }
.lien-chip { display: inline-flex; align-items: center; text-decoration: none; }
.chips + .card, .chips + .graphe { margin-top: 10px; }
.legende-graphe { margin-top: 8px; font-size: 12px; }
.rappel-score { margin-top: 10px; font-size: 12px; }
.intro-especes { margin: 0 2px 12px; font-size: 15px; }
.intro-especes b { color: var(--forest); }
a.meilleur-sp { color: #fff; text-decoration: none; }
.danger-bloc p.muted { margin-top: 4px; }
.etat-hl { font-size: 14px; font-weight: 600; margin: 8px 0 10px; }
.texte-invit { font-size: 14px; margin-top: 10px; }
.card .btn.sec[data-inviter] { margin-top: 10px; }
.membre .qui { flex: 1; min-width: 0; }
.lbl + .membre { border-top: none; }
.btn { line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.connexion form + .btn { margin-top: 10px; }
.card p + .btn { margin-top: 12px; }
/* Bandeau hors ligne visible : on décale ce qui est collé en haut. */
body.avec-bandeau .ecran { padding-top: calc(var(--safe-top) + 52px); }
body.avec-bandeau .carte-pastille { top: calc(var(--safe-top) + 74px); }
body.avec-bandeau .carte-boutons { top: calc(var(--safe-top) + 54px); }
body.avec-bandeau .leaflet-top { top: calc(var(--safe-top) + 44px); }
.aller-meilleure { margin-top: 12px; }
.intertitre { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.vide-rayon { padding: 6px 0 8px; }
.carte-ville { border: 2px solid var(--ocre); }
.rond-icone { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; }
.btn.gros { min-height: 60px; font-size: 17px; }
.ou { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; margin: 18px 0 14px; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sp { height: auto; min-height: 440px; }
.btn-sp { margin-top: 10px; min-height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgb(255 255 255 / .92); color: #23281F; font-weight: 700; font-size: 16px; text-decoration: none; }
.je-cherche { margin: 0 0 12px; }
.je-cherche .lbl { display: block; margin: 0 2px 6px; }
.je-cherche .chips { margin: 0 -16px; padding: 2px 16px 4px; }
.chip.hors-saison { opacity: .6; }
.grande-sortie .meilleure b { font-size: 19px; }
.phrase-chercher { font-size: 16px; opacity: 1; margin: 0; }
.curseur-seuil { display: block; }
.curseur-seuil .reglage { border: none; padding: 4px 0; }
.curseur-seuil .valeur { font-size: 22px; color: var(--forest); }
.curseur-seuil input { width: 100%; height: 40px; accent-color: var(--forest); }
.choix-ville { width: 100%; background: none; border: none; border-top: 1px solid var(--line); text-align: left; color: inherit; }
.liste-cles { margin: 6px 0 10px; }
.petit-btn { min-height: 44px; font-size: 15px; }
.card > p.muted + .chips, .card > p.muted + .pile { margin-top: 10px; }
.j-y-vais { margin-bottom: 14px; }
.espece-sortie { min-height: 52px; padding: 8px 0; }
.espece-sortie .mini { width: 36px; height: 36px; font-size: 14px; }
.espece-sortie.grise { opacity: .6; }
.peu-probable { margin-top: 6px; }
.peu-probable summary { min-height: 44px; display: flex; align-items: center; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; border-top: 1px solid var(--line); }
.intertitre + .ligne { border-top: none; }
.card .champ { margin-top: 12px; }
[data-notifs] .pile, [data-notifs] > .btn { margin-top: 12px; }
.lbl + .intertitre { border-top: none; margin-top: 0; padding-top: 0; }
.peu-probable summary { list-style: none; }
.peu-probable summary::-webkit-details-marker { display: none; }
.peu-probable summary::after { content: "▾"; margin-left: 8px; transition: transform .15s; }
.peu-probable[open] summary::after { transform: rotate(180deg); }
/* ---------- Étape 5 : carnet, trouvaille, fiches, calibration, voiture ---------- */
.voiture-accueil { margin: -4px 0 14px; }
.voiture-marqueur { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 2px 6px rgb(0 0 0 / .35); border: 2px solid #fff; }
.sp-boutons { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 10px; }
.sp-boutons .btn-sp { margin-top: 0; }
.btn-sp.secondaire { background: rgb(255 255 255 / .2); color: #fff; }
.onglets { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 14px; padding: 4px; margin: 0 0 14px; }
.onglets a { min-height: 44px; display: grid; place-items: center; border-radius: 11px; text-decoration: none; font-weight: 700; color: var(--ink-2); }
.onglets a[aria-selected="true"] { background: var(--surface); color: var(--forest); box-shadow: 0 1px 4px rgb(0 0 0 / .1); }
.filtres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.filtres .champ { margin-bottom: 10px; }
.btn.gros + [data-attente] .attente { margin-top: 12px; }
.attente { border: 2px dashed var(--ocre); }
.sortie { align-items: center; }
.vignette { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.vide-photo { display: grid; place-items: center; font-size: 18px; font-weight: 800; color: var(--ink-2); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag.q0 { background: var(--surface-2); color: var(--ink-2); }
.tag.q1 { background: #E3ECD8; color: #3D5A2C; }
.tag.q2 { background: #C9DDB4; color: #2C4720; }
.tag.q3 { background: #4F6B3A; color: #fff; }
.tag.vert { background: #2F9E44; color: #fff; }
@media (prefers-color-scheme: dark) {
  .tag.q1 { background: #2A3A22; color: #C9DDB4; }
  .tag.q2 { background: #3C5530; color: #E3ECD8; }
}
.hors-carte { margin: 4px 2px 6px; }
.quantites { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.qte { min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--ink); gap: 2px; }
.qte span { font-size: 20px; line-height: 1; }
.qte[aria-pressed="true"] { border: 2px solid var(--forest); background: var(--info-bg); }
.gps { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.gps .pin { width: 44px; height: 44px; border-radius: 50%; background: var(--position); display: grid; place-items: center; color: #fff; font-size: 20px; flex: none; }
.gps .qui b { display: block; }
.champ.sans-marge { margin: 0 0 10px; }
.photos-trouvaille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.case-photo { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-2); text-align: center; padding: 4px; cursor: pointer; position: relative; overflow: hidden; background: var(--surface); }
.case-photo span { font-size: 22px; }
.case-photo b { font-weight: 700; position: relative; z-index: 1; }
.case-photo.faite { border-style: solid; border-color: var(--moss); color: #fff; }
.case-photo.faite b { background: rgb(0 0 0 / .45); border-radius: 6px; padding: 1px 6px; margin-top: auto; }
.case-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-photo.en-cours { opacity: .5; }
.check li { list-style: none; border-top: 1px solid var(--line); }
.check li:first-child { border-top: none; }
.check label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 15px; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--moss); }
.alerte-critere { background: #FFF1D6; border: none; }
.alerte-critere b { color: #8A5A12; }
@media (prefers-color-scheme: dark) { .alerte-critere { background: #3A2C14; } .alerte-critere b { color: var(--ocre); } }
.bandeau-relecture { background: var(--ocre); color: #fff; font-weight: 700; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.photos-grandes { display: grid; gap: 10px; margin-bottom: 12px; }
.photos-grandes figure { margin: 0; }
.photos-grandes img { width: 100%; border-radius: 16px; display: block; background: var(--surface-2); }
.photos-grandes figcaption { font-size: 13px; color: var(--ink-2); margin: 4px 2px 0; }
.boutons-verif { margin-top: 12px; }
.boutons-verif .btn[aria-pressed="true"] { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.sous-titre a { color: var(--forest); font-weight: 600; }
.chances { background: var(--info-bg); border: none; }
.chances b { font-size: 20px; }
.petit-chances { font-size: 13px; margin: -4px 4px 12px; }
.chances-dans .petit-chances { margin: 10px 0 0; }
.chances-dans .chances { margin: 10px 0 0; }
.latin-fiche { text-transform: none; letter-spacing: 0; font-style: italic; font-family: "Fraunces", Georgia, serif; font-size: 14px; font-weight: 500; }
.sosie { padding: 10px 0; border-top: 1px solid var(--line); }
.lbl + .sosie { border-top: none; }
.sosie-tete { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sosie p { margin-top: 4px; }
.niveau { flex: none; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: .04em; }
.niv-mortel { background: #D50000; color: #fff; }
.niv-toxique { background: #FBE4E1; color: #B3261E; border: 1px solid #E8A39C; }
.niv-immangeable { background: #F3E3C8; color: #7A4E14; }
.niv-sans { background: var(--surface-2); color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .niv-toxique { background: #3A1A17; color: #FF8A80; border-color: #6B2A24; } .niv-immangeable { background: #3A2C14; color: #E0A85A; } }
.danger-bloc .btn { margin-top: 12px; }
.fiche-html { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.fiche-html h1, .fiche-html h2, .fiche-html h3 { font-family: "Fraunces", Georgia, serif; margin: 16px 0 6px; line-height: 1.2; }
.fiche-html h1 { font-size: 24px; } .fiche-html h2 { font-size: 20px; } .fiche-html h3 { font-size: 17px; }
.fiche-html > :first-child { margin-top: 0; }
.fiche-html p, .fiche-html ul, .fiche-html ol, .fiche-html blockquote { margin: 8px 0; }
.fiche-html ul, .fiche-html ol { padding-left: 20px; }
.fiche-html blockquote { border-left: 3px solid var(--line); padding-left: 10px; color: var(--ink-2); }
.fiche-html table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 13px; }
.fiche-html th, .fiche-html td { border: 1px solid var(--line); padding: 6px; vertical-align: top; text-align: left; min-width: 110px; }
.fiche-html a { color: var(--forest); }
.intro-calib { margin: 0 2px 12px; }
.nuage { width: 100%; height: auto; display: block; }
.legende-nuage { margin: 2px 0 8px; }
.tranches { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.tranches th { text-align: left; white-space: nowrap; padding: 7px 10px 7px 0; font-weight: 700; }
.tranches td { padding: 7px 0; }
.tranches tr + tr th, .tranches tr + tr td { border-top: 1px solid var(--line); }
.point { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.suggestion { padding: 10px 0; border-top: 1px solid var(--line); }
.intertitre + .suggestion { border-top: none; }
.suggestion p { margin: 4px 0; }
.suggestion .btn { margin-top: 8px; }
.fleche { display: grid; place-items: center; margin: 14px auto 6px; width: min(230px, 62vw); aspect-ratio: 1; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.fleche svg { width: 64%; height: 64%; transition: transform .25s ease-out; }
.distance { text-align: center; font-size: 44px; font-weight: 800; }
.centre { text-align: center; margin-bottom: 6px; }
[data-boussole] { margin: 10px 0 12px; }
.photos-grandes img { max-height: 62vh; object-fit: cover; }
.verif-ok { background: var(--info-bg); border: none; }
.verif-ok > b { color: var(--forest); }
.verif-jetee { background: var(--surface-2); }
.ajustement .qui b { white-space: normal; }
.ecran > .btn { margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .tag.ocre { color: #1C1408; } }

/* ---------- Sortie à plusieurs ---------- */
.card.info { background: var(--info-bg); border: none; font-size: 14px; }
.petit { font-size: 13px; }
.serif.grand { display: block; font-size: 22px; line-height: 1.2; }
.voiture-accueil.pile { display: grid; gap: 10px; }
.voiture-accueil.pile > * + * { margin-top: 0; }
.carte-groupe-accueil { display: block; color: inherit; text-decoration: none; background: var(--info-bg); border: none; }
.carte-groupe-accueil.invite { background: var(--forest); color: var(--on-forest); }
.carte-groupe-accueil.invite .muted { color: var(--on-forest); opacity: .85; }
.carte-groupe-accueil b, .carte-groupe-accueil span { display: block; }
.carte-groupe-cadre { position: relative; margin: 0 -16px 12px; }
.carte-groupe { height: min(46vh, 380px); background: var(--surface-2); }
.btn-carte { position: absolute; right: 12px; top: 12px; z-index: 500; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; box-shadow: 0 4px 12px rgb(0 0 0 / .18); }
.pin-membre { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 8px rgb(0 0 0 / .35); }
.pin-membre.moi { box-shadow: 0 0 0 8px rgb(47 125 225 / .25), 0 2px 8px rgb(0 0 0 / .35); }
.pin-membre.vieux { opacity: .55; }
.pin-age { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 600; border-radius: 9px; padding: 1px 7px; box-shadow: 0 1px 4px rgb(0 0 0 / .2); }
.zone-coin { fill: var(--s3); fill-opacity: .12; stroke: var(--s3); stroke-dasharray: 5 4; stroke-width: 2; }
.appel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; background: var(--info-bg); border: none; }
.appel b { flex: 1 1 100%; }
.appel.urgent { background: var(--danger-bg); border: 1px solid var(--danger); }
.appel .chip { margin-left: auto; text-decoration: none; color: var(--ink); }
.membre .chip { flex: none; min-height: 40px; padding: 8px 12px; text-decoration: none; color: var(--ink); }
.membre.coche { cursor: pointer; }
.membre.coche input { width: 24px; height: 24px; accent-color: var(--moss); flex: none; }
.av.estompe { opacity: .45; }
.btn.alerte { background: var(--danger); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.alerte { color: #1C0B09; } }
.btn.danger-texte { background: none; color: var(--danger); border: none; }
.bas-groupe { margin-top: 12px; }
.card.rien-a-trouver { padding-top: 4px; padding-bottom: 4px; }
.card.rien-a-trouver summary { border-top: none; }
.voiture-accueil.deux > .btn { padding: 0 10px; }
#bandeau-appel { position: fixed; z-index: 2000; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px); display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--info-bg); color: var(--ink); box-shadow: 0 8px 24px rgb(0 0 0 / .22); }
#bandeau-appel.urgent { background: var(--danger); color: #fff; }
#bandeau-appel b { flex: 1; }
#bandeau-appel .chip { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); }
#bandeau-appel .fermer-bandeau { flex: none; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgb(0 0 0 / .12); color: inherit; font-size: 16px; }
.appel .chip, .membre a.chip { display: inline-flex; align-items: center; }
