/* ==========================================================================
   Les Marcottes ASBL — feuille de style du site
   Valeurs reprises de l'export Claude Design (Accueil.dc.html), étendues
   aux pages intérieures avec les mêmes motifs.
   ========================================================================== */

/* -- Polices auto-hébergées (SIL Open Font License, voir /fonts) ---------- */
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('fonts/karla-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('fonts/karla-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('fonts/karla-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* -- Palette et constantes ----------------------------------------------- */
:root {
  --creme: #FDF8EF;          /* fond de page */
  --creme-carte: #FFFCF5;    /* fond des cartes */
  /* Les verts (palette « sauge ») : changer ces cinq valeurs change le vert
     de tout le site, dessins compris (penser aussi à la balise theme-color
     de Base.astro et aux icônes, voir le README). */
  --vert: #3D6656;           /* texte courant, titres */
  --vert-rgb: 61, 102, 86;   /* le même, pour les transparences */
  --vert-fonce: #2B4A3F;     /* en-tête, boutons pleins, panneaux */
  --vert-pied: #243F35;      /* pied de page */
  --vert-clair: #B7CDC3;     /* texte secondaire sur fond vert */
  --voile-rgb: 20, 40, 33;   /* voile posé sur les photos : un vert plus sombre que --vert-pied, à suivre si les verts changent */
  --terre: #924834;          /* accent : survol, focus, flèches, racines */
  --miel: #9E711E;           /* filets décoratifs */
  /* La pousse : vert tendre tiré des feuilles du logo (#7ED957), éclairci
     pour porter du texte vert foncé (contraste 9,6:1). Réservée aux appels à
     l'action et à quelques touches : c'est elle qui donne la fraîcheur. */
  --pousse: #D4EC8C;
  --pousse-vive: #B9DD5C;    /* survol des boutons, soulignés */
  --creme-bande: #F2EEE1;    /* fond des bandes arrondies */
  --pousse-pale: #E8F3C6;    /* fond des ouvertures sans photo */
  --encre: #1E2B26;          /* texte courant : un vert presque noir */
  --pierre: #56635C;         /* texte secondaire */
  --ligne: rgba(var(--vert-rgb), 0.16); /* séparations et contours discrets */
  --contour-champ: #7F938A;  /* bord des champs : 3,3:1 sur le fond, seuil 3:1 (WCAG 1.4.11) */
  --sable: #E4DBCC;          /* texte clair sur vert */

  /* Compagnons « -rgb » : les transparences ne peuvent pas passer par un jeton
     hexadécimal. Sans eux, repeindre --creme, --encre ou --terre laissait
     derrière les ombres, les bordures de l'en-tête et du pied, et les tracés
     des dessins. Les six valeurs vont par paires : changer l'une sans l'autre
     désaccorde le site. */
  --creme-rgb: 253, 248, 239;
  --encre-rgb: 30, 43, 38;
  --terre-rgb: 146, 72, 52;
  --terre-clair: #DCAA80;    /* la terre cuite sur fond vert foncé (dessins) */

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --ombre-carte: 0 1px 2px rgba(var(--encre-rgb), 0.04), 0 12px 28px -22px rgba(var(--encre-rgb), 0.28);
  --ombre-carte-survol: 0 3px 6px rgba(var(--encre-rgb), 0.06), 0 26px 44px -24px rgba(var(--encre-rgb), 0.4);
  --rayon: 26px;             /* cartes et tuiles */
  --rayon-bloc: 34px;        /* grandes surfaces : bandes, panneaux, pied */

  --espace-section: clamp(56px, 7.5vw, 96px);

  /* Mouvement : une seule grammaire pour tout le site (voir la fin du fichier). */
  --ease-organique: cubic-bezier(0.22, 1, 0.36, 1); /* départ franc, arrivée lente, comme une pousse */
  --ease-douce: cubic-bezier(0.45, 0, 0.2, 1);      /* va-et-vient régulier */
  --duree-survol: 220ms;
  --duree-apparition: 900ms;
}

/* -- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--encre); font-family: var(--sans); font-size: 17.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Les titres prennent le vert foncé ; sur un fond foncé (panneaux, pied,
   tuiles photo), le bloc redéfinit --titres pour qu'ils suivent son texte. */
h1, h2, h3, h4 { color: var(--titres, var(--vert-fonce)); }
h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd, dt, form, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; min-width: 0; }
a { color: var(--vert); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(var(--vert-rgb), 0.28); text-underline-offset: 3px; }
a:hover { color: var(--terre); text-decoration-color: var(--terre); }
:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; border-radius: 6px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
strong { font-weight: 700; }
abbr[title] { text-decoration: none; }

/* Enveloppe de page : empêche tout débordement horizontal (dessins en
   position absolue) sans casser un éventuel en-tête collant. */
.page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; overflow-x: clip; }
.page > main { flex: 1 0 auto; }

.conteneur { width: min(100% - 32px, 1280px); margin-inline: auto; }
/* Les ouvertures (photo de l'accueil, en-tête des pages) débordent un peu du
   contenu, comme une grande image posée sur la page. */
.conteneur--large { width: min(100% - 32px, 1392px); }
.visuellement-masque { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* -- Typographie ---------------------------------------------------------- */
/* Grands titres en graisse normale : plus légers, plus actuels. La graisse
   600 reste aux petits titres de cartes, où le 400 manquerait de tenue. */
.titre-1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.022em; text-wrap: balance; }
.titre-page { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.6vw, 58px); line-height: 1.05; letter-spacing: -0.022em; text-wrap: balance; }
.titre-2 { font-family: var(--serif); font-weight: 400; font-size: clamp(31px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.titre-3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 31px); line-height: 1.14; letter-spacing: -0.016em; text-wrap: balance; }
.titre-carte { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.18; letter-spacing: -0.015em; text-wrap: balance; }
.titre-4 { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.012em; text-wrap: balance; }
.surtitre { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--terre); }
.intertitre-pied { font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pousse); }


/* Chapô des pages intérieures, dans la voix du manifeste de l'accueil. */
.chapo { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 23px); line-height: 1.45; letter-spacing: -0.014em; text-wrap: pretty; }
.filet { display: block; width: 56px; height: 1px; background: var(--miel); }

.texte-lecture { font-size: clamp(17.5px, 2.1vw, 19.5px); line-height: 1.7; color: var(--encre); text-wrap: pretty; }
.texte-lecture + .texte-lecture { margin-top: 20px; }
.texte-secondaire { color: var(--pierre); }

/* Titre de section. Le filet miel qui filait jusqu'au bord a été retiré
   avec le passage au style épuré : le titre suffit à ouvrir la section. */
.titre-filet { margin-bottom: 30px; }

/* En-tête de section : titre à gauche, courte phrase et lien à droite. */
.tete-section { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; }
.tete-section__texte { max-width: 46ch; color: var(--pierre); text-wrap: pretty; }
.tete-section__texte .lien-souligne { margin-left: 4px; }

/* Lien appuyé, souligné de vert tendre. */
.lien-souligne { font-weight: 700; color: var(--vert-fonce); text-decoration: underline; text-decoration-color: var(--pousse-vive); text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.lien-souligne:hover { color: var(--vert-fonce); text-decoration-color: var(--vert-fonce); }

/* -- Texte long (récits de projets, pages légales) ------------------------ */
.prose { max-width: 68ch; color: var(--encre); font-size: clamp(17.5px, 2.1vw, 19px); line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.14; letter-spacing: -0.018em; text-wrap: balance; }
.prose h3 { margin-top: 1.6em; font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 2.6vw, 24px); line-height: 1.2; letter-spacing: -0.012em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--terre); }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 2px solid var(--miel); font-family: var(--serif); font-style: italic; font-size: 1.08em; }
.prose a { text-decoration-color: rgba(var(--vert-rgb), 0.4); }
.prose a:hover { text-decoration-color: var(--terre); }
.prose > :first-child { margin-top: 0; }

/* -- Lien d'évitement ------------------------------------------------------ */
.lien-evitement { position: absolute; left: 16px; top: -100px; z-index: 60; display: inline-block; padding: 14px 22px; border-radius: 999px; background: var(--creme); color: var(--vert-fonce); font-size: 16px; font-weight: 700; text-decoration: none; transition: top 170ms ease; }
.lien-evitement:focus { top: 16px; }

/* -- Boutons --------------------------------------------------------------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 999px; font-size: 16.5px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, transform var(--duree-survol) var(--ease-organique); }
.bouton:hover { transform: translateY(-2px); }
.bouton--plein { background: var(--vert-fonce); color: var(--creme); }
.bouton--plein:hover { background: var(--vert); color: var(--creme); }
.bouton--contour { border-color: var(--vert-fonce); color: var(--vert-fonce); background: transparent; }
.bouton--contour:hover { background: rgba(var(--vert-rgb), 0.07); border-color: var(--vert-fonce); color: var(--vert-fonce); }
/* L'appel principal : vert tendre, texte vert foncé. « clair » est l'ancien
   nom, gardé pour les boutons posés sur un fond foncé. */
.bouton--pousse, .bouton--clair { background: var(--pousse); color: var(--vert-fonce); box-shadow: 0 10px 24px -16px rgba(var(--encre-rgb), 0.7); }
.bouton--pousse:hover, .bouton--clair:hover { background: var(--pousse-vive); color: var(--vert-fonce); }
/* Pastille fléchée au bout d'un bouton. */
.bouton__rond { display: grid; place-items: center; width: 28px; height: 28px; margin-right: -12px; border-radius: 50%; background: var(--vert-fonce); color: var(--pousse); transition: transform var(--duree-survol) var(--ease-organique); }
.bouton:hover .bouton__rond { transform: translateX(2px); }
.bouton--contour-clair { border-color: rgba(var(--creme-rgb), 0.55); color: var(--creme); background: transparent; }
.bouton--contour-clair:hover { background: rgba(var(--creme-rgb), 0.16); border-color: var(--creme); color: var(--creme); }
.bouton--petit { min-height: 44px; padding: 10px 20px; font-size: 16px; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Lien de navigation suivi d'une flèche terre cuite. */
.lien-fleche { display: inline; padding: 10px 0; font-size: 17.5px; font-weight: 700; text-decoration-thickness: 1.5px; text-decoration-color: rgba(var(--vert-rgb), 0.28); transition: text-decoration-color 180ms ease; }
.lien-fleche:hover { text-decoration-color: var(--terre); }
.fleche { color: var(--terre); }

/* -- En-tête --------------------------------------------------------------- */
/* En-tête clair et collant : il reste à portée sur les pages longues, et un
   léger flou laisse deviner ce qui défile dessous. */
.entete { position: sticky; top: 0; z-index: 40; background: rgba(var(--creme-rgb), 0.88); color: var(--vert-fonce); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.entete a:not(.bouton) { color: inherit; }
.entete a:not(.bouton):hover { color: inherit; }
.entete__rangee { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; }
.entete__marque { display: flex; align-items: center; gap: 11px; min-height: 44px; margin-right: auto; text-decoration: none; }
.entete__picto { flex: 0 0 auto; width: 38px; height: 38px; color: var(--terre); fill: none; stroke-linecap: round; }
.entete__nom { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.015em; line-height: 1.1; }

.nav-large { display: none; }
.nav-large ul { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--creme-carte); border: 1px solid var(--ligne); }
.nav-large a { display: flex; align-items: center; min-height: 40px; padding: 8px 15px; border-radius: 999px; font-size: 15.5px; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--encre); transition: background-color 180ms ease, color 180ms ease; }
.entete .nav-large a:hover { background: var(--creme-bande); color: var(--vert-fonce); }
.entete .nav-large a[aria-current] { background: var(--vert-fonce); color: var(--creme); }

