/*
Theme Name: Theme ONG Orphelinat Magnificat
Theme URI: https://orphelinatmagnificatbongouanou.org/
Author: ONG Orphelinat Magnificat de Bongouanou
Author URI: https://orphelinatmagnificatbongouanou.org/
Description: Thème officiel de l'ONG Orphelinat Magnificat de Bongouanou — accueil, dons (Mobile Money), événements/blog, bénévoles et contact. Design chaleureux, moderne et responsive.
Version: 1.1.1
Requires at least: 5.2
Tested up to: 6.6
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ong-magnificat
Tags: charity, nonprofit, custom-menu, featured-images
*/

/* ============================================================
   ONG ORPHELINAT MAGNIFICAT DE BONGOUANOU — Feuille de style
   ============================================================ */

:root {
  --orange: #e8721c;
  --orange-dark: #c25a0b;
  --orange-soft: #fdeedd;
  --green: #1e7a4e;
  --green-dark: #135435;
  --green-soft: #e4f3eb;
  --gold: #f2b705;
  --ink: #23272e;
  --muted: #64707d;
  --line: #e8e2d9;
  --cream: #fdf8f1;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(35, 39, 46, 0.07);
  --shadow-md: 0 10px 30px rgba(35, 39, 46, 0.10);
  --shadow-lg: 0 20px 50px rgba(35, 39, 46, 0.16);
  --radius: 14px;
  --radius-lg: 22px;
  --font-head: "Poppins", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.65;
  -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.25; }

a { color: var(--green-dark); }

.container { width: min(1180px, 92%); margin: 0 auto; }

