/* Mise en page du modèle Racines. Les couleurs et les polices se changent dans theme.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 400 clamp(1rem, .96rem + .22vw, 1.14rem)/1.65 var(--police-texte);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--creme); }
:focus-visible { outline: 3px solid var(--ocre-fonce); outline-offset: 3px; border-radius: 6px; }
.accueil :focus-visible, .aider :focus-visible, .pied :focus-visible, .entete:not(.is-scrolled) :focus-visible { outline-color: var(--ocre-clair); }
[id] { scroll-margin-top: 4.5rem; }

.evitement { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--accent); color: var(--creme); border-radius: 10px; }
.evitement:focus { top: 1rem; }

/* ---- Éléments communs ---- */
.surtitre { font: 700 .78rem/1.35 var(--police-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--ocre-fonce); }
.titre-geant { font: 600 clamp(2.5rem, 5.2vw, 4.6rem)/1.04 var(--police-titre); letter-spacing: -.025em; font-variation-settings: "opsz" 144, "SOFT" 100; }
.titre-section { font: 600 clamp(2rem, 4.2vw, 3.5rem)/1.06 var(--police-titre); letter-spacing: -.02em; font-variation-settings: "opsz" 144, "SOFT" 100; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.3rem;
  padding: .95rem 1.8rem; border: 0; border-radius: 1.7rem 1.7rem 1.7rem .5rem; cursor: pointer;
  background: var(--accent); color: var(--creme); font: 600 1rem/1.1 var(--police-texte);
  transition: background .3s, border-radius .4s, box-shadow .4s;
}
.bouton:hover { background: var(--foret); border-radius: 1.7rem; box-shadow: 0 14px 30px -14px rgba(18, 51, 31, .6); }
.bouton-ocre { background: var(--ocre-clair); color: var(--texte); }
.bouton-ocre:hover { background: var(--creme); }
.bouton-petit { min-height: 2.75rem; padding: .6rem 1.2rem; font-size: .92rem; }
.lien-fleche { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; box-shadow: inset 0 -1.5px 0 currentColor; transition: gap .3s; }
.lien-fleche::after { content: "→"; transition: transform .3s; }
.lien-fleche:hover::after { transform: translateX(6px); }

.section-tete { max-width: var(--largeur); margin: 0 auto clamp(2.5rem, 6vh, 4rem); display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; }
.section-tete .surtitre { grid-column: 1 / -1; }
.section-tete > p:last-child { color: var(--texte-doux); max-width: 46ch; }

/* ---- Écran de chargement ---- */
.chargement { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: .6rem; background: var(--fond); }
.chargement svg { width: 72px; height: 90px; overflow: visible; }
.pousse-tige { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: racines-trace .7s cubic-bezier(.6, 0, .2, 1) forwards; }
.pousse-feuille { fill: var(--accent); opacity: 0; animation: racines-eclot .5s .45s cubic-bezier(.2, .8, .2, 1) forwards; }
.pousse-droite { fill: var(--accent-2); animation-delay: .6s; }
.chargement-mot { font: 600 1.6rem/1 var(--police-titre); letter-spacing: -.02em; color: var(--accent); }
@keyframes racines-trace { to { stroke-dashoffset: 0; } }
@keyframes racines-eclot { from { opacity: 0; } to { opacity: 1; } }

