/* Le Cèdre : DA « Cerne & Résine ». CSS statique, aucune police chargée depuis Google au runtime (Fonts API Astro).
   Ratio : 70 % clair (aubier) / 20 % atlas-écorce / 10 % sombre (aiguille, duramen). Texte 18 px, interligne 1,65. */

:root {
  --aubier: #F1ECE2;     /* fond */
  --aubier-2: #E8E1D2;   /* panneaux : sommaire, infobox, légendes */
  --carte: #F8F5EE;      /* cartes, champs */
  --aiguille: #1E2620;   /* texte */
  --atlas: #2F5D50;      /* liens, accents, notes */
  --atlas-h: #1F4338;    /* liens au survol */
  --resine: #B07A2E;     /* filets et chiffres : jamais en texte fin sur fond clair */
  --ecorce: #8A6B4E;     /* filets secondaires */
  --ecorce-t: #6E5239;   /* écorce assombrie pour le texte (légendes, méta) */
  --duramen: #5A3A22;    /* pied de page */
  --duramen-t: #E8DCC8;  /* texte secondaire sur duramen */
  --f-fallback-titre: Georgia, serif;
  --lecture: 42rem;
  --gouttiere: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--aubier); color: var(--aiguille);
  font-family: var(--f-texte), Georgia, serif; font-size: 18px; line-height: 1.65;
  font-kerning: normal; hanging-punctuation: first; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--atlas); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--atlas-h); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--atlas); outline-offset: 2px; border-radius: 1px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--aiguille); color: var(--aubier); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; top: .5rem; }
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gouttiere); }

/* ---------- Titres ---------- */
h1, h2, h3, h4 { font-family: var(--f-titre), Georgia, serif; font-weight: 600; line-height: 1.15; color: var(--aiguille); text-wrap: balance; font-optical-sizing: auto; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.012em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.28rem; font-weight: 500; line-height: 1.25; }
h4 { font-size: 1.08rem; font-weight: 500; }

/* ---------- En-tête du site ---------- */
.site-header { background: var(--aubier); border-bottom: 1px solid var(--ecorce); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; max-width: 72rem; margin-inline: auto; padding: .7rem var(--gouttiere) .45rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--aiguille); }
.brand:hover { color: var(--aiguille); }
.brand__mark { width: 40px; height: 40px; }
.brand__name { font-family: var(--f-titre), Georgia, serif; font-weight: 600; font-size: 1.55rem; letter-spacing: -0.01em; }
.nav-toggle { display: none; font: 600 1rem var(--f-texte), Georgia, serif; background: transparent; color: var(--aiguille); border: 1px solid var(--ecorce); padding: .45rem .9rem; cursor: pointer; }
.site-nav { max-width: 72rem; margin-inline: auto; padding: 0 var(--gouttiere); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem 1.3rem; margin: 0; padding: .1rem 0 .55rem; }
.site-nav a { display: inline-block; padding: .3rem 0; font-size: .98rem; font-weight: 600; color: var(--aiguille); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--atlas-h); border-bottom-color: var(--ecorce); }
.site-nav a[aria-current] { border-bottom-color: var(--resine); }

/* ---------- Bandeau hero + en-tête de page ---------- */
.herofig { margin: 0; background: var(--aubier-2); }
.img-hero { aspect-ratio: 16 / 9; max-height: min(75vh, 44vw); overflow: hidden; width: 100%; }
.img-hero img, .img-card img, .img-body img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.herofig__cap { border-top: 1px solid var(--ecorce); background: var(--aubier-2); font-size: .84rem; line-height: 1.45; color: var(--ecorce-t); padding: .5rem 0; }
.entete { position: relative; overflow: hidden; background: var(--aubier); border-bottom: 1px solid var(--ecorce); }
.cernes-fond { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .22; }
.container--entete { position: relative; padding-block: 1.1rem 1.9rem; }
.container--entete h1 { max-width: 24ch; margin-top: .9rem; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; margin: 1rem 0 0; font-size: .92rem; color: var(--ecorce-t); }
.meta__cat { font-weight: 600; color: var(--atlas); }
.meta__verif { font-style: italic; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; font-size: .88rem; color: var(--ecorce-t); }
.crumbs li + li::before { content: "/"; margin: 0 .5rem; color: var(--ecorce); }
.crumbs a { color: var(--ecorce-t); }
.crumbs a:hover { color: var(--atlas-h); }