.nav-repli { position: relative; }
.nav-repli > summary { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 18px; border: 1.5px solid var(--vert-fonce); border-radius: 999px; font-size: 16px; font-weight: 700; transition: background-color 180ms ease; }
.nav-repli > summary:hover, .nav-repli[open] > summary { background: var(--creme-bande); }
.nav-repli__triangle { font-size: 12px; line-height: 1; color: var(--terre); transition: transform 180ms ease; }
.nav-repli[open] .nav-repli__triangle { transform: rotate(180deg); }

/* Le panneau repliable est une surface claire dans l'en-tête vert : il
   ne doit pas hériter du crème. */
.nav-panneau { position: absolute; right: 0; top: calc(100% + 12px); z-index: 50; min-width: 262px; padding: 10px; border-radius: 22px; background: var(--creme-carte); border: 1px solid var(--ligne); box-shadow: 0 3px 8px rgba(var(--encre-rgb), 0.08), 0 28px 48px -22px rgba(var(--encre-rgb), 0.42); }
.nav-panneau ul { display: flex; flex-direction: column; }
.entete .nav-panneau a { color: var(--vert); }
.entete .nav-panneau a:hover { color: var(--terre); }
.entete .nav-panneau :focus-visible { outline-color: var(--terre); }
.nav-panneau a { display: flex; align-items: center; min-height: 46px; padding: 8px 14px; border: 1.5px solid transparent; border-radius: 14px; font-size: 16.5px; font-weight: 500; text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease; }
.nav-panneau a:hover { background: var(--creme-bande); border-color: transparent; }
.nav-panneau a[aria-current] { background: rgba(var(--vert-rgb), 0.1); font-weight: 700; }
.nav-panneau__appel { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--ligne); }
.entete .nav-panneau .nav-panneau__appel a { justify-content: center; background: var(--pousse); color: var(--vert-fonce); font-weight: 700; border-radius: 999px; }
.entete .nav-panneau .nav-panneau__appel a:hover { background: var(--pousse-vive); color: var(--vert-fonce); border-color: transparent; }

/* Très petits écrans (moins de 360 px) : le nom et le menu doivent tenir
   côte à côte. */
@media (max-width: 359px) {
  .entete__rangee { gap: 8px; }
  .entete__marque { gap: 8px; }
  .entete__picto { width: 32px; height: 32px; }
  .entete__nom { font-size: 19px; }
  .nav-repli > summary { gap: 6px; padding: 9px 10px; }
}

/* Sous 1020 px, la rangée d'en-tête ne peut pas tenir le nom, la navigation
   en pilule et l'appel à l'action : celui-ci passe dans le menu repliable.
   Mesuré : marque 200 + pilule 570 + bouton 165 + gouttières 24 = 959 px,
   d'où ce seuil (conteneur de 988 px à 1020). Au-delà de ce calcul,
   .entete__rangee passe à la ligne plutôt que de pousser le menu hors de
   l'écran quand le visiteur agrandit le texte. */
.entete__appel { display: none; }
@media (min-width: 1020px) {
  .nav-large { display: block; margin-inline: auto; }
  .entete__marque { margin-right: 0; }
  .nav-repli { display: none; }
  .entete__appel { display: inline-flex; min-height: 46px; padding: 10px 22px; font-size: 16px; }
}

/* -- Pied de page ---------------------------------------------------------- */
/* Le pied est un grand bloc arrondi posé dans la page, et non une bande
   bord à bord : il prolonge la grammaire des bandes et des panneaux. */
.pied { padding-bottom: 16px; }
.pied__carte { --titres: currentColor; padding: clamp(32px, 5vw, 60px) clamp(22px, 5vw, 60px) clamp(24px, 3vw, 32px); border-radius: var(--rayon-bloc); background: var(--vert-pied); color: var(--creme); }
.pied a { color: var(--creme); text-decoration-color: rgba(var(--creme-rgb), 0.5); }
.pied a:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.pied :focus-visible { outline-color: var(--pousse); }
.pied__colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px 40px; }
.pied__nom { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -0.015em; }
.pied__texte { margin-top: 12px; font-size: 16px; line-height: 1.65; }
.pied__liste { margin-top: 10px; display: flex; flex-direction: column; font-size: 16px; }
.pied__liste a { display: inline-flex; align-items: center; min-height: 34px; }
/* Piles de liens de contact (pied de page et page contact) : séparés par des
   <br> dans un paragraphe, ces liens n'ont pas droit à l'exception « texte en
   ligne » de WCAG 2.5.8 — sans hauteur minimale ils tombent à 19-20 px de haut
   pour 10 px d'écart, sous le seuil de 24. Même motif que .pied__liste ci-dessus. */
.pied__texte a, .coordonnees a, .personne__contact a { display: inline-flex; align-items: center; min-height: 34px; }
.pied__lettre { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px 44px; align-items: start; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(var(--creme-rgb), 0.18); }
.pied__mention { margin-top: 12px; font-size: 16.5px; line-height: 1.6; color: var(--vert-clair); text-wrap: pretty; }
.pied__legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(var(--creme-rgb), 0.18); font-size: 14.5px; line-height: 1.6; }

/* -- Champs de formulaire -------------------------------------------------- */
/* Tous les champs des deux formulaires sont requis, et rien ne le disait avant
   l'envoi : l'information n'arrivait que dans la bulle native du navigateur
   (WCAG 3.3.2). Une seule phrase évite d'alourdir chaque libellé. */
.champ__obligatoires { margin-bottom: 18px; font-size: 15.5px; line-height: 1.5; color: var(--pierre); }
.pied .champ__obligatoires { color: var(--vert-clair); }
.champ { display: block; }
.champ + .champ { margin-top: 20px; }
.champ__libelle { display: block; font-size: 16.5px; font-weight: 500; }
.champ__aide { display: block; margin-top: 2px; font-size: 15px; color: var(--pierre); }
.champ__saisie { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 12px 16px; border: 1.5px solid var(--contour-champ); border-radius: 14px; background: var(--creme-carte); color: var(--encre); font-size: 16.5px; line-height: 1.5; transition: border-color 180ms ease; }
.champ__saisie:hover { border-color: var(--vert); }
/* Texte indicatif : sans déclaration, Firefox applique la couleur du champ à
   54 % d'opacité, soit ~3,7:1 sur le crème — sous le seuil. Ce jeton donne
   6,59:1, et la conformité cesse de dépendre du moteur de rendu. */
.champ__saisie::placeholder { color: var(--pierre); opacity: 1; }
.champ__saisie:focus { border-color: var(--vert); }
.champ__saisie:focus-visible { outline: 2px solid var(--terre); outline-offset: 2px; }
textarea.champ__saisie { min-height: 168px; resize: vertical; }
select.champ__saisie { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23924834' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.case { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; line-height: 1.55; }
.case input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--vert); }
.pot-de-miel { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Variante sur fond vert (pied de page). */
.pied .champ__saisie { border-color: transparent; }
.pied .champ__saisie:focus { border-color: var(--vert-clair); }
.pied .case { color: var(--vert-clair); }
.pied .case input { accent-color: var(--vert-clair); }

/* -- Sections -------------------------------------------------------------- */
.section { padding-top: var(--espace-section); }
.section--fin { padding-bottom: clamp(80px, 9.5vw, 128px); }
.section--dernier { padding-bottom: clamp(64px, 8vw, 112px); }
.bande { padding: 0; }
/* La bande est un grand bloc arrondi posé dans la page, et non plus une bande
   bord à bord : c'est son conteneur qui porte le fond. */
.bande > .conteneur { padding: clamp(36px, 5.4vw, 76px) clamp(22px, 5vw, 72px); border-radius: var(--rayon-bloc); background: var(--creme-bande); }
/* Une bande a besoin d'air au-dessus d'elle. C'était jusqu'ici un style écrit à
   la main sur six sections — une bande ajoutée sans y penser se collait au bloc
   précédent. L'exception est réelle : quand la section qui précède porte déjà
   son propre rembourrage bas, ajouter une marge doublerait l'écart.
   (L'ancienne règle « .bande + .section » qui occupait ces lignes était le
   strict équivalent de « .section » : elle ne faisait rien.) */
* + .bande { margin-top: var(--espace-section); }
.section--fin + .bande, .section--dernier + .bande { margin-top: 0; }

/* -- Accueil : ouverture -------------------------------------------------- */
/* La photo occupe tout le bloc, le texte est posé dessus. Le dégradé part du
   bas pour laisser les visages dégagés en haut de l'image. */
.accueil-ouverture { --titres: currentColor; position: relative; display: flex; align-items: flex-end; min-height: 720px; margin-top: 4px; overflow: hidden; border-radius: var(--rayon-bloc); color: #FFFFFF; isolation: isolate; background: linear-gradient(transparent 0 64px, var(--vert-fonce) 64px); }
.accueil-ouverture__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.accueil-ouverture::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(var(--voile-rgb), 0.92) 0%, rgba(var(--voile-rgb), 0.7) 38%, rgba(var(--voile-rgb), 0) 66%), linear-gradient(90deg, rgba(var(--voile-rgb), 0.35), rgba(var(--voile-rgb), 0) 55%); }
.accueil-ouverture__texte { max-width: 860px; padding: clamp(28px, 4vw, 48px) clamp(24px, 4.4vw, 56px); }
.accueil-ouverture .titre-1 { margin-top: 20px; }
.accueil-ouverture .titre-1 em { font-style: italic; color: var(--pousse); }
.accueil-ouverture__chapo { max-width: 54ch; margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, 0.92); text-wrap: pretty; }
.accueil-ouverture .boutons { margin-top: 28px; }
.accueil-ouverture :focus-visible { outline-color: var(--pousse); }

