/* =========================================================
   Fondation RZB — V4 « La Racine Rayonnante »
   Direction : solaire, chaleureuse, communautaire, ivoirienne.
   Typo : Ojuju (display) + Hanken Grotesk (texte).
   ⚠ Couleurs-communes dérivées du logo — À VALIDER avec RZB.
   ========================================================= */

:root {
  /* — Neutres clairs & propres (comme le fond du logo, PAS de beige) — */
  --blanc:        #FFFFFF;   /* fond principal, blanc */
  --blanc-2:      #EEF2FB;   /* fond alterné, bleu-gris très clair */
  --encre:        #0E1733;   /* texte, navy très foncé */
  --encre-soft:   #515A7C;   /* texte secondaire (navy désaturé) */
  --nuit:         #081026;   /* sections sombres = navy profond */
  --nuit-2:       #0D1838;

  /* — Marque (couleurs RÉELLES du logo RZB) — */
  --bleu:         #001878;   /* bleu profond du logo — ancre de marque */
  --terre:        #D8001E;   /* ROUGE vif du logo — action / CTA (var conservée) */
  --terre-deep:   #A60017;
  --vert:         #189030;   /* vert du logo — « racine » / croissance */

  /* — Cinq communes — couleurs vives échantillonnées dans le logo — ⚠ à valider RZB — */
  --abobo:        #F2A40C;   /* enfance — jaune-soleil */
  --yamoussoukro: #0090D8;   /* éducation — cyan */
  --bouake:       #D80078;   /* femmes — magenta */
  --korhogo:      #189030;   /* santé — vert */
  --daloa:        #E2540F;   /* culture — orange */
  --violet:       #601878;   /* du logo — disponible */

  /* — Typo — */
  --font-display: 'Ojuju', 'Hanken Grotesk', system-ui, sans-serif;
  --font-text:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* — Layout — */
  --maxw: 1280px;
  --pad-x: clamp(20px, 5vw, 72px);
  --pad-y: clamp(80px, 11vw, 168px);

  /* — Motion — */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  background: var(--blanc);
  color: var(--encre);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }

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

::selection { background: var(--terre); color: var(--blanc); }

/* — Typo de base — */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(34px, 5vw, 62px); font-weight: 600; }
h2 em, h3 em, .hero-title em { font-style: normal; color: var(--bleu); }
h3 { font-size: clamp(21px, 2.2vw, 28px); }

.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.62; color: var(--encre-soft); max-width: 62ch; }
.lede strong { color: var(--encre); font-weight: 600; }
.on-dark { color: rgba(255, 255, 255, 0.82) !important; }
.on-dark strong { color: #fff; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--encre); color: var(--blanc); padding: 10px 18px; border-radius: 4px;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--terre); outline-offset: 3px; border-radius: 2px; }

/* — Eyebrow / section labels (PAS de monospace) — */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--encre-soft); text-transform: uppercase;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--korhogo); box-shadow: 0 0 0 4px rgba(62,157,92,.18); }
.section-no {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--bleu); letter-spacing: 0.04em; margin-right: 12px;
}
.section-no.on-dark { color: var(--abobo); }
.section-tag {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--encre-soft);
}
.section-tag.on-dark { color: rgba(255,255,255,.6); }

