/* ============================================================
   AFEBAS THEME — afebas-theme.css (CLEAN / UNIQUE)
   Objectifs :
   - PC : plein écran, pas de “marge fantôme” à droite
   - Mobile : aucun débordement (Owl/SlideAnything inclus)
   - Footer : logo maîtrisé (pas XXL)
   - Retour bleu/jaune + bandeau Coupe + déco Finales (AFC19)
   IMPORTANT :
   - Ce fichier est UNE version propre (pas 4 patchs empilés).
   - Collez-le tel quel (remplacez l’ancien fichier complet).
   ============================================================ */

/* ───────────────────────────────────────────────────────────
   0) Variables (par défaut) — surchargées par le Customizer
   ─────────────────────────────────────────────────────────── */
:root{
  /* AFEBAS Bleu / Jaune */
  --afb-primary:        #0b2a5b;
  --afb-primary-mid:    #123a7a;
  --afb-primary-light:  #1f5bb5;
  --afb-primary-glow:   rgba(11,42,91,0.28);
  --afb-primary-bg:     rgba(11,42,91,0.08);

  --afb-accent:         #f5c400;
  --afb-alert:          #cc2200;

  --afb-dark:           #070b12;
  --afb-dark-mid:       #0e1522;
  --afb-dark-card:      #0e1626;

  --afb-body-bg:        #eef2f7;
  --afb-text:           #1a1a1a;
  --afb-muted:          #74839a;
  --afb-border:         #dde3ee;
  --afb-white:          #ffffff;

  --afb-font-display:   'Barlow Condensed','Arial Narrow',sans-serif;
  --afb-font-body:      'Inter','Helvetica Neue',Arial,sans-serif;

  --afb-radius:         8px;
  --afb-radius-lg:      13px;
  --afb-shadow:         0 2px 10px rgba(0,0,0,0.07);
  --afb-shadow-md:      0 8px 26px rgba(0,0,0,0.14);
  --afb-transition:     0.2s ease;

  /* Aliases legacy (anciens snippets) */
  --afebas-blue:        var(--afb-primary);
  --afebas-yellow:      var(--afb-accent);
  --afebas-font-title:  var(--afb-font-display);
}

/* ───────────────────────────────────────────────────────────
   1) Reset propre + base
   ─────────────────────────────────────────────────────────── */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--afb-font-body);
  background:var(--afb-body-bg);
  color:var(--afb-text);
  line-height:1.6;
  font-size:15px;
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--afb-primary); text-decoration:none; transition:color var(--afb-transition); }
a:hover{ color:var(--afb-primary-mid); }
img,video{ max-width:100%; height:auto; display:block; }
ul,ol{ list-style:none; }
table{ border-collapse:collapse; width:100%; }
button,input,select,textarea{ font-family:inherit; font-size:inherit; }
button{ cursor:pointer; border:none; background:none; }
h1,h2,h3,h4,h5,h6{ line-height:1.2; color:var(--afb-text); }
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }
.screen-reader-text{
  clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; width:1px; margin:-1px; overflow:hidden;
  padding:0; position:absolute; word-wrap:normal;
}

/* ───────────────────────────────────────────────────────────
   2) Anti “marge fantôme” + anti overflow horizontal (GLOBAL)
   NOTE : c’est ICI qu’on règle le souci mobile + carrousel.
   ─────────────────────────────────────────────────────────── */
html,body{
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  overflow-x:hidden; /* mobile-friendly, stoppe la zone blanche à droite */
}

/* Wrappers WP / thème parent : certains imposent des largeurs/offsets */
#page, .site, .site-content, .content-area, .site-main, .wp-site-blocks, .wrap, .container{
  width:100%;
  max-width:none !important;
}

/* Gutenberg alignfull/alignwide : neutralisation (source classique d’overflow) */
.alignfull,
.wp-block[data-align="full"],
.wp-site-blocks > .alignfull{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.alignwide,
.wp-block[data-align="wide"]{
  max-width:100% !important;
}

/* Inline style “100vw” (plugins/constructeurs) : évite le débordement */
*[style*="100vw"]{
  width:100% !important;
  max-width:100% !important;
}

/* ───────────────────────────────────────────────────────────
   3) TOP BAR
   ─────────────────────────────────────────────────────────── */
.afb-topbar{
  background:var(--afb-dark);
  border-bottom:2px solid var(--afb-primary);
  height:32px; min-height:32px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(14px,2.5vw,34px);
  font-size:11px; color:var(--afb-muted);
  position:relative; z-index:200;
}
.afb-topbar__info{ display:flex; align-items:center; gap:20px; }
.afb-topbar__info span{ display:flex; align-items:center; gap:5px; white-space:nowrap; }
.afb-topbar__dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--afb-accent);
  animation:afb-blink 2s ease-in-out infinite;
}
@keyframes afb-blink{ 0%,100%{opacity:1} 50%{opacity:.25} }
.afb-topbar__socials{ display:flex; align-items:center; gap:6px; }
.afb-topbar__social{
  width:22px; height:22px; border-radius:4px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.07);
  display:inline-flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; color:var(--afb-muted);
  transition:all var(--afb-transition);
}
.afb-topbar__social:hover{
  background:var(--afb-primary);
  border-color:var(--afb-primary);
  color:var(--afb-white);
}

/* ───────────────────────────────────────────────────────────
   4) HEADER & NAV
   ─────────────────────────────────────────────────────────── */
.afb-header{
  background:var(--afb-dark);
  position:sticky; top:0; z-index:100;
  box-shadow:0 4px 24px rgba(0,0,0,0.45);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.afb-header__inner{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(14px,2.5vw,34px);
  height:72px; gap:16px;
}
.afb-header__brand{
  display:flex; align-items:center;
  flex-shrink:0; text-decoration:none;
}
.afb-header__brand .custom-logo-link{ display:flex; align-items:center; }
.afb-header__brand .custom-logo,
.afb-header__brand img{
  max-height:44px !important;
  width:auto !important;
  max-width:240px !important;
  object-fit:contain !important;
  border-radius:6px !important;
}

/* Tagline */
.afb-logo-tagline{
  margin-left:14px; padding-left:14px;
  border-left:1px solid rgba(255,255,255,0.10);
  display:flex; flex-direction:column;
}
.afb-logo-tagline__l1{
  font-family:var(--afb-font-display);
  font-weight:800; font-size:14px;
  letter-spacing:.12em; text-transform:uppercase;
  color:var(--afb-white); line-height:1;
}
.afb-logo-tagline__l2{
  font-size:9px; letter-spacing:.10em; text-transform:uppercase;
  color:rgba(255,255,255,0.55);
  font-weight:500; margin-top:3px; line-height:1;
}

/* Navigation */
.afb-nav{ display:flex; align-items:center; gap:6px; }
.afb-nav__list{ display:flex; align-items:center; gap:2px; margin:0; padding:0; }
.afb-nav__list li{ position:relative; }
.afb-nav__list li a{
  font-weight:800; font-size:11.5px;
  text-transform:uppercase; letter-spacing:.07em;
  color:rgba(255,255,255,0.72);
  padding:7px 11px; border-radius:6px;
  display:block; transition:all var(--afb-transition);
  white-space:nowrap;
}
.afb-nav__list li a:hover{
  color:var(--afb-accent);
  background:rgba(255,255,255,0.06);
}
.afb-nav__list li.current-menu-item>a,
.afb-nav__list li.current_page_item>a{
  color:var(--afb-accent);
  background:rgba(245,196,0,0.10);
}

/* Sous-menus */
.afb-nav__list ul{
  display:none; position:absolute; top:100%; left:0; z-index:200;
  background:var(--afb-dark-mid);
  min-width:210px;
  border:1px solid rgba(255,255,255,0.08);
  border-top:2px solid var(--afb-accent);
  border-radius:0 0 10px 10px;
  box-shadow:0 16px 40px rgba(0,0,0,0.5);
  padding:6px 0;
}
.afb-nav__list li:hover>ul{ display:block; }
.afb-nav__list ul li a{
  font-size:11px !important;
  color:rgba(255,255,255,0.70) !important;
  padding:9px 16px !important;
  border-radius:0 !important;
  border-bottom:1px solid rgba(255,255,255,0.05);
}
.afb-nav__list ul li:last-child a{ border-bottom:none; }
.afb-nav__list ul li a:hover{
  background:rgba(245,196,0,0.12) !important;
  color:var(--afb-accent) !important;
}

/* CTA */
.afb-nav__cta{
  background:var(--afb-primary);
  color:var(--afb-white) !important;
  font-weight:900; font-size:11.5px;
  text-transform:uppercase; letter-spacing:.07em;
  padding:8px 16px; border-radius:7px;
  border:1px solid rgba(255,255,255,0.12);
  transition:background var(--afb-transition), transform var(--afb-transition);
  white-space:nowrap;
}
.afb-nav__cta:hover{
  background:var(--afb-primary-mid);
  transform:translateY(-1px);
}

/* Burger */
.afb-nav__toggle{
  display:none;
  flex-direction:column; justify-content:space-between;
  width:26px; height:18px;
  margin-left:8px;
}
.afb-nav__toggle span{
  height:2px; background:rgba(255,255,255,0.85);
  border-radius:2px; transition:all var(--afb-transition);
}

/* ───────────────────────────────────────────────────────────
   5) TICKER (bandeau bleu + label jaune)
   ─────────────────────────────────────────────────────────── */
.afb-ticker{
  background:var(--afb-primary);
  border-top:2px solid rgba(255,255,255,0.08);
  border-bottom:1px solid rgba(255,255,255,0.10);
  display:flex; align-items:center;
  height:40px; overflow:hidden;
  padding:0 16px;
  gap:10px;
}
.afb-ticker__label{
  flex:0 0 auto;
  padding:6px 12px;
  line-height:1;
  font-family:var(--afb-font-display);
  font-weight:900;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  border-radius:999px;
  background:var(--afb-accent);
  border:1px solid rgba(0,0,0,0.10);
  color:var(--afb-primary);
  white-space:nowrap;
}
.afb-ticker__track{
  flex:1 1 auto;
  overflow:hidden;
  min-width:0; /* CRITIQUE en flex : évite le débordement */
}
.afb-ticker__inner{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  will-change:transform;
  animation:afbTickerScroll 120s linear infinite;
}
.afb-ticker:hover .afb-ticker__inner{ animation-play-state:paused; }
.afb-ticker__item{
  display:inline-flex;
  align-items:center;
  padding:0 34px;
  font-weight:600;
  font-size:14px;
  color:rgba(255,255,255,0.88);
}
.afb-ticker__item strong{ color:var(--afb-accent); font-weight:900; }
.afb-ticker__cat{
  background:rgba(0,0,0,0.15);
  color:var(--afb-accent);
  font-size:10px; font-weight:900;
  padding:2px 7px;
  border-radius:999px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
@keyframes afbTickerScroll{
  0%{ transform:translate3d(0,0,0); }
  100%{ transform:translate3d(-50%,0,0); }
}

/* ───────────────────────────────────────────────────────────
   6) LAYOUT
   ─────────────────────────────────────────────────────────── */
.afb-container{
  width:100%;
  max-width:none;
  margin:0 auto;
  padding:0 clamp(14px,2.5vw,34px);
}
.afb-content-area{ padding:32px 0; }
.afb-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  align-items:start;
}
/* On active 2 colonnes uniquement si on a une sidebar réelle */
.afb-layout.has-sidebar{
  grid-template-columns:minmax(0,1fr) minmax(280px,360px);
}
.afb-main,.afb-sidebar{ min-width:0; }


/* Titles sections */
.afb-section{ margin-bottom:32px; }
.afb-section-head{
  display:flex; align-items:center; gap:10px;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid var(--afb-border);
  flex-wrap:wrap;
}
.afb-section-head__bar{ width:4px; height:20px; background:var(--afb-primary); border-radius:2px; flex-shrink:0; }
.afb-section-head__title{
  font-family:var(--afb-font-display);
  font-weight:900; font-size:16px;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--afb-primary);
}
.afb-section-head__link{
  font-size:12px; color:var(--afb-primary);
  font-weight:900; margin-left:auto;
}

/* ───────────────────────────────────────────────────────────
   7) ARTICLE / BLOG
   ─────────────────────────────────────────────────────────── */
.afb-article{
  background:var(--afb-white);
  border-radius:var(--afb-radius-lg);
  overflow:hidden;
  box-shadow:var(--afb-shadow);
  border:1px solid rgba(0,0,0,0.05);
}
.afb-article__thumb img{ width:100%; max-height:420px; object-fit:cover; }
.afb-article__header{ padding:28px 28px 0; }
.afb-article__title{
  font-family:var(--afb-font-display);
  font-size:30px; font-weight:900;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin:8px 0;
}
.afb-article__meta{
  font-size:12px; color:#8c97aa;
  margin-bottom:16px;
  display:flex; gap:12px; flex-wrap:wrap;
}
.afb-article__content{
  padding:20px 28px 28px;
  font-size:15px; line-height:1.85;
}
.afb-article__content h2{
  font-family:var(--afb-font-display);
  font-size:22px; font-weight:900;
  text-transform:uppercase;
  color:var(--afb-primary);
  margin:28px 0 12px;
}
.afb-article__content a{ text-decoration:underline; }
.afb-article__footer{
  padding:16px 28px;
  border-top:1px solid var(--afb-border);
}