/* ---- En-tête : clair sur la photo d'accueil, sombre sur fond crème dès que la page défile ---- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(1.2rem, 4vw, 3rem); color: var(--creme);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), background .4s, color .4s, box-shadow .4s;
}
/* Sans JavaScript, l'en-tête ne suit pas la page : son texte clair serait illisible sur les sections crème. */
html:not(.gm) .entete { position: absolute; }
.entete.is-scrolled { color: var(--texte); background: rgba(245, 237, 220, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--trait); }
.entete.is-hidden { transform: translateY(-110%); }
.logo { margin-right: auto; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font: 600 1.55rem/1 var(--police-titre); letter-spacing: -.02em; }
.logo svg { width: 1.3rem; height: 1.3rem; fill: var(--ocre-clair); transition: fill .4s; }
.entete.is-scrolled .logo svg { fill: var(--accent); }
.menu { display: flex; gap: 1.9rem; font-size: .97rem; font-weight: 500; }
.menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 2px; border-radius: 2px; background: var(--ocre-clair); transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; background: none; cursor: pointer; position: relative; color: inherit; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s, top .4s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---- Accueil : grande photo, voile vert, collines en vagues ---- */
.accueil { --p: .5; position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 8rem clamp(1.2rem, 4vw, 3rem) 32vh; color: var(--creme); }
.accueil-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--foret); }
.accueil-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; transform: scale(calc(1 + var(--p) * .1)); }
.accueil-fond { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 51, 31, .92) 0, rgba(18, 51, 31, .76) 46%, rgba(18, 51, 31, .2) 76%, rgba(18, 51, 31, .1) 100%), linear-gradient(180deg, rgba(18, 51, 31, .55) 0, rgba(18, 51, 31, 0) 28%); }
.accueil-fond::after { content: ""; position: absolute; inset: auto 0 0 0; height: 9vh; background: linear-gradient(180deg, rgba(245, 237, 220, 0), var(--fond)); }
.accueil-fond .accueil-feuilles { position: absolute; inset: 0; opacity: .75; }
.accueil-fond .accueil-collines { position: absolute; inset: auto 0 0 0; height: 38vh; }
.accueil-texte { width: 100%; max-width: var(--largeur); margin: 0 auto; display: grid; justify-items: start; gap: 1.3rem; text-shadow: 0 1px 22px rgba(18, 51, 31, .6); }
.accueil-texte .surtitre { color: var(--ocre-clair); max-width: 34rem; }
.accueil-texte .titre-geant { max-width: 9.6em; }
/* Le trait sous « l'ombre » se trace quand le titre apparaît. */
.souligne { padding-bottom: .06em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C40 3 80 3 112 7s58 4 85-2' fill='none' stroke='%23e3a54c' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .22em; }
.gm .souligne { background-size: 0% .22em; transition: background-size .9s cubic-bezier(.2, .8, .2, 1) .8s; }
.gm .gm-in .souligne { background-size: 100% .22em; }
.accueil-chapo { max-width: 33rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.accueil-saison { font-size: .98rem; color: rgba(245, 237, 220, .85); }
.accueil-saison strong { display: block; font: 600 clamp(1.4rem, 2.2vw, 1.9rem)/1.2 var(--police-titre); letter-spacing: -.01em; color: var(--ocre-clair); }
.accueil-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.8rem; margin-top: .4rem; text-shadow: none; }
.accueil-actions .lien-fleche { text-shadow: 0 1px 18px rgba(18, 51, 31, .7); }

/* ---- Notre impact : l'arbre qui pousse (animation signature) ----
   La section est haute (340vh) seulement quand le moteur tourne ; son cadre reste collé à l'écran et --p (0 à 1)
   trace les racines, le tronc, les branches, puis ouvre les feuilles par paliers. Sans JavaScript : --p vaut 1, l'arbre est entier. */
.pousse { --p: 1; position: relative; }
.gm .pousse { height: 340vh; }
.pousse-cadre { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; max-width: calc(var(--largeur) + 6rem); margin: 0 auto; padding: 5.5rem clamp(1.2rem, 4vw, 3rem) 2rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.gm .pousse-cadre { height: 100vh; height: 100svh; }
.pousse-arbre { position: relative; height: min(84vh, 780px); }
.pousse-arbre::before { content: ""; position: absolute; left: 50%; top: 42%; width: min(82%, 62vh); max-height: 96%; aspect-ratio: 1; border-radius: 50%; background: var(--fond-2); transform: translate(-50%, -50%); }
.pousse-tete, .pousse-chiffres { position: relative; z-index: 1; }
.arbre {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  --k-racines: clamp(0, var(--p) * 9, 1);
  --k-tronc: clamp(0, (var(--p) - .07) * 3.7, 1);
  --k-b1: clamp(0, (var(--p) - .30) * 6.5, 1);
  --k-b2: clamp(0, (var(--p) - .37) * 6.5, 1);
  --k-b3: clamp(0, (var(--p) - .43) * 6.5, 1);
  --k-rameaux: clamp(0, (var(--p) - .52) * 8, 1);
}
.sol { fill: none; stroke: var(--trait); stroke-width: 3; stroke-linecap: round; }
.trace { --k: 1; fill: none; stroke: var(--bois); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: calc((1 - var(--k)) * 1px); opacity: clamp(0, var(--k) * 30, 1); }
.t-racine { --k: var(--k-racines); stroke-width: 8; stroke-opacity: .6; }
.t-radicelle { --k: clamp(0, (var(--p) - .05) * 12, 1); stroke-width: 5; stroke-opacity: .6; }
.t-pied { --k: clamp(0, (var(--p) - .07) * 9, 1); stroke-width: 30; }
.t-tronc { --k: var(--k-tronc); stroke-width: 22; }
.t-b1 { --k: var(--k-b1); stroke-width: 12; }
.t-b2 { --k: var(--k-b2); stroke-width: 10; }
.t-b3 { --k: var(--k-b3); stroke-width: 14; }
.t-rameau { --k: var(--k-rameaux); stroke-width: 5.5; }
/* Feuilles : chaque feuille grandit depuis son attache ; --debut fixe le palier, --d décale un peu chaque feuille. */
.f { --debut: .6; --d: 0; transform-origin: 0 0; transform: scale(clamp(0, (var(--p) - var(--debut) - var(--d)) * 11, 1)); }
.p1 { --debut: .60; }
.p2 { --debut: .70; }
.p3 { --debut: .80; }
.d1 { --d: .025; }
.d2 { --d: .05; }
.d3 { --d: .075; }
.v1 { fill: #4f8f52; }
.v2 { fill: var(--accent); }
.v3 { fill: var(--feuille); }
.oc { fill: var(--accent-2); }
.pousse-texte { display: grid; gap: clamp(1.2rem, 3vh, 2rem); }
.pousse-tete { display: grid; gap: .8rem; }
.pousse-chiffres { display: grid; }
.pousse-chiffre { --k: 1; position: relative; display: grid; grid-template-columns: 11rem 1fr; column-gap: 1.2rem; align-items: center; padding: clamp(.8rem, 2vh, 1.2rem) 0; border-top: 1px solid var(--trait); color: var(--texte-doux); font-size: .97rem; line-height: 1.45; }
.pousse-chiffre::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent-2); transform: scaleX(var(--k)); transform-origin: left; }
.gm .pousse-chiffre:nth-child(1) { --k: clamp(0, (var(--p) - .07) * 8, 1); }
.gm .pousse-chiffre:nth-child(2) { --k: clamp(0, (var(--p) - .32) * 8, 1); }
.gm .pousse-chiffre:nth-child(3) { --k: clamp(0, (var(--p) - .60) * 8, 1); }
.gm .pousse-chiffre > * { opacity: calc(.4 + var(--k) * .6); }
.pousse-nombre { font: 600 clamp(2.2rem, 3.4vw, 3.2rem)/1 var(--police-titre); letter-spacing: -.03em; color: var(--accent); white-space: nowrap; }
.pousse-chiffre strong { color: var(--texte); font-weight: 700; }

/* ---- Projets ---- */
.projets { padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 4vw, 3rem) clamp(5rem, 12vh, 9rem); }
.projets-liste { max-width: var(--largeur); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.projets-liste > li { display: flex; }
.projet { --p: 1; --avance: .5; flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); overflow: hidden; transition: box-shadow .4s, border-color .4s; }
.projet:hover { border-color: rgba(31, 92, 61, .4); box-shadow: 0 30px 50px -34px rgba(18, 51, 31, .5); }
.projet-image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--fond-2); }
.projet-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.projet:hover .projet-image img { transform: scale(1.05); }
.projet-texte { flex: 1; display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.5rem 1.6rem; }
.projet-lieu { font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ocre-fonce); }
.projet h3 { font: 600 clamp(1.4rem, 2vw, 1.8rem)/1.14 var(--police-titre); letter-spacing: -.015em; }
.projet-texte > p:not([class]) { color: var(--texte-doux); font-size: .97rem; }
/* La barre se remplit quand la carte entre dans l'écran : --avance est la part réalisée, --p vient du moteur. */
.jauge { margin-top: auto; height: 12px; border-radius: 99px; background: var(--fond-2); overflow: hidden; }
.jauge span { display: block; height: 100%; width: calc(var(--avance) * clamp(0, (var(--p) - .15) * 3.2, 1) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), #5d9a57); }
.projet-avance { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; font-size: .9rem; color: var(--texte-doux); }
.projet-avance strong { font: 600 1.7rem/1 var(--police-titre); color: var(--accent); }
.projet-fin { font-size: .86rem; color: var(--texte-doux); }

/* ---- Comment aider ---- */
.aider { padding: clamp(1.2rem, 3vw, 2.5rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem, 10vh, 7rem); border-radius: clamp(28px, 5vw, 64px); background: var(--foret); color: var(--creme); }
.aider-photo { --p: .5; position: relative; max-width: calc(var(--largeur) + 4rem); margin: 0 auto clamp(3rem, 8vh, 5rem); }
.aider-photo-cadre { aspect-ratio: 21 / 9; min-height: 240px; border-radius: clamp(18px, 3.4vw, 44px); overflow: hidden; background: var(--foret-2); }
.aider-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 35% 60%; transform: scale(calc(1.02 + var(--p) * .12)); }
.aider-photo figcaption { position: absolute; left: clamp(.8rem, 2vw, 1.6rem); bottom: clamp(.8rem, 2vw, 1.6rem); max-width: 25rem; padding: .9rem 1.1rem; border-radius: 18px 18px 18px 5px; background: var(--creme); color: var(--texte); font-size: .92rem; line-height: 1.45; }
.aider .surtitre { color: var(--ocre-clair); }
.aider .section-tete > p:last-child { color: rgba(245, 237, 220, .78); }
.aider-liste { max-width: var(--largeur); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); counter-reset: facon; }
.facon { counter-increment: facon; position: relative; display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.5rem, 2.6vw, 2.2rem); border-radius: var(--rayon); background: var(--foret-2); }
.facon::after { content: "0" counter(facon); position: absolute; top: 1.5rem; right: 1.6rem; font: 500 1rem/1 var(--police-titre); color: var(--ocre-clair); }
.facon-icone { width: 60px; height: 60px; fill: none; stroke: var(--ocre-clair); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.facon h3 { font: 600 clamp(1.7rem, 2.6vw, 2.2rem)/1.05 var(--police-titre); letter-spacing: -.02em; }
.facon p { color: rgba(245, 237, 220, .78); font-size: .98rem; }
.facon .facon-fait { padding-top: .8rem; border-top: 1px solid rgba(245, 237, 220, .18); font-size: .9rem; color: var(--creme); }
.facon .lien-fleche { margin-top: auto; align-self: flex-start; color: var(--ocre-clair); }

/* ---- À l'école ---- */
.ecoles { max-width: var(--largeur); margin: 0 auto; padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 4vw, 3rem); display: grid; grid-template-columns: .82fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ecoles-image { position: relative; }
.arche { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--rayon) var(--rayon); overflow: hidden; background: var(--fond-2); }
.arche img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; }
.pastille { position: absolute; right: -3%; bottom: 7%; width: clamp(118px, 13vw, 160px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; padding: .8rem; text-align: center; background: var(--ocre-clair); color: var(--texte); font-size: .8rem; line-height: 1.25; box-shadow: 0 18px 40px -18px rgba(18, 51, 31, .6); }
.pastille span { display: block; transform: rotate(-7deg); }
.pastille strong { display: block; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1 var(--police-titre); letter-spacing: -.02em; margin-bottom: .15rem; }
.ecoles-texte { display: grid; gap: 1.3rem; }
.ecoles-texte > p:not(.surtitre) { color: var(--texte-doux); max-width: 50ch; }
.ecoles-etapes { display: grid; counter-reset: etape; }
.ecoles-etapes li { counter-increment: etape; position: relative; padding: 1rem 0 1rem 3.3rem; border-top: 1px solid var(--trait); color: var(--texte-doux); }
.ecoles-etapes li::before { content: counter(etape); position: absolute; left: 0; top: .95rem; width: 2.3rem; height: 2.3rem; display: grid; place-content: center; border-radius: 50% 50% 50% 8px; background: var(--accent); color: var(--creme); font: 600 1.05rem/1 var(--police-titre); }
.ecoles-etapes strong { display: block; color: var(--texte); font-weight: 700; }
.temoignage { padding: 1.5rem 1.6rem; border-radius: var(--rayon) var(--rayon) var(--rayon) 6px; background: var(--fond-2); }
.temoignage blockquote { font: 500 clamp(1.2rem, 1.8vw, 1.5rem)/1.32 var(--police-titre); letter-spacing: -.01em; }
.temoignage figcaption { margin-top: .9rem; font-size: .88rem; color: var(--texte-doux); }
.temoignage sup { font-size: .7em; line-height: 0; }

/* ---- Partenaires ---- */
.partenaires { padding: clamp(2.4rem, 6vh, 3.6rem) 0; border-top: 1px solid var(--trait); }
.partenaires-titre { margin-bottom: 1.5rem; padding-inline: clamp(1.2rem, 4vw, 3rem); text-align: center; font: 700 .78rem/1.35 var(--police-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--ocre-fonce); }
.partenaires-bandeau { --mq-gap: clamp(2.2rem, 5vw, 4.5rem); }
.partenaires-bandeau li { display: inline-flex; align-items: center; gap: .7rem; white-space: nowrap; font: 600 clamp(1.15rem, 2vw, 1.55rem)/1.2 var(--police-titre); letter-spacing: -.01em; color: var(--texte); }
.partenaires-bandeau li:nth-child(even) { font: 800 clamp(.9rem, 1.5vw, 1.15rem)/1.2 var(--police-texte); letter-spacing: .1em; text-transform: uppercase; }
/* Petits signes dessinés qui tiennent lieu de logos. */
.partenaires-bandeau li::before { content: ""; flex: none; width: 1.5rem; height: 1.5rem; background: var(--accent); border-radius: 50%; }
.partenaires-bandeau li:nth-child(7n + 2)::before { border-radius: 0 100% 0 100%; background: var(--accent-2); }
.partenaires-bandeau li:nth-child(7n + 3)::before { border-radius: 999px 999px 0 0; }
.partenaires-bandeau li:nth-child(7n + 4)::before { border-radius: 4px; background: var(--bois); transform: rotate(45deg) scale(.8); }
.partenaires-bandeau li:nth-child(7n + 5)::before { background: none; border: 5px solid var(--accent); }
.partenaires-bandeau li:nth-child(7n + 6)::before { border-radius: 0; background: var(--accent-2); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.partenaires-bandeau li:nth-child(7n)::before { border-radius: 100% 0 100% 0; background: #5d9a57; }

/* ---- Agir : formulaire ---- */
.agir { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 4vw, 3rem) 27vh; background: var(--fond-2); }
.agir-fond { position: absolute; inset: auto 0 0 0; z-index: -1; height: 30vh; }
.agir-fond::after { content: ""; position: absolute; inset: auto 0 0 0; height: 9vh; background: linear-gradient(180deg, rgba(18, 51, 31, 0), var(--foret)); }
.agir-grille { max-width: var(--largeur); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.agir-texte { display: grid; gap: 1.4rem; }
.agir-texte > p:not(.surtitre) { color: var(--texte-doux); max-width: 46ch; }
.agir-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--rayon) 110px var(--rayon) 110px; overflow: hidden; background: var(--fond); }
.agir-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; }
.agir-reperes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; font-size: .9rem; line-height: 1.4; color: var(--texte-doux); }
.agir-reperes strong { display: block; margin-bottom: .25rem; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1 var(--police-titre); letter-spacing: -.02em; color: var(--accent); white-space: nowrap; }
.agir-colonne { display: grid; gap: 1.6rem; }
.formulaire { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--carte); box-shadow: 0 34px 60px -44px rgba(18, 51, 31, .55); }
.formulaire > label, .formulaire-ligne label, .choix legend { display: grid; gap: .45rem; font-size: .9rem; font-weight: 600; }
.choix legend { margin-bottom: .55rem; }
.formulaire-ligne { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
.optionnel { font-weight: 400; color: var(--texte-doux); }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire textarea {
  width: 100%; min-height: 3.1rem; padding: .8rem 1rem; border: 1.5px solid rgba(28, 43, 32, .32); border-radius: 12px;
  background: #fff; color: var(--texte); font: inherit; font-size: 1rem; font-weight: 400;
  transition: border-color .3s, box-shadow .3s;
}
.formulaire input[type="text"]:focus, .formulaire input[type="email"]:focus, .formulaire textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 92, 61, .18); }
.formulaire textarea { resize: vertical; }
.choix-liste { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix-option { position: relative; cursor: pointer; }
.choix-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choix-option span { display: inline-flex; align-items: center; min-height: 46px; padding: .5rem 1.1rem; border: 1.5px solid rgba(28, 43, 32, .32); border-radius: 999px 999px 999px 8px; font-size: .95rem; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.choix-option input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--creme); }
.choix-option input:focus-visible + span { outline: 3px solid var(--ocre-fonce); outline-offset: 3px; }
.formulaire .bouton { justify-self: start; margin-top: .2rem; }
.formulaire-note { font-size: .86rem; color: var(--texte-doux); }
.formulaire-etat { padding: .9rem 1rem; border-radius: 12px; background: rgba(31, 92, 61, .1); color: var(--accent); font-size: .95rem; font-weight: 600; }
.formulaire[data-state="error"] .formulaire-etat { background: rgba(170, 40, 30, .1); color: #8f2218; }
.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; font-size: .92rem; line-height: 1.5; }
.infos dt { margin-bottom: .3rem; font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ocre-fonce); }
.infos dd { overflow-wrap: anywhere; }