/* ============ BOUTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-text); font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .4s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--terre); color: var(--blanc); box-shadow: 0 12px 28px -14px rgba(216,0,30,.6); }
.btn-primary:hover { background: var(--terre-deep); transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(216,0,30,.75); }

.btn-solar { background: var(--abobo); color: var(--nuit); box-shadow: 0 12px 30px -12px rgba(242,165,22,.7); }
.btn-solar:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-line { background: transparent; color: var(--encre); border-color: rgba(33,26,18,.25); }
.btn-line:hover { border-color: var(--encre); transform: translateY(-2px); }
.btn-line.on-dark { color: var(--blanc); border-color: rgba(255,255,255,.35); }
.btn-line.on-dark:hover { border-color: var(--blanc); background: rgba(255,255,255,.06); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bleu); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color .3s, gap .3s; }
.link-arrow:hover { border-color: var(--bleu); gap: 12px; }
.link-arrow .arr { transition: transform .3s var(--ease); }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: background .4s, padding .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px) saturate(150%);
  padding: 10px 0; box-shadow: 0 1px 0 rgba(33,26,18,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-logo {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; background: #fff;
}
.brand-logo img { width: 102%; height: 102%; margin: -1%; object-fit: contain; }
.brand-logo.big { width: 84px; height: 84px; }
.site-header.scrolled .brand-logo { width: 50px; height: 50px; transition: width .4s, height .4s; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-soft); }

.nav { display: flex; gap: 30px; }
.nav-link { position: relative; text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--encre); padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--terre); transition: width .35s var(--ease); }
.nav-link:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2px; background: var(--encre); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--nuit);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.mobile-nav a { color: var(--blanc); text-decoration: none; font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.mobile-nav .btn { margin-top: 14px; }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(40px, 6vw, 70px);
  background:
    radial-gradient(120% 90% at 78% 18%, var(--blanc-2), transparent 60%),
    var(--blanc);
}
.hero-glow {
  position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(0,144,216,.13), rgba(242,164,12,.10) 45%, transparent 72%);
  pointer-events: none;
}
.radiant { position: absolute; top: 47%; right: 4%; transform: translateY(-50%); width: 64vw; max-width: 760px; aspect-ratio: 1; pointer-events: none; opacity: .92; }
.radiant svg { width: 100%; height: 100%; overflow: visible; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(30px, 5vw, 70px); align-items: center; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 132px);
  font-weight: 700; line-height: 0.96; letter-spacing: -0.035em;
  margin: 22px 0 28px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; }
.hero-title .racine { color: var(--vert); position: relative; font-weight: 800; }
.hero-title .racine::after {
  content: ''; position: absolute; left: 0; bottom: 0.06em; width: 100%; height: 0.09em;
  background: var(--abobo); border-radius: 4px; transform: scaleX(0); transform-origin: left;
  animation: underdraw 0.9s var(--ease) 1.5s forwards;
}
@keyframes underdraw { to { transform: scaleX(1); } }

.hero-lede { max-width: 48ch; font-size: clamp(17px, 1.45vw, 21px); color: var(--encre-soft); }
.hero-lede strong { color: var(--encre); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* hero figure : photo dans un arc */
.hero-figure { position: relative; }
.arc-photo {
  position: relative; border-radius: 48% 48% 20px 20px / 42% 42% 4% 4%;
  overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 34px 64px -30px rgba(33,26,18,.55);
  border: 7px solid var(--blanc);
}
.arc-photo img { width: 100%; height: 100%; object-fit: cover; }
.arc-photo figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(26,19,13,.55); backdrop-filter: blur(6px); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 6px 12px; border-radius: 100px;
}
.hero-stat {
  position: absolute; right: -8px; bottom: -22px; z-index: 3;
  background: var(--nuit); color: var(--blanc); padding: 18px 22px; border-radius: 18px;
  box-shadow: 0 20px 44px -20px rgba(33,26,18,.7); max-width: 230px;
}
.hero-stat-n { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: var(--abobo); line-height: 1; display: block; }
.hero-stat-l { font-size: 12.5px; color: rgba(255,255,255,.78); line-height: 1.35; margin-top: 6px; display: block; }
.hero-stat-l em { font-style: normal; opacity: .6; }

.hero-marquee { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid rgba(33,26,18,.12); border-bottom: 1px solid rgba(33,26,18,.12); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 26px; align-items: center; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 32px); color: var(--encre); animation: marquee 22s linear infinite; }
.marquee-track .sep { color: var(--terre); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ ORIGINE ============ */
.origine { padding-block: var(--pad-y); background: var(--blanc); }
.origine-grid { display: grid; grid-template-columns: 0.32fr 0.68fr; gap: clamp(30px, 5vw, 80px); }
.origine-label { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 100px; align-self: start; }
.origine-label .section-no { font-size: 17px; }
.origine-body h2 { margin-bottom: 22px; max-width: 16ch; }
.founder-quote {
  margin: 32px 0; padding-left: 26px; border-left: 3px solid var(--bleu);
  font-family: var(--font-display); font-style: normal; font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 400; line-height: 1.32; color: var(--encre);
}
.founder-quote cite { display: block; margin-top: 16px; font-family: var(--font-text); font-style: normal; font-size: 14px; font-weight: 600; color: var(--encre-soft); }

/* ============ COMMUNES ============ */
.communes { padding-block: var(--pad-y); background: var(--blanc-2); }
.communes-head { display: grid; grid-template-columns: 1fr 0.8fr; gap: 30px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.communes-head h2 { margin-top: 14px; max-width: 14ch; }
.communes-intro { color: var(--encre-soft); font-size: 17.5px; }

.communes-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.commune {
  position: relative; overflow: hidden;
  background: var(--blanc); border-radius: 24px; padding: 28px 26px 28px;
  display: flex; flex-direction: column; gap: 11px; min-height: 312px;
  box-shadow: 0 1px 0 rgba(33,26,18,.05), inset 0 0 0 1px rgba(33,26,18,.05);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.commune::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: var(--c, var(--terre)); }
.commune:hover { transform: translateY(-7px); box-shadow: 0 30px 54px -28px rgba(33,26,18,.45); }
.commune-no {
  position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; z-index: 2;
  display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.commune-dom { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--encre-soft); padding-right: 44px; }
.commune h3 { margin-top: 2px; padding-right: 8px; }
.commune h3 em { color: var(--c); font-style: normal; }
.commune p { font-size: 15px; color: var(--encre-soft); line-height: 1.55; flex-grow: 1; }
.commune-place { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--encre); }
.commune-place::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.commune-arc {
  position: absolute; right: -70px; bottom: -70px; width: 172px; height: 172px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, var(--c), transparent 70%); opacity: .12;
  transition: transform .6s var(--ease), opacity .5s;
}
.commune:hover .commune-arc { transform: scale(1.5); opacity: .2; }

