/* ─── Blocks custom — styles ───────────────────────────────────
   Tous les styles des blocks custom (hero, key-figures, etc.).
   ────────────────────────────────────────────────────────── */

/* Reset le blockGap WP entre les sections custom : chaque section
   apporte son propre fond et son padding, on veut zéro espace
   visible entre elles (sinon on voit le fond papier de la page). */
[class*="wp-block-edm-"] {
  margin-block: 0 !important;
}

/* ============================================================
   edm/hero — fullbleed
   ============================================================ */
.edm-hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: stretch;
}
.edm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.edm-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edm-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(42, 24, 8, 0) 0%,
    rgba(42, 24, 8, 0) 35%,
    rgba(42, 24, 8, 0.55) 70%,
    rgba(20, 12, 4, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}
.edm-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
  color: var(--paper);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 0, 0, 0.5);
}
.edm-hero__eyebrow {
  color: rgba(251, 247, 240, 1) !important;
}
.edm-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 920px;
  margin: 24px 0 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
}
.edm-hero__title .edm-italic-ochre {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.5);
}
.edm-hero__body {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  margin: 28px 0 0;
  color: rgba(251, 247, 240, 0.96);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.edm-hero__ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.edm-hero__ctas .edm-btn {
  text-shadow: none;
}
.edm-hero__caption {
  position: absolute;
  bottom: 32px;
  right: 24px;
  font-size: 11px;
  color: rgba(251, 247, 240, 0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   edm/key-figures
   ============================================================ */
.edm-keyfigures {
  background: var(--paper-warm);
  padding: var(--sp-8) 0;
}
.edm-keyfigures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-7);
}
.edm-keyfigures__item:not(:first-child) {
  border-left: 1px solid var(--line-strong);
  padding-left: var(--sp-5);
}
.edm-keyfigures__num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1;
  letter-spacing: -0.02em;
}
.edm-keyfigures__label {
  font-size: 15px;
  font-weight: 600;
  margin-top: 14px;
  color: var(--ink);
}
.edm-keyfigures__sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
}
@media (max-width: 900px) {
  .edm-keyfigures__grid { grid-template-columns: repeat(2, 1fr); }
  .edm-keyfigures__item:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ============================================================
   edm/actions-tabs
   ============================================================ */
.edm-actions {
  padding: var(--sp-9) 0;
  background: var(--paper-warm);
}
.edm-actions__header {
  max-width: 720px;
  margin: 0 0 var(--sp-7);
  text-align: left;
}
.edm-actions__header .edm-eyebrow {
  margin: 0;
  display: block;
}
.edm-actions__header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 16px 0 0;
}
.edm-actions__header p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 18px 0 0;
  line-height: 1.6;
  max-width: 560px;
}
.edm-actions__stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--elev-2);
  min-height: 580px;
}
.edm-actions__bg {
  position: absolute;
  inset: 0;
}
.edm-actions__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 400ms ease;
  opacity: 0;
}
.edm-actions__bg img.is-active { opacity: 1; }
.edm-actions__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 24, 8, 0.78) 0%, rgba(42, 24, 8, 0.45) 50%, rgba(42, 24, 8, 0.15) 100%);
  z-index: 1;
}
.edm-actions__content {
  position: relative;
  z-index: 2;
  padding: var(--sp-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 580px;
  color: var(--paper);
}
.edm-actions__panel {
  max-width: 520px;
  display: none;
}
.edm-actions__panel.is-active { display: block; animation: edm-fadeUp 320ms ease both; }
.edm-actions__icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.edm-actions__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.16);
  border: 1px solid rgba(251, 247, 240, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.edm-actions__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 600;
}
.edm-actions__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.edm-actions__body {
  font-size: 17px;
  color: rgba(251, 247, 240, 0.85);
  margin-top: 18px;
  line-height: 1.55;
  max-width: 460px;
}
.edm-actions__stat-row {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(251, 247, 240, 0.18);
  flex-wrap: wrap;
}
.edm-actions__stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--ochre);
  line-height: 1;
}
.edm-actions__stat-lbl {
  font-size: 12px;
  color: rgba(251, 247, 240, 0.7);
  margin-top: 6px;
}
.edm-actions__voice {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: rgba(251, 247, 240, 0.85);
  line-height: 1.4;
  max-width: 280px;
}
.edm-actions__voice-who {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 12px;
  color: rgba(251, 247, 240, 0.6);
  margin-top: 6px;
}
.edm-actions__tabs {
  display: grid;
  gap: 0;
  background: rgba(251, 247, 240, 0.06);
  border: 1px solid rgba(251, 247, 240, 0.15);
  border-radius: var(--radius-pill);
  padding: 6px;
  backdrop-filter: blur(12px);
  margin-top: var(--sp-6);
}
.edm-actions__tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  color: rgba(251, 247, 240, 0.85);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
  justify-content: center;
}
.edm-actions__tab.is-active {
  background: var(--paper);
  color: var(--ink);
}