/* Voile vert et non blanc : posée sur la palissade claire de la photo, la
   pastille ne donnait que 1,9:1 au texte blanc ; ce voile donne 8,7:1. */
.pastille { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(var(--voile-rgb), 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.pastille__mise { padding: 3px 10px; border-radius: 999px; background: var(--pousse); color: var(--vert-fonce); font-weight: 700; white-space: nowrap; }

/* Bouton translucide, sur photo. */
.bouton--verre { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bouton--verre:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.2); }

/* Vignette d'information posée sur la photo. */
.vignette { position: absolute; right: 28px; bottom: 28px; width: 330px; padding: 18px 20px; border-radius: 22px; background: var(--creme-carte); color: var(--encre); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.55); }
.vignette__tete { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--vert-fonce); }
.vignette__icone { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--pousse); color: var(--vert-fonce); }
.vignette__texte { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--pierre); }
.vignette__texte time { font-weight: 700; color: var(--encre); }
.vignette__lien { display: inline-block; margin-top: 10px; font-size: 15.5px; white-space: normal; }

/* Fenêtre d'inscription à la lettre (FenetreLettre.astro), dans l'esprit de la vignette. */
.fenetre { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 26px 26px 22px; border: 0; border-radius: 22px; background: var(--creme-carte); color: var(--encre); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6); }
.fenetre::backdrop { background: rgba(var(--encre-rgb), 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.fenetre .vignette__tete { padding-right: 40px; font-size: 17px; line-height: 1.3; }
.fenetre__fermer { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--vert-fonce); cursor: pointer; transition: background-color 180ms ease; }
.fenetre__fermer:hover { background: var(--creme-bande); }
.fenetre__fermer:focus-visible { outline: 2px solid var(--terre); outline-offset: 2px; }
.fenetre__texte { margin: 12px 0 18px; font-size: 15.5px; line-height: 1.5; color: var(--pierre); }
.fenetre__mention { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--pierre); }
.fenetre__mention:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fenetre[open] { animation: fenetre-entree 260ms var(--ease-organique) both; }
}
@keyframes fenetre-entree { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.accueil-ouverture .vignette :focus-visible { outline-color: var(--terre); }

/* Jusqu'à 1100 px (téléphones, tablettes, petits portables), la photo passe
   au-dessus du texte : posé dessus, le texte couvrait les visages et les
   t-shirts clairs. Au-delà, le bloc est assez large pour le loger en bas à
   gauche, sous les visages. */
@media (max-width: 1100px) {
  .accueil-ouverture { display: block; min-height: 0; }
  .accueil-ouverture__photo { position: relative; height: clamp(270px, 46vw, 460px); }
  .accueil-ouverture::before { display: none; }
  .accueil-ouverture__texte { padding: clamp(24px, 3.4vw, 32px) clamp(20px, 4.4vw, 56px) 28px; }
  .vignette { position: static; width: auto; margin: 0 clamp(12px, 3vw, 32px) clamp(12px, 3vw, 32px); }
}
@media (max-width: 760px) {
  .accueil-ouverture .bouton { width: 100%; }
}
@media (max-width: 1100px) {
  .accueil-ouverture .pastille { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.photo-ombree { width: 100%; border-radius: var(--rayon); }

/* -- Texte d'introduction et dessin (« Notre association », pôles) ---------- */
/* Le dessin ne flotte plus seul dans la page : il est posé dans un bloc vert
   tendre, de la hauteur du texte, comme les ouvertures sans photo. */
.manifeste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 880px) {
  /* Pistes proportionnelles : la largeur disponible vient du conteneur,
     pas de la fenêtre. */
  .manifeste { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(32px, 4.4vw, 64px); align-items: stretch; }
}
.manifeste__texte { max-width: 680px; }
.manifeste__texte .chapo { margin-top: 30px; }
.manifeste > .prose { align-self: center; }
.manifeste__dessin { display: flex; align-items: center; justify-content: center; min-height: 240px; margin: 0; padding: clamp(20px, 3vw, 36px); border-radius: var(--rayon-bloc); background: var(--pousse-pale); }
.manifeste__dessin svg { width: 100%; max-width: 340px; height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.manifeste__dessin .illustration { width: 100%; max-width: 440px; }
.manifeste__dessin .illustration svg { max-width: none; }
.dessin-racines { color: var(--vert); }

/* -- Tuiles des pôles ------------------------------------------------------ */
/* Deux colonnes, y compris sur téléphone, et quatre une fois qu'elles
   tiennent. La règle des quatre colonnes ne s'applique qu'à une grille de
   quatre tuiles exactement (cf. lib/poles.ts, qui prévoit un cinquième pôle). */
.grille-poles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); margin-top: clamp(26px, 3vw, 36px); }
@media (min-width: 1100px) {
  .grille-poles:has(> :last-child:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.carte-pole { --titres: currentColor; position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--rayon); background: var(--vert-fonce); color: #FFFFFF; text-decoration: none; isolation: isolate; }
.carte-pole:hover { color: #FFFFFF; }
.carte-pole__image { position: absolute; inset: 0; z-index: -2; }
.carte-pole__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform 700ms var(--ease-organique); }
.carte-pole:hover .carte-pole__image img { transform: scale(1.05); }
.carte-pole::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(var(--voile-rgb), 0.9) 0%, rgba(var(--voile-rgb), 0.4) 45%, rgba(var(--voile-rgb), 0) 70%); }
.carte-pole--complete::before { background: linear-gradient(0deg, rgba(var(--voile-rgb), 0.92) 0%, rgba(var(--voile-rgb), 0.6) 50%, rgba(var(--voile-rgb), 0) 80%); }
.carte-pole__corps { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(14px, 1.8vw, 22px); }
.carte-pole__titre { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
.carte-pole__texte { margin-top: 8px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.88); text-wrap: pretty; }
.carte-pole__fleche { position: absolute; top: clamp(12px, 1.4vw, 18px); right: clamp(12px, 1.4vw, 18px); display: grid; place-items: center; width: clamp(34px, 3vw, 42px); height: clamp(34px, 3vw, 42px); border-radius: 50%; background: var(--pousse); color: var(--vert-fonce); transition: transform 300ms var(--ease-organique); }
.carte-pole:hover .carte-pole__fleche, .carte-pole:focus-visible .carte-pole__fleche { transform: rotate(-45deg); }
@media (max-width: 639px) {
  .carte-pole { aspect-ratio: 4 / 5; border-radius: 20px; }
  .carte-pole__texte { display: none; }
}

/* -- Marcottage : texte et étapes en escalier ------------------------------- */
.marcottage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 72px; align-items: center; }
@media (min-width: 960px) { .marcottage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.etapes { display: grid; gap: 14px; }
.etapes li { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 22px; padding: 14px 22px 14px 14px; border-radius: 22px; background: var(--creme-carte); }
.etapes svg { display: block; width: 120px; height: auto; padding: 8px 6px; border-radius: 14px; background: var(--creme); color: var(--vert); fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* La dernière étape, devenue autonome, passe sur fond vert foncé. */
.etapes li:nth-child(3) { --racine: var(--terre-clair); --sol: rgba(var(--creme-rgb), 0.35); background: var(--vert-fonce); color: var(--creme); }
.etapes li:nth-child(3) svg { background: rgba(var(--creme-rgb), 0.08); color: var(--pousse); }
.etapes li:nth-child(3) .surtitre { color: var(--pousse); }
.etapes__legende p + p { margin-top: 2px; font-family: var(--serif); font-size: clamp(18.5px, 1.8vw, 21px); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
@media (min-width: 560px) {
  .etapes li:nth-child(2) { margin-left: 36px; }
  .etapes li:nth-child(3) { margin-left: 72px; }
}
@media (max-width: 559px) {
  .etapes li { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; }
  .etapes svg { width: 92px; }
}

/* « Ils ont pris racine » : deux lignes compactes, photo à gauche. */
.racines { margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--ligne); }
.racines__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; margin-top: 22px; }
.racine { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 20px; padding: 12px; border-radius: 22px; background: var(--creme-carte); }
.racine img, .racine__dessin { width: 170px; height: 130px; object-fit: cover; border-radius: 14px; }
.racine__dessin svg { display: block; }
.racine__texte { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--pierre); text-wrap: pretty; }
.racine__lien { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; font-size: 15.5px; font-weight: 700; }
@media (max-width: 559px) {
  .racine { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 10px 10px 18px; }
  .racine > div { padding-inline: 8px; }
  .racine img, .racine__dessin { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* -- Cartes « branche » (projets autonomes, projets en vignette) ----------- */
/* Répartition des cartes : jamais une carte seule sur sa rangée.
   Rangées de 4 au plus ; quand il reste 1 ou 2 cartes, les deux dernières
   rangées se rééquilibrent (4 + 1 devient 3 + 2, 4 + 2 devient 3 + 3), et
   chaque rangée incomplète se centre.
     3 → 3        4 → 4        5 → 3 + 2    6 → 3 + 3
     7 → 4 + 3    8 → 4 + 4    9 → 4 + 3 + 2    10 → 4 + 3 + 3 …
   Jusqu'à 6 cartes, trois par rangée (cartes plus grandes) ; au-delà, quatre.
   Sur écran large, une grille de 24 colonnes : une carte en occupe 6 (un
   quart) ou 8 (un tiers), et une rangée de 3 quarts commence à la colonne 4,
   une rangée de 2 tiers à la colonne 5, de 2 quarts à la colonne 7, ce qui
   les centre. En dessous, deux colonnes puis une seule. */
.grille-cartes { --colonnes: 1; --ecart: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 34px var(--ecart); }
.grille-cartes > * { flex: 0 0 calc((100% - (var(--colonnes) - 1) * var(--ecart)) / var(--colonnes)); min-width: 0; }
@media (min-width: 640px) { .grille-cartes { --colonnes: 2; } }
@media (min-width: 950px) {
  .grille-cartes { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); }
  .grille-cartes > * { grid-column: span 8; }
  .grille-cartes:has(> :last-child:nth-child(1)) > * { grid-column: 9 / span 8; }
  .grille-cartes:has(> :last-child:nth-child(2)) > * { grid-column: span 12; }
  .grille-cartes:has(> :last-child:nth-child(4)) > *,
  .grille-cartes:has(> :nth-child(7)) > * { grid-column: span 6; }
  /* 5 : 3 + 2 */
  .grille-cartes:has(> :last-child:nth-child(5)) > :nth-last-child(2) { grid-column: 5 / span 8; }
  /* 7 et plus, il reste 3 : dernière rangée de 3 */
  .grille-cartes:has(> :nth-child(7)):has(> :last-child:nth-child(4n + 3)) > :nth-last-child(3),
  /* il reste 2 : deux rangées de 3 */
  .grille-cartes:has(> :nth-child(7)):has(> :last-child:nth-child(4n + 2)) > :nth-last-child(6),
  .grille-cartes:has(> :nth-child(7)):has(> :last-child:nth-child(4n + 2)) > :nth-last-child(3),
  /* il reste 1 : une rangée de 3 puis une de 2 */
  .grille-cartes:has(> :nth-child(7)):has(> :last-child:nth-child(4n + 1)) > :nth-last-child(5) { grid-column: 4 / span 6; }
  .grille-cartes:has(> :nth-child(7)):has(> :last-child:nth-child(4n + 1)) > :nth-last-child(2) { grid-column: 7 / span 6; }
}
/* Sans boîte autour : l'image arrondie porte la carte, le texte vient dessous. */
.carte { display: flex; flex-direction: column; }
.carte__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rayon); }
.carte__corps { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 4px 0; }
.carte__texte { margin-top: 8px; font-size: 16.5px; line-height: 1.55; color: var(--pierre); text-wrap: pretty; }
.carte__pied { margin-top: auto; padding-top: 14px; font-size: 16.5px; font-weight: 700; }