.commune-cta { background: var(--nuit); color: var(--blanc); justify-content: center; }
.commune-cta::before { background: var(--abobo); }
.commune-cta h3 { color: var(--blanc); }
.commune-cta h3 em { color: var(--abobo); font-style: normal; }
.commune-cta p { color: rgba(255,255,255,.7); }
.commune-cta .btn-line { color: var(--blanc); border-color: rgba(255,255,255,.35); align-self: start; margin-top: 6px; }

/* ============ CARTE CÔTE D'IVOIRE ============ */
.carte { padding-block: var(--pad-y); background: var(--blanc); }
.carte-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.carte-copy h2 { margin: 12px 0 18px; max-width: 12ch; }
.carte-legend { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.carte-legend li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--encre-soft); }
.carte-legend strong { color: var(--encre); font-weight: 700; }
.carte-legend .lg-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--c); flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.carte-map { position: relative; }
.carte-map svg { width: 100%; height: auto; overflow: visible; }

.ci-fill { fill: var(--blanc-2); }
.ci-outline {
  fill: none; stroke: var(--bleu); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round;
}
.ci-route { fill: none; stroke: var(--terre); stroke-width: 3.5; stroke-dasharray: 2 14; stroke-linecap: round; opacity: 0; transition: opacity .5s ease 1.5s; }
.carte-map.drawn .ci-route { opacity: .85; }
.ci-marker { opacity: 0; transition: opacity .55s var(--ease); }
.carte-map.drawn .ci-marker { opacity: 1; }
.ci-label { font-family: var(--font-display); font-weight: 700; font-size: 27px; fill: var(--encre); }
.ci-pulse { transform-box: fill-box; transform-origin: center; opacity: .55; }
.carte-map.drawn .ci-pulse { animation: ciPulse 2.4s ease-out infinite; }
@keyframes ciPulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* ============ IMPACT ============ */
.impact { padding-block: var(--pad-y); background: var(--nuit); color: var(--blanc); position: relative; }
.impact-head { max-width: 56ch; margin-bottom: clamp(40px, 5vw, 64px); }
.impact-head h2 { color: var(--blanc); margin: 14px 0 18px; }
.impact-head h2 em { color: var(--abobo); }
.impact-stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); }
.impact-stats li { border-top: 2px solid rgba(255,255,255,.18); padding-top: 18px; }
.stat-n { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 78px); line-height: 0.95; color: var(--abobo); display: block; }
.impact-stats li:nth-child(2) .stat-n { color: var(--korhogo); }
.impact-stats li:nth-child(3) .stat-n { color: var(--daloa); }
.impact-stats li:nth-child(4) .stat-n { color: var(--bouake); }
.stat-l { font-size: 14.5px; color: rgba(255,255,255,.75); margin-top: 10px; display: block; line-height: 1.4; }
.impact-note { margin-top: 30px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ============ CERCLE (don) — terre latéritique chaude ============ */
.cercle {
  position: relative; overflow: hidden; padding-block: var(--pad-y); color: var(--blanc);
  background:
    radial-gradient(85% 120% at 12% 8%, #1438B4, transparent 55%),
    linear-gradient(150deg, #001878 0%, #052A9E 52%, #000E4A 100%);
}
.radiant-dark { opacity: .38; right: auto; left: -22%; mix-blend-mode: screen; }
.cercle-inner { position: relative; z-index: 2; max-width: 760px; }
.cercle-copy h2 { color: var(--blanc); margin: 12px 0 20px; }
.cercle-copy h2 em { color: var(--abobo); }
.cercle-tiers { list-style: none; margin: 28px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.cercle-tiers li {
  display: flex; align-items: center; gap: 18px; font-size: 15.5px; color: rgba(255,255,255,.85);
  padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); transition: background .3s, transform .35s var(--ease), border-color .3s;
}
.cercle-tiers li:hover { background: rgba(255,255,255,.11); transform: translateX(5px); border-color: rgba(244,166,19,.5); }
.cercle-tiers li span { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--abobo); min-width: 128px; flex-shrink: 0; }
.cercle-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cercle-trust { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); }
.cercle-trust em { font-style: normal; color: var(--abobo); }

/* ============ TRANSPARENCE ============ */
.transparence { padding-block: var(--pad-y); background: var(--blanc); }
.transp-grid { display: grid; grid-template-columns: 1fr 0.7fr; gap: clamp(34px, 5vw, 80px); align-items: start; }
.transp-grid h2 { margin: 14px 0 20px; max-width: 14ch; }
.transp-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.transp-list li { padding: 20px 0; border-bottom: 1px solid rgba(33,26,18,.12); font-size: 16px; color: var(--encre-soft); }
.transp-list li:first-child { border-top: 1px solid rgba(33,26,18,.12); }
.tp-k { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--encre); margin-bottom: 3px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--nuit); color: rgba(255,255,255,.8); padding-top: clamp(54px, 7vw, 90px); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 50px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-tag { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--blanc); line-height: 1.15; }
.footer-tag em { font-style: normal; color: var(--abobo); }
.footer-col h4 { font-family: var(--font-text); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.8); text-decoration: none; font-size: 15px; margin-bottom: 10px; transition: color .3s; }
.footer-col a:hover { color: var(--abobo); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.5); }
.footer-note { color: rgba(255,255,255,.35); }

