/* SEO / GEO — styles des blocs editoriaux et des nouvelles pages.
   Chargé après les feuilles existantes : ne modifie pas le design d'origine. */

.breadcrumb{font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;color:#6b7f7a;margin:0 0 1.1rem}
.breadcrumb a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(0,0,0,.15)}
.breadcrumb a:hover{color:#0f2f2b}
.breadcrumb span[aria-hidden]{margin:0 .45rem;color:#9db3ae}

.seo-intro{margin-top:0}
.seo-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;align-items:start}
.seo-two-col>div>h2{margin-bottom:1rem}
.seo-two-col p{margin:0 0 1rem;line-height:1.75}
.seo-intro .seo-two-col{margin-top:2rem}

.seo-facts{list-style:none;margin:0 0 1.2rem;padding:0;border-top:1px solid rgba(15,47,43,.14)}
.seo-facts li{display:grid;grid-template-columns:8.5rem 1fr;gap:.75rem;padding:.7rem 0;border-bottom:1px solid rgba(15,47,43,.14);font-size:.95rem;line-height:1.5}
.seo-facts li b{font-weight:700;color:#0f2f2b;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;padding-top:.15rem}
.seo-facts a{color:#0f5c4f;text-decoration:none;border-bottom:1px solid rgba(15,92,79,.35)}
.seo-facts a:hover{border-bottom-color:#0f5c4f}
.seo-facts-wide li{grid-template-columns:11rem 1fr}

.seo-links{margin-top:1.4rem;font-size:.92rem;color:#3d534e}
.seo-links a{color:#0f5c4f}

.seo-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:rgba(15,47,43,.16);border:1px solid rgba(15,47,43,.16);margin-top:2rem}
.seo-cards article{background:#fff;padding:1.6rem 1.4rem}
.seo-cards h3{font-family:var(--display,Georgia,serif);font-weight:400;font-size:1.22rem;margin:0 0 .55rem;line-height:1.25;color:#0f2f2b}
.seo-cards p{margin:0;font-size:.9rem;line-height:1.6;color:#435853}
.seo-cards a{color:#0f5c4f}

.seo-steps{counter-reset:s;list-style:none;padding:0;margin:0 0 1.2rem}
.seo-steps li{counter-increment:s;position:relative;padding:0 0 1rem 2.6rem;line-height:1.6;border-bottom:1px solid rgba(15,47,43,.1)}
.seo-steps li:last-child{border-bottom:0}
.seo-steps li::before{content:counter(s,decimal-leading-zero);position:absolute;left:0;top:.1rem;font-family:var(--display,Georgia,serif);font-style:italic;color:#c9842a;font-size:1rem}
.seo-check{list-style:none;padding:0;margin:0 0 1.2rem}
.seo-check li{position:relative;padding:.45rem 0 .45rem 1.6rem;line-height:1.55;border-bottom:1px solid rgba(15,47,43,.08)}
.seo-check li::before{content:"\2713";position:absolute;left:0;color:#0f5c4f;font-weight:700}

.seo-sitemap{list-style:none;padding:0;margin:0}
.seo-sitemap li{padding:.6rem 0;border-bottom:1px solid rgba(15,47,43,.12)}
.seo-sitemap a{color:#0f5c4f;text-decoration:none}
.seo-sitemap a:hover{text-decoration:underline}

.seo-faq .qa details{background:#fff}

.footer-seo{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:2rem;padding:2.4rem 0 1.6rem;border-top:1px solid rgba(255,255,255,.16)}
.footer-seo h3{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:#9dc3b8;margin:0 0 .9rem}
.footer-seo ul{list-style:none;margin:0;padding:0}
.footer-seo li{margin:0 0 .5rem;font-size:.9rem}
.footer-seo a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.25)}
.footer-seo a:hover{border-bottom-color:#fff}
.footer-nap{font-size:.88rem;line-height:1.7;color:#d5e3df;margin:0}
.footer-nap strong{color:#fff}
.footer-zones{font-size:.85rem;line-height:1.7;color:#b9cfca;margin:0}
.footer-legal{border-top:1px solid rgba(255,255,255,.12);padding:1.1rem 0 1.6rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.78rem;color:#9fb6b0}
.footer-legal p{margin:0}
.footer-legal-links a{color:#cfdedb;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.22)}
.footer-note{display:block;margin-top:.35rem;color:#8fa9a3;max-width:52ch}

@media (max-width:1000px){
  .seo-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-seo{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .seo-two-col{grid-template-columns:1fr;gap:1.4rem}
  .footer-seo{grid-template-columns:1fr}
}
@media (max-width:620px){
  .seo-cards{grid-template-columns:1fr}
  .seo-facts li,.seo-facts-wide li{grid-template-columns:1fr;gap:.15rem}
  .seo-facts li b{padding-top:0}
}

/* Contraste WCAG : le badge « Aimer et servir » orange sur fond clair
   n'atteignait pas le ratio 4.5:1. Teinte assombrie sur fonds clairs,
   teinte eclaircie sur fonds sombres. */
.ong-brand-text em { color: #a33413; }
.dark-section .ong-brand-text em,
.footer .ong-brand-text em,
.ong-page .footer .ong-brand-text em { color: #f2b49c; }

/* ============================================================
   CONTRASTES — WCAG 2.2 AA (4,5:1 texte courant, 3:1 grand texte)
   Mesures faites sur les captures rendues (Chrome 1280 px) puis
   verifiees a l'axe-core. Aucune modification de la charte :
   on ne touche qu'aux nuances utilisees pour du TEXTE.
   ============================================================ */
:root { --accent-text: #a83414; --accent-text-soft: #c2532b; }

/* 1. Titres a <em> d'accent. Le jaune #f7b63c est reserve aux FONDS
      sombres (9,1:1). Sur fond clair il ne depasse pas 1,7:1 : on lui
      substitue l'ocre profond #96620f (4,9:1 sur papier, 5,2:1 sur blanc).
      Le hero de l'accueil a un fond tres clair (degrade quasi blanc) :
      handled by .hero plus bas. */
:root { --sun-on-light: #96620f; }
h1 em, h2 em, h3 em { color: var(--sun-on-light); }
.hero h1 em, .hero h2 em { color: var(--sun-on-light); }
.subhero h1 em, .subhero h2 em,
.services-section h1 em, .services-section h2 em,
.network h1 em, .network h2 em,
.dark-section h1 em, .dark-section h2 em,
.ong-hero h1 em, .ong-hero h2 em,
.project-hero h1 em, .project-hero h2 em,
.footer h2 em, .footer h1 em { color: #f7b63c; }

/* 2. Bandeau de contact ONG (fond #cf4722) et cartes translucides :
      on passe le fond a la nuance profonde pour que blanc + pastille
      atteignent 4,5:1. */
.ong-contact { background: #a83414; }
.ong-contact .lead { color: #fff; }
.ong-contact .section-id { color: #fff; }
.ong-contact h2 em { color: #ffe9c9; }
.contact-cards a, .contact-cards div {
  background: rgba(0, 0, 0, .22);
  border-color: rgba(255, 255, 255, .55);
  color: #fff; }
.contact-cards small { opacity: 1; color: #ffe9c9; }
.contact-cards a:hover { background: rgba(0, 0, 0, .34); }

/* 3. Citations : la mention en pied de citation utilise #fff0df sur
      #cf4722 => 4,1:1. On fonce legerement le fond des .pull-quote. */
.pull-quote { background: #a83414; }
.pull-quote footer { color: #ffe9c9; }

/* 4. Libelle "Aimer et servir" de la marque ONG sur fond clair. */
.ong-brand-text em { color: var(--accent-text); }
.ong-page .footer .ong-brand-text em { color: #ffd9c4; }

/* 5. Lien de navigation courant de la rubrique ONG. */
.ong-nav a[aria-current="page"], .ong-nav a[aria-current="true"] { color: var(--accent-text); }

/* ============================================================
   CIBLES TACTILES — WCAG 2.2 / 2.5.8 (24x24 px minimum)
   Les liens de la miette de pain et de la bande juridique
   mesuraient 16-19 px de haut sur mobile.
   ============================================================ */
.breadcrumb a, .footer-legal a, .plan-du-site a, .footer-seo a {
  display: inline-block;
  min-height: 24px;
  padding-block: 3px;
}
.breadcrumb { line-height: 1.6; }

/* ============================================================
   6. FIL D'ARIANE dans les heros sombres (.ong-hero, .project-hero)
      #6b7f7a sur #2b1d14 ne donne que 3,8:1.
   ============================================================ */
.ong-hero .breadcrumb, .project-hero .breadcrumb,
.ong-hero .breadcrumb a, .project-hero .breadcrumb a { color: #e6d5c9; }
.ong-hero .breadcrumb span[aria-hidden], .project-hero .breadcrumb span[aria-hidden] { color: #f7b63c; }

/* ============================================================
   7. ORBITE "Zogbadjè / Calavi" : le texte encre sur disque jaune
      est remplace par encre sur blanc pour garantir 12:1.
   ============================================================ */
.orbit { background: #fff; color: #102e36; box-shadow: inset 0 0 0 3px #f7b63c; }

/* ============================================================
   8. Anneau decoratif des heros sombres : il passait derriere le
      titre, mettant le texte blanc et le <em> jaune sur du jaune.
      On l'estompe progressive'ment vers la zone de texte tout en
      gardant l'effet graphique a droite.
   ============================================================ */
.subhero::before,
.ong-hero::after {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 28%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 28%, #000 62%);
}
.subhero::before { right: -18vw; opacity: .7; }

/* ============================================================
   9. Heros sombres : le texte (titre blanc, <em> jaune, chapô) est
      pose sur une photo. On ajoute un voile en degrade lineaire pour
      garantir le contraste reel sur la ZONE DE TEXTE uniquement
      (le reste de l'image reste visible).
   ============================================================ */
.subhero, .ong-hero { position: relative; isolation: isolate; }
.subhero::after, .ong-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg,
      rgba(10, 30, 36, .92) 0%,
      rgba(10, 30, 36, .82) 42%,
      rgba(10, 30, 36, .28) 72%,
      rgba(10, 30, 36, 0) 100%);
}
/* le voile du hero ONG existe deja (::before) : on le renforce au lieu
   d'en superposer un second. */
/* on conserve la photo de fond (--hero-img) definie par ong.css */
.ong-hero::before { z-index: -1; background: linear-gradient(100deg,
      rgba(20, 12, 8, .97) 0%, rgba(20, 12, 8, .93) 46%,
      rgba(20, 12, 8, .70) 74%, rgba(20, 12, 8, .42) 100%),
      var(--hero-img) center / cover no-repeat; }
.ong-hero::after { z-index: -1; }

/* ============================================================
   10. Precision geographique sous le <h1> de l'accueil : visible,
       lisible (>= 4.5:1) et non intrusive.
   ============================================================ */
.h1-precision { margin: .55rem 0 1.15rem; max-width: 44ch; font-size: .95rem;
  line-height: 1.55; color: #3f5751; }
@media (max-width: 620px) { .h1-precision { font-size: .9rem; } }
