/*
Theme Name: Auroch boréal
Theme URI: https://aurochboreal.fr
Author: tCT Conseil
Author URI: https://caditazi.fr
Description: Thème sur mesure de la ferme Auroch boréal.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurochboreal
*/

/* ==========================================================================
   Charte « Nuit boréale » : tout ce qui fait le ton du site est ici, dans les
   variables de :root. Changer de thème graphique = changer ces valeurs (et
   les mêmes dans theme.json pour l'éditeur). Les gabarits ne portent aucune
   couleur ni police en dur.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-italic.woff2") format("woff2");
}

/* Polices de repli calées sur les métriques des polices du site (fontTools, 23/10/2026) :
   le texte garde la même place avant et après le chargement, pas de décalage de page.
   Une face par famille présente sur Windows et Android, une autre pour macOS et iOS. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Segoe UI"), local("Roboto");
  size-adjust: 92.5%; ascent-override: 100.6%; descent-override: 29.2%; line-gap-override: 0%;
}
@font-face {
  font-family: "Bricolage Fallback 2";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 112.8%; ascent-override: 82.4%; descent-override: 23.9%; line-gap-override: 0%;
}
@font-face {
  font-family: "Source Sans Fallback";
  src: local("Segoe UI"), local("Roboto");
  size-adjust: 91.5%; ascent-override: 111.9%; descent-override: 43.7%; line-gap-override: 0%;
}
@font-face {
  font-family: "Source Sans Fallback 2";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 111.7%; ascent-override: 91.7%; descent-override: 35.8%; line-gap-override: 0%;
}

:root {
  /* Couleurs */
  --nuit: #1C2B3A;           /* bleu nuit : en-tête, pied de page, bandeau */
  --nuit-claire: #2B4053;    /* survols sur fond nuit */
  --boreal: #2E7D6B;         /* vert boréal : liens, accents, pastilles */
  --boreal-fonce: #1F5A4D;
  --boreal-clair: #DCEFE6;   /* sections claires, encarts */
  --auroch: #A6512A;         /* ocre roux : boutons d'action */
  --auroch-fonce: #7F3C1D;
  --paille: #E8C77A;         /* jaune paille : surlignages, étoile */
  --lin: #F7F3EA;            /* fond des pages */
  --craie: #FFFFFF;
  --texte: #22303A;
  --texte-doux: #566670;
  --ligne: #E3DCCD;

  /* Polices */
  --titre: "Bricolage Grotesque", "Bricolage Fallback", "Bricolage Fallback 2", "Segoe UI", sans-serif;
  --texte-police: "Source Sans 3", "Source Sans Fallback", "Source Sans Fallback 2", "Segoe UI", Arial, sans-serif;

  /* Formes */
  --rayon: 6px;
  --ombre: 0 2px 10px rgba(28, 43, 58, 0.10);
  --largeur: 1140px;
  --largeur-texte: 740px;
  --hauteur-entete: 80px;
  --barre-admin: 0px;

  /* Encart « En pratique » des fiches d'accueil : fond et accent */
  --encart-fond: var(--boreal-clair);
  --encart-accent: var(--boreal-fonce);

  /* Aurore : le liseré dégradé qui souligne l'en-tête et les bandeaux */
  --aurore: linear-gradient(90deg, var(--boreal) 0%, var(--paille) 55%, var(--auroch) 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hauteur-entete) + var(--barre-admin) + 12px); }

body {
  margin: 0;
  font-family: var(--texte-police);
  font-size: 18px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--lin);
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 700;
  color: var(--nuit);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--boreal-fonce); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--auroch-fonce); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--auroch);
  outline-offset: 2px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }

.conteneur {
  width: min(100% - 2.5rem, var(--largeur));
  margin-inline: auto;
}

/* Surtitre : petites capitales espacées, à la place de l'écriture manuscrite */
.surtitre {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--boreal-fonce); /* le vert boréal clair ne contraste qu'à 4,4:1 sur le lin, le foncé à 7:1 */
  margin: 0 0 0.35em;
}
.surtitre::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 3px;
  margin-right: 0.6em;
  vertical-align: middle;
  background: var(--aurore);
  border-radius: 2px;
}