/* ============================================================
   edm/featured-mission
   ============================================================ */
.edm-featured {
  background: var(--paper-warm);
  padding: var(--sp-9) 0;
}
.edm-featured__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.edm-featured__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 5/4;
}
.edm-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edm-featured__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  margin-top: 16px;
  line-height: 1.15;
}
.edm-featured__body {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 18px;
  line-height: 1.6;
}
.edm-featured__stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.edm-featured__stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.edm-featured__stat-lbl {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .edm-featured__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   edm/testimonial
   ============================================================ */
.edm-testimonial {
  padding: var(--sp-9) 0;
}
.edm-testimonial__inner {
  position: relative;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.edm-testimonial__big-quote {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 160px;
  line-height: 1;
  color: var(--sand);
  font-style: italic;
  user-select: none;
  opacity: 0.45;
  pointer-events: none;
}
.edm-testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  position: relative;
  text-wrap: balance;
}
.edm-testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.edm-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F4D9A8 0%, #D49B3A 100%);
  flex-shrink: 0;
  overflow: hidden;
}
.edm-testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edm-testimonial__name {
  font-weight: 600;
  font-size: 14px;
  text-align: left;
}
.edm-testimonial__role {
  font-size: 13px;
  color: var(--ink-mute);
  text-align: left;
}

/* ============================================================
   edm/donate-cta
   ============================================================ */
.edm-donate {
  padding: var(--sp-9) 0;
}
.edm-donate__card {
  background: var(--forest-deep);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-7);
  position: relative;
  overflow: hidden;
}
.edm-donate__glow {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 155, 58, 0.35), transparent 70%);
  pointer-events: none;
}
.edm-donate__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-7);
  position: relative;
}
.edm-donate__title {
  color: var(--paper);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  margin-top: 16px;
  line-height: 1.15;
}
.edm-donate__body {
  font-size: 16px;
  color: rgba(251, 247, 240, 0.78);
  margin-top: 18px;
  line-height: 1.65;
  max-width: 460px;
}
.edm-donate__fiscal {
  margin-top: 32px;
  padding: 14px 20px;
  background: rgba(212, 155, 58, 0.18);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: rgba(251, 247, 240, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(212, 155, 58, 0.3);
}
.edm-donate__panel {
  background: rgba(251, 247, 240, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(251, 247, 240, 0.1);
  backdrop-filter: blur(8px);
}
.edm-donate__impacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.edm-donate__impact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(251, 247, 240, 0.15);
  border-radius: var(--radius-md);
  color: var(--paper);
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 160ms;
  width: 100%;
}
.edm-donate__impact.is-active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.edm-donate__impact-amount {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ochre);
  min-width: 80px;
}
.edm-donate__impact.is-active .edm-donate__impact-amount {
  color: var(--terracotta);
}
.edm-donate__impact-desc {
  font-size: 14px;
}
.edm-donate__cta {
  width: 100%;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .edm-donate__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Archive missions — wrapper 1240px centré, enfants à gauche
   ============================================================ */
/* WP layout constrained ne contraint que les enfants, pas le wrapper.
   On force la max-width et les margins du wrapper ici. */
.edm-archive {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--sp-5);
  padding-right: var(--sp-5);
  width: 100%;
  box-sizing: border-box;
}
.edm-archive > * {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: none;
  text-align: left;
}
/* Reset les margins navigateur sur les enfants directs (h1, h6, p…)
   pour que les `margin-top` inline soient exactement les mêmes que
   sur les pages générées par Gutenberg (où WP fait déjà ce reset
   via `:where(.is-layout-constrained) > * { margin-block: 0 }`). */
