/* ============================================================
   BELDEFI — Charte graphique normalisée
   Couleurs, typographies et composants unifiés.

   Sommaire
    1. Variables (charte)          10. Carte des puits (Leaflet)
    2. Base                        11. Dons — contrôles communs
    3. Utilitaires & accessibilité 12. Dons — panier (tuiles + résumé)
    4. Boutons                     13. Dons — bloc projet
    5. En-tête & navigation        14. Cagnotte à paliers
    6. Héros                       15. Attestation (cartes profil, vidéo)
    7. Sections & titres           16. Pied de page & bouton flottant
    8. Blocs de contenu            17. Animations d'apparition
    9. Impact & campagnes          18. Responsive
   ============================================================ */

/* ---------- 1. Variables (charte) ---------- */
:root {
  /* Couleur primaire — rouge de l'ancien site beldefi.org (seule couleur d'accent) */
  --primary: #FF0300;
  --primary-dark: #D40200;
  --primary-deep: #B30200;   /* hachures « votre don » des jauges */
  --primary-soft: #FFEAE8;

  /* Neutres */
  --ink: #1A1A1A;
  --ink-soft: #333333;
  --text: #5C6470;
  --line: #E8EAED;
  --line-strong: #EDEFF2;
  --bg: #F7F8F9;
  --white: #FFFFFF;

  /* Couleur d'état (objectif atteint) — n'est pas une couleur d'accent */
  --success: #1A7A3C;

  /* Vert des barres de progression (décision de Tomi du 2026-10-15) — vert de beldefi.org */
  --green: #0E926B;
  --green-dark: #096247;
  --green-light: #3DB58F;
  --green-soft: #E2F4EE;

  /* Orange ambré de beldefi.org : UNIQUEMENT dans les blocs « Faites un don » des pages
     projet (.don-projet, décision de Tomi du 2026-10-15). Ailleurs, le rouge reste seul. */
  --don: #FF9F0D;
  --don-hover: #DB8400;
  --don-dark: #9A5A00;
  --don-soft: #FFEDD3;
  --don-panel: #FBF7EE;

  /* Typographies */
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Barlow', sans-serif;

  /* Rayons & ombres */
  --radius: 20px;
  --radius-pill: 999px;
  --shadow: 0 12px 34px rgba(26, 26, 26, .07);
  --shadow-lg: 0 28px 64px rgba(26, 26, 26, .13);
  --shadow-red: 0 8px 20px rgba(255, 3, 0, .22);
  --hairline: 1px solid rgba(26, 26, 26, .06);

  /* Hauteur de l'en-tête (menu mobile, résumé du panier collant) */
  --header-h: 108px;
}

/* ---------- 2. Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
/* clip (et non hidden) : coupe les débordements des animations d'entrée sans casser l'en-tête collant */
body { overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}

a { color: var(--primary-dark); text-decoration: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---------- 3. Utilitaires & accessibilité ---------- */
/* L'attribut hidden doit toujours masquer, même si une classe impose un display */
[hidden] { display: none !important; }

/* Focus clavier bien visible (souris : pas de contour) */
:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; }

/* Lien d'évitement « Aller au contenu » : invisible jusqu'au premier Tab */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.skip-link:focus { top: 12px; }

.center { text-align: center; }
.ink { color: var(--ink); }
.muted { color: var(--text); }
.btn-block { display: block; width: 100%; }
.mt-40 { margin-top: 40px; }

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 26px rgba(255, 3, 0, .30); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }

/* Contour blanc : UNIQUEMENT sur fond sombre (hero, bandeaux CTA) */
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--ink); }

/* Contour foncé : pour les fonds clairs */
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-lg { padding: 18px 42px; font-size: 16px; }

/* ---------- 5. En-tête & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  max-width: none;                          /* header pleine largeur (bord à bord) */
  padding-inline: clamp(20px, 4vw, 48px);   /* marges latérales adaptatives */
}
.logo img { height: 84px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; list-style: none; gap: 4px; align-items: center; }
/* :not(.btn) — le bouton « Faire un don » du menu garde son propre style */
.main-nav a:not(.btn) {
  font-family: var(--font-head); font-size: 16px; font-weight: 600;
  color: var(--ink); padding: 11px 16px; border-radius: var(--radius-pill);
  transition: background .15s, color .15s;
}
.main-nav a:not(.btn):hover, .main-nav a.active:not(.btn) { background: var(--primary-soft); color: var(--primary-dark); }

.has-sub { position: relative; }
.has-sub .sub {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; list-style: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(4px); }
/* Échap referme le sous-menu ouvert au survol ou au clavier (js/main.js) */
.has-sub.ferme .sub { opacity: 0; visibility: hidden; }
.sub li a { display: block; border-radius: 12px; }

.header-cta { margin-left: 12px; padding: 12px 26px; }

/* Taille fixe : ☰ et ✕ (menu ouvert, js/main.js) n'ont pas la même largeur, l'en-tête ne bouge pas */
.nav-toggle { display: none; background: none; border: none; font-size: 28px; color: var(--ink); cursor: pointer; width: 1em; padding: 0; line-height: 1.25; text-align: center; }

