/* ==========================================================================
   Gadgets de Cuisine : base de la refonte (socle, session 19)
   Typographie, couleurs de texte, liens et boutons. Tout est sous body.gc-socle :
   sans le socle, cette feuille n'est pas chargée et rien ne change.
   ========================================================================== */

body.gc-socle {
  font-family: var(--gc-font-texte);
  color: var(--gc-texte);
  -webkit-font-smoothing: antialiased;
}

/* Texte courant et éléments de Flatsome qui reprennent la police du corps */
body.gc-socle,
body.gc-socle p,
body.gc-socle li,
body.gc-socle .nav > li > a,
body.gc-socle .nav-dropdown,
body.gc-socle .product-title,
body.gc-socle .price,
body.gc-socle .button,
body.gc-socle input,
body.gc-socle select,
body.gc-socle textarea,
body.gc-socle .accordion-title {
  font-family: var(--gc-font-texte);
}

/* Titres : Fraunces 600, sans majuscules forcées */
body.gc-socle h1,
body.gc-socle h2,
body.gc-socle h3,
body.gc-socle .heading-font,
body.gc-socle .section-title {
  font-family: var(--gc-font-titre);
  font-weight: 600;
  color: var(--gc-encre);
  line-height: var(--gc-lh-titre);
  letter-spacing: 0;
}
body.gc-socle h1 { font-size: var(--gc-fs-h1); }
body.gc-socle .col-inner > h2,
body.gc-socle .term-description h2 { font-size: var(--gc-fs-h2); }
body.gc-socle .col-inner > h3 { font-size: var(--gc-fs-h3); }

/* Les titres des cartes produit restent en Lato (la carte change à la bascule 3) */
body.gc-socle .product-small h3,
body.gc-socle .product-small .product-title,
body.gc-socle .box-text h3 {
  font-family: var(--gc-font-texte);
  font-weight: 700;
  letter-spacing: 0;
}

/* Liens dans les textes du contenu (pas l'en-tête, les menus, la pagination ni le pied) : brun café souligné */
body.gc-socle #main :where(p, td) > a:not(.button),
body.gc-socle #main :where(.col-inner, .entry-content, .term-description) :where(ul, ol):not(.nav):not(.page-numbers) > li > a:not(.button) {
  color: var(--gc-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.gc-socle #main :where(p, td) > a:not(.button):hover,
body.gc-socle #main :where(.col-inner, .entry-content, .term-description) :where(ul, ol):not(.nav):not(.page-numbers) > li > a:not(.button):hover {
  color: var(--gc-encre);
}

/* Boutons d'achat : seul usage du rouge avec le logo */
body.gc-socle .button.alt,
body.gc-socle .single_add_to_cart_button,
body.gc-socle .checkout-button,
body.gc-socle #place_order,
body.gc-socle .button.checkout {
  background-color: var(--gc-rouge);
  border-color: var(--gc-rouge);
  color: #fff;
  border-radius: var(--gc-radius);
  font-weight: 700;
  letter-spacing: 0.02em;
}
body.gc-socle .button.alt:hover,
body.gc-socle .single_add_to_cart_button:hover,
body.gc-socle .checkout-button:hover,
body.gc-socle #place_order:hover,
body.gc-socle .button.checkout:hover {
  background-color: var(--gc-rouge-fonce);
  border-color: var(--gc-rouge-fonce);
  box-shadow: none;
}

/* Boutons principaux de Flatsome : brun café (couleur primaire actuelle), coins arrondis de la refonte */
body.gc-socle .button.primary:not(.is-outline) {
  background-color: var(--gc-accent);
  border-color: var(--gc-accent);
  border-radius: var(--gc-radius);
}
body.gc-socle .button.is-outline {
  color: var(--gc-accent);
  border-color: var(--gc-accent);
  border-radius: var(--gc-radius);
}

/* Focus visible au clavier */
body.gc-socle :where(a, button, select, summary, input, textarea):focus-visible {
  outline: 2px solid var(--gc-accent);
  outline-offset: 3px;
}

/* Utilitaire : texte réservé aux lecteurs d'écran */
.gc-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Session 25 : H1 de la page Panier (inc/normes.php) */
body.gc-socle .gc-panier-titre {
  margin: 0 0 20px;
  font-family: var(--gc-font-titre);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: var(--gc-lh-titre);
  color: var(--gc-encre);
}