/* ───────────────────────────────────────────────────────────
   8) CARTES TOURNOIS
   ─────────────────────────────────────────────────────────── */
.afb-cards-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
@media (max-width:1100px){
  .afb-cards-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px){
  .afb-cards-grid{ grid-template-columns:1fr; }
}

.afb-card{
  background:var(--afb-white);
  border-radius:var(--afb-radius-lg);
  overflow:hidden;
  box-shadow:var(--afb-shadow);
  border:1px solid rgba(0,0,0,0.06);
  display:flex; flex-direction:column;
  transition:transform var(--afb-transition), box-shadow var(--afb-transition);
}
.afb-card:hover{ transform:translateY(-3px); box-shadow:var(--afb-shadow-md); }

.afb-card__head{
  background:linear-gradient(180deg, var(--afb-primary) 0%, #081e41 100%);
  padding:9px 13px;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.afb-card__date{
  font-family:var(--afb-font-display);
  font-weight:900; font-size:13px;
  color:var(--afb-accent);
  text-transform:uppercase; white-space:nowrap;
}
.afb-card__badge{
  font-size:9px; font-weight:900;
  padding:2px 8px; border-radius:999px;
  background:rgba(255,255,255,0.14);
  color:rgba(255,255,255,0.92);
  text-transform:uppercase; letter-spacing:.04em;
  white-space:nowrap;
}
.afb-card__body{ padding:11px 13px; flex:1; }
.afb-card__nom{
  font-family:var(--afb-font-display);
  font-weight:900; font-size:14px;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin:0 0 5px;
  line-height:1.3;
}
.afb-card__meta{
  display:flex; flex-wrap:wrap;
  gap:5px 10px;
  font-size:11.5px;
  color:#73819a;
}
.afb-card__foot{
  padding:7px 13px 10px;
  background:#f7f9fd;
  border-top:1px solid #e9eef7;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.afb-progress-wrap{ height:3px; background:#d8deea; border-radius:2px; overflow:hidden; margin-bottom:4px; }
.afb-progress-bar{ height:100%; background:var(--afb-accent); border-radius:2px; }
.afb-card__places-txt{ font-size:10.5px; color:#6f7f98; display:block; }
.afb-card__cta{
  display:inline-flex; align-items:center; gap:4px;
  background:var(--afb-primary);
  color:var(--afb-white) !important;
  font-size:10.5px; font-weight:900;
  text-transform:uppercase; letter-spacing:.06em;
  padding:6px 14px; border-radius:7px;
  white-space:nowrap;
  transition:background var(--afb-transition);
}
.afb-card__cta:hover{ background:var(--afb-primary-mid); }

/* ───────────────────────────────────────────────────────────
   9) SIDEBAR / WIDGETS
   ─────────────────────────────────────────────────────────── */
.afb-widget{
  background:var(--afb-white);
  border-radius:var(--afb-radius-lg);
  overflow:hidden;
  margin-bottom:18px;
  box-shadow:var(--afb-shadow);
  border:1px solid rgba(0,0,0,0.05);
}
.afb-widget__title{
  background:var(--afb-primary) !important;
  padding:9px 15px !important;
  border-bottom:2px solid var(--afb-accent) !important;
  font-family:var(--afb-font-display) !important;
  font-weight:900 !important;
  font-size:12px !important;
  letter-spacing:.10em !important;
  text-transform:uppercase !important;
  color:var(--afb-white) !important;
}
.afb-widget__body{ padding:8px 14px; }

/* ───────────────────────────────────────────────────────────
   10) TABLES (scroll uniquement sur wrapper Gutenberg)
   ─────────────────────────────────────────────────────────── */
.wp-block-table{
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.wp-block-table table{ width:100%; }

/* ───────────────────────────────────────────────────────────
   11) FOOTER (logo maîtrisé)
   ─────────────────────────────────────────────────────────── */
.afb-footer{
  background:var(--afb-dark);
  color:rgba(255,255,255,0.55);
  border-top:3px solid var(--afb-primary);
}
.afb-footer__colorbar{
  height:3px;
  background:linear-gradient(90deg,var(--afb-primary) 0%, var(--afb-accent) 55%, var(--afb-primary-mid) 100%);
}
.afb-footer__grid{
  width:100%;
  margin:0 auto 18px;
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:36px;
  padding:26px clamp(14px,2.5vw,34px);
}
.afb-footer__logo .custom-logo-link{ display:inline-block; max-width:100%; }
.afb-footer__logo .custom-logo,
.afb-footer__logo img{
  max-height:44px;
  max-width:min(260px, 75vw); /* FIX logo XXL + safe mobile */
  width:auto;
  height:auto;
  opacity:.92;
  object-fit:contain;
}
.afb-footer__bottom{
  width:100%;
  padding:16px clamp(14px,2.5vw,34px) 20px;
  border-top:1px solid rgba(255,255,255,0.08);
  display:flex; justify-content:space-between; align-items:center;
  font-size:11px; flex-wrap:wrap; gap:8px;
}
@media (max-width:900px){
  .afb-footer__grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){
  .afb-footer__grid{ grid-template-columns:1fr; }
  .afb-footer__logo .custom-logo,
  .afb-footer__logo img{ max-width:min(190px, 75vw); }
}

/* ───────────────────────────────────────────────────────────
   12) BANDEAU COUPE (JAUNE)
   ─────────────────────────────────────────────────────────── */
.af-coupe-badge{
  background:var(--afebas-yellow);
  color:var(--afebas-blue);
  font-family:var(--afebas-font-title);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:0.08em;
  text-align:center;
  padding:6px 10px;
  font-size:12px;
  border-bottom:3px solid var(--afebas-blue);
  border-radius:8px 8px 0 0;
}

/* ───────────────────────────────────────────────────────────
   13) FIX titres widgets “Prochains tournois” / “Derniers résultats”
   (anti-gradient / text-fill)
   ─────────────────────────────────────────────────────────── */
.af-lastres-title-wrap,
.af-lastres-title-wrap *{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
.af-lastres-title-wrap h2,
.af-lastres-title-wrap h2 *{
  background:none !important;
  background-image:none !important;
  -webkit-background-clip:border-box !important;
  background-clip:border-box !important;
  text-shadow:0 2px 8px rgba(0,0,0,.35) !important;
  opacity:1 !important;
  filter:none !important;
  mix-blend-mode:normal !important;
}

h2.af-future-title,
h2.af-future-title *{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
h2.af-future-title{
  background:none !important;
  background-image:none !important;
  -webkit-background-clip:border-box !important;
  background-clip:border-box !important;
  text-shadow:0 2px 8px rgba(0,0,0,.35) !important;
  opacity:1 !important;
  filter:none !important;
  mix-blend-mode:normal !important;
}
.af-future-title-wrap,
.af-future-title-wrap *{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

/* ───────────────────────────────────────────────────────────
   14) FINAL “AFC19” (Finales) — version BLEU/JAUNE (scope #afc19)
   ─────────────────────────────────────────────────────────── */
#afc19.afc19,
#afc19.afc19 *{ box-sizing:border-box !important; }

#afc19.afc19{
  --g:   var(--afb-primary);
  --glo: rgba(11,42,91,0.18);
  --dk:  #0a0f18;
  --cd:  #0e1626;
  --br:  rgba(245,196,0,0.18);
  --tx:  #e8eef9;
  --mu:  rgba(232,238,249,0.55);
  --go:  var(--afb-accent);

  font-family:'Nunito','Segoe UI',Arial,sans-serif !important;
  font-size:15px !important;
  background:var(--dk) !important;
  color:var(--tx) !important;

  border-radius:18px !important;
  overflow:hidden !important;
  padding:0 0 50px !important;
  width:100% !important;
  max-width:none !important;
  display:block !important;
  margin:0 !important;
}

#afc19 .afc19-hero{
  text-align:center !important;
  padding:60px 20px 44px !important;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--glo) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(245,196,0,0.04) 40px) !important;
}
#afc19 .afc19-tag{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  border:1px solid rgba(245,196,0,0.35) !important;
  border-radius:999px !important;
  padding:5px 16px !important;
  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:3px !important;
  text-transform:uppercase !important;
  color:var(--go) !important;
  margin-bottom:18px !important;
  background:rgba(245,196,0,0.08) !important;
}
#afc19 .afc19-tag::before{ content:'●' !important; font-size:7px !important; color:var(--go) !important; }
#afc19 .afc19-h1{
  font-family:'Oswald','Impact',Arial,sans-serif !important;
  font-size:clamp(38px,8vw,86px) !important;
  font-weight:700 !important;
  letter-spacing:2px !important;
  line-height:1 !important;
  color:#fff !important;
  text-transform:uppercase !important;
}
#afc19 .afc19-h1-em{ color:var(--go) !important; }
#afc19 .afc19-yr{
  display:block !important;
  font-family:'Oswald','Impact',Arial,sans-serif !important;
  font-size:clamp(70px,16vw,160px) !important;
  font-weight:700 !important;
  line-height:.88 !important;
  color:transparent !important;
  -webkit-text-stroke:1px rgba(245,196,0,0.22) !important;
  letter-spacing:6px !important;
  user-select:none !important;
  margin-top:-4px !important;
}
#afc19 .afc19-sec{
  max-width:1260px !important;
  margin:48px auto 18px !important;
  padding:0 20px !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
}
#afc19 .afc19-sh{
  font-family:'Oswald','Impact',Arial,sans-serif !important;
  font-size:12px !important;
  font-weight:600 !important;
  letter-spacing:4px !important;
  text-transform:uppercase !important;
  color:var(--go) !important;
  white-space:nowrap !important;
}
#afc19 .afc19-ln{
  flex:1 !important;
  height:1px !important;
  background:linear-gradient(90deg, rgba(245,196,0,0.28), transparent) !important;
}
#afc19 .afc19-grid{
  max-width:1260px !important;
  margin:0 auto !important;
  padding:0 20px !important;
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr)) !important;
  gap:18px !important;
}
#afc19 .afc19-card{
  background:var(--cd) !important;
  border:1px solid rgba(245,196,0,0.18) !important;
  border-radius:14px !important;
  overflow:hidden !important;
  transition:transform .3s ease, box-shadow .3s ease !important;
}
#afc19 .afc19-card:hover{
  transform:translateY(-5px) !important;
  box-shadow:0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(245,196,0,.18) !important;
}
#afc19 img.afc19-img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:16/9 !important;
  object-fit:cover !important;
  max-width:100% !important;
  filter:brightness(.92) saturate(.95) !important;
}
#afc19 .afc19-head{
  padding:14px 18px 12px !important;
  border-bottom:1px solid rgba(245,196,0,0.14) !important;
  background:linear-gradient(135deg, rgba(245,196,0,0.07) 0%, transparent 55%) !important;
}
#afc19 .afc19-cat{
  font-size:9px !important;
  font-weight:900 !important;
  letter-spacing:3px !important;
  text-transform:uppercase !important;
  color:var(--go) !important;
  opacity:.85 !important;
}
#afc19 .afc19-tit{
  font-family:'Oswald','Impact',Arial,sans-serif !important;
  font-size:20px !important;
  font-weight:600 !important;
  color:#fff !important;
}
#afc19 .afc19-row{
  display:flex !important;
  align-items:center !important;
  gap:11px !important;
  padding:8px 18px !important;
  border-bottom:1px solid rgba(245,196,0,0.06) !important;
}
#afc19 .afc19-row:last-child{ border-bottom:none !important; }
#afc19 .afc19-row:hover{ background:rgba(245,196,0,0.04) !important; }
#afc19 .afc19-bx{
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  border-radius:8px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
  font-size:16px !important;
  line-height:1 !important;
  background:rgba(255,255,255,0.06) !important;
}
#afc19 .afc19-bx.bg::before{ content:"🏆"; }
#afc19 .afc19-bx.bs::before{ content:"🥈"; }
#afc19 .afc19-bx.bh::before{ content:"🥉"; }

@media(max-width:600px){
  #afc19 .afc19-grid{ grid-template-columns:1fr !important; }
  #afc19 .afc19-sec{ margin-top:32px !important; }
}

/* ───────────────────────────────────────────────────────────
   15) Owl / SlideAnything (LE vrai fix mobile overflow)
   ─────────────────────────────────────────────────────────── */
