/*
Theme Name: SAHEL 2027
Description: Thème officiel du site SAHEL-Niger 2027 — variante C hybride (accueil institutionnel avec photos de l'Édition 2025, compte à rebours, galerie par édition). Compatible avec le plugin « SAHEL Comité » (codes courts [sahel_comite] et [sahel_comite_liste]).
Author: Commissariat SAHEL 2027
Version: 6.5
Text Domain: sahel-2027
*/

:root{--vert:#1E5B3F;--vert-fonce:#143D2A;--terre:#C77E2E;--sable:#F5F3EC;--encre:#1F2A21;--gris:#5C685E;--ligne:#DDD8CC}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--encre);background:var(--sable);line-height:1.55}
a{color:var(--vert)}
/* header */
.site-header{background:#fff;border-bottom:1px solid var(--ligne)}
.hwrap{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:1rem;padding:.7rem 1.2rem;flex-wrap:wrap}
.logos-officiels{display:flex;align-items:center;gap:.7rem}
.logo-reca{height:52px;width:auto;object-fit:contain}
.logo-sahelniger{background:transparent !important}
.logos-droite{margin-left:auto;display:flex;align-items:center;gap:.9rem}
.logo-min{height:64px;width:auto;object-fit:contain}
.logo-off{height:52px;width:auto;object-fit:contain}
.logo-roue{border-radius:50%;object-fit:cover}
.logo-roue-grande{height:74px;width:74px}

@media(max-width:760px){.logo-min{height:44px}.logo-off{height:38px}.logo-roue-grande{height:56px;width:56px}}
.hwrap .marque b{font-size:1.02rem;display:block}
.hwrap .marque small{color:var(--gris);font-size:.72rem}
.main-nav{margin-left:auto;display:flex;gap:.15rem;flex-wrap:wrap}
.main-nav a{color:var(--encre);text-decoration:none;font-size:.84rem;padding:.45rem .6rem;border-radius:6px;display:block}
.main-nav a:hover{background:var(--sable)}
.main-nav .comite a{border:1.5px solid var(--vert);color:var(--vert);font-weight:700;margin-left:.4rem}
/* hero */
.hero{background:linear-gradient(180deg,rgba(20,61,42,.55),rgba(20,61,42,.88)),url(assets/hero.jpg) center/cover;color:#fff;padding:3.2rem 1.2rem 3.4rem;text-align:center;position:relative}
.hero .mention-photo{position:absolute;top:.9rem;right:.9rem;border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:.25rem .9rem;font-size:.72rem;background:rgba(10,22,14,.6)}
.hero .ed{display:inline-block;border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:.25rem .9rem;font-size:.75rem;letter-spacing:.14em;margin-bottom:1.1rem}
.hero h1{font-family:Georgia,serif;font-size:clamp(1.7rem,4.5vw,2.7rem);font-weight:700;max-width:820px;margin:0 auto .8rem}
.hero .theme{color:#D9E7DE;font-size:1rem;max-width:640px;margin:0 auto 1.6rem}
.date-bloc{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap}
.date-bloc span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);border-radius:10px;padding:.6rem 1.1rem;font-size:.92rem}
.ctas{margin-top:1.6rem;display:flex;gap:.7rem;justify-content:center;flex-wrap:wrap}
.cta{border-radius:8px;padding:.75rem 1.4rem;font-size:.95rem;text-decoration:none;font-weight:700;display:inline-block}
.cta.principal{background:var(--terre);color:#fff}
.cta.second{border:1.5px solid rgba(255,255,255,.55);color:#fff}
/* contenu */
.contenu{max-width:1100px;margin:0 auto;padding:1.5rem 1.2rem 2.5rem}
.contenu section{margin-top:2.2rem}
.contenu h2{font-size:1.25rem;font-weight:800;margin-bottom:.2rem}
.sous-titre{color:var(--gris);font-size:.88rem;margin-bottom:1rem}
.grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.9rem}
.carte{background:#fff;border:1px solid var(--ligne);border-radius:12px;padding:1rem 1.1rem}
.carte b{display:block;margin-bottom:.15rem;font-size:.95rem}
.carte small{color:var(--gris)}
/* compte à rebours */
.compte-a-rebours{background:#fff;border:1px solid var(--ligne);border-radius:12px;padding:1.1rem 1.2rem;text-align:center}
.compte-a-rebours .cadran{justify-content:center}
.compte-a-rebours h2{margin-bottom:.6rem}
.cadran{display:flex;gap:.6rem;flex-wrap:wrap}
.unite{background:var(--vert-fonce);color:#fff;border-radius:10px;padding:.7rem 1.1rem;text-align:center;min-width:84px}
.unite b{display:block;font-size:1.6rem;font-weight:800;line-height:1.1}
.unite small{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:#B9CFC0}
.note-cd{font-size:.8rem;color:#7A4E17;background:#FBF3E4;border:1px dashed var(--terre);border-radius:8px;padding:.55rem .75rem;margin-top:.7rem}
/* univers */
.univers{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.9rem}
.univers .bloc{border-radius:12px;overflow:hidden;min-height:170px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;padding:.9rem;font-weight:700;font-size:.95rem}
.univers .bloc small{font-weight:400;font-size:.78rem;color:#DCE7DE;margin-top:.35rem}
/* galerie */
.galerie{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}
.galerie figure{border:1px solid var(--ligne);border-radius:12px;overflow:hidden;background:#fff}
.galerie img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.galerie figcaption{padding:.6rem .8rem;font-size:.78rem;color:var(--gris)}
.galerie figcaption b{display:block;color:var(--encre);font-size:.84rem}
/* notes */
.note{background:#FBF3E4;border:1px dashed var(--terre);border-radius:10px;padding:.8rem 1rem;font-size:.84rem;color:#7A4E17}
.rgpd{font-size:.78rem;color:var(--gris);margin-top:1rem;border-top:1px solid var(--ligne);padding-top:.7rem}
/* pages internes */
.page-entete{background:var(--vert);color:#fff;padding:2.2rem 1.2rem;text-align:center}
.page-entete h1{font-family:Georgia,serif;font-size:1.8rem}
.page-contenu{max-width:860px;margin:0 auto;padding:1.8rem 1.2rem 2.5rem;background:#fff;border:1px solid var(--ligne);border-radius:12px;margin-top:1.4rem}
.page-contenu p{margin:.6rem 0}
.page-contenu h2{margin:1.4rem 0 .4rem;color:var(--vert-fonce)}
.page-contenu ul,.page-contenu ol{margin:.6rem 0 .8rem 1.3rem}
/* footer */
.site-footer{background:var(--vert-fonce);color:#CBDCD1;font-size:.8rem;padding:1.6rem 1.2rem;text-align:center;margin-top:2rem}
/* comité */
.sahel-comite label{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--gris);margin:.8rem 0 .25rem}
.sahel-comite input[type=text],.sahel-comite input[type=password],.sahel-comite input[type=email]{width:100%;max-width:420px;padding:.55rem .65rem;border:1px solid var(--ligne);border-radius:8px;font-size:.95rem}
.sahel-comite .btn{background:var(--vert);color:#fff;border:none;border-radius:8px;padding:.6rem 1.3rem;font-weight:700;cursor:pointer;margin-top:1rem}
@media(max-width:760px){.main-nav{margin-left:0;width:100%}}
