/*
 * Design System Breizh Box (brzbox-ps8) — Règles globales
 * Les valeurs sont définies dans variables.css (source : Figma Design System)
 *
 * Nommage des classes :
 *   ds-btn-primary / ds-btn-secondary → boutons (HTML libre + CE)
 *   ds-h1-s / ds-h1-m / ds-h1-l → typo titre : profil H1 + échelle S/M/L (défaut M)
 *   ds-p-chapo-s, ds-p-s, ds-p-discover-s, ds-price-s, ds-li-s → idem paragraphes / listes
 *   btn btn-primary / btn btn-secondary → PrestaShop natif uniquement
 *
 * Creative Elements : classe ds-btn-primary sur div.elementor-element (pas sur le lien).
 * Préfixe ds- obligatoire pour éviter les conflits avec theme.css (Classic).
 *
 * Structure du fichier :
 *   0. Reset focus / outline — site entier
 *   1. Typographie (échelle L / M / S — défaut : M, voir variables.css)
 *   2. Bouton principal — PS natif + ds-btn-primary (HTML libre + CE)
 *   3. Bouton principal — caret (flèche)
 *   4. Bouton secondaire — PS natif + ds-btn-secondary (HTML libre + CE)
 *   5. Bouton secondaire — caret (flèche)
 *   6. Bouton ajout au panier — PS natif + ds-btn-add-to-cart (HTML libre + CE)
 *   7. Bouton ajout au panier — icône panier (btn-cart.svg)
 */

body {
  font-family: var(--font-body);
}

/* =============================================================================
   0. RESET FOCUS / OUTLINE — site entier
   Supprime l'encadré natif au clic et au focus, sans toucher aux styles hover.
   ============================================================================= */

a,
button,
input,
select,
textarea,
summary,
label,
[tabindex]:not([tabindex="-1"]),
[role="button"],
[role="link"],
[role="tab"],
.btn,
.form-control,
.form-select,
.custom-select,
.page-link,
.nav-link,
.dropdown-item,
.ets_mm_megamenu a,
.elementor-button,
.elementor-button-link {
  -webkit-tap-highlight-color: transparent;
}

a:focus,
a:focus-visible,
a:active,
button:focus,
button:focus-visible,
button:active,
input:focus,
input:focus-visible,
input:active,
select:focus,
select:focus-visible,
select:active,
textarea:focus,
textarea:focus-visible,
textarea:active,
summary:focus,
summary:focus-visible,
summary:active,
[tabindex]:not([tabindex="-1"]):focus,
[tabindex]:not([tabindex="-1"]):focus-visible,
[tabindex]:not([tabindex="-1"]):active,
[role="button"]:focus,
[role="button"]:focus-visible,
[role="button"]:active,
[role="link"]:focus,
[role="link"]:focus-visible,
[role="link"]:active,
[role="tab"]:focus,
[role="tab"]:focus-visible,
[role="tab"]:active,
.btn:focus,
.btn:focus-visible,
.btn:active,
.form-control:focus,
.form-control:focus-visible,
.form-select:focus,
.form-select:focus-visible,
.page-link:focus,
.page-link:focus-visible,
.page-link:active,
.nav-link:focus,
.nav-link:focus-visible,
.nav-link:active,
.dropdown-item:focus,
.dropdown-item:focus-visible,
.dropdown-item:active,
.elementor-button:focus,
.elementor-button:focus-visible,
.elementor-button-link:focus,
.elementor-button-link:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

/* Fallback navigateur : sans outline, certains liens reçoivent une bordure noire au focus/hover */
a:focus:not(.btn):not(.elementor-button):not(.elementor-button-link),
a:focus-visible:not(.btn):not(.elementor-button):not(.elementor-button-link) {
  border: none !important;
}

.elementor-element:focus,
.elementor-element:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Bootstrap Classic (theme.css) — flash border-color #ddd au focus clic sur onglets */
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:focus-visible,
.nav-tabs .nav-link:active,
.nav-tabs .nav-item.open .nav-link:focus,
.nav-tabs .nav-item.show .nav-link:focus,
.nav-tabs .nav-item.open .nav-link:focus-visible,
.nav-tabs .nav-item.show .nav-link:focus-visible {
  border-color: transparent !important;
}

.nav-tabs .nav-link:focus:not(.active),
.nav-tabs .nav-link:focus-visible:not(.active),
.nav-tabs .nav-link:active:not(.active) {
  border: 0 solid transparent !important;
  background-color: transparent !important;
}