/* ============ GRAIN (texture chaleur, anti-IA) ============ */
.grain {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .02; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ REVEAL (apparition au scroll / load) ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-title .word { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero-title.in .word { opacity: 1; transform: none; }
@keyframes rayGrow { from { transform: scale(0); opacity: 0; } to { transform: scale(1); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; margin-top: 30px; }
  .origine-grid, .communes-head, .transp-grid, .cercle-inner { grid-template-columns: 1fr; }
  .origine-label { position: static; flex-direction: row; gap: 12px; }
  .communes-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .burger { display: flex; }
  .header-cta .btn-primary { display: none; }
  .communes-grid { grid-template-columns: 1fr; }
  .impact-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .hero-stat { right: 0; max-width: 200px; }
  .cercle-tiers li { flex-direction: column; gap: 4px; }
  .cercle-tiers li span { min-width: 0; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-title .word { opacity: 1 !important; transform: none !important; }
  .hero-title .racine::after { transform: scaleX(1); }
  .marquee-track { animation: none; }
}

/* =========================================================
   PAGES INTERNES — page-hero, fondation, impact, transparence,
   don, engager, galerie, actualités, contact, 404
   ========================================================= */

/* — Page hero commun — */
.page-hero { position: relative; overflow: hidden; padding: clamp(130px,17vh,190px) 0 clamp(44px,6vw,72px); background: radial-gradient(120% 80% at 80% 0%, var(--blanc-2), transparent 60%), var(--blanc); }
.radiant-soft { opacity: .5; right: -14%; top: 30%; width: 56vw; max-width: 640px; }
.page-hero-inner { position: relative; z-index: 2; max-width: 60ch; }
.ph-no { font-family: var(--font-display); font-weight: 700; color: var(--bleu); margin-right: 10px; }
.ph-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px,6.5vw,92px); line-height: .98; letter-spacing: -0.03em; margin: 18px 0 22px; }
.ph-title em { font-style: normal; color: var(--bleu); }
.nav-link.active { color: var(--bleu); }
.nav-link.active::after { width: 100%; }

/* — Fondation — */
.founder { padding-block: var(--pad-y); }
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(34px,5vw,80px); align-items: center; }
.photo-arc { border-radius: 46% 46% 18px 18px / 40% 40% 4% 4%; overflow: hidden; aspect-ratio: 4/5; border: 7px solid var(--blanc); box-shadow: 0 34px 64px -30px rgba(14,23,51,.4); }
.photo-arc img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo figcaption { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--encre-soft); }
.founder-body .section-no { font-size: 14px; }
.founder-body h2 { margin: 10px 0 18px; }
.mission { padding-bottom: var(--pad-y); }
.mission-head { max-width: 60ch; }
.mission-head h2 { margin: 12px 0 18px; }
.valeurs { padding-block: var(--pad-y); background: var(--nuit); color: var(--blanc); }
.valeurs-head { margin-bottom: clamp(34px,5vw,56px); }
.valeurs-head h2 { color: var(--blanc); margin-top: 12px; }
.valeurs-head h2 em { color: var(--abobo); }
.valeurs-grid { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,2vw,26px); }
.valeurs-grid li { border-top: 3px solid var(--c); padding-top: 18px; }
.v-no { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--c); display: block; margin-bottom: 8px; }
.valeurs-grid h3 { color: var(--blanc); margin-bottom: 8px; font-size: 20px; }
.valeurs-grid p { color: rgba(255,255,255,.7); font-size: 14.5px; line-height: 1.5; }
.timeline-sec { padding-block: var(--pad-y); }
.timeline-sec > .container > .reveal h2 { margin-top: 12px; }
.timeline { list-style: none; margin-top: 36px; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid rgba(14,23,51,.12); align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid rgba(14,23,51,.12); }
.t-year { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px,3vw,40px); color: var(--bleu); }
.timeline p { font-size: 17px; color: var(--encre-soft); }