/* Onglet « S'inscrire / Se connecter » (espace donateur) : discret, sur une ligne */
.main-nav a:not(.btn), .header-cta { white-space: nowrap; }
.main-nav a.nav-espace { font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
/* Sélecteur de langue FR | NL : hors du menu, donc visible aussi quand le menu est replié */
.main-nav { margin-left: auto; }
.lang-switch { display: flex; align-items: center; margin-left: 14px; font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.lang-switch a { color: var(--text); padding: 8px 5px; border-radius: 6px; text-decoration: none; }
.lang-switch a + a::before { content: "|"; display: inline-block; color: var(--line); margin-right: 10px; }
.lang-switch a:hover { color: var(--primary-dark); }
.lang-switch a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang-switch a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Menu serré (avec le sélecteur de langue, la ligne complète demande ~1420 px) */
@media (max-width: 1420px) and (min-width: 1181px) {
  .header-inner { padding-inline: 24px; }
  .main-nav > ul { gap: 0; }
  .main-nav a:not(.btn) { font-size: 15px; padding: 10px 8px; }
  .main-nav a.nav-espace { font-size: 13px; margin-left: 4px; }
  .header-cta { margin-left: 6px; padding: 12px 18px; }
  .lang-switch { margin-left: 6px; font-size: 13px; }
  .lang-switch a { padding: 8px 4px; }
  .lang-switch a + a::before { margin-right: 8px; }
}
/* Menu repliable dès 1180 px : avec l'onglet de l'espace donateur, il ne tient plus sur une ligne */
@media (max-width: 1180px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white);
    box-shadow: var(--shadow-lg); padding: 18px 24px 26px;
    display: none; flex-direction: column; align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 18px; }
  .nav-toggle { display: block; order: 3; }
  .header-cta { display: none; }
  .main-nav a.nav-espace { box-shadow: none; font-size: 16px; }
  .lang-switch { margin-left: auto; margin-right: 10px; font-size: 15px; }
}

/* ---------- 6. Héros ---------- */
/* Hero vidéo de l'accueil : contenu aligné à gauche, sans encadré */
.hero {
  position: relative; min-height: 66vh;
  display: flex; align-items: center;
  padding: 48px 0;
  color: var(--white);
  background-size: cover; background-position: center;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6, 8, 12, .78) 0%, rgba(6, 8, 12, .5) 42%, rgba(6, 8, 12, .12) 80%, transparent 100%);
}
/* width:100% — .hero étant en flex, le conteneur se rétrécirait et se centrerait */
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 640px; margin-right: auto; text-align: left; }
.hero-kicker {
  display: inline-block; background: var(--primary); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 18px; border-radius: var(--radius-pill); margin-bottom: 22px;
}
.hero h1 {
  color: var(--white); font-size: clamp(34px, 5vw, 56px); font-weight: 600;
  max-width: 13em; margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}
/* Accent par la graisse et non par la couleur (décision de Tomi du 2026-10-15) : tout en blanc,
   « Ensemble, » en 600, « passons à l'action. » en 800. Le rouge reste aux boutons. */
.hero h1 em { font-style: normal; color: var(--white); font-weight: 800; }
.hero p {   /* plus grand et plus gras (demande de Tomi, 2026-10-19) : Montserrat 600, Barlow n'étant servi qu'en 400/500 */
  font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.6; max-width: 34em; margin-bottom: 34px;
  color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 2px 14px rgba(0, 0, 0, .6);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Texte du hero : version longue (ordinateur) / courte (téléphone) */
.hero-short { display: none; }

/* Bandeau de héros des pages internes */
.page-hero {
  position: relative; min-height: 65vh;
  display: flex; align-items: flex-end;
  color: var(--white);
  background-size: cover; background-position: center;
  padding: 90px 0 60px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, .82), rgba(10, 10, 12, .25) 65%);
}
.page-hero .container { position: relative; }
/* Le texte du héros s'aligne sur le logo et le contenu, comme sur l'accueil (choix de
   Carlos du 20/10/2026 : il était centré dans une boîte étroite, décalé de 200 px). */
.page-hero .container { width: 100%; }
.page-hero h1 { color: var(--white); font-size: clamp(32px, 4.5vw, 52px); max-width: 16em; }
.page-hero .hero-kicker { margin-bottom: 16px; }
.page-hero p { font-size: 19px; max-width: 36em; margin-top: 14px; color: rgba(255, 255, 255, .9); }

/* « ← Retour » (décision de Carlos du 2026-10-17) : en tête du <main>, affiché par js/main.js
   seulement si l'on vient d'une autre page du site. Posé sur le haut du héros (fond sombre,
   donc contour blanc .btn-outline), aligné sur le conteneur ; il défile avec la page. */
.retour-page { position: relative; z-index: 3; height: 0; }
.retour-page .btn {
  position: absolute; top: 22px; left: 24px;
  padding: 8px 18px 8px 14px; font-size: 14px; line-height: 1.3;
  background: rgba(10, 10, 12, .42); border-color: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.retour-page .btn:hover { background: var(--white); color: var(--ink); }

/* ---------- 7. Sections & titres ---------- */
.section { padding: 100px 0; }
/* Section collée au hero (bloc de don en tête des pages projet) */
.section.section-tight { padding-top: 44px; padding-bottom: 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .8); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.kicker {
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); padding: 7px 16px 7px 14px;
  border-radius: var(--radius-pill);
}
.kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}
.section-title { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 16px; }
.section-lead { max-width: 46em; font-size: 18px; }
.center .section-lead { margin: 0 auto; }