.accroche {
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--boreal-fonce);
}

.sr-only, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--craie); color: var(--nuit);
  padding: 0.6rem 1rem; border-radius: 0 0 var(--rayon) var(--rayon);
  font-family: var(--titre);
}
.lien-evitement:focus { top: 0; }

/* ---------- Boutons ---------- */

.bouton,
.wp-block-button__link {
  display: inline-block;
  padding: 0.7em 1.4em;
  border-radius: var(--rayon);
  background: var(--auroch);
  color: var(--craie);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid var(--auroch);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.bouton:hover,
.wp-block-button__link:hover { background: var(--auroch-fonce); border-color: var(--auroch-fonce); color: var(--craie); transform: translateY(-1px); }

.bouton--secondaire,
.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--nuit);
  border-color: var(--nuit);
}
.bouton--secondaire:hover,
.is-style-outline > .wp-block-button__link:hover { background: var(--nuit); color: var(--craie); border-color: var(--nuit); }

.bouton--clair {
  background: var(--paille);
  border-color: var(--paille);
  color: var(--nuit);
}
.bouton--clair:hover { background: #d9b45e; border-color: #d9b45e; color: var(--nuit); }

/* Sur fond nuit */
.sur-nuit .bouton--secondaire { color: var(--craie); border-color: rgba(255, 255, 255, 0.7); }
.sur-nuit .bouton--secondaire:hover { background: var(--craie); color: var(--nuit); border-color: var(--craie); }

/* ---------- En-tête : bandeau nuit, liseré aurore ---------- */

body.admin-bar { --barre-admin: 32px; }
@media (max-width: 782px) { body.admin-bar { --barre-admin: 46px; } }
@media (max-width: 600px) { body.admin-bar { --barre-admin: 0px; } }

.site-header {
  background: var(--nuit);
  color: var(--craie);
  position: sticky;
  top: var(--barre-admin);
  z-index: 20;
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--aurore);
}

.site-header .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: var(--hauteur-entete);
  padding-block: 0.5rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--craie);
}
.logo:hover { color: var(--paille); }
.logo svg { height: clamp(42px, 10vw, 52px); width: auto; flex: none; color: var(--paille); }
.logo span {
  font-family: var(--titre);
  font-weight: 800;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo small {
  display: block;
  font-family: var(--texte-police);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.3em;
}

.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--rayon);
  cursor: pointer;
  color: var(--craie);
}
.menu-bouton::before { content: "☰"; font-size: 1.2rem; line-height: 1; }
.menu-toggle:checked + .menu-bouton { background: var(--craie); color: var(--nuit); border-color: var(--craie); }
.menu-toggle:checked + .menu-bouton::before { content: "✕"; }
.menu-toggle:focus-visible + .menu-bouton { outline: 3px solid var(--paille); outline-offset: 2px; }

.nav-principale {
  display: none;
  width: 100%;
  max-height: calc(100vh - var(--hauteur-entete) - var(--barre-admin));
  overflow-y: auto;
}
.menu-toggle:checked ~ .nav-principale { display: block; }

.nav-principale ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav-principale a {
  display: block;
  color: var(--craie);
  text-decoration: none;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--rayon);
}
.nav-principale a:hover { background: var(--nuit-claire); color: var(--paille); }
.nav-principale .current-menu-item > a,
.nav-principale .current-menu-ancestor > a,
.nav-principale .current-page-ancestor > a {
  background: var(--boreal);
  color: var(--craie);
}

/* Sous-menus (CSS pur : survol et focus à l'ordinateur, liste dépliée sur mobile) */
.nav-principale .menu-item-has-children { position: relative; }
.nav-principale .menu-item-has-children > a::after { content: " ▾"; font-size: 0.8em; opacity: 0.8; }
.nav-principale .sub-menu { padding: 0 0 0 1rem; gap: 0; }
.nav-principale .sub-menu a { font-size: 0.95rem; font-weight: 500; padding: 0.3rem 0.75rem; }
.nav-principale .sub-menu .current-menu-item > a { background: transparent; color: var(--paille); font-weight: 700; }
.nav-principale .sub-menu .menu-tout > a { font-weight: 600; }