/* Fiche produit — onglets product_tabs (override Bootstrap Classic theme.css) */
#product .tabs.product_tabs .nav-tabs {
  border-bottom: 1px solid #f0f0f0 !important;
}

#product .tabs.product_tabs .nav-tabs .nav-item {
  margin-bottom: 0 !important;
}

/* État inactif — border-bottom transparent pour éviter le flash au clic */
#product .tabs.product_tabs .nav-tabs .nav-link:not(.active),
#product .tabs.product_tabs .nav-tabs .nav-link:not(.active):hover,
#product .tabs.product_tabs .nav-tabs .nav-link:not(.active):focus,
#product .tabs.product_tabs .nav-tabs .nav-link:not(.active):focus-visible,
#product .tabs.product_tabs .nav-tabs .nav-link:not(.active):active {
  border: none !important;
  border-bottom: 1px solid transparent !important;
  color: #7a7a7a !important;
  background-color: transparent !important;
}

#product .tabs.product_tabs .nav-tabs .nav-link:not(.active)::before,
#product .tabs.product_tabs .nav-tabs .nav-link:not(.active):hover::before,
#product .tabs.product_tabs .nav-tabs .nav-link:not(.active):focus::before,
#product .tabs.product_tabs .nav-tabs .nav-link:not(.active):focus-visible::before,
#product .tabs.product_tabs .nav-tabs .nav-link:not(.active):active::before {
  display: none !important;
  content: none !important;
}

/* État actif — tous pseudo-états identiques (hover, focus, active clic) */
#product .tabs.product_tabs .nav-tabs .nav-link.active,
#product .tabs.product_tabs .nav-tabs .nav-link.active:hover,
#product .tabs.product_tabs .nav-tabs .nav-link.active:focus,
#product .tabs.product_tabs .nav-tabs .nav-link.active:focus-visible,
#product .tabs.product_tabs .nav-tabs .nav-link.active:active {
  position: relative !important;
  border: none !important;
  border-bottom: 1px solid #f0f0f0 !important;
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

#product .tabs.product_tabs .nav-tabs .nav-link.active::before,
#product .tabs.product_tabs .nav-tabs .nav-link.active:hover::before,
#product .tabs.product_tabs .nav-tabs .nav-link.active:focus::before,
#product .tabs.product_tabs .nav-tabs .nav-link.active:focus-visible::before,
#product .tabs.product_tabs .nav-tabs .nav-link.active:active::before {
  content: "" !important;
  display: block !important;
  height: 3px;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
}

button::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* =============================================================================
   1. TYPOGRAPHIE
   Classes utilitaires legacy : p.strong, p.discover, p.primary
   Classes utilitaires échelle : ds-h1-s … ds-h6-l, ds-p-chapo-s … (profil dans blocs de base, taille en modificateurs)

   Creative Elements (frontend.css) force inherit sur les <p> dans ses conteneurs
   (.elementor-text-editor p, etc.) — spécificité 0,1,1 + !important.
   Préfixe .elementor-widget / body pour passer à 0,2,1 et l'emporter.
   ============================================================================= */

/* --- Titres · H1 --- */
h1,
.h1,
.ds-h1-s,
.ds-h1-m,
.ds-h1-l,
.elementor-element.ds-h1-s,
.elementor-element.ds-h1-s .elementor-heading-title,
.elementor-element.ds-h1-m,
.elementor-element.ds-h1-m .elementor-heading-title,
.elementor-element.ds-h1-l,
.elementor-element.ds-h1-l .elementor-heading-title,
#ybc_blog_page h1.page-heading,
#ybc_blog_page h1.page-heading .title_cat,
#ybc_blog_page .ybc-blog-wrapper .page-heading,
#ybc_blog_page .ybc-blog-wrapper-content .page-heading {
  color: var(--primary-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--h1-m) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: var(--h1-line-height-m) !important;
  text-transform: uppercase !important;
}

/* --- Titres · H2 --- */
h2,
.h2,
.ds-h2-s,
.ds-h2-m,
.ds-h2-l,
.elementor-element.ds-h2-s,
.elementor-element.ds-h2-s .elementor-heading-title,
.elementor-element.ds-h2-m,
.elementor-element.ds-h2-m .elementor-heading-title,
.elementor-element.ds-h2-l,
.elementor-element.ds-h2-l .elementor-heading-title,
#ybc_blog_page .blog_description h2,
#ybc_blog_page .blog_description h2.ybc_heading,
#ybc_blog_page .post-details h2.ybc_heading {
  color: var(--primary-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--h2-m) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: var(--h2-line-height-m) !important;
}