/* Vignette de projet cliquable (hub et pages de pôles). */
.carte-projet { position: relative; }
.carte-projet .titre-4 { font-weight: 400; font-size: clamp(21px, 1.9vw, 24px); }
.carte-projet__lien { text-decoration: none; }
.carte-projet__lien::after { content: ''; position: absolute; inset: 0; border-radius: var(--rayon); }
/* Le focus s'affiche sur toute la carte, pas seulement sur le titre. */
.carte-projet__lien:focus-visible { outline: none; }
.carte-projet__lien:focus-visible::after { outline: 2px solid var(--terre); outline-offset: 4px; }
.carte-projet:hover .carte-projet__lien { color: var(--terre); }
.carte-projet__visuel { position: relative; overflow: hidden; border-radius: var(--rayon); }
.carte-projet__visuel img, .carte-projet__visuel .illustration { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease-organique); }
.carte-projet:hover .carte-projet__visuel img, .carte-projet:hover .carte-projet__visuel .illustration svg { transform: scale(1.04); }
.carte-projet__visuel .illustration svg { transition: transform 700ms var(--ease-organique); }
.carte-projet__statut { position: absolute; left: 14px; top: 14px; }
.carte-projet__meta { margin-top: 12px; font-size: 15px; color: var(--pierre); }

/* Étiquettes de statut. Contrastes vérifiés : texte ≥ 4,5:1 sur leur fond. */
.statut { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; white-space: nowrap; background: var(--creme-carte); color: var(--encre); box-shadow: 0 2px 8px -2px rgba(var(--encre-rgb), 0.25); }
.statut::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.statut--en-cours { color: var(--vert); }
.statut--pris-racine { color: var(--terre); }
.statut--termine { color: var(--pierre); }
.statut--publie { color: #7A5716; }

/* Illustration de remplacement quand un projet n'a pas encore de photo. */
.illustration { display: block; background: var(--creme-bande); }
.illustration svg { width: 100%; height: 100%; color: var(--vert); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illustration--claire svg { color: var(--vert-clair); }
.illustration--nue { background: none; width: 100%; max-width: 360px; }

/* -- Chiffres ---------------------------------------------------------------- */
/* En ligne, sans cadres : le chiffre en grand, sa légende dessous, un filet
   vertical entre chaque. */
.chiffres-ligne { padding-top: clamp(22px, 3vw, 30px); }
.chiffres__rangee { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 0; }
.section .chiffres__rangee { margin-top: 30px; }
/* --nb : nombre de chiffres (trois ou quatre), posé par Chiffres.astro. */
.chiffres { flex: var(--nb, 4) 1 calc(var(--nb, 4) * 160px); display: grid; grid-template-columns: repeat(var(--nb, 4), minmax(0, 1fr)); align-items: start; gap: 22px 0; }
.chiffres > div { padding: 2px clamp(14px, 2vw, 24px); border-left: 1px solid var(--ligne); }
.chiffres > div:first-child { border-left: 0; padding-left: 0; }
.chiffres dt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.02em; color: var(--vert-fonce); font-variant-numeric: lining-nums tabular-nums; }
.chiffres dd { max-width: 26ch; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--pierre); text-wrap: pretty; }
.chiffres__maxime { flex: 1 1 200px; padding-left: clamp(14px, 2vw, 24px); border-left: 1px solid var(--ligne); font-family: var(--serif); font-size: clamp(20px, 1.8vw, 23px); font-style: italic; line-height: 1.3; color: var(--vert); text-wrap: balance; }
@media (max-width: 759px) {
  /* Quatre chiffres : deux par rangée. Trois : un par ligne, le chiffre à
     gauche de sa légende (jamais un chiffre seul sur sa rangée). */
  .chiffres:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres:has(> :nth-child(4)) > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .chiffres:not(:has(> :nth-child(4))) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chiffres:not(:has(> :nth-child(4))) > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--ligne); }
  .chiffres:not(:has(> :nth-child(4))) > div:first-child { border-top: 0; padding-top: 2px; }
  .chiffres:not(:has(> :nth-child(4))) dd { margin-top: 0; max-width: none; }
  .chiffres__maxime { padding-left: 0; border-left: 0; text-align: center; }
}
/* Petit dessin au-dessus de chaque chiffre (variante complète). */
.picto { width: 56px; height: auto; color: var(--vert); fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Phrase-clé isolée sous un bloc : centrée, et plus grande sur écran large. */
.maxime { max-width: 36ch; margin-top: clamp(34px, 4.6vw, 52px); margin-inline: auto; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 23px); font-style: italic; line-height: 1.35; letter-spacing: -0.014em; color: var(--encre); text-align: center; text-wrap: balance; }
.maxime--courte { margin-inline: auto; font-size: clamp(24px, 3vw, 32px); text-align: center; }
@media (min-width: 900px) {
  .maxime { font-size: clamp(27px, 2.5vw, 32px); }
}

/* -- Panneau vert (« Participer », appels à l'action) ------------------------ */
.panneau { --titres: currentColor; position: relative; overflow: hidden; padding: clamp(28px, 4.6vw, 60px); border-radius: var(--rayon-bloc); background: var(--vert-fonce); color: var(--creme); }
.panneau a:not(.bouton) { color: var(--creme); text-decoration-color: rgba(var(--creme-rgb), 0.5); }
.panneau a:not(.bouton):hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.panneau :focus-visible { outline-color: var(--pousse); }
.panneau__contenu { position: relative; max-width: 46ch; }
.panneau__texte { margin-top: 18px; font-size: clamp(17.5px, 2.1vw, 20px); line-height: 1.65; color: var(--sable); text-wrap: pretty; }
.panneau .boutons { position: relative; margin-top: 28px; }
@media (max-width: 560px) {
  .panneau .boutons { flex-direction: column; align-items: stretch; }
  .panneau .boutons .bouton { width: 100%; }
}
/* Panneau d'appel de fin de page : sur écran large, un dessin au trait
   clair occupe la seconde colonne au lieu de laisser un vide. */
.panneau--appel { --titres: var(--vert-fonce); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 36px; background: var(--pousse); color: var(--encre); }
/* Vert tendre et non vert foncé : il ne double plus le pied de page, et il
   reprend la couleur des boutons d'action. Les boutons « clairs » passent au
   vert foncé pour rester visibles. */
.panneau--appel .panneau__texte { color: var(--encre); }
.panneau--appel a:not(.bouton), .panneau--appel .panneau__nom { color: var(--vert-fonce); text-decoration-color: rgba(var(--vert-rgb), 0.5); }
.panneau--appel a:not(.bouton):hover { color: var(--vert-fonce); text-decoration-color: var(--vert-fonce); }
.panneau--appel .bouton--clair { background: var(--vert-fonce); color: var(--creme); box-shadow: none; }
.panneau--appel .bouton--clair:hover { background: var(--vert); color: var(--creme); }
.panneau--appel .bouton--contour-clair { border-color: var(--vert-fonce); color: var(--vert-fonce); }
.panneau--appel .bouton--contour-clair:hover { background: rgba(var(--vert-rgb), 0.1); border-color: var(--vert-fonce); color: var(--vert-fonce); }
.panneau--appel :focus-visible { outline-color: var(--terre); }
/* Le dessin « clair » prévu pour le vert foncé reprend les couleurs normales. */
.panneau--appel .illustration { --creme-rgb: var(--vert-rgb); --terre-clair: var(--terre); }
.panneau--appel .illustration--claire svg { color: var(--vert); }
.panneau__visuel { display: none; }
@media (min-width: 900px) {
  .panneau--appel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
  .panneau__visuel { display: flex; justify-content: center; }
  .panneau__visuel .illustration { max-width: 500px; }
}
/* Coordonnées dans un panneau (page « Notre association »). */
.panneau__adresse { font-style: normal; }
.panneau__adresse em { font-style: italic; }
.panneau__nom { font-weight: 700; color: var(--creme); }
.sans-coupure { white-space: nowrap; }

/* Groupe de mots qui passe à la ligne d'un seul tenant quand il ne tient
   plus sur la ligne (et ne se coupe que s'il est plus long qu'elle). */
.segment { display: inline-block; }

/* -- Participer : trois voies, un bouton chacune ---------------------------- */
.voies { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: clamp(26px, 3vw, 36px); }
.voie { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 32px); border-radius: var(--rayon); background: var(--creme-carte); border: 1px solid var(--ligne); }
.voie--sapin { --titres: currentColor; background: var(--vert-fonce); color: var(--creme); border-color: transparent; }
.voie--sapin :focus-visible { outline-color: var(--pousse); }
.voie--pousse { background: var(--pousse); border-color: transparent; }
.voie__icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--creme-bande); color: var(--vert-fonce); }
.voie--sapin .voie__icone { background: var(--pousse); }
.voie--pousse .voie__icone { background: rgba(255, 255, 255, 0.6); }
.voie__titre { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.4vw, 29px); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.voie__texte { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--pierre); text-wrap: pretty; }
.voie--sapin .voie__texte { color: var(--sable); }
.voie--pousse .voie__texte { color: var(--encre); }
.voie__pied { margin-top: auto; padding-top: 24px; }
.voie__note { margin-top: 2px; font-size: 14.5px; color: var(--encre); }
.voie--pousse .iban--clair code { background: rgba(255, 255, 255, 0.7); border-color: transparent; }
.voie--pousse .iban__statut { color: var(--encre); }