/* — CTA band — */
.cta-band { background: var(--nuit); color: var(--blanc); padding-block: clamp(56px,8vw,104px); }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { color: var(--blanc); max-width: 16ch; }
.cta-band h2 em { color: var(--abobo); }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* — Impact page — */
.impact-page { background: var(--nuit); }
.impact-page .impact-stats { grid-template-columns: repeat(3,1fr); }

/* — Transparence — */
.pillars { padding-block: var(--pad-y); }
.pillars-grid { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,2vw,24px); }
.pillars-grid li { background: var(--blanc); border-radius: 22px; padding: 28px 24px; border-top: 5px solid var(--c); box-shadow: 0 1px 0 rgba(14,23,51,.05), inset 0 0 0 1px rgba(14,23,51,.06); }
.pillars-grid h3 { color: var(--c); margin-bottom: 10px; }
.pillars-grid p { color: var(--encre-soft); font-size: 15px; line-height: 1.55; }
.allocation { padding-block: var(--pad-y); background: var(--nuit); color: var(--blanc); }
.allocation h2 { color: var(--blanc); margin-top: 12px; }
.allocation h2 em { color: var(--abobo); }
.alloc-list { list-style: none; margin: 30px 0 16px; display: flex; flex-direction: column; gap: 14px; }
.alloc-list li { display: flex; align-items: baseline; gap: 20px; font-size: 17px; color: rgba(255,255,255,.82); padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.a-pct { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px,4vw,52px); color: var(--c); min-width: 130px; }

/* — Don (widget) — */
.donate { padding-block: var(--pad-y); }
.donate-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px,5vw,72px); align-items: start; }
.donate-copy h2 { margin-bottom: 16px; }
.donate-trust { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.donate-trust li { display: flex; gap: 12px; font-size: 16px; color: var(--encre-soft); align-items: center; }
.t-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--korhogo) 18%, transparent); color: var(--korhogo); font-weight: 800; flex-shrink: 0; }
.donate-card { background: var(--nuit); color: var(--blanc); border-radius: 26px; padding: clamp(24px,3vw,38px); box-shadow: 0 30px 60px -30px rgba(14,23,51,.5); }
.freq-toggle { display: flex; gap: 6px; background: rgba(255,255,255,.08); padding: 5px; border-radius: 100px; margin-bottom: 22px; }
.freq { flex: 1; padding: 12px; border: none; background: transparent; color: rgba(255,255,255,.7); font-family: var(--font-text); font-weight: 600; font-size: 15px; border-radius: 100px; cursor: pointer; transition: background .3s, color .3s; }
.freq.active { background: var(--blanc); color: var(--encre); }
.amounts-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.amount { padding: 16px 6px; border: 2px solid rgba(255,255,255,.18); background: transparent; color: var(--blanc); border-radius: 14px; font-family: var(--font-display); font-weight: 700; font-size: 17px; cursor: pointer; transition: border-color .3s, background .3s, transform .3s; }
.amount:hover { border-color: rgba(255,255,255,.4); }
.amount.active { background: var(--abobo); color: var(--nuit); border-color: var(--abobo); }
.amount-custom, .alloc { display: block; margin-bottom: 16px; }
.amount-custom span, .alloc span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.amount-custom input, .alloc select { width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--blanc); font-family: var(--font-text); font-size: 16px; }
.amount-custom input::placeholder { color: rgba(255,255,255,.4); }
.donate-impact { background: rgba(244,164,12,.14); border-left: 3px solid var(--abobo); padding: 14px 16px; border-radius: 8px; font-size: 14.5px; color: rgba(255,255,255,.9); margin-bottom: 18px; min-height: 20px; }
.donate-submit { width: 100%; justify-content: center; font-size: 17px; }
.donate-pay { margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.5); text-align: center; }
.donate-pay em { font-style: normal; color: var(--daloa); }