/* ---------- Page : colonne de lecture + infobox latérale ---------- */
.page { padding-block: 2.2rem 4rem; }
.page__grille { display: block; }
.page__infobox { margin-bottom: 1.6rem; }
.page__texte { max-width: var(--lecture); min-width: 0; }
@media (min-width: 1100px) {
  .page__grille:not(.page__grille--seule) { display: grid; grid-template-columns: minmax(0, var(--lecture)) 20rem; column-gap: 4.5rem; align-items: start; }
  .page__grille:not(.page__grille--seule) .page__texte { grid-column: 1; grid-row: 1; }
  .page__grille:not(.page__grille--seule) .page__infobox { grid-column: 2; grid-row: 1; margin: 0; position: sticky; top: 1rem; }
  .page__grille--pilier { align-items: start; }
}

/* ---------- Texte courant ---------- */
.prose > * + * { margin-top: 1.15rem; }
.prose > p:first-child { font-size: 1.16rem; line-height: 1.6; border-left: 3px solid var(--resine); padding-left: 1.05rem; }
.prose h2 { margin-top: 2.9rem; padding-top: 1.3rem; border-top: 1px solid var(--ecorce); scroll-margin-top: 1rem; }
.prose h3 { margin-top: 2rem; scroll-margin-top: 1rem; }
.prose h2 + *, .prose h3 + * { margin-top: .8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .4rem; }
.prose li::marker { color: var(--resine); }
.prose blockquote { margin-inline: 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--ecorce); font-style: italic; }
.prose blockquote p + p { margin-top: .7rem; }
.prose hr { border: 0; border-top: 1px solid var(--ecorce); margin-block: 2.2rem; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .94rem; line-height: 1.45; }
.prose th, .prose td { border: 1px solid var(--ecorce); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--aubier-2); font-family: var(--f-titre), Georgia, serif; font-weight: 600; }
.prose code { font-size: .92em; background: var(--aubier-2); padding: .05em .3em; }
.fig { margin: 1.8rem 0; }
.fig .img-body { border: 1px solid var(--ecorce); }
.fig figcaption, .herofig figcaption, .infobox figcaption { font-size: .86rem; line-height: 1.45; color: var(--ecorce-t); margin-top: .5rem; }
.credit a { color: var(--ecorce-t); }
.img-card { aspect-ratio: 3 / 2; overflow: hidden; display: block; }
.img-body { aspect-ratio: 3 / 2; overflow: hidden; }
.img-portrait { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50%; }

/* ---------- Notes numérotées et références ---------- */
sup.note { font-size: .72em; line-height: 0; margin-left: .08em; }
sup.note a { color: var(--atlas); font-weight: 600; text-decoration: none; padding: 0 .06em; }
sup.note a:hover { text-decoration: underline; }
.references { margin-top: 2.6rem; }
.references h2, .voir-aussi h2, .faq h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.references__liste { margin: 0; padding-left: 2.1rem; font-size: .93rem; line-height: 1.5; }
.references__liste li { padding-left: .3rem; margin-top: .55rem; scroll-margin-top: 1rem; }
.references__liste li::marker { color: var(--atlas); font-weight: 600; }
.references__liste li:target { background: var(--aubier-2); box-shadow: -.5rem 0 0 var(--aubier-2), -.7rem 0 0 var(--resine); }
.references__retour { overflow-wrap: anywhere; }
.references__retour a { color: var(--atlas); text-decoration: none; font-weight: 600; margin-inline: .08em; }
.references__titre { overflow-wrap: anywhere; }
.references__date { color: var(--ecorce-t); }
sup.note:target a { background: var(--aubier-2); outline: 2px solid var(--resine); }

