/*
 * Le site de Mon petit potager.
 *
 * Il reprend la coque de l'application, pas un thème de blog : à plat, sans
 * ombre, des cartes séparées par un filet. Le filet est le seul signal de
 * structure, donc il tient 3:1 contre les fonds (leçon du 15/09/2026, quand
 * l'appli jugée dehors n'était plus qu'un mur blanc : voir `Palette.kt`).
 *
 * Deux matières :
 *   - le papier d'herbier (#F1EADA), qui est la couleur cuite dans les planches
 *     botaniques. Toute image de plante est posée dessus, en clair COMME en
 *     sombre : les vignettes détourées gardent un résidu rose sur leurs bords,
 *     invisible sur le papier, franchement visible sur un fond sombre ;
 *   - la frise des douze mois, avec les quatre couleurs de gestes de l'appli.
 *     Une couleur ne porte jamais seule l'information : chaque case a son
 *     texte pour les lecteurs d'écran, et les dates sont écrites à côté.
 *
 * Les polices sont celles de l'application (Inter, Instrument Serif), servies
 * par le site : aucun appel à un tiers, rien à déclarer côté cookies. Si un
 * fichier manque, la pile de repli prend le relais.
 */

@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("/polices/inter-variable.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/polices/instrument-serif-italic.woff2") format("woff2"); }