/* — S'engager — */
.ways { padding-block: var(--pad-y); }
.ways-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.ways-list li { display: grid; grid-template-columns: 90px 1fr; gap: clamp(20px,3vw,46px); padding: clamp(28px,4vw,48px) 0; border-top: 1px solid rgba(14,23,51,.12); align-items: start; }
.ways-list li:last-child { border-bottom: 1px solid rgba(14,23,51,.12); }
.w-no { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px,5vw,68px); color: var(--c); line-height: .9; }
.ways-list h3 { margin-bottom: 10px; }
.ways-list p { color: var(--encre-soft); font-size: 16.5px; max-width: 62ch; margin-bottom: 14px; }

/* — Galerie — */
.gallery { padding-block: var(--pad-y); }
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.g-item { margin: 0 0 16px; border-radius: 18px; overflow: hidden; break-inside: avoid; box-shadow: 0 1px 0 rgba(14,23,51,.06); }
.g-item img { width: 100%; display: block; }
.g-0 { aspect-ratio: 4/5; } .g-1 { aspect-ratio: 1/1; } .g-2 { aspect-ratio: 3/4; } .g-3 { aspect-ratio: 5/4; }
.g-item img { height: 100%; object-fit: cover; }

/* — Actualités — */
.news { padding-block: var(--pad-y); }
.news-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.news-list li { border-top: 1px solid rgba(14,23,51,.12); }
.news-list li:last-child { border-bottom: 1px solid rgba(14,23,51,.12); }
.news-list a { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 30px 0; text-decoration: none; align-items: baseline; transition: padding-left .3s; }
.news-list a:hover { padding-left: 10px; }
.news-year { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--c); }
.news-list h3 { margin-bottom: 8px; }
.news-list p { color: var(--encre-soft); font-size: 15px; }

/* — Contact — */
.contact { padding-block: var(--pad-y); }
.contact-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(34px,5vw,72px); align-items: start; }
.ci-block { padding: 18px 0; border-bottom: 1px solid rgba(14,23,51,.12); }
.ci-block:first-child { border-top: 1px solid rgba(14,23,51,.12); }
.ci-k { display: block; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--bleu); letter-spacing: .04em; margin-bottom: 6px; }
.ci-block a, .ci-block span { color: var(--encre); text-decoration: none; font-size: 16px; }
.contact-form { display: grid; gap: 18px; background: var(--blanc-2); padding: clamp(24px,3vw,40px); border-radius: 22px; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--encre-soft); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: 12px; border: 2px solid rgba(14,23,51,.14); background: var(--blanc); font-family: var(--font-text); font-size: 16px; color: var(--encre); text-transform: none; font-weight: 400; letter-spacing: 0; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--bleu); outline: none; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--korhogo); font-weight: 600; }

/* — 404 — */
.notfound { padding: clamp(160px,22vh,260px) 0 var(--pad-y); text-align: center; }
.notfound .ph-title { margin: 18px 0; }
.notfound .hero-actions { justify-content: center; }