/* -- IBAN et bouton « Copier » ----------------------------------------------- */
.iban { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.iban code { font-family: var(--mono); font-size: 16px; letter-spacing: 0.02em; padding: 10px 14px; border-radius: 12px; font-variant-numeric: lining-nums tabular-nums; }
.iban--sombre code { background: rgba(var(--creme-rgb), 0.1); border: 1px solid rgba(var(--creme-rgb), 0.24); }
.iban--clair code { background: var(--creme-carte); border: 1px solid var(--ligne); color: var(--encre); }
.iban__statut { display: block; min-height: 1.4em; margin-top: 8px; font-size: 14.5px; color: var(--pierre); }
.panneau .iban__statut { color: var(--desc, var(--vert-clair)); transition: color 180ms ease; }

/* -- Pages intérieures : en-tête de page ------------------------------------- */
/* Trois cas, selon ce que la page glisse dans l'ouverture :
   - une photo : elle remplit un grand bloc arrondi, le titre est posé dessus
     (comme l'ouverture de l'accueil, en moins haut) ;
   - un dessin, une illustration à la place d'une photo, ou rien : bloc vert
     tendre, le dessin à droite sur écran large. */
.entete-page { padding-top: clamp(28px, 4vw, 48px); }
.ariane ~ .entete-page__grille { margin-top: clamp(18px, 2.4vw, 26px); }
.entete-page__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.entete-page__texte > * + * { margin-top: 22px; }
.entete-page__texte .surtitre + .titre-page { margin-top: 14px; }
.entete-page__texte .filet { margin-top: 26px; }
.entete-page__texte .filet + .chapo { margin-top: 20px; }
.entete-page__chapo { max-width: 46ch; }
.entete-page__statutaire { font-size: 15.5px; line-height: 1.5; color: var(--pierre); }

/* Avec photo. Le fond vert ne commence qu'à 64 px du haut : sous les coins
   arrondis de la photo, il laissait un fin liseré sombre. */
.entete-page__grille:has(> .entete-page__visuel > img) { --titres: currentColor; position: relative; display: flex; align-items: flex-end; min-height: 560px; overflow: hidden; border-radius: var(--rayon-bloc); background: linear-gradient(transparent 0 64px, var(--vert-fonce) 64px); color: #FFFFFF; isolation: isolate; }
.entete-page__grille:has(> .entete-page__visuel > img)::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(var(--voile-rgb), 0.92) 0%, rgba(var(--voile-rgb), 0.66) 40%, rgba(var(--voile-rgb), 0) 70%), linear-gradient(90deg, rgba(var(--voile-rgb), 0.4), rgba(var(--voile-rgb), 0) 60%); }
.entete-page__visuel { overflow: hidden; }
.entete-page__visuel:has(> img) { position: absolute; inset: 0; z-index: -2; }
.entete-page__visuel > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.entete-page__grille:has(> .entete-page__visuel > img) .entete-page__texte { max-width: 820px; padding: clamp(28px, 4vw, 52px) clamp(24px, 4.4vw, 56px); }
.entete-page__grille:has(> .entete-page__visuel > img) .filet { background: var(--pousse); }
.entete-page__grille:has(> .entete-page__visuel > img) .chapo { color: rgba(255, 255, 255, 0.94); }
.entete-page__grille:has(> .entete-page__visuel > img) .surtitre { color: var(--pousse); }
.entete-page__grille:has(> .entete-page__visuel > img) .entete-page__statutaire { color: rgba(255, 255, 255, 0.82); }
.entete-page__grille:has(> .entete-page__visuel > img) .sommaire a { color: #FFFFFF; background: rgba(var(--voile-rgb), 0.55); border-color: rgba(255, 255, 255, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.entete-page__grille:has(> .entete-page__visuel > img) .sommaire a:hover { background: var(--pousse); color: var(--vert-fonce); border-color: var(--pousse); }
.entete-page__grille:has(> .entete-page__visuel > img) :focus-visible { outline-color: var(--pousse); }
/* Jusqu'à 1100 px, la photo passe au-dessus du texte, comme à l'accueil. */
@media (max-width: 1100px) {
  .entete-page__grille:has(> .entete-page__visuel > img) { flex-direction: column; align-items: stretch; min-height: 0; }
  .entete-page__grille:has(> .entete-page__visuel > img)::before { display: none; }
  .entete-page__visuel:has(> img) { position: relative; order: -1; height: clamp(230px, 44vw, 420px); z-index: auto; }
  .entete-page__grille:has(> .entete-page__visuel > img) .entete-page__texte { padding: clamp(24px, 3.4vw, 34px) clamp(20px, 4.4vw, 56px) 30px; }
}

/* Sans photo (dessin, illustration ou rien) : bloc vert tendre. */
.entete-page__grille:not(:has(> .entete-page__visuel > img)) { padding: clamp(30px, 5vw, 64px) clamp(22px, 5vw, 72px); border-radius: var(--rayon-bloc); background: var(--pousse-pale); }
.entete-page__grille:not(:has(> .entete-page__visuel > img)) .filet { background: var(--vert); }
.entete-page__visuel .illustration { width: 100%; aspect-ratio: 4 / 3; background: none; }
/* Dessin au trait sans cadre : il habille la colonne de droite sur écran
   large ; sur mobile, le contenu suit directement. */
.entete-page__dessin { display: none; }
@media (min-width: 900px) {
  .entete-page__grille--visuel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .entete-page__dessin { display: flex; justify-content: center; }
  .entete-page__dessin .illustration { max-width: 380px; }
  .entete-page__dessin .illustration--large { max-width: 580px; }
  .entete-page__visuel:not(:has(> img)) { display: flex; justify-content: center; }
  .entete-page__visuel:not(:has(> img)) .illustration { max-width: 420px; }
}

/* Sans visuel, l'ouverture se résume à quelques lignes : la section qui suit
   s'en rapproche. */
.entete-page--sans-visuel + .section { padding-top: clamp(48px, 6vw, 80px); }

/* Sommaire d'une page longue. */
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sommaire a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1.5px solid var(--ligne); border-radius: 999px; background: var(--creme-carte); font-size: 15.5px; font-weight: 700; text-decoration: none; transition: border-color 180ms ease, background-color 180ms ease; }
.sommaire a:hover { border-color: var(--vert-fonce); background: var(--creme-bande); }
@media (max-width: 560px) {
  .sommaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sommaire a { justify-content: center; padding: 8px 10px; font-size: 15px; text-align: center; white-space: nowrap; }
}

.grand-chiffre { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }

/* Fil d'Ariane */
.ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15.5px; color: var(--pierre); }
.ariane li { display: inline-flex; align-items: center; gap: 10px; }
.ariane li + li::before { content: '›'; color: var(--terre); font-size: 18px; line-height: 1; }
.ariane a { color: var(--vert); font-weight: 500; }
.ariane [aria-current] { color: var(--pierre); }

/* -- Blocs de contenu --------------------------------------------------------- */
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
/* Les colonnes se centrent verticalement l'une par rapport à l'autre. */
@media (min-width: 900px) { .deux-colonnes { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; } }

.encadre { padding: clamp(22px, 3vw, 32px); border-radius: var(--rayon); background: var(--creme-carte); border: 1px solid var(--ligne); }
.encadre > * + * { margin-top: 12px; }
.encadre--bande { background: var(--creme-bande); border-color: transparent; }
/* Une couleur selon le rôle, comme les cartes « Participer » de l'accueil :
   vert foncé pour s'engager, vert tendre pour donner, crème pour s'informer. */
.encadre--sapin { --titres: currentColor; background: var(--vert-fonce); color: var(--creme); border-color: transparent; }
.encadre--sapin .surtitre { color: var(--pousse); }
.encadre--sapin .texte-secondaire { color: var(--vert-clair); }
.encadre--sapin a:not(.bouton) { color: var(--creme); text-decoration-color: var(--pousse); }
.encadre--sapin a:not(.bouton):hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.encadre--sapin :focus-visible { outline-color: var(--pousse); }
.encadre--pousse { background: var(--pousse); border-color: transparent; }
.encadre--pousse .surtitre { color: var(--vert-fonce); }
.encadre--pousse .iban--clair code { background: rgba(255, 255, 255, 0.7); border-color: transparent; }
.encadre--pousse .iban__statut { color: var(--encre); }
.encadre--doux { background: var(--creme-bande); border-color: transparent; }

/* « Organiser une action à notre profit » (page Nous soutenir) : l'invitation
   à gauche, les trois étapes à suivre à droite. */
.action-profit { display: grid; gap: 28px 56px; margin-top: 44px; padding: clamp(24px, 3.6vw, 48px); border-radius: var(--rayon-bloc); background: var(--creme-carte); border: 1px solid var(--ligne); }
@media (min-width: 900px) { .action-profit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; } }
.action-profit__intro > * + * { margin-top: 16px; }
.action-profit__intro .bouton { margin-top: 6px; }
.action-profit__note { font-size: 15.5px; line-height: 1.5; color: var(--pierre); }
.action-profit__etapes li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--ligne); }
.action-profit__etapes li:first-child { padding-top: 0; border-top: 0; }
.action-profit__etapes li:last-child { padding-bottom: 0; }
.action-profit__numero { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pousse); color: var(--vert-fonce); font-weight: 700; }
.action-profit__titre { font-weight: 700; color: var(--vert-fonce); line-height: 1.35; }
.action-profit__titre + p { margin-top: 4px; font-size: 16.5px; line-height: 1.55; color: var(--pierre); text-wrap: pretty; }

/* Encart de statut en tête de projet (arrêté / transmis). */
/* L'accent passe par la bordure entière, et non par un filet latéral épais :
   c'est déjà l'idiome d'emphase du site (.carte-pole:hover, .nav-panneau
   a:hover) et cela évite l'onglet collé au bord d'une carte arrondie, qui
   était la seule bordure du site à dépasser 2px. */
.mention { display: flex; gap: 16px; align-items: flex-start; max-width: 72ch; padding: 18px 22px; border-radius: 18px; background: var(--creme-carte); border: 1px solid var(--terre); color: var(--encre); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.mention--racine { border-color: var(--vert); }
/* Information rattachée aux cartes qui la précèdent : même largeur, fond
   doux, texte centré. */
.mention--info { justify-content: center; max-width: none; margin-top: 18px; text-align: center; background: var(--creme-bande); border-color: transparent; }
.mention svg { flex: 0 0 auto; width: 34px; height: 34px; margin-top: 2px; color: var(--vert); fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Valeurs, « pour qui / au programme », listes de définitions en cartes. */
.liste-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; }
/* Tuiles de texte : contenu centré verticalement quand la rangée les étire. */
.liste-cartes > div, .liste-cartes > li { display: flex; flex-direction: column; justify-content: center; padding: 24px 22px; border-radius: 20px; background: var(--creme-bande); }
.bande .liste-cartes > div, .bande .liste-cartes > li { background: var(--creme-carte); }
.liste-cartes dt, .liste-cartes h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.012em; }
.liste-cartes dd, .liste-cartes p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--pierre); text-wrap: pretty; }
.liste-cartes .surtitre { display: block; margin-bottom: 10px; }