/* Le conteneur ne doit jamais imposer une largeur */
#sample_slider,
.sa-owl-carousel,
.owl-carousel{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

/* La “fenêtre” clippe toujours */
#sample_slider .owl-stage-outer,
.sa-owl-carousel .owl-stage-outer,
.owl-carousel .owl-stage-outer{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
  /* iOS/Android : évite des scrolls horizontaux “fantômes” */
  touch-action:pan-y;
}

/* Owl met une width énorme sur .owl-stage (normal) : on force un comportement sain */
#sample_slider .owl-stage,
.sa-owl-carousel .owl-stage,
.owl-carousel .owl-stage{
  display:block !important; /* FIX : flex causait width 4000px+ sur desktop */
  /* important : le stage ne doit pas "déborder" en layout, c’est l’outer qui clippe */
}

/* ───────────────────────────────────────────────────────────
   16) Responsive NAV / Layout
   ─────────────────────────────────────────────────────────── */
@media (max-width:1024px){
  .afb-layout{ grid-template-columns:1fr; }
  .afb-sidebar{ width:100%; max-width:100%; }
}
@media (max-width:768px){
  .afb-header__inner{ height:60px; }
  .afb-logo-tagline{ display:none; }
  .afb-nav__toggle{ display:flex; }
  .afb-nav .afb-nav__list{ display:none; }
  .afb-nav .afb-nav__list.is-open{
    display:flex; flex-direction:column;
    position:fixed;
    top:92px; left:0; right:0;
    background:var(--afb-dark-mid);
    border-top:2px solid var(--afb-accent);
    padding:12px 0;
    box-shadow:0 12px 34px rgba(0,0,0,0.55);
    z-index:999;
  }
  .afb-nav__cta{ display:none; }
  .afb-ticker{ display:none; }
}

/* ============================================================
   PATCH CRITIQUE — Carrousel qui “explose” à ~4000px après 1s
   Objectif : empêcher le carrousel d’impacter la largeur du document
   (contain + max-width:100vw + overflow clipping)
   ============================================================ */

/* 1) Le conteneur global ne doit JAMAIS dépasser le viewport */
html, body{
  max-width: 100vw !important;
  overflow-x: clip !important;  /* meilleur que hidden quand un enfant force le layout */
}
@supports not (overflow: clip){
  html, body{ overflow-x: hidden !important; }
}

/* 2) Carrousels / sliders : on les met en “boîte fermée” */
:where(#sample_slider, .sa-owl-carousel, .owl-carousel, .slick-slider, .sa-slider, .wp-block-group){
  max-width: 100vw !important;
  overflow: hidden !important;
  contain: layout paint !important; /* LE point clé : n’élargit plus le document */
}

/* 3) Le viewport interne doit clipper et NE PAS hériter d’une width inline */
:where(#sample_slider .owl-stage-outer,
       .sa-owl-carousel .owl-stage-outer,
       .owl-carousel .owl-stage-outer,
       .slick-list){
  width: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
  /* contain supprimé : overflow:hidden suffit et n'interfère pas avec Owl */
}

/* 4) Stage peut être énorme (normal), mais ne doit plus “compter” pour la page */
/* contain:layout paint sur .owl-stage supprimé : display:block + overflow:hidden sur stage-outer suffit */

/* 5) Sécurité : certains plugins mettent des marges négatives ou du translate “full” */
:where(.alignfull, [class*="alignfull"], [style*="margin-left:-"], [style*="translateX("]){
  max-width: 100vw !important;
}

/* ===== FIX OWL “WIDTH 4000px” (après init JS) ===== */

/* Le viewport du slider doit être la seule source de largeur */
.owl-carousel,
.sa-owl-carousel,
#sample_slider {
  max-width: 100% !important;
  overflow: hidden !important;
  contain: layout paint !important; /* empêche d’élargir la page */
}

/* La fenêtre doit clipper quoi qu’il arrive */
.owl-carousel .owl-stage-outer,
.sa-owl-carousel .owl-stage-outer,
#sample_slider .owl-stage-outer{
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  /* contain supprimé : perturbait Owl sur desktop */
}

/* IMPORTANT :
   Owl met un width inline énorme sur .owl-stage (normal),
   mais on évite qu’un margin/position foireux le “sorte” du clip */
.owl-carousel .owl-stage,
.sa-owl-carousel .owl-stage,
#sample_slider .owl-stage{
  position: relative !important;
  left: 0 !important;
}

/* Cas fréquent : un thème/plugin force overflow:visible sur des wrappers */
.owl-carousel .owl-stage-outer,
.sa-owl-carousel .owl-stage-outer,
#sample_slider .owl-stage-outer,
.wp-block-group,
.wp-block-columns,
.entry-content,
.site-content {
  overflow-x: clip !important;
}
@supports not (overflow: clip){
  .owl-carousel .owl-stage-outer,
  .sa-owl-carousel .owl-stage-outer,
  #sample_slider .owl-stage-outer,
  .wp-block-group,
  .wp-block-columns,
  .entry-content,
  .site-content { overflow-x: hidden !important; }
}

/* A SUPPRIMER : ça casse Owl */
#sample_slider .owl-stage,
.sa-owl-carousel .owl-stage,
.owl-carousel .owl-stage{
  display:block !important; /* FIX : flex cassait Owl Carousel sur desktop */
}

/* ============================================================
   FIX OVERFLOW MOBILE (Owl/SlideAnything) – stable
   ============================================================ */
@media (max-width: 820px){

  /* 1) On isole les sections qui “prennent” la largeur du carrousel */
  #content-wrapper,
  .afb-container,
  .afb-content-area,
  .afb-layout,
  .afb-main,
  section.afb-section,
  .afb-static-content,
  .entry-content,
  figure,
  .wp-block-table{
    max-width: 100% !important;
    overflow-x: clip !important;  /* clip > hidden (plus propre sur mobile) */
  }

  /* 2) Owl : on force le comportement attendu par la lib */
  .owl-carousel,
  .sa-owl-carousel,
  #sample_slider{
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .owl-carousel .owl-stage-outer,
  .sa-owl-carousel .owl-stage-outer,
  #sample_slider .owl-stage-outer{
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* Le stage doit rester “block” (Owl calcule sa width inline) */
  .owl-carousel .owl-stage,
  .sa-owl-carousel .owl-stage,
  #sample_slider .owl-stage{
    display: block !important;
    max-width: none !important; /* stage = grand, mais CLIPPÉ par stage-outer */
  }

  /* Items : comportement Owl standard */
  .owl-carousel .owl-item{
    float: left !important;
  }

  /* Images : pas de débordement */
  .owl-carousel .owl-item img{
    width: 100% !important;
    height: auto !important;
  }
}
@media (max-width: 820px){
  section.afb-section,
  .afb-static-content,
  .entry-content,
  figure.wp-block-table{
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  .sa-owl-carousel, .owl-carousel{
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .sa-owl-carousel .owl-stage-outer,
  .owl-carousel .owl-stage-outer{
    overflow: hidden !important;
    max-width: 100% !important;
  }
}

/* ============================================================
   AFEBAS — HOTFIX “LARGEUR 2652px SUR MOBILE”
   Cause probable : un plugin injecte un width sur html/body/#content-wrapper
   Effet : tout le layout prend la largeur géante.
   Objectif : verrouiller la largeur du document à la viewport.
   À COLLER TOUT EN BAS DU CSS.
   ============================================================ */

@media (max-width: 820px){

  /* 1) Verrou document (si un plugin force width:2652px) */
  html, body{
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  /* 2) Verrou wrappers principaux (vos paths console) */
  #page,
  .site,
  .site-content,
  #content-wrapper,
  .content-area,
  .site-main,
  .wp-site-blocks,
  .wrap,
  .container,
  .afb-container,
  .afb-content-area,
  .afb-layout,
  .afb-section,
  .afb-static-content,
  .af-section,
  .af-card{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* 3) Gutenberg / blocs “wide/full” : pas de vw qui déborde */
  .alignfull,
  .wp-block[data-align="full"],
  .alignwide,
  .wp-block[data-align="wide"]{
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 4) Owl / carrousels : le stage peut être large, mais le conteneur ne doit JAMAIS élargir le document */
  .owl-carousel,
  .sa-owl-carousel,
  #sample_slider{
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .owl-carousel .owl-stage-outer,
  .sa-owl-carousel .owl-stage-outer,
  #sample_slider .owl-stage-outer{
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* 5) Embeds (YouTube/iframes/flipbooks) : c’est souvent eux qui forcent des largeurs “desktop” */
  iframe,
  embed,
  object,
  video{
    max-width: 100% !important;
  }
  .wp-block-embed,
  .wp-block-embed__wrapper{
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* 6) Sécurité : si un élément a un width inline délirant, on le “clamp” au viewport */
  [style*="width: 2"],
  [style*="width:2"],
  [style*="width: 3"],
  [style*="width:3"]{
    max-width: 100% !important;
  }
}

/* ============================================================
   AFEBAS — HOTFIX #2 : contenu “bridé” sur mobile (gros vide à droite)
   But : forcer les wrappers WP/thème à occuper 100% du viewport.
   ============================================================ */

@media (max-width: 820px){

  /* A) Supprimer les centrages / largeurs fixes typiques */
  body,
  #page,
  #content-wrapper,
  .site,
  .site-content,
  .content-area,
  .site-main,
  .wrap,
  .container{
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    float: none !important;
  }

  /* B) Certains thèmes posent un max-width sur le contenu */
  .site-content,
  .content-area,
  .site-main,
  .entry-content,
  .post-content,
  .afebas-page-content{
    max-width: none !important;
    width: 100% !important;
  }

  /* C) Votre conteneur AFEBAS : padding mobile plus “serré” mais full width */
  .afb-container{
    width: 100% !important;
    max-width: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* D) Les cartes / sections qui peuvent hériter d’un max-width */
  .afb-section,
  .af-section,
  .af-card,
  .afb-article{
    width: 100% !important;
    max-width: none !important;
  }
}
/* ============================================================
   AFEBAS — HOTFIX #3 : “colonne étroite” sur mobile (vide à droite)
   Cause : wrapper parent en largeur fixe / inline-block
   Fix : wrapper racine = 100vw, children = 100%
   ============================================================ */
@media (max-width: 820px){

  /* 1) Le document DOIT occuper le viewport */
  html, body{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2) Le wrapper racine : 100vw (sinon on reste en colonne) */
  #page,
  #content-wrapper,
  .site,
  .site-content,
  .wp-site-blocks{
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    float: none !important;
  }

  /* 3) Le contenu interne : 100% (pas 100vw ici !) */
  .content-area,
  .site-main,
  .entry-content,
  .post-content,
  .afb-container,
  .afb-content-area{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* 4) Sécurité anti “positionnement latéral” */
  #page, #content-wrapper, .site, .site-content{
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}
/* ============================================================
   HOTFIX OVERFLOW (PC qui s’agrandit après 1s)
   Cause probable : init Owl/SlideAnything => largeur énorme
   Objectif : forcer les conteneurs à rester à 100% + clipper
   ============================================================ */

/* 1) On clippe au bon endroit (pas uniquement html/body) */
#content-wrapper,
.afb-container,
.afb-content-area,
.afb-layout,
.afb-main,
.afb-sidebar,
.afb-static-content,
.afb-section{
  max-width: 100% !important;
  overflow-x: clip !important;   /* moderne */
}
@supports not (overflow-x: clip){
  #content-wrapper,
  .afb-container,
  .afb-content-area,
  .afb-layout,
  .afb-main,
  .afb-sidebar,
  .afb-static-content,
  .afb-section{
    overflow-x: hidden !important; /* fallback */
  }
}

/* 2) Anti “grid/flex item qui refuse de rétrécir” */
.afb-layout,
.afb-main,
.afb-sidebar,
.afb-static-content,
.afb-section,
.afb-section-head{
  min-width: 0 !important;
}

/* 3) On verrouille le layout desktop
   IMPORTANT : 2 colonnes UNIQUEMENT si .has-sidebar
   Sans ça, la colonne vide (~300px) vole la largeur sur toutes les pages sans sidebar */
@media (min-width: 769px){
  .afb-layout{
    display: grid !important;
    grid-template-columns: 1fr !important; /* pleine largeur par défaut */
    width: 100% !important;
    max-width: 100% !important;
  }
  .afb-layout.has-sidebar{
    grid-template-columns: minmax(0,1fr) minmax(280px,360px) !important;
  }
}

/* 4) OWL / SlideAnything : le stage peut être immense, MAIS il ne doit jamais élargir la page */
.owl-carousel,
.sa-owl-carousel,
#sample_slider{
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.owl-carousel .owl-stage-outer,
.sa-owl-carousel .owl-stage-outer,
#sample_slider .owl-stage-outer{
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.owl-carousel .owl-stage,
.sa-owl-carousel .owl-stage,
#sample_slider .owl-stage{
  display: flex !important;
  max-width: 100% !important;
}
.owl-carousel .owl-item,
.sa-owl-carousel .owl-item,
#sample_slider .owl-item{
  flex: 0 0 auto !important;
  max-width: 100% !important;
}

/* 5) Sécurité : si un plugin met une width inline délirante sur vos blocs, on écrase */
.afb-section,
.afb-static-content,
.af-section,
.af-card,
figure.wp-block-table,
.wp-block-table{
  width: 100% !important;
  max-width: 100% !important;
}

/* 6) Empêche les médias/iframes de pousser le layout */
iframe,
embed,
object,
video{
  max-width: 100% !important;
}

/* ============================================================
   PATCH ULTIME — neutralise toute width inline en px posée par JS
   (le fameux "au bout d'1 seconde ça s'agrandit")
   À placer en DERNIÈRE LIGNE du CSS final chargé sur le site
   ============================================================ */