/* --- Titres · H3 --- */
h3,
.h3,
.ds-h3-s,
.ds-h3-m,
.ds-h3-l,
.elementor-element.ds-h3-s,
.elementor-element.ds-h3-s .elementor-heading-title,
.elementor-element.ds-h3-m,
.elementor-element.ds-h3-m .elementor-heading-title,
.elementor-element.ds-h3-l,
.elementor-element.ds-h3-l .elementor-heading-title,
#ybc_blog_page .blog_description h3,
#ybc_blog_page .blog_description h3.ybc_heading,
#ybc_blog_page .post-details h3.ybc_heading {
  color: var(--text-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--h3-m) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: normal !important;
  text-transform: none !important; /* demande cliente 01/12 : plus de majuscules sur le H3 */
}

/* --- Titres · H4 --- */
h4,
.h4,
.ds-h4-s,
.ds-h4-m,
.ds-h4-l,
.elementor-element.ds-h4-s,
.elementor-element.ds-h4-s .elementor-heading-title,
.elementor-element.ds-h4-m,
.elementor-element.ds-h4-m .elementor-heading-title,
.elementor-element.ds-h4-l,
.elementor-element.ds-h4-l .elementor-heading-title,
#ybc_blog_page .blog_description h4,
#ybc_blog_page .blog_description h4.ybc_heading,
#ybc_blog_page .post-details h4.ybc_heading,
#ybc_blog_page .title_blog {
  color: var(--primary-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--h4-m) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: normal !important;
}

/* --- Titres · H5 --- */
h5,
.h5,
.ds-h5-s,
.ds-h5-m,
.ds-h5-l,
.elementor-element.ds-h5-s,
.elementor-element.ds-h5-s .elementor-heading-title,
.elementor-element.ds-h5-m,
.elementor-element.ds-h5-m .elementor-heading-title,
.elementor-element.ds-h5-l,
.elementor-element.ds-h5-l .elementor-heading-title,
#ybc_blog_page .blog_description h5,
#ybc_blog_page .blog_description h5.ybc_heading,
#ybc_blog_page .post-details h5.ybc_heading {
  color: var(--primary-color) !important; /* demande cliente 01/12 : H5 en primary-color (était secondary-color) */
  font-family: var(--main-font) !important;
  font-size: var(--h5-m) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: normal !important;
}

/* --- Titres · H6 --- */
h6,
.h6,
.ds-h6-s,
.ds-h6-m,
.ds-h6-l,
.elementor-element.ds-h6-s,
.elementor-element.ds-h6-s .elementor-heading-title,
.elementor-element.ds-h6-m,
.elementor-element.ds-h6-m .elementor-heading-title,
.elementor-element.ds-h6-l,
.elementor-element.ds-h6-l .elementor-heading-title,
#ybc_blog_page .blog_description h6,
#ybc_blog_page .blog_description h6.ybc_heading,
#ybc_blog_page .post-details h6.ybc_heading {
  color: var(--secondary-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--h6-m) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: normal !important;
}

/* --- Paragraphe · chapo --- */
p.strong,
p.ds-p-chapo-s,
p.ds-p-chapo-m,
p.ds-p-chapo-l,
.elementor-element.ds-p-chapo-s .elementor-text-editor,
.elementor-element.ds-p-chapo-s .elementor-text-editor p,
.elementor-element.ds-p-chapo-m .elementor-text-editor,
.elementor-element.ds-p-chapo-m .elementor-text-editor p,
.elementor-element.ds-p-chapo-l .elementor-text-editor,
.elementor-element.ds-p-chapo-l .elementor-text-editor p,
.elementor-widget .elementor-text-editor p.strong,
.elementor-widget .elementor-tab-content p.strong,
.elementor-widget .elementor-toggle-content p.strong,
.elementor-widget .elementor-accordion-content p.strong,
.elementor-widget .elementor-image-hotspot-description p.strong,
body .ce-product-description>p.strong,
body .ce-product-description-short>p.strong,
#ybc_blog_page .blog_description p.strong,
#ybc_blog_page .blog-category .blog-category-desc p.strong {
  color: var(--text-color) !important;
  /* text-align: justify !important; */
  font-family: var(--main-font) !important;
  font-size: var(--p-chapo-m) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: normal !important;
}