/* ---------- Sommaire ---------- */
.sommaire, .article-sommaire { background: var(--aubier-2); border: 1px solid var(--ecorce); margin: 0 0 2rem; }
.sommaire__titre { cursor: pointer; font: 600 1.15rem var(--f-titre), Georgia, serif; padding: .8rem 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sommaire__titre::-webkit-details-marker { display: none; }
.sommaire__titre::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--atlas); }
.sommaire__det[open] > .sommaire__titre::after { content: "\2212"; }
.sommaire__liste { list-style: none; margin: 0; padding: 0 1.1rem 1rem; font-size: .96rem; line-height: 1.4; }
.sommaire__liste li { margin-top: .4rem; }
.sommaire__sous { padding-left: 1.5rem; font-size: .92rem; }
.sommaire__num { display: inline-block; min-width: 1.5rem; color: var(--ecorce-t); font-variant-numeric: tabular-nums; }

/* ---------- Infobox ---------- */
.infobox { background: var(--carte); border: 1px solid var(--ecorce); padding: 1rem 1.1rem 1.1rem; font-size: .93rem; line-height: 1.45; }
.infobox__nom { margin: 0; font: 600 1.25rem/1.2 var(--f-titre), Georgia, serif; }
.infobox__latin { margin: .15rem 0 .8rem; color: var(--atlas); font-size: 1.02rem; }
.infobox__img { margin: .2rem 0 .9rem; border: 1px solid var(--ecorce); }
.infobox--pays .infobox__nom { margin-bottom: .8rem; }
.infobox__liste { margin: 0; display: grid; grid-template-columns: 1fr; }
.infobox__liste dt { margin-top: .65rem; padding-top: .6rem; border-top: 1px dotted var(--ecorce); font-weight: 600; color: var(--ecorce-t); font-size: .86rem; }
.infobox__liste dt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.infobox__liste dd { margin: .1rem 0 0; }
.infobox__voisines { margin-top: .9rem; padding-top: .7rem; border-top: 2px solid var(--resine); }
.infobox__titre { margin: 0 0 .3rem; font-weight: 600; color: var(--ecorce-t); font-size: .86rem; }
.infobox__voisines ul { margin: 0; padding-left: 1.1rem; }
@media (min-width: 560px) and (max-width: 1099px) {
  .infobox__liste { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1rem; }
  .infobox__liste dt { margin-top: 0; padding-top: .55rem; margin-bottom: 0; }
  .infobox__liste dd { margin: 0; padding-top: .55rem; border-top: 1px dotted var(--ecorce); }
  .infobox__liste dt:first-child, .infobox__liste dt:first-child + dd { border-top: 0; padding-top: 0; }
  .infobox__liste dt { border-top: 1px dotted var(--ecorce); }
}

/* ---------- Termes du glossaire (info-bulle) ---------- */
.terme { position: relative; }
.terme__lien { text-decoration: none; border-bottom: 1px dotted var(--atlas); }
.terme__lien:hover { border-bottom-style: solid; }
.terme__tip { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + .5rem); width: min(21rem, 82vw); transform: translateX(calc(-50% + var(--tip-dx, 0px))); background: var(--aiguille); color: var(--aubier); padding: .6rem .8rem; font-size: .88rem; line-height: 1.4; font-style: normal; font-weight: 400; text-align: left; display: none; pointer-events: none; }
.terme__nom { font-weight: 600; }
.terme:hover .terme__tip, .terme:focus-within .terme__tip { display: block; }

/* ---------- Chronologie ---------- */
.chrono { list-style: none; margin: 1.4rem 0 0; padding: 0; position: relative; }
.chrono::before { content: ""; position: absolute; left: 6.3rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--resine); }
.chrono__item { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); column-gap: 1.7rem; position: relative; padding-bottom: 1.4rem; }
.chrono__item::before { content: ""; position: absolute; left: calc(5.4rem + .85rem - 5px); top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--aubier); border: 2px solid var(--resine); }
.chrono__date { font: 600 1rem/1.3 var(--f-titre), Georgia, serif; color: var(--atlas); text-align: right; padding-top: .2rem; }
.chrono__corps h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.chrono__corps p { margin: 0; font-size: .97rem; line-height: 1.55; }
@media (max-width: 520px) {
  .chrono::before { left: 5px; }
  .chrono__item { display: block; padding-left: 1.6rem; }
  .chrono__item::before { left: 0; }
  .chrono__date { text-align: left; display: block; }
}

