/* ===========================================================================
   AFEBAS — Habillages saisonniers : rattrapage
   ---------------------------------------------------------------------------
   Le site suit ses variables de couleur à peu près partout. « À peu près » :
   une centaine d'endroits écrivent la couleur en dur et ne bougent donc pas
   quand la palette change. Ce fichier les raccroche aux variables du thème.

   Il ne contient AUCUNE couleur de fête : tout passe par var(--afb-*), que le
   thème génère déjà. Le même fichier sert donc Halloween, Noël, le Nouvel An,
   la Saint-Valentin et la Saint-Patrick — et toute fête ajoutée plus tard.

   Établi en relevant, page par page avec l'habillage appliqué, ce qui restait
   aux couleurs d'origine : accueil, carte des clubs, liste et fiche
   d'établissement, Rejoindre, Opens nationaux, Grands Prix, effectif GP,
   recherche joueur, adhérents, Top Open, One Sèche, galeries, contact,
   article, archive de catégorie, C.I.P., Académie, règlements, mode d'emploi,
   feuille de matchs, équipes Élite/N1.

   !important et sélecteurs à identifiant : nécessaires, pas confortables. Les
   règles visées sont souvent plus spécifiques (ex. #aflr-lastres .aflr-btn)
   ou déjà en !important. Vérifié sur le site : sans cela, rien ne bouge.
   =========================================================================== */

/* ------------------------------------------------------------------ *
 * 0) Miroirs                                                          *
 *    Certains blocs redéfinissent --afb-primary pour leur compte.     *
 *    Pour les raccrocher sans écrire « --afb-primary:var(--afb-primary) »
 *    (qui serait un cycle, donc une valeur invalide), on copie d'abord *
 *    les couleurs du thème sous un autre nom.                          *
 * ------------------------------------------------------------------ */
:root{
	--afb-saison-primary: var(--afb-primary);
	--afb-saison-mid:     var(--afb-primary-mid);
	--afb-saison-accent:  var(--afb-accent);
	--afb-saison-dark:    var(--afb-header-bg);
}

/* ------------------------------------------------------------------ *
 * 1) Toutes les pages                                                 *
 * ------------------------------------------------------------------ */

/* NOTE — pas de règle générale sur les liens.
   Une première version repeignait « a:not([class]) », avec des exceptions en
   color:inherit pour l'en-tête et le menu. Mauvaise idée : inherit ne rend pas
   au lien sa couleur d'origine, il lui fait hériter du texte de la page — et
   les entrées de menu devenaient illisibles sur fond sombre. Le site n'a ni
   <main> ni .entry-content pour délimiter proprement le contenu, et seuls
   quelques liens sont concernés : ils gardent donc leur couleur. */

/* Pied de page (il porte l'identifiant #colophon) */
#colophon,.afebas-footer{ background:var(--afb-header-bg) !important; }
#colophon,.site-footer.afebas-footer{ border-top-color:var(--afb-accent) !important; }
#colophon .footer-title,.footer-title{ color:var(--afb-accent) !important; }
#colophon .rs-btn,.rs-btn,.footer-socials .rs-btn{ border-color:var(--afb-accent) !important; }
#colophon .rs-btn:hover,.rs-btn:hover,.footer-socials .rs-btn:hover{
	background:var(--afb-accent) !important;
	border-color:var(--afb-accent) !important;
	color:var(--afb-dark) !important;
}

/* Bandeau de consentement */
.afb-consent{ background:var(--afb-header-bg) !important; }
.afb-consent a{ color:var(--afb-accent) !important; }
.afb-consent__btn--oui{ background:var(--afb-accent) !important; color:var(--afb-dark) !important; }

/* ------------------------------------------------------------------ *
 * 2) Accueil                                                          *
 * ------------------------------------------------------------------ */

/* Encart « EN CE MOMENT » — il existe en DEUX exemplaires sur le site,
   penser à vérifier le second.                                        */