.edm-archive > h1,
.edm-archive > h2,
.edm-archive > h3,
.edm-archive > h4,
.edm-archive > h5,
.edm-archive > h6,
.edm-archive > p {
  margin-top: 0;
  margin-bottom: 0;
}
.edm-archive__title { max-width: 920px; }
.edm-archive__lead  { max-width: 600px; }

/* ============================================================
   edm/mission-grid + mission-card (cible : section paper-warm)
   ============================================================ */
.edm-missions {
  background: var(--paper-warm);
  padding: var(--sp-9) 0;
  margin-top: var(--sp-8);
}
.edm-missions__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  width: 100%;
  box-sizing: border-box;
}
.edm-missions__intro {
  margin-bottom: var(--sp-6);
}
.edm-missions__heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  margin-top: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.edm-missions__heading em {
  font-style: italic;
  color: var(--ink-mute);
}

/* Filtres : 2 lignes (Région + Année), avec label */
.edm-missions__filterrow {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.edm-missions__filterlabel {
  display: inline-block;
  min-width: 64px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.edm-missions__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.edm-missions__filter {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms ease;
  font-family: var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
}
.edm-missions__filter:hover {
  background: var(--paper-deep);
  color: var(--ink);
}
.edm-missions__filter.is-active {
  background: var(--ink);
  color: var(--paper);
}
.edm-missions__filter.is-active--accent {
  background: var(--terracotta);
  color: var(--paper);
}

/* Grille — 3 colonnes : normales = 1 col (3 par ligne), featured = 2 cols */
.edm-missions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

/* Card normale (verticale, image en haut, contenu en bas) — 1 col */
.edm-mcard {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
  box-shadow: var(--elev-1);
  grid-column: span 1;
  min-width: 0;
}
.edm-mcard:hover { transform: translateY(-3px); box-shadow: var(--elev-2); }

/* Featured = grande, layout horizontal — 2 cols (laisse 1 col pour une normale à droite) */
.edm-mcard--featured {
  grid-column: span 2;
  flex-direction: row;
  outline: 1.5px solid var(--ochre);
  outline-offset: -1.5px;
}

.edm-mcard__media {
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}
.edm-mcard--featured .edm-mcard__media {
  aspect-ratio: auto;
  width: 40%;
  align-self: stretch;
  flex-shrink: 0;
}
.edm-mcard__media img,
.edm-mcard__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edm-mcard__placeholder {
  background: linear-gradient(135deg, var(--sand), var(--rose-clay));
}
.edm-mcard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(252, 248, 236, 0.96);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.edm-mcard__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}
.edm-mcard__chips {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 80%;
}
.edm-mcard__chips .edm-chip {
  font-size: 10px;
  padding: 4px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.edm-mcard__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0; /* clé : permet au texte de wrapper sans déborder le flex parent */
}
.edm-mcard--featured .edm-mcard__body { padding: 26px 28px; }
.edm-mcard__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  min-width: 0;
}
.edm-mcard__meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edm-mcard__place { text-align: right; }
.edm-mcard__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  word-wrap: break-word;
  hyphens: auto;
}
.edm-mcard--featured .edm-mcard__title { font-size: 24px; }
.edm-mcard__title a {
  color: inherit;
  text-decoration: none;
}
.edm-mcard__title a:hover { color: var(--terracotta); }
.edm-mcard__lead {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  word-wrap: break-word;
}
.edm-mcard__stats {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.edm-mcard__stats > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.edm-mcard__stat-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1;
}
.edm-mcard__stat-lbl {
  font-family: var(--font-ui);
  font-size: 10.5px;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.edm-mcard__cta {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
  white-space: nowrap;
  align-self: flex-end;
}
.edm-mcard__cta:hover { color: var(--terracotta-deep); }
.edm-mcard__cta--bare {
  margin-top: auto;
  margin-left: 0;
  align-self: flex-start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
}

/* Pagination */
.edm-missions__pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: var(--sp-7);
  font-size: 14px;
}
.edm-missions__pagination span { padding: 8px 14px; }
.edm-missions__pagination a {
  color: var(--ink-soft);
  text-decoration: none;
}
.edm-missions__pagination .current {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

@media (max-width: 1100px) {
  .edm-missions__grid { grid-template-columns: repeat(2, 1fr); }
  .edm-mcard--featured { grid-column: span 2; }
  .edm-mcard--featured {
    flex-direction: column;
  }
  .edm-mcard--featured .edm-mcard__media {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 700px) {
  .edm-missions__grid { grid-template-columns: 1fr; }
  .edm-mcard,
  .edm-mcard--featured { grid-column: 1 / -1; }
  .edm-mcard__body { padding: 22px !important; }
  .edm-mcard__stats { flex-wrap: wrap; gap: 16px; }
}

/* ============================================================
   edm/mission-hero
   ============================================================ */
.edm-mhero {
  padding: var(--sp-9) 0 var(--sp-7);
}
.edm-mhero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.edm-mhero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
}
.edm-mhero__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 22px;
  max-width: 520px;
}
.edm-mhero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.edm-mhero__meta div { margin: 0; }
.edm-mhero__meta dt {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.edm-mhero__meta dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.edm-mhero__partners {
  margin-top: 28px;
}
.edm-mhero__partners ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.edm-mhero__partners li { padding: 4px 0; }
.edm-mhero__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #5C7A4D 0%, #2A4030 100%);
}
.edm-mhero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edm-mhero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #5C7A4D 0%, #2A4030 100%);
}
.edm-mhero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}
.edm-mhero__stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1;
  letter-spacing: -0.02em;
}
.edm-mhero__stat-lbl {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .edm-mhero__grid { grid-template-columns: 1fr; }
  .edm-mhero__media { order: -1; aspect-ratio: 4 / 3; }
  .edm-mhero__stats { grid-template-columns: repeat(2, 1fr); }
  .edm-mhero__meta { grid-template-columns: 1fr; }
}