/* — Responsive pages — */
@media (max-width: 1000px) {
  .founder-grid, .donate-grid, .contact-grid { grid-template-columns: 1fr; }
  .valeurs-grid, .pillars-grid { grid-template-columns: repeat(2,1fr); }
  .impact-page .impact-stats { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { columns: 2 220px; }
}
@media (max-width: 640px) {
  .valeurs-grid, .pillars-grid { grid-template-columns: 1fr; }
  .timeline li, .news-list a { grid-template-columns: 1fr; gap: 8px; }
  .ways-list li { grid-template-columns: 1fr; gap: 10px; }
  .amounts-row { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { columns: 1; }
}

/* =========================================================
   HARMONISATION — sections claires & aérées (logo white-based)
   Plus de gros blocs sombres : couleur = accents vifs sur clair.
   ========================================================= */

/* — Impact → clair, chiffres en couleurs vives — */
.impact, .impact-page { background: var(--blanc-2); color: var(--encre); }
.impact-head h2 { color: var(--encre); }
.impact-head h2 em { color: var(--bleu); }
.impact .on-dark { color: var(--encre-soft) !important; }
.impact .section-no.on-dark { color: var(--bleu); }
.impact .section-tag.on-dark { color: var(--encre-soft); }
.impact-stats li { border-top-color: rgba(14,23,51,.14); }
.stat-l { color: var(--encre-soft); }
.impact-note { color: var(--encre-soft); opacity: .75; }
.impact .stat-n { color: var(--bleu); }
.impact .impact-stats li:nth-child(1) .stat-n { color: var(--daloa); }
.impact .impact-stats li:nth-child(2) .stat-n { color: var(--korhogo); }
.impact .impact-stats li:nth-child(3) .stat-n { color: var(--bouake); }
.impact .impact-stats li:nth-child(4) .stat-n { color: var(--bleu); }
.impact .impact-stats li:nth-child(5) .stat-n { color: var(--yamoussoukro); }
.impact .impact-stats li:nth-child(6) .stat-n { color: var(--terre); }

/* — Le Cercle des Racines (don, accueil) → clair tinté — */
.cercle { background: linear-gradient(165deg, #ECF1FF 0%, #F6F8FF 55%, #FFFFFF 100%); color: var(--encre); }
.cercle .radiant-dark { mix-blend-mode: normal; opacity: .26; }
.cercle-copy h2 { color: var(--encre); }
.cercle-copy h2 em { color: var(--bleu); }
.cercle .on-dark { color: var(--encre-soft) !important; }
.cercle-tiers li { background: #fff; border-color: rgba(14,23,51,.12); color: var(--encre); box-shadow: 0 2px 8px -4px rgba(14,23,51,.12); }
.cercle-tiers li:hover { background: #fff; border-color: var(--bleu); }
.cercle-tiers li span { color: var(--terre); }
.cercle-trust { color: var(--encre-soft); }
.cercle-trust em { color: var(--terre); }
.cercle .btn-line.on-dark { color: var(--encre); border-color: rgba(14,23,51,.25); }
.cercle .btn-line.on-dark:hover { border-color: var(--encre); background: transparent; }

/* — Valeurs (Fondation) → cartes claires — */
.valeurs { background: var(--blanc); color: var(--encre); }
.valeurs-head h2 { color: var(--encre); }
.valeurs-head h2 em { color: var(--bleu); }
.valeurs .on-dark { color: var(--encre-soft) !important; }
.valeurs .section-no.on-dark { color: var(--bleu); }
.valeurs-grid li { background: var(--blanc); border: 1px solid rgba(14,23,51,.10); border-top: 4px solid var(--c); border-radius: 18px; padding: 24px 22px 26px; }
.valeurs-grid h3 { color: var(--encre); }
.valeurs-grid p { color: var(--encre-soft); }

/* — CTA band → bandeau clair tinté — */
.cta-band { background: var(--blanc-2); color: var(--encre); }
.cta-band h2 { color: var(--encre); }
.cta-band h2 em { color: var(--bleu); }
.cta-band .on-dark { color: var(--encre-soft) !important; }
.cta-band .btn-line.on-dark { color: var(--encre); border-color: rgba(14,23,51,.25); }
.cta-band .btn-line.on-dark:hover { border-color: var(--encre); background: transparent; }

/* — Allocation (Transparence) → clair — */
.allocation { background: var(--blanc-2); color: var(--encre); }
.allocation h2 { color: var(--encre); }
.allocation h2 em { color: var(--bleu); }
.allocation .on-dark { color: var(--encre-soft) !important; }
.allocation .section-no.on-dark { color: var(--bleu); }
.alloc-list li { color: var(--encre-soft); border-bottom-color: rgba(14,23,51,.12); }

/* — Carte de don (don.html) → carte claire — */
.donate-card { background: #fff; color: var(--encre); border: 1px solid rgba(14,23,51,.12); box-shadow: 0 26px 54px -30px rgba(14,23,51,.32); }
.freq-toggle { background: var(--blanc-2); }
.freq { color: var(--encre-soft); }
.freq.active { background: var(--bleu); color: #fff; }
.amount { border-color: rgba(14,23,51,.16); color: var(--encre); }
.amount:hover { border-color: rgba(14,23,51,.4); }
.amount.active { background: var(--abobo); color: var(--encre); border-color: var(--abobo); }
.amount-custom span, .alloc span { color: var(--encre-soft); }
.amount-custom input, .alloc select { border-color: rgba(14,23,51,.16); background: #fff; color: var(--encre); }
.amount-custom input::placeholder { color: var(--encre-soft); }
.donate-impact { background: rgba(0,24,120,.06); border-left-color: var(--bleu); color: var(--encre); }
.donate-pay { color: var(--encre-soft); }
.donate-pay em { color: var(--terre); }

/* — Carte CTA dans la grille communes → claire — */
.commune-cta { background: var(--blanc); color: var(--encre); }
.commune-cta::before { background: var(--terre); }
.commune-cta h3 { color: var(--encre); }
.commune-cta h3 em { color: var(--terre); }
.commune-cta p { color: var(--encre-soft); }
.commune-cta .btn-line { color: var(--encre); border-color: rgba(14,23,51,.25); }

/* — Footer : conservé SOMBRE (ancienne couleur, à la demande du client) — */
.site-footer .brand-logo.big { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

/* =========================================================
   PAGE DÉTAIL PROGRAMME (actions-<slug>.html)
   ========================================================= */
.commune-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--c); text-decoration: none; }
.commune-link .arr { transition: transform .3s var(--ease); }
.commune:hover .commune-link .arr { transform: translateX(4px); }

.action-hero { padding-top: clamp(120px,15vh,170px); }
.back-link { display: inline-block; margin-bottom: 22px; font-weight: 700; font-size: 14px; color: var(--encre-soft); text-decoration: none; transition: color .3s; }
.back-link:hover { color: var(--bleu); }
.action-hero .ph-title { margin: 14px 0 14px; }
.action-place { font-size: 17px; font-weight: 600; color: var(--encre-soft); }
.action-photo { margin-top: clamp(30px,4vw,52px); border-radius: 24px; overflow: hidden; aspect-ratio: 16/8; border-top: 6px solid var(--c); box-shadow: 0 30px 60px -34px rgba(14,23,51,.4); }
.action-photo img { width: 100%; height: 100%; object-fit: cover; }

.action-body { padding-block: var(--pad-y); }
.action-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(34px,5vw,72px); align-items: start; }
.action-story h2 { margin-bottom: 20px; }
.action-story .founder-quote { margin-top: 30px; }
.action-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; }
.aside-card { background: var(--blanc-2); border-radius: 20px; padding: 26px 24px; border-top: 4px solid var(--c); }
.aside-card h3 { font-size: 18px; margin-bottom: 16px; }
.aside-metrics { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.aside-metrics li { display: flex; flex-direction: column; }
.am-n { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--c); line-height: 1; }
.am-l { font-size: 14px; color: var(--encre-soft); margin-top: 4px; }
.aside-cta { background: var(--blanc); border: 1px solid rgba(14,23,51,.10); }
.aside-cta p { font-size: 15px; color: var(--encre-soft); margin-bottom: 16px; }

.action-next { padding-bottom: var(--pad-y); }
.next-link { display: flex; align-items: center; gap: 18px; padding: 28px clamp(22px,3vw,40px); border-radius: 20px; background: var(--blanc-2); text-decoration: none; border-left: 5px solid var(--c); transition: transform .4s var(--ease), background .3s; }
.next-link:hover { transform: translateX(6px); }
.next-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-soft); }
.next-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,2.4vw,28px); color: var(--encre); flex: 1; }
.next-link .arr { font-size: 24px; color: var(--c); }

@media (max-width: 1000px) {
  .action-grid { grid-template-columns: 1fr; }
  .action-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1; min-width: 220px; }
}
@media (max-width: 640px) {
  .action-photo { aspect-ratio: 4/3; }
  .next-title { font-size: 18px; }
}