/* ---------- Voir aussi, FAQ ---------- */
.voir-aussi { margin-top: 2.6rem; }
.voir-aussi ul { margin: 0; padding-left: 1.3rem; }
.voir-aussi li::marker { color: var(--resine); }
.faq { margin-top: 2rem; }
.faq__item { border-bottom: 1px solid var(--ecorce); }
.faq__item:first-of-type { border-top: 1px solid var(--ecorce); }
.faq__item summary { cursor: pointer; padding: .85rem 2rem .85rem 0; font: 500 1.1rem/1.35 var(--f-titre), Georgia, serif; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: .2rem; top: .7rem; font-size: 1.5rem; line-height: 1; color: var(--atlas); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0 0 1rem; }

/* ---------- Cernes : séparateurs, frise ---------- */
.sep-cernes { margin: 2.6rem 0 0; height: 44px; overflow: hidden; }
.sep-cernes svg { display: block; width: 100%; height: 44px; }
.frise { margin: 2rem 0; padding: 1.1rem 1.1rem 1.3rem; background: var(--carte); border: 1px solid var(--ecorce); }
.frise__titre { font: 600 1.15rem var(--f-titre), Georgia, serif; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline; }
.frise__legende { font: 400 .88rem var(--f-texte), Georgia, serif; color: var(--ecorce-t); }
.frise__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; align-items: flex-end; justify-content: space-around; }
.frise__item { flex: 1 1 8rem; min-width: 8rem; text-align: center; }
.frise__svg { display: block; margin: 0 auto; height: auto; min-width: 70px; max-width: 100%; }
.frise__nom { margin: .5rem 0 0; font: 600 .95rem/1.3 var(--f-titre), Georgia, serif; }
.frise__age { margin: .1rem 0 0; font-size: .86rem; line-height: 1.35; color: var(--ecorce-t); }
.frise__chiffre { font: 600 1.4rem var(--f-titre), Georgia, serif; color: var(--resine); }

/* Animation unique : apparition des cernes à l'accueil. */
.cernes-fond--anime circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.8s cubic-bezier(.3, .6, .3, 1) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cernes-fond--anime circle { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Cartes « étiquette d'herbier » ---------- */
.herbier { display: grid; grid-template-columns: minmax(0, 38%) 1fr; background: var(--carte); border: 1px solid var(--ecorce); }
.herbier__img { border-right: 1px dashed var(--ecorce); }
.herbier__corps { padding: .9rem 1.1rem 1rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.herbier__kicker { margin: 0; font-size: .85rem; line-height: 1.35; color: var(--ecorce-t); padding-bottom: .5rem; background: linear-gradient(var(--resine), var(--resine)) left bottom / 2.6rem 2px no-repeat; }
.herbier__cat { font-weight: 600; color: var(--atlas); margin-right: .6rem; }
.herbier__titre { margin-top: .6rem; font-size: 1.2rem; }
.herbier__titre a { color: var(--aiguille); text-decoration: none; }
.herbier__titre a:hover { color: var(--atlas-h); text-decoration: underline; }
.herbier__latin { margin: .15rem 0 0; color: var(--atlas); font-size: .98rem; }
.herbier__extrait { margin: .45rem 0 0; font-size: .93rem; line-height: 1.5; }
.herbier__credit { margin: .35rem 0 0; font-size: .74rem; line-height: 1.35; opacity: .8; }
.herbier__credit a { color: inherit; }
.liste-herbier { display: grid; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 560px) {
  .herbier { grid-template-columns: 1fr; }
  .herbier__img { border-right: 0; border-bottom: 1px dashed var(--ecorce); }
}

/* ---------- Accueil provisoire ---------- */
.accueil { position: relative; overflow: hidden; border-bottom: 1px solid var(--ecorce); }
.accueil .cernes-fond { opacity: .3; }
.accueil__inner { position: relative; padding-block: 4rem 3.6rem; }
.accueil h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); max-width: 14ch; }
.accueil__sous { font: 500 clamp(1.15rem, 2.4vw, 1.5rem)/1.3 var(--f-titre), Georgia, serif; color: var(--atlas); margin: 1rem 0 0; }
.accueil__chapeau { max-width: 38rem; font-size: 1.15rem; margin: 1.4rem 0 0; }
.section { padding-block: 2.6rem; }
.section h2 { margin-bottom: 1.3rem; }
.explorer { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); border-top: 1px solid var(--ecorce); }
.explorer a { display: block; padding: 1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--ecorce); text-decoration: none; color: var(--aiguille); }
.explorer a:hover { color: var(--atlas-h); }
.explorer__nom { font: 600 1.2rem var(--f-titre), Georgia, serif; }
.explorer__desc { display: block; font-size: .93rem; line-height: 1.45; color: var(--ecorce-t); margin-top: .2rem; }

