/**
 * Viandes des Prés — base typographique
 *
 * Phase Design System uniquement.
 *
 * INTERDIT dans ce fichier (risques métier) :
 * - ne pas toucher au layout du header Elementor #15718
 * - ne pas styler #place_order (Systempay / paiement)
 * - ne pas déplacer ni reparenter #vdp_delivery_date (Chronofresh)
 * - ne pas cibler de template produit Elementor
 * - ne pas toucher dataLayer / thankyou
 *
 * Pas de min-height globale sur button (casserait burger / recherche / panier).
 */

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--vdp-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--vdp-text);
  background: var(--vdp-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Titres éditoriaux — pas le chrome du header */
h1,
h2,
h3,
.entry-title,
.woocommerce div.product .product_title,
.woocommerce-products-header__title {
  font-family: var(--vdp-font-display);
  font-weight: 600;
  color: var(--vdp-black);
  letter-spacing: -0.01em;
}

h4,
h5,
h6 {
  font-family: var(--vdp-font);
  font-weight: 600;
  color: var(--vdp-black);
}

p,
li,
label,
.woocommerce,
.woocommerce button,
.woocommerce a.button,
.woocommerce input,
.woocommerce select,
.price,
.amount {
  font-family: var(--vdp-font);
}

/* Header #15718 : UI Inter, jamais serif géant — structure inchangée */
body.vdp-header-harmony .elementor-15718,
body.vdp-header-harmony .elementor-15718 .elementor-heading-title,
body.vdp-header-harmony .elementor-15718 .elementor-nav-menu a,
body.vdp-header-harmony .elementor-15718 .elementor-button-text,
body.vdp-header-harmony .elementor-15718 .vdp-top-bar__item,
body.vdp-header-harmony .elementor-15718 .dgwt-wcas-search-input {
  font-family: var(--vdp-font);
}

.vdp-container {
  width: min(var(--vdp-container), calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 600px) {
  .vdp-container {
    width: calc(100% - 24px);
  }
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--vdp-red);
  outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--vdp-red);
  box-shadow: 0 0 0 3px rgba(163, 14, 22, 0.08);
}

/* Icônes : ne jamais écraser Font Awesome (header / footer) */
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
[class^="fa-"],
[class*=" fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}
