/* =====================================================================
   ANTHÉLIE — Styles de boutons (Principal / Secondaire / Tertiaire)
   ---------------------------------------------------------------------
   Trois variations de marque pour le bouton Gutenberg natif `core/button`,
   branchées via la Block Styles API (classes `is-style-anth-*` posées sur
   `.wp-block-button`, cf. inc/buttons.php). Chargé sur le front
   (functions.php) ET dans le canvas de l'éditeur (inc/buttons.php).

   Les boutons GenerateBlocks ne sont PAS stylés ici : tous les blocs GB
   désactivent le support `className` (`"className": false`), donc la Block
   Styles API ne s'y applique pas. Le bouton GB v1 est masqué de l'inserteur
   par défaut (option `gb_use_v1_blocks` à false) ; le bouton GB v2 vit avec
   son style natif.

   Spécificité visée : 0,3,0 (.wp-block-button.is-style-X > .__link) pour
   primer sur les défauts d'Astra (0,2,0) et de theme.json (:where(), 0,0,0)
   sans recourir à !important.
   ===================================================================== */

/* ---------- Base commune aux trois variations ---------- */
.wp-block-button.is-style-anth-primary > .wp-block-button__link,
.wp-block-button.is-style-anth-secondary > .wp-block-button__link,
.wp-block-button.is-style-anth-tertiary > .wp-block-button__link {
  font-family: var(--anth-font-body);
  font-weight: var(--anth-weight-semibold);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

/* ---------- PRINCIPAL — aplat or lumineux, texte foncé (AA ~6,4:1) ---------- */
.wp-block-button.is-style-anth-primary > .wp-block-button__link {
  background-color: var(--anth-gold-500);
  color: var(--anth-sand-900);
  border: 1px solid transparent;
  border-radius: var(--anth-radius-pill);
}
.wp-block-button.is-style-anth-primary > .wp-block-button__link:where(:hover, :focus) {
  background-color: var(--anth-gold-700);
  color: var(--anth-sand-50);
}

/* ---------- SECONDAIRE — fond transparent, filet discret ---------- */
.wp-block-button.is-style-anth-secondary > .wp-block-button__link {
  background-color: transparent;
  color: var(--anth-sand-900);
  border: 1px solid var(--anth-border); /* sand-200 #CEC9C2 */
  border-radius: var(--anth-radius-pill);
}
.wp-block-button.is-style-anth-secondary > .wp-block-button__link:where(:hover, :focus) {
  background-color: var(--anth-gold-100);
  border-color: var(--anth-gold-300);
  color: var(--anth-sand-900);
}

/* ---------- TERTIAIRE — lien souligné, or-700 (AA 5,4:1), sans fond ---------- */
.wp-block-button.is-style-anth-tertiary > .wp-block-button__link {
  background-color: transparent;
  color: var(--anth-gold-700);
  border: none;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.wp-block-button.is-style-anth-tertiary > .wp-block-button__link:where(:hover, :focus) {
  background-color: transparent;
  color: var(--anth-gold-800);
  text-decoration-thickness: 2px;
}
