/*
Theme Name: IMPACTION
Description: Thème bloc sur mesure du Fonds de dotation IMPACTION, généré depuis la maquette HTML (site/construire_theme.py). Ne pas modifier à la main : retoucher la maquette et relancer le script.
Version: 1.3.1
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: impaction
*/

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/montserrat-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/montserrat-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/montserrat-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/montserrat-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/montserrat-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/montserrat-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/poppins-300-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/poppins-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/poppins-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/poppins-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/poppins-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/poppins-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/poppins-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Adaptations WordPress, avant la feuille de la maquette ---------- */
/* Les images de la médiathèque reçoivent des attributs width/height : sans ceci,
   ils l'emporteraient sur les aspect-ratio de la maquette. */
img { height: auto; }
/* Légendes : WordPress leur donne des marges et une taille par défaut. */
figure .wp-element-caption { margin: 0; font-size: inherit; color: inherit; text-align: inherit; }
figure.wp-block-table { margin: 0; }

/* IMPACTION — maquette d'accueil
   Registre : sans-serif géométrique (Montserrat titres, Poppins texte), fond blanc froid,
   palette du flyer : vert forêt en champ de couleur, terracotta en second,
   anthracite pour le texte. */

:root {
  --vert: #1B6134;               /* grands fonds, boutons */
  --vert-fonce: #134A27;
  --terracotta: #CB986F;         /* aplats et ruban décoratif */
  --terracotta-texte: #8E5B34;   /* terracotta assombri : textes sur fond blanc ou crème */
  --vert-profond: #0F3D1F;       /* vert très sombre : petits textes sur terracotta */
  --terracotta-clair: #E6C6A8;   /* terracotta éclairci : textes sur fond vert ou sombre */
  --vert-logo: #538600;          /* vert feuille du logo : petites touches seulement */
  --creme: #F5F5E8;
  --anthracite: #262626;
  --gris: #6B6F6C;
  --blanc: #FFFFFF;
  --titre: "Montserrat", "Arial Black", sans-serif;
  --texte: "Poppins", Arial, sans-serif;
  --marge: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--anthracite);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
.defs { position: absolute; }

/* ---------- Éléments communs ---------- */

.surtitre {
  margin: 0 0 18px;
  font-family: var(--texte);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-texte);
}
.titre-section {
  font-family: var(--titre);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -.01em;
  hyphens: none;
  text-wrap: balance;
}
.titre-section--clair { color: var(--blanc); }
.etiquette {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vert);
}
.bouton {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--vert);
  color: var(--blanc);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.bouton:hover { background: var(--vert-fonce); transform: translateY(-2px); }