/* Bandeau d'informations d'un projet. */
/* Chaque rangée remplit toute la largeur ; le filet haut de la première
   rangée passe sous le bord de la carte, il ne reste que les séparations. */
.fiche { display: flex; flex-wrap: wrap; border-radius: var(--rayon); background: var(--creme-carte); border: 1px solid var(--ligne); overflow: hidden; }
.fiche > div { flex: 1 1 210px; margin-top: -1px; padding: 18px 22px; border-top: 1px solid var(--ligne); }
.fiche dt { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--terre); }
.fiche dd { margin-top: 6px; font-size: 16.5px; line-height: 1.5; color: var(--encre); text-wrap: pretty; }

/* Corps d'une page projet : le récit à gauche, les repères à droite (en
   bref, puis ce que ça a changé) ; sur mobile, en bref, le récit, puis ce
   que ça a changé. */
.projet-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.projet-corps__mention { margin-bottom: 30px; }
.projet-corps__impact { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--rayon); background: var(--pousse-pale); }
.projet-corps__impact .faits { margin-top: 16px; gap: 12px; }
.projet-corps__impact .faits li { font-size: 16.5px; line-height: 1.55; }
@media (min-width: 960px) {
  .projet-corps { grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); grid-template-areas: "recit fiche" "recit impact" "recit ."; grid-template-rows: auto auto 1fr; column-gap: clamp(40px, 5vw, 72px); row-gap: 22px; align-items: start; }
  .projet-corps__recit { grid-area: recit; }
  .projet-corps__fiche { grid-area: fiche; }
  .projet-corps__impact { grid-area: impact; }
  .projet-corps .fiche { flex-direction: column; }
  .projet-corps .fiche > div { flex: none; }
}

/* Texte à gauche, fiche de repères à droite (fiches presse, attestations
   fiscales) ; sur mobile, dans l'ordre du code. */
.texte-et-fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 960px) {
  .texte-et-fiche { grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); grid-template-areas: "resume fiche"; column-gap: clamp(40px, 5vw, 72px); align-items: start; }
  .texte-et-fiche__texte { grid-area: resume; }
  .texte-et-fiche__fiche { grid-area: fiche; }
  .texte-et-fiche--centre { align-items: center; }
  .texte-et-fiche .fiche { flex-direction: column; }
  .texte-et-fiche .fiche > div { flex: none; }
}

/* En-tête du bloc Formations (Bien-être animal) : le texte sur deux colonnes
   de la grille des cartes, l'appel à l'action dans la troisième, aligné sur
   la carte du dessous et en vert tendre, la couleur des appels à l'action. */
.formations-tete { display: grid; gap: 18px; margin-top: 22px; }
.formations-tete__appel { padding: 24px 22px; border-radius: 20px; background: var(--pousse); }
@media (min-width: 900px) {
  .formations-tete { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
  .formations-tete > .texte-lecture { grid-column: span 2; padding-right: 22px; }
}

/* Six tuiles : deux rangées de trois plutôt que quatre et deux. */
@media (min-width: 900px) { .liste-cartes--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Charte : texte intégral en colonne de lecture centrée, un volet par chapitre. */
.charte { max-width: 860px; margin-inline: auto; }
.charte__partie { border-bottom: 1px solid var(--ligne); }
.charte__partie:first-of-type { border-top: 1px solid var(--ligne); }
.charte__partie > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 23px); line-height: 1.25; color: var(--vert-fonce); }
.charte__partie > summary:hover { color: var(--terre); }
.charte__signe { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.charte__signe::before, .charte__signe::after { content: ''; position: absolute; inset: 8px 0 auto; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--duree-survol) var(--ease-organique); }
.charte__signe::after { transform: rotate(90deg); }
.charte__partie[open] .charte__signe::after { transform: rotate(0deg); }
.charte__contenu { padding: 0 4px 26px; font-size: clamp(17px, 2vw, 18px); line-height: 1.7; color: var(--encre); }
.charte__contenu > * + * { margin-top: 14px; }
.charte__points { display: grid; gap: 12px; margin-top: 18px; }
.charte__points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.charte__numero { font-weight: 700; color: var(--terre); font-variant-numeric: tabular-nums; }
.charte__sous-titre { margin-top: 22px; font-weight: 700; font-size: 17px; color: var(--vert-fonce); }
.charte__puces { display: grid; gap: 8px; margin-top: 10px; padding-left: 1.2em; list-style: disc; }
.charte__puces li::marker { color: var(--terre); }
.charte__adoption { margin-top: 22px; font-size: 15px; font-style: italic; color: var(--pierre); }

/* Page d'appel à bénévoles : étapes numérotées et projets à cocher. */
.etapes-benevole { margin-top: 30px; }
.etapes-benevole > li { justify-content: flex-start; }
.etapes-benevole__numero { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--pousse); color: var(--vert-fonce); font-weight: 700; }
.choix-projets { margin: 0; padding: 0; border: 0; }
.choix-projets > legend { max-width: 70ch; margin-bottom: 24px; padding: 0; }
.choix-projets__grille { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
@media (min-width: 1100px) { .choix-projets__grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choix { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--ligne); border-radius: 20px; background: var(--creme-carte); transition: border-color var(--duree-survol) ease, background-color var(--duree-survol) ease, box-shadow var(--duree-survol) ease; }
.choix:hover { border-color: var(--contour-champ); }
.choix:has(:checked) { border-color: var(--vert); background: var(--pousse-pale); box-shadow: 0 0 0 1.5px var(--vert); }
.choix:has(:focus-visible) { outline: 2px solid var(--terre); outline-offset: 3px; }
.choix__corps { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px 56px 18px 22px; cursor: pointer; }
.choix__case { position: absolute; top: 20px; right: 20px; width: 24px; height: 24px; margin: 0; accent-color: var(--vert); cursor: pointer; }
.choix__case:focus-visible { outline: none; }
.choix__titre { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.012em; color: var(--vert-fonce); }
.choix__texte { font-size: 16px; line-height: 1.55; color: var(--pierre); text-wrap: pretty; }
.choix__besoin { align-self: flex-start; margin-top: 4px; padding: 5px 12px; border-radius: 12px; background: var(--pousse); color: var(--vert-fonce); font-size: 14.5px; font-weight: 700; line-height: 1.35; text-wrap: pretty; }
.choix__lien { align-self: flex-start; margin: 0 22px 18px; font-size: 15px; font-weight: 700; }
.inscription-benevole__coordonnees { display: grid; gap: clamp(24px, 4vw, 56px); margin-top: 36px; padding: clamp(24px, 3.4vw, 40px); }
@media (min-width: 900px) { .inscription-benevole__coordonnees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inscription-benevole__coordonnees .champ:first-of-type { margin-top: 0; }
.inscription-benevole__dispos { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; }
fieldset.champ { margin-top: 20px; padding: 0; border: 0; }

/* Pages à formulaire (action à notre profit, commande du livre) : deux colonnes
   égales, alignées en haut. */
@media (min-width: 900px) { .deux-colonnes--formulaire { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* Don par QR de virement. */
.qr-don { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 16px; }
.qr-don img { flex: 0 0 auto; width: 168px; height: 168px; border-radius: 12px; border: 1px solid var(--ligne); background: #FFFFFF; }
.qr-don p { flex: 1 1 200px; margin: 0; color: var(--encre); }

/* Téléphone : indicatif du pays et numéro côte à côte. */
.champ-telephone { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 10px; }
@media (max-width: 420px) { .champ-telephone { grid-template-columns: minmax(0, 1fr); } }

/* Faits concrets (« Ce que ça a changé »). */
.faits { display: grid; gap: 14px; max-width: 72ch; }
.faits li { display: flex; gap: 16px; align-items: flex-start; font-size: clamp(17.5px, 2vw, 19px); line-height: 1.6; color: var(--encre); }
.faits li::before { content: ''; flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M7.5 13.5l3.6 3.6 7.4-8.2' fill='none' stroke='%23FDF8EF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat, var(--vert); }
.encadre .faits { margin-top: 16px; gap: 12px; }
.encadre .faits li { font-size: 16.5px; line-height: 1.55; }

/* Galerie de photos. */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.galerie figure { overflow: hidden; border-radius: 20px; background: var(--creme-carte); border: 1px solid var(--ligne); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie figcaption { padding: 12px 16px 14px; font-size: 15px; line-height: 1.5; color: var(--pierre); }

/* Nouvelles d'un projet : la date en marge, le récit à côté. */
.nouvelles > li { display: grid; gap: 8px 40px; padding: 30px 0; border-top: 1px solid var(--ligne); }
.nouvelles > li:first-child { padding-top: 0; border-top: 0; }
.nouvelles time { padding-top: 7px; }
.nouvelles h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.8vw, 26px); line-height: 1.2; letter-spacing: -0.012em; color: var(--vert); text-wrap: balance; }
.nouvelles img { width: 100%; max-width: 640px; margin-top: 18px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; border: 1px solid var(--ligne); }
.nouvelles .prose { margin-top: 14px; }
@media (min-width: 760px) {
  .nouvelles > li { grid-template-columns: 160px minmax(0, 1fr); }
}

/* Personnes (page contact). */
.personnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.personne { display: flex; flex-direction: column; justify-content: center; padding: 26px 24px; border-radius: 22px; background: var(--creme-bande); }
.personne__nom { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.15; letter-spacing: -0.015em; }
.personne__role { margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--terre); }
.personne__domaines { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--pierre); }
.personne__contact { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ligne); font-size: 16.5px; line-height: 1.9; }

/* Coordonnées. */
.coordonnees { font-size: 17.5px; line-height: 1.75; color: var(--encre); }
.coordonnees a { font-weight: 700; }

/* Tableau des conditions (attestations fiscales). */
/* Conteneur défilant : rendu focalisable pour que le contenu qui dépasse sur
   petit écran reste atteignable au clavier hors Chromium (WCAG 2.1.1). */
.tableau-conteneur { overflow-x: auto; border-radius: 22px; border: 1px solid var(--ligne); background: var(--creme-carte); }
.tableau-conteneur:focus-visible { border-radius: 22px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 16.5px; line-height: 1.5; color: var(--encre); }
.tableau caption { padding: 18px 22px 0; text-align: left; font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--vert); }
.tableau th, .tableau td { padding: 14px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ligne); }
.tableau thead th { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--terre); }
.tableau tbody tr:last-child th, .tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody th { font-weight: 400; }
.tableau td { width: 1%; white-space: nowrap; }
.tableau thead th:last-child { white-space: nowrap; }
.reponse { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.reponse::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.6 10.4l2.8 2.8 5.8-6.4' fill='none' stroke='%23FDF8EF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.reponse--oui { color: var(--vert); }
.reponse--non { color: var(--terre); }
.reponse--non::before { background: var(--terre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.8 6.8l6.4 6.4M13.2 6.8l-6.4 6.4' fill='none' stroke='%23FDF8EF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.tableau tr.ligne-obstacle { background: rgba(var(--terre-rgb), 0.07); }
.tableau tr.ligne-obstacle th { font-weight: 700; }

/* Revue de presse. */
.revue { display: flex; flex-direction: column; border-top: 1px solid var(--ligne); }
.revue li { border-bottom: 1px solid var(--ligne); }
.revue a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; padding: 22px 12px; border-radius: 14px; text-decoration: none; transition: background-color 180ms ease; }
.revue a:hover { background: rgba(var(--terre-rgb), 0.06); }
.revue__titre { flex: 1 1 360px; font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 2.6vw, 25px); line-height: 1.2; letter-spacing: -0.012em; text-wrap: balance; }
.revue__source { flex: 0 1 auto; font-size: 16px; color: var(--pierre); }
.revue__source time { font-weight: 700; color: var(--encre); }

.coupure { overflow: hidden; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--ligne); }
.coupure img { width: 100%; }
.coupure figcaption { padding: 12px 18px 14px; font-size: 15px; color: var(--pierre); border-top: 1px solid var(--ligne); background: var(--creme-carte); }
.coupures { display: grid; gap: 22px; }
/* Reportages radio et télé hébergés sur le site. */
.reportage video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #10110F; }
.reportage--son { max-width: 720px; }
.reportage--son audio { display: block; width: 100%; padding: 18px; box-sizing: border-box; }
.reportage:hover { transform: none; }
.revue__format { font-weight: 400; }
@media (min-width: 900px) { .coupures--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; } }

