/* ════════════════════════════════════════════════════════════════
   POP-UP AFFECTATION DU DON — contenu pour un Overlay Panel GB Pro
   CSS — Apparence ▸ Personnaliser ▸ CSS additionnel
   ────────────────────────────────────────────────────────────────
   ⚠️  L'ouverture/fermeture, le fond (backdrop), le centrage, la
   touche Échap, le clic-extérieur, le blocage du scroll et
   l'animation sont gérés NATIVEMENT par l'Overlay Panel (réglages
   dans GenerateBlocks ▸ Overlay Panels). Ce CSS ne style donc QUE
   le CONTENU du panneau — il ne doit ni positionner, ni masquer,
   ni recréer de fond.
   ════════════════════════════════════════════════════════════════ */

/* Carte = contenu de l'Overlay Panel.
   Réglez le conteneur GB de l'Overlay Panel en : fond transparent,
   padding 0, largeur 720px / max-width 100%. La carte ci-dessous
   fournit fond, rayon, ombre et padding. */
.don-panel {
  /* police de base : tout le texte hérite de DM Sans
     (corrige p et .don-choice__sub qui prenaient la police du thème) */
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  position: relative;
  width: 100%;
  background: #fbfaf6;
  border-radius: 14px;
  padding: 48px 48px 40px;
  color: #1e1b2e;
}

/* Bouton fermeture (× en haut à droite) */
.don-panel__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(30,27,46,.10);
  background: #fbfaf6;
  display: inline-grid;          /* inline-grid : centre le SVG de façon fiable */
  justify-content: center;
  place-items: center;
  cursor: pointer;
  color: #7a7590;
  transition: background .2s, color .2s;
}
.don-panel__close:hover { background: #f7f4ec; color: #1e1b2e; }
.don-panel__close svg { width: 18px; height: 18px; display: block; }

/* En-tête */
.don-panel__head { text-align: center; margin-bottom: 32px; }
.don-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: oklch(0.40 0.13 285);
  margin-bottom: 16px;
  white-space: nowrap;
}
.don-panel__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.don-panel__head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: #1e1b2e;
  text-wrap: balance;
}
.don-panel__head p {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  color: #4a4660;
  font-size: 15.5px;
  margin: 0 auto;
  max-width: 42ch;
  line-height: 1.55;
}

/* Note explicative */
.don-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: oklch(0.97 0.015 285);
  border: 1px solid oklch(0.94 0.03 285);
  border-radius: 10px;
  padding: 15px 18px;
  margin-bottom: 20px;
}
.don-note__icon {
  flex: none;
  width: 20px; height: 20px;
  color: oklch(0.40 0.13 285);
  margin-top: 1px;
}
.don-note__icon svg { width: 100%; height: 100%; display: block; }
.don-note p {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a4660;
}
.don-note p b { color: #1e1b2e; font-weight: 600; }

/* Les 4 choix */
.don-choices { display: flex; flex-direction: column; gap: 12px; }
.don-choice {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(30,27,46,.10);
  border-radius: 10px;
  background: #fbfaf6;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.don-choice:hover {
  border-color: oklch(0.56 0.13 285);
  background: oklch(0.97 0.015 285);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -26px rgba(20,17,50,.45);
}
.don-choice__flag {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: oklch(0.94 0.03 285);
  color: oklch(0.40 0.13 285);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}
.don-choice--national .don-choice__flag { background: #1e1b2e; color: #fff; }
.don-choice__body { flex: 1; min-width: 0; text-align: left; }
.don-choice__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  color: #1e1b2e;
  line-height: 1.15;
  display: block;
  margin: 0 0 3px;
}
.don-choice__sub {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  color: #4a4660;
  line-height: 1.45;
  display: block;
}
.don-choice__arrow { flex: none; color: oklch(0.40 0.13 285); transition: transform .18s; }
.don-choice:hover .don-choice__arrow { transform: translateX(4px); }
.don-choice__arrow svg { width: 22px; height: 22px; display: block; }

/* Pied réassurance */
.don-panel__foot {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(30,27,46,.10);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 13px;
  color: #7a7590;
}
.don-panel__foot svg { width: 16px; height: 16px; color: oklch(0.56 0.13 285); flex: none; }

/* Responsive mobile */
@media (max-width: 640px) {
  .don-panel          { padding: 40px 24px 32px; }
  .don-choice         { padding: 16px; gap: 14px; }
  .don-choice__flag   { width: 44px; height: 44px; font-size: 20px; }
  .don-choice__title  { font-size: 20px; }
}