/* ---- Pied de page ---- */
.pied { background: var(--foret); color: var(--creme); padding: 0 clamp(1.2rem, 4vw, 3rem) 2rem; }
.pied-racines { display: block; width: 100%; height: clamp(80px, 11vw, 160px); fill: none; stroke: var(--ocre-clair); stroke-width: 2.6; stroke-linecap: round; opacity: .7; }
.pied-haut { max-width: var(--largeur); margin: 0 auto; padding: clamp(1.5rem, 5vh, 3rem) 0 clamp(2.5rem, 7vh, 4.5rem); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem 3rem; }
.pied-phrase { max-width: 15em; font: 500 clamp(1.9rem, 4.4vw, 3.6rem)/1.1 var(--police-titre); letter-spacing: -.02em; font-variation-settings: "opsz" 144, "SOFT" 100; }
.pied-phrase em { color: var(--feuille); }
.pied-bas { max-width: var(--largeur); margin: 0 auto; padding-top: 1.2rem; border-top: 1px solid rgba(245, 237, 220, .18); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 2rem; font-size: .86rem; color: rgba(245, 237, 220, .76); }
.pied-bas nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.pied-bas a { display: inline-flex; align-items: center; min-height: 44px; }
.pied-bas a:hover { color: var(--ocre-clair); }