/* ---------- 8. Blocs de contenu ---------- */
/* Projets de l'accueil : bandes alternées pleine largeur */
.project-bands { margin-top: 48px; }
.project-band { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 68vh; }
.project-band:nth-child(even) { background: var(--bg); }
.project-band:nth-child(even) .proj-media { order: 2; }
.proj-media { height: 100%; min-height: 56vh; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-text { padding: clamp(28px, 5vw, 72px); }
.proj-text .kicker { margin-bottom: 14px; }
.project-band h3 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 16px; }
.project-band p { font-size: 18px; max-width: 32em; margin-bottom: 24px; }

/* Image + texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split .btn { margin-top: 24px; }
.split h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.split p + p { margin-top: 14px; }

/* Citation */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px); color: var(--ink); line-height: 1.5;
}
.quote cite { display: block; margin-top: 20px; font-style: normal; color: var(--primary-dark); font-weight: 600; }
.quote .mark { color: var(--primary); font-size: 60px; line-height: 0; }

/* Sponsors */
.sponsors {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 40px 56px; margin-top: 44px;
}
.sponsors img { height: 54px; width: auto; filter: grayscale(1); opacity: .65; transition: all .2s; }
.sponsors a:hover img { filter: none; opacity: 1; }

/* Bandeau d'appel au don */
.cta-band {
  position: relative; padding: 90px 0; text-align: center; color: var(--white);
  background-size: cover; background-position: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(15, 12, 8, .72); }
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 44px); max-width: 20em; margin: 0 auto 16px; }
.cta-band p { max-width: 38em; margin: 0 auto 30px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.cta-band .hero-actions { justify-content: center; }

/* Points forts (cartes à icône) — 3 colonnes, variante .cols-2 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.features.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: var(--hairline); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { font-size: 15.5px; }
.heart-ic { width: 16px; height: 16px; vertical-align: -2px; margin-right: 7px; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--primary); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 26px 22px; font-size: 15.5px; }

/* Tarifs forage */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.price-card {
  background: var(--white); border-radius: var(--radius); padding: 38px;
  box-shadow: var(--shadow); border-top: 5px solid var(--primary);
}
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-tag { font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--primary-dark); }
.price-tag small { font-size: 15px; font-weight: 600; color: var(--text); }
.price-card ul { list-style: none; margin: 18px 0 24px; }
.price-card li { padding: 7px 0 7px 28px; position: relative; font-size: 15.5px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Formulaires (contact) */
.form-card {
  background: var(--white); border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card .hint { font-size: 15px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 13.5px; color: var(--ink); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font-family: var(--font-body); font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  color: var(--ink); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--primary-soft); }
/* Case à cocher (accord e-mailing) : sur une ligne avec son texte */
.field-case label { display: flex; gap: 10px; align-items: flex-start; font: 400 15px/1.45 var(--font-body); color: var(--text); cursor: pointer; }
.field-case input { width: auto; flex: none; margin-top: 4px; accent-color: var(--primary); }
/* Champ piège anti-spam : hors de l'écran, ignoré des lecteurs d'écran */
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-merci { background: var(--primary-soft); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.don-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.gallery div { border-radius: var(--radius); height: 240px; background-size: cover; background-position: center; box-shadow: var(--shadow); }

/* Rendus 3D (plans du projet) — images entières, non rognées */
.renders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; align-items: start; }
.renders figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.renders img { width: 100%; height: auto; display: block; }
.renders figcaption { padding: 12px 16px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }

/* Pages légales (mentions légales, confidentialité) : bandeau bas, colonne de lecture */
.page-hero.page-hero-court { min-height: 0; padding: 120px 0 48px; }
/* Titre court : sans largeur imposée, le conteneur (enfant flex) se centrerait */
.page-hero.page-hero-court .container { width: 100%; }
.texte-legal { max-width: 46em; }
.texte-legal .maj { font-size: 15px; margin-bottom: 8px; }
.texte-legal h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 48px 0 14px; }
.texte-legal h3 { font-size: 18px; margin: 28px 0 8px; }
.texte-legal p, .texte-legal ul { margin-bottom: 14px; }
.texte-legal ul { padding-left: 1.3em; }
.texte-legal li { margin-bottom: 6px; }
.texte-legal li::marker { color: var(--primary); }
.texte-legal strong { color: var(--ink-soft); }
.texte-legal a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-sommaire {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 28px; margin: 28px 0 8px;
}
.legal-sommaire p { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.legal-sommaire ol { padding-left: 1.3em; columns: 2; column-gap: 32px; }
.legal-sommaire li { margin-bottom: 4px; break-inside: avoid; }
.legal-sommaire a { text-decoration: none; }
/* Un traitement de données = une carte : données, finalité, base légale, durée */
.legal-carte {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 26px 8px; margin: 18px 0;
}
.legal-carte h3 { margin-top: 0; }

/* ---------- 9. Impact & campagnes ---------- */
/* Statistiques — 4 colonnes, variantes .cols-3 et .stats5 (compteur détaillé) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stats.stats5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat { text-align: center; padding: 34px 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); }
.stat-num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(34px, 4vw, 52px); color: var(--primary); line-height: 1;
}
.stat-label { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .75); }

/* Campagnes — 3 colonnes, variante .cols-2 (réalisations) */
.campaigns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.campaigns.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 840px; margin-inline: auto; }
.campaign {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: var(--hairline); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.campaign:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.campaign-img { position: relative; height: 210px; background-size: cover; background-position: center; }
.campaign-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow);
}
.campaign-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.campaign-badge.done { background: var(--primary); color: var(--white); }
.campaign-badge.done::before { background: var(--white); }
.campaign-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.campaign h3 { font-size: 18px; line-height: 1.35; }
.campaign p { font-size: 15px; flex: 1; }