/* Agenda. */
.agenda { display: flex; flex-direction: column; gap: 14px; }
.agenda li { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding: 18px 22px; border-radius: 18px; background: var(--creme-carte); border: 1px solid var(--ligne); }
.agenda time { flex: 0 0 auto; min-width: 11ch; font-weight: 700; color: var(--terre); }
.agenda__titre { flex: 1 1 260px; font-weight: 700; color: var(--encre); }
.agenda__lieu { flex: 1 1 100%; font-size: 16px; color: var(--pierre); }

/* ==========================================================================
   Mouvement
   Une seule grammaire, empruntée au végétal : ce qui apparaît pousse
   doucement, ce qui est dessiné se trace, le décor respire à peine. Tout
   arrive lentement, rien ne rebondit. Sans JavaScript, ou avec « réduire les
   animations », le site reste entièrement visible et immobile.
   ========================================================================== */

/* -- Micro-interactions au survol ------------------------------------------ */
/* Les flèches annoncent la destination : → reste sur le site, ↗ en sort. */
.fleche, .fleche-externe { display: inline-block; transition: transform var(--duree-survol) var(--ease-organique); }
a:hover .fleche, a:focus-visible .fleche { transform: translateX(3px); }
a:hover .fleche-externe, a:focus-visible .fleche-externe { transform: translate(2px, -2px); }
.revue__fleche { flex: 0 0 auto; margin-left: auto; font-size: 20px; line-height: 1; opacity: 0.45; transition: transform var(--duree-survol) var(--ease-organique), opacity var(--duree-survol) ease; }
.revue a:hover .revue__fleche, .revue a:focus-visible .revue__fleche { opacity: 1; transform: translateX(4px); }

/* Un appui se sent. */
.bouton:active, .sommaire a:active { transform: scale(0.97); transition-duration: 90ms; }

/* Les coupures de presse s'ouvrent en grand : le curseur le dit. */
.coupure { transition: transform 300ms var(--ease-organique), box-shadow 300ms var(--ease-organique); }
.coupure > a { display: block; cursor: zoom-in; }
.coupure:hover { transform: translateY(-2px); box-shadow: var(--ombre-carte-survol); }

/* Copie de l'IBAN réussie. */
.copie-ok { animation: confirmation 360ms var(--ease-organique); }
@keyframes confirmation { 40% { transform: scale(1.06); } }

/* Racines du pictogramme : elles repoussent au survol du nom. */
.picto__racine { stroke-dasharray: 1 2; }
@media (prefers-reduced-motion: no-preference) {
  .entete__marque:hover .picto__racine, .entete__marque:focus-visible .picto__racine { animation: racine-pousse 650ms var(--ease-organique) both; }
  .entete__marque:hover .picto__racine:nth-of-type(5), .entete__marque:focus-visible .picto__racine:nth-of-type(5) { animation-delay: 60ms; }
  .entete__marque:hover .picto__racine:nth-of-type(6), .entete__marque:focus-visible .picto__racine:nth-of-type(6) { animation-delay: 120ms; }
}
@keyframes racine-pousse { from { stroke-dashoffset: 1.02; } to { stroke-dashoffset: 0; } }

/* Menu replié : le panneau se déplie depuis le bouton. */
@media (prefers-reduced-motion: no-preference) {
  .nav-repli[open] .nav-panneau { transform-origin: top right; animation: panneau-deplie 220ms var(--ease-organique); }
}
@keyframes panneau-deplie { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* -- Ancres : défilement doux, et la cible se signale ----------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Deux battements lents : assez pour être remarqués en arrivant sur la page. */
  .encadre:target, .action-profit:target { animation: signal 2.2s var(--ease-douce) 0.5s 2; }
  .champ--signale .champ__saisie { animation: signal-champ 2.2s var(--ease-douce) 0.6s 2; }
}
/* Sans animation, la cible et l'objet présélectionné restent signalés. */
@media (prefers-reduced-motion: reduce) {
  .encadre:target, .action-profit:target { border-color: var(--terre); }
  .champ--signale .champ__saisie { border-color: var(--terre); }
}
/* L'objet présélectionné garde un contour terre tant qu'on ne le change pas. */
.champ--signale .champ__saisie { border-color: var(--terre); border-width: 2px; }
.champ--signale .champ__libelle::after { content: " (choisi pour vous)"; font-weight: 400; color: var(--terre); }
@keyframes signal-champ { 30% { border-color: var(--terre); box-shadow: 0 0 0 5px rgba(var(--terre-rgb), 0.16); } }

/* -- Retour en haut de page (bouton posé par le script) ---------------------- */
.retour-haut {
  position: fixed; z-index: 30;
  right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1.5px solid var(--vert-fonce); border-radius: 50%;
  background: var(--creme-carte); color: var(--vert-fonce);
  box-shadow: 0 6px 18px -8px rgba(var(--encre-rgb), 0.45);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms, background-color 180ms ease;
}
.retour-haut--visible { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 200ms ease, background-color 180ms ease; }
.retour-haut:hover { background: var(--pousse); }
.retour-haut:focus-visible { outline: 3px solid var(--terre); outline-offset: 3px; }
@media print { .retour-haut { display: none; } }

/* Pied de page : « Siège social » au-dessus de l'adresse. */
.pied__etiquette { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
/* L'en-tête collant ne doit masquer ni la cible d'une ancre ni l'élément qui
   reçoit le focus au clavier (WCAG 2.4.11). */
html { scroll-padding-top: 96px; }
@keyframes signal { 30% { border-color: var(--terre); box-shadow: 0 0 0 5px rgba(var(--terre-rgb), 0.12), var(--ombre-carte); } }

/* -- Apparitions au défilement ------------------------------------------- */
/* Classes posées par le script uniquement, et seulement sur ce qui est
   encore sous la ligne de flottaison : rien de ce qui est déjà à l'écran
   n'est jamais masqué. */
.a-reveler { opacity: 0; transform: translateY(14px); }
.a-reveler.revele { opacity: 1; transform: none; transition: opacity var(--duree-apparition) var(--ease-organique), transform var(--duree-apparition) var(--ease-organique); }

/* Images chargées en différé : elles arrivent en fondu au lieu d'apparaître d'un coup. */
.img-attente { opacity: 0; }
.img-apparait { animation: fondu 500ms var(--ease-douce) both; }
@keyframes fondu { from { opacity: 0; } }

/* -- Tracés : filets et dessins au trait ----------------------------------- */
/* Masqués avant le premier affichage pour ne jamais clignoter. La requête
   « scripting » garantit qu'un script existe pour les révéler ; s'il ne se
   charge pas, un filet de sécurité les fait réapparaître après 2,5 s. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  svg[data-trace]:not(.trace-pret) { opacity: 0; }
  .filet { transform: scaleX(0); transform-origin: left center; }

  .filet.trace-visible { transform: scaleX(1); transition: transform 900ms var(--ease-organique) 150ms; }

  :root:not(.mouvement) svg[data-trace] { animation: secours-dessin 0.6s ease 2.5s forwards; }
  :root:not(.mouvement) .filet { animation: secours-filet 0.6s ease 2.5s forwards; }
}
@keyframes secours-dessin { to { opacity: 1; } }
@keyframes secours-filet { to { transform: scaleX(1); } }

/* -- Parallaxe -------------------------------------------------------------- */
/* Grandes photos d'ouverture : l'image glisse de quelques pixels dans son
   cadre pendant le défilement, ce qui donne de la profondeur sans rien
   déplacer d'autre. Calculée par le navigateur lui-même, hors du fil
   principal ; les navigateurs qui ne le savent pas font simplement sans. */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  @supports (animation-timeline: view()) {
    /* La progression suit la position du cadre dans la fenêtre. (La mesurer
       sur l'image elle-même ne marcherait pas : un cadre en overflow: hidden
       est son propre conteneur de défilement, immobile.) */
    .entete-page__visuel { view-timeline: --cadre block; }
    .entete-page__visuel > img {
      scale: 1.08;
      animation: parallaxe-photo linear both;
      animation-timeline: --cadre;
    }
  }
}
@keyframes parallaxe-photo { from { translate: 0 -3.5%; } to { translate: 0 3.5%; } }