/* --- Paragraphe · standard --- */
p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]),
.elementor-element.ds-p-s .elementor-text-editor,
.elementor-element.ds-p-s .elementor-text-editor p,
.elementor-element.ds-p-m .elementor-text-editor,
.elementor-element.ds-p-m .elementor-text-editor p,
.elementor-element.ds-p-l .elementor-text-editor,
.elementor-element.ds-p-l .elementor-text-editor p,
p.ds-p-s,
p.ds-p-m,
p.ds-p-l,
.elementor-widget .elementor-text-editor p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]),
.elementor-widget .elementor-tab-content p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]),
.elementor-widget .elementor-toggle-content p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]),
.elementor-widget .elementor-accordion-content p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]),
.elementor-widget .elementor-image-hotspot-description p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]),
body .ce-product-description>p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]),
body .ce-product-description-short>p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]),
#ybc_blog_page .blog_description p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]),
#ybc_blog_page .blog-category .blog-category-desc p:not(.strong):not(.discover):not(.primary):not([class*="ds-p-"]):not(.h1):not(.h2):not(.h3):not(.h4):not(.h5):not(.h6):not([class*="ds-h"]):not(.price):not([class*="ds-price"]) {
  color: var(--text-color) !important;
  font-family: var(--font-body) !important;
  font-size: var(--p-m) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: normal !important;
}

/* --- Paragraphe · découvrir --- */
p.discover,
p.ds-p-discover-s,
p.ds-p-discover-m,
p.ds-p-discover-l,
.elementor-element.ds-p-discover-s .elementor-text-editor,
.elementor-element.ds-p-discover-s .elementor-text-editor p,
.elementor-element.ds-p-discover-m .elementor-text-editor,
.elementor-element.ds-p-discover-m .elementor-text-editor p,
.elementor-element.ds-p-discover-l .elementor-text-editor,
.elementor-element.ds-p-discover-l .elementor-text-editor p,
.elementor-widget .elementor-text-editor p.discover,
.elementor-widget .elementor-tab-content p.discover,
.elementor-widget .elementor-toggle-content p.discover,
.elementor-widget .elementor-accordion-content p.discover,
.elementor-widget .elementor-image-hotspot-description p.discover,
body .ce-product-description>p.discover,
body .ce-product-description-short>p.discover,
#ybc_blog_page .blog_description p.discover,
#ybc_blog_page .blog-category .blog-category-desc p.discover {
  color: var(--text-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--p-discover-m) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: normal !important;
}

/* --- Paragraphe · primary --- */
p.primary,
.elementor-widget .elementor-text-editor p.primary,
.elementor-widget .elementor-tab-content p.primary,
.elementor-widget .elementor-toggle-content p.primary,
.elementor-widget .elementor-accordion-content p.primary,
.elementor-widget .elementor-image-hotspot-description p.primary,
body .ce-product-description>p.primary,
body .ce-product-description-short>p.primary,
#ybc_blog_page .blog_description p.primary,
#ybc_blog_page .blog-category .blog-category-desc p.primary {
  color: var(--primary-color) !important;
}

/* --- Prix --- */
a.price,
p.price,
span.price,
.price,
.ds-price-s,
.ds-price-m,
.ds-price-l,
.elementor-element.ds-price-s .elementor-text-editor,
.elementor-element.ds-price-m .elementor-text-editor,
.elementor-element.ds-price-l .elementor-text-editor {
  color: var(--text-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--price-m) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: normal !important;
}

/* --- Modificateurs échelle typo (S / M / L) ---
   Surcharge font-size / line-height uniquement.
   Profil de niveau = blocs de base ci-dessus (défaut M si pas de modificateur -s/-l).
   Sélecteurs #ybc_blog_page .blog_description .ds-* (spécificité 1,2,0) : nécessaires pour
   l'emporter sur les règles de base du blog (#ybc_blog_page .blog_description h2 = 1,1,1).
   Sélecteurs p.ds-p-* : nécessaires pour l'emporter sur la règle de base p.ds-p-* (0,1,1). */

.ds-h1-s,
#ybc_blog_page .blog_description .ds-h1-s,
.elementor-element.ds-h1-s .elementor-heading-title {
  font-size: var(--h1-s) !important;
  line-height: var(--h1-line-height-s) !important;
}

.ds-h1-l,
#ybc_blog_page .blog_description .ds-h1-l,
.elementor-element.ds-h1-l .elementor-heading-title {
  font-size: var(--h1-l) !important;
  line-height: var(--h1-line-height-l) !important;
}

.ds-h2-s,
#ybc_blog_page .blog_description .ds-h2-s,
.elementor-element.ds-h2-s .elementor-heading-title {
  font-size: var(--h2-s) !important;
  line-height: var(--h2-line-height-s) !important;
}

.ds-h2-l,
#ybc_blog_page .blog_description .ds-h2-l,
.elementor-element.ds-h2-l .elementor-heading-title {
  font-size: var(--h2-l) !important;
  line-height: var(--h2-line-height-l) !important;
}