/* ============================================================
   edm/mission-team
   ============================================================ */
.edm-mteam {
  background: var(--paper-warm);
  padding: var(--sp-8) 0;
}
.edm-mteam__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.edm-mteam__roster ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.edm-mteam__roster li {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.edm-mteam__roster li:last-child { border-bottom: 0; }
.edm-mteam__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.edm-mteam__role {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.edm-mteam__voice {
  margin: 0;
  padding: 24px 0 24px 28px;
  border-left: 3px solid var(--ochre);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}
.edm-mteam__voice footer {
  margin-top: 14px;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 13px;
  color: var(--ink-mute);
}
@media (max-width: 800px) {
  .edm-mteam__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   edm/timeline
   ============================================================ */
.edm-timeline {
  padding: var(--sp-9) 0;
}
.edm-timeline__list {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 100px;
}
.edm-timeline__list::before {
  content: "";
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.edm-timeline__item {
  position: relative;
  padding-bottom: var(--sp-7);
}
.edm-timeline__item:last-child { padding-bottom: 0; }
.edm-timeline__year {
  position: absolute;
  left: -100px;
  top: -4px;
  width: 90px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: -0.01em;
}
.edm-timeline__dot {
  position: absolute;
  left: -42px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.edm-timeline__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.edm-timeline__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin: 4px 0 10px;
}
.edm-timeline__body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}
@media (max-width: 700px) {
  .edm-timeline__list { padding-left: 36px; }
  .edm-timeline__list::before { left: 14px; }
  .edm-timeline__year {
    position: static;
    width: auto;
    font-size: 20px;
    margin-bottom: 4px;
  }
  .edm-timeline__dot { left: 8px; top: 8px; }
}

/* ============================================================
   Sticky CTA
   ============================================================ */
.edm-sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 40;
  padding: 14px 28px;
  font-size: 14px;
  box-shadow: var(--elev-3);
  opacity: 0;
  pointer-events: none;
  transition: all 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.edm-sticky-cta.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ============================================================
   edm/notre-engagement — section 100% des dons sur la home
   ============================================================ */
.edm-engagement {
  background: var(--paper-warm);
  padding: var(--sp-9) 0;
}
.edm-engagement__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.edm-engagement__big {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--terracotta);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-size: clamp(96px, 14vw, 200px);
}
.edm-engagement__lines {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  margin-top: 12px;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.edm-engagement__italic {
  font-style: italic;
  color: var(--ochre-deep);
}
.edm-engagement__eyebrow {
  color: var(--terracotta);
  margin-bottom: 18px;
  display: block;
}
.edm-engagement__body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .edm-engagement__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}
@media (max-width: 600px) {
  .edm-engagement { padding: var(--sp-7) 0; }
  .edm-engagement__big { font-size: clamp(80px, 22vw, 130px); }
  .edm-engagement__lines { font-size: clamp(22px, 6vw, 32px); }
  .edm-engagement__body { font-size: 16px; }
}

/* ============================================================
   edm/donation-form — page /faire-un-don/ avec iframe HelloAsso
   ============================================================ */
.edm-donation { display: block; }
.edm-donation__hero {
  /* Le wrapper edm-archive interne gère padding-top + ferré gauche */
}
.edm-donation__form {
  background: var(--paper-warm);
  padding: var(--sp-7) 0 var(--sp-9);
}
.edm-donation__form-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.edm-donation__iframe {
  width: 100%;
  border: 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-2);
  display: block;
  /* hauteur définie inline (configurable depuis le back-office) */
}
.edm-donation__fallback {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
}
.edm-donation__fallback a {
  color: var(--terracotta);
  text-decoration: underline;
}
.edm-donation__fallback a:hover { color: var(--terracotta-deep); }

@media (max-width: 700px) {
  .edm-donation__form { padding: var(--sp-6) 0 var(--sp-7); }
  .edm-donation__form-inner { padding: 0 var(--sp-4); }
}

/* ============================================================
   edm/gallery — Slider Carnet de terrain (homepage)
   ============================================================ */
.edm-gallery {
  background: var(--paper-warm);
  padding: var(--sp-9) 0;
  overflow: hidden;
}
.edm-gallery__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.edm-gallery__intro { max-width: 620px; }
.edm-gallery__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 14px;
  color: var(--ink);
}
.edm-gallery__sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.65;
}
.edm-gallery__cta { flex-shrink: 0; }

