/* Africa BC/DR — mise en page commune (barre supérieure, en-têtes, visuels de menus).
   Remplace l'ancien fichier menu-sprite.css. Les images des menus sont désormais
   réglées dans les options et injectées en style en ligne. */

/* En-tête blanc collant, accueil et pages internes */
.abcdr-v2-home .v2-header{position:sticky!important;top:0!important;background:#fff!important;color:#062e54!important}
.abcdr-v2-home .v2-header .v2-brand-logo{filter:none!important}
.abcdr-v2-home .v2-header .v2-header-bg{background:#fff!important;opacity:1!important}
.ab-header{position:sticky!important;top:0!important;background:#fff!important;color:#0b2b4b!important}
.ab-header .ab-brand__logo{filter:none!important}
/* Barre d'administration WordPress : l'en-tête collant se place dessous (compte connecté). */
.admin-bar.abcdr-v2-home .v2-header,.admin-bar .ab-header{top:32px!important}
@media screen and (max-width:782px){.admin-bar.abcdr-v2-home .v2-header,.admin-bar .ab-header{top:46px!important}}
@media screen and (max-width:600px){.admin-bar.abcdr-v2-home .v2-header,.admin-bar .ab-header{top:0!important}}

/* Visuels des menus déroulants */
.abcdr-menu-visual{display:block!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;background-color:#fff!important;aspect-ratio:8/5;min-height:120px}

/* Barre supérieure */
.ab-topbar{position:relative;z-index:60;background:#062e54;color:#fff;font-size:13px;line-height:1.5}
.ab-topbar__inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.ab-topbar__details{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:12px 0}
.ab-topbar a{color:inherit;text-decoration:none}
.ab-topbar__item{display:inline-flex;align-items:center;gap:9px}
.ab-topbar__icon{color:#fde428;font-size:20px}
.ab-topbar__conference{display:flex;align-items:center;align-self:stretch;background:#fde428;color:#062e54!important;padding:12px 20px;font-weight:700}
.ab-topbar a:focus-visible{outline:2px solid #fde428;outline-offset:3px}
@media(max-width:1100px){.ab-topbar__details{gap:10px 20px}.ab-topbar__inner{gap:0 16px}}
@media(max-width:640px){.ab-topbar{font-size:12px}.ab-topbar__inner{display:block}.ab-topbar__details{display:grid;grid-template-columns:1fr;padding:10px 0;gap:5px}.ab-topbar__conference{justify-content:center;padding:8px 12px}}

/* Nom en texte quand aucun logo n'est réglé */
.abcdr-wordmark{display:inline-block;font-weight:800;font-size:20px;letter-spacing:-.02em;line-height:1.1;color:#0b2b4b;white-space:nowrap}
.abcdr-wordmark--footer{color:#fff;font-size:22px;margin-bottom:16px}
.abcdr-logo--dark-version{filter:none!important}

/* Pied de page : adresse, réseaux et liens légaux */
.abcdr-footer-address{display:block;font-size:14.5px;line-height:1.6;margin:2px 0 6px}
.abcdr-footer-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 28px;padding-block:18px;border-bottom:1px solid rgba(255,255,255,.14);font-size:13.5px}
.abcdr-footer-links span{display:flex;flex-wrap:wrap;gap:8px 20px}
.abcdr-footer-links a{color:inherit;text-decoration:none;min-height:0!important}
.abcdr-footer-links a:hover{color:var(--v2-yellow,#f3c928)}
.ab-footer .abcdr-footer-links{margin-top:12px;color:rgba(255,255,255,.72)}

/* Sous-menus issus d'un menu WordPress */
.abcdr-mega-list ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.abcdr-mega-list li a{display:block;padding:14px 16px;border-radius:10px;text-decoration:none;color:inherit}
.abcdr-mega-list li a:hover,.abcdr-mega-list li a:focus-visible{background:#f3f6f8}
.abcdr-mega-list strong{display:block;font-weight:750}
.abcdr-mega-list em{display:block;font-style:normal;font-size:13px;opacity:.75;margin-top:4px}

/* Équipe sans photo (accueil) */
.abcdr-initial{display:grid;place-items:center;width:100%;aspect-ratio:1;background:#0b2b4b;color:#fff;font-size:44px;font-weight:800}

/* Page Initiatives : coordination */
.ab-initiative-row .abcdr-coord{margin-top:10px;font-size:14px;font-weight:650;color:#65717c}

/* Page Événements : bloc Conférences (auparavant masqué ; styles d'origine dans dist/styles.css) */
.ab-event-feature{scroll-margin-top:140px;margin-bottom:64px}
.ab-event-feature .ab-btn{white-space:nowrap}
.ab-event-feature.abcdr-has-poster{grid-template-columns:minmax(180px,280px) 1fr auto;align-items:center}
.abcdr-conf-poster{width:100%;height:auto;background:#fff}
@media(max-width:900px){.ab-event-feature,.ab-event-feature.abcdr-has-poster{grid-template-columns:1fr}.ab-event-feature .ab-btn{justify-self:start}}
#webinaires,#prochains-webinaires,#archives-webinaires{scroll-margin-top:140px}

/* Accueil : le lien « Voir l'événement » des cartes est désormais un vrai lien */
.v2-event-body>strong>a{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
.v2-event-body>strong>a:hover{text-decoration:underline;text-underline-offset:3px}

/* Menu mobile des pages internes : sous-liens lisibles et bouton d'adhésion ciblé par classe
   (l'ancienne règle « avant-dernier lien » colorait le mauvais élément). */
.ab-mobile-menu nav .ab-mobile-sub>div a{font-size:16px;font-weight:700;letter-spacing:0;padding:10px 0;min-height:42px;margin:0;border:0;border-top:1px solid rgba(255,255,255,.08);border-radius:0;background:none;color:rgba(255,255,255,.8);text-align:left;width:auto;justify-content:flex-start}
@media (max-width:620px){
  .ab-mobile-menu nav>a:nth-last-child(2):not(.ab-mobile-cta){margin-top:0;border:0;border-bottom:1px solid rgba(255,255,255,.10);border-radius:0;padding:11px 0;background:none;color:inherit;text-align:left;font-size:clamp(25px,8vw,32px);width:auto;min-height:0;display:block}
  .ab-mobile-menu nav>a.ab-mobile-cta{margin-top:18px;border:0;border-radius:999px;padding:14px 20px;background:var(--color-accent);color:var(--color-primary-900);font-size:17px;width:100%;min-height:50px;display:flex;align-items:center;justify-content:center}
}

/* Contenu de l'éditeur affiché sous une page à mise en page dédiée (option par page) */
.abcdr-page-content{padding:clamp(48px,6vw,88px) 0}

/* Accueil, menu mobile ouvert : l'en-tête se fixe en haut de l'écran pour que le panneau
   (positionné sous un en-tête supposé fixe) ne recouvre plus le logo ni le bouton de fermeture. */
html.v2-menu-open body.abcdr-v2-home .v2-header{position:fixed!important;top:0!important;left:0;right:0}
html.v2-menu-open body.admin-bar.abcdr-v2-home .v2-header{top:46px!important}
html.v2-menu-open body.admin-bar.abcdr-v2-home .v2-nav{top:calc(var(--v2-header) + 46px);height:calc(100dvh - var(--v2-header) - 46px)}

/* Écrans de 901 à 1240 px : les liens du menu restent sur une ligne (le lien Contact,
   désormais présent sur toutes les pages, faisait passer les libellés sur deux lignes). */
@media (min-width:901px) and (max-width:1240px){
  .ab-nav--desktop{gap:16px}
  .ab-nav--desktop a,.ab-nav-main a,.v2-nav>a,.v2-nav-main>a{white-space:nowrap}
  .ab-nav--desktop a,.ab-nav-main a{font-size:13.5px}
  .v2-nav>a,.v2-nav-main>a{font-size:14px}
  .v2-header-inner{gap:18px}
  .v2-header-cta,.ab-header__cta{white-space:nowrap}
  .v2-brand,.ab-brand{flex-shrink:0}
}
@media (min-width:901px) and (max-width:1060px){
  .v2-nav>a,.v2-nav-main>a{font-size:13px;padding-inline:8px}
  .v2-header-cta{padding-inline:16px}
  .v2-brand{width:150px}
}

/* ───── Accueil : la bannière tient dans la partie visible de l'écran (2.1.6) ─────
   --abcdr-hero-top = hauteur occupée au-dessus de la bannière (barre d'admin, coordonnées, menu),
   mesurée par le script du thème. Sur un portable, le compteur « 01 / 02 », les flèches
   et la barre « Accès directs » restent visibles sans faire défiler. */
@media(min-width:901px){
  .abcdr-v2-home .v2-hero{--abcdr-hero-h:max(480px,calc(100svh - var(--abcdr-hero-top,142px)));min-height:var(--abcdr-hero-h)!important;height:var(--abcdr-hero-h)}
  .abcdr-v2-home .v2-hero-inner{padding-top:clamp(28px,calc(var(--abcdr-hero-h) * .07),96px)!important;padding-bottom:calc(var(--abcdr-quick-h,93px) + 84px)!important}
  .abcdr-v2-home .v2-hero h1,.abcdr-v2-home .v2-hero h2{font-size:clamp(36px,min(5.4vw,calc(var(--abcdr-hero-h) * .088)),84px)!important}
  .abcdr-v2-home .v2-hero-lead{font-size:clamp(15px,calc(var(--abcdr-hero-h) * .028),20px)!important;margin-top:clamp(12px,calc(var(--abcdr-hero-h) * .03),25px)!important}
  .abcdr-v2-home .v2-hero .v2-actions{margin-top:clamp(16px,calc(var(--abcdr-hero-h) * .04),36px)!important}
  .abcdr-v2-home .v2-hero-ui{bottom:calc(var(--abcdr-quick-h,93px) + 16px)!important}
}

/* ───── Mobile : barre de coordonnées compacte (2.2.1) ─────
   Sur téléphone, adresse et horaires sont masqués (ils restent dans le pied de page et la page Contact) ;
   e-mail, téléphone et bouton Conférence tiennent sur une seule ligne. */
@media(max-width:760px){
  .ab-topbar__inner{display:flex!important;flex-wrap:nowrap!important;gap:10px!important;align-items:center}
  .ab-topbar__details{display:flex!important;flex-wrap:nowrap!important;gap:14px!important;padding:8px 0!important;min-width:0}
  span.ab-topbar__item{display:none!important}
  .ab-topbar__item{font-size:12px;white-space:nowrap}
  a.ab-topbar__item[href^="mailto"]{font-size:0;gap:0}
  .ab-topbar__icon{font-size:17px!important}
  .ab-topbar__conference{align-self:center!important;padding:7px 12px!important;font-size:12px;white-space:nowrap;margin-left:auto;border-radius:6px}
}

/* Mobile : le bouton « Personnaliser mon thème » (administrateurs seulement) devient une pastille
   discrète en bas à droite pour ne pas masquer le texte. */
@media(max-width:760px){
  body .abcdr-live-launcher{left:auto!important;right:14px!important;bottom:14px!important;width:46px;height:46px;min-height:46px!important;padding:0!important;justify-content:center}
  body .abcdr-live-launcher .abcdr-live-launcher__label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* Mobile : menus déroulants « Nos initiatives » / « Nos événements » (2.2.3)
   La vignette gardait 120 px de haut au format 8/5 (≈ 192 px de large) dans une colonne de 112 px :
   elle débordait sur le titre et le coupait. */
@media(max-width:900px){
  .v2-mega-tile,.v2-mega-event{grid-template-columns:104px minmax(0,1fr)!important;align-items:center}
  .v2-mega-tile .abcdr-menu-visual,.v2-mega-event .abcdr-menu-visual{min-height:0!important;width:auto!important;height:auto!important;aspect-ratio:16/10;margin:8px 0 8px 8px;border-radius:8px;overflow:hidden}
  .v2-mega-copy,.v2-mega-event-copy{min-width:0}
  .v2-mega-copy strong,.v2-mega-event-copy>strong{overflow-wrap:anywhere}
}