:root {
  --fond: #fbfaf8;
  --carte: #ffffff;
  --creux: #f2f0ec;          /* fond des zones secondaires */
  --encre: #1b1a17;
  --gris: #5c5850;           /* texte secondaire, 7:1 sur le fond */
  --filet: #8a8782;          /* 3:1 contre le fond et la carte */
  --filet-doux: #d9d6cf;     /* séparateurs à l'intérieur d'une carte */
  --vert: #0f4d33;
  --vert-pale: #dce9e1;
  --sur-vert: #ffffff;
  --papier: #f1eada;         /* le papier des planches : ne change pas en sombre */
  --encre-papier: #2c2a25;

  --savoir-fond: #f6ebd3;  --savoir-encre: #46330a;  --savoir-filet: #92876e;
  --alerte-fond: #f8e1de;  --alerte-encre: #5c120c;  --alerte-filet: #a37a76;

  --abri-fond: #f5ebd6;      --abri: #6e5210;
  --terre-fond: #e3ede6;     --terre: #2a6244;
  --plant-fond: #deebec;     --plant: #17565e;
  --automne-fond: #e4e7f1;   --automne: #33406b;
  --recolte: #0f4d33;
  --case-vide: #eceae5;

  --texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --mesure: 66ch;
  --large: 1120px;
  --rayon: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #121211;
    --carte: #1b1c19;
    --creux: #232420;
    --encre: #e8e6df;
    --gris: #b7b3a9;
    --filet: #827f78;
    --filet-doux: #3a3b35;
    --vert: #7fcba4;
    --vert-pale: #1e4634;
    --sur-vert: #05311e;

    --savoir-fond: #3c3010;  --savoir-encre: #f3dfae;  --savoir-filet: #8a7a4c;
    --alerte-fond: #4a1712;  --alerte-encre: #ffdad5;  --alerte-filet: #a0605a;

    --abri-fond: #3a3117;      --abri: #e4c77f;
    --terre-fond: #1d3f2e;     --terre: #8fd3ae;
    --plant-fond: #16383d;     --plant: #86cbd4;
    --automne-fond: #23283f;   --automne: #a9b6e4;
    --recolte: #7fcba4;
    --case-vide: #2b2c26;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--vert); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 6.4vw, 4.4rem); letter-spacing: -0.01em; line-height: 1.02; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 650; letter-spacing: -0.015em; margin-top: 2.2em; }
h3 { font-size: 1.15rem; font-weight: 650; margin-top: 1.6em; }

p, ul, ol, dl { margin: 0 0 1em; }
li { margin-bottom: .3em; }

.page { max-width: var(--large); margin: 0 auto; padding: 0 20px; }
.lecture { max-width: var(--mesure); }
.chapeau { font-size: 1.2rem; max-width: var(--mesure); color: var(--encre); }
.discret { color: var(--gris); font-size: .93rem; }
.sur-titre { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin: 0 0 .5rem; }
.maj { margin-top: 3rem; }

/* ---------------------------------------------------------------- en-tête */

.entete { border-bottom: 1px solid var(--filet); background: var(--fond); }
.entete .page { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; padding-block: .8rem; }
.marque { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; margin-right: auto; color: var(--encre); text-decoration: none; }
.marque img { width: 36px; height: 36px; border-radius: 10px; }
.navigation { display: flex; flex-wrap: wrap; gap: .2rem 1.15rem; font-size: .97rem; font-weight: 500; }
.navigation a { color: var(--encre); text-decoration: none; padding-block: .25rem; }
.navigation a:hover { text-decoration: underline; }
.navigation [aria-current="page"] { text-decoration: underline; text-decoration-color: var(--vert); text-decoration-thickness: 3px; text-underline-offset: 7px; }

.fil { font-size: .88rem; color: var(--gris); margin: 1.3rem 0 1.5rem; }
.fil a { color: var(--gris); }

main { padding-bottom: 4rem; }

/* ----------------------------------------------------------------- bouton */

.bouton { display: inline-block; background: var(--vert); color: var(--sur-vert); font-weight: 650; text-decoration: none; padding: .8rem 1.4rem; border-radius: 999px; }
.bouton:hover { text-decoration: underline; }
.bouton.clair { background: transparent; color: var(--vert); border: 1.5px solid var(--vert); }

/* ----------------------------------------------------------------- cartes */

.carte { background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.2rem 1.3rem; }
.carte > :last-child { margin-bottom: 0; }
.carte h2:first-child, .carte h3:first-child { margin-top: 0; }

.encadre { border-radius: var(--rayon); padding: 1rem 1.2rem; margin: 1.4rem 0; max-width: var(--mesure); }
.encadre > :last-child { margin-bottom: 0; }
.encadre strong:first-child { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.savoir { background: var(--savoir-fond); color: var(--savoir-encre); border: 1px solid var(--savoir-filet); }
.alerte { background: var(--alerte-fond); color: var(--alerte-encre); border: 1px solid var(--alerte-filet); }
.encadre a { color: inherit; }

/* ---------------------------------------------- la planche et son cartel */

.planche { margin: 0; background: var(--papier); color: var(--encre-papier); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 20px 20px 14px; }
.planche img { width: 100%; border-radius: 4px; }
.planche figcaption { text-align: center; padding-top: 12px; }
.planche .latin { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.2; display: block; }
.planche .famille { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }

.tete-fiche { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.4rem; align-items: start; margin-bottom: 1rem; }
@media (max-width: 800px) { .tete-fiche { grid-template-columns: 1fr; gap: 1.4rem; } .tete-fiche .planche { max-width: 420px; } }

/* --------------------------------------------------------------- vignettes */

.grille { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.grille li { margin: 0; }
.grille a { display: block; height: 100%; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 10px 10px 12px; text-decoration: none; color: var(--encre); }
.grille a:hover { border-color: var(--vert); }
.grille a:hover strong { text-decoration: underline; }
.grille img { background: var(--papier); border-radius: 8px; aspect-ratio: 1; object-fit: contain; width: 100%; margin-bottom: 8px; }
.grille strong { display: block; font-size: 1rem; line-height: 1.25; }
.grille span { display: block; color: var(--gris); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.grille.blanc img { background: #ffffff; }
.grille.large { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.liens-courts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.liens-courts li { margin: 0; }
.liens-courts a, .liens-courts span.sans-lien { display: inline-block; border: 1px solid var(--filet); border-radius: 999px; padding: .25rem .8rem; text-decoration: none; color: var(--encre); background: var(--carte); font-size: .95rem; }
.liens-courts a:hover { border-color: var(--vert); color: var(--vert); }

/* Ce que l'application garde pour ses abonnés : une place à la forme de ce
 * qui manque, jamais un contenu flouté (même règle que dans l'appli). */
.reserve { display: inline-block; border: 1px dashed var(--filet); border-radius: 999px; padding: .25rem .8rem; color: var(--gris); font-size: .93rem; text-decoration: none; }
a.reserve:hover { border-color: var(--vert); color: var(--vert); }

/* ----------------------------------------------------------------- gestes */

.geste { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.geste::before { content: ""; width: .72rem; height: .72rem; border-radius: 4px; background: currentColor; flex: none; }
.g-abri { color: var(--abri); }
.g-terre { color: var(--terre); }
.g-plant { color: var(--plant); }
.g-automne { color: var(--automne); }
.g-recolte { color: var(--recolte); }

.creneaux { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 10px; max-width: var(--mesure); }
.creneaux li { margin: 0; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: .85rem 1.1rem; }
.creneaux .quand { display: block; font-size: 1.12rem; font-weight: 600; margin-top: .1rem; color: var(--encre); }
.creneaux .regle { display: block; color: var(--gris); font-size: .93rem; }

/* ------------------------------------------------------------------ frise */

.frise { border-collapse: separate; border-spacing: 4px; width: 100%; max-width: 560px; font-size: .9rem; margin: .6rem 0; }
.frise caption { text-align: left; font-weight: 650; padding-bottom: .4rem; }
.frise th { font-weight: 500; color: var(--gris); text-align: left; white-space: nowrap; padding: 0 .6rem 0 0; }
.frise thead th { text-align: center; padding: 0; font-size: .8rem; }
.frise td { height: 18px; min-width: 16px; border-radius: 5px; background: var(--case-vide); padding: 0; }
.frise td.on.g-abri { background: var(--abri); }
.frise td.on.g-terre { background: var(--terre); }
.frise td.on.g-plant { background: var(--plant); }
.frise td.on.g-automne { background: var(--automne); }
.frise td.on.g-recolte { background: var(--recolte); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ----------------------------------------------------------------- faits */

.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--carte); overflow: hidden; margin: 1rem 0; }
.faits div { padding: .8rem 1.1rem; border-bottom: 1px solid var(--filet-doux); border-right: 1px solid var(--filet-doux); margin: -0px -1px -1px 0; }
.faits dt { color: var(--gris); font-size: .86rem; }
.faits dd { margin: 0; font-weight: 650; font-size: 1.08rem; }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 1.4rem 0; }
.chiffres div { background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1rem 1.1rem; }
.chiffres strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.3rem; line-height: 1.05; color: var(--vert); }
.chiffres span { color: var(--gris); font-size: .92rem; }

/* --------------------------------------------------------------- tableaux */

.defile { overflow-x: auto; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--carte); margin: 1rem 0; }
table.donnees { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.donnees th, table.donnees td { text-align: left; padding: .55rem .9rem; border-bottom: 1px solid var(--filet-doux); vertical-align: top; }
table.donnees thead th { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); font-weight: 600; background: var(--creux); border-bottom: 1px solid var(--filet); white-space: nowrap; }
table.donnees tbody tr:last-child td, table.donnees tbody tr:last-child th { border-bottom: 0; }
table.donnees tbody th { font-weight: 600; }
table.donnees td.nb { white-space: nowrap; }
table.donnees a { color: var(--encre); }

/* ------------------------------------------------------- listes de gestes */

.par-geste { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 1rem 0 1.6rem; }
.par-geste section { background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1rem 1.1rem; }
.par-geste h3 { margin: 0 0 .6rem; font-size: 1rem; }
.par-geste ul { list-style: none; padding: 0; margin: 0; }
.par-geste li { padding: .28rem 0; border-top: 1px solid var(--filet-doux); margin: 0; font-size: .97rem; }
.par-geste li:first-child { border-top: 0; }
.par-geste li small { color: var(--gris); display: block; font-size: .84rem; line-height: 1.35; }
.par-geste a { color: var(--encre); }
.par-geste p { margin: 0; color: var(--gris); font-size: .93rem; }

.mois-nav { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.mois-nav li { margin: 0; }
.mois-nav a { display: block; border: 1px solid var(--filet); border-radius: 999px; padding: .28rem .85rem; text-decoration: none; color: var(--encre); background: var(--carte); font-size: .93rem; }
.mois-nav a:hover, .mois-nav a[aria-current="page"] { background: var(--vert); color: var(--sur-vert); border-color: var(--vert); }

/* ------------------------------------------------------------------- lune */

table.lune td.type-RACINE { color: var(--abri); }
table.lune td.type-FEUILLE { color: var(--terre); }
table.lune td.type-FLEUR { color: var(--automne); }
table.lune td.type-FRUIT { color: var(--alerte-encre); }
table.lune td.type { font-weight: 600; }
table.lune tr.phase-cle th, table.lune tr.phase-cle td { background: var(--creux); }
.disque { display: inline-block; width: 1.05em; height: 1.05em; border-radius: 50%; border: 1px solid var(--filet); vertical-align: -.16em; margin-right: .4rem; background: linear-gradient(90deg, var(--encre) var(--part, 50%), var(--carte) var(--part, 50%)); }

/* ---------------------------------------------------------------- étapes */

.etapes { counter-reset: etape; list-style: none; padding: 0; max-width: var(--mesure); }
.etapes li { counter-increment: etape; position: relative; padding: .1rem 0 .9rem 2.9rem; margin: 0; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--vert-pale); color: var(--vert); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }

.illustration { margin: 0; background: #ffffff; border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; }
.illustration img { width: 100%; }

/* ------------------------------------------------------- bloc application */

.appli { display: flex; gap: 1.2rem; align-items: center; background: var(--vert-pale); border: 1px solid var(--vert); border-radius: var(--rayon); padding: 1.3rem 1.4rem; margin: 2.6rem 0 0; }
.appli img { width: 68px; height: 68px; border-radius: 16px; flex: none; }
.appli p { margin: 0 0 .8rem; max-width: 60ch; }
.appli strong { display: block; font-size: 1.12rem; }
.appli .discret { display: inline-block; margin-left: .7rem; color: var(--encre); opacity: .8; }
@media (max-width: 560px) { .appli { flex-direction: column; align-items: flex-start; } .appli .discret { margin: .7rem 0 0; display: block; } }

/* ---------------------------------------------------------------- accueil */

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; padding-block: 3.2rem 2.4rem; }
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 5.2rem); }
.hero .chapeau { font-size: 1.25rem; }
.hero-planches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-1.5deg); }
.hero-planches img { background: var(--papier); border: 1px solid var(--filet); border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero-planches img:nth-child(2), .hero-planches img:nth-child(5) { transform: translateY(18px); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 2rem 1.4rem; } .hero-planches { transform: none; max-width: 520px; } }