/* -- Au curseur --------------------------------------------------------------- */
/* Une lumière douce suit le pointeur sur les vignettes cliquables, comme un
   rayon de soleil : elle confirme où l'on se trouve. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .carte-pole__image::after, .carte-projet__visuel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(200px circle at var(--lumiere-x, 50%) var(--lumiere-y, 30%), rgba(255, 238, 200, 0.4), rgba(255, 238, 200, 0.14) 35%, transparent 65%);
    opacity: 0;
    transition: opacity 400ms var(--ease-douce);
  }
  .carte-pole:hover .carte-pole__image::after, .carte-projet:hover .carte-projet__visuel::after { opacity: 1; }
  .carte-projet__statut { z-index: 1; }
}

/* -- Accessibilité ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .entete, .pied, .lien-evitement, .nav-repli { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .panneau { box-shadow: none; }
  .a-reveler, .img-attente { opacity: 1 !important; transform: none !important; }
  svg[data-trace], svg[data-trace] path, svg[data-trace] circle { opacity: 1 !important; }
  svg[data-trace] path { stroke-dashoffset: 0 !important; }
}

/* ==========================================================================
   Ajustements propres à WordPress, ajoutés à la fin de site.css.
   Le reste de la feuille vient tel quel de src/styles/global.css.
   ========================================================================== */

/* .wp-site-blocks joue le rôle de .page sur Astro. */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; overflow-x: clip; }
.wp-site-blocks > .contenu-principal { flex: 1 0 auto; }
/* Sans poids (:where) : les règles du site, comme « * + .bande », gardent la main. */
:where(.wp-site-blocks, .contenu-page) > * { margin-block: 0; }

/* La barre d'administration (connecté) ne doit pas cacher l'en-tête collant. */
.admin-bar .entete { top: var(--wp-admin--admin-bar--height, 0px); }

/* Marges ponctuelles reprises de l'Astro (sans réglage de marge dans l'éditeur). */
.marge-14 { margin-top: 14px; }
.marge-18 { margin-top: 18px; }
.marge-22 { margin-top: 22px; }
.marge-26 { margin-top: 26px; }
.marge-30 { margin-top: 30px; }
.marge-34 { margin-top: 34px; }

/* Les groupes de WordPress n'ajoutent aucun espacement propre. */
.wp-block-group { box-sizing: border-box; }

/* Horaire d'un rendez-vous dans l'agenda (inc/pages.php). */
.s-agenda-horaire { font-weight: 400; color: var(--pierre); }

/* ==========================================================================
   Actualités (inc/actualites.php, patterns/actualite-*.php)
   ========================================================================== */

/* Le texte d'une actualité : photos, galerie, légendes. */
.actualite-texte .wp-block-image { margin-inline: 0; }
.actualite-texte .wp-block-image img { width: 100%; height: auto; border-radius: 20px; }
.actualite-texte figcaption { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--pierre); }
/* Galerie : sa grille vient d'ici (les règles de disposition de WordPress sont coupées, voir editeur.php). */
.actualite-texte .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-inline: 0; }
.actualite-texte .wp-block-gallery.has-nested-images > figure.wp-block-image { width: auto !important; max-width: none; margin: 0 !important; }
.actualite-texte .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.actualite-texte .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { margin: 0; padding: 26px 10px 8px; border-radius: 0 0 14px 14px; font-size: 13.5px; color: #FFFFFF; }
.actualite-texte .chapo { color: var(--vert-fonce); }
.actualite-texte .encadre { margin-top: 1.6em; }
.actualite-texte .encadre + * { margin-top: 1.6em; }

/* Bloc « Rendez-vous » d'une annonce. */
.rendez-vous { border-left: 4px solid var(--terre); }
.rendez-vous > * + * { margin-top: 8px; }
.rendez-vous .surtitre + * { margin-top: 10px; }
.rendez-vous__quand { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 26px); line-height: 1.25; letter-spacing: -0.012em; color: var(--vert-fonce); }
.rendez-vous__quand time { display: inline-block; }
.rendez-vous__quand time::first-letter { text-transform: uppercase; }
.rendez-vous__horaire { display: block; margin-top: 4px; font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--terre); }
.rendez-vous__lieu { font-size: 16.5px; line-height: 1.5; color: var(--pierre); }
.rendez-vous .boutons { margin-top: 18px; }
.rendez-vous--passe { border-left-color: var(--contour-champ); background: var(--creme-bande); }
.rendez-vous--passe .surtitre { color: var(--pierre); }
.rendez-vous--a-remplir { border-style: dashed; border-left-style: solid; }

/* « Le bilan » d'un récit : des pastilles. */
.prose ul.bilan { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 0; list-style: none; }
.prose ul.bilan li { margin: 0; padding: 9px 18px; border-radius: 999px; background: var(--pousse-pale); color: var(--vert-fonce); font-size: 16.5px; font-weight: 700; line-height: 1.35; }

/* Encadré final d'un appel. */
.appel-encadre .boutons { margin-top: 16px; }

/* Colonne de droite : le projet de l'actualité. */
.actualite-projet > * + * { margin-top: 10px; }
.actualite-projet .surtitre + .titre-4 { margin-top: 8px; }
.actualite-projet p:not(.surtitre) { font-size: 16.5px; line-height: 1.55; color: var(--encre); }

/* Cartes : rubrique ou date du rendez-vous en pastille. */
.statut--rubrique { color: var(--vert); }
.statut--a-venir { color: var(--terre); }
.carte-actualite .carte-projet__meta { order: -1; margin: 0 0 6px; }

/* Liste : filtres par rubrique et pages. */
.sommaire.filtres { margin-top: 0; }
.sommaire a[aria-current] { border-color: var(--vert-fonce); background: var(--vert-fonce); color: var(--creme); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--ligne); }
.pagination__position { font-size: 15.5px; color: var(--pierre); }

/* Nouvelles d'un projet : le titre mène à l'actualité. */
.nouvelles h3 a { color: inherit; text-decoration: none; }
.nouvelles h3 a:hover { color: var(--terre); text-decoration: underline; text-decoration-thickness: 1.5px; }
.agenda__titre a { color: inherit; }
.agenda__titre a:hover { color: var(--terre); }

/* Menu : avec « Actualités », la pilule passe de 570 à 675 px et ne tient plus
   à côté du nom et de « Nous rejoindre » à partir de 1020 px. Entre 1020 et
   1120 px, on garde donc le bouton « Menu » (mesuré : tout tient sur une ligne
   à 1120 px). */
@media (min-width: 1020px) and (max-width: 1119.98px) {
  .nav-large { display: none; }
  .entete__marque { margin-right: auto; }
  .nav-repli { display: block; }
  .entete__appel { display: none; }
}

/* Vidéos YouTube (inc/videos.php) : vignette copiée sur le site et bouton
   « Lire » ; le lecteur de YouTube ne se charge qu'au clic. */
.lecteur-video { max-width: 960px; }
.prose .lecteur-video { margin-block: 1.6em; }
.lecteur-video__vignette, .lecteur-video__cadre { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--vert-fonce); color: var(--creme); text-decoration: none; }
.lecteur-video__vignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-organique), filter 400ms var(--ease-organique); }
.lecteur-video__vignette::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--encre-rgb), 0) 45%, rgba(var(--encre-rgb), 0.45)); pointer-events: none; }
.lecteur-video__bouton { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px 14px 18px; border-radius: 999px; background: var(--creme); color: var(--encre); font-weight: 700; font-size: 17px; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(var(--encre-rgb), 0.6); transition: background-color var(--duree-survol) ease, color var(--duree-survol) ease, transform var(--duree-survol) var(--ease-organique); }
.lecteur-video__bouton svg { color: var(--terre); transition: color var(--duree-survol) ease; }
.lecteur-video__vignette:hover .lecteur-video__bouton, .lecteur-video__vignette:focus-visible .lecteur-video__bouton { background: var(--terre); color: var(--creme); transform: translate(-50%, -50%) scale(1.04); }
.lecteur-video__vignette:hover .lecteur-video__bouton svg, .lecteur-video__vignette:focus-visible .lecteur-video__bouton svg { color: var(--creme); }
.lecteur-video__vignette:hover img { transform: scale(1.02); filter: saturate(1.05); }
.lecteur-video__vignette:focus-visible { outline-offset: -4px; border-radius: 0; }
@media (prefers-reduced-motion: reduce) {
  .lecteur-video__vignette img, .lecteur-video__bouton { transition: none; }
  .lecteur-video__vignette:hover img { transform: none; }
}

/* Généré par wordpress/convertir.mjs : styles écrits dans les pages Astro. */
.s-0c3962 { font-size: 16px !important; line-height: 1.6 !important; }
.s-0dc91c { margin-top: 14px !important; }
.s-0de1f9 { margin-top: 20px !important; }
.s-2a8498 { font-size: 17.5px !important; }
.s-34fa9e { object-position: 50% 25% !important; }
.s-3ee44d { max-width: 62ch !important; margin-top: 20px !important; }
.s-437eb1 { margin-top: clamp(36px, 5vw, 52px) !important; }
.s-44931f { display: flex !important; align-items: center !important; gap: 18px !important; }
.s-4554f3 { color: var(--encre) !important; font-size: 17.5px !important; line-height: 1.65 !important; }
.s-4de99d { margin-top: 16px !important; }
.s-555f60 { max-width: 56ch !important; }
.s-5bcd7a { margin-top: 12px !important; }
.s-5c7c85 { object-position: 50% 45% !important; }
.s-68ef8e { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)) !important; }
.s-6a2215 { margin-top: 22px !important; }
.s-734223 { align-items: center !important; }
.s-745808 { margin-top: 14px !important; font-size: 15px !important; }
.s-84dadb { color: var(--pierre) !important; }
.s-8ced3a { margin-top: 10px !important; }
.s-951d83 { object-position: 50% 8% !important; }
.s-95c990 { object-position: 70% center !important; }
.s-9d33bf { margin-top: 30px !important; text-align: center !important; }
.s-ad67f1 { display: flex !important; flex-direction: column !important; }
.s-b0b9f2 { margin-top: 26px !important; }
.s-b861c5 { margin-top: 28px !important; }
.s-bbeeb4 { margin-top: auto !important; padding-top: 22px !important; }
.s-bcb7d3 { object-position: 50% 45% !important; transform: scaleX(-1) !important; }
.s-d20a04 { color: var(--encre) !important; }
.s-d256d0 { margin-top: 30px !important; }
.s-d9f2d1 { margin-top: 26px !important; justify-content: center !important; }
.s-dd305a { margin-top: 10px !important; font-size: 15px !important; }
.s-e0cb13 { max-width: 62ch !important; }
.s-e9b18b { max-width: 62ch !important; margin-top: -10px !important; margin-bottom: 30px !important; }
.s-eaabcf { object-position: 50% 30% !important; }
.s-ebe6df { max-width: 62ch !important; margin-top: 26px !important; }
.s-f0debb { padding: clamp(24px, 3.4vw, 40px) !important; }
.s-fc696d { margin-top: 18px !important; }
.s-fcd392 { object-position: 50% 20% !important; }