/* Track scrollable, déborde à droite jusqu'au edge viewport */
.edm-gallery__viewport {
  position: relative;
  padding-left: max(24px, calc((100vw - 1240px) / 2));
}
.edm-gallery__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-right: 24px;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.edm-gallery__track::-webkit-scrollbar { display: none; }

.edm-gallery__card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.edm-gallery__media {
  position: relative;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-deep);
}
.edm-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edm-gallery__caption { padding: 0 4px; }
.edm-gallery__date {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}
.edm-gallery__legend {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

/* Controls (dots + arrows) */
.edm-gallery__controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.edm-gallery__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.edm-gallery__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(42, 24, 8, 0.18);
  transition: width 240ms ease, background 240ms ease;
}
.edm-gallery__dot.is-active {
  width: 28px;
  background: var(--terracotta);
}
.edm-gallery__arrows {
  display: flex;
  gap: 10px;
}
.edm-gallery__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: all 180ms ease;
}
.edm-gallery__arrow:hover {
  background: var(--paper-warm);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.edm-gallery__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 700px) {
  .edm-gallery { padding: var(--sp-7) 0; }
  .edm-gallery__header {
    align-items: flex-start;
    gap: 18px;
  }
  .edm-gallery__cta { align-self: flex-start; }
  .edm-gallery__card { flex: 0 0 280px; }
  .edm-gallery__media { height: 360px; }
  .edm-gallery__legend { font-size: 15px; }
  .edm-gallery__viewport {
    padding-left: var(--sp-4);
  }
  /* Controls plus compacts sur mobile */
  .edm-gallery__controls {
    margin-top: 18px;
    gap: 12px;
  }
  .edm-gallery__dots {
    gap: 6px;
    flex: 1 1 auto;
    flex-wrap: wrap;
  }
  .edm-gallery__dot {
    width: 6px;
    height: 6px;
  }
  .edm-gallery__dot.is-active { width: 22px; }
  .edm-gallery__arrow {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .edm-gallery__arrows { gap: 8px; }
}

@media (max-width: 480px) {
  /* Sur très petit mobile, on cache les flèches : le swipe tactile suffit */
  .edm-gallery__arrows { display: none; }
  .edm-gallery__dots { justify-content: center; width: 100%; }
  .edm-gallery__controls { justify-content: center; }
}

/* ============================================================
   edm/champ-actions — page complète Notre champ d'actions
   Hero & sections : container 1240px centré (cohérent avec
   /missions/ et /equipe/), titraille identique (.edm-archive*)
   ============================================================ */
.edm-cap { display: block; }

/* Le hero réutilise .edm-archive du CSS global (1240px centré, ferré gauche) */

/* Ancres rapides */
.edm-cap__anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left;
}
.edm-cap__anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 180ms ease;
}
.edm-cap__anchor:hover {
  background: var(--paper-warm);
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
}
.edm-cap__anchor-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  color: var(--ochre-deep);
}