/* A) Racines : verrouillage viewport */
html, body{
  width: 100% !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

/* B) Si un script colle une width inline sur body/html */
html[style*="width"], body[style*="width"]{
  width: 100% !important;
  max-width: 100vw !important;
}

/* C) Wrappers WP / thème : ceux qui héritent et propagent la largeur */
#page, .site, .site-content, .content-area, .site-main,
#content, #primary, #content-wrapper, .wrap, .container,
.afb-container, .afb-content-area, .afb-layout{
  width: 100% !important;
  max-width: 100vw !important;
  min-width: 0 !important;
}

/* D) Pare-feu : si un script colle une width inline sur un wrapper */
#page[style*="width"], .site[style*="width"], .site-content[style*="width"],
#content-wrapper[style*="width"], .wrap[style*="width"], .container[style*="width"],
.afb-container[style*="width"], .afb-content-area[style*="width"], .afb-layout[style*="width"]{
  width: 100% !important;
  max-width: 100vw !important;
}

/* E) Les blocs qui ressortent dans votre "Top offenders" */
section.afb-section,
.afb-section-head,
.afb-static-content,
.af-section,
.af-card,
figure.wp-block-table{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* F) Les embeds (YouTube / iframes) ne doivent jamais élargir la page */
iframe, embed, object{
  max-width: 100% !important;
}

/* ==============================
   FOOTER AFEBAS (legacy optimisé)
   Bleu #0b2a5b / Jaune #ffd100
   ============================== */

.afebas-footer{
  background: #0b2a5b;
  color: #fff;
  width: 100%;
  border-top: 6px solid #ffd100;
}

.afebas-footer-wrapper{ width: 100%; }

.afebas-footer-inner{
  max-width: 1300px;
  margin: 0 auto;
  padding: 44px 22px;
}

.afebas-footer-grid{
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-logo{
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 0 14px 0;
}

.footer-title{
  font-size: 15px;
  margin: 6px 0 14px;
  font-weight: 700;
  color: #ffd100;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.footer-description,
.footer-mentions{
  font-size: 14px;
  line-height: 1.7;
  opacity: .92;
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li{ margin: 0 0 10px; }

.footer-links li a,
.footer-mentions a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: color .15s ease, transform .15s ease, opacity .15s ease;
  display: inline-block;
}

.footer-links li a:hover,
.footer-mentions a:hover{
  color: #ffd100;
  transform: translateX(2px);
  opacity: 1;
}

.footer-socials{
  display:flex;
  gap:12px;
  align-items:center;
  margin: 10px 0 14px;
}

.footer-socials .rs-btn{
  width:40px;
  height:40px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,209,0,.55);
  background: rgba(255,255,255,.06);
  color:#ffffff;                 /* couleur des SVG */
  transition: background .15s ease, transform .15s ease, color .15s ease, border-color .15s ease;
}

.footer-socials .rs-btn svg{
  width:18px;
  height:18px;
  fill: currentColor;
  display:block;
}

.footer-socials .rs-btn:hover{
  background:#ffd100;
  border-color:#ffd100;
  color:#0b2a5b;                 /* SVG devient bleu sur fond jaune */
  transform: translateY(-1px);
}

/* Bas footer (mentions) plus lisible */
.footer-mentions{
  margin-top: 10px;
  opacity: .85;
}

/* Responsive */
@media (max-width: 980px){
  .afebas-footer-inner{ padding: 34px 18px; }
  .afebas-footer-grid{ grid-template-columns: 1fr; gap: 26px; }
  .footer-logo{ margin: 0 auto 12px; }
  .footer-column{ text-align: center; }
  .footer-socials{ justify-content: center; }
  .footer-links li a:hover{ transform: none; }
}

/* === COMPÉTITIONS INDIVIDUELLES = VERT === */
#masthead #menu-item-14357 > a,
#masthead #menu-item-14357 > a:link,
#masthead #menu-item-14357 > a:visited,
#masthead li.current-menu-ancestor#menu-item-14357 > a,
#masthead li.current-menu-item#menu-item-14357 > a,
#masthead li.current-menu-parent#menu-item-14357 > a {
  color: #81c784 !important;
  border-bottom: 2px solid #4caf50 !important;
}
#masthead #menu-item-14357 > a:hover {
  background: rgba(76, 175, 80, 0.12) !important;
}
/* Sous-menu Individuelles */
#masthead #menu-item-14357 ul.sub-menu {
  border-top: 3px solid #4caf50 !important;
}
#masthead #menu-item-14357 ul.sub-menu li a {
  color: #81c784 !important;
}
#masthead #menu-item-14357 ul.sub-menu li a:hover {
  background: rgba(76, 175, 80, 0.12) !important;
  color: #a5d6a7 !important;
}

/* === COMPÉTITIONS ÉQUIPES = ORANGE === */
#masthead #menu-item-14358 > a,
#masthead #menu-item-14358 > a:link,
#masthead #menu-item-14358 > a:visited,
#masthead li.current-menu-ancestor#menu-item-14358 > a,
#masthead li.current-menu-item#menu-item-14358 > a,
#masthead li.current-menu-parent#menu-item-14358 > a {
  color: #ff9800 !important;
  border-bottom: 2px solid #e65100 !important;
}
#masthead #menu-item-14358 > a:hover {
  background: rgba(230, 81, 0, 0.12) !important;
}
/* Sous-menu Équipes */
#masthead #menu-item-14358 ul.sub-menu {
  border-top: 3px solid #e65100 !important;
}
#masthead #menu-item-14358 ul.sub-menu li a {
  color: #ff9800 !important;
}
#masthead #menu-item-14358 ul.sub-menu li a:hover {
  background: rgba(230, 81, 0, 0.12) !important;
  color: #ffb74d !important;
}
 
/* Badge Individuel */
.afebas-tc__badge.individuel {
  background: rgba(13,107,53,0.15);
  color: 
#81c784;
  border: 1px solid rgba(13,107,53,0.3);
}
 
/* Badge Équipe */
.afebas-tc__badge.equipe {
  background: rgba(230,81,0,0.12);
  color: 
#ff9800;
  border: 1px solid rgba(230,81,0,0.3);
}
 
/* Header card Équipe = orange */
.afebas-tc__header.equipe-mode {
  background: 
#7a2900 !important;
}
@media print {
  .afb-topbar, .afb-ticker, .afb-hero, .afb-nav__cta { display: none !important; }
}
.afb-header__inner { display:flex; align-items:center; justify-content:space-between; }
.afb-header__season { margin-top:6px; font-size:12px; opacity:.85; }
@media (min-width: 769px){ .afb-header .afb-header__inner > .afb-nav__toggle { display:none; } }

/* Saison sous la baseline (header brand) */
.afb-header__season{
  display:block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  color: rgba(255,255,255,.85);
  opacity: 1 !important;
}

/* Si une règle du thème met un color “gris invisible” sur le branding */
.afb-header__brand .afb-header__season{
  color: rgba(255,255,255,.85) !important;
}
.afb-header__brand{
  opacity: 1 !important;
}
.afb-header__brand *{
  opacity: 1;
}
/* Ligne 1 du header = flex horizontal */
.afb-header > .afb-header__inner:first-child{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Le brand ne doit PAS prendre 100% */
.afb-header__brand{
  flex: 1 1 auto;
  min-width: 0;
}

/* Le bouton burger ne doit pas casser la ligne */
.afb-nav__toggle{
  flex: 0 0 auto;
  margin-left: 15px;
}

/* En desktop on masque le burger */
@media (min-width: 769px){
  .afb-nav__toggle{
    display:none;
  }
}
/* Header mobile : logo à gauche + burger à droite SUR LA MÊME LIGNE */
.afb-header__inner--top{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

/* Le bloc brand doit pouvoir rétrécir sans pousser le burger à la ligne */
.afb-header__inner--top .afb-header__brand{
  flex: 1 1 auto;
  min-width: 0;
}

/* IMPORTANT : certains thèmes mettent le lien logo en block 100% */
.afb-header__inner--top .custom-logo-link,
.afb-header__inner--top .custom-logo{
  max-width: 100%;
}

/* Burger : toujours à droite, jamais à la ligne */
.afb-header__inner--top .afb-nav__toggle{
  flex: 0 0 auto;
  margin-left: auto;
}

/* Desktop : cacher le burger si votre CSS ne le fait pas déjà */
@media (min-width: 769px){
  .afb-header__inner--top .afb-nav__toggle{ display:none; }
}
/* Lisibilité saison */
.afb-header__season{
  display:block;
  margin-top:6px;
  font-size:12px;
  font-weight:700;
  color: rgba(255,255,255,.85);
  opacity: 1 !important;
}

/* Mobile : on “flotte” visuellement le burger dans la zone branding */
@media (max-width: 768px){
  .afb-header--burger-float{ position: relative; }

  /* On réserve un peu de place à droite sur la ligne branding */
  .afb-header__inner--top{ padding-right: 64px; }

  /* Burger positionné en haut à droite (sur la zone brand) */
  .afb-header--burger-float .afb-nav__toggle{
    position: absolute;
    right: 16px;
    top: 50px;            /* ajuste si besoin (logo plus haut/bas) */
    transform: translateY(-50%);
    z-index: 50;
  }
}

/* Desktop : burger caché (si pas déjà géré ailleurs) */
@media (min-width: 769px){
  .afb-header--burger-float .afb-nav__toggle{ display:none; }
}
/* ============================================================
   FIX MENU — niveau 3 (sous-sous-menu) en "flyout" à droite
   Objectif : ne plus masquer les autres entrées du niveau 2
   ============================================================ */
@media (hover:hover) and (pointer:fine){

  /* Sécurise les contextes de positionnement */
  #masthead li { position: relative; }

  /* Niveau 2 (dropdown classique) : au-dessus du contenu */
  #masthead ul.sub-menu{
    z-index: 9999 !important;
  }

  /* Niveau 3 (dropdown dans dropdown) : s’ouvre à droite, pas en overlay */
  #masthead ul.sub-menu li > ul.sub-menu{
    display: none;
    position: absolute;
    top: 0 !important;
    left: 100% !important;     /* <-- le point clé : flyout à droite */
    right: auto !important;
    margin-left: 0px;
    z-index: 10000 !important;
  }

  /* Affichage au survol du parent (niveau 2) */
  #masthead ul.sub-menu li:hover > ul.sub-menu{
    display: block;
  }

  /* Optionnel : si votre menu est proche du bord droit, force ouverture à gauche
     (décommentez si besoin uniquement pour certains items) */
  /*
  #masthead li.menu-item-open-left > ul.sub-menu{
    left: auto !important;
    right: 100% !important;
    margin-left: 0;
    margin-right: 0px;
  }
  */
}

.af-callout{
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.af-kpi{
  border: 1px solid rgba(0,0,0,.06);
}
.af-callout h3{
  margin: 0 0 6px 0;
}
.af-callout p{
  margin: 6px 0;
}



/* Scope global */
.af-cna, .af-cna *{ box-sizing:border-box; }

.af-cna{
  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.14);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --radius: 18px;
  --accent: #f3c623; /* Jaune AFEBAS */
  --accent2: rgba(243,198,35,.16);
  --panel: rgba(255,255,255,.06);

  color: var(--txt);
  background: linear-gradient(180deg, rgba(15,22,36,.88), rgba(15,22,36,.72));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 16px 0 24px;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.af-cna .af-cna__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding: 6px 4px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom:18px;
}

.af-cna .af-cna__title{
  margin:0;
  font-size:22px;
  line-height:1.2;
  letter-spacing:.2px;
}

.af-cna .af-cna__badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: var(--accent2);
  border:1px solid rgba(243,198,35,.35);
  color: var(--txt);
  font-weight:800;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  white-space:nowrap;
}
.af-cna .af-cna__badge i{
  width:9px;height:9px;border-radius:99px;background:var(--accent);display:inline-block;
}

.af-cna h2{
  margin:18px 0 10px;
  font-size:18px;
  line-height:1.25;
  letter-spacing:.2px;
}
.af-cna h3{
  margin:14px 0 8px;
  font-size:15px;
  letter-spacing:.15px;
  color: var(--txt);
}

.af-cna p{
  margin:10px 0;
  color: var(--muted);
  line-height:1.65;
}

/* Liens génériques (hors bouton) */
.af-cna a{
  color: var(--txt);
  text-decoration: underline;
  text-decoration-color: rgba(243,198,35,.7);
  text-underline-offset:3px;
}
.af-cna a:hover{ text-decoration-color: var(--accent); }

/* Layout */
.af-cna .af-cna__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  margin:14px 0 10px;
}

.af-cna .af-cna__card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
}

.af-cna .af-cna__list{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.af-cna .af-cna__list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: var(--muted);
  line-height:1.55;
}

.af-cna .af-cna__dot{
  flex:0 0 auto;
  width:10px;height:10px;border-radius:99px;
  margin-top:7px;
  background: rgba(243,198,35,.9);
  box-shadow: 0 0 0 4px rgba(243,198,35,.14);
}

.af-cna .af-cna__callout{
  background: linear-gradient(180deg, rgba(243,198,35,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(243,198,35,.35);
  border-radius: var(--radius);
  padding:14px;
  margin:14px 0;
}
.af-cna .af-cna__center{ text-align:center; }

.af-cna .af-cna__muted{
  color: rgba(255,255,255,.62);
  font-size:13px;
}

.af-cna .af-cna__money{
  font-weight:900;
  color: var(--txt);
  white-space:nowrap;
}
.af-cna .af-cna__pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}

/* =========================
   TABLES responsive + centrées
========================= */
.af-cna .af-cna__tablewrap{
  display:flex;
  justify-content:center;      /* centre le bloc table */
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0,0,0,.12);
  padding: 8px;
  margin: 12px 0;
}