/* ---- Écrans moyens et petits ---- */
@media (max-width: 1099px) {
  .accueil-fond { background: linear-gradient(90deg, rgba(18, 51, 31, .9) 0, rgba(18, 51, 31, .66) 100%), linear-gradient(180deg, rgba(18, 51, 31, .5) 0, rgba(18, 51, 31, 0) 30%); }
  .accueil-photo img { object-position: 24% 50%; }
}
@media (max-width: 899px) {
  .burger { display: block; }
  .entete .bouton-petit { display: none; }
  .menu {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: .6rem;
    padding: 6rem clamp(1.2rem, 4vw, 3rem) 3rem; background: var(--fond); color: var(--texte); min-height: 100vh; min-height: 100svh;
    font: 600 clamp(2.2rem, 9vw, 3.2rem)/1.1 var(--police-titre); letter-spacing: -.02em;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1), visibility .4s;
  }
  .menu a { align-self: flex-start; }
  .menu a::after { bottom: 0; background: var(--accent-2); }
  .menu-open .menu { opacity: 1; visibility: visible; transform: none; }
  .menu-open body { overflow: hidden; }
  /* Un en-tête flouté ou déplacé enfermerait le menu plein écran : on annule les deux quand le menu est ouvert. */
  .menu-open .entete { -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; background: none; box-shadow: none; color: var(--texte); }
  .menu-open .logo svg { fill: var(--accent); }
  .section-tete { grid-template-columns: 1fr; }
  /* L'arbre passe entre le titre et les chiffres, et prend la place qui reste dans l'écran. */
  .pousse-cadre { display: flex; flex-direction: column; justify-content: center; gap: .9rem; padding: 4.8rem clamp(1.2rem, 4vw, 3rem) 1.2rem; }
  .pousse-texte { display: contents; }
  .pousse-tete { order: 1; gap: .4rem; }
  .pousse-arbre { order: 2; flex: 1 1 0; width: 100%; height: auto; min-height: 38vh; }
  .gm .pousse-arbre { min-height: 0; }
  .pousse-chiffres { order: 3; }
  .pousse-tete .titre-section { font-size: clamp(1.6rem, 5.6vw, 2.4rem); }
  .pousse-chiffre { grid-template-columns: 6.4rem 1fr; column-gap: .9rem; padding: .55rem 0; font-size: .84rem; line-height: 1.35; }
  .pousse-nombre { font-size: 1.9rem; }
  .projets-liste, .aider-liste { grid-template-columns: 1fr; }
  .projets-liste { max-width: 34rem; }
  .ecoles, .agir-grille { grid-template-columns: 1fr; }
  .ecoles-image { max-width: 26rem; }
  .pastille { right: 0; }
}
@media (max-width: 620px) {
  .accueil { padding-top: 6.5rem; }
  .aider-photo figcaption { position: static; max-width: none; margin-top: .8rem; }
  .formulaire-ligne { grid-template-columns: 1fr; }
  .agir-reperes, .infos { grid-template-columns: 1fr; gap: .8rem; }
  .agir-reperes li { display: grid; grid-template-columns: 6.2rem 1fr; align-items: baseline; column-gap: .8rem; }
  .agir-reperes strong { margin: 0; }
  .agir-photo { border-radius: var(--rayon) 70px var(--rayon) 70px; }
}
/* Écrans très bas (téléphone à l'horizontale) : pas de section collée, l'arbre est montré entier. */
@media (max-height: 560px) {
  .pousse { --p: 1 !important; }
  .gm .pousse { height: auto; }
  .gm .pousse-cadre { height: auto; }
  .gm .pousse-arbre { min-height: 70vh; }
  .gm .pousse-chiffre { --k: 1 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .pousse-tige { animation: none; stroke-dashoffset: 0; }
  .pousse-feuille { animation: none; opacity: 1; }
  .accueil-photo img, .aider-photo img { transform: none; }
  .gm .souligne { transition: none; }
  .pousse { --p: 1 !important; }
  .gm .pousse { height: auto; }
  .gm .pousse-cadre { height: auto; }
  .gm .pousse-arbre { min-height: 38vh; }
  .gm .pousse-chiffre { --k: 1 !important; }
  .projet { --p: 1 !important; }
  .projet:hover .projet-image img { transform: none; }
}