/* Section action — pleine largeur, contenu interne dans container 1240px */
.edm-cap__section {
  padding: var(--sp-9) 0;
  border-top: 1px solid var(--line);
}
.edm-cap__section:nth-child(even) {
  background: var(--paper-warm);
}
.edm-cap__section .edm-container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--sp-5);
  padding-right: var(--sp-5);
  width: 100%;
  box-sizing: border-box;
}

.edm-cap__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.edm-cap__section--imgright .edm-cap__media { order: 2; }
.edm-cap__section--imgright .edm-cap__text  { order: 1; }

/* Media : 1 grande + 2 petites en dessous */
.edm-cap__media-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elev-2);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--sand), var(--rose-clay));
}
.edm-cap__media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.edm-cap__media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.edm-cap__media-mini {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #BFC8AF, #5C7A4D);
}
.edm-cap__media-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Texte */
.edm-cap__num-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ochre-deep);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.edm-cap__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.edm-cap__hook {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 22px;
}
.edm-cap__why {
  margin-top: 28px;
}
.edm-cap__why-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.edm-cap__numbers {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.edm-cap__number-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: -0.02em;
  line-height: 1;
}
.edm-cap__number-lbl {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.4;
}
.edm-cap__what {
  margin-top: var(--sp-5);
}
.edm-cap__bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.edm-cap__bullets li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.edm-cap__voice {
  margin: var(--sp-5) 0 0;
  padding: 16px 0 16px 22px;
  border-left: 3px solid var(--ochre);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}
.edm-cap__voice footer {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* Images cliquables (lightbox) */
.edm-cap__media-main img,
.edm-cap__media-mini img {
  cursor: zoom-in;
  transition: opacity 220ms ease, transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.edm-cap__media-main img:hover,
.edm-cap__media-mini img:hover {
  opacity: 0.92;
  transform: scale(1.015);
}

/* Lightbox overlay (créé dynamiquement par frontend.js) */
.edm-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 4, 0.94);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: edm-lightbox-fade 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.edm-lightbox.is-open { display: flex; }
.edm-lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  display: block;
}
.edm-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 247, 240, 0.1);
  border: 1px solid rgba(251, 247, 240, 0.25);
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.edm-lightbox__close:hover {
  background: rgba(251, 247, 240, 0.2);
  border-color: rgba(251, 247, 240, 0.5);
  transform: rotate(90deg);
}
@keyframes edm-lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Closing dark */
.edm-cap__closing {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-9) 0;
  text-align: center;
}
.edm-cap__closing-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--paper);
  max-width: 800px;
  margin: 0 auto;
}
.edm-cap__closing-body {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.65;
  margin: 26px auto 0;
  color: rgba(251, 247, 240, 0.85);
  max-width: 640px;
}
.edm-cap__closing-ctas {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.edm-cap__closing-cta-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(251, 247, 240, 0.4);
}
.edm-cap__closing-cta-ghost:hover {
  background: rgba(251, 247, 240, 0.08);
  border-color: rgba(251, 247, 240, 0.6);
}