/* IMPORTANT : inline-table + width:auto => centrage réel (pas étalé en 100%) */
.af-cna .af-cna__tablewrap table{
  display:inline-table;
  width:auto;
  min-width: 720px;            /* swipe sur mobile */
  max-width: 980px;            /* limite sur PC */
  margin: 0 auto;
  border-collapse: collapse;
}

.af-cna .af-cna__tablewrap th,
.af-cna .af-cna__tablewrap td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: middle;
  text-align: center;          /* valeurs centrées */
}

.af-cna .af-cna__tablewrap th{
  font-size:12px;
  letter-spacing:.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
}

.af-cna .af-cna__tablewrap tr:nth-child(even) td{
  background: rgba(255,255,255,.03);
}

.af-cna .af-cna__tablewrap th:first-child,
.af-cna .af-cna__tablewrap td:first-child{
  text-align:left;             /* colonne Type lisible */
}

/* =========================
   BOUTON PDF (rectangulaire arrondi, vraiment cliquable)
   Reset anti-thème : all: unset
========================= */
.af-cna .af-cna__btnrow{
  display:flex;
  justify-content:center;
  margin: 12px 0 6px;
}

/* Neutralise icônes auto PDF du thème */
.af-cna a.af-cna__btnpdf::before,
.af-cna a.af-cna__btnpdf::after{
  content:none !important;
}

/* VRAI bouton : reset total puis styles */
.af-cna a.af-cna__btnpdf{
  all: unset;                      /* reset total */
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:12px;

  width:100%;
  max-width: 720px;

  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent);
  border: 1px solid rgba(0,0,0,.12);

  color: rgba(15,22,36,.96);
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;

  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.af-cna a.af-cna__btnpdf:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.af-cna a.af-cna__btnpdf:active{
  filter: brightness(0.98);
  transform: translateY(0);
}

/* Icône PDF (background image, aucune balise SVG => pas de bug icône géante) */
.af-cna .af-cna__pdfico{
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f1624' d='M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7l-5-5zm1 6h4v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7v5a1 1 0 0 0 1 1z'/%3E%3Cpath fill='%230f1624' fill-opacity='.75' d='M7.6 17.2h8.8v-1.5H7.6v1.5zm0-3h8.8v-1.5H7.6v1.5zm0-3h5.8V9.7H7.6v1.5z'/%3E%3C/svg%3E");
}

/* Texte bouton */
.af-cna .af-cna__btntext{
  display:block;
  text-align:left;
}
.af-cna .af-cna__btntext small{
  display:block;
  margin-top:3px;
  font-weight:700;
  opacity:.78;
}

/* Responsive */
@media (min-width: 860px){
  .af-cna{ padding: 26px; }
  .af-cna .af-cna__grid{ grid-template-columns: 1fr 1fr; }
  .af-cna .af-cna__title{ font-size: 24px; }
}
/* ===== PATCH robustesse bouton (thèmes agressifs) ===== */
.af-cna a.af-cna__btnpdf{
  display:flex !important;      /* certains thèmes écrasent display */
  text-decoration:none !important;
}
.af-cna a.af-cna__btnpdf:visited{ color: rgba(15,22,36,.96) !important; }

/* Focus clavier (accessibilité + pro) */
.af-cna a.af-cna__btnpdf:focus,
.af-cna a.af-cna__btnpdf:focus-visible{
  outline: 3px solid rgba(243,198,35,.55) !important;
  outline-offset: 3px !important;
}

/* ===== PATCH centrage tableau (évite "effet décalé" sur très grands écrans) ===== */
.af-cna .af-cna__tablewrap{
  width:100%;
}
.af-cna .af-cna__tablewrap table{
  table-layout: auto;
}

/* Scope total */
.afdelegues, .afdelegues * { box-sizing: border-box; }

/* Section container */
.afdelegues{
  --bg: rgba(255,255,255,.92);
  --bd: rgba(0,0,0,.10);
  --tx: rgba(0,0,0,.86);
  --muted: rgba(0,0,0,.60);
  --shadow: 0 10px 24px rgba(0,0,0,.08);
  --radius: 18px;
  width: 100%;
  max-width: 1200px;
  margin: 18px auto;
  padding: 0 14px;
  color: var(--tx);
  font-family: inherit;
}

/* Header */
.afdelegues__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 16px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.afdelegues__title{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 18px;
  line-height: 1.2;
}

.afdelegues__subtitle{
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.afdelegues__badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

/* Desktop table wrapper */
.afdelegues__tablewrap{
  margin-top: 14px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.afdelegues table{
  width: 100%;
  border-collapse: collapse;
}

.afdelegues thead th{
  text-align: left;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.70);
  padding: 12px 14px;
  border-bottom: 1px solid var(--bd);
  background: rgba(0,0,0,.03);
}

.afdelegues tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  vertical-align: middle;
}

.afdelegues tbody tr:nth-child(odd){
  background: rgba(0,0,0,.018);
}

.afdelegues tbody tr:hover{
  background: rgba(0,0,0,.035);
}

.afdelegues__cell--primary{
  font-weight: 800;
}

.afdelegues__link{
  color: inherit;
  text-decoration: none;
}

.afdelegues__link:hover{
  text-decoration: underline;
}

/* Logo + name */
.afdelegues__asso{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.afdelegues__logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(0,0,0,.03);
}
.afdelegues__logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Empty state */
.afdelegues__empty{
  margin-top: 14px;
  padding: 18px 16px;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: var(--radius);
  background: rgba(0,0,0,.02);
  color: rgba(0,0,0,.70);
}

/* Mobile: on passe en “cards” */
@media (max-width: 820px){
  .afdelegues__header{
    align-items: flex-start;
    flex-direction: column;
  }

  .afdelegues__tablewrap{ display: none; }

  .afdelegues__cards{
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .afdelegues__card{
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
    padding: 12px 12px;
    display:flex;
    gap: 12px;
    align-items: center;
  }

  .afdelegues__card:nth-child(odd){
    background: rgba(0,0,0,.018);
  }

  .afdelegues__cardMain{
    min-width: 0;
    flex: 1 1 auto;
  }

  .afdelegues__cardTitle{
    font-weight: 900;
    font-size: 14px;
    line-height: 1.25;
    margin: 0;
  }

  .afdelegues__cardMeta{
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.25;
  }

  .afdelegues__logo{ width: 42px; height: 42px; border-radius: 14px; }
}

/* Error */
.afdelegues--error{
  padding: 12px 14px;
  border: 1px solid rgba(255,0,0,.25);
  background: rgba(255,0,0,.06);
  border-radius: 14px;
  max-width: 1200px;
  margin: 18px auto;
}
/* PAR DÉFAUT (desktop) : cards OFF, table ON */
#afdelegues-cards { display: none !important; }
#afdelegues-table { display: block !important; }

/* MOBILE : cards ON, table OFF */
@media (max-width: 820px){
  #afdelegues-table { display: none !important; }
  #afdelegues-cards { display: grid !important; }
}
/* Anti-thème : empêche les img globales (width:100%) de faire exploser les logos */
.afdelegues .afdelegues__logo{
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  overflow: hidden !important;
  flex: 0 0 38px !important;
}

.afdelegues .afdelegues__logo img{
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Même chose pour la version mobile (si vous passez le logo à 42px) */
@media (max-width: 820px){
  .afdelegues .afdelegues__logo{
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex: 0 0 42px !important;
  }
  .afdelegues .afdelegues__logo img{
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
  }
}
.afdelegues a{ font-size: inherit !important; line-height: inherit !important; }
.afdelegues .afdelegues__cardTitle{ font-size: 14px !important; }
.afdelegues .afdelegues__cardMeta{ font-size: 12px !important; }

/* DESKTOP : on masque totalement les cards */
.afdelegues__cards{
  display: none !important;
}

/* MOBILE uniquement */
@media (max-width: 820px){
  .afdelegues__tablewrap{
    display: none !important;
  }
  .afdelegues__cards{
    display: grid !important;
  }
}


/* =========================================================
   AFEBAS – Opens Nationaux (réutilisable)
   ========================================================= */

.af-open-calendar {
  width:100%;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

.af-open-header,
.af-open-row {
  display:grid;
  grid-template-columns:160px 1fr 260px;
  align-items:center;
  padding:14px 16px;
}

.af-open-header {
  background:#0b2a5b;
  color:#fff;
  font-weight:800;
  text-transform:uppercase;
  font-size:12px;
}

.af-open-row {
  border-top:1px solid rgba(0,0,0,.06);
}

.af-col-date {
  font-weight:800;
  color:#0b2a5b;
}

.af-col-main {
  display:flex;
  gap:14px;
  align-items:center;
}

.af-open-poster {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,.12);
  flex: 0 0 72px;
}

.af-open-title {
  font-weight:900;
  font-size:16px;
  color:#0b2a5b;
  text-decoration:none;
}

.af-open-title:hover {
  text-decoration:underline;
}

.af-open-location {
  font-size:12px;
  font-weight:700;
  opacity:.7;
  margin-top:4px;
}

.af-col-right {
  text-align:right;
}

.af-badge {
  padding:4px 8px;
  border-radius:20px;
  font-size:11px;
  font-weight:800;
}

.af-badge-cancel {
  background:#ffe5e5;
  color:#c00;
}

/* Responsive */

@media (max-width: 900px) {
  .af-open-header { display:none; }

  .af-open-row {
    grid-template-columns:1fr;
    gap:10px;
  }

  .af-col-right {
    text-align:left;
    border-top:1px dashed #ddd;
    padding-top:8px;
  }

  .af-col-main {
    flex-direction:column;
    align-items:flex-start;
  }

  .af-open-poster {
    width:100%;
    height:auto;
    aspect-ratio:16/9;
  }
}

/* =========================================================
   AFEBAS – Calendrier Tournois (Consolante & autres)
   ========================================================= */

.af-open-calendar {
  width: 100%;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  font-size: 14px;
}

/* ---------- Header ---------- */

.af-open-header {
  display: grid;
  grid-template-columns: 120px 1fr 260px;
  background: #0b2a5b; /* Bleu AFEBAS */
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
}

.af-open-header > div {
  display: flex;
  align-items: center;
}

/* ---------- Lignes ---------- */

.af-open-row {
  display: grid;
  grid-template-columns: 120px 1fr 260px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.2s ease;
}

.af-open-row:nth-child(even) {
  background: #f8f9fc;
}

.af-open-row:hover {
  background: #eef2fa;
}

/* ---------- Colonnes ---------- */

.af-col-date {
  font-weight: 600;
  color: #0b2a5b;
}

.af-open-title {
  font-weight: 600;
  font-size: 15px;
  color: #1d1d1d;
}

.af-open-location {
  font-size: 13px;
  color: #6b7280;
  margin-top: 3px;
}

.af-col-right {
  text-align: right;
}

/* ---------- Liens / Actions ---------- */

.af-open-action {
  display: inline-block;
  padding: 6px 12px;
  margin-left: 6px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: #e7ecf7;
  color: #0b2a5b;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.af-open-action:hover {
  background: #0b2a5b;
  color: #ffffff;
}

/* ---------- Variantes ---------- */

.af-open-action[href*="calendar.google"] {
  background: #f1f5ff;
  color: #1a56db;
}

.af-open-action[href*="google.com/maps"] {
  background: #fef3f2;
  color: #c2410c;
}

.af-open-action[href*="inscription"] {
  background: #ecfdf5;
  color: #047857;
}

.af-open-action[href*="resultat-du-tournoi"] {
  background: #fff7ed;
  color: #c2410c;
}

.af-open-action.is-cancel {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: default;
}

/* ---------- Badge Annulation ---------- */

.af-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.af-badge-cancel {
  text-decoration: line-through;
  color: #9ca3af;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .af-open-header {
    display: none;
  }

  .af-open-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .af-col-date {
    font-size: 14px;
  }

  .af-col-right {
    text-align: left;
    margin-top: 6px;
  }

  .af-open-action {
    margin: 4px 6px 4px 0;
  }

}

/* =========================================================
   AFEBAS — Actions calendrier (icônes + rendu premium)
   À coller APRÈS le bloc .af-open-action existant
   ========================================================= */

/* Base bouton : un peu plus “tool-like” */
.af-open-action{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}

/* Focus clavier (accessibilité + sérieux) */
.af-open-action:focus,
.af-open-action:focus-visible{
  outline:3px solid rgba(11,42,91,.25);
  outline-offset:2px;
}

/* Icône générique (pseudo-élément) */
.af-open-action::before{
  content:"";
  width:16px;
  height:16px;
  flex:0 0 16px;
  display:inline-block;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  opacity:.92;
}

/* ========= Agenda (Google Calendar) ========= */
.af-open-action[href*="calendar.google"]{
  background:#f1f5ff;
  color:#1a56db;
  border-color:rgba(26,86,219,.18);
}
.af-open-action[href*="calendar.google"]::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a56db' d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1Zm13 8H4v9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-9ZM6 6H5a1 1 0 0 0-1 1v1h16V7a1 1 0 0 0-1-1h-1v1a1 1 0 1 1-2 0V6H8v1a1 1 0 1 1-2 0V6Z'/%3E%3Cpath fill='%231a56db' d='M8 13h3v3H8z'/%3E%3C/svg%3E");
}