.progress { height: 10px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--green-light), var(--green));
  border-radius: var(--radius-pill); width: 0;
  transition: width 1.2s cubic-bezier(.2, .7, .3, 1);
}
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: 14px; font-family: var(--font-head); font-weight: 600; color: var(--ink);
}
.progress-meta .pct { color: var(--green-dark); }
/* Montant réel récolté (preuve sociale, cartes causes) */
.raised { margin: 2px 0 6px; font-size: 13.5px; color: var(--text); }
.raised strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 23px; color: var(--primary-dark); letter-spacing: -.01em; }

/* ---------- 10. Carte des puits (Leaflet) ---------- */
.map-wrap { margin-top: 40px; }
#puits-map {
  position: relative; z-index: 0; height: 520px; width: 100%;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); border: var(--hairline); background: var(--bg);
}
/* Avant le clic (RGPD, 2026-10-10) : même aspect que la carte Google de la page Contact,
   à la hauteur de la carte (pas de saut de mise en page). Voir js/carte-puits.js. */
#puits-map .carte-differee {
  height: 100%; border-radius: inherit; background: var(--primary-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center;
}
#puits-map .carte-differee p { margin: 0; }
.carte-differee-titre { font-weight: 600; color: var(--ink); }
.carte-differee-note { font-size: 13px; max-width: 34em; }
.carte-differee-erreur { color: var(--primary-dark); font-weight: 600; }
.carte-differee-erreur[hidden] { display: none; }
#puits-map .leaflet-control-attribution a { color: var(--primary-dark); } /* Leaflet : bleu */
.map-legend {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink);
}
.map-legend .lg-item { display: inline-flex; align-items: center; gap: 8px; }
.lg-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lg-dot.solaire { background: var(--primary); }
.lg-dot.manuel { background: var(--white); border: 2px solid var(--primary); }
.lg-ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 3, 0, .4); display: inline-block; }
.map-note { text-align: center; color: var(--text); font-size: 13px; margin-top: 14px; }
.leaflet-popup-content { font-family: var(--font-body); font-size: 13.5px; }
.leaflet-popup-content h4 { font-family: var(--font-head); color: var(--ink); margin-bottom: 4px; font-size: 15px; }

/* ---------- 11. Dons — contrôles communs (panier + bloc projet) ---------- */
/* Jauge d'objectif — style « stockage iPhone » : récolté + votre don + reste */
.goal-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-family: var(--font-head); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text);
}
.goal-head strong { color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.goal-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--line); }
.goal-seg { height: 100%; transition: width .25s ease; }
.goal-seg.recolte { background: var(--green); }
.goal-seg.ajout { background: repeating-linear-gradient(45deg, var(--green-light), var(--green-light) 5px, #86D3B9 5px, #86D3B9 10px); }
.goal-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text); }
.goal-legend b { color: var(--ink); font-family: var(--font-head); }
.goal-legend .reste { color: var(--green-dark); font-weight: 600; }
.goal-atteint { color: var(--success); font-weight: 700; font-family: var(--font-head); font-size: 12.5px; }

/* Curseur de montant */
.tile-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 99px; background: var(--line); outline: none; cursor: pointer;
}
.tile-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px;
  border-radius: 50%; background: var(--primary); border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); cursor: pointer;
}
.tile-range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary);
  border: 3px solid var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); cursor: pointer;
}
.tile-range:focus-visible { outline: none; }
.tile-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--primary-soft), 0 0 0 6px var(--primary-dark); }
.tile-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--primary-soft), 0 0 0 6px var(--primary-dark); }
.slider-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text); }

/* Saisie libre du montant (aucun plafond) */
.dp-manual { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-num, .tile-num, .libre-input {
  width: 110px; padding: 8px 12px; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}

/* Compteurs de quantité (puits, enfants) */
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qty-row.single { justify-content: flex-start; }        /* compteur + libellé groupés à gauche (parrainage) */
.qty-row.unit-row { padding: 12px 0; }                  /* lignes puits méca/élec */
.qty-row.unit-row + .qty-row.unit-row { border-top: 1px solid var(--line); }
.qty-ctl { display: inline-flex; align-items: center; gap: 10px; }
.qtyb, .qty-btn {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--primary); background: var(--white); color: var(--primary-dark);
  font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 1;
}
.qty-btn { width: 44px; height: 44px; font-size: 22px; }
.qtyb:hover, .qty-btn:hover { background: var(--primary-soft); }
.qty-input {
  width: 66px; text-align: center; padding: 8px 6px; font-family: var(--font-head); font-weight: 800;
  font-size: 18px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
.qty-input:focus, .dp-num:focus, .tile-num:focus, .libre-input:focus { outline: none; border-color: var(--primary); }
.qty-input:focus-visible, .dp-num:focus-visible, .tile-num:focus-visible, .libre-input:focus-visible { outline: 3px solid var(--primary-soft); }
.qty-x { font-size: 14px; color: var(--text); }
.unit-label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); display: flex; flex-direction: column; }
.unit-label small { font-weight: 400; color: var(--primary-dark); font-size: 12.5px; }
.qty-impact { font-size: 14px; color: var(--ink); }
.qty-impact b { color: var(--primary-dark); }
.qty-hint { font-size: 13px; color: var(--text); font-style: italic; }