.afb-encart-evt{
	background:linear-gradient(90deg,var(--afb-header-bg) 0%,var(--afb-dark) 100%) !important;
	border-bottom-color:var(--afb-accent) !important;
}
.afb-encart-evt__badge{ background:var(--afb-accent) !important; color:var(--afb-dark) !important; }
.afb-encart-evt__btn--live{ background:var(--afb-alert) !important; color:#fff !important; }
.afb-encart-evt__btn--photos{ background:var(--afb-accent) !important; color:var(--afb-dark) !important; }

/* Bloc d'introduction */
.af-home-intro{
	background-image:linear-gradient(135deg,var(--afb-primary-bg) 0%,var(--afb-primary-bg) 100%) !important;
	border-color:var(--afb-primary-bg) !important;
}
.af-home-intro__kicker{ background:var(--afb-primary-bg) !important; color:var(--afb-primary) !important; }
#content-wrapper .af-home-links__item{ color:var(--afb-primary-mid) !important; }

/* Derniers résultats reçus (bloc à identifiant #aflr-lastres) */
#content-wrapper #aflr-lastres .aflr-date{
	background:var(--afb-accent) !important;
	color:var(--afb-dark) !important;
	border-color:var(--afb-accent) !important;
}
#content-wrapper #aflr-lastres .aflr-info{ background:var(--afb-primary-bg) !important; }
#content-wrapper #aflr-lastres .aflr-btn--res{ background:var(--afb-primary) !important; color:#fff !important; }
#content-wrapper #aflr-lastres .aflr-btn--tab{ background:var(--afb-accent) !important; color:var(--afb-dark) !important; }

/* Prochains tournois */
#content-wrapper .af-future-date{
	background:var(--afb-accent) !important;
	color:var(--afb-dark) !important;
	border-color:var(--afb-accent) !important;
}
#content-wrapper .af-future-info{ background:var(--afb-primary-bg) !important; }
#content-wrapper .af-future-badge{ color:var(--afb-dark) !important; border-color:var(--afb-accent) !important; }
#content-wrapper .af-future-btn{ background:var(--afb-primary) !important; color:#fff !important; }

/* Anniversaires du jour */
#af-anniv-wrapper .af-anniv-letter,.af-anniv-letter{
	background:var(--afb-accent) !important;
	color:var(--afb-dark) !important;
	border-color:var(--afb-accent) !important;
}

.afebas-open-lieu{ color:var(--afb-primary) !important; }
.afb-highlight{ color:var(--afb-alert) !important; }

/* ------------------------------------------------------------------ *
 * 3) Carte des clubs et établissements                                *
 *    Deux familles cohabitent : .afm-* (page) et .afmap-* (composant) *
 * ------------------------------------------------------------------ */
.afm-title,.afm-tab,.afm-breadcrumb__value,
.afm-btn.is-outline,.afm-input,.afm-select,
[class^="afm-"] h4,[class*=" afm-"] h4{ color:var(--afb-primary) !important; }
.afm-kicker{ color:var(--afb-primary-light) !important; }
.afm-tab.is-active{
	background:var(--afb-primary) !important;
	border-color:var(--afb-primary) !important;
	color:#fff !important;
}
.afm-row__count{
	background:var(--afb-primary) !important;
	color:var(--afb-accent) !important;
	border-color:var(--afb-primary) !important;
}
.afm-panel h3,.afm-list__count{ background:var(--afb-primary) !important; color:var(--afb-accent) !important; }
/* Classe doublée à dessein : la règle d'origine est plus spécifique. */
.afm-linkbtn.is-yellow.is-yellow{ background:var(--afb-accent) !important; color:var(--afb-dark) !important; }

.afmap-title,.afmap-kpi strong,.afmap-breadcrumb__value,
.afmap-detail strong,.afmap-tab,.afmap-btn{ color:var(--afb-primary) !important; }
.afmap-kicker{ color:var(--afb-primary-light) !important; }
.afmap-tab.is-active{ background:var(--afb-primary) !important; border-color:var(--afb-primary) !important; }
.afmap-panel h3,.afmap-list__count{ background:var(--afb-primary) !important; }

/* ------------------------------------------------------------------ *
 * 4) Fiche d'établissement                                            *
 * ------------------------------------------------------------------ */