/* ========= Itinéraire (Google Maps / pin) ========= */
.af-open-action[href*="google.com/maps"]{
  background:#fef3f2;
  color:#c2410c;
  border-color:rgba(194,65,12,.18);
}
.af-open-action[href*="google.com/maps"]::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c2410c' d='M12 2a7 7 0 0 1 7 7c0 5.2-7 13-7 13S5 14.2 5 9a7 7 0 0 1 7-7Zm0 9.5A2.5 2.5 0 1 0 12 6.5a2.5 2.5 0 0 0 0 5Z'/%3E%3C/svg%3E");
}

/* ========= Inscriptions (ticket) ========= */
.af-open-action[href*="inscription"]{
  background:#ecfdf5;
  color:#047857;
  border-color:rgba(4,120,87,.18);
}
.af-open-action[href*="inscription"]::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23047857' d='M4 6a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v3a2 2 0 0 0 0 4v3a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-3a2 2 0 0 0 0-4V6Zm5-1a1 1 0 0 0-1 1v1h2V6a1 1 0 0 0-1-1Zm0 12a1 1 0 0 0-1 1v1h2v-1a1 1 0 0 0-1-1Zm5-10h2v2h-2V7Zm0 4h2v2h-2v-2Zm0 4h2v2h-2v-2Z'/%3E%3C/svg%3E");
}

/* ========= Résultats (trophy) ========= */
.af-open-action[href*="resultat-du-tournoi"]{
  background:#fff7ed;
  color:#c2410c;
  border-color:rgba(194,65,12,.18);
}
.af-open-action[href*="resultat-du-tournoi"]::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c2410c' d='M7 2h10v3h3v3a6 6 0 0 1-6 6h-1v2h2v2H9v-2h2v-2H10A6 6 0 0 1 4 8V5h3V2Zm-1 5a4 4 0 0 0 4 4h4a4 4 0 0 0 4-4V7h-1a3 3 0 0 1-3 3H10a3 3 0 0 1-3-3H6v0Z'/%3E%3C/svg%3E");
}

/* ========= Annulé : neutre, sans icône ========= */
.af-open-action.is-cancel{
  background:#f3f4f6;
  color:#9ca3af;
  border-color:rgba(156,163,175,.25);
  box-shadow:none;
}
.af-open-action.is-cancel::before{ content:none; }

/* Hover : on garde la couleur métier (pas de bleu uniforme) */
.af-open-action[href*="calendar.google"]:hover{ background:#1a56db; color:#fff; }
.af-open-action[href*="google.com/maps"]:hover{ background:#c2410c; color:#fff; }
.af-open-action[href*="inscription"]:hover{ background:#047857; color:#fff; }
.af-open-action[href*="resultat-du-tournoi"]:hover{ background:#c2410c; color:#fff; }
.af-open-action:hover{ transform:translateY(-1px); }

/* Sur hover, l’icône passe en blanc (on remplace par une version blanche) */
.af-open-action[href*="calendar.google"]:hover::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1Zm13 8H4v9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-9ZM6 6H5a1 1 0 0 0-1 1v1h16V7a1 1 0 0 0-1-1h-1v1a1 1 0 1 1-2 0V6H8v1a1 1 0 1 1-2 0V6Z'/%3E%3Cpath fill='%23ffffff' d='M8 13h3v3H8z'/%3E%3C/svg%3E");
}
.af-open-action[href*="google.com/maps"]:hover::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 2a7 7 0 0 1 7 7c0 5.2-7 13-7 13S5 14.2 5 9a7 7 0 0 1 7-7Zm0 9.5A2.5 2.5 0 1 0 12 6.5a2.5 2.5 0 0 0 0 5Z'/%3E%3C/svg%3E");
}
.af-open-action[href*="inscription"]:hover::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M4 6a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v3a2 2 0 0 0 0 4v3a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-3a2 2 0 0 0 0-4V6Zm5-1a1 1 0 0 0-1 1v1h2V6a1 1 0 0 0-1-1Zm0 12a1 1 0 0 0-1 1v1h2v-1a1 1 0 0 0-1-1Zm5-10h2v2h-2V7Zm0 4h2v2h-2v-2Zm0 4h2v2h-2v-2Z'/%3E%3C/svg%3E");
}
.af-open-action[href*="resultat-du-tournoi"]:hover::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 2h10v3h3v3a6 6 0 0 1-6 6h-1v2h2v2H9v-2h2v-2H10A6 6 0 0 1 4 8V5h3V2Zm-1 5a4 4 0 0 0 4 4h4a4 4 0 0 0 4-4V7h-1a3 3 0 0 1-3 3H10a3 3 0 0 1-3-3H6v0Z'/%3E%3C/svg%3E");
}

/* Mobile : évite les “pills” qui se marchent dessus */
@media (max-width: 768px){
  .af-col-right{ display:flex; flex-wrap:wrap; gap:8px; }
  .af-open-action{ margin:0; }
}

/* =========================================================
   AFEBAS – Résultats Tournoi V4.x (VERSION THEME STATIQUE)
   Scope racine : .af-v4res
   ========================================================= */

/* Reset interne */
.af-v4res,
.af-v4res *{
  box-sizing:border-box;
}

.af-v4res h1,
.af-v4res h2,
.af-v4res h3,
.af-v4res p{
  margin:0;
  padding:0;
  border:0;
  line-height:1.4;
}

.af-v4res a{
  text-decoration:none;
}

/* ================= HERO ================= */

.af-v4res .v4hero{
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 4px 28px rgba(0,0,0,.18);
  color:#fff;
}

.af-v4res .v4hero-inner{
  display:flex;
  align-items:stretch;
}

.af-v4res .v4hero-left{
  flex:1;
  padding:24px;
}

.af-v4res .v4badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border-radius:999px;
  padding:5px 12px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

.af-v4res .v4title{
  font-size:clamp(18px,3.5vw,28px);
  font-weight:900;
  margin:12px 0 6px;
}

.af-v4res .v4sub{
  font-size:14px;
  opacity:.9;
}

.af-v4res .v4meta{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.af-v4res .v4pill{
  border-radius:999px;
  padding:6px 12px;
  font-size:12px;
  font-weight:600;
  background:rgba(255,255,255,.15);
}

.af-v4res .v4btns{
  margin-top:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.af-v4res .v4btn{
  padding:10px 16px;
  border-radius:10px;
  font-weight:700;
  font-size:13px;
  transition:.2s ease;
}

.af-v4res .v4btn:hover{
  transform:translateY(-2px);
}

/* ===== HERO PHOTO — rail + même photo en fond (via --v4hero-photo) ===== */

.af-v4res .v4hero{
  position: relative;
  overflow: hidden;
}

/* 1) Fond = même photo (soft) */
.af-v4res .v4hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image: var(--v4hero-photo, none);
  background-size: cover;
  background-position: 70% 35%;
  background-repeat: no-repeat;
  opacity: .22;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.06);
  pointer-events:none;
}

/* 2) Voile + dégradé lisibilité (garde vos couleurs) */
.af-v4res .v4hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(90deg,
      var(--v4c1) 0%,
      rgba(0,0,0,.45) 52%,
      rgba(0,0,0,0) 100%
  );
  pointer-events:none;
}

/* 3) Contenu au-dessus */
.af-v4res .v4hero-inner{
  position: relative;
  z-index: 3;
}

/* 4) Rail photo à droite (au-dessus du fond, sous le contenu) */
.af-v4res .v4hero-photo{
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: clamp(220px, 22vw, 380px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;      /* colle en bas */
  justify-content: flex-end;  /* colle à droite */
  pointer-events: none;
  z-index: 2;
}

/* Fusion à gauche du rail */
.af-v4res .v4hero-photo::before{
  content:"";
  position:absolute;
  top:0; bottom:0; left:0;
  width: 120px;
  z-index:2;
  pointer-events:none;
  background: linear-gradient(to right,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.18) 55%,
    rgba(0,0,0,0) 100%
  );
}

/* Image rail : proportion stable, hauteur réduite, collée à droite/bas */
.af-v4res .v4hero-photo img{
  display:block;
  height: 78%;                 /* <-- réduisez/augmentez ici (72–84%) */
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: right bottom;

  /* Ajustement fin de présence sans casser le collage */
  transform: translateY(8px) scale(1.06);
  transform-origin: right bottom;

  filter: drop-shadow(-10px 0 18px rgba(0,0,0,.22));
}

/* Mobile : on masque comme vous le souhaitez */
@media(max-width:700px){
  .af-v4res .v4hero-photo{ display:none !important; }
}