/* Responsive page champ-actions */
@media (max-width: 900px) {
  .edm-cap__row {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .edm-cap__section--imgright .edm-cap__media { order: 0; }
  .edm-cap__section--imgright .edm-cap__text  { order: 1; }
  /* Pas de padding sur .edm-cap__hero — l'.edm-archive interne gère
     son propre padding-top (cohérence avec /missions/ et /equipe/) */
  .edm-cap__section { padding: var(--sp-8) 0; }
  .edm-cap__media-main { aspect-ratio: 16 / 11; }
}

@media (max-width: 600px) {
  .edm-cap__hero-title { font-size: clamp(32px, 8vw, 48px); }
  .edm-cap__hero-lead { font-size: 17px; }
  .edm-cap__title { font-size: clamp(26px, 7vw, 36px); }
  .edm-cap__hook { font-size: 17px; }
  .edm-cap__media-grid { grid-template-columns: 1fr 1fr; }
  .edm-cap__numbers {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .edm-cap__number {
    display: flex;
    align-items: baseline;
    gap: 14px;
  }
  .edm-cap__number-val { font-size: 24px; }
  .edm-cap__number-lbl { margin-top: 0; }
  .edm-cap__closing { padding: var(--sp-8) 0; }
  .edm-cap__closing-body { font-size: 17px; }
  .edm-cap__closing-ctas { flex-direction: column; align-items: stretch; }
  .edm-cap__closing-ctas .edm-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ============================================================
   RESPONSIVE — tous les blocs sur mobile/tablet
   ============================================================
   ============================================================ */

/* ─── Tablet (≤900px) ────────────────────────────────────── */
@media (max-width: 900px) {
  /* Hero */
  .edm-hero { min-height: 80vh; }
  .edm-hero__inner {
    padding-top: var(--sp-7);
    padding-bottom: var(--sp-7);
  }
  .edm-hero__title {
    font-size: clamp(32px, 8vw, 56px);
    max-width: 100%;
  }
  .edm-hero__body {
    font-size: 16px;
    margin-top: 20px;
  }
  .edm-hero__ctas {
    margin-top: 28px;
    gap: 10px;
  }
  .edm-hero__caption {
    bottom: 20px;
    right: 16px;
    font-size: 10px;
  }

  /* Actions tabs — réduire le stage et faire les tabs scrollables */
  .edm-actions { padding: var(--sp-8) 0; }
  .edm-actions__stage { min-height: 480px; }
  .edm-actions__content { min-height: 480px; padding: var(--sp-6); }
  .edm-actions__title { font-size: clamp(26px, 5vw, 38px); }
  .edm-actions__body { font-size: 15px; }
  /* Tabs en grille flex-wrap — tous visibles, pas de scroll horizontal */
  .edm-actions__tabs {
    display: flex !important;
    flex-wrap: wrap;
    grid-template-columns: none !important;
    overflow: visible;
    padding: 6px;
    gap: 4px;
    border-radius: 16px;
  }
  .edm-actions__tab {
    flex: 1 1 calc(33.333% - 4px);
    min-width: 0;
    padding: 10px 8px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
    gap: 6px;
  }
  .edm-actions__tab span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Donate */
  .edm-donate { padding: var(--sp-8) 0; }
  .edm-donate__card {
    padding: var(--sp-7) var(--sp-5);
  }
  .edm-donate__glow {
    width: 240px;
    height: 240px;
    top: -60px;
    right: -40px;
  }

  /* Mission hero */
  .edm-mhero { padding: var(--sp-8) 0 var(--sp-6); }

  /* Featured mission home */
  .edm-featured { padding: var(--sp-8) 0; }
}

/* ─── Mobile (≤700px) ────────────────────────────────────── */
@media (max-width: 700px) {
  /* Réduit les paddings de toutes les sections principales */
  .edm-actions,
  .edm-donate,
  .edm-featured,
  .edm-testimonial,
  .edm-timeline,
  .edm-missions,
  .edm-mhero,
  .edm-mteam {
    padding-left: 0;
    padding-right: 0;
  }
  .edm-actions .edm-container,
  .edm-donate .edm-container,
  .edm-missions__inner {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  /* Hero */
  .edm-hero { min-height: 70vh; }
  .edm-hero__inner {
    padding-top: var(--sp-6);
    padding-bottom: var(--sp-6);
  }
  .edm-hero__title { font-size: clamp(28px, 9vw, 44px); }
  .edm-hero__body { font-size: 15px; }
  .edm-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .edm-hero__ctas .edm-btn { width: 100%; justify-content: center; }
  .edm-hero__caption { display: none; }

  /* KeyFigures — 1 col empilées */
  .edm-keyfigures { padding: var(--sp-7) 0; }
  .edm-keyfigures__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .edm-keyfigures__item {
    border-left: 0 !important;
    padding-left: 0 !important;
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--line);
  }
  .edm-keyfigures__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .edm-keyfigures__num { font-size: 44px; }

  /* Actions tabs — encore plus compact */
  .edm-actions__stage { min-height: 540px; }
  .edm-actions__content { padding: var(--sp-5); min-height: 540px; }
  .edm-actions__icon {
    width: 36px;
    height: 36px;
  }
  .edm-actions__title { font-size: clamp(24px, 7vw, 32px); }
  .edm-actions__body { margin-top: 14px; font-size: 14px; }
  .edm-actions__stat-row {
    margin-top: 22px;
    padding-top: 16px;
    gap: 18px;
  }
  .edm-actions__stat-num { font-size: 28px; }
  .edm-actions__voice {
    font-size: 14px;
    max-width: 100%;
  }

  /* Featured mission home */
  .edm-featured__title { font-size: clamp(22px, 5.5vw, 30px); }
  .edm-featured__body { font-size: 15px; }
  .edm-featured__stats { gap: 20px; padding-top: 18px; }
  .edm-featured__stat-num { font-size: 26px; }

  /* Testimonial */
  .edm-testimonial { padding: var(--sp-7) 0; }
  .edm-testimonial__big-quote {
    font-size: 100px;
    top: -50px;
  }
  .edm-testimonial__quote {
    font-size: clamp(18px, 5vw, 24px);
    text-wrap: pretty;
  }
  .edm-testimonial__author {
    flex-direction: column;
    gap: 10px;
  }
  .edm-testimonial__name,
  .edm-testimonial__role { text-align: center; }

  /* Donate */
  .edm-donate__card { padding: var(--sp-6) var(--sp-5); border-radius: var(--radius-lg); }
  .edm-donate__title { font-size: clamp(22px, 5.5vw, 30px); }
  .edm-donate__body { font-size: 15px; }
  .edm-donate__panel { padding: 20px; }
  .edm-donate__impact { padding: 14px 16px; gap: 12px; }
  .edm-donate__impact-amount {
    font-size: 22px;
    min-width: 60px;
  }
  .edm-donate__impact-desc { font-size: 13px; }

  /* Missions archive — intro + filters */
  .edm-missions__heading { font-size: clamp(24px, 6vw, 36px); }
  .edm-missions__filterrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .edm-missions__filterlabel { min-width: 0; }
  .edm-missions__filter {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Mission cards — déjà gérées plus haut, on s'assure que tout va */
  .edm-mcard__title { font-size: 18px; }
  .edm-mcard--featured .edm-mcard__title { font-size: 22px; }
  .edm-mcard__lead { font-size: 13px; }
  .edm-mcard__stat-num { font-size: 18px; }

  /* Mission hero (single) */
  .edm-mhero__title { font-size: clamp(28px, 7vw, 44px); }
  .edm-mhero__lead { font-size: 16px; margin-top: 18px; }
  .edm-mhero__meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
  .edm-mhero__stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .edm-mhero__stat-num { font-size: 32px; }

  /* Mission team */
  .edm-mteam { padding: var(--sp-7) 0; }
  .edm-mteam__voice { font-size: 18px; padding-left: 20px; }

  /* Archive intro (page missions / equipe) */
  .edm-archive { padding-top: var(--sp-7) !important; padding-bottom: var(--sp-6) !important; }
  .edm-archive__title { font-size: clamp(32px, 8vw, 56px) !important; }
  .edm-archive__lead { font-size: 16px !important; }

  /* Timeline */
  .edm-timeline { padding: var(--sp-7) 0; }
  .edm-timeline__title { font-size: 18px; }
  .edm-timeline__body { font-size: 14px; }
}

/* ─── Petit mobile (≤480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .edm-hero__title { font-size: clamp(26px, 10vw, 38px); }

  /* KeyFigures — espace réduit */
  .edm-keyfigures__num { font-size: 40px; }
  .edm-keyfigures__label { font-size: 14px; }

  /* Actions — sur très petit écran, tabs en 2 colonnes (3 lignes = 2+2+1) */
  .edm-actions__stage { min-height: 580px; }
  .edm-actions__content { min-height: 580px; padding: 22px; }
  .edm-actions__tab {
    flex: 1 1 calc(50% - 4px);
    padding: 10px 8px;
    font-size: 11px;
  }
  .edm-actions__stat-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Donate impacts compacts */
  .edm-donate__impact {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }
  .edm-donate__impact-amount { font-size: 20px; min-width: 0; }

  /* Mission hero meta — 1 col */
  .edm-mhero__meta { grid-template-columns: 1fr; gap: 14px; }
}