/* ---------- Glossaire ---------- */
.alphabet { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1.6rem 0; }
.alphabet a { min-width: 2.2rem; padding: .25rem .5rem; text-align: center; border: 1px solid var(--ecorce); font: 600 1rem var(--f-titre), Georgia, serif; text-decoration: none; }
.alphabet a:hover { background: var(--aubier-2); }
.glossaire__lettre { font-size: 2.4rem; color: var(--resine); margin-top: 2rem; border-bottom: 1px solid var(--ecorce); padding-bottom: .2rem; }
.glossaire dl { margin: 0; }
.glossaire__terme { padding: .9rem 0; border-bottom: 1px dotted var(--ecorce); scroll-margin-top: 1rem; }
.glossaire__terme:target { background: var(--aubier-2); box-shadow: -.7rem 0 0 var(--aubier-2), -1rem 0 0 var(--resine); }
.glossaire dt { font: 600 1.15rem var(--f-titre), Georgia, serif; }
.glossaire dd { margin: .25rem 0 0; }

/* ---------- Boutons et formulaire ---------- */
.btn { display: inline-block; background: var(--atlas); color: var(--aubier); font: 600 1rem var(--f-texte), Georgia, serif; padding: .7rem 1.4rem; border: 0; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--atlas-h); color: var(--aubier); }
.btn:disabled { opacity: .6; cursor: wait; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 34rem; margin-top: 1.4rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.contact-form label { font-weight: 600; font-size: .95rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; padding: .65rem .8rem; border: 1px solid var(--ecorce); background: var(--carte); color: var(--aiguille); font: inherit; font-size: 1rem; border-radius: 0; }
.contact-form__piege { position: absolute; left: -9999px; }
.contact-form .btn { align-self: flex-start; }
.contact-form__statut { margin: 0; min-height: 1.6em; font-weight: 600; }
.contact-form__statut.is-ok { color: var(--atlas-h); }
.contact-form__statut.is-erreur { color: #8A2A1B; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--duramen); color: var(--aubier); margin-top: 3rem; padding-top: 2.6rem; font-size: .95rem; line-height: 1.55; }
.site-footer a { color: var(--aubier); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--aubier); }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer__marque { font: 600 1.5rem var(--f-titre), Georgia, serif; margin: 0 0 .3rem; }
.site-footer__indep { color: var(--duramen-t); }
.site-footer__titre { font-weight: 600; margin: 0 0 .5rem; color: var(--duramen-t); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .3rem; }
.site-footer__bas { border-top: 1px solid rgba(241, 236, 226, .3); margin-top: 2rem; padding-block: 1rem 1.4rem; color: var(--duramen-t); font-size: .88rem; }
.site-footer__bas p { margin: 0; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; border-top: 1px solid var(--ecorce); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .4rem 0 .8rem; }
  .site-nav a { padding: .5rem 0; width: 100%; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .prose > p:first-child { font-size: 1.1rem; }
  .accueil__inner { padding-block: 2.6rem 2.4rem; }
}

/* ---------- Impression : texte, infobox et références seulement ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .skip, .sep-cernes, .cernes-fond, .nav-toggle, .herofig__cap { display: none; }
  .entete { border: 0; }
  .page__grille { display: block !important; }
  .page__infobox { position: static !important; margin-bottom: 1rem; break-inside: avoid; }
  .sommaire__det > * { display: block; }
  a { color: inherit; text-decoration: none; }
  .references a::after { content: " (" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
  .terme__tip { display: none; }
}

/* ---------- Prompt 02 : blog, accueil, glossaire, sources, carte ---------- */
.herbier:not(:has(.herbier__img)) { grid-template-columns: 1fr; }
.liste-herbier > [hidden] { display: none; }
.filtre { margin-bottom: 1.6rem; }
.filtre__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.filtre__btn { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--ecorce); background: var(--carte); color: var(--aiguille); font-weight: 600; font-size: .95rem; text-decoration: none; }
.filtre__btn:hover { background: var(--aubier-2); color: var(--aiguille); }
.filtre__btn.is-actif { background: var(--atlas); border-color: var(--atlas); color: var(--aubier); }
.filtre__n { font-weight: 400; opacity: .85; margin-left: .2rem; }
.filtre__n::before { content: "("; }
.filtre__n::after { content: ")"; }
.filtre__etat { margin: .8rem 0 0; min-height: 1.4em; font-size: .95rem; color: var(--ecorce-t); }