/* Rail photo */
.af-v4res .v4hero-photo{
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: clamp(220px, 22vw, 380px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;

  /* caché par défaut, mais l'image charge quand même */
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.af-v4res .v4hero-photo.is-ready{
  opacity: 1;
  visibility: visible;
}

/* Image */
.af-v4res .v4hero-photo img{
  height: 60%;                 /* votre réduction de hauteur */
  width: auto;
  max-width: none;
  display: block;

  transform: scale(1.18);
  transform-origin: right bottom;
}
/* =========================================================
   FIX HERO — photo rail + rectangle vainqueur
   ========================================================= */

/* 1) Laisse de la place pour le rail photo à droite */
.af-v4res .v4hero-left {
  padding-right: clamp(240px, 24vw, 400px);
}

/* Sur mobile, pas de rail donc on remet un padding normal */
@media (max-width: 700px) {
  .af-v4res .v4hero-left {
    padding-right: 24px;
  }
}

/* 2) Supprime le rectangle gris derrière le bloc vainqueur */
.af-v4res .v4winner {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
/* Le conteneur ne doit pas créer de boîte visible */
.af-v4res .v4hero-photo {
  background: transparent !important;
  padding: 0 !important;
}

/* L'image doit remplir tout le rail sans laisser de zone vide */
.af-v4res .v4hero-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  transform: none !important;   /* annule le scale/translateY qui créait le vide */
  display: block !important;
}


/* =========================================================
   AFEBAS — Cards Associations organisatrices (réutilisable)
   Scope: .afb-assos-cards
   ========================================================= */
.afb-assos-cards, .afb-assos-cards * { box-sizing:border-box; }

.afb-assos-cards{
  --afb-primary:#0b2a5b;
  --afb-primary-mid:#143b6b;
  --afb-text:#1a1f2b;
  --afb-muted:#6b7280;
  --afb-line:rgba(0,0,0,.10);
  --afb-card:#ffffff;
  --afb-zebra:rgba(20,59,107,.06);
  --afb-badge-bg:rgba(245,196,0,.14);
  --afb-badge-tx:#7a5d00;

  width:100%;
}

.afb-assos-cards--error{
  padding:12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background:#fff;
}

.afb-assos-cards__head{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:flex-end;
  justify-content:space-between;
  padding:14px 14px 10px 14px;
  border:1px solid var(--afb-line);
  border-radius:16px;
  background:linear-gradient(90deg, rgba(11,42,91,.06), rgba(20,59,107,.04));
}

.afb-assos-cards__title{
  font-weight:900;
  letter-spacing:.2px;
  color:var(--afb-text);
  font-size:16px;
  line-height:1.2;
}

.afb-assos-cards__meta{
  font-size:12px;
  color:var(--afb-muted);
  font-weight:800;
}

.afb-assos-cards__grid{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(1, minmax(0, 1fr));
  gap:10px;
}

@media (min-width: 720px){
  .afb-assos-cards__grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px){
  .afb-assos-cards__grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

.afb-assos-cards__card{
  position:relative;
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px 12px;
  border:1px solid var(--afb-line);
  border-radius:16px;
  background:var(--afb-card);
  overflow:hidden;
}

.afb-assos-cards__card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:6px;
  background:var(--afb-primary-mid);
  opacity:.9;
}

.afb-assos-cards__card.is-zebra{
  background:linear-gradient(0deg, var(--afb-zebra), var(--afb-zebra)), var(--afb-card);
}

.afb-assos-cards__card.is-off{
  opacity:.72;
}
.afb-assos-cards__card.is-off::before{
  background:rgba(0,0,0,.25);
}

.afb-assos-cards__logo{
  width:40px;
  height:40px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  object-fit:contain;
  flex:0 0 auto;
}

.afb-assos-cards__logo.is-muted{
  opacity:.35;
  filter:grayscale(100%);
}

.afb-assos-cards__body{
  min-width:0;
  flex:1 1 auto;
}

.afb-assos-cards__name{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-weight:900;
  color:var(--afb-text);
  font-size:14px;
  line-height:1.2;
}

.afb-assos-cards__name a{
  color:inherit;
  text-decoration:none;
}
.afb-assos-cards__name a:hover{
  text-decoration:underline;
}

.afb-assos-cards__sub{
  margin-top:3px;
  font-size:12px;
  color:var(--afb-muted);
  font-weight:800;
}

.afb-assos-cards__badge{
  margin-left:auto;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(0,0,0,.10);
  background:var(--afb-badge-bg);
  color:var(--afb-badge-tx);
  white-space:nowrap;
}

.afb-assos-cards__badge a{
  color:inherit;
  text-decoration:none;
}
.afb-assos-cards__badge a:hover{
  text-decoration:underline;
}

.afb-assos-cards__badge.is-zero{
  background:rgba(0,0,0,.04);
  color:rgba(0,0,0,.40);
}

/* ================= VAINQUEUR ================= */

.af-v4res .v4winner{
  margin-top:16px;
  padding:12px;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:12px;
  background:rgba(0,0,0,.2);
}

.af-v4res .v4winner-name{
  font-weight:900;
  font-size:15px;
}

.af-v4res .v4winner-tag{
  border-radius:999px;
  padding:6px 12px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

/* ================= TOP 2/3/4 ================= */

.af-v4res .v4hero-top{
  margin-top:14px;
  display:grid;
  gap:10px;
}

@media(min-width:740px){
  .af-v4res .v4hero-top{
    grid-template-columns:repeat(3,1fr);
  }
}

.af-v4res .v4topcard{
  padding:12px;
  border-radius:12px;
  display:flex;
  gap:10px;
  align-items:center;
  background:rgba(0,0,0,.18);
}

.af-v4res .v4toprank{
  width:30px;
  height:30px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.af-v4res .v4toppts{
  font-weight:900;
  font-size:15px;
}

/* ================= STATS ================= */

.af-v4res .v4stats{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
}

.af-v4res .v4stat{
  background:#fff;
  border-radius:12px;
  padding:16px;
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.af-v4res .v4stat-n{
  font-size:28px;
  font-weight:900;
}

.af-v4res .v4stat-l{
  font-size:11px;
  text-transform:uppercase;
  margin-top:6px;
  opacity:.7;
}

/* ================= CLASSEMENT ================= */

.af-v4res .v4card{
  background:#fff;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  overflow:hidden;
}

.af-v4res .v4card-head{
  padding:12px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#f4f6f9;
  font-weight:900;
}

.af-v4res .v4card-body{
  padding:16px;
}

/* Table desktop */

.af-v4res .v4table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

.af-v4res .v4table th{
  text-align:left;
  font-size:11px;
  text-transform:uppercase;
  padding:10px;
  background:#f4f6f9;
}

.af-v4res .v4table td{
  padding:10px;
  border-bottom:1px solid #eee;
}

.af-v4res .v4cltbadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:8px;
  background:#eef1f6;
  font-weight:900;
}

/* ================= AVATAR ================= */

.af-v4res .v4ava-wrap{
  width:34px;
  height:34px;
  border-radius:10px;
  overflow:hidden;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#fff;
}

.af-v4res .v4ava-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.af-v4res .v4ava-wrap.is-photo .v4ava-inis{
  display:none;
}

/* ===============================
   AFEBAS – Bloc Recherche Joueur
   =============================== */

.af-search-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.af-search-wrap {
  max-width: 520px;
  margin: 0 auto 60px auto;
  padding: 35px 30px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}

.af-search-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.af-search-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #444;
  letter-spacing: 0.3px;
}

.af-search-field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  transition: all 0.25s ease;
  background: #fafafa;
}

.af-search-field input:focus {
  outline: none;
  border-color: var(--afb-primary, #0b2a5b);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11,42,91,0.12);
}

.af-search-actions {
  text-align: center;
  margin-top: 10px;
}

.af-search-btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: var(--afb-primary, #0b2a5b);
  color: #ffffff;
  transition: all 0.25s ease;
}

.af-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 600px) {

  .af-search-wrap {
    padding: 25px 18px;
  }

  .af-search-title {
    font-size: 1.6rem;
  }

}

/* ============================================================
   AFEBAS — UI Socle (Liste inscrits)
   Dépendances: aucune (classes du snippet)
   Palette: Bleu prusse + Jaune AFEBAS
   ============================================================ */

:root{
  --af-prusse:#041E42;
  --af-prusse-2:#062a5e;
  --af-jaune:#f6c744;
  --af-bg:#0b1220;
  --af-surface:#ffffff;
  --af-muted:#6b7280;
  --af-text:#111827;
  --af-line:#e5e7eb;
  --af-soft:#f6f7fb;
  --af-shadow:0 10px 30px rgba(0,0,0,.10);
  --af-radius:16px;
}

/* ---------- wrappers / misc ---------- */
.af-pre{
  margin:10px 0 0;
  padding:10px 12px;
  background:#0b1220;
  color:#e5e7eb;
  border-radius:12px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  line-height:1.35;
  overflow:auto;
}

.af-link{
  color:var(--af-prusse);
  text-decoration:underline;
  text-underline-offset:2px;
}
.af-link:hover{ color:var(--af-prusse-2); }

.af-help{
  margin-top:8px;
  color:var(--af-muted);
  font-size:13px;
}

/* ---------- messages ---------- */
.af-box{
  margin:14px 0;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--af-line);
  background:var(--af-surface);
  color:var(--af-text);
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}
.af-box--info{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:#1e3a8a;
}
.af-box--error{
  border-color:#fecaca;
  background:#fff1f2;
  color:#7f1d1d;
}

/* ============================================================
   Section
   ============================================================ */
.af-inscrits{
  margin:14px 0;
  color:var(--af-text);
}

/* ---------- Hero ---------- */
.af-inscrits__hero{
  position:relative;
  overflow:hidden;
  border-radius:calc(var(--af-radius) + 4px);
  box-shadow:var(--af-shadow);
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(246,199,68,.18), transparent 55%),
    linear-gradient(135deg, rgba(4,30,66,.96) 0%, rgba(4,30,66,.90) 35%, rgba(6,42,94,.88) 100%);
}
.af-inscrits__hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:var(--af-hero-poster);
  background-size:cover;
  background-position:center;
  opacity:.10;
  filter:saturate(1.05) contrast(1.05);
}
.af-inscrits__heroInner{
  position:relative;
  padding:18px 18px 16px;
}
.af-inscrits__kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight:800;
  letter-spacing:.3px;
  color:#e5e7eb;
  font-size:12px;
  text-transform:uppercase;
}
.af-inscrits__kicker::before{
  content:"";
  width:10px; height:10px;
  border-radius:99px;
  background:var(--af-jaune);
  box-shadow:0 0 0 4px rgba(246,199,68,.20);
}
.af-inscrits__title{
  margin:10px 0 8px;
  color:#ffffff;
  font-size:28px;
  line-height:1.15;
  font-weight:900;
}
.af-inscrits__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.af-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:#ffffff;
  font-weight:700;
  font-size:12px;
  backdrop-filter: blur(6px);
}
.af-inscrits__count{
  margin-top:10px;
  font-weight:900;
  color:#ffffff;
  font-size:15px;
}

/* Poster à droite (desktop) */
.af-inscrits__heroPoster{
  position:absolute;
  top:0; right:0; bottom:0;
  width:min(34%, 360px);
  background-image:var(--af-hero-poster);
  background-size:cover;
  background-position:center;
  opacity:.35;
  filter:saturate(1.05) contrast(1.05);
  mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.60) 25%, #000 100%);
}
@media (max-width:700px){
  .af-inscrits__heroPoster{ display:none; }
  .af-inscrits__title{ font-size:22px; }
}

/* ---------- Empty ---------- */
.af-empty{
  margin:14px 0;
  padding:16px;
  border-radius:var(--af-radius);
  border:1px dashed #cbd5e1;
  background:#f8fafc;
  color:#334155;
  font-weight:700;
}

/* ============================================================
   Table desktop
   ============================================================ */
.af-inscrits__tableWrap{
  margin-top:14px;
  border-radius:var(--af-radius);
  overflow:hidden;
  background:var(--af-surface);
  border:1px solid var(--af-line);
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}

.af-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.af-table thead th{
  background:linear-gradient(0deg, rgba(4,30,66,1), rgba(6,42,94,1));
  color:#fff;
  text-align:left;
  padding:12px 12px;
  font-size:13px;
  letter-spacing:.2px;
  font-weight:900;
}
.af-table tbody td{
  padding:12px 12px;
  border-bottom:1px solid var(--af-line);
  vertical-align:middle;
  font-size:14px;
}
.af-row.is-zebra td{ background:var(--af-soft); }
.af-table tbody tr:last-child td{ border-bottom:0; }

.af-cell--lic{
  white-space:nowrap;
  font-weight:900;
  color:var(--af-prusse);
}
.af-cell--team{
  font-weight:900;
  color:#0f172a;
}

/* ============================================================
   Player (avatar + nom)
   ============================================================ */
.af-player{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.af-player__txt{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.af-player__name{
  display:inline-block;
  max-width:100%;
  color:var(--af-prusse);
  font-weight:900;
  text-decoration:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.af-player__name:hover{ text-decoration:underline; }
.af-player__sub{
  color:var(--af-muted);
  font-size:12px;
  font-weight:700;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Avatar: initiales par défaut, photo si chargée */
.af-ava{
  width:40px;
  height:40px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(24px 24px at 30% 20%, rgba(246,199,68,.35), transparent 60%),
    linear-gradient(135deg, rgba(4,30,66,1), rgba(6,42,94,1));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 10px 18px rgba(0,0,0,.12);
  flex:0 0 auto;
  overflow:hidden;
}
.af-ava__ini{
  color:#fff;
  font-weight:900;
  font-size:13px;
  letter-spacing:.3px;
}
.af-ava__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.af-ava.is-photo{
  background:#111827;
  border-color:rgba(0,0,0,.10);
}

/* ============================================================
   Cards mobile
   ============================================================ */
.af-inscrits__cards{ display:none; }

.af-card{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:var(--af-radius);
  border:1px solid var(--af-line);
  background:var(--af-surface);
  box-shadow:0 10px 22px rgba(0,0,0,.06);
  margin-top:10px;
}
.af-card.is-zebra{
  background:
    linear-gradient(0deg, rgba(246,247,251,1), rgba(246,247,251,1));
}
.af-card__main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.af-card__team{
  font-weight:1000;
  color:#0f172a;
  font-size:13px;
}
.af-card__side{
  flex:0 0 auto;
  min-width:84px;
  border-left:1px dashed #d1d5db;
  padding-left:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}
.af-kpiLabel{
  font-size:11px;
  color:var(--af-muted);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
}
.af-kpiVal{
  margin-top:2px;
  font-weight:1000;
  color:var(--af-prusse);
  font-size:16px;
}

/* switch table -> cards */
@media (max-width: 820px){
  .af-inscrits__tableWrap{ display:none; }
  .af-inscrits__cards{ display:block; margin-top:14px; }
  .af-ava{ width:42px; height:42px; }
}

/* ============================================================
   Debug
   ============================================================ */
.af-debug{
  margin-top:14px;
  border-radius:var(--af-radius);
  border:1px dashed #9ca3af;
  background:#f8fafc;
  padding:12px;
}
.af-debug__title{
  font-weight:1000;
  color:#0f172a;
  margin-bottom:8px;
}

/* ============================================================
   Fine tuning: liens tables
   ============================================================ */
.af-table a.af-link,
.af-table a{
  color:var(--af-prusse);
}
.af-table a:hover{ color:var(--af-prusse-2); }

/* ===========================
   AFB – Dates d’Opens
=========================== */

.afb-opens-dates{
  background:#fff;
  border-radius:12px;
  padding:30px;
  box-shadow:0 4px 18px rgba(0,0,0,0.05);
}

/* Header jaune */
.afb-opens-header{
  background:#d4a017;
  color:#111;
  padding:14px 20px;
  border-radius:8px;
  margin-bottom:30px;
}

.afb-opens-header h2{
  margin:0;
  font-weight:700;
  letter-spacing:.5px;
}

/* Grid saisons */
.afb-opens-wrapper{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:40px;
}

.afb-opens-season h3{
  margin-bottom:18px;
  font-weight:700;
}

/* Liste */
.afb-opens-list{
  list-style:none;
  padding:0;
  margin:0;
}

.afb-opens-list li{
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,.06);
  font-size:15px;
}

/* Phase finale */
.afb-highlight{
  font-weight:700;
  color:#c62828;
}

/* Annulé */
.afb-cancelled{
  text-decoration:line-through;
  opacity:.55;
}

/* En attente */
.afb-pending{
  font-weight:600;
  color:#e65100;
}

/* Note */
.afb-attente{
  margin-top:15px;
  font-size:14px;
  opacity:.75;
}





/* =========================================================
   AFEBAS — Fiche joueur publique (scope .afb-player-page)
   CSS commun (pas de CSS inline dans le snippet)
   ========================================================= */
.afb-player-page{ max-width:1100px; margin:0 auto; padding:15px; }

.afb-player-hero{
  display:flex; flex-wrap:wrap; gap:24px; align-items:stretch;
  margin-bottom:24px;
  background: var(--afb-white);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--afb-shadow);
  border: 1px solid rgba(0,0,0,0.06);
}

.afb-player-photo-wrapper{ flex:0 0 260px; display:flex; justify-content:center; align-items:center; }
.afb-player-photo{ width:100%; max-width:260px; height:auto; border-radius:12px; object-fit:cover; }

.afb-player-hero-info{ flex:1; min-width:260px; display:flex; flex-direction:column; justify-content:center; }

.afb-player-licence{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--afb-muted);
  margin-bottom: 6px;
  font-weight: 900;
}

.afb-player-name{
  font-family: var(--afb-font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--afb-primary);
  margin-bottom: 6px;
}

.afb-player-club{ font-size:14px; color: var(--afb-text); font-weight:800; margin-bottom:8px; }

.afb-player-meta-line{
  font-size: 13px;
  color: var(--afb-text);
  margin-bottom: 10px;
  display:flex; flex-wrap:wrap; gap:8px;
}

.afb-meta-item{
  background: rgba(11,42,91,0.06);
  border: 1px solid rgba(11,42,91,0.12);
  border-radius: 999px;
  padding: 5px 10px;
  min-width: 160px;
  text-align: left;
  white-space: nowrap;
  font-weight: 800;
}

.afb-meta-gp{
  background: rgba(11,42,91,0.92);
  border-color: rgba(245,196,0,0.55);
  color: var(--afb-accent);
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.afb-gp-logo{ height: 20px; width:auto; display:inline-block; }

.afb-player-main-metrics{ display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }
.afb-metric{
  border:1px solid rgba(245,196,0,0.55);
  border-radius:999px;
  padding:6px 12px;
  font-size:13px;
  background: rgba(245,196,0,0.10);
}
.afb-metric-label{ font-weight:900; color: var(--afb-primary); margin-right: 6px; }
.afb-metric-value{ font-weight:900; color: var(--afb-text); }

.afb-section{ margin-bottom:20px; }
.afb-section-title{
  font-family: var(--afb-font-display);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--afb-primary);
  border-bottom: 2px solid var(--afb-accent);
  margin-bottom: 10px;
  padding-bottom: 6px;
}

.afb-season-block{ margin-top:10px; margin-bottom:15px; }
.afb-season-header{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--afb-primary);
  background: rgba(11,42,91,0.06);
  border-left: 4px solid var(--afb-accent);
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
}