/* Bloc d'impact (mode quantité) */
.dp-impact { background: var(--primary-soft); border-radius: 14px; padding: 16px 18px; }
.dp-impact-num { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--primary-dark); }  /* panier */
.dp-impact-txt { font-size: 13.5px; color: var(--ink); margin-top: 2px; }
.dp-impact-line { font-family: var(--font-head); font-weight: 800; font-size: 17px; line-height: 1.4; color: var(--primary-dark); margin: 0; }
.dp-cta.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* Choix ponctuel / mensuel (bouton radio masqué visuellement mais accessible au clavier) */
.tile-freq { display: flex; gap: 8px; }
.tile-freq label {
  position: relative; flex: 1; text-align: center; padding: 9px 6px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); font-family: var(--font-head); font-weight: 600;
  font-size: 13px; color: var(--text); cursor: pointer; transition: all .15s;
}
.tile-freq input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tile-freq label.checked { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tile-freq label:has(input:focus-visible) { outline: 3px solid var(--primary-dark); outline-offset: 2px; }
.tile-freq label.is-disabled { opacity: .4; cursor: not-allowed; background: var(--line-strong); }   /* parrainage : mensuel seulement */

/* ---------- 12. Dons — panier (tuiles + résumé) ---------- */
.don-layout { margin-top: 40px; }   /* le résumé est une barre fixée en bas : les tuiles prennent toute la largeur */
.don-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.don-tile {
  background: var(--white);
  border-radius: var(--radius); padding: 0 26px 26px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
  border: 2px solid transparent; transition: border-color .15s, box-shadow .15s, transform .15s;
}
/* Photo en bandeau (chemin relatif à ce fichier CSS : ../assets/…) */
.don-tile::before {
  content: ""; flex: 0 0 auto; height: 168px; margin: 0 -26px 6px;
  background-image: var(--tile-bg, none); background-size: cover; background-position: var(--tile-pos, center);   /* --tile-pos : cadrage par tuile */
}
/* Variante WebP plus légère (--tile-bg-webp), le JPEG (--tile-bg) restant en secours */
@supports (background-image: image-set("a.webp" type("image/webp"))) {
  .don-tile::before { background-image: image-set(var(--tile-bg-webp, var(--tile-bg)) type("image/webp"), var(--tile-bg) type("image/jpeg")); }
}
.don-tile.active { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.don-tile h3 { font-size: 20px; line-height: 1.25; }
.don-tile .tile-note { font-size: 14px; color: var(--text); margin-top: -4px; }
.tile-goal { display: flex; flex-direction: column; gap: 7px; }
.multi-impact { margin-top: -2px; }
.tile-slider { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.slider-value { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.slider-value .amount-big { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--ink); line-height: 1; }
.slider-value .amount-freq { font-size: 13px; color: var(--text); }
.tile-more {
  align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  color: var(--primary-dark); text-decoration: none;
}
.tile-more:hover { text-decoration: underline; }
/* Bouton d'ajout (base .btn-ghost) : fond foncé une fois le projet ajouté */
.tile-add { width: 100%; padding: 12px; font-size: 14.5px; background: var(--white); }
.tile-add:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.don-tile.active .tile-add { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Résumé du panier : barre fixée en bas de l'écran (décision de Tomi du 2026-10-15), toujours
   visible pendant le défilement. Une ligne : titre | projets choisis (pastilles) | totaux | bouton. */
body:has(#summary) { padding-bottom: 128px; }
body:has(#summary) .floating-don { display: none !important; }
.don-summary {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--line); box-shadow: 0 -14px 40px rgba(26, 26, 26, .12);
  padding: 14px max(24px, calc((100vw - 1272px) / 2)) 10px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; column-gap: 0; row-gap: 2px; align-items: center;
}
.don-summary h3 { grid-column: 1; grid-row: 1; font-size: 15px; line-height: 1.25; max-width: 7.5em; margin: 0 32px 0 0; }
.don-summary table { grid-column: 2; grid-row: 1; display: none; min-width: 0; font-size: 13.5px; }
/* La barre ne montre que les totaux (demande de Tomi du 2026-10-15) ; la liste des projets
   n'apparaît que pour le message « Ajoutez un projet à votre don » quand le don est vide. */
.don-summary table:has(td.muted:only-child) { display: block; }
.don-summary thead { display: none; }
.don-summary tbody { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px 0; }
.don-summary tr { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px 12px; }
.don-summary td { padding: 0; border: 0; color: var(--ink); white-space: nowrap; }
.don-summary td.muted, .don-summary small.muted { color: var(--text); }
.don-summary td:last-child { font-family: var(--font-head); font-weight: 700; }
.don-summary tr:has(td.muted:only-child) { background: transparent; border: 0; padding-left: 0; }
.don-summary td br, .don-summary td br + small { display: none; }
.don-summary .freq-tag {
  font-size: 11px; font-family: var(--font-head); font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-pill); margin-left: 6px;
}
.freq-tag.ponctuel { background: var(--primary-soft); color: var(--primary-dark); }
.freq-tag.mensuel { background: var(--line-strong); color: var(--ink); }
.don-total {
  grid-row: 1; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 2px 32px; border: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--ink); white-space: nowrap;
}
.don-total span:first-child { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
/* Les deux totaux côte à côte, séparés par un trait fin */
#total-ponctuel { grid-column: 3; }
#total-mensuel { grid-column: 4; }
#total-ponctuel:not([hidden]) + #total-mensuel:not([hidden]) { border-left: 1px solid var(--line); }
.don-total.don-total-sub { font-size: 24px; }
.don-receipt-note { display: none; }   /* explication des reçus : masquée dans la barre (place), à replacer si besoin */
.don-summary .btn-block { grid-column: 5; grid-row: 1; width: auto; min-width: 230px; margin: 0 0 0 8px; }
.don-secure { grid-column: 1 / -1; grid-row: 2; font-size: 11.5px; margin: 8px 0 0; color: var(--text); text-align: center; }

/* ---------- 13. Dons — bloc projet (haut des pages projet, js/don-projet.js) ---------- */
.don-projet {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.dp-info { padding: 34px 36px; }
/* Orange ambré dans le bloc : on redéfinit l'accent pour tout son contenu */
.don-projet {
  --primary: var(--don); --primary-dark: var(--don-dark); --primary-deep: var(--don-dark);
  --primary-soft: var(--don-soft); --shadow-red: 0 10px 24px rgba(255, 159, 13, .35);
}
.don-projet .btn-primary { color: var(--ink); }
.don-projet .btn-primary:hover { background: var(--don-hover); color: var(--ink); box-shadow: 0 14px 30px rgba(219, 132, 0, .40); }
.don-projet .dp-action { background: var(--don-panel); }
.don-projet .dp-impact { background: var(--green-soft); }
.don-projet .dp-impact-line { color: var(--green-dark); }
.dp-info .kicker { margin-bottom: 6px; }
.dp-info h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; }
.dp-lead { font-size: 15px; color: var(--text); margin: 10px 0 20px; }
.dp-targets { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.dp-target {
  flex: 1; min-width: 150px; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--white); transition: border-color .15s, background .15s;
}
.dp-target b { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--ink); }
.dp-target span { font-size: 12.5px; color: var(--text); }
.dp-target.active { border-color: var(--primary); background: var(--primary-soft); }
.dp-goal { display: flex; flex-direction: column; gap: 8px; }
.dp-more {
  display: inline-block; margin-top: 18px; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; color: var(--primary-dark); text-decoration: none;
}
.dp-more:hover { text-decoration: underline; }

.dp-action {
  padding: 34px 36px; background: var(--bg);
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
  border-left: 1px solid var(--line);
}
.dp-value { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dp-amount { font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--ink); line-height: 1; }
.dp-per { font-size: 13.5px; color: var(--text); }
.dp-qty { display: flex; align-items: center; gap: 12px; transition: opacity .2s; }
.dp-qty.is-off { opacity: .45; }
.dp-sub-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.dp-sub-tab {
  flex: 1; padding: 9px 10px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
.dp-sub-tab.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.dp-manual.dp-manual-lg { font-size: 17px; font-weight: 600; color: var(--ink); gap: 12px; margin-top: 4px; }
.dp-manual.dp-manual-lg .dp-num { width: 170px; padding: 12px 16px; font-size: 22px; border-radius: 12px; }
/* Panier, « montant libre seul » : libellé sur sa ligne, puis champ pleine largeur + € */
.dp-manual-lg .ml-lab { width: 100%; }
.dp-manual-lg .ml-champ { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; min-width: 0; }
.dp-manual-lg .ml-champ .tile-num { flex: 1; min-width: 0; width: auto; padding: 12px 16px; font-size: 20px; border-radius: 12px; }
.dp-manual-lg .ml-champ .tile-num[readonly] { text-align: center; cursor: default; background: var(--bg); }
.dp-libre { margin-top: 16px; font-size: 16px; font-weight: 600; color: var(--ink); gap: 10px; }
.dp-libre .libre-input { width: 150px; padding: 12px 14px; font-size: 18px; }
.dp-full {
  width: 100%; padding: 10px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1.5px dashed var(--primary); background: var(--white); color: var(--primary-dark);
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
}
.dp-full:hover { background: var(--primary-soft); }
.dp-cta { width: 100%; margin-top: 4px; }
.dp-fisc { font-size: 12px; color: var(--text); margin: 0; }

/* ---------- 14. Cagnotte à paliers (chantier école, js/cagnotte.js) ---------- */
.cagnotte {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 32px; margin-top: 36px;
}
.cagnotte-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 10px 24px; margin-bottom: 20px;
}
.cagnotte-collecte { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--primary); }
.cagnotte-head .sur { color: var(--text); font-size: 15px; }
.cagnotte-next { font-size: 14.5px; color: var(--ink); }
.cagnotte-next strong { color: var(--primary-dark); }
.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step-bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.step-fill { height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width 1s ease; }
.step.current .step-fill { background: repeating-linear-gradient(45deg, var(--green), var(--green) 6px, var(--green-light) 6px, var(--green-light) 12px); }
.step-label { font-size: 12px; line-height: 1.35; color: var(--text); }
.step-label b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 12.5px; }
.step-label .step-amt { color: var(--primary-dark); font-weight: 600; }

.paliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.palier {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; border-left: 4px solid var(--line); display: flex; flex-direction: column; gap: 8px;
}
.palier.done { border-left-color: var(--success); }
.palier.current { border-left-color: var(--primary); box-shadow: var(--shadow-lg); }
.palier-status {
  font-family: var(--font-head); font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: .05em; display: inline-flex; align-items: center; gap: 6px;
}
.palier.done .palier-status { color: var(--success); }
.palier.current .palier-status { color: var(--primary-dark); }
.palier.todo .palier-status { color: var(--text); }
.palier h3 { font-size: 17px; line-height: 1.25; }
.palier p { font-size: 13.5px; color: var(--text); }
.palier-amount { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--ink); margin-top: auto; }

