/* ── Page Afrique francophone / zone franc CFA ──
   Règle de l'Académie : en-tête sombre animé, contenu clair, cartes sombres.
   Or réservé aux boutons d'inscription, cyan pour le reste. */

/* En-tête */
.af-eyebrow { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--cyan); }
.af-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0,212,255,.15); }
.hero .ds-retour { margin-bottom: 26px; }
.af-cta { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.af-btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 11px; font-size: 15px; font-weight: 700; transition: all .25s; }
.af-btn-plein { background: var(--cyan); color: #07131c; }
.af-btn-plein:hover { background: #4fe4ff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,212,255,.25); }
.af-btn-ligne { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.af-btn-ligne:hover { border-color: var(--cyan); color: var(--cyan); }
.af-btn svg { width: 18px; height: 18px; }
.af-chiffres { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); justify-content: center; gap: 14px; margin: 44px auto 0; }
.af-chiffres div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 16px 14px; backdrop-filter: blur(6px); }
.af-chiffres b { display: block; font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 26px; color: #fff; line-height: 1.1; }
.af-chiffres span { font-size: 13px; color: rgba(255,255,255,.55); }

/* Sections claires */
.af-section { max-width: 1140px; margin: 0 auto; padding: 72px 48px 0; }
.af-section:last-of-type { padding-bottom: 88px; }
.af-label { font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #0891b2; margin-bottom: 10px; }
.af-section h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; color: #0f1523; margin-bottom: 12px; }
.af-intro { font-size: 17px; line-height: 1.75; color: #4a5468; max-width: 66ch; margin-bottom: 34px; }

/* Pourquoi DataSAI */
.af-raisons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.af-raison { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px 28px 26px; box-shadow: 0 10px 30px rgba(15,21,35,.14); }
.af-raison-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.25); color: var(--cyan); }
.af-raison-ico svg { width: 21px; height: 21px; }
.af-raison h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 22px; color: #fff; margin-bottom: 8px; }
.af-raison p { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.66); }
.af-raison p b { color: #fff; font-weight: 600; }

/* Comparaison de prix */
.af-compare { margin-top: 18px; display: grid; gap: 8px; }
.af-compare-l { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55); }
.af-compare-l i { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); }
.af-compare-l.cfa i { background: linear-gradient(90deg, var(--cyan), #4fe4ff); }
.af-compare-l b { color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; }

/* Fondatrice */
.af-fondatrice { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; margin-top: 22px;
  background: linear-gradient(135deg, #12122b, #0d0d20); border: 1px solid rgba(0,212,255,.16); border-radius: 22px; padding: 30px; box-shadow: 0 24px 60px rgba(15,21,35,.22); }
.af-fondatrice img { width: 220px; height: auto; aspect-ratio: 613 / 818; object-fit: cover; object-position: center top; border-radius: 16px; display: block; }
.af-fondatrice h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 26px; color: #fff; line-height: 1.25; margin-bottom: 10px; }
.af-fondatrice p { font-size: 15.5px; line-height: 1.8; color: rgba(255,255,255,.68); margin-bottom: 14px; }
.af-fondatrice a { font-size: 14.5px; font-weight: 600; }

/* Tarifs */
.af-tarifs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.af-prog { position: relative; display: flex; flex-direction: column; background: linear-gradient(135deg, #1b1740 0%, #141033 42%, #0e0b24 100%);
  border: 1px solid rgba(232,192,125,.26); border-radius: 20px; padding: 30px 30px 28px; box-shadow: 0 24px 60px rgba(15,21,35,.25); overflow: hidden; }
.af-prog.da { background: linear-gradient(135deg, #0f2a2e 0%, #0d1f2a 45%, #0a1520 100%); border-color: rgba(16,185,129,.3); }
.af-prog-tag { font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--or); margin-bottom: 8px; }
.af-prog.da .af-prog-tag { color: #34d399; }
.af-prog h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 27px; color: #fff; line-height: 1.2; margin-bottom: 6px; }
.af-prog > p { font-size: 14.5px; color: rgba(255,255,255,.58); margin-bottom: 18px; }
.af-grille { list-style: none; margin-bottom: 24px; }
.af-grille li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14.5px; color: rgba(255,255,255,.62); }
.af-grille li b { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 21px; color: var(--or-clair); white-space: nowrap; }
.af-prog.da .af-grille li b { color: #6ee7b7; }
.af-grille li em { font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.38); margin-left: 8px; font-family: 'DM Sans', sans-serif; }
.af-prog .bc-open-cta { margin-top: auto; }
.af-prog.da .bc-open-cta { background: linear-gradient(135deg, #6ee7b7, #10b981); color: #04140d; }
.af-note { font-size: 14px; color: #5a6478; margin-top: 16px; }

.af-autres { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-top: 22px; }
.af-bloc { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(15,21,35,.14); }
.af-bloc h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 22px; color: #fff; margin-bottom: 6px; }
.af-bloc > p { font-size: 14.5px; color: rgba(255,255,255,.58); margin-bottom: 14px; }
.af-bloc .af-grille li b { color: #fff; font-size: 19px; }
.af-bloc .af-grille { margin-bottom: 16px; }
.af-gratuit { list-style: none; display: grid; gap: 9px; margin-bottom: 16px; }
.af-gratuit li { position: relative; padding-left: 22px; font-size: 14.5px; color: rgba(255,255,255,.74); }
.af-gratuit li::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 3px; background: rgba(0,212,255,.18); border: 1px solid rgba(0,212,255,.5); }
.af-bloc a { font-size: 14.5px; font-weight: 600; }

/* Paiement */
.af-etapes { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: etape; }
.af-etapes li { position: relative; background: #fff; border: 1px solid rgba(15,21,35,.08); border-radius: 16px; padding: 24px 22px 22px; box-shadow: 0 8px 24px rgba(15,21,35,.06); }
.af-etapes li::before { counter-increment: etape; content: counter(etape); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  margin-bottom: 14px; background: #0a0a14; color: var(--cyan); font-weight: 700; font-size: 15px; }
.af-etapes h3 { font-size: 16px; font-weight: 700; color: #0f1523; margin-bottom: 6px; }
.af-etapes p { font-size: 14.5px; line-height: 1.7; color: #4a5468; }
.af-moyens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.af-moyens span { font-size: 13.5px; font-weight: 600; color: #1f2a3d; background: #fff; border: 1px solid rgba(15,21,35,.12); border-radius: 99px; padding: 7px 14px; }

/* Pays */
.af-zones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.af-zone { background: #fff; border: 1px solid rgba(15,21,35,.08); border-radius: 16px; padding: 24px; box-shadow: 0 8px 24px rgba(15,21,35,.06); }
.af-zone h3 { font-size: 15px; font-weight: 700; color: #0f1523; margin-bottom: 4px; }
.af-zone p { font-size: 13.5px; color: #5a6478; margin-bottom: 14px; }
.af-pays { display: flex; flex-wrap: wrap; gap: 8px; }
.af-pays span { font-size: 14px; color: #1f2a3d; background: #f0f4fa; border: 1px solid rgba(15,21,35,.07); border-radius: 9px; padding: 6px 12px; }
.af-ailleurs { margin-top: 20px; background: #0a0a14; border-radius: 16px; padding: 22px 26px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.75; }
.af-ailleurs b { color: #fff; }

/* FAQ */
.af-faq { display: grid; gap: 12px; max-width: 860px; }
.af-faq details { background: #fff; border: 1px solid rgba(15,21,35,.09); border-radius: 14px; padding: 0 22px; box-shadow: 0 6px 18px rgba(15,21,35,.05); }
.af-faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; font-size: 16px; font-weight: 600; color: #0f1523; }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: #0891b2; transition: transform .2s; }
.af-faq details[open] summary::after { transform: rotate(45deg); }
.af-faq details p { padding: 0 0 20px; font-size: 15px; line-height: 1.8; color: #4a5468; }

/* Appel final */
.af-final { max-width: 1140px; margin: 72px auto 0; padding: 0 48px 88px; }
.af-final-in { text-align: center; background: radial-gradient(600px 260px at 50% 0%, rgba(0,212,255,.14), transparent 70%), #0a0a14;
  border: 1px solid rgba(0,212,255,.18); border-radius: 24px; padding: 48px 32px; }
.af-final h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(26px, 3vw, 34px); color: #fff; margin-bottom: 10px; }
.af-final p { font-size: 16px; color: rgba(255,255,255,.62); max-width: 56ch; margin: 0 auto; }
.af-final .af-cta { margin-top: 26px; }

@media (max-width: 900px) {
  .af-section { padding: 56px 20px 0; }
  .af-section:last-of-type { padding-bottom: 64px; }
  .af-chiffres { grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 34px; }
  .af-chiffres div { padding: 12px 8px; }
  .af-chiffres b { font-size: 19px; }
  .af-chiffres span { font-size: 11.5px; }
  .af-raisons, .af-tarifs, .af-autres, .af-zones { grid-template-columns: 1fr; }
  .af-etapes { grid-template-columns: 1fr 1fr; }
  .af-fondatrice { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; }
  .af-fondatrice img { margin: 0 auto; width: 180px; }
  .af-prog, .af-bloc { padding: 24px 22px; }
  .af-final { padding: 0 20px 64px; margin-top: 56px; }
}
@media (max-width: 520px) {
  .af-etapes { grid-template-columns: 1fr; }
  .af-compare-l { grid-template-columns: 78px 1fr auto; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .af-btn, .af-faq summary::after { transition: none; } }