/* H3–H6 · échelle S — font-weight 500 */
.ds-h3-s,
#ybc_blog_page .blog_description .ds-h3-s,
.elementor-element.ds-h3-s .elementor-heading-title,
.ds-h4-s,
#ybc_blog_page .blog_description .ds-h4-s,
.elementor-element.ds-h4-s .elementor-heading-title,
.ds-h5-s,
#ybc_blog_page .blog_description .ds-h5-s,
.elementor-element.ds-h5-s .elementor-heading-title,
.ds-h6-s,
#ybc_blog_page .blog_description .ds-h6-s,
.elementor-element.ds-h6-s .elementor-heading-title {
  font-weight: 500 !important;
}

.ds-h3-s,
#ybc_blog_page .blog_description .ds-h3-s,
.elementor-element.ds-h3-s .elementor-heading-title {
  font-size: var(--h3-s) !important;
}

.ds-h3-l,
#ybc_blog_page .blog_description .ds-h3-l,
.elementor-element.ds-h3-l .elementor-heading-title {
  font-size: var(--h3-l) !important;
}

.ds-h4-s,
#ybc_blog_page .blog_description .ds-h4-s,
.elementor-element.ds-h4-s .elementor-heading-title {
  font-size: var(--h4-s) !important;
}

.ds-h4-l,
#ybc_blog_page .blog_description .ds-h4-l,
.elementor-element.ds-h4-l .elementor-heading-title {
  font-size: var(--h4-l) !important;
}

.ds-h5-s,
#ybc_blog_page .blog_description .ds-h5-s,
.elementor-element.ds-h5-s .elementor-heading-title {
  font-size: var(--h5-s) !important;
}

.ds-h5-l,
#ybc_blog_page .blog_description .ds-h5-l,
.elementor-element.ds-h5-l .elementor-heading-title {
  font-size: var(--h5-l) !important;
}

.ds-h6-s,
#ybc_blog_page .blog_description .ds-h6-s,
.elementor-element.ds-h6-s .elementor-heading-title {
  font-size: var(--h6-s) !important;
}

.ds-h6-l,
#ybc_blog_page .blog_description .ds-h6-l,
.elementor-element.ds-h6-l .elementor-heading-title {
  font-size: var(--h6-l) !important;
}

.ds-p-chapo-s,
p.ds-p-chapo-s,
.elementor-element.ds-p-chapo-s .elementor-text-editor,
.elementor-element.ds-p-chapo-s .elementor-text-editor p {
  font-size: var(--p-chapo-s) !important;
}

.ds-p-chapo-l,
p.ds-p-chapo-l,
.elementor-element.ds-p-chapo-l .elementor-text-editor,
.elementor-element.ds-p-chapo-l .elementor-text-editor p {
  font-size: var(--p-chapo-l) !important;
}

.ds-p-s,
p.ds-p-s,
.elementor-element.ds-p-s .elementor-text-editor,
.elementor-element.ds-p-s .elementor-text-editor p {
  font-size: var(--p-s) !important;
}

.ds-p-l,
p.ds-p-l,
.elementor-element.ds-p-l .elementor-text-editor,
.elementor-element.ds-p-l .elementor-text-editor p {
  font-size: var(--p-l) !important;
}

.ds-p-discover-s,
p.ds-p-discover-s,
.elementor-element.ds-p-discover-s .elementor-text-editor,
.elementor-element.ds-p-discover-s .elementor-text-editor p {
  font-size: var(--p-discover-s) !important;
}

.ds-p-discover-l,
p.ds-p-discover-l,
.elementor-element.ds-p-discover-l .elementor-text-editor,
.elementor-element.ds-p-discover-l .elementor-text-editor p {
  font-size: var(--p-discover-l) !important;
}

.ds-price-s,
.elementor-element.ds-price-s .elementor-text-editor {
  font-size: var(--price-s) !important;
}

.ds-price-l,
.elementor-element.ds-price-l .elementor-text-editor {
  font-size: var(--price-l) !important;
}

/* Listes : classe sur le <li> ou sur le <ul> (cas de l'éditeur de texte). */
.ds-li-s,
li.ds-li-s,
ul.ds-li-s > li {
  font-size: var(--li-s) !important;
}

.ds-li-l,
li.ds-li-l,
ul.ds-li-l > li {
  font-size: var(--li-l) !important;
}

.elementor-element.ds-li-s .elementor-text-editor ul > li {
  font-size: var(--li-s) !important;
}