.section { padding: 84px 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-dark); color: #eef7f1; }
.section-green h2, .section-green h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}
.section-green .eyebrow { background: rgba(255, 255, 255, 0.12); color: #ffd9b3; }

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-green .section-head p { color: #cfe6d8; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(232, 114, 28, 0.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(30, 122, 78, 0.3); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-dark);
  color: #d9ede2;
  font-size: 0.875rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .topbar-links { display: flex; gap: 22px; align-items: center; }
.topbar .topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; overflow: hidden; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text strong span { color: var(--orange); }
.brand-text small { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--orange-soft); color: var(--orange-dark); }
.nav a.active { color: var(--orange-dark); background: var(--orange-soft); font-weight: 600; }
.header .btn { margin-left: 10px; padding: 12px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--green-dark);
}
.hero-slider {
  display: flex;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  overflow: hidden;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
}
.hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(19, 84, 53, 0.88), rgba(35, 39, 46, 0.72) 55%, rgba(194, 90, 11, 0.62));
}
.hero-slide.is-active .hero-slide-bg { animation: heroKen 8s ease-out forwards; }
@keyframes heroKen {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
.hero-inner { max-width: 780px; }
.hero-slide .hero-inner { position: relative; z-index: 2; padding: 112px 0 14px; }

/* Apparition du texte de chaque slide */
.hero-slide .hero-badge,
.hero-slide h1,
.hero-slide .hero-title,
.hero-slide .hero-inner p {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-slide.is-active .hero-badge { opacity: 1; transform: none; transition-delay: 0.25s; }
.hero-slide.is-active h1,
.hero-slide.is-active .hero-title { opacity: 1; transform: none; transition-delay: 0.4s; }
.hero-slide.is-active .hero-inner p { opacity: 1; transform: none; transition-delay: 0.55s; }

.hero h1,
.hero .hero-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero h1 em,
.hero .hero-title em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.18rem; max-width: 640px; color: #f3f0ea; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Barre sous les slides : boutons + points de navigation */
.hero-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  flex-wrap: wrap;
  padding: 30px 0 96px;
}
.hero-dots { display: flex; align-items: center; gap: 10px; }
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s ease, background 0.3s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.6); }
.hero-dot.is-active { width: 34px; background: var(--gold); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }
@media (max-width: 960px) { .hero-arrow { display: none; } }
@media (max-width: 640px) {
  .hero-slide .hero-inner { padding-top: 84px; }
  .hero-footer { flex-direction: column; align-items: flex-start; padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-slide-bg { animation: none; }
  .hero-slider { transition: none; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero-wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; }

/* ---------- Bandeau confiance ---------- */
.trust-band { background: var(--cream); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item .t-ico {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark);
  border-radius: 12px;
}
.trust-item .t-ico svg { width: 23px; height: 23px; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 0.94rem; }
.trust-item small { color: var(--muted); font-size: 0.83rem; line-height: 1.35; display: block; }

/* ---------- Mot de la Présidente ---------- */
.president-grid { display: grid; grid-template-columns: 0.9fr 1.35fr; gap: 56px; align-items: center; }
.president-visual { position: relative; }
.president-visual .pv-frame {
  background: linear-gradient(150deg, var(--green), var(--green-dark));
  border-radius: var(--radius-lg);
  padding: 46px 34px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.president-visual .pv-frame img { width: 92px; height: 92px; margin: 0 auto 18px; background: #fff; border-radius: 50%; padding: 12px; }
.president-visual .pv-frame h3 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.president-visual .pv-frame p { color: #cfe6d8; font-size: 0.92rem; }
.pv-deco {
  position: absolute;
  bottom: -26px; right: -18px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.16;
  z-index: -1;
}
.pv-deco-2 {
  position: absolute;
  top: -24px; left: -22px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.18;
  z-index: -1;
}
.quote-card { position: relative; }
.quote-card .q-mark { font-size: 4.6rem; font-family: Georgia, serif; color: var(--orange); line-height: 0.6; display: block; margin-bottom: 18px; }
.quote-card p { font-size: 1.14rem; color: #454b54; margin-bottom: 14px; }
.quote-card .q-sign { margin-top: 26px; }
.quote-card .q-sign strong { font-family: var(--font-head); font-size: 1.06rem; color: var(--ink); display: block; }
.quote-card .q-sign span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Piliers ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-card .p-ico {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 16px;
  margin-bottom: 20px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.pillar-card:nth-child(2) .p-ico { background: var(--green-soft); color: var(--green-dark); }
.pillar-card:nth-child(3) .p-ico { background: #fdf3d7; color: #a97d05; }
.pillar-card:nth-child(4) .p-ico { background: #e9edfb; color: #4353b0; }
.pillar-card .p-ico svg { width: 30px; height: 30px; }
.pillar-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.pillar-card p { color: var(--muted); font-size: 0.96rem; }
.pillar-num { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--gold); display: block; margin-bottom: 8px; }

/* ---------- Dons express ---------- */
.amounts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 34px; }
.amount-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.amount-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.amount-card .a-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.amount-card .a-sum { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--orange-dark); margin-bottom: 8px; }
.amount-card .a-sum small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.amount-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.amounts-note { text-align: center; color: var(--muted); font-size: 0.95rem; }
.amounts-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Articles / Blog ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover figure img { transform: scale(1.05); }
.post-card .p-date {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  padding: 6px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.post-card .p-date svg { width: 14px; height: 14px; stroke: var(--orange); }
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.post-body h3 { font-size: 1.13rem; margin-bottom: 10px; }
.post-body h3 a { text-decoration: none; color: inherit; transition: color 0.15s; }
.post-body h3 a:hover { color: var(--orange-dark); }
.post-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; flex: 1; }
.post-link { font-family: var(--font-head); font-weight: 600; font-size: 0.93rem; color: var(--orange-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.post-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.post-link:hover svg { transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-dark), var(--green)); border-radius: var(--radius-lg); padding: 58px 56px; display: flex; align-items: center; justify-content: space-between; gap: 34px; color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 10px; }
.cta-band p { color: #d5e9de; max-width: 560px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }

/* ---------- Page hero (pages internes) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(115deg, rgba(19, 84, 53, 0.92), rgba(35, 39, 46, 0.8) 60%, rgba(194, 90, 11, 0.7)),
    var(--green-dark);
  padding: 84px 0 76px;
  overflow: hidden;
}
.page-hero.with-photo {
  background: linear-gradient(115deg, rgba(19, 84, 53, 0.9), rgba(35, 39, 46, 0.78) 55%, rgba(194, 90, 11, 0.62)),
    url("assets/images/facade-agrement.jpg") center / cover no-repeat;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 700; max-width: 820px; }
.page-hero p { color: #ecf3ee; font-size: 1.12rem; max-width: 680px; margin-top: 16px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: #c9dcd1; margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumbs a { color: #fff; text-decoration: none; opacity: 0.85; }
.breadcrumbs a:hover { opacity: 1; }
.breadcrumbs svg { width: 13px; height: 13px; }

/* ---------- À propos : histoire / timeline ---------- */
.story-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.story-text p { margin-bottom: 16px; color: #454b54; }
.story-text strong { color: var(--ink); }
.story-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-photos img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; height: 100%; object-fit: cover; }
.story-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.story-photos img:not(:first-child) { aspect-ratio: 4 / 4.6; }

.timeline { list-style: none; margin-top: 44px; border-left: 3px solid var(--orange-soft); padding-left: 30px; }
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -40px; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--orange-soft);
}
.timeline .tl-date { font-family: var(--font-head); font-weight: 700; color: var(--orange-dark); font-size: 0.92rem; letter-spacing: 0.04em; display: block; margin-bottom: 5px; }
.timeline h3 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Valeurs ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; }
.value-card .v-ico { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); }
.value-card:nth-child(2) .v-ico { background: var(--green-soft); color: var(--green-dark); }
.value-card:nth-child(3) .v-ico { background: #fdf3d7; color: #a97d05; }
.value-card:nth-child(4) .v-ico { background: #e9edfb; color: #4353b0; }
.value-card .v-ico svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { font-size: 0.92rem; color: var(--muted); }

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mission-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; }
.mission-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.18rem; margin-bottom: 14px; }
.mission-card h3 .m-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); }
.mission-card h3 .m-ico svg { width: 21px; height: 21px; }
.mission-card p { color: #454b54; }

/* ---------- Équipe ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: center; }
.team-card.featured { border: 2px solid var(--orange); background: linear-gradient(180deg, #fff8f1, #fff); box-shadow: var(--shadow-sm); }
.team-card .tm-badge {
  width: 74px; height: 74px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark);
}
.team-card .tm-badge svg { width: 34px; height: 34px; }
.team-card.featured .tm-badge { background: var(--orange-soft); color: var(--orange-dark); }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .tm-role { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--orange-dark); display: block; margin-bottom: 12px; }
.team-card p { font-size: 0.93rem; color: var(--muted); }
.team-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 34px; }

/* ---------- Transparence ---------- */
.transparency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 32px 28px; }
.t-card .t-num { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--gold); letter-spacing: 0.1em; display: block; margin-bottom: 12px; }
.t-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.t-card p { color: #cfe6d8; font-size: 0.96rem; }

/* ---------- Dons ---------- */
.don-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.don-step { display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.don-step .ds-num {
  flex: none; width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center;
  font-size: 1.05rem;
}
.don-step strong { font-family: var(--font-head); display: block; margin-bottom: 4px; font-size: 1rem; }
.don-step p { color: var(--muted); font-size: 0.92rem; }

.don-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.don-widget-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 26px 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.don-widget-head h2 { font-size: 1.3rem; }
.don-widget-head .dw-secure { display: inline-flex; align-items: center; gap: 7px; color: var(--green-dark); font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; }
.don-widget-head .dw-secure svg { width: 16px; height: 16px; }
.don-widget-body { padding: 34px; }

.field-label { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.field-label .fl-step {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 700;
}

.seg-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 420px; }
.seg-toggle button {
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 13px 10px;
  background: #fff; color: var(--ink);
  border: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.seg-toggle button.active { background: var(--orange); color: #fff; }
.seg-toggle button:not(.active):hover { background: var(--cream); }
.freq-hint { margin-top: 10px; font-size: 0.9rem; color: var(--green-dark); font-weight: 600; display: none; align-items: center; gap: 6px; }
.freq-hint.visible { display: inline-flex; }
.freq-hint svg { width: 15px; height: 15px; }

.amount-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.amount-opt { position: relative; }
.amount-opt input { position: absolute; opacity: 0; pointer-events: none; }
.amount-opt label {
  display: block; text-align: center;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 16px 8px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.amount-opt label:hover { border-color: var(--orange); transform: translateY(-2px); }
.amount-opt input:checked + label { border-color: var(--orange); background: var(--orange-soft); }
.amount-opt label strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.amount-opt label span { font-size: 0.78rem; color: var(--muted); display: block; margin-top: 3px; line-height: 1.35; }
.amount-custom { margin-top: 16px; max-width: 380px; position: relative; }
.amount-custom input {
  width: 100%; padding: 14px 16px 14px 92px;
  border: 2px solid var(--line); border-radius: 12px;
  font-size: 1.05rem; font-family: var(--font-head); font-weight: 600;
}
.amount-custom input:focus { outline: none; border-color: var(--orange); }
.amount-custom .ac-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 600; color: var(--muted); }

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pay-opt { position: relative; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 18px 10px; cursor: pointer; text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.pay-opt label:hover { border-color: var(--green); }
.pay-opt input:checked + label { border-color: var(--green); background: var(--green-soft); }
.pay-opt .po-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pay-opt .po-ico svg { width: 22px; height: 22px; }
.pay-opt label strong { font-family: var(--font-head); font-size: 0.92rem; }
.pay-opt label span { font-size: 0.76rem; color: var(--muted); }

.pay-panel { margin-top: 20px; border-radius: 12px; padding: 24px 26px; background: var(--cream); border: 1px dashed var(--line); display: none; }
.pay-panel.visible { display: block; }
.pay-panel h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.02rem; }
.pay-panel h4 .pp-dot { width: 11px; height: 11px; border-radius: 50%; }
.pay-panel p { font-size: 0.97rem; color: #454b54; }
.pay-panel .mm-number {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px;
}
.pay-panel .mm-number strong { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: 0.03em; color: var(--ink); }
.copy-btn {
  margin-left: auto;
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  border: 1.5px solid var(--green); color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px; padding: 8px 18px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.15s, color 0.15s;
}
.copy-btn:hover { background: var(--green); color: #fff; }
.copy-btn svg { width: 15px; height: 15px; }
.operators-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.op-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.op-chip .dot { width: 9px; height: 9px; border-radius: 50%; }

.don-summary {
  margin-top: 30px; background: var(--green-dark); color: #eaf5ee;
  border-radius: 14px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.don-summary .ds-lines { display: flex; flex-direction: column; gap: 4px; }
.don-summary .ds-lines small { color: #b9d6c5; font-size: 0.85rem; }
.don-summary .ds-total { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; }
.don-submit { margin-top: 26px; width: 100%; font-size: 1.08rem; padding: 17px; }

.form-note { margin-top: 14px; font-size: 0.86rem; color: var(--muted); text-align: center; }

/* ---------- Besoins urgents ---------- */
.needs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.need-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.need-card .n-ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 13px; background: var(--orange-soft); color: var(--orange-dark); margin-bottom: 16px; }
.need-card:nth-child(even) .n-ico { background: var(--green-soft); color: var(--green-dark); }
.need-card .n-ico svg { width: 25px; height: 25px; }
.need-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.need-card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 12px; }
.need-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.need-card ul li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; font-size: 0.82rem; font-weight: 600; color: #4c5560; }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.field label span { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 114, 28, 0.14);
}
.field .error-msg { display: none; color: #c0392b; font-size: 0.82rem; margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .error-msg { display: block; }

.form-alert {
  display: none;
  margin-top: 22px;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 0.95rem;
}
.form-alert.success { display: block; background: var(--green-soft); border: 1px solid #bfe3cf; color: var(--green-dark); }
.form-alert strong { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.form-alert svg { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.faq-item button.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  color: var(--ink);
  padding: 20px 24px;
}
.faq-item button.faq-q svg { width: 20px; height: 20px; flex: none; stroke: var(--orange); transition: transform 0.25s; }
.faq-item.open button.faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: #4c5560; font-size: 0.98rem; }

/* ---------- Événements ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.filter-chip {
  font-family: var(--font-head); font-weight: 600; font-size: 0.88rem;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 9px 20px; cursor: pointer;
  transition: all 0.15s;
}
.filter-chip.active, .filter-chip:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- Article ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-meta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; margin-bottom: 28px; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 16px; height: 16px; stroke: var(--orange); }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 38px; }
.article-body h2 { font-size: 1.45rem; margin: 38px 0 14px; }
.article-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; color: #3d434b; }
.article-body ul { margin: 0 0 18px 22px; color: #3d434b; }
.article-body ul li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--orange);
  background: var(--cream);
  border-radius: 0 12px 12px 0;
  padding: 20px 26px;
  margin: 26px 0;
  font-style: italic;
  color: #4c5560;
}
.article-body blockquote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.article-keyfigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.article-keyfig { background: var(--green-soft); border-radius: 12px; padding: 18px 16px; text-align: center; }
.article-keyfig strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--green-dark); margin-bottom: 3px; }
.article-keyfig span { font-size: 0.85rem; color: #3f5e4d; }
.article-footer-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 10px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after {
  content: "⤢";
  position: absolute; right: 10px; bottom: 10px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 9px;
  font-size: 1rem; color: var(--ink);
  opacity: 0; transition: opacity 0.2s;
}
.gallery a:hover::after { opacity: 1; }
.gallery-cap { font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 18, 22, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255, 255, 255, 0.12); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
}
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }

/* ---------- Bénévoles ---------- */
.engage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.engage-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 34px; position: relative; overflow: hidden; }
.engage-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--orange); }
.engage-card.distance::before { background: var(--green); }
.engage-card .e-ico { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--orange-soft); color: var(--orange-dark); margin-bottom: 20px; }
.engage-card.distance .e-ico { background: var(--green-soft); color: var(--green-dark); }
.engage-card .e-ico svg { width: 29px; height: 29px; }
.engage-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.engage-card > p { color: var(--muted); margin-bottom: 18px; }
.engage-card ul { list-style: none; display: grid; gap: 11px; }
.engage-card ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.97rem; color: #3d434b; }
.engage-card ul li svg { width: 19px; height: 19px; flex: none; stroke: var(--green); margin-top: 3px; }

.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card { text-align: center; padding: 10px 14px; }
.step-card .s-num {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff; border: 2.5px solid var(--orange);
  color: var(--orange-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  display: grid; place-items: center;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 7px; }
.step-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 40px; align-items: start; }
.contact-infos { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px; }
.info-card .i-ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--orange-soft); color: var(--orange-dark); }
.info-card:nth-child(2) .i-ico { background: var(--green-soft); color: var(--green-dark); }
.info-card:nth-child(3) .i-ico { background: #e9edfb; color: #4353b0; }
.info-card:nth-child(4) .i-ico { background: #fdf3d7; color: #a97d05; }
.info-card .i-ico svg { width: 23px; height: 23px; }
.info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { font-size: 0.94rem; color: var(--muted); word-break: break-word; }
.info-card a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 16px; }
.map-frame iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: #171b21; color: #aab3bd; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text small { color: #8b95a1; }
.footer-about p { font-size: 0.95rem; margin-top: 18px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: #aab3bd; text-decoration: none; font-size: 0.95rem; transition: color 0.15s; }
.footer ul a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 11px; font-size: 0.94rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; stroke: var(--orange); margin-top: 3px; }
.footer-contact a { color: #aab3bd; text-decoration: none; }
.footer-contact a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.15s, transform 0.15s;
}
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; row-gap: 10px; flex-wrap: wrap; font-size: 0.86rem; }
.footer-bottom a { color: #aab3bd; }
.footer-agrement { color: #7d8792; }
.footer-credit {
  white-space: nowrap;
  margin-left: auto;
}
.footer-credit a { color: var(--orange); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
.footer-agrement { color: #7d8792; }
.footer-credit { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-credit a { color: var(--orange); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }


/* ---------- Modale confirmation don ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 18, 22, 0.6);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px;
  max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 40px 38px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal .m-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--cream); color: var(--ink);
  font-size: 1.1rem; cursor: pointer;
}
.modal .m-ico { width: 66px; height: 66px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; margin: 0 auto 20px; }
.modal .m-ico svg { width: 32px; height: 32px; }
.modal h3 { text-align: center; font-size: 1.4rem; margin-bottom: 10px; }
.modal .m-recap { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 20px 0; }
.modal .m-recap div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 0.95rem; }
.modal .m-recap div span:first-child { color: var(--muted); }
.modal .m-recap div strong { font-family: var(--font-head); }
.modal p.m-text { color: #4c5560; font-size: 0.97rem; margin-bottom: 18px; }
.modal .m-actions { display: grid; gap: 12px; margin-top: 24px; }

/* ---------- Animations reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .amounts-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .transparency-grid, .needs-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 5%;
    gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; }
  .header .btn { margin: 10px 0 0; }
  .president-grid, .story-grid, .mission-grid, .engage-grid, .contact-grid { grid-template-columns: 1fr; }
  .don-steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 30px; }
  .amount-options, .pay-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero-inner { padding: 84px 0 96px; }
  .pillars-grid, .amounts-grid, .posts-grid, .team-grid, .transparency-grid, .needs-grid,
  .values-grid, .form-grid, .steps-row, .don-steps, .article-keyfigs, .trust-grid { grid-template-columns: 1fr; }
  .story-photos { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .don-widget-body, .don-widget-head, .form-card { padding-left: 22px; padding-right: 22px; }
  .topbar .topbar-links { gap: 12px; }
  .topbar .topbar-item.hide-sm { display: none; }
  /* En-tête compact sur mobile */
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 0.8rem; white-space: nowrap; }
  .brand-text small { display: none; }
  .header .container { min-height: 60px; }
  .header .btn { margin-left: 0; padding: 10px 15px; font-size: 0.78rem; gap: 6px; white-space: nowrap; }
  .nav-toggle { width: 40px; height: 40px; }
  .cta-band .cta-actions { justify-content: center; }
}


/* ============================================================
   Compatibilité WordPress
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 0.88rem; color: var(--muted); padding-top: 6px; }
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }
.article-body > * { max-width: 100%; }