@media (min-width: 1080px) {
  .site-header .conteneur { flex-wrap: nowrap; }
  .menu-bouton, .menu-toggle { display: none; } /* la case sans son étiquette visible n'aurait pas de nom accessible */
  .nav-principale { display: block; width: auto; max-height: none; overflow: visible; }
  .nav-principale ul { flex-direction: row; gap: 0.1rem; padding: 0; }
  .nav-principale a { white-space: nowrap; padding-inline: 0.6rem; font-size: 0.98rem; }
  .nav-principale .sub-menu {
    position: absolute; top: 100%; left: 0; z-index: 30;
    min-width: 260px; padding: 0.5rem 0;
    flex-direction: column;
    background: var(--nuit);
    border-radius: 0 0 var(--rayon) var(--rayon);
    border-top: 3px solid var(--paille);
    box-shadow: 0 10px 24px rgba(28, 43, 58, 0.3);
    display: none;
  }
  .nav-principale .menu-item-has-children:hover > .sub-menu,
  .nav-principale .menu-item-has-children:focus-within > .sub-menu { display: flex; }
  .nav-principale .sub-menu a { border-radius: 0; padding: 0.45rem 1.1rem; white-space: normal; }
  .nav-principale .sub-menu .menu-tout > a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); margin-bottom: 0.3rem; padding-bottom: 0.6rem;
  }
}

/* ---------- Bandeau d'accueil : photo pleine largeur, voile nuit ---------- */

.hero {
  position: relative;
  background: var(--nuit);
  color: var(--craie);
  overflow: hidden;
  isolation: isolate;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
}
.hero__photo {
  position: absolute; inset: 0; z-index: -2;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28, 43, 58, 0.25) 0%, rgba(28, 43, 58, 0.55) 55%, rgba(28, 43, 58, 0.92) 100%);
}
.hero .conteneur { padding-block: 5rem 3rem; }
.hero__texte { max-width: 40em; }
.hero .surtitre { color: var(--paille); }
.hero .surtitre::before { background: var(--paille); }
.hero h1 { color: var(--craie); margin-bottom: 0.35em; }
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); max-width: 36em; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
@media (min-width: 860px) { .hero .conteneur { padding-block: 7rem 4rem; } }

/* Étoile décorative (rappel du logo) */
.etoile {
  position: absolute;
  width: 220px;
  height: 220px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
  fill: var(--paille);
}
.etoile--haut-droite { top: -60px; right: -40px; }
.etoile--bas-droite { bottom: -80px; right: -60px; width: 320px; height: 320px; opacity: 0.12; }

/* ---------- Sections ---------- */

.section { padding-block: 3.5rem; }
.section--claire { background: var(--boreal-clair); }
.section--craie { background: var(--craie); }

.section__tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.section__tete h2 { margin: 0; }

.grille { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grille--2, .grille--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grille--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cartes des formules d'accueil (ferme pédagogique) ---------- */

.formules {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 700px) { .formules { grid-template-columns: repeat(3, 1fr); } }

.carte {
  background: var(--craie);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}
.carte--formule { position: relative; transition: transform 0.15s, box-shadow 0.15s; }
.carte--formule:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(28, 43, 58, 0.18); }
.carte--formule .visuel { aspect-ratio: 4 / 3; overflow: hidden; background: var(--boreal-clair); }
.carte--formule .visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.carte--formule:hover .visuel img { transform: scale(1.03); }
.carte--formule .corps { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.carte--formule .carte__titre { font-size: 1.25rem; margin-bottom: 0.3em; }
.carte--formule .carte__titre a { color: inherit; text-decoration: none; }
.carte--formule .carte__titre a::after { content: ""; position: absolute; inset: 0; }
.carte--formule p { color: var(--texte-doux); font-size: 0.98rem; flex: 1; margin-bottom: 0.6em; }
.carte--formule .lien { font-family: var(--titre); font-weight: 600; color: var(--boreal-fonce); font-size: 0.95rem; }
.carte--formule .lien::after { content: " →"; }
.carte--formule:hover .lien { color: var(--auroch-fonce); }

/* Cadre « photo à fournir » */
.photo {
  background:
    repeating-linear-gradient(135deg, rgba(46, 125, 107, 0.10) 0 12px, transparent 12px 24px),
    var(--boreal-clair);
  display: grid;
  place-items: center;
  color: var(--boreal-fonce);
  font-family: var(--titre);
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  border: 2px dashed rgba(46, 125, 107, 0.4);
}

/* Photo à coins arrondis, légèrement inclinée (pages, accueil) */
.photo-cadre {
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  aspect-ratio: 4 / 3;
  position: relative;
}
.photo-cadre img { width: 100%; height: 100%; object-fit: cover; }
.photo-cadre::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--aurore);
}

