/* ============================================================
   BOUTONS D'ARTICLES (inc/article-buttons.php)
   ------------------------------------------------------------
   « Suivez-nous » aux couleurs des marques, candidature aux
   couleurs du site. Sélecteurs en `a.afc-ab__btn`, chargés après main.css :
   ils doivent l'emporter sur le filet `a[style]` des
   boutons importés (les boutons sociaux portent un style inline
   pour leur couleur).
   ============================================================ */
.afc-ab {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 26px;
}
.afc-ab a.afc-ab__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  transition: filter .15s, transform .15s, border-color .15s, color .15s;
}
.afc-ab a.afc-ab__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.afc-ab a.afc-ab__btn:focus-visible { outline: 3px solid var(--afc-accent); outline-offset: 2px; }
.afc-ab .afc-ab__icon { flex: 0 0 20px; }

/* Couleur de marque passée par --afc-ab-bg (réglable dans le Customizer) */
.afc-ab--social a.afc-ab__btn {
  background: var(--afc-ab-bg, #333);
  color: #fff;
}

/* Candidature : bouton plein + bouton contour, comme .afc-btn-primary / -secondary */
.afc-ab--cta a.afc-ab__btn--postuler {
  background: var(--afc-accent-2);
  color: #fff;
  border: 2px solid var(--afc-accent-2);
}
.afc-ab--cta a.afc-ab__btn--site {
  background: var(--afc-surface, #fff);
  color: var(--afc-accent-2);
  border: 2px solid var(--afc-accent-2);
}
.afc-ab--cta a.afc-ab__btn--site:hover { filter: none; background: var(--afc-accent-soft); }
#page.theme-dark .afc-ab--cta a.afc-ab__btn--site { color: var(--afc-text); }

@media (max-width: 640px) {
  .afc-ab a.afc-ab__btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .afc-ab a.afc-ab__btn { transition: none; }
  .afc-ab a.afc-ab__btn:hover { transform: none; }
}