.choix-dept { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.4rem 0 .6rem; }
.choix-dept label { font-weight: 600; flex-basis: 100%; }
.choix-dept select { font: inherit; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--filet); background: var(--carte); color: var(--encre); min-width: min(100%, 290px); }

.ecart { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 1.2rem 0; }
.ecart div { background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.2rem 1.3rem; }
.ecart strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; color: var(--vert); }

.captures { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 14px; margin: 1.2rem 0; scroll-snap-type: x proximity; }
.captures img { width: 232px; max-width: none; flex: none; border: 1px solid var(--filet); border-radius: 18px; scroll-snap-align: start; }

.rubriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 1.2rem 0; list-style: none; padding: 0; }
.rubriques li { margin: 0; }
.rubriques a { display: block; height: 100%; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--encre); }
.rubriques a:hover { border-color: var(--vert); }
.rubriques strong { display: block; font-size: 1.1rem; margin-bottom: .25rem; color: var(--vert); }
.rubriques span { color: var(--gris); font-size: .95rem; }

.filtre { font: inherit; width: 100%; max-width: 420px; padding: .7rem 1rem; border-radius: 999px; border: 1.5px solid var(--filet); background: var(--carte); color: var(--encre); margin: .4rem 0 0; }

details { max-width: var(--mesure); border-top: 1px solid var(--filet-doux); padding: .7rem 0; }
details summary { font-weight: 650; cursor: pointer; }
details p { margin: .6rem 0 0; }

