/* Pages publiques (calendrier, « cette semaine », fiches espèces) — DA « almanach
   botanique » : papier crème, encre brune, radius 0, ombre dure décalée.
   Feuille autonome : ces pages ne chargent pas Tailwind. */
:root {
  --papier: #f4ecdc; --papier-clair: #f9f3e6; --papier-ombre: #efe3c8;
  --encre: #241d12; --line: rgba(36, 29, 18, .22);
  --cepe: #b9793f; --lactaire: #d9772e;
  --muted: rgba(36, 29, 18, .66);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 17px/1.75 Georgia, "Iowan Old Style", serif;
}
a { color: var(--cepe); }
a:hover { color: var(--lactaire); }
a:focus-visible, summary:focus-visible, .vitrine-map path:focus-visible {
  outline: 2px solid var(--cepe); outline-offset: 3px;
}
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 16px; }

main.wrap { padding-top: 1.4rem; }
.eyebrow { font: .72rem/1 "Space Mono", ui-monospace, monospace; letter-spacing: .12em;
           text-transform: uppercase; color: var(--cepe); margin: 0 0 .9rem; }
h1 { font: italic 400 clamp(1.8rem, 4.4vw, 2.5rem)/1.1 Fraunces, Georgia, serif;
     margin: 0 0 .6rem; text-wrap: balance; }
h2 { font: italic 400 clamp(1.4rem, 3.4vw, 1.8rem)/1.15 Fraunces, Georgia, serif;
     margin: 1.6rem 0 .8rem; }
h1 em, h2 em { font-style: normal; color: var(--cepe); }
h3 { font: 600 1.05rem/1.3 Georgia, serif; margin: 0; }
.lead { color: var(--muted); max-width: 42rem; margin: 0 0 1.5rem; }
.now { border-left: 3px solid var(--cepe); padding: .3rem 0 .3rem 1rem; margin: 2rem 0; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--papier-clair); border: 1px solid var(--encre); padding: 1.1rem 1.2rem;
        box-shadow: 6px 6px 0 rgba(36, 29, 18, .10); }