.elementor-element.ds-li-l .elementor-text-editor ul > li {
  font-size: var(--li-l) !important;
}

/* --- Liste à puces ---
   Scopé aux zones de contenu uniquement — pas de ul > li global (conflit megamenu ETS). */
.elementor-widget .elementor-text-editor ul > li,
.elementor-widget-html ul > li,
.elementor-widget .elementor-tab-content ul > li,
.elementor-widget .elementor-toggle-content ul > li,
.elementor-widget .elementor-accordion-content ul > li,
.elementor-widget .elementor-image-hotspot-description ul > li,
#footer-top .links ul > li,
.block-category .block-category-inner #category-description ul > li,
#product .product-description ul > li,
#product .tabs ul > li,
.page-content ul > li,
#ybc_blog_page .blog_description ul > li,
#ybc_blog_page .blog-category .blog-category-desc ul > li,
li.ds-li-s,
li.ds-li-m,
li.ds-li-l {
  color: var(--text-color);
  font-family: var(--font-body) !important;
  position: relative;
  font-size: var(--li-m);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  list-style-type: none;
}

.elementor-widget .elementor-text-editor ul > li::before,
.elementor-widget-html ul > li::before,
.elementor-widget .elementor-tab-content ul > li::before,
.elementor-widget .elementor-toggle-content ul > li::before,
.elementor-widget .elementor-accordion-content ul > li::before,
.elementor-widget .elementor-image-hotspot-description ul > li::before,
#footer-top .links ul > li::before,
.block-category .block-category-inner #category-description ul > li::before,
#product .product-description ul > li::before,
#product .tabs ul > li::before,
.page-content ul > li::before,
#ybc_blog_page .blog_description ul > li::before,
#ybc_blog_page .blog-category .blog-category-desc ul > li::before {
  content: "";
  position: relative;
  display: inline-block;
  height: 8px;
  width: 8px;
  margin-right: 10px;
  background: var(--primary-color);
}

/* --- Blog (ybc_blog) --- */
#ybc_blog_page .blog_description ul,
#ybc_blog_page .blog-category .blog-category-desc ul {
  list-style: none !important;
  padding-left: 0 !important;
}

#ybc_blog_page .blog_description a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.ds-btn-primary):not(.ds-btn-secondary):not(.ds-btn-add-to-cart),
#ybc_blog_page .blog-category .blog-category-desc a,
#ybc_blog_page a.read_more,
#ybc_blog_page span.be-label a {
  color: var(--primary-color) !important;
  border-bottom: 1px solid var(--primary-color);
  text-decoration: none !important;
  transition: color 0.3s ease, border-color 0.3s ease;
}

#ybc_blog_page .blog_description a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.ds-btn-primary):not(.ds-btn-secondary):not(.ds-btn-add-to-cart):hover,
#ybc_blog_page .blog-category .blog-category-desc a:hover,
#ybc_blog_page a.read_more:hover,
#ybc_blog_page span.be-label a:hover {
  color: var(--text-color) !important;
  border-bottom-color: transparent;
}

#ybc_blog_page span.be-label {
  color: var(--text-color);
}

#ybc_blog_page .blog_description strong,
#ybc_blog_page .blog-category .blog-category-desc p strong {
  color: var(--text-color);
  font-weight: 700;
}

#ybc_blog_page .ybc_indexing_box {
  border-color: var(--net-color) !important;
}

#ybc_blog_page .ybc_indexing_box_title,
#ybc_blog_page .table_content .table-title {
  color: var(--secondary-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--h4-m) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border-bottom-color: var(--net-color) !important;
}

#ybc_blog_page .table_content {
  border-color: var(--net-color);
}

#ybc_blog_page .ybc_indexing_content_post .ybc_indexing a,
#ybc_blog_page .table_content .ybc_indexing a {
  color: var(--secondary-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--p-m) !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

#ybc_blog_page .ybc_indexing_content_post .ybc_indexing a:hover,
#ybc_blog_page .table_content .ybc_indexing a:hover {
  color: var(--primary-color) !important;
}

#ybc_blog_page .ybc-navigation-blog-content .title_block {
  color: var(--secondary-color) !important;
  font-family: var(--main-font) !important;
  font-size: var(--h4-m) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

#ybc_blog_page .ybc_blog_sidebar .blog_view_all_button a.blog_view_all,
#ybc_blog_page .ybc_blog_sidebar .blog_view_all_button a.view_all_link {
  background-color: var(--primary-color) !important;
  color: var(--primary-background-color) !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: 22px !important;
  padding: 13px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--main-font) !important;
  font-size: var(--p-discover-m) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#ybc_blog_page .ybc_blog_sidebar .blog_view_all_button a.blog_view_all:hover,