.afb-palmares-item{ padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.afb-palmares-line{ font-size: 13px; line-height: 1.45; color: var(--afb-text); }
.afb-palmares-date{ font-weight: 900; color: var(--afb-primary); }
.afb-palmares-points{ font-weight: 900; }
.afb-palmares-fermes{ font-style: italic; color: var(--afb-muted); }
.afb-palmares-empty{ font-size: 13px; color: var(--afb-muted); }

/* Mode mémorial */
.afb-player-page.afb-memorial .afb-player-hero{
  background: var(--afb-dark);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--afb-shadow-md);
}
.afb-player-page.afb-memorial .afb-player-name{ color: var(--afb-accent); }
.afb-player-page.afb-memorial .afb-meta-item{
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.10);
}
.afb-player-memorial-kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--afb-accent);
  margin-bottom: 8px;
  font-weight: 900;
}
.afb-memorial-dates{
  margin: 8px 0 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.afb-memorial-line{ font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.90); margin-bottom: 4px; }
.afb-memorial-sep{ margin: 0 6px; opacity: .75; }
.afb-memorial-note{ margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.75); font-style: italic; }

@media (max-width: 640px){
  .afb-player-hero{ flex-direction:column; align-items:center; text-align:center; }
  .afb-player-meta-line{ justify-content:center; }
  .afb-player-main-metrics{ justify-content:center; }
  .afb-meta-item{ min-width: 0; }
}



/* ==============================================
   AFEBAS V4 — Rail HERO photo entière (contain)
   ============================================== */

.af-v4res .v4hero-photo.v4hero-photo--contain{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background: rgba(0,0,0,.08); /* léger fond si image verticale */
}

.af-v4res .v4hero-photo.v4hero-photo--contain img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center;
}

/* =========================================================
   AFEBAS - Bloc Histoire / Gouvernance
   Version harmonisée bleu / jaune AFEBAS
   ========================================================= */

.af-cna,
.af-cna *{
  box-sizing:border-box;
}

.af-cna{
  --afh-blue:#0b2a5b;
  --afh-blue-2:#123a7a;
  --afh-blue-3:#1f5bb5;
  --afh-yellow:#f5c400;
  --afh-white:#ffffff;
  --afh-text:#18314f;
  --afh-muted:#647a98;
  --afh-border:#d8e1ee;
  --afh-bg:#f3f6fb;
  --afh-card:#ffffff;
  --afh-shadow:0 14px 34px rgba(11,42,91,.10);
  --afh-radius:20px;

  width:100%;
  max-width:1720px;
  margin:28px auto 36px;
  padding:28px;
  border-radius:26px;
  background:
    radial-gradient(circle at top right, rgba(245,196,0,.11), transparent 22%),
    linear-gradient(180deg, #123a7a 0%, #0b2a5b 100%);
  box-shadow:0 24px 60px rgba(11,42,91,.16);
  color:#fff;
  overflow:hidden;
}

.af-cna .af-cna__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:0 0 18px;
  margin:0 0 18px;
  border-bottom:1px solid rgba(255,255,255,.16);
}

.af-cna .af-cna__title{
  margin:0;
  font-size:clamp(28px,3.4vw,44px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:.01em;
  color:#fff;
}

.af-cna .af-cna__header .af-cna__muted{
  margin-top:8px;
  color:rgba(255,255,255,.84);
  font-size:15px;
}

.af-cna .af-cna__badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(245,196,0,.14);
  border:1px solid rgba(245,196,0,.52);
  color:#fff9dc;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  white-space:nowrap;
}

.af-cna .af-cna__badge i{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  background:var(--afh-yellow);
  box-shadow:0 0 0 5px rgba(245,196,0,.14);
}

.af-cna .af-cna__card,
.af-cna .af-cna__callout{
  background:var(--afh-card);
  color:var(--afh-text);
  border:1px solid var(--afh-border);
  border-radius:22px;
  box-shadow:var(--afh-shadow);
}

.af-cna .af-cna__card{
  padding:26px 28px;
}

.af-cna .af-cna__callout{
  padding:24px 28px;
  margin-top:22px;
  background:linear-gradient(180deg,#fffbed 0%,#ffffff 100%);
  border:1px solid rgba(245,196,0,.36);
}

.af-cna p{
  margin:0 0 16px;
  font-size:18px;
  line-height:1.72;
  color:var(--afh-text);
}

.af-cna .af-cna__card > p:last-child{
  margin-bottom:0;
}

.af-cna strong{
  color:var(--afh-blue);
  font-weight:900;
}

.af-cna .af-cna__muted{
  color:var(--afh-muted);
  font-size:15px;
}

.af-cna h2{
  margin:30px 0 16px;
  font-size:24px;
  line-height:1.15;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--afh-yellow);
}

.af-cna h3{
  margin:0 0 12px;
  font-size:22px;
  line-height:1.2;
  font-weight:900;
  color:var(--afh-blue);
}

.af-cna .af-cna__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  margin-top:8px;
}

.af-cna .af-cna__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.af-cna .af-cna__list li{
  position:relative;
  padding-left:22px;
  color:var(--afh-text);
  line-height:1.6;
}

.af-cna .af-cna__list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.62em;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--afh-yellow);
  box-shadow:0 0 0 4px rgba(245,196,0,.16);
  transform:translateY(-50%);
}

.af-cna a{
  color:var(--afh-blue-2);
  text-decoration:none;
  font-weight:700;
}

.af-cna a:hover{
  color:var(--afh-blue-3);
  text-decoration:underline;
}

/* Harmonisation plugin équipe */
.af-cna .awsm-team,
.af-cna .awsm-grid-card,
.af-cna .awsm-person,
.af-cna [class*="awsm"] .awsm-grid-card,
.af-cna [class*="awsm"] .awsm-person{
  background:transparent !important;
  box-shadow:none !important;
}

.af-cna [class*="awsm"] img{
  border-radius:18px !important;
}

.af-cna [class*="awsm"] .awsm-person-name,
.af-cna [class*="awsm"] .awsm-grid-title{
  color:var(--afh-blue) !important;
  font-weight:900 !important;
}

.af-cna [class*="awsm"] .awsm-person-designation,
.af-cna [class*="awsm"] .awsm-grid-designation{
  color:var(--afh-muted) !important;
}

/* Responsive */
@media (max-width:980px){
  .af-cna{
    padding:20px;
    border-radius:20px;
  }

  .af-cna .af-cna__header{
    flex-direction:column;
    align-items:flex-start;
  }

  .af-cna .af-cna__grid{
    grid-template-columns:1fr;
  }

  .af-cna .af-cna__card,
  .af-cna .af-cna__callout{
    padding:20px;
  }

  .af-cna p{
    font-size:16px;
  }

  .af-cna h3{
    font-size:20px;
  }
}

/* =========================================================
   AFEBAS – Carte interactive établissements
   ========================================================= */

.afmap-wrap{
  background:#f3f6fb;
  border:1px solid #d9e2ef;
  border-radius:18px;
  padding:20px;
  box-shadow:0 8px 24px rgba(11,42,91,.08);
}

.afmap-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.afmap-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#1f5bb5;
  margin-bottom:6px;
}

.afmap-title{
  margin:0 0 6px;
  font-size:32px;
  line-height:1.05;
  font-family:var(--afb-font-display, 'Barlow Condensed', sans-serif);
  color:#0b2a5b;
  text-transform:uppercase;
}

.afmap-sub{
  margin:0;
  color:#55657d;
}

.afmap-kpis{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.afmap-kpi{
  min-width:120px;
  background:#fff;
  border:1px solid #d9e2ef;
  border-radius:14px;
  padding:12px 14px;
  text-align:center;
}

.afmap-kpi strong{
  display:block;
  font-size:24px;
  line-height:1;
  color:#0b2a5b;
  font-family:var(--afb-font-display, 'Barlow Condensed', sans-serif);
}

.afmap-kpi span{
  font-size:12px;
  color:#67758c;
  text-transform:uppercase;
  font-weight:700;
}

.afmap-toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.afmap-tab,
.afmap-btn{
  appearance:none;
  border:1px solid #c9d5e6;
  background:#fff;
  color:#0b2a5b;
  border-radius:999px;
  padding:10px 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}

.afmap-tab:hover,
.afmap-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 14px rgba(11,42,91,.08);
}

.afmap-tab.is-active{
  background:#0b2a5b;
  color:#fff;
  border-color:#0b2a5b;
}

.afmap-spacer{
  flex:1 1 auto;
}

.afmap-breadcrumb{
  margin-bottom:12px;
  font-size:13px;
  color:#6b7b92;
}

.afmap-breadcrumb__label{
  font-weight:700;
  margin-right:6px;
}

.afmap-breadcrumb__value{
  font-weight:800;
  color:#0b2a5b;
}

.afmap-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:18px;
}

.afmap-main,
.afmap-side{
  min-width:0;
}

.afmap-canvas{
  height:680px;
  background:#dfe8f5;
  border:1px solid #d9e2ef;
  border-radius:18px;
  overflow:hidden;
}

.afmap-panel{
  background:#fff;
  border:1px solid #d9e2ef;
  border-radius:16px;
  overflow:hidden;
  margin-bottom:14px;
}

.afmap-panel h3{
  margin:0;
  padding:14px 16px;
  background:#0b2a5b;
  color:#fff;
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.afmap-panel__body{
  padding:14px 16px;
  color:#4e5f77;
  font-size:14px;
  line-height:1.55;
}

.afmap-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.afmap-list__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  border:1px solid #e2e9f3;
  background:#f8fbff;
  border-radius:12px;
  padding:10px 12px;
}

.afmap-list__label{
  font-weight:700;
  color:#22324a;
}

.afmap-list__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  padding:4px 10px;
  border-radius:999px;
  background:#0b2a5b;
  color:#fff;
  font-weight:800;
}

.afmap-detail strong{
  display:block;
  color:#0b2a5b;
  margin-bottom:6px;
}

.afmap-detail__sub{
  margin-top:4px;
  color:#67758c;
}

.afmap-empty{
  color:#7a889d;
}

.afmap-error{
  color:#b42318;
  font-weight:700;
}

.afmap-popup{
  font-size:13px;
  line-height:1.45;
}

@media (max-width: 1024px){
  .afmap-grid{
    grid-template-columns:1fr;
  }

  .afmap-canvas{
    height:560px;
  }
}

@media (max-width: 700px){
  .afmap-wrap{
    padding:14px;
    border-radius:14px;
  }

  .afmap-title{
    font-size:24px;
  }

  .afmap-canvas{
    height:440px;
    border-radius:14px;
  }

  .afmap-kpis{
    width:100%;
  }

  .afmap-kpi{
    flex:1 1 140px;
  }
}

.af-etab-hero{

height:340px;
background-size:cover;
background-position:center;
position:relative;

}

.af-etab-overlay{

background:linear-gradient(
rgba(0,0,0,.3),
rgba(0,0,0,.85)
);

color:white;
padding:40px;

}

.af-etab-overlay h1{

font-size:40px;
color:#f3c300;

}

.af-etab-stats{

display:flex;
gap:30px;
margin-top:20px;

}

.stat{

background:#0b2c5f;
padding:15px;
border-radius:6px;
text-align:center;

}

.stat .num{

font-size:26px;
font-weight:bold;
color:#f3c300;

}

.af-team{

border-left:4px solid #f3c300;
padding:10px;
margin:8px 0;
background:#f5f7fb;

}