.card.on { box-shadow: 6px 6px 0 rgba(185, 121, 63, .28); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover h3 { color: var(--cepe); }
.introuvable { margin: 2rem 0 -1rem; padding: .9rem 1rem; background: var(--papier-clair);
  border: 1px solid var(--encre); font: 12px/1.5 "Space Mono", ui-monospace, monospace; }
.latin { font-family: Fraunces, Georgia, serif; font-style: italic; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; margin-top: .55rem; font: .68rem/1 "Space Mono", monospace;
       text-transform: uppercase; letter-spacing: .08em; color: var(--papier); background: var(--cepe);
       padding: .3rem .45rem; }
dl { margin: .8rem 0 0; font-size: .92rem; }
dt { font: .68rem/1.2 "Space Mono", monospace; text-transform: uppercase; letter-spacing: .08em;
     color: var(--cepe); margin-top: .7rem; }
dd { margin: .15rem 0 0; }

details { border-top: 1px solid var(--line); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: .75rem 0 0; }

.cta { margin: 3.5rem 0; padding: 1.6rem; background: var(--papier-clair); border: 1px solid var(--encre);
       box-shadow: 8px 8px 0 rgba(36, 29, 18, .12); }
.cta p { margin: 0 0 1rem; }

footer { border-top: 1px solid var(--encre); color: var(--muted);
         font: .72rem/1.6 "Space Mono", ui-monospace, monospace; padding: 1.6rem 0 2.5rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-marque { font-family: Fraunces, Georgia, serif; font-style: italic; font-size: 1.05rem; color: var(--encre); }
.footer-note { font-family: "Space Mono", monospace; font-style: normal; font-size: .68rem; opacity: .6; }
.footer-liens { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.footer-liens a { color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-liens a:hover { color: var(--cepe); border-bottom-color: var(--cepe); }

/* ---- Vitrine : carte des départements (planche d'almanach) ---- */
.vitrine { margin: 2rem 0; }
.vitrine-species { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.1rem; }
.vitrine-species a { display: inline-block; padding: .38rem .65rem; border: 1px solid var(--encre);
  color: var(--encre); text-decoration: none; font: .78rem/1 "Space Mono", monospace; }
.vitrine-species a:hover { background: var(--papier-ombre); color: var(--encre); }
.vitrine-species a[aria-current="true"] { background: var(--encre); color: var(--papier); }
.vitrine-map { width: 100%; height: auto; max-height: 70vh; display: block;
  background: var(--papier-clair); border: 1px solid var(--encre); padding: 8px;
  box-shadow: 8px 8px 0 rgba(36, 29, 18, .12); }
.vitrine-map path { stroke: var(--encre); stroke-opacity: .5; stroke-width: 1; cursor: pointer; }
.vitrine-map path:hover, .vitrine-map path:focus { stroke-opacity: 1; stroke-width: 2; outline: none; }
/* couleurs doublées par des motifs (daltonisme) : le motif de la carte est celui de la légende */
.st-hors_saison { fill: url(#vit-hachures); }
.st-calme { fill: var(--papier); }
.st-demarre { fill: url(#vit-hachures-demarre); }
.st-pousse { fill: var(--lactaire); }
.vitrine-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: 0;
  margin: .9rem 0 0; font: .7rem/1.2 "Space Mono", monospace; color: var(--muted); }
.vitrine-legend span { display: inline-block; width: .8rem; height: .8rem; margin-right: .35rem;
  vertical-align: -1px; border: 1px solid rgba(36, 29, 18, .35); }
.vitrine-legend .l-demarre { background: repeating-linear-gradient(45deg, #e9a86c 0 3px, #d9772e 3px 5px); }
.vitrine-legend .l-pousse { background: var(--lactaire); }
.vitrine-legend .l-calme { background: var(--papier); }
.vitrine-legend .l-hors { background: repeating-linear-gradient(45deg, #cfc4ae 0 2px, #efe3c8 2px 5px); }
.vitrine-fiche { margin-top: 1.1rem; padding: 1.1rem; background: var(--papier-clair);
  border: 1px solid var(--encre); box-shadow: 6px 6px 0 rgba(36, 29, 18, .10); }
.vitrine-fiche[hidden] { display: none; }
.vitrine-note { color: var(--muted); font-size: .92rem; }

.disclaimer { max-width: 60rem; margin: 2.5rem auto 0; padding: .9rem 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--encre); font: .78rem/1.6 "Space Mono", ui-monospace, monospace; }

/* ---- Pages à carte (fiche espèce, « cette semaine ») : la carte du jour doit tenir à
   l'écran sans défilement. On resserre le haut de page (bandeau, titres, chapô,
   sélecteur) et on borne la carte à la place réellement disponible sous la barre.
   Cadrage inchangé sur les autres pages.
   Toutes les espèces restent visibles : on gagne la place sur la taille des chips,
   jamais sur leur nombre (une ligne défilante en cacherait la moitié). */
.fiche .latin { display: inline-block; margin-bottom: .2rem; }
.fiche .vitrine-species, .semaine .vitrine-species { gap: .3rem; margin-bottom: .7rem; }
.fiche .vitrine-species a, .semaine .vitrine-species a {
  padding: .25rem .45rem; font-size: .7rem; line-height: 1.25; }
.fiche .vitrine .eyebrow, .semaine .vitrine .eyebrow { margin-top: .2rem; margin-bottom: .5rem; }
.fiche .vitrine-map { max-height: min(70vh, calc(100vh - 384px)); }

.semaine .lead { font-size: .95rem; margin-bottom: .9rem; max-width: 46rem; }
.semaine .vitrine-map { max-height: min(70vh, calc(100vh - 372px)); }

/* ---- Page légale : du texte long, donc une colonne étroite et des titres lisibles ---- */
.legal > div { max-width: 44rem; }
.legal .font-serif, .legal div > div:first-child { font-family: Fraunces, Georgia, serif; }
.legal p { margin: 0 0 .8rem; }
.legal strong { font-weight: 700; }