#ybc_blog_page .ybc_blog_sidebar .blog_view_all_button a.view_all_link:hover {
  background-color: var(--primary-background-color) !important;
  color: var(--text-color) !important;
  border-color: var(--primary-color) !important;
}

/* =============================================================================
   2. BOUTON PRINCIPAL — PS NATIF + ds-btn-primary
   Cibles :
   - PrestaShop natif : .btn.btn-primary, button.btn-primary, input.btn-primary
   - HTML libre : <a class="ds-btn-primary">, <button class="ds-btn-primary">
   - Creative Elements : classe ds-btn-primary sur div.elementor-element
   ============================================================================= */

/* --- Principal · état base --- */
.btn.btn-primary:not(.add-to-cart),
button.btn-primary:not(.add-to-cart),
input.btn-primary,
a.ds-btn-primary,
button.ds-btn-primary,
.elementor-element.ds-btn-primary .elementor-button,
.elementor-element.ds-btn-primary .elementor-button-link {
  background-color: var(--primary-color) !important;
  color: var(--primary-background-color) !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: var(--btn-border-radius) !important;
  padding: 13px 11px 13px 14px !important;
  display: inline-flex !important;
  gap: 14px !important;
  justify-content: center !important;
  align-items: center !important;
  font-family: var(--main-font) !important;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-decoration: none !important;
  text-transform: initial;
}

/* --- Principal · état hover --- */
.btn.btn-primary:not(.add-to-cart):hover,
button.btn-primary:not(.add-to-cart):hover,
input.btn-primary:hover,
a.ds-btn-primary:hover,
button.ds-btn-primary:hover,
.elementor-element.ds-btn-primary .elementor-button:hover,
.elementor-element.ds-btn-primary .elementor-button-link:hover {
  background-color: var(--primary-background-color) !important;
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

/* --- Principal · état clic (:active) --- */
.btn.btn-primary:not(.add-to-cart):active,
button.btn-primary:not(.add-to-cart):active,
input.btn-primary:active,
a.ds-btn-primary:active,
button.ds-btn-primary:active,
.elementor-element.ds-btn-primary .elementor-button:active,
.elementor-element.ds-btn-primary .elementor-button-link:active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

/* =============================================================================
   3. BOUTON PRINCIPAL — CARET (flèche CaretRight.svg)
   Cible : PS natif + ds-btn-primary (HTML libre + Creative Elements)
   Couleurs pilotées par --btn-primary-caret-color / -hover dans variables.css
   ============================================================================= */

/* Caret (CaretRight.svg) : à brancher quand l’asset sera ajouté au thème */

/* =============================================================================
   4. BOUTON SECONDAIRE — PS NATIF + ds-btn-secondary
   Cibles :
   - PrestaShop natif : .btn.btn-secondary, button.btn-secondary, input.btn-secondary
   - HTML libre : <a class="ds-btn-secondary">, <button class="ds-btn-secondary">
   - Creative Elements : classe ds-btn-secondary sur div.elementor-element
   ============================================================================= */

/* --- Secondaire · état base --- */
.btn.btn-secondary,
button.btn-secondary,
input.btn-secondary,
a.ds-btn-secondary,
button.ds-btn-secondary,
.elementor-element.ds-btn-secondary .elementor-button,
.elementor-element.ds-btn-secondary .elementor-button-link {
  background-color: var(--primary-background-color) !important;
  color: var(--text-color) !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: var(--btn-border-radius) !important;
  padding: 13px 11px 13px 14px !important;
  display: inline-flex !important;
  gap: 14px !important;
  justify-content: center !important;
  align-items: center !important;
  font-family: var(--main-font) !important;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-decoration: none !important;
  text-transform: initial;
}

/* --- Secondaire · état hover --- */
.btn.btn-secondary:hover,
button.btn-secondary:hover,
input.btn-secondary:hover,
a.ds-btn-secondary:hover,
button.ds-btn-secondary:hover,
.elementor-element.ds-btn-secondary .elementor-button:hover,
.elementor-element.ds-btn-secondary .elementor-button-link:hover {
  background-color: var(--primary-color) !important;
  color: var(--primary-background-color) !important;
  text-decoration: none !important;
}

/* --- Secondaire · état clic (:active) --- */
.btn.btn-secondary:active,
button.btn-secondary:active,
input.btn-secondary:active,
a.ds-btn-secondary:active,
button.ds-btn-secondary:active,
.elementor-element.ds-btn-secondary .elementor-button:active,
.elementor-element.ds-btn-secondary .elementor-button-link:active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #fff !important;
}