.bouton--petit { padding: 11px 22px; font-size: 12px; }
.bouton--don { background: var(--terracotta); color: var(--anthracite); }
.bouton--don:hover { background: #BA855B; }
.don-mobile { display: none; }
.lien-fleche {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 3px;
}
.lien-fleche::after { content: " →"; }

/* ---------- En-tête ---------- */

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--marge);
}
.logo { display: block; }
.logo img { height: 72px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  padding: 8px 8px 8px clamp(18px, 2vw, 30px);
  border-radius: 999px;
  background: var(--blanc);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.nav a { white-space: nowrap; }
.nav a:not(.bouton) { font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a:not(.bouton):hover { color: var(--vert); }
.burger { display: none; }

/* ---------- 1 · Ouverture ---------- */

.hero {
  position: relative;
  min-height: max(760px, 100vh);
  padding: 0 var(--marge);
  display: grid;
  grid-template-columns: minmax(0, min(560px, calc(40vw - var(--marge) - 24px))) 1fr;
  grid-template-rows: 1fr auto;
}
.hero-visuel {
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 100%;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  clip-path: url(#forme-hero);
}
.hero-bande, .appel-bande {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero-bande path, .appel-bande path {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 34px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hero-texte {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-top: 150px;
}
.titre-hero {
  font-family: var(--titre);
  font-weight: 800;
  font-size: clamp(40px, 4.7vw, 70px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -.02em;
  hyphens: none;
  text-wrap: balance;
  margin-bottom: 30px;
}
.chapo { max-width: 470px; margin: 0 0 40px; font-size: 18px; color: #3c3f3d; }
.actions { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.hero .actions { gap: 16px 22px; }
.hero .actions .bouton { padding-left: 28px; padding-right: 28px; }
.chiffres {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  gap: clamp(24px, 4vw, 110px);
  max-width: calc(78vw - var(--marge));
  list-style: none;
  margin: 0;
  padding: 40px 0 56px;
}
.chiffres li { display: flex; align-items: center; gap: 14px; }
.chiffres strong {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1;
  color: var(--terracotta-texte);
  white-space: nowrap;
}
.chiffres span { font-size: 14px; line-height: 1.35; color: var(--gris); }

/* ---------- 2 · Fonctionnement ---------- */

.fonctionnement {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 60px;
  padding: 0 var(--marge) 120px;
}
.fonctionnement::before {          /* le champ de couleur, bord à bord */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 78%;
  background: var(--vert);
  z-index: 0;
}
.fonct-champ {
  position: relative;
  z-index: 1;
  grid-column: 1 / 7;
  padding: 110px 0 60px;
}
.fonct-intro { max-width: 470px; margin: 28px 0 0; color: rgba(255,255,255,.85); font-size: 17px; }
.fonct-photo {
  position: relative;
  z-index: 1;
  grid-column: 1 / 6;
  margin: 0;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.fonct-photo img { width: 100%; height: 440px; object-fit: cover; }
.fonct-carte {
  position: relative;
  z-index: 2;
  grid-column: 7 / 13;
  grid-row: 1 / 3;
  align-self: start;
  margin-top: -60px;            /* déborde au-dessus du champ vert */
  margin-left: -40px;
  padding: 56px 56px 44px;
  background: var(--blanc);
  box-shadow: 0 40px 80px rgba(0,0,0,.18);
}
.etapes { list-style: none; margin: 0; padding: 0; }
.etapes li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid #E3E6E4;
}
.etapes li:first-child { border-top: 0; padding-top: 0; }
.num { font-family: var(--titre); font-weight: 700; font-size: 22px; color: var(--terracotta-texte); line-height: 1.3; }
.etapes h3 { font-family: var(--texte); font-weight: 600; font-size: 19px; line-height: 1.35; margin-bottom: 4px; }
.etapes p:not(.ex) { margin: 0; font-size: 15px; color: var(--gris); }

.fonct-devise {
  position: absolute;
  z-index: 1;
  right: var(--marge);
  bottom: calc(22% + 70px);
  width: calc((100% - 2 * var(--marge)) * .5 - 24px);
  margin: 0;
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--terracotta-clair);
  text-wrap: balance;
}

/* ---------- 3 · Causes ---------- */

.causes { padding: 120px var(--marge) 140px; background: var(--creme); }
.causes-tete { margin-bottom: 56px; }
.causes-tete .titre-section { max-width: 720px; }
.causes-tete p:not(.ex) {
  max-width: 640px;
  margin: 28px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--terracotta);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--anthracite);
}
.causes-grille {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.causes-grille figure { margin: 0 0 18px; overflow: hidden; }
.causes-grille img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.causes-grille li:hover img { transform: scale(1.05); }
.causes-grille h3 { font-family: var(--texte); font-weight: 600; font-size: 17px; }
.causes-grille h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 12px; background: var(--vert-logo); }
.causes-grille p:not(.ex) { margin: 2px 0 0; font-size: 14px; color: var(--gris); }

/* ---------- 4 · Engagement ---------- */

.engagement {
  position: relative;
  overflow-x: clip;
  padding: 0 var(--marge) 150px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.engagement-geant {
  position: absolute;
  right: -0.08em;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-family: var(--titre);
  font-weight: 800;
  font-size: 37vw;
  line-height: .8;
  color: #EEF1EF;
  z-index: 0;
}
.engagement-photo {
  position: relative;
  z-index: 1;
  grid-column: 3 / 12;
  margin: 0;
}
.engagement-photo img { width: 100%; height: 580px; object-fit: cover; object-position: 50% 30%; }
.engagement-photo figcaption {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  text-align: center;
  font-family: var(--titre);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--blanc);
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
  text-wrap: balance;
}
.engagement-carte {
  position: relative;
  z-index: 2;
  grid-column: 1 / 6;
  grid-row: 1;
  align-self: end;
  margin-bottom: -70px;
  padding: 44px 46px;
  background: var(--vert);
  color: var(--blanc);
  box-shadow: 0 30px 60px rgba(0,0,0,.22);
}
.engagement-carte .etiquette { color: var(--terracotta-clair); }
.engagement-carte p:not(.ex) { margin: 0 0 24px; }
.montant {
  font-family: var(--titre);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1 !important;
  margin-bottom: 14px !important;
}
.engagement-carte .lien-fleche { color: var(--blanc); }

/* ---------- 5 · Fiscal ---------- */

.fiscal {
  background: var(--terracotta);
  padding: 120px var(--marge) 110px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.fiscal-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.taux {
  margin: 0 0 10px;
  font-family: var(--titre);
  font-weight: 800;
  font-size: clamp(72px, 9vw, 140px);
  line-height: .9;
  color: var(--vert-fonce);
}
.taux span { font-size: .45em; vertical-align: top; margin-left: 4px; }
.fiscal-bloc h3 { font-family: var(--titre); font-weight: 700; font-size: 18px; text-transform: uppercase; margin-bottom: 10px; }
.fiscal-bloc p:not(.ex):last-child { margin: 0; font-size: 15px; }
.fiscal-tete .bouton { margin-top: 36px; }
.fiscal-tete p:not(.ex) { margin: 20px 0 0; font-size: 15px; max-width: 320px; }

/* ---------- 6 · Appel ---------- */

.appel {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: 60% minmax(0, 1fr);
  padding: 0 var(--marge) 0 0;
}
.appel-visuel { position: absolute; top: 0; left: 0; width: 60%; height: 100%; }
.appel-visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; clip-path: url(#forme-appel); }
.appel-texte { grid-column: 2; align-self: center; max-width: 560px; padding: 100px 0 100px clamp(24px, 3vw, 56px); }
.appel-texte p:not(.ex):not(.surtitre) { margin: 24px 0 36px; color: #3c3f3d; }
.appel-texte .actions { gap: 28px; }
.appel-texte .credit-photo { margin: 40px 0 0; font-size: 11px; color: var(--gris); }
.appel-texte .credit-photo a { color: inherit; }

/* ==========================================================
   Pages intérieures — Qui sommes-nous
   ========================================================== */

.nav a:not(.bouton)[aria-current="page"] { color: var(--vert); box-shadow: inset 0 -2px 0 var(--terracotta); }
.etiquette--clair { color: var(--terracotta-clair); }

/* Ouverture de page : même dispositif que l'accueil, moins haut */
.hero--page { min-height: 640px; grid-template-rows: 1fr; }
.hero--page .hero-texte { padding: 170px 0 90px; }
.hero--page .titre-hero { font-size: clamp(38px, 4.4vw, 64px); }
.hero--page .chapo { margin-bottom: 0; }
.hero--page .hero-photo img { object-position: 50% 60%; }

/* Genèse : champ vert, carte blanche qui déborde */
.genese {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 0 var(--marge) 110px;
}
.genese::before {
  content: "";
  position: absolute;
  inset: 0 0 110px 0;
  background: var(--vert);
}
.genese-champ { position: relative; grid-column: 1 / 7; padding: 110px 0 40px; }
.genese-texte { max-width: 520px; margin-top: 30px; color: rgba(255,255,255,.88); }
.genese-texte p:not(.ex) { margin: 0 0 18px; }
.genese-carte {
  position: relative;
  z-index: 2;
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  align-self: end;
  margin-bottom: -110px;
  padding: 50px 48px 30px;
  background: var(--blanc);
  box-shadow: 0 40px 80px rgba(0,0,0,.18);
}
.valeurs { list-style: none; margin: 0; padding: 0; }
.valeurs li { padding: 22px 0; border-top: 1px solid #E3E6E4; }
.valeurs li:first-child { border-top: 0; padding-top: 0; }
.valeurs h3 {
  font-family: var(--titre); font-weight: 800; font-size: 22px;
  text-transform: uppercase; color: var(--vert); margin-bottom: 4px;
}
.valeurs p:not(.ex) { margin: 0; font-size: 15px; color: var(--gris); }
.genese-devise {
  position: relative;
  grid-column: 1 / 7;
  margin: 0;
  padding-bottom: 60px;
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(22px, 2.1vw, 30px); line-height: 1.25;
  text-transform: uppercase; color: var(--terracotta-clair);
  text-wrap: balance;
}

/* Fondateurs : chiffre géant en fond, trois cartes */
.fondateurs {
  position: relative;
  overflow-x: clip;
  padding: 180px var(--marge) 180px;
}
.fondateurs-geant {
  position: absolute;
  right: 2vw; top: 60px;
  margin: 0;
  font-family: var(--titre); font-weight: 800;
  font-size: 44vw; line-height: .8;
  color: #EEF1EF;
  z-index: 0;
}
.fondateurs-tete { position: relative; max-width: 640px; margin-bottom: 64px; }
.fondateurs-tete p:not(.ex) {
  margin: 28px 0 0; padding-left: 22px;
  border-left: 3px solid var(--terracotta);
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55;
}
.fondateurs-grille {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.fondateurs-grille li {
  padding: 40px 36px 36px;
  background: var(--blanc);
  box-shadow: 0 24px 50px rgba(0,0,0,.10);
}
.fondateurs-grille li:nth-child(2) { transform: translateY(40px); }
.monogramme {
  display: grid; place-items: center;
  width: 96px; height: 96px; margin-bottom: 26px;
  border-radius: 50%;
  background: var(--terracotta);
  font-family: var(--titre); font-weight: 800; font-size: 30px;
  color: var(--vert-fonce);
}
.fondateurs-grille h3 {
  font-family: var(--titre); font-weight: 800; font-size: 21px;
  text-transform: uppercase; line-height: 1.15;
}
.fondateurs-grille .role {
  margin: 8px 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--terracotta-texte);
}
.fondateurs-grille p:not(.ex):last-child { margin: 0; font-size: 15px; color: var(--gris); }

/* Approche : photo à gauche, principes à droite, fond crème */
.approche {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: 120px var(--marge);
  background: var(--creme);
}
.approche-photo { margin: 0; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.approche-photo img { width: 100%; height: 620px; object-fit: cover; object-position: 30% 50%; }
.approche-photo figcaption { margin: 0; padding: 8px 12px; font-size: 11px; color: var(--gris); background: var(--creme); }
.approche-photo figcaption a { color: inherit; }
.approche-intro { margin: 22px 0 0; max-width: 560px; font-size: clamp(17px, 1.3vw, 19px); color: var(--gris); }
.principes { list-style: none; margin: 40px 0 0; padding: 0; }
.principes li {
  display: grid; grid-template-columns: 64px 1fr; gap: 8px;
  padding: 24px 0; border-top: 1px solid #DCDCCB;
}
.principes h3 { font-family: var(--texte); font-weight: 600; font-size: 19px; line-height: 1.35; margin-bottom: 4px; }
.principes p:not(.ex) { margin: 0; font-size: 15px; color: var(--gris); }

/* Gouvernance : champ vert, parcours en quatre temps, instances superposées */
.gouvernance {
  padding: 120px var(--marge) 0;
  background: linear-gradient(var(--vert) 0 calc(100% - 120px), var(--blanc) 0);
  color: var(--blanc);
}
.gouvernance-tete { max-width: 760px; }
.gouvernance-tete p:not(.ex) { margin: 28px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.88); }
.parcours {
  list-style: none; margin: 70px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,.25);
}
.parcours li { padding: 30px 28px 10px 0; border-right: 1px solid rgba(255,255,255,.18); }
.parcours li + li { padding-left: 28px; }
.parcours li:last-child { border-right: 0; }
.parcours .num { color: var(--terracotta-clair); }
.parcours h3 { font-family: var(--texte); font-weight: 600; font-size: 18px; line-height: 1.35; margin: 10px 0 6px; }
.parcours p:not(.ex) { margin: 0; font-size: 14px; color: rgba(255,255,255,.78); }
.instances {
  display: grid; grid-template-columns: 7fr 5fr;
  margin-top: 80px;
  color: var(--anthracite);
}
.instance { padding: 46px 48px; box-shadow: 0 30px 60px rgba(0,0,0,.2); }
.instance p:not(.ex) { margin: 0; }
.instance--ca { background: var(--blanc); }
.instance--cac { position: relative; align-self: start; background: var(--terracotta); margin: 40px 0 -40px -30px; }
.instance--cac .etiquette { color: var(--vert-profond); }
.instance-chiffre {
  margin-bottom: 14px !important;
  font-family: var(--titre); font-weight: 800;
  font-size: clamp(30px, 3vw, 44px); line-height: 1;
  text-transform: uppercase; color: var(--vert);
}

/* Transparence */
.transparence {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
  padding: 170px var(--marge) 130px;
}
.transparence-tete p:not(.ex) { margin: 24px 0 32px; max-width: 460px; }
.documents { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.transparence-chiffres { list-style: none; margin: 0; padding: 0; }
.transparence-chiffres li {
  display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 30px;
  align-items: center;
  padding: 26px 0; border-top: 1px solid #E3E6E4;
}
.transparence-chiffres li:first-child { border-top: 0; padding-top: 0; }
.transparence-chiffres strong {
  font-family: var(--titre); font-weight: 800;
  font-size: clamp(36px, 4vw, 60px); line-height: 1;
  color: var(--terracotta-texte); white-space: nowrap;
}
.transparence-chiffres span { font-size: 15px; color: var(--gris); }

/* Deux chemins */
.chemins { display: grid; grid-template-columns: 1fr 1fr; }
.chemin {
  display: block;
  padding: 100px var(--marge);
  text-decoration: none;
  transition: filter .2s;
}
.chemin:hover { filter: brightness(1.05); }
.chemin .titre-section { margin-bottom: 36px; max-width: 460px; }
.chemin--don { background: var(--vert); color: var(--blanc); }
.chemin--don .surtitre { color: var(--terracotta-clair); }
.chemin--asso { background: var(--terracotta); color: var(--anthracite); }
.chemin--asso .surtitre { color: var(--vert-profond); }
.chemin--asso .lien-fleche { border-color: var(--vert-fonce); }

/* ==========================================================
   Pages intérieures — Faire un don
   ========================================================== */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav .bouton--don[aria-current="page"] { box-shadow: 0 0 0 3px var(--blanc), 0 0 0 5px var(--terracotta); }
/* Bouton des associations : même format que « Faire un don », entouré de vert */
.bouton--aide { background: transparent; color: var(--vert); box-shadow: inset 0 0 0 2px var(--vert); }
.bouton--aide:hover { background: var(--vert); color: var(--blanc); }
.nav .bouton--aide[aria-current="page"] { background: var(--vert); color: var(--blanc); }
/* Écrans d'ordinateur étroits : deux boutons dans le menu, on le resserre et le logo ne s'écrase jamais */
.logo { flex-shrink: 0; }
@media (min-width: 901px) and (max-width: 1180px) {
  .entete { gap: 16px; }
  .logo img { height: 52px; }
  .nav { gap: 14px; padding-left: 18px; }
  .nav a:not(.bouton) { font-size: 13px; }
  .nav .bouton--petit { padding: 10px 15px; font-size: 11px; letter-spacing: .08em; }
}

/* Ouverture : le titre à gauche, le simulateur à droite, par-dessus la photo,
   entièrement visible sans défiler */
.hero--don {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) min(880px, 60vw);
  grid-template-rows: auto;
  column-gap: clamp(32px, 4vw, 72px);
  padding-bottom: 70px;
}
.hero--don .hero-texte { align-self: center; max-width: 520px; padding: 150px 0 40px; }
.hero--don .hero-photo img { object-position: 42% 50%; }

.simulateur {
  position: relative;
  z-index: 3;
  grid-column: 2;
  align-self: start;
  margin-top: 124px;
  padding: 36px 44px 32px;
  background: var(--blanc);
  box-shadow: 0 40px 80px rgba(0,0,0,.22);
}
.simulateur fieldset { border: 0; margin: 0; padding: 0; }
.simulateur-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.simulateur-corps { display: grid; grid-template-columns: 11fr 9fr; gap: 32px; align-items: start; }
.simulateur-issue { padding-left: 32px; border-left: 1px solid #E3E6E4; }
.simulateur-tete .etiquette { margin: 0; }
.profil { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--creme); }
.profil label span {
  display: block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.profil input, .montants input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.profil input:checked + span { background: var(--vert); color: var(--blanc); }
.profil input:focus-visible + span, .montants input:focus-visible + span { outline: 2px solid var(--terracotta-texte); outline-offset: 2px; }
.montants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.montants label span {
  display: block;
  padding: 16px 6px;
  border: 2px solid #DCDFDD;
  text-align: center;
  font-family: var(--titre); font-weight: 700; font-size: clamp(17px, 1.5vw, 21px);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.montants label:hover span { border-color: var(--terracotta); }
.montants input:checked + span { border-color: var(--vert); background: var(--vert); color: var(--blanc); }
.montants .autre { grid-column: 1 / -1; position: relative; }
/* Montants proposés selon le profil : toutes les cases sont dans la page, une classe les filtre */
.simulateur:not(.profil-e) .montants [data-profil="e"],
.simulateur.profil-e .montants [data-profil="p"] { display: none; }
.montants .autre input {
  width: 100%;
  padding: 16px 40px 16px 18px;
  border: 2px solid #DCDFDD;
  font: 500 17px var(--texte);
  color: var(--anthracite);
  -moz-appearance: textfield;
}
.montants .autre input::-webkit-inner-spin-button { -webkit-appearance: none; }
.montants .autre input:focus { outline: none; border-color: var(--vert); }
.montants .autre.est-actif input { border-color: var(--vert); }
.montants .autre span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); padding: 0; border: 0; font: 600 16px var(--texte); color: var(--gris); }
.resultat { margin: 0 0 24px; }
.cout-reel { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.cout-reel strong {
  font-family: var(--titre); font-weight: 800;
  font-size: clamp(48px, 5vw, 76px); line-height: 1;
  color: var(--terracotta-texte); white-space: nowrap;
}
.cout-reel > span { font-size: 15px; line-height: 1.4; color: var(--gris); }
.palier { margin: 18px 0 0; padding-left: 14px; border-left: 3px solid var(--terracotta); font-size: 14px; line-height: 1.5; }
.palier--atteint { display: none; border-color: var(--vert-logo); font-weight: 600; color: var(--vert); }
.simulateur.palier-ok .palier:not(.palier--atteint) { display: none; }
.simulateur.palier-ok .palier--atteint { display: block; }
.bouton--large { display: block; text-align: center; padding: 18px 20px; font-size: 14px; }
.simulateur-note { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--gris); }
.simulateur-note a { color: inherit; }

/* Ce que votre don ouvre : champ vert sous l'ouverture */
.don-ouvre {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
  padding: 110px var(--marge);
  background: var(--vert);
  color: var(--blanc);
}
.paliers { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.palier-bloc { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25); }
.palier-seuil {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px;
  border-radius: 999px; background: var(--terracotta);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--anthracite);
}
.palier-bloc h3 { font-family: var(--titre); font-weight: 800; font-size: 22px; text-transform: uppercase; margin-bottom: 8px; }
.palier-bloc p:not(.ex):last-child { margin: 0; color: rgba(255,255,255,.85); font-size: 16px; }

/* Barème détaillé */
.recuperez { padding: 120px var(--marge); background: var(--creme); }
.recuperez-tete { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: end; margin-bottom: 64px; }
.recuperez-tete p:not(.ex) { margin: 0; max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); }
.baremes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bareme { padding: 48px 48px 40px; background: var(--blanc); box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.bareme:nth-child(2) { transform: translateY(40px); }
.bareme h3 { font-family: var(--titre); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.bareme-plafond { margin: 8px 0 26px; font-size: 14px; color: var(--gris); }
.bareme table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bareme th { padding: 0 0 12px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.bareme td { padding: 14px 0; border-top: 1px solid #E3E6E4; }
.bareme td:last-child, .bareme th:last-child { text-align: right; }
.bareme td:last-child { font-family: var(--titre); font-weight: 700; font-size: 18px; color: var(--vert); }

/* Où va votre don */
.destination { position: relative; overflow-x: clip; padding: 190px var(--marge) 150px; }
.destination-geant {
  position: absolute; right: -0.04em; top: 40px;
  margin: 0; white-space: nowrap;
  font-family: var(--titre); font-weight: 800; font-size: 12vw; line-height: .8;
  color: #EEF1EF; z-index: 0;
}
.destination-texte { position: relative; max-width: 620px; }
.destination-texte p:not(.ex):not(.surtitre) { margin: 26px 0 34px; font-size: clamp(17px, 1.4vw, 19px); }

/* Questions fréquentes */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 100px); padding: 0 var(--marge) 130px; }
.faq-contact { margin: 24px 0 14px; max-width: 340px; color: var(--gris); }
.faq-liste details { border-top: 1px solid #E3E6E4; }
.faq-liste details:last-child { border-bottom: 1px solid #E3E6E4; }
.faq-liste summary {
  position: relative;
  padding: 24px 50px 24px 0;
  list-style: none; cursor: pointer;
  font-weight: 600; font-size: 18px;
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--titre); font-weight: 700; font-size: 28px; color: var(--terracotta-texte);
  transition: transform .2s;
}
.faq-liste details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-liste details p:not(.ex) { margin: 0 0 26px; max-width: 640px; color: var(--gris); }

/* Autres façons de donner */
.autres-dons { display: grid; grid-template-columns: 1fr 1fr; }
.autre-don { padding: 100px var(--marge); }
.autre-don:first-child { background: var(--terracotta); }
.autre-don:first-child .surtitre { color: var(--vert-profond); }
.autre-don:first-child .lien-fleche { border-color: var(--vert-fonce); }
.autre-don:last-child { background: var(--vert); color: var(--blanc); }
.autre-don:last-child .surtitre { color: var(--terracotta-clair); }
.autre-don p:not(.ex):not(.surtitre) { max-width: 460px; margin: 24px 0 32px; }
.credit-photo--page { margin: 0; padding: 14px var(--marge); font-size: 11px; color: var(--gris); }
.credit-photo--page a { color: inherit; }

/* ==========================================================
   Pages intérieures — Associations
   ========================================================== */

/* Éligibilité : champ vert, carte des critères qui déborde */
.eligibilite {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 0 var(--marge);
}
.eligibilite::before { content: ""; position: absolute; inset: 0; background: var(--vert); }
.eligibilite-champ { position: relative; grid-column: 1 / 7; padding: 110px 0 100px; }
.eligibilite-intro { max-width: 500px; margin: 28px 0 0; color: rgba(255,255,255,.88); }
.eligibilite-carte {
  position: relative; z-index: 2;
  grid-column: 7 / 13;
  align-self: end;
  margin: 90px 0 -120px 40px;
  padding: 44px 48px 20px;
  background: var(--blanc);
  box-shadow: 0 40px 80px rgba(0,0,0,.18);
}
.criteres { list-style: none; margin: 0; padding: 0; }
.criteres li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 0 0 24px; }
.criteres li + li { padding-top: 24px; border-top: 1px solid #E3E6E4; }
.coche {
  position: relative; width: 32px; height: 32px; margin-top: 2px;
  border-radius: 50%; background: var(--vert);
}
.coche::after {
  content: ""; position: absolute; left: 11px; top: 7px; width: 8px; height: 14px;
  border: solid var(--blanc); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.criteres h3 { font-family: var(--texte); font-weight: 600; font-size: 18px; line-height: 1.35; margin-bottom: 4px; }
.criteres p:not(.ex) { margin: 0; font-size: 15px; color: var(--gris); }

/* Un projet IMPACTION, c'est quoi ? (sous la carte des critères qui déborde) */
.projet-type { padding: 210px var(--marge) 120px; background: var(--blanc); }
.projet-type-tete { max-width: 760px; margin-bottom: 56px; }
.projet-type-tete p:not(.ex):not(.surtitre) { margin: 24px 0 0; max-width: 620px; color: #3c3f3d; }
.projet-type-piliers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.projet-type-piliers li { padding-top: 22px; border-top: 4px solid var(--vert); }
.projet-type-piliers li:nth-child(2) { border-top-color: var(--terracotta); }
.projet-type-piliers h3 { margin: 10px 0 10px; font-family: var(--titre); font-weight: 800; font-size: 21px; line-height: 1.2; text-transform: uppercase; }
.projet-type-piliers p:not(.ex) { margin: 0; font-size: 15px; color: var(--gris); }
.projet-type-exclu {
  max-width: 760px; margin: 64px 0 0; padding: 22px 26px;
  border-left: 4px solid var(--terracotta); background: var(--creme);
}
.projet-type-exclu h3 { font-family: var(--titre); font-weight: 800; font-size: 17px; text-transform: uppercase; color: var(--terracotta-texte); margin-bottom: 8px; }
.projet-type-exclu p:not(.ex) { margin: 0; font-size: 16px; }

/* Domaines */
.domaines { padding: 120px var(--marge); background: var(--creme); }
.hero--page .actions { margin-top: 34px; }
.domaines-tete { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.domaines-tete p:not(.ex) { margin: 0; color: var(--gris); }
.domaines-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.domaines-grille li { padding: 34px 30px 30px; background: var(--blanc); border-top: 4px solid var(--vert); }
.domaines-grille li:nth-child(even) { transform: translateY(32px); border-top-color: var(--terracotta); }
.domaines-grille h3 { margin: 14px 0 10px; font-family: var(--titre); font-weight: 800; font-size: 19px; line-height: 1.2; text-transform: uppercase; }
.domaines-grille p:not(.ex) { margin: 0; font-size: 15px; color: var(--gris); }

/* Déroulement */
.deroulement { padding: 150px var(--marge) 130px; }
.deroulement-tete { max-width: 720px; margin-bottom: 64px; }
.deroulement-etapes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 36px;
  counter-reset: etape;
}
.deroulement-etapes li { position: relative; padding-top: 34px; border-top: 3px solid var(--terracotta); }
.deroulement-etapes li::before {
  content: ""; position: absolute; left: 0; top: -9px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 5px var(--blanc);
}
.deroulement-etapes h3 { margin: 10px 0 8px; font-family: var(--texte); font-weight: 600; font-size: 19px; line-height: 1.35; }
.deroulement-etapes p:not(.ex) { margin: 0; font-size: 15px; color: var(--gris); }
.deroulement-preuve {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px;
  margin-top: 90px; padding: 36px 44px;
  background: var(--terracotta);
  box-shadow: 0 30px 60px rgba(0,0,0,.14);
}
.deroulement-preuve .montant { margin: 0 !important; color: var(--vert-fonce); }
.deroulement-preuve p:not(.ex):not(.montant) { margin: 0; max-width: 460px; }
.deroulement-preuve .lien-fleche { border-color: var(--vert-fonce); }

/* Premier contact */
.candidature {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px);
  align-items: start;
  padding: 120px var(--marge);
  background: var(--vert);
  color: var(--blanc);
}
.candidature-texte p:not(.ex):not(.surtitre) { margin: 24px 0 0; color: rgba(255,255,255,.88); }
.candidature .surtitre { color: var(--terracotta-clair); }
.candidature-note { font-size: 14px; color: var(--terracotta-clair) !important; }
.formulaire {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px;
  padding: 44px 46px;
  background: var(--blanc); color: var(--anthracite);
  box-shadow: 0 40px 80px rgba(0,0,0,.22);
}
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ--plein { grid-column: 1 / -1; }
.champ label { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 13px 14px;
  border: 2px solid #DCDFDD; border-radius: 0;
  background: var(--blanc);
  font: 400 16px var(--texte); color: var(--anthracite);
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vert); }
.champ--bouton { justify-content: flex-end; }
.champ--bouton .bouton { border: 0; cursor: pointer; font-family: var(--texte); }
.formulaire-note { margin: 0; font-size: 12px; color: var(--gris); }
.formulaire-note a { color: inherit; }

/* ==========================================================
   Pages intérieures — Projets soutenus
   ========================================================== */

/* Projet : chiffre géant en fond, photo, carte verte qui déborde, fiche à droite */
.projet {
  position: relative;
  overflow-x: clip;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 2.4vw, 40px);
  padding: 150px var(--marge) 140px;
}
.projet-geant {
  position: absolute;
  left: -0.06em; top: 40px;
  margin: 0;
  font-family: var(--titre); font-weight: 800;
  font-size: 40vw; line-height: .8;
  color: #EEF1EF;
  z-index: 0;
}
.projet-photo { position: relative; z-index: 1; grid-column: 2 / 8; grid-row: 1; margin: 0; }
.projet-photo img { width: 100%; height: 640px; object-fit: cover; object-position: 50% 30%; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.projet-carte {
  position: relative; z-index: 2;
  grid-column: 1 / 6; grid-row: 2;
  margin: -150px 0 0;
  padding: 44px 46px;
  background: var(--vert);
  color: var(--blanc);
  box-shadow: 0 30px 60px rgba(0,0,0,.22);
}
.projet-carte p:not(.ex) { margin: 0 0 22px; }
.projet-carte .montant { color: var(--terracotta-clair); }
.projet-nom {
  margin-bottom: 26px;
  font-family: var(--titre); font-weight: 800;
  font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02;
  text-transform: uppercase;
}
.pastilles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pastilles li {
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
}
.projet-texte { position: relative; z-index: 1; grid-column: 8 / 13; grid-row: 1 / 3; align-self: center; padding-left: clamp(0px, 2vw, 30px); }
.projet-chapo { margin: 0 0 22px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; font-weight: 500; }
.projet-texte > p:not(.ex):not(.surtitre):not(.projet-chapo) { margin: 0 0 34px; color: #3c3f3d; }
.fiche { margin: 0 0 34px; }
.fiche div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid #E3E6E4; }
.fiche dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta-texte); padding-top: 3px; }
.fiche dd { margin: 0; font-size: 15px; }

/* Missions : champ vert, quatre temps */
.missions { padding: 120px var(--marge) 110px; background: var(--vert); color: var(--blanc); }
.missions-tete { max-width: 820px; margin-bottom: 70px; }
.missions .surtitre { color: var(--terracotta-clair); }
.missions-grille {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.25);
}
.missions-grille li { padding: 30px 28px 10px 0; border-right: 1px solid rgba(255,255,255,.18); }
.missions-grille li + li { padding-left: 28px; }
.missions-grille li:last-child { border-right: 0; }
.missions-grille .num { color: var(--terracotta-clair); }
.missions-grille h3 { margin: 10px 0 8px; font-family: var(--titre); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1.2; }
.missions-grille p:not(.ex) { margin: 0; font-size: 15px; color: rgba(255,255,255,.82); }

/* Citation : terracotta, typographie hors d'échelle */
.citation { padding: 120px var(--marge); background: var(--terracotta); }
.citation blockquote { margin: 0 auto; max-width: 1200px; }
.citation p:not(.ex) {
  margin: 0;
  font-family: var(--titre); font-weight: 800;
  font-size: clamp(34px, 5.6vw, 92px); line-height: 1;
  text-transform: uppercase; letter-spacing: -.02em;
  color: var(--vert-fonce);
  text-wrap: balance;
}
.citation footer { margin-top: 30px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--vert-profond); }

/* Besoin d'aide : numéros utiles */
.aide {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  margin: 0 var(--marge);
  padding: 90px 0;
  border-bottom: 1px solid #E3E6E4;
}
.aide-tete p:not(.ex):not(.etiquette) { margin: 22px 0 0; color: var(--gris); }
.numeros { list-style: none; margin: 0; padding: 0; }
.numeros li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 0; border-top: 1px solid #E3E6E4;
}
.numeros li:first-child { border-top: 0; }
.numeros a { text-decoration: none; }
.numeros strong {
  font-family: var(--titre); font-weight: 800;
  font-size: clamp(32px, 3.4vw, 50px); line-height: 1;
  color: var(--vert); white-space: nowrap;
}
.numeros a:hover strong { color: var(--vert-fonce); }
.numeros span { font-size: 15px; color: var(--gris); }

/* La suite : emplacement du prochain projet */
.suite {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: 130px var(--marge);
}
.suite-tete p:not(.ex):not(.surtitre) { margin: 24px 0 0; max-width: 520px; color: #3c3f3d; }
.suite-vide {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px; padding: 36px 40px;
  border: 2px dashed var(--terracotta);
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta-texte);
}
.suite-num { font-family: var(--titre); font-weight: 800; font-size: 120px; line-height: .9; letter-spacing: -.02em; color: #F2E6DA; }

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

.pied { background: var(--anthracite); color: #D9DBDA; padding: 90px var(--marge) 40px; }
.pied-haut { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.14); }
.pied-logo { margin: 0; }
.pied-logo img { height: clamp(64px, 7vw, 96px); width: auto; padding: 12px 26px; border-radius: 999px; background: var(--blanc); box-sizing: content-box; }
.pied-devise { margin: 0; font-size: 17px; color: var(--terracotta-clair); }
.pied-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 50px 0; }
.pied h2 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blanc); margin-bottom: 14px; }
.pied-grille p:not(.ex) { margin: 0; font-size: 15px; line-height: 1.9; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--terracotta-clair); }
.pied-bas { margin: 0; font-size: 13px; color: #8A8D8B; }

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  body { font-size: 16px; }
  .entete { padding: 18px 20px; }
  .nav { display: none; }
  .burger { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border: 0; border-radius: 999px; background: var(--blanc); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
  .entete.est-ouvert .nav { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 76px; left: 20px; right: 20px; padding: 24px; border-radius: 24px; gap: 18px; }
  .burger span { display: block; width: 22px; height: 2px; background: var(--anthracite); }

  .hero { display: block; min-height: 0; padding: 0 20px; }
  .hero-visuel { position: relative; width: calc(100% + 40px); height: 380px; margin: 0 -20px; }
  .hero-photo img { clip-path: ellipse(120% 100% at 50% 0%); }
  .hero-bande { display: none; }
  .hero-texte { padding-top: 40px; }
  .chiffres { flex-direction: column; gap: 18px; padding: 40px 0 20px; }

  .fonctionnement { display: block; padding: 0 20px 60px; margin-top: 40px; }
  .fonctionnement::before { height: 100%; }
  .fonct-champ { padding: 70px 0 40px; }
  .fonct-photo img { height: 260px; }
  .fonct-carte { margin: 30px 0 0; padding: 34px 26px; }
  .fonct-devise { position: static; width: auto; margin: 40px 0 0; }
  .logo { padding: 8px 16px; border-radius: 999px; background: var(--blanc); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
  .logo img { height: 34px; }

  .causes { padding: 80px 20px; }
  .causes-tete p:not(.ex) { margin-top: 20px; padding-left: 16px; }
  .causes-grille { grid-template-columns: 1fr 1fr; gap: 20px 14px; }

  .engagement { display: block; padding: 0 20px 80px; }
  .engagement-photo img { height: 380px; }
  .engagement-carte { margin: -60px 16px 0; padding: 32px 28px; }

  .fiscal { display: block; padding: 80px 20px; }
  .fiscal-grille { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }

  .appel { display: block; min-height: 0; padding: 0 20px; }
  .appel-visuel { position: relative; width: calc(100% + 40px); height: 300px; margin: 0 -20px; }
  .appel-visuel img { clip-path: ellipse(120% 100% at 50% 0%); }
  .appel-bande { display: none; }
  .appel-texte { padding: 40px 0 80px; }

  .pied { padding: 60px 20px 30px; }
  .pied-grille { grid-template-columns: 1fr; gap: 28px; }
  .pied-grille a { display: inline-block; padding: 8px 0; }
  .lien-fleche { display: inline-block; padding-top: 10px; }
  .pied-logo img { height: 48px; padding: 10px 20px; }

  /* Bouton de don toujours à portée de pouce */
  body { padding-bottom: 84px; }
  .don-mobile { display: block; position: fixed; left: 20px; right: 20px; bottom: 16px; z-index: 20; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease, visibility .3s; text-align: center; border: 2px solid var(--blanc); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
}

/* ---------- Pages intérieures — mobile ---------- */

@media (max-width: 900px) {
  .hero--page .hero-texte { padding: 40px 0 60px; }
  .hero--page .hero-visuel { height: 300px; }

  .genese { display: block; padding: 0 20px 60px; }
  .genese::before { inset: 0; }
  .genese-champ { padding: 70px 0 20px; }
  .genese-carte { margin: 30px 0 0; padding: 34px 26px 14px; }
  .genese-devise { padding: 40px 0 0; }

  .fondateurs { padding: 80px 20px; }
  .fondateurs-geant { font-size: 70vw; top: 20px; }
  .fondateurs-grille { grid-template-columns: 1fr; gap: 20px; }
  .fondateurs-grille li:nth-child(2) { transform: none; }
  .fondateurs-grille li { padding: 30px 26px; display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; }
  .monogramme { width: 72px; height: 72px; font-size: 22px; margin: 0; grid-row: 1 / 4; }

  .approche { display: block; padding: 80px 20px; }
  .approche-photo img { height: 280px; }
  .approche-texte { margin-top: 44px; }

  .gouvernance { padding: 80px 20px 0; }
  .parcours { grid-template-columns: 1fr 1fr; margin-top: 50px; }
  .parcours li, .parcours li + li { padding: 26px 16px 20px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .instances { display: block; margin-top: 50px; }
  .instance { padding: 32px 26px; }
  .instance--cac { margin: -10px 0 0 16px; }

  .transparence { display: block; padding: 100px 20px 80px; }
  .transparence-chiffres { margin-top: 50px; }
  .transparence-chiffres li { grid-template-columns: 1fr; gap: 8px; }

  .chemins { grid-template-columns: 1fr; }
  .chemin { padding: 70px 20px; }
}

/* Écrans d'ordinateur étroits : on resserre la carte */
@media (min-width: 901px) and (max-width: 1180px) {
  .simulateur { padding-left: 28px; padding-right: 28px; }
  .simulateur-corps { gap: 22px; }
  .simulateur-issue { padding-left: 22px; }
  .montants { gap: 8px; }
  .bouton--large { padding: 16px 10px; font-size: 13px; letter-spacing: .08em; }
}

/* Écrans d'ordinateur peu hauts : le simulateur reste entièrement visible à l'ouverture */
@media (min-width: 901px) and (max-height: 700px) {
  .simulateur { margin-top: 104px; padding: 26px 40px 24px; }
  .simulateur-tete { margin-bottom: 18px; }
  .montants label span, .montants .autre input { padding-top: 12px; padding-bottom: 12px; }
}

/* ---------- Faire un don — mobile ---------- */

@media (max-width: 900px) {
  .hero--don { display: block; padding: 0 20px 50px; }
  .hero--don .hero-visuel { height: 130px; }
  .hero--don .surtitre, .hero--don .chapo { display: none; }
  .hero--don .hero-texte { padding: 16px 0 14px; }
  .hero--don .titre-hero { font-size: 28px; margin-bottom: 0; }
  .simulateur { margin: 0; padding: 18px 18px 16px; }
  .simulateur-corps { display: block; }
  .simulateur-issue { padding: 10px 0 0; margin-top: 10px; border-left: 0; border-top: 1px solid #E3E6E4; }
  .resultat { margin-bottom: 14px; }
  .palier { margin-top: 10px; }
  .cout-reel { flex-direction: row; align-items: center; gap: 14px; }
  .resultat { margin: 14px 0 12px; padding-top: 12px; }
  .montants label span { padding: 9px 2px; }
  .montants .autre input { padding: 9px 40px 9px 14px; }
  .bouton--large { padding: 14px 16px; }
  .simulateur-tete { margin-bottom: 16px; }
  .profil label span { padding: 8px 14px; }
  .montants { gap: 8px; }
  .montants label span { padding: 11px 2px; font-size: 15px; }
  .cout-reel strong { font-size: 38px; }
  .cout-reel > span { font-size: 13px; }
  .don-ouvre { display: block; padding: 70px 20px; }
  .paliers { grid-template-columns: 1fr; gap: 30px; margin-top: 36px; }

  .recuperez { padding: 80px 20px; }
  .recuperez-tete { display: block; margin-bottom: 40px; }
  .recuperez-tete p:not(.ex) { margin-top: 20px; }
  .baremes { grid-template-columns: 1fr; gap: 20px; }
  .bareme { padding: 32px 22px; }
  .bareme:nth-child(2) { transform: none; }

  .destination { padding: 90px 20px 80px; }
  .destination-geant { font-size: 17vw; top: 30px; right: auto; left: 20px; }
  .bouton--large { padding: 18px 16px; font-size: 13px; letter-spacing: .08em; }

  .faq { display: block; padding: 0 20px 80px; }
  .faq-liste { margin-top: 30px; }
  .faq-liste summary { font-size: 16px; }

  .autres-dons { grid-template-columns: 1fr; }
  .autre-don { padding: 70px 20px; }
  .credit-photo--page { padding: 14px 20px; }
}

/* ---------- Associations — mobile ---------- */

@media (max-width: 900px) {
  .eligibilite { display: block; padding: 0 20px 60px; }
  .eligibilite::before { inset: 0; }
  .eligibilite-champ { padding: 70px 0 10px; }
  .eligibilite-carte { margin: 30px 0 0; padding: 30px 22px 6px; }

  .projet-type { padding: 80px 20px; }
  .projet-type-tete { margin-bottom: 36px; }
  .projet-type-piliers { grid-template-columns: 1fr; gap: 30px; }
  .projet-type-exclu { margin-top: 44px; padding: 18px 20px; }

  .domaines { padding: 80px 20px; }
  .domaines-tete { margin-bottom: 36px; }
  .domaines-grille { grid-template-columns: 1fr; gap: 16px; }
  .domaines-grille li:nth-child(even) { transform: none; }

  .deroulement { padding: 80px 20px; }
  .deroulement-tete { margin-bottom: 44px; }
  .deroulement-etapes { grid-template-columns: 1fr; gap: 34px; }
  .deroulement-preuve { grid-template-columns: 1fr; gap: 14px; margin-top: 60px; padding: 30px 24px; }

  .candidature { display: block; padding: 80px 20px; }
  .formulaire { grid-template-columns: 1fr; margin-top: 40px; padding: 30px 22px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .domaines-grille { grid-template-columns: 1fr 1fr; }
  .domaines-grille li:nth-child(even) { transform: none; }
  .deroulement-etapes { grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
  .parcours { grid-template-columns: repeat(3, 1fr); }
  .parcours li:nth-child(3) { border-right: 0; }
  .parcours li:nth-child(4) { padding-left: 0; }
  .deroulement-preuve { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Projets soutenus — mobile ---------- */

@media (max-width: 900px) {
  .projet { display: block; padding: 70px 20px 70px; }
  .projet-geant { font-size: 70vw; top: 20px; }
  .projet-photo img { height: 340px; }
  .projet-carte { margin: -70px 16px 0; padding: 32px 26px; }
  .projet-texte { margin-top: 56px; padding: 0; }
  .fiche div { grid-template-columns: 1fr; gap: 2px; }

  .missions { padding: 80px 20px; }
  .missions-tete { margin-bottom: 40px; }
  .missions-grille { grid-template-columns: 1fr 1fr; }
  .missions-grille li, .missions-grille li + li { padding: 26px 16px 20px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }

  .citation { padding: 80px 20px; }

  .aide { display: block; margin: 0 20px; padding: 70px 0; }
  .numeros { margin-top: 30px; }
  .numeros a { display: inline-block; padding: 4px 0; }

  .suite { display: block; padding: 80px 20px; }
  .suite-vide { margin-top: 40px; min-height: 200px; padding: 26px; }
  .suite-num { font-size: 84px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .projet-photo { grid-column: 1 / 8; }
  .projet-carte { grid-column: 1 / 7; padding: 36px 34px; }
  .missions-grille { grid-template-columns: 1fr 1fr; }
  .missions-grille li, .missions-grille li + li { padding: 30px 28px 26px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
}

/* ==========================================================
   Animations — sobres, désactivées si l'utilisateur réduit les animations
   ========================================================== */

/* En-tête : fixe, il se compacte sur un fond blanc dès qu'on défile */
.entete { transition: padding .35s ease, background-color .35s ease, box-shadow .35s ease; }
.logo img { transition: height .35s ease; }
.nav { transition: box-shadow .35s ease; }
.entete.est-compact {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.entete.est-compact .logo img { height: 50px; }
.entete.est-compact .nav { box-shadow: none; }
@media (max-width: 900px) {
  .entete.est-compact { padding-top: 10px; padding-bottom: 10px; }
  .entete.est-compact .logo img { height: 34px; }
  .entete.est-compact .logo, .entete.est-compact .burger { box-shadow: none; }
}

@media (prefers-reduced-motion: no-preference) {

  /* Ruban terracotta : il se dessine à l'ouverture de la page (--long est la
     longueur du trait à l'écran, calculée par le script) */
  .js .hero-bande path, .js .appel-bande path { opacity: 0; }
  .js .trace-en-cours path {
    opacity: 1;
    stroke-dasharray: var(--long) var(--long);
    stroke-dashoffset: var(--long);
    animation: tracer 1.6s cubic-bezier(.65,0,.35,1) .2s forwards;
  }
  .js .trace-fini path { opacity: 1; }
  @keyframes tracer {
    0%   { stroke-dashoffset: var(--long); opacity: 0; }
    3%   { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
  }

  /* Apparition au défilement : un élément, ou les enfants d'un groupe en cascade */
  .js .revele, .js .revele-groupe > * {
    opacity: 0;
    translate: 0 28px;
    transition: opacity .8s ease, translate .9s cubic-bezier(.2,.7,.2,1);
  }
  .js .revele.est-visible, .js .revele-groupe.est-visible > * { opacity: 1; translate: 0 0; }
  .js .revele-groupe.est-visible > :nth-child(2) { transition-delay: .1s; }
  .js .revele-groupe.est-visible > :nth-child(3) { transition-delay: .2s; }
  .js .revele-groupe.est-visible > :nth-child(4) { transition-delay: .3s; }
  .js .revele-groupe.est-visible > :nth-child(5) { transition-delay: .4s; }
  .js .revele-groupe.est-visible > :nth-child(n+6) { transition-delay: .5s; }

  /* Citation : les mots apparaissent l'un après l'autre (le script les découpe) */
  .js .revele-mots .mot {
    display: inline-block;
    opacity: 0;
    translate: 0 .35em;
    transition: opacity .6s ease, translate .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--i) * 90ms);
  }
  .js .revele-mots.est-visible .mot { opacity: 1; translate: 0 0; }
}

/* Chiffres qui défilent : largeur des chiffres constante pendant le comptage */
[data-compteur], .cout-reel strong { font-variant-numeric: tabular-nums; }

/* ---------- Ajouts retours fondateurs (2026-10-02) ---------- */

/* Accueil : qu'est-ce qu'un fonds de dotation */
.definition {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: start;
  margin: 0 var(--marge);
  padding: 48px 0 64px;
  border-top: 1px solid #E3E6E4;
}
.definition-titre {
  font-family: var(--titre);
  font-weight: 800;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vert);
  text-wrap: balance;
}
.definition-texte p:not(.ex) { margin: 0; max-width: 680px; }
.definition-texte p:not(.ex) + p:not(.ex) { margin-top: 14px; color: var(--gris); }

/* Faire un don : chapô sous le titre du bloc vert */
.don-ouvre-tete p:not(.ex) { margin: 24px 0 0; max-width: 460px; color: rgba(255,255,255,.88); }

/* Retour en haut de page, toutes les pages */
.haut-page {
  position: fixed; right: 20px; bottom: 20px; z-index: 19;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--vert); border: 2px solid var(--blanc);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.haut-page::before {
  content: ""; position: absolute; left: 50%; top: 54%;
  width: 12px; height: 12px;
  border-left: 3px solid var(--blanc); border-top: 3px solid var(--blanc);
  transform: translate(-50%, -50%) rotate(45deg);
}
.haut-page:hover { background: var(--vert-fonce); }
.haut-page.est-visible { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 900px) {
  .definition { display: block; margin: 0 20px; padding: 36px 0 48px; }
  .definition-titre { margin-bottom: 14px; }
  .don-mobile.est-visible { opacity: 1; visibility: visible; transform: none; }
  body:has(.don-mobile) .haut-page { bottom: 86px; right: 24px; width: 44px; height: 44px; }
}
.chiffres strong small { font-size: 1em; font-weight: inherit; }   /* 60 % entreprises à la même taille que 66 % particuliers */

/* Pages légales : mentions légales, politique de confidentialité */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(140px, 14vw, 190px) var(--marge) 110px; }
.legal-tete { padding-bottom: 36px; margin-bottom: 10px; border-bottom: 1px solid #DCDCCB; }
.legal .titre-hero { font-size: clamp(34px, 4vw, 56px); margin-bottom: 18px; }
/* Téléphones étroits : « CONFIDENTIALITÉ » en capitales tient dans la largeur. */
@media (max-width: 420px) { .legal .titre-hero { font-size: min(34px, 8.4vw); } }
.legal-maj { margin: 0; font-size: 14px; color: var(--gris); }
.legal-chapo { margin: 24px 0 0; font-size: 18px; color: #3c3f3d; }
.legal section { padding: 34px 0 6px; }
.legal h2 { font-family: var(--titre); font-weight: 800; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; text-transform: uppercase; color: var(--vert); margin-bottom: 16px; }
.legal h3 { font-family: var(--texte); font-weight: 600; font-size: 18px; margin: 30px 0 10px; }
.legal p:not(.ex), .legal li { font-size: 16px; line-height: 1.75; color: #3c3f3d; }
.legal p:not(.ex) { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal a { color: var(--vert); }
.a-completer { background: #FFE9A8; color: #5a3e00; padding: 1px 5px; border-radius: 3px; }
.chiffres { flex-wrap: wrap; row-gap: 20px; }   /* 50 000 € : les libellés gardent leur largeur, retour à la ligne si la place manque */
@media (min-width: 901px) { .chiffres span { min-width: 9.5em; } }

/* ---------- Projets soutenus : le projet en images (avant / après) ---------- */
.avant-apres { padding: 110px var(--marge); }
.avant-apres-tete { max-width: 820px; margin-bottom: 50px; }
.avant-apres-duo, .avant-apres-trio { display: grid; gap: 28px; }
.avant-apres-duo { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
.avant-apres-trio { grid-template-columns: repeat(4, 1fr); }
.avant-apres figure { margin: 0; }
.avant-apres img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.avant-apres figcaption { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta-texte); }
.avant-apres-credit { margin: 26px 0 0; font-size: 13px; color: #6B6F6C; }
.chemins--seul { grid-template-columns: 1fr; }
@media (max-width: 1200px) and (min-width: 901px) { .avant-apres-trio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .avant-apres { padding: 80px 20px; }
  .avant-apres-duo, .avant-apres-trio { grid-template-columns: 1fr; }
}

/* ---------- Sélection des projets : au-delà du don, règle anti-conflit d'intérêts ---------- */
.projet-type-plus { max-width: 760px; margin-top: 24px; padding: 22px 26px; border-left: 4px solid var(--vert); background: var(--creme); }
.projet-type-plus h3 { font-family: var(--titre); font-weight: 800; font-size: 17px; text-transform: uppercase; color: var(--vert); margin: 0 0 8px; }
.projet-type-plus p:not(.ex) { margin: 0; font-size: 16px; max-width: 75ch; }
.lien-clair { color: var(--blanc); border-bottom: 1px solid var(--terracotta-clair); text-decoration: none; }
.regle { padding: 44px 46px; background: var(--blanc); color: var(--anthracite); box-shadow: 0 40px 80px rgba(0,0,0,.22); }
.regle-etiquette { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta-texte); }
.regle h3 { margin: 0 0 22px; font-family: var(--titre); font-weight: 800; font-size: 22px; line-height: 1.25; color: var(--vert); }
.regle ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.regle li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding-top: 16px; border-top: 1px solid #E3E6E4; }
.regle li p:not(.ex) { margin: 0; font-size: 17px; line-height: 1.5; }
.regle-signe { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--vert); color: var(--blanc); font-weight: 700; }
.regle-signe--non { background: var(--terracotta); }
@media (max-width: 900px) {
  .regle { margin-top: 40px; padding: 30px 22px; }
  .projet-type-plus { padding: 18px 20px; }
}

/* ---------- Don en ligne : bloc de don HelloAsso (mode « sur mesure ») ---------- */
.don-en-ligne {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  padding: 110px var(--marge);
  background: var(--creme);
  scroll-margin-top: 60px;
}
.don-en-ligne { grid-template-rows: auto 1fr; row-gap: 0; }
.don-en-ligne-texte, .don-en-ligne-notes { grid-column: 1; max-width: 520px; }
.don-en-ligne-texte p:not(.ex) { margin: 24px 0 0; font-size: clamp(17px, 1.4vw, 19px); }
.don-en-ligne-note { margin: 24px 0 0; font-size: 15px; color: var(--gris); }
.don-en-ligne-note a { color: var(--vert); }
.helloasso { grid-column: 2; grid-row: 1 / span 2; justify-self: center; width: clamp(300px, 100%, 26rem); }
.helloasso iframe { display: block; width: 100%; height: 750px; border: 0; }
@media (max-width: 900px) {
  .don-en-ligne { display: block; padding: 70px 20px; }
  .helloasso { margin: 32px auto 0; width: 100%; max-width: 26rem; }
}


/* ==========================================================
   Adaptations WordPress (générées par construire_theme.py)
   ========================================================== */

/* Paragraphes enveloppes : le texte « en ligne » de la maquette (liens, chiffres,
   pastilles) est porté par un paragraphe neutralisé, pour garder sa mise en page. */
.ex { display: contents; }
/* Images sans cadre dans la maquette : la figure WordPress s'efface. */
figure.ex-img { display: contents; }

/* Cartes « deux chemins » : toute la carte reste cliquable. */
.chemin { position: relative; }
.chemin .bouton::before, .chemin .lien-fleche::before { content: ""; position: absolute; inset: 0; }

/* Apparitions : les enfants des paragraphes enveloppes suivent leur groupe. */
@media (prefers-reduced-motion: no-preference) {
  .js .revele-groupe > .ex > * { opacity: 0; transition: opacity .8s ease; }
  .js .revele-groupe.est-visible > .ex > * { opacity: 1; }
}

/* Formulaire des associations (Contact Form 7) */
.formulaire .wpcf7-form-control-wrap { display: block; }
.formulaire .wpcf7-form-control-wrap > * { display: block; }   /* pas d'espace sous la ligne de base */
/* Le bouton d'envoi est un <input> : il reprend le style du <button> de la maquette. */
.champ--bouton input.bouton {
  width: auto; padding: 16px 34px; border: 0; border-radius: 999px;
  background: var(--terracotta); color: var(--anthracite);
  font: 600 14px/normal var(--texte); letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, transform .2s;
}
.champ--bouton input.bouton:hover { background: #BA855B; transform: translateY(-2px); }
.formulaire .hidden-fields-container { display: none; }
.formulaire .wpcf7-spinner { display: none; }
.formulaire .wpcf7-not-valid { border-color: #B3261E !important; }
.formulaire .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #B3261E; }
.formulaire .wpcf7-response-output { grid-column: 1 / -1; margin: 0 !important; padding: 12px 16px !important; border: 2px solid var(--terracotta) !important; font-size: 14px; }
.formulaire .wpcf7-response-output:empty { display: none; }
.formulaire.sent .wpcf7-response-output { border-color: var(--vert) !important; }
/* Champ piège anti-spam : hors écran, jamais affiché aux visiteurs. */
.champ-piege { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