/* ---------- 15. Attestation (cartes profil, vidéo) ---------- */
/* 1000 px (au lieu de 900) : l'étiquette « Vous êtes une entreprise » tient sur une ligne. */
.profil-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 40px auto 0; }
.profil-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: var(--hairline);
  padding: 22px 24px; display: flex; gap: 18px; align-items: center;
}
.profil-medal { flex: 0 0 116px; width: 116px; height: 116px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); }
.profil-medal svg { display: block; width: 100%; height: 100%; }
.profil-card h3 { font-size: 19px; line-height: 1.25; margin: .15em 0 .4em; }
.profil-card p { margin: .35em 0; }
.video-wrap { max-width: 860px; margin: 40px auto 0; }
.video-wrap video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; background: #000; }
.video-wrap video { height: auto; aspect-ratio: 16 / 9; }
.video-arret { margin: 14px 0 0; text-align: center; }
.video-note { margin: 10px 0 0; text-align: center; color: var(--text); font-size: .95rem; }

/* ---------- 16. Pied de page & bouton flottant ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-title {
  font-family: var(--font-head); font-weight: 800; line-height: 1.2;
  color: var(--white); font-size: 15px; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 18px;
}
.footer-title.footer-sub { margin-top: 26px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:not(.btn) { color: rgba(255, 255, 255, .7); transition: color .15s; }
.site-footer a:not(.btn):hover { color: var(--primary); }
.footer-logo img { height: 52px; margin-bottom: 18px; }
.footer-legal { font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0; font-size: 14px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* Bouton don flottant (mobile) */
.floating-don {
  display: none; position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 90;
  box-shadow: var(--shadow-lg); transition: opacity .25s ease, transform .25s ease;
}
/* Masqué tant que le hero de l'accueil est à l'écran (il a déjà ses propres boutons) */
.hero-in-view .floating-don { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- 17. Animations d'apparition ---------- */
/* Masquage initial uniquement si le JS tourne (classe .js posée dans le <head>) :
   sans JS, ou si le script échoue, tout le contenu reste visible. */
.js .reveal {
  opacity: 0; transform: translate(var(--rx, 0), var(--ry, 24px));
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.from-left { --rx: -50px; --ry: 0; }
.reveal.from-right { --rx: 50px; --ry: 0; }
.js .reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* Cascade : les enfants d'un conteneur .stagger apparaissent en séquence
   (le décalage progressif est posé par js/main.js à l'entrée dans l'écran) */
.js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
.js .stagger.visible > * { opacity: 1; transform: none; }

/* Accessibilité : pas d'animation si l'utilisateur a réduit les animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .progress-bar, .step-fill, .goal-seg { transition: none; }
  .btn:hover, .campaign:hover { transform: none; }
  /* Vidéo du hero : remplacée par son image fixe (le fond du .hero) */
  .hero-video { display: none; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .campaigns, .features, .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .don-grid, .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .don-tiles { grid-template-columns: repeat(2, 1fr); }
  .don-summary { grid-template-columns: minmax(0, 1fr) auto auto auto; padding-left: 20px; padding-right: 20px; }
  .don-summary h3 { display: none; }
  .don-summary table { grid-column: 1; }
  #total-ponctuel { grid-column: 2; } #total-mensuel { grid-column: 3; }
  .don-total, .don-total.don-total-sub { padding: 2px 20px; font-size: 20px; }
  .don-summary .btn-block { grid-column: 4; min-width: 0; }
}
@media (max-width: 640px) {
  body:has(#summary) { padding-bottom: 170px; }
  .don-summary { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 8px; padding: 10px 16px 12px; }
  .don-summary table { grid-column: 1 / -1; grid-row: 1; }
  .don-total, .don-total.don-total-sub { gap: 0; padding: 0; font-size: 19px; }
  #total-ponctuel:not([hidden]) + #total-mensuel:not([hidden]) { padding-left: 12px; }
  .don-total span:first-child { font-size: 10.5px; }
  #total-ponctuel { grid-column: 1; grid-row: 2; } #total-mensuel { grid-column: 2; grid-row: 2; }
  #total-ponctuel[hidden] + #total-mensuel { grid-column: 1; }
  .don-summary .btn-block { grid-column: 1 / -1; grid-row: 3; width: 100%; font-size: 15.5px; padding: 14px 16px; }
  .don-secure { display: none; }
}
@media (max-width: 900px) {
  .stats.stats5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .paliers { grid-template-columns: 1fr; }
  .stepper { grid-auto-flow: row; grid-auto-columns: auto; }
}
@media (max-width: 820px) {
  .project-band { grid-template-columns: 1fr; }
  .project-band:nth-child(even) .proj-media { order: 0; }
  .proj-media { min-height: 42vh; }
  .don-projet { grid-template-columns: 1fr; }
  .dp-action { border-left: 0; border-top: 1px solid var(--line); }
}
/* Menu replié (≤ 1180 px, voir § 5) : « Faire un don » reste à portée, comme sur mobile */
@media (max-width: 1180px) {
  .floating-don { display: block; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white);
    box-shadow: var(--shadow-lg); padding: 18px 24px 26px;
    display: none; flex-direction: column; align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 18px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .campaigns, .features, .stats, .gallery,
  .campaigns.cols-2, .features.cols-2, .stats.cols-3 { grid-template-columns: 1fr; }
  .profil-cards { grid-template-columns: 1fr; }
  .don-tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-don { display: block; }
  .section { padding: 64px 0; }
  #puits-map { height: 400px; }
  .renders { grid-template-columns: 1fr; }
  .page-hero.page-hero-court { padding: 64px 0 36px; }
  /* « ← Retour » affiché : de l'air entre lui et l'étiquette du héros court */
  .retour-page .btn { top: 16px; }
  .retour-page:not([hidden]) + .page-hero.page-hero-court { padding-top: 84px; }
  .legal-sommaire ol { columns: 1; }
  .legal-sommaire, .legal-carte { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 620px) {
  /* Paires de boutons empilées : même largeur partout (héros, bandeaux, sections), au lieu
     de deux pilules de largeurs différentes alignées à gauche (contrôle UX du 2026-10-20). */
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  /* Hero mobile : le texte occupe toute la largeur → voile sombre uniforme
     (le dégradé gauche→droite du bureau laissait la moitié droite trop claire) */
  .hero::before { background: linear-gradient(180deg, rgba(6, 8, 12, .62) 0%, rgba(6, 8, 12, .72) 55%, rgba(6, 8, 12, .82) 100%); }
  .hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
  .hero p { font-size: 17px; line-height: 1.55; margin-bottom: 24px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 1px 10px rgba(0, 0, 0, .7); }
  .hero-kicker { font-size: 11.5px; padding: 7px 14px; margin-bottom: 16px; }
  /* Hero mobile compact : titre plus petit, texte court, boutons resserrés */
  .hero { min-height: 0; padding: 44px 0 40px; }
  .hero h1 { font-size: 31px; margin-bottom: 14px; }
  .hero-long { display: none; }
  .hero-short { display: inline; }
  .hero .hero-actions { gap: 10px; }
  .hero .hero-actions .btn-lg { padding: 14px 20px; font-size: 15px; }
}
@media (max-width: 560px) {
  .stats.stats5 { grid-template-columns: repeat(2, 1fr); }
  /* Cartes Particulier / Entreprise : l'illustration au-dessus du texte (à côté, le texte
     n'avait plus que 150 px et l'étiquette passait sur trois lignes). */
  .profil-card { flex-direction: column; align-items: flex-start; }
  .profil-medal { flex: none; width: 96px; height: 96px; }
}

/* ---------- 19. Débordements et petits écrans (contrôle UX du 2026-10-20) ---------- */
/* Héros des pages : le conteneur est un enfant flex ; sans min-width: 0, un mot plus long
   que l'écran (« belastingvermindering », page NL Attestation) l'élargissait au-delà de
   390 px et coupait le titre et le texte à droite. Le mot se coupe alors en fin de ligne. */
.page-hero .container { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
/* Néerlandais : césure des seuls mots longs (14 lettres et plus), jamais « er-kend ». */
:lang(nl) h1, :lang(nl) h2 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 14 6 6; }
@media (max-width: 820px) {
  /* Bloc de don des pages projet sur une colonne : la colonne ne s'élargit plus d'après son
     contenu (en NL, « Peterschappen » + « 1 weeskind / 467 weeskinderen » la poussaient à 444 px). */
  .don-projet { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  /* Bloc de don : 20 px de marge intérieure au lieu de 36 ; le bouton tient en une ou
     deux lignes au lieu de trois (« Choisissez un nombre de puits ou un montant »). */
  .dp-info, .dp-action { padding: 26px 20px; }
  /* Jauge : la valeur passe sous le libellé, alignée à droite, quand les deux ne tiennent
     pas sur une ligne. */
  .goal-head { flex-wrap: wrap; row-gap: 2px; }
  .goal-head strong { margin-left: auto; }
}