.af-etab-hero,.af-etab-kpi,.af-etab-badge,
.af-etab-team__badge--div{ background:var(--afb-header-bg) !important; }
.af-etab-hero__kicker,.af-etab-hero__title,.af-etab-kpi__num{ color:var(--afb-accent) !important; }
.af-etab-card__title,.af-etab-card a,.af-etab-section__title,
.af-etab-team__title{ color:var(--afb-primary) !important; }
.af-etab-section__title{ border-color:var(--afb-primary) !important; }
.af-etab-btn--primary,.af-etab-badge small,
.af-etab-team__badge--grp{ background:var(--afb-accent) !important; color:var(--afb-dark) !important; }
.af-etab-team{ border-left-color:var(--afb-accent) !important; }

/* ------------------------------------------------------------------ *
 * 5) Compétitions : Opens, Grands Prix, calendriers                   *
 * ------------------------------------------------------------------ */
.af-open-header,.af-ava{ background:var(--afb-primary) !important; }
.af-col-date,.af-open-action,.af-open-winner-name{ color:var(--afb-primary) !important; }
.afgp26-page{ --afgp26-navy:var(--afb-header-bg); }
.afgp26-hero{
	background:linear-gradient(135deg,var(--afb-dark) 0%,var(--afb-header-bg) 48%,var(--afb-primary-mid) 100%) !important;
}
.af-cna{
	--afh-blue:var(--afb-primary);
	--afh-blue-2:var(--afb-primary-mid);
	--afh-blue-3:var(--afb-primary-light);
	--afh-yellow:var(--afb-accent);
	background:linear-gradient(180deg,var(--afb-primary-mid) 0%,var(--afb-header-bg) 100%) !important;
}
.afb-assos-cards{ --afb-primary:var(--afb-saison-primary); --afb-primary-mid:var(--afb-saison-mid); }

/* ------------------------------------------------------------------ *
 * 6) Pages particulières                                              *
 * ------------------------------------------------------------------ */
.afr-step-link{ color:var(--afb-primary) !important; }                 /* Rejoindre */
.af-search-btn{ background:var(--afb-primary) !important; }            /* Recherche */
.afos-pastille{                                                        /* One Sèche */
	background:var(--afb-accent) !important;
	color:var(--afb-dark) !important;
	border-color:var(--afb-accent) !important;
}
.afg-folder-badge{                                                     /* Galeries  */
	background:var(--afb-accent) !important;
	color:var(--afb-dark) !important;
	border-color:var(--afb-accent) !important;
}
.afg-folder-cover-link,
.afg-folder-cover-img.afg-folder-cover-img{ background:var(--afb-header-bg) !important; }
.afb-card__cta{ background:var(--afb-primary) !important; }            /* Archives  */
.afac-dot,.afac-lvltxt{ color:var(--afb-primary) !important; }         /* Académie  */
.afh-btn--ghost,.afc-btn--ghost{
	color:var(--afb-primary) !important;
	border-color:var(--afb-primary) !important;
}
.entry-content .button,.wpcf7 .button,
.wpcf7-submit{ background:var(--afb-primary) !important; }             /* Contact   */

/* Tableaux insérés dans les articles */
.af-table th,
.af-table-col--center,
.af-table-col--small{
	background-image:linear-gradient(180deg,var(--afb-primary) 0%,var(--afb-header-bg) 100%) !important;
}

/* ------------------------------------------------------------------ *
 * 7) Ce qui reste volontairement inchangé                             *
 *                                                                     *
 * — les textes gris-bleu foncé (#10233f, #14233a, #061329) : ce sont   *
 *   des couleurs de lecture, pas des couleurs de marque ;             *
 * — les mots en gras colorés À L'INTÉRIEUR des articles : la couleur  *
 *   est dans le contenu, seul un !important très large les            *
 *   atteindrait, et il repeindrait aussi ce qu'on veut garder ;       *
 * — le bleu des badges « équipes », qui porte une information ;       *
 * — le bleu de la carte de France des départements ;                  *
 * — les logos, photos et visuels d'articles.                          *
 * ------------------------------------------------------------------ */
