/* GENERE par genere_site_figuierdebarbarie.py depuis lesterres.tokens.json -- ne pas editer a la main. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit.woff2") format("woff2"); }
:root {
  --vert: #506D49; --gris: #54535A; --noir: #1D1D1B; --blanc: #FFFFFF;
  --secondaire: #6B6A70; --fond: #DCE4D7; --bordure: #B8C4B0;
  --corps: 16px; --interligne: 1.5;
  --mesure: 36rem; /* ~70 caracteres a 16 px */
  --large: 72rem; --gouttiere: 1rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanc); color: var(--gris); font-family: "Outfit", system-ui, sans-serif;
  font-size: var(--corps); line-height: var(--interligne); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--blanc); padding: 0.5rem 1rem; }
.evitement:focus { left: 1rem; }
.cadre { max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }

/* En-tete */
.entete .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.marque { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--gris); font-weight: 600; text-decoration: none; font-size: 1.0625rem; }
.marque img { width: 40px; height: 40px; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
/* Lien FR · EN (lot 4, 17/11/2026) : a droite du menu ; sur telephone, sur la ligne de la marque, le menu passe dessous. */
.langue { color: var(--vert); font-weight: 600; text-decoration: none; padding: 0.25rem 0.625rem; border: 1px solid var(--bordure); border-radius: 999px; font-size: 0.875rem; }
.langue:hover { border-color: var(--vert); }
.entete nav { margin-left: auto; }
@media (max-width: 52rem) { .marque { margin-right: auto; } .langue { order: 2; } .entete nav { order: 3; width: 100%; } }
nav a { color: var(--gris); text-decoration: none; padding: 0.375rem 0; border-bottom: 2px solid transparent; }
nav a[aria-current="page"] { color: var(--gris); border-bottom-color: var(--vert); }
/* Telephone : les quatre entrees du menu tiennent sur une ligne jusqu'a 360 px de large (mesure du 16/11/2026 :
   325 px de libelles a 16 px + 3 x 24 px d'ecart = 397 px pour 358 disponibles a 390 px). */
@media (max-width: 26rem) { nav { gap: 0.25rem 0.875rem; } nav a { font-size: 0.875rem; } }

/* Ouverture : photo pleine largeur, titre sur bandeau vert */
.ouverture { position: relative; }
.ouverture-image img { width: 100%; height: clamp(18rem, 68vh, 44rem); object-fit: cover; }
.ouverture-texte { background: var(--vert); color: var(--blanc); padding: 1.5rem var(--gouttiere) 1.75rem; }
.ouverture-texte h1 { margin: 0; font-weight: 600; font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 18em; }
.chapeau { margin: 0.875rem 0 0; font-size: 1.125rem; line-height: 1.45; max-width: 30em; }
.ouverture-texte a { color: var(--blanc); }
@media (min-width: 52rem) {
  .ouverture-texte { position: absolute; left: max(var(--gouttiere), calc((100% - var(--large)) / 2 + var(--gouttiere))); bottom: -2.5rem; max-width: 40rem; padding: 2rem 2.25rem 2.25rem; }
  /* Bandeau a droite quand le sujet de la photo est a gauche (page fourrage, Quentin, 16/11/2026). */
  .ouverture.droite .ouverture-texte { left: auto; right: max(var(--gouttiere), calc((100% - var(--large)) / 2 + var(--gouttiere))); }
}
/* Le bandeau deborde de 2,5rem sous la photo : ce qui suit s'ecarte (sauf la bande verte des chiffres, qui le prolonge). */
@media (min-width: 52rem) { .ouverture + :not(.chiffres) { margin-top: 5.5rem; } }
/* Suivi des chiffres, le bandeau se pose entierement sur la photo (refonte du 17/11/2026). */
@media (min-width: 52rem) { .ouverture.pose .ouverture-texte { bottom: 2.5rem; } }
.ouverture.pose + .chiffres { padding-top: 3rem; }

/* Flux de lecture */
main { padding-bottom: 4rem; }
main > h1, main > h2, main > h3, main > p, main > ul, main > blockquote, main > details, main > .encadre, main > .photo {
  max-width: var(--mesure); margin-left: auto; margin-right: auto; padding-left: var(--gouttiere); padding-right: var(--gouttiere); box-sizing: content-box; }
main > h1 { font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.15; margin-top: 2.5rem; margin-bottom: 1.5rem; }
main > h2 { font-weight: 600; font-size: 1.5rem; line-height: 1.25; margin-top: 3.5rem; margin-bottom: 0.875rem; letter-spacing: -0.01em; }
main > h2.grand { max-width: calc(var(--large) - 2 * var(--gouttiere)); font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; margin-top: 4.5rem; margin-bottom: 0; }
main > h2.grand ~ p { max-width: calc(var(--large) - 2 * var(--gouttiere)); }
main > h2.grand + p { margin-top: 1rem; font-size: 1.125rem; color: var(--gris); }
main > h2.large { max-width: calc(var(--large) - 2 * var(--gouttiere)); }
h3 { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; margin: 0 0 0.375rem; }
p, ul { margin-top: 0; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }
.photo { margin-top: 1.5rem; margin-bottom: 2rem; }
.photo img { max-height: 30rem; width: auto; margin: 0 auto; }

/* Pictogrammes */
.picto { width: 4rem; height: 4rem; color: var(--vert); flex: none; }
.pictos { list-style: none; box-sizing: border-box; max-width: var(--large); margin: 2rem auto 1.5rem; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 2rem 1.5rem; }
.pictos li { margin: 0; }
.pictos .picto { margin-bottom: 0.75rem; }
.pictos p { color: var(--gris); font-size: 0.9375rem; margin: 0; }
main > .pictos + p { text-align: center; }

/* Chiffres-cles : la bande verte */
.chiffres { background: var(--vert); color: var(--blanc); margin-top: 0; padding: 4.5rem 0 3rem; }
.chiffres ul { list-style: none; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 2rem; }
.chiffres li { margin: 0; }
.chiffres .picto { color: var(--blanc); width: 3.25rem; height: 3.25rem; }
.chiffres .valeur { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0.75rem 0 0.5rem; }
.chiffres p { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.chiffres a { color: var(--blanc); }

/* Trois colonnes */
.colonnes { max-width: var(--large); margin: 4rem auto 1rem; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; }
.colonnes h2 { font-size: 1.1875rem; font-weight: 600; margin: 0 0 0.5rem; padding-top: 0.875rem; border-top: 4px solid var(--vert); }
.colonnes p { color: var(--gris); margin: 0; }
.colonnes ul { color: var(--gris); margin: 0; padding-left: 1.125rem; }
.colonnes li { margin-bottom: 0.25rem; }
.colonnes li::marker { color: var(--vert); }
.colonnes ul + p, .colonnes p + p { margin-top: 1rem; }
.colonnes .valeur { color: var(--gris); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.colonnes .valeur + p { margin-top: 0.5rem; }

/* Citation, boutons, encadre, FAQ */
blockquote { margin-top: 3.5rem; margin-bottom: 2rem; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem); line-height: 1.35; letter-spacing: -0.01em; }
blockquote p { margin: 0 0 0.75rem; }
blockquote footer { font-size: 1rem; color: var(--gris); letter-spacing: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.bouton { display: inline-block; background: var(--vert); color: var(--blanc); text-decoration: none; font-weight: 600; padding: 0.8125rem 1.375rem; border-radius: 999px; }
.bouton:hover { text-decoration: underline; }
.bouton:focus-visible { outline-color: var(--gris); }
.encadre { border-left: 6px solid var(--vert); padding-top: 0.25rem; padding-bottom: 0.25rem; }
.encadre p { margin: 0; font-size: 1.0625rem; }
/* FAQ mise en valeur (refonte du 17/11/2026) : chaque question sur fond clair. */
main > details { background: var(--fond); border-radius: 0.75rem; padding: 1rem 1.25rem; margin-top: 0.75rem; margin-bottom: 0.75rem; }
summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
details p:last-child { margin-bottom: 0; }
details[open] summary { margin-bottom: 0.5rem; }
.sources, ul.sources { color: var(--gris); font-size: 0.875rem; }

/* Refonte du 17/11/2026 (cartes de Quentin) : cartes, etapes, paves, liens, bandes, alternance photo / texte */
.cartes, .etapes, .paves, .liens { list-style: none; box-sizing: border-box; max-width: var(--large);
  margin: 1.5rem auto 1rem; padding: 0 var(--gouttiere); display: grid; }
.cartes li, .etapes li, .paves li, .liens li { margin: 0; }
.cartes { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.cartes.rangee { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.carte { border: 1px solid var(--bordure); border-radius: 0.75rem; padding: 1.5rem 1.5rem 1.375rem; }
.carte .picto { width: 3.5rem; height: 3.5rem; margin-bottom: 0.875rem; }
.carte h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.carte p { margin: 0; color: var(--gris); }
.etapes { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem; }
.etapes li { position: relative; }
.etapes .num { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; background: var(--vert); color: var(--blanc); font-weight: 600; font-size: 1.125rem; margin-bottom: 0.875rem; }
@media (min-width: 52rem) { .etapes li:not(:last-child)::after { content: ""; position: absolute; top: 1.375rem; left: 3.5rem; right: -1.25rem; border-top: 2px solid var(--bordure); } }
.etapes p { margin: 0; color: var(--gris); }
main > .etapes + p { text-align: center; }
main > .etapes + p + .actions { justify-content: center; }
.paves { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.paves li { background: var(--fond); border-radius: 0.75rem; padding: 1.25rem 1.375rem; }
.paves h3 { margin: 0; }
.paves p { margin: 0.375rem 0 0; color: var(--gris); }
.liens { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.liens a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; box-sizing: border-box;
  border: 1px solid var(--bordure); border-radius: 0.75rem; padding: 1.25rem 1.375rem; font-weight: 600; color: var(--gris); text-decoration: none; }
.liens a::after { content: "→"; color: var(--vert); font-size: 1.25rem; }
.liens a:hover { border-color: var(--vert); text-decoration: underline; }
.bande { background: var(--vert); color: var(--blanc); margin: 4rem 0; padding: 3rem 0; }
.bande-dedans { max-width: var(--mesure); margin: 0 auto; padding: 0 var(--gouttiere); box-sizing: content-box; }
.bande h2 { font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 1rem; }
.bande p, .bande ul { margin: 0 0 1rem; }
.bande li { margin-bottom: 0.25rem; }
.bande a { color: var(--blanc); }
.bande .actions { margin: 1.5rem 0 0; }
.bande :focus-visible { outline-color: var(--blanc); }
main > .bande:last-child { margin-bottom: 0; }
.bouton.clair { background: var(--blanc); color: var(--vert); }
.alterne { max-width: var(--large); margin: 4rem auto; padding: 0 var(--gouttiere); box-sizing: border-box; display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 52rem) { .alterne { grid-template-columns: 1fr 1fr; } .alterne.inverse .alterne-photo { order: 2; } }
.alterne-photo { margin: 0; }
.alterne-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.75rem; }
.alterne-texte h2 { font-weight: 600; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.875rem; }
.alterne-texte p:last-child { margin-bottom: 0; }

/* Credits : une fiche par element, memes lignes dans le meme ordre */
main > .fiches { max-width: var(--mesure); margin: 0 auto 1rem; padding: 0 var(--gouttiere); box-sizing: content-box; }
.fiche { border-top: 1px solid var(--gris); padding: 1rem 0 1.125rem; }
.fiche h3 { margin-bottom: 0.625rem; }
.fiche dl { display: grid; grid-template-columns: minmax(6.5rem, max-content) 1fr; gap: 0.25rem 1.25rem; margin: 0; font-size: 0.9375rem; }
.fiche dt { color: var(--gris); }
.fiche dd { margin: 0; overflow-wrap: anywhere; }
h2.sources { color: var(--gris); font-size: 1.125rem; }
.sources a { color: var(--gris); overflow-wrap: anywhere; }

/* Pied de page */
.pied { background: var(--vert); color: var(--blanc); padding: 2.5rem 0; }
.pied p { margin: 0 0 0.5rem; }
.pied a { color: var(--blanc); }
.pied :focus-visible { outline-color: var(--blanc); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Impression (Opquast 195-196, Quentin 16/11/2026) : ni en-tete, ni navigation, ni pied ; bandes vertes en noir sur blanc. */
@media print {
  .evitement, .entete, .pied, .ouverture-image, .actions { display: none; }
  body { font-size: 11pt; }
  .ouverture-texte, .chiffres { position: static; background: none; color: var(--gris); padding: 0 0 1rem; }
  .ouverture-texte a, .chiffres a, .chiffres .picto { color: var(--gris); }
  .ouverture + :not(.chiffres) { margin-top: 0; }
  .bande { background: none; color: var(--gris); padding: 0; margin: 1.5rem 0; }
  .bande a, .etapes .num { color: var(--gris); }
  .etapes .num { background: none; border: 1px solid var(--gris); }
}