/* .btn-default reste transparent au repos. Le thème le passe en jaune au survol. */
.btn-default.focus,
.btn-default:focus,
.btn-default:hover {
  color: var(--primary-background-color)!important;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-default.focus *,
.btn-default:focus *,
.btn-default:hover * {
  color: #fff !important;
}

body .read_more:hover:after {
  background: #fff;
}

body .post-wrapper:hover .read_more:after {
  background: #fff;
  color: var(--primary-color);
}

/* =============================================================================
   5. BOUTON SECONDAIRE — CARET (flèche CaretRight.svg)
   Cible : PS natif + ds-btn-secondary (HTML libre + Creative Elements)
   Couleurs pilotées par --btn-secondary-caret-color / -hover dans variables.css
   ============================================================================= */


/* =============================================================================
   6. BOUTON AJOUT AU PANIER — PS NATIF + ds-btn-add-to-cart
   Cibles :
   - PrestaShop natif : .btn.add-to-cart, button.add-to-cart
     (template product-add-to-cart.tpl : btn btn-primary ajouter-au-panier add-to-cart)
   - HTML libre : <a class="ds-btn-add-to-cart">, <button class="ds-btn-add-to-cart">
   - Creative Elements : classe ds-btn-add-to-cart sur div.elementor-element
   Même visuel que le bouton secondaire (états base / hover / clic).
   ============================================================================= */

/* --- Panier · état base (Figma : bouton orange « COMMANDER ») --- */
.btn.add-to-cart,
button.add-to-cart,
a.ds-btn-add-to-cart,
button.ds-btn-add-to-cart,
.elementor-element.ds-btn-add-to-cart .elementor-button,
.elementor-element.ds-btn-add-to-cart .elementor-button-link {
  background-color: var(--tertiary-color) !important;
  color: var(--primary-background-color) !important;
  border: 1px solid var(--tertiary-color) !important;
  border-radius: var(--btn-border-radius) !important;
  padding: 13px 11px 13px 14px !important;
  display: inline-flex !important;
  gap: 14px !important;
  justify-content: center !important;
  align-items: center !important;
  font-family: var(--main-font) !important;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-decoration: none !important;
  text-transform: initial;
  width: fit-content;
}

/* --- Panier · état hover --- */
.btn.add-to-cart:hover,
button.add-to-cart:hover,
a.ds-btn-add-to-cart:hover,
button.ds-btn-add-to-cart:hover,
.elementor-element.ds-btn-add-to-cart .elementor-button:hover,
.elementor-element.ds-btn-add-to-cart .elementor-button-link:hover {
  background-color: var(--primary-background-color) !important;
  color: var(--tertiary-color) !important;
  border-color: var(--tertiary-color) !important;
  text-decoration: none !important;
}

/* --- Panier · état clic (:active) --- */
.btn.add-to-cart:active,
button.add-to-cart:active,
a.ds-btn-add-to-cart:active,
button.ds-btn-add-to-cart:active,
.elementor-element.ds-btn-add-to-cart .elementor-button:active,
.elementor-element.ds-btn-add-to-cart .elementor-button-link:active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-background-color) !important;
}

/* =============================================================================
   7. BOUTON AJOUT AU PANIER — ICÔNE PANIER (btn-cart.svg)
   Cible : PS natif + ds-btn-add-to-cart (HTML libre + Creative Elements)
   Couleurs de l'icône renseignées ici (indépendantes du caret).
   ============================================================================= */

/* Icône panier (btn-cart.svg) : à brancher quand l’asset sera ajouté au thème */

/* =============================================================================
   8. COULEURS BOX (Figma « code couleur site » + teintes)
   ============================================================================= */

.ds-box-cyan { color: var(--box-color-cyan) !important; }
.ds-box-green { color: var(--box-color-green) !important; }
.ds-box-orange { color: var(--box-color-orange) !important; }
.ds-box-burgundy { color: var(--box-color-burgundy) !important; }
.ds-box-yellow { color: var(--box-color-yellow) !important; }

.ds-bg-box-tint-cyan { background-color: var(--box-tint-cyan) !important; }
.ds-bg-box-tint-green { background-color: var(--box-tint-green) !important; }
.ds-bg-box-tint-orange { background-color: var(--box-tint-orange) !important; }
.ds-bg-box-tint-burgundy { background-color: var(--box-tint-burgundy) !important; }
.ds-bg-box-tint-yellow { background-color: var(--box-tint-yellow) !important; }