.especes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; }
.especes a { display: block; padding: .8rem 1rem; background: var(--carte); border: 1px solid var(--ecorce); border-left: 3px solid var(--resine); text-decoration: none; color: var(--aiguille); }
.especes a:hover { background: var(--aubier-2); }
.especes__nom { display: block; font: 600 1.1rem var(--f-titre), Georgia, serif; }
.especes__latin { display: block; color: var(--atlas); font-size: .95rem; }
.section__suite { margin: 1.2rem 0 0; }
.symbole { background: var(--aubier-2); border-left: 4px solid var(--resine); padding: 1.4rem 1.6rem; }
.symbole h2 { margin-bottom: .6rem; }
.symbole p { margin: 0; max-width: 46rem; }

.recherche { display: flex; flex-direction: column; gap: .3rem; margin: 1.4rem 0 0; max-width: 28rem; }
.recherche label { font-weight: 600; font-size: .95rem; }
.recherche input { padding: .6rem .8rem; border: 1px solid var(--ecorce); background: var(--carte); color: var(--aiguille); font: inherit; border-radius: 0; }
.recherche__etat { margin: .3rem 0 0; min-height: 1.4em; font-size: .93rem; color: var(--ecorce-t); }
.glossaire [hidden], .glossaire__section[hidden] { display: none; }
.themes { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .95rem; }
.glossaire__theme { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--ecorce-t); border: 1px solid var(--ecorce); padding: 0 .4rem; margin-left: .5rem; vertical-align: .15em; }

.biblio h3 { margin: 1.6rem 0 .6rem; }
.biblio ul { padding-left: 1.2rem; margin: 0; }
.biblio li { margin: .5rem 0; font-size: .97rem; line-height: 1.5; }
.biblio__n { color: var(--ecorce-t); font-size: .95rem; }

.carte { margin: 1.8rem 0; background: var(--carte); border: 1px solid var(--ecorce); }
.carte__svg { width: 100%; height: auto; display: block; }
.carte figcaption { padding: .8rem 1.1rem 1rem; border-top: 1px dashed var(--ecorce); font-size: .93rem; }
.carte__titre { margin: 0 0 .5rem; font-weight: 600; }
.carte__legende { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.carte__pastille { display: inline-block; width: 1.1rem; height: .8rem; border: 1px solid var(--aiguille); margin-right: .55rem; vertical-align: -.05em; }
.carte__pastille--libani { background: var(--resine); }
.carte__pastille--brev { background: repeating-linear-gradient(45deg, var(--resine) 0 2px, var(--carte) 2px 5px); }
.carte__pastille--atlantica { background: var(--atlas); }
.carte__pastille--deodara { background: radial-gradient(var(--duramen) 35%, var(--carte) 40%) 0 0 / 5px 5px; }
.recherche[hidden] { display: none; }
.index__ligne { margin: .35rem 0; line-height: 1.7; scroll-margin-top: 1rem; }
.index__lettre { display: inline-block; min-width: 1.6rem; color: var(--resine); font-family: var(--f-titre), Georgia, serif; }

/* Variantes de mise en page : aucune règle propre (grille commune), déclarées pour mémoire. */
.page__grille--article, .page__grille--espece, .page__grille--pays, .infobox--botanique { position: relative; }

/* Sommaire du glossaire : la liste des thèmes garde son style, sans le cadre du sommaire. */
.article-sommaire--themes { background: none; border: 0; margin: 0; }