/* Pastille de type */
.pastille {
  display: inline-block;
  font-family: var(--titre);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  background: var(--boreal-clair);
  color: var(--boreal-fonce);
  margin-bottom: 0.4em;
}
/* Une couleur par formule, choisie dans sa fiche (mêmes valeurs que dans l'extension des contenus) */
.pastille--vert { background: #DCEFE6; color: #1F5A4D; }
.pastille--ocre { background: #F3DFD2; color: #7F3C1D; }
.pastille--paille { background: #F8EBC6; color: #6F5214; }
.pastille--nuit { background: #DCE3EA; color: #1C2B3A; }
.pastille--bleu { background: #D5E7EA; color: #1F5560; }
.pastille--prune { background: #E9DCEA; color: #5B2E5F; }

/* ---------- Livraisons ---------- */

.livraison {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--craie);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1rem;
  border-left: 5px solid var(--boreal);
}
.livraison--72 { border-left-color: var(--auroch); }
.livraison[hidden] { display: none; }
.livraison .jour {
  background: var(--nuit);
  color: var(--craie);
  border-radius: var(--rayon);
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-family: var(--titre);
  line-height: 1.1;
}
.livraison .jour strong { display: block; font-size: 1.7rem; color: var(--paille); }
.livraison .jour small { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.livraison h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.livraison p { margin: 0; color: var(--texte-doux); font-size: 0.95rem; }
.livraison .departement {
  font-family: var(--titre); font-weight: 700; font-size: 0.8rem;
  color: var(--boreal-fonce); letter-spacing: 0.05em;
}
.livraison--72 .departement { color: var(--auroch-fonce); }
.livraison__actions { grid-column: 2; margin-top: 0.4rem; }
.livraison__actions a { font-size: 0.92rem; font-weight: 600; }

.livraisons { display: grid; gap: 1rem; }
@media (min-width: 760px) { .livraisons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .livraisons--3 { grid-template-columns: repeat(3, 1fr); } }

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.filtres[hidden] { display: none; }
.filtres button {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45em 1.1em;
  border-radius: var(--rayon);
  border: 2px solid var(--nuit);
  background: transparent;
  color: var(--nuit);
  cursor: pointer;
}
.filtres button:hover { background: var(--boreal-clair); }
.filtres button[aria-pressed="true"] { background: var(--nuit); color: var(--craie); }

.mois { margin-bottom: 2.5rem; }
.mois[hidden] { display: none; }
.mois h2 {
  font-size: 1.4rem;
  color: var(--boreal-fonce);
  border-bottom: 3px solid var(--paille);
  display: inline-block;
  padding-bottom: 0.1em;
  margin-bottom: 1rem;
}

/* Produits et tarifs */
.produits { display: grid; gap: 1rem; }
@media (min-width: 640px) { .produits { grid-template-columns: repeat(2, 1fr); } }
.produit {
  background: var(--craie);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1.1rem 1.25rem;
  border-top: 4px solid var(--paille);
}
.produit h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.produit .prix { font-family: var(--titre); font-weight: 700; color: var(--auroch-fonce); font-size: 1.1rem; margin: 0 0 0.3em; }
.produit p { margin: 0; color: var(--texte-doux); font-size: 0.95rem; }

/* Citation */
.citation {
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  color: var(--nuit);
  text-align: center;
  max-width: 28em;
  margin: 0 auto;
  line-height: 1.3;
}
.citation::before { content: "« "; color: var(--auroch); }
.citation::after { content: " »"; color: var(--auroch); }
.citation cite { display: block; font-family: var(--texte-police); font-size: 0.55em; color: var(--texte-doux); margin-top: 0.7em; font-style: normal; font-weight: 400; }

/* Deux colonnes texte + photo */
.deux-colonnes { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .deux-colonnes { grid-template-columns: 1.15fr 1fr; } }

/* ---------- Pages courantes ---------- */

.fil-ariane { font-size: 0.9rem; color: var(--texte-doux); margin: 1.25rem 0 0; }
.fil-ariane a { text-decoration: underline; text-underline-offset: 0.15em; }
.fil-ariane span::before { content: " › "; }

.page-tete { padding-block: 1rem 0.5rem; }
.page-tete h1 { margin-bottom: 0.2em; }
.page-tete .chapo { font-size: 1.1rem; max-width: 44em; }

.rubrique {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.rubrique a {
  display: block;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4em 1em;
  border-radius: var(--rayon);
  border: 2px solid var(--nuit);
  text-decoration: none;
  color: var(--nuit);
}
.rubrique a:hover { background: var(--boreal-clair); }
.rubrique a[aria-current="page"] { background: var(--nuit); color: var(--craie); }

.contenu { padding-block: 1rem 3.5rem; }
.contenu > * { max-width: var(--largeur-texte); margin-inline: 0 auto; }
.contenu > .alignwide { max-width: var(--largeur); }
.contenu > .alignfull { max-width: none; }
.contenu h2 { margin-top: 1.6em; }
.contenu h3 { margin-top: 1.4em; color: var(--boreal-fonce); }
.contenu ul, .contenu ol { padding-left: 1.3em; margin-block: 0 1em; }
.contenu li { margin-bottom: 0.35em; }
.contenu li::marker { color: var(--auroch); }
.contenu img { border-radius: var(--rayon); }
.contenu .wp-block-image.is-style-rounded img { border-radius: 50%; }
.contenu figcaption { font-size: 0.9rem; color: var(--texte-doux); text-align: center; }
.contenu blockquote, .contenu .wp-block-quote {
  margin-block: 1.5em;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 5px solid var(--paille);
  font-family: var(--titre);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.35;
}
.contenu blockquote cite { font-family: var(--texte-police); font-size: 0.95rem; font-style: normal; font-weight: 400; color: var(--texte-doux); }
.contenu--fiche { padding-block: 0; }
.contenu hr, .contenu .wp-block-separator { border: 0; height: 4px; width: 120px; margin-block: 2em; background: var(--aurore); border-radius: 2px; }
.contenu table, .contenu .wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.contenu th, .contenu td { border-bottom: 1px solid var(--ligne); padding: 0.5em 0.6em; text-align: left; vertical-align: top; }
.contenu th { font-family: var(--titre); font-weight: 600; color: var(--boreal-fonce); }

/* Portraits (Qui sommes-nous) : motif de blocs « Portrait » */
.contenu > .portrait { max-width: var(--largeur-texte); }
.portrait {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  background: var(--craie);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1.5rem;
  margin-block: 0 1.5rem;
}
@media (min-width: 640px) { .portrait { grid-template-columns: 200px 1fr; gap: 1.75rem; } }
.portrait > .wp-block-image { margin: 0; width: 200px; aspect-ratio: 1; border-radius: var(--rayon); overflow: hidden; }
.portrait > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.portrait h2, .contenu .portrait h2 { font-size: 1.45rem; margin: 0 0 0.3em; }

/* ---------- Fiche d'une formule d'accueil ---------- */

.fiche { display: grid; gap: 2rem; padding-block: 1.5rem 3.5rem; }
@media (min-width: 900px) { .fiche { grid-template-columns: 1fr 340px; align-items: start; } }

.fiche h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 0.25em; }
.fiche .accroche { margin-bottom: 0.4em; }
.fiche article h2 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); margin-top: 1.5em; color: var(--boreal-fonce); }
.fiche article ul { padding-left: 1.3em; }
.fiche article li::marker { color: var(--auroch); }

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.galerie > * { aspect-ratio: 1; border-radius: var(--rayon); overflow: hidden; margin: 0; }
.galerie > *:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie .photo { font-size: 1rem; }

/* Déroulé type d'une journée : frise */
.deroule { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.deroule li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2rem;
  border-left: 3px solid var(--boreal-clair);
}
.deroule li::before {
  content: ""; position: absolute; left: -8px; top: 0.85rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paille); border: 3px solid var(--craie); box-shadow: 0 0 0 2px var(--boreal);
}
.deroule .quand { font-family: var(--titre); font-weight: 700; color: var(--boreal-fonce); margin-right: 0.5em; }

/* Options d'ateliers : étiquettes */
.options { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.options li {
  background: var(--craie); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 0.45em 0.9em; font-size: 0.95rem;
}

.encart {
  background: var(--encart-fond);
  border-radius: var(--rayon);
  border-top: 5px solid var(--encart-accent);
  box-shadow: var(--ombre);
  padding: 1.5rem;
}
@media (min-width: 900px) { .encart { position: sticky; top: calc(var(--hauteur-entete) + var(--barre-admin) + 16px); } }
.encart h2 { font-size: 1.35rem; color: var(--encart-accent); }
.encart h3 { font-size: 1.05rem; color: var(--encart-accent); }
.encart dl { margin: 0 0 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 0.9rem; }
.encart dt { font-family: var(--titre); font-weight: 600; color: var(--encart-accent); }
.encart dd { margin: 0; }
.encart .bouton { width: 100%; text-align: center; }
.encart .note { font-size: 0.85rem; color: var(--texte-doux); margin: 0.75rem 0 0; }

/* ---------- Partenaires (motif de blocs « Partenaire ») ---------- */

.contenu > .partenaire { max-width: 900px; }
.partenaire {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  background: var(--craie);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1.5rem;
  margin-block: 0 1.5rem;
}
@media (min-width: 640px) { .partenaire { grid-template-columns: 170px 1fr; gap: 1.75rem; } }
.partenaire > .wp-block-image { margin: 0 auto; width: 170px; aspect-ratio: 1; border-radius: var(--rayon); overflow: hidden; background: var(--craie); border: 1px solid var(--ligne); }
.partenaire > .wp-block-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; padding: 10px; }
.partenaire h2, .contenu .partenaire h2 { font-size: 1.4rem; margin: 0 0 0.3em; }
.partenaire p { color: var(--texte-doux); }
.partenaire .wp-block-buttons { margin-top: 0.75rem; }
.partenaire .wp-block-button__link { font-size: 0.95rem; padding: 0.5em 1.2em; }

/* ---------- Contact ---------- */

.ou { display: grid; gap: 2rem; padding-block: 1rem 2rem; }
@media (min-width: 900px) { .ou { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.ou h2 { font-size: 1.4rem; }
.ou address { font-style: normal; line-height: 1.7; margin-bottom: 1.25rem; }
.ou .bloc { background: var(--craie); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.5rem; }
.ou .bloc + .bloc { margin-top: 1.5rem; }
.ou .boutons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.carte-lieu { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; margin: 0; }
.carte-lieu img { width: 100%; height: 100%; object-fit: cover; }

.info {
  background: var(--boreal-clair);
  border-radius: var(--rayon);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  border-left: 5px solid var(--boreal);
  margin-bottom: 1.5rem;
}
.info p { margin: 0; }
.info--erreur { background: #F3DFD2; border-left-color: var(--auroch-fonce); }

/* ---------- Formulaire « Nous écrire » ---------- */

.ecrire { padding-block: 0 2.5rem; }
.formulaire {
  max-width: var(--largeur-texte);
  background: var(--craie);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1.75rem;
}
.formulaire h2 { font-size: 1.4rem; margin-top: 0; }
.formulaire .note { font-size: 0.95rem; color: var(--texte-doux); }
.formulaire .champ { margin-bottom: 1.1rem; }
.formulaire label { display: block; font-family: var(--titre); font-weight: 600; color: var(--nuit); margin-bottom: 0.3em; }
.formulaire label small { font-family: var(--texte-police); font-weight: 400; color: var(--texte-doux); }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%;
  font: inherit;
  padding: 0.65em 0.9em;
  border: 2px solid var(--ligne);
  border-radius: var(--rayon);
  background: var(--lin);
  color: var(--texte);
}
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus {
  outline: none;
  border-color: var(--boreal);
  background: var(--craie);
}
.formulaire textarea { min-height: 160px; resize: vertical; }
.formulaire .deux { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .formulaire .deux { grid-template-columns: 1fr 1fr; } }
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Actualités ---------- */

.articles { display: grid; gap: 1.5rem; padding-block: 1rem 3.5rem; }
@media (min-width: 700px) { .articles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .articles { grid-template-columns: repeat(3, 1fr); } }
.articles--accueil { padding-block: 0; }
.article-carte { background: var(--craie); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; }
.article-carte__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.article-carte__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-carte:hover .article-carte__photo img { transform: scale(1.03); }
.article-carte__texte { padding: 1.25rem 1.5rem 1.5rem; }
.article-carte h2, .article-carte h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.article-carte h2 a, .article-carte h3 a { color: inherit; text-decoration: none; }
.article-carte h2 a:hover, .article-carte h3 a:hover { color: var(--auroch-fonce); }
.article-carte .date { font-family: var(--titre); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--boreal); margin-bottom: 0.4em; }
.article-carte__texte > p:last-child { margin: 0; color: var(--texte-doux); }
.actualite__photo { margin-block: 0 2rem; }
.actualite__photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--rayon); }
.actualite__retour { margin-top: 2.5rem; }
.pagination { padding-bottom: 3rem; text-align: center; font-family: var(--titre); }
.pagination .page-numbers { padding: 0.3em 0.7em; text-decoration: none; }
.pagination .current { background: var(--nuit); color: var(--craie); border-radius: var(--rayon); }

/* ---------- Bandeau « Soutenir la ferme » (financement participatif) ---------- */

.soutien {
  background: var(--paille);
  color: var(--nuit);
  border-radius: var(--rayon);
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 1rem 2rem;
  align-items: center;
  margin-block: 0 2.5rem;
}
@media (min-width: 760px) { .soutien { grid-template-columns: 1fr auto; } }
.soutien h2 { font-size: 1.35rem; margin: 0 0 0.2em; }
.soutien p { margin: 0; }
.soutien .bouton { background: var(--nuit); border-color: var(--nuit); white-space: nowrap; }
.soutien .bouton:hover { background: var(--nuit-claire); border-color: var(--nuit-claire); }

/* ---------- Bandeau « Contactez-nous » ---------- */

.appel {
  padding-block: 3.5rem;
  background: var(--nuit);
  color: var(--craie);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.appel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--aurore); }
.appel .conteneur {
  display: grid;
  gap: 1.5rem 3.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}
@media (min-width: 800px) {
  .appel .conteneur { grid-template-columns: auto minmax(0, 34em); justify-content: center; text-align: left; justify-items: start; }
}
.appel__logo { color: var(--paille); width: min(50vw, 220px); }
.appel__logo svg { width: 100%; height: auto; display: block; }
.appel h2 { color: var(--craie); font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 0.3em; }
.appel p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.88); }
.appel .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.25rem; }
@media (min-width: 860px) { .appel .actions { justify-content: flex-start; } }

/* Rappel ouvert par « Recevoir la newsletter » tant que le lien n'est pas renseigné */
.rappel {
  border: 0;
  border-radius: var(--rayon);
  background: var(--lin);
  color: var(--texte);
  padding: 2rem;
  max-width: min(32em, calc(100vw - 2rem));
  box-shadow: var(--ombre);
}
.rappel::backdrop { background: rgba(28, 43, 58, 0.6); }
.rappel h2 { margin: 0 0 1rem; }
.rappel .bouton { margin: 0; }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--nuit);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 2.5rem 1.5rem;
  font-size: 0.95rem;
}
.site-footer .conteneur { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer .conteneur { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: var(--paille); font-size: 1.05rem; letter-spacing: 0.04em; }
.site-footer a { color: var(--craie); }
.site-footer a:hover { color: var(--paille); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35em; }
.site-footer address { font-style: normal; }
.site-footer .bas {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.site-footer .bas ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer .bas li { margin: 0; }
.site-footer .bas a { color: rgba(255, 255, 255, 0.8); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