/* ------------------------------------------------------------------- pied */

.pied { border-top: 1px solid var(--filet); background: var(--creux); padding-block: 2rem 2.6rem; font-size: .93rem; color: var(--gris); }
.pied nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-bottom: 1rem; }
.pied a { color: var(--encre); }
.pied p { max-width: 80ch; margin: 0 0 .6em; }

@media print {
  .entete nav, .pied nav, .appli, .mois-nav, .choix-dept, .captures { display: none; }
  body { background: #fff; font-size: 11pt; }
  .frise td.on { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* =====================================================================
 * Version 2 (20/11/2026) : les photos, sur le modèle validé de
 * carnetdepeche.app (refonte du 30/10/2026).
 *
 * Le texte posé sur une photo est toujours blanc sur un voile vert sombre
 * INDÉPENDANT de la photo : une photo claire (gelée blanche, ciel) ne doit
 * jamais rendre un titre illisible. Ces couleurs ne changent pas en mode
 * sombre : une photo est la même de jour comme de nuit.
 *
 * Si une photo ne charge pas, le fond --nuit reste derrière le texte blanc :
 * la page est moins belle, jamais illisible.
 * ===================================================================== */

:root {
  --nuit: #0c2418;
  --blanc: #ffffff;
  --voile: linear-gradient(180deg, rgba(8, 26, 17, .55) 0, rgba(8, 26, 17, .18) 32%, rgba(8, 26, 17, .35) 62%, rgba(8, 26, 17, .82) 100%);
}

[hidden] { display: none !important; }
.plein { width: 100vw; margin-left: calc(50% - 50vw); }

/* Sur une page à bannière, l'en-tête flotte sur la photo. */
.avec-banniere .entete { position: absolute; inset: 0 0 auto; z-index: 5; background: transparent; border-bottom: 0; }
.avec-banniere .entete a, .avec-banniere .marque { color: var(--blanc); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.avec-banniere .navigation [aria-current="page"] { text-decoration-color: #b8e2c8; }
.avec-banniere main { padding-top: 1.4rem; }

.banniere {
  position: relative; margin: 0;
  min-height: clamp(360px, 52vh, 560px);
  display: flex; align-items: flex-end;
  background: var(--nuit); color: var(--blanc);
  isolation: isolate;
}
.banniere-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banniere::after { content: ""; position: absolute; inset: 0; background: var(--voile); z-index: 1; }
.banniere-texte { position: relative; z-index: 2; width: 100%; padding-top: 7rem; padding-bottom: 2.6rem; }
.banniere h1 { color: var(--blanc); text-shadow: 0 2px 24px rgba(0, 0, 0, .4); max-width: 18ch; margin-bottom: .2em; }
.banniere .chapeau { color: #eef3ee; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); margin-bottom: 0; }
.banniere .sur-titre { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.banniere .fil { color: rgba(255, 255, 255, .85); margin: 0 0 .9rem; }
.banniere .fil a { color: rgba(255, 255, 255, .95); }
.banniere a { color: var(--blanc); }

/* La légende que les licences libres exigent : discrète, jamais absente. */
.credit {
  position: absolute; right: 12px; bottom: 8px; z-index: 2;
  max-width: min(46ch, 60%);
  font-size: .72rem; line-height: 1.35; text-align: right;
  color: rgba(255, 255, 255, .8); text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
}
.credit a { color: inherit; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin: 0; }
.bouton-clair {
  display: inline-block; color: var(--blanc); font-weight: 650; text-decoration: none;
  padding: .74rem 1.3rem; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 999px;
  background: rgba(8, 26, 17, .28);
}
.bouton-clair:hover { background: rgba(8, 26, 17, .5); text-decoration: underline; }

/* L'accueil : le jardin en plein écran. */
.banniere-une { min-height: min(92svh, 900px); }
.banniere-une::after { background: linear-gradient(90deg, rgba(8, 26, 17, .78) 0, rgba(8, 26, 17, .45) 48%, rgba(8, 26, 17, .1) 85%), linear-gradient(180deg, rgba(8, 26, 17, .5) 0, rgba(8, 26, 17, 0) 30%); }
@media (max-width: 900px) { .banniere-une::after { background: linear-gradient(180deg, rgba(8, 26, 17, .55) 0, rgba(8, 26, 17, .45) 40%, rgba(8, 26, 17, .85) 100%); } }
.banniere-une .banniere-texte { min-height: inherit; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 8rem; padding-bottom: 3.6rem; }
.banniere-une .une-titre { max-width: 640px; }
.banniere-une h1 { font-size: clamp(3rem, 8vw, 6.2rem); max-width: 12ch; line-height: .98; }
.banniere-une .chapeau { font-size: clamp(1.08rem, 1.6vw, 1.28rem); max-width: 52ch; margin-bottom: .4rem; }
.banniere .choix-dept label { color: var(--blanc); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.banniere .choix-dept select { border-color: rgba(255, 255, 255, .9); min-width: min(100%, 340px); font-size: 1.05rem; }
.banniere-une .actions { margin-top: 1rem; }

/* Un panneau : une photo, un voile, un texte posé en bas. */
.panneau { position: relative; margin: 0; display: flex; align-items: flex-end; min-height: 560px; color: var(--blanc); background: var(--nuit); isolation: isolate; }
.panneau > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.panneau::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 26, 17, .1) 0, rgba(8, 26, 17, .45) 42%, rgba(8, 26, 17, .92) 100%); }
.panneau-texte { position: relative; z-index: 2; width: 100%; padding: 3rem clamp(20px, 4vw, 56px) 3.4rem; }
.panneau h2 { margin-top: 0; color: var(--blanc); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 4vw, 2.9rem); }
.panneau h2 a { text-decoration: none; }
.panneau h2 a:hover { text-decoration: underline; }
.panneau a { color: var(--blanc); }
.panneau p { max-width: 54ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }

.deux-volets { display: grid; grid-template-columns: 1fr 1fr; }
.deux-volets .panneau { min-height: 640px; }
@media (max-width: 900px) { .deux-volets { grid-template-columns: 1fr; } .deux-volets .panneau { min-height: 560px; } }

.grande-date { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; margin: 0 0 .5em; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.grande-date span { font-family: var(--texte); font-style: normal; font-size: .38em; font-weight: 500; opacity: .9; }

/* Les plantes posées sur le panneau : la vignette garde son papier d'herbier
 * (le résidu rose du détourage ne doit jamais toucher un fond sombre). */
.pastilles { list-style: none; padding: 0; margin: .4rem 0 1.2rem; max-width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.pastilles li { margin: 0; }
.pastilles a { display: grid; grid-template-columns: 44px 1fr; gap: .7rem; align-items: center; padding: .4rem 0; border-top: 1px solid rgba(255, 255, 255, .25); text-decoration: none; }
.pastilles img { width: 44px; height: 44px; background: var(--papier); border-radius: 50%; padding: 3px; object-fit: contain; }
.pastilles .nom { font-weight: 600; }
.pastilles a:hover .nom { text-decoration: underline; }

.vedettes { padding-top: 4rem; }
.vedettes h2, .apprendre h2 { margin-top: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.apprendre { padding: 4.5rem 0 4.5rem; }
.apprendre .actions { margin-top: 1.4rem; }
.liste-billets { list-style: none; padding-left: 0; max-width: var(--mesure); }
.liste-billets li { border-top: 1px solid var(--filet-doux); padding: .6rem 0; margin: 0; }

/* L'application, au bas de l'accueil : la récolte en fond, deux écrans. */
.appli-une { position: relative; color: #eef3ee; background: var(--nuit); isolation: isolate; }
.appli-une-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.appli-une::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 26, 17, .93) 0, rgba(8, 26, 17, .72) 52%, rgba(8, 26, 17, .4) 100%); }
.appli-une-contenu { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; padding-block: 5.5rem; }
.appli-une h2 { margin-top: 0; color: var(--blanc); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.appli-une p { font-size: 1.12rem; max-width: 50ch; }
.appli-une .discret { color: #c9d6cf; font-size: .95rem; }
.telephones { display: flex; gap: 1.2rem; justify-content: center; }
.telephones img { width: min(44%, 230px); border-radius: 22px; border: 5px solid #06140d; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.telephones img:nth-child(2) { margin-top: 3rem; }
@media (max-width: 760px) { .appli-une-contenu { grid-template-columns: 1fr; padding-block: 4rem 5rem; } }

/* ------------------------------------------------------------------ blog */

.billets { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.billets li { margin: 0; }
.billets a { display: flex; flex-direction: column; gap: .3rem; height: 100%; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: var(--encre); padding-bottom: 1.1rem; }
.billets a:hover { border-color: var(--vert); }
.billets a:hover strong { text-decoration: underline; }
.billets img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: .6rem; }
.billets img.sur-papier { background: var(--papier); object-fit: contain; padding: 10px; }
.billets .discret, .billets strong, .billets span { padding-inline: 1.1rem; }
.billets strong { font-size: 1.12rem; line-height: 1.3; }
.billets span:last-child { color: var(--gris); font-size: .95rem; }

.billet h2 { margin-top: 1.8em; }
.billet .chapeau { font-size: 1.22rem; }
.billet table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0; }
.billet th, .billet td { text-align: left; padding: .45rem .7rem; border-bottom: 1px solid var(--filet-doux); vertical-align: top; }
.billet thead th { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); background: var(--creux); }
.billet .medaillon { float: right; width: 210px; margin: .3rem 0 1rem 1.6rem; padding: 12px 12px 8px; }
.billet .medaillon figcaption { padding-top: 6px; font-size: .9rem; }
.billet .medaillon a { color: var(--encre-papier); }
@media (max-width: 600px) { .billet .medaillon { width: 130px; margin-left: 1rem; } }
.sources-billet { border-top: 1px solid var(--filet); margin-top: 2.4rem; padding-top: .4rem; clear: both; }
.sources-billet h2 { font-size: 1.1rem; }

/* ---------------------------------------------------- crédits, presse */

.credits { list-style: none; padding: 0; max-width: 820px; }
.credits li { display: flex; gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--filet-doux); font-size: .95rem; margin: 0; }
.credits img { width: 160px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; flex: none; }
@media (max-width: 520px) { .credits li { flex-direction: column; align-items: flex-start; } }

/* Au téléphone, le menu passe sur trois lignes (environ 150 px) : le texte de
 * la bannière commence dessous, et la légende photo a sa propre bande en bas
 * au lieu de recouvrir la dernière ligne. */
@media (max-width: 600px) {
  .banniere-texte { padding-top: 11.5rem; padding-bottom: 4.6rem; }
  .banniere-une .banniere-texte { padding-top: 12rem; padding-bottom: 5rem; }
  .credit { max-width: calc(100% - 24px); }
  .avec-banniere .navigation { font-size: .92rem; gap: .1rem .9rem; }
}

@media print {
  .banniere-photo, .panneau > img, .appli-une, .credit, .bouton-clair { display: none; }
  .banniere, .panneau { color: var(--encre); background: none; min-height: 0; }
  .banniere::after, .panneau::after { display: none; }
  .banniere h1, .banniere .chapeau, .banniere .sur-titre, .panneau h2, .panneau p { color: #000; text-shadow: none; }
  .avec-banniere .entete { position: static; }
  .avec-banniere .entete a { color: #000; text-shadow: none; }
}

/* Les captures, avec leur légende (20/11/2026). */
.captures figure { margin: 0; flex: none; width: 232px; scroll-snap-align: start; }
.captures figcaption { font-size: .86rem; color: var(--gris); line-height: 1.35; margin-top: .5rem; }
