/*
Theme Name: GAUPE PRO
Theme URI: https://gaupe.fr
Author: GAUPE
Description: Thème e-commerce premium pour lunettes de luxe.
Version: 1.3.0 (réorganisé)
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gaupe-pro
Tags: e-commerce, woocommerce, custom-logo, custom-menu
*/
/*
 * ==========================================================================
 * GAUPE PRO - THÈME E-COMMERCE PREMIUM
 * Version: 1.3.0 (réorganisé)
 * ==========================================================================
 *
 * TABLE DES MATIÈRES
 * ------------------
 *
 * BLOC 1 : DESKTOP (styles de base, s'appliquent par défaut)
 * ===========================================================
 *   1.1  Variables CSS (:root)
 *   1.2  Reset & Base
 *   1.3  Layout général
 *   1.4  Header & Logo
 *   1.5  Menu secondaire
 *   1.6  Menu principal sticky
 *   1.7  Dropdowns
 *   1.8  Icônes menu
 *   1.9  Wishlist styles (YITH)
 *   1.10 Search Modal (FiboSearch)
 *   1.11 Mini Cart Dropdown
 *   1.12 Burger Menu Mobile (structure)
 *   1.13 Widget sous menu
 *   1.14 Section Avantages
 *   1.15 Boutons
 *   1.16 Formulaires
 *   1.17 WooCommerce Boutique
 *   1.18 Page Produit Single
 *   1.19 Breadcrumbs
 *   1.20 Toast notifications
 *   1.21 Panier
 *   1.22 Mon Compte
 *   1.23 Footer
 *   1.24 Produits similaires (WRPS)
 *   1.25 Smart Slider
 *   1.26 Panneau filtres off-canvas
 *   1.27 WOOF Filtres
 *   1.28 Utilitaires
 *   1.29 Media Queries min-width
 *   1.30 WAPF - Options produits (bloc unifié)
 *   1.31 WAPF - Layout champs inline
 *   1.32 Toolbar boutique
 *   1.33 Layout CGV
 *   1.34 Blocs contenu (5050, 6040)
 *   1.35 Règles additionnelles (prism, galerie, blur)
 *
 * BLOC 2 : TABLETTE (max-width: 64rem)
 * =====================================
 *   2.1  Base
 *   2.2  Header & Menu ajustements
 *   2.3  Burger toggle visible
 *   2.4  Breadcrumbs
 *   2.5  Page produit ajustements
 *   2.6  WooCommerce & Grilles (3 colonnes)
 *   2.7  Admin bar offset
 *   2.8  WAPF tablette
 *   2.9  CGV responsive tablette
 *   2.10 Blocs contenu responsive tablette
 *
 * BLOC 3 : MOBILE (max-width: 40rem)
 * ===================================
 *   3.1  Base
 *   3.2  Layout & espacements réduits
 *   3.3  Header & Logo compact
 *   3.4  Menu mobile
 *   3.5  Breadcrumbs mobile
 *   3.6  Page produit (1 col)
 *   3.7  WooCommerce & Grilles (2 colonnes)
 *   3.8  Panier & Mon Compte
 *   3.9  Avantages (vertical)
 *   3.10 Footer (2 colonnes)
 *   3.11 Toast pleine largeur
 *   3.12 Panneau filtres (depuis le bas)
 *   3.13 Smart Slider mobile
 *   3.14 Wishlist cards mobile
 *   3.15 Produits similaires mobile
 *   3.16 WAPF mobile
 *   3.17 Menu sticky fix admin bar
 *
 * ZONE DE VÉRIFICATION MANUELLE
 * ==============================
 *   (fin de fichier)
 *
 */

/* ==========================================================================
   IMPORTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

/* ==========================================================================
   BLOC 1 : DESKTOP (styles de base, s'appliquent par défaut)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1.1 Variables CSS
   -------------------------------------------------------------------------- */
:root {
  --color-sombre: #4c4c4c;
  --color-clair: #D9D5CD;
  --color-accent: #ac8d6f;
  --color-texte-clair: #FFFFFF;
  --color-texte-gris: #acaba7;
  --color-gris-fonce: #333333;
  --color-gris-moyen: #666666;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.25);
  --shadow-subtle: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.12);
  --degrade-blanc: linear-gradient(to bottom, #fbf5f0 0%, #fbf6f0 50%, #fbf5f0 100%);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --max-width-content: 75rem;
  --max-width-wide: 90rem;
  --z-header: 100;
  --z-dropdown: 400;
  --z-overlay: 450;
  --z-slidein: 500;
  --z-toast: 600;
  --z-max: 700;
  --border-ub: 1px solid transparent;
  --border-ubg: radial-gradient(circle at 50% 0, var(--color-accent), transparent) bottom center / 90% 1px no-repeat;
  --related-line: linear-gradient(to right, transparent, var(--color-accent), transparent);
  --font-headings: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   1.2 Reset & Base
   -------------------------------------------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background: #fcfcfc !important;
  color: var(--color-sombre);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1rem 0; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --------------------------------------------------------------------------
   1.3 Layout général
   -------------------------------------------------------------------------- */
.site { overflow: visible; }

.site-content { min-height: 50vh; }

.section-inner {
  margin: 0 auto;
  max-width: var(--max-width-wide);
  width: 100%;
  padding: 0 2rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   1.4 Header & Logo
   -------------------------------------------------------------------------- */
#site-header {
  background: transparent !important;
  margin: 0;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.5rem 2rem;
  border-bottom: 0;
}

.site-logo { flex-shrink: 0; }

.site-logo a { display: block; }

.site-logo img,
.custom-logo {
  max-height: 3rem;
  width: auto;
  min-width: 10rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  padding-bottom: 0.4rem;
  border-bottom: var(--border-ub);
  background: var(--border-ubg);
}

/* --------------------------------------------------------------------------
   1.5 Menu secondaire
   -------------------------------------------------------------------------- */
.header-secondary-menu ul {
  display: flex;
  gap: 1rem;
}

.header-secondary-menu a {
  font-family: var(--font-headings);
  color: var(--color-texte-gris);
  font-size: 0.875rem;
}

.header-secondary-menu a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   1.6 Menu principal sticky
   -------------------------------------------------------------------------- */
.primary-menu-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: var(--z-toast);
  background: linear-gradient(to bottom, #fbf5f0 0%, #fcfcfc 50%, #fbf5f0 100%) !important;
  box-shadow: 0rem 0.125rem 0.4rem rgba(0, 0, 0, 0.2) !important;
  margin: 0.5rem 0 !important;
}

.admin-bar .primary-menu-wrapper { top: 32px; }

.primary-menu-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.35rem 2rem;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.primary-menu > li { position: relative; }

.primary-menu > li > a {
  font-family: var(--font-headings);
  color: var(--color-texte-gris);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  text-decoration: none;
  white-space: nowrap;
}

.primary-menu > li > a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   1.7 Dropdowns
   -------------------------------------------------------------------------- */
.primary-menu > li.menu-item-has-children {
  position: relative;
}

.primary-menu > li.menu-item-has-children > .sub-menu {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  margin-left: 0 !important;
}

.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 12rem;
  padding: 0.25rem 0;
  box-shadow: var(--shadow-medium);
  z-index: var(--z-dropdown);
}

.primary-menu li:hover > .sub-menu { display: block; }

.primary-menu .sub-menu a {
  display: block;
  padding: 0.1rem 1rem 0.2rem 1rem;
  font-family: var(--font-headings);
  color: var(--color-sombre);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: none;
}

.primary-menu .sub-menu a:hover {
  background-color: var(--color-clair);
  text-decoration: none;
}

.primary-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  right: auto;
  transform: none;
}

.menu-item-has-children > .sub-menu {
  margin-top: -2px;
}

/* Desktop / Mobile menus visibility */
.desktop-menu { display: block; }
.mobile-menu-wrapper { display: none; }

/* --------------------------------------------------------------------------
   1.8 Icônes menu (loupe, cœur, panier)
   -------------------------------------------------------------------------- */
.menu-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.menu-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-texte-gris);
  transition: color var(--transition-fast);
}

.menu-icon:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.menu-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Badge compteur */
.menu-icon .count {
  position: absolute;
  top: -0.375rem;
  right: -0.375rem;
  background-color: var(--color-accent);
  color: var(--color-sombre);
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   1.9 Wishlist styles (YITH)
   -------------------------------------------------------------------------- */
a[class*="button--added"] .yith-wcwl-icon-svg,
a[class*="button--added"] .yith-wcwl-icon-svg path,
.yith-wcwl-wishlistaddedbrowse .yith-wcwl-icon,
.yith-wcwl-wishlistexistsbrowse .yith-wcwl-icon,
.yith-wcwl-add-to-wishlist.exists .yith-wcwl-icon {
  fill: #F00 !important;
  stroke: #F00 !important;
  color: #F00 !important;
}

.yith-wcwl-wishlistaddedbrowse a,
.yith-wcwl-wishlistexistsbrowse a,
.yith-wcwl-add-to-wishlist.exists a {
  color: #F00 !important;
}

/* --------------------------------------------------------------------------
   1.10 Search Modal (FiboSearch)
   -------------------------------------------------------------------------- */
.search-wrapper { position: relative; }

.search-modal {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0rem;
  background-color: var(--color-texte-clair);
  padding: 0.1rem;
  box-shadow: var(--shadow-medium);
  z-index: var(--z-dropdown);
  min-width: 18rem;
}

.search-modal.active { display: block; }

/* Style FiboSearch */
.search-modal .dgwt-wcas-search-wrapp {
  width: 100%;
}

.search-modal .dgwt-wcas-search-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.search-modal .dgwt-wcas-search-submit {
  padding: 0.625rem 1rem;
  background-color: var(--color-accent);
  color: var(--color-sombre);
  font-weight: 600;
  border: none;
}

/* --------------------------------------------------------------------------
   1.11 Mini Cart Dropdown
   -------------------------------------------------------------------------- */
.mini-cart-wrapper { position: relative; }

.mini-cart-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 0.75rem;
  background: transparent;
}

.mini-cart-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: var(--color-texte-clair);
  min-width: 18rem;
  max-width: 22rem;
  padding: 1rem;
  box-shadow: var(--shadow-medium);
  z-index: var(--z-dropdown);
}

.mini-cart-wrapper:hover .mini-cart-dropdown,
.mini-cart-wrapper.keep-open .mini-cart-dropdown {
  display: block;
}

/* Mini cart : ligne produit flex */
.mini-cart-dropdown li.woocommerce-mini-cart-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-right: 1.9rem;
}

/* Colonne miniature */
.mini-cart-dropdown .mini-cart-item-thumbnail {
  flex: 0 0 3.25rem;
  width: 3.25rem;
}

/* Image miniature */
.mini-cart-dropdown img.attachment-woocommerce_thumbnail {
  width: 3.25rem !important;
  height: 3.25rem !important;
  object-fit: contain !important;
  padding: 0.125rem !important;
  margin: 0 !important;
  display: block;
  float: none !important;
}

/* Colonne infos */
.mini-cart-dropdown .mini-cart-item-info {
  flex: 1;
  min-width: 0;
}

/* Bouton supprimer (X) */
.mini-cart-dropdown li.woocommerce-mini-cart-item a.remove_from_cart_button {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--color-accent) !important;
  color: #fff !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  line-height: 1 !important;
  text-align: center;
}

.mini-cart-dropdown li.woocommerce-mini-cart-item a.remove_from_cart_button:hover {
  background: #ff0000 !important;
  color: #fff !important;
}

/* Boutons panier */
.mini-cart-dropdown .mini-cart-buttons {
  display: flex;
  gap: 0.125rem;
}

.mini-cart-dropdown .mini-cart-buttons a.button {
  flex: 1;
  font-size: 0.75rem !important;
  line-height: 1.1 !important;
  padding: 0.55rem 0.45rem !important;
  white-space: nowrap;
  text-align: center;
}

/* --------------------------------------------------------------------------
   1.12 Burger Menu Mobile (structure - masqué en desktop)
   -------------------------------------------------------------------------- */
.burger-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-texte-gris);
  border-radius: 50%;
  background: transparent;
  color: var(--color-texte-gris);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  z-index: var(--z-max) !important;
}

.burger-toggle:hover { background-color: rgba(255, 255, 255, 0.1); }

.burger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(51, 51, 51, 0.8);
  z-index: var(--z-overlay);
}

.burger-overlay.active { display: block; }

.burger-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 70%;
  max-width: 20rem;
  height: 100vh;
  background-color: var(--color-sombre);
  z-index: var(--z-max);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.burger-panel.active { transform: translateX(0); }

.burger-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  border-bottom: var(--border-ub);
  background: var(--border-ubg);
}

.burger-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-texte-gris);
  color: var(--color-texte-gris);
  font-size: 1.5rem;
  cursor: pointer;
}

.burger-close:hover { color: var(--color-accent); }

.burger-menu { padding: 1rem 0; }

.burger-menu ul { margin: 0; padding: 0; list-style: none; }

.burger-menu li {
  border-bottom: var(--border-ub);
  background: var(--border-ubg);
}

.burger-menu a {
  display: block;
  padding: 1rem 1.5rem;
  font-family: var(--font-headings);
  color: var(--color-texte-gris);
  font-size: 1rem;
  text-decoration: none;
}

.burger-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   1.13 Widget sous menu
   -------------------------------------------------------------------------- */
.widget-under-menu-area {
  width: 100%;
  margin: 0;
  padding: 0 0.3rem;
}

.widget-under-menu-area .widget { margin: 0; }

/* --------------------------------------------------------------------------
   1.14 Section Avantages
   -------------------------------------------------------------------------- */
.advantages-section {
  background: #ebecea;
  padding: 1rem 0;
  margin: 0 0 1rem 0;
  clear: both;
  box-shadow: 0rem 0.125rem 0.4rem rgba(0, 0, 0, 0.2) !important;
}

.advantages-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.advantages-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.advantage-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.advantage-item:last-child { border-right: none; }

.advantage-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

.advantage-icon svg { width: 100%; height: 100%; }

.advantage-title {
  font-size: 0.875rem;
  font-weight: 700;
  display: block;
}

.advantage-description {
  font-size: 0.75rem;
  color: var(--color-gris-moyen);
  display: block;
}

/* --------------------------------------------------------------------------
   1.15 Boutons
   -------------------------------------------------------------------------- */
.btn,
.button,
button[type="submit"],
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: var(--color-sombre);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: opacity var(--transition-fast);
}

.btn:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  opacity: 0.9;
  text-decoration: none !important;
}

/* WooCommerce Block buttons */
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
  min-height: 3em;
  background: var(--color-accent);
  color: #f6ecdf;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover {
  text-decoration: none !important;
  background: #987e63;
}

/* Added to cart link - masqué */
a.added_to_cart.wc-forward {
  display: none !important;
}

.woocommerce ul.products li.product a.added_to_cart.wc-forward {
  margin: 0 !important;
  padding: 0 !important;
}

/* --------------------------------------------------------------------------
   1.16 Formulaires
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-texte-clair);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
}

select {
  padding: 0.4rem 0.75rem 0.5rem 0.75rem !important;
  margin: 0 !important;
}

/* Suppression flèches inputs number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* WOOF specific */
.woof input[type="number"]::-webkit-outer-spin-button,
.woof input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.woof input[type="number"] {
  -moz-appearance: textfield;
}

/* --------------------------------------------------------------------------
   1.17 WooCommerce Boutique
   -------------------------------------------------------------------------- */
.woocommerce-page .content-area,
.woocommerce .content-area {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.5rem 0.6rem;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.woocommerce-ordering {
  text-align: right;
  clear: both;
  margin-bottom: 1rem;
}

.woocommerce-ordering select {
  width: auto;
  min-width: 10rem;
}

/* Masquer résultat count */
.woocommerce-result-count,
.woocommerce .woocommerce-result-count {
  display: none !important;
}

/* Grille produits */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

img.attachment-woocommerce_thumbnail {
  padding: 0.5rem;
}

/* Cartes produits */
.products .product {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-texte-clair);
  box-shadow: var(--shadow-subtle);
}

.products .product .product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  min-height: 2rem;
  padding: 0.5rem;
}

.products .product .woocommerce-loop-product__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  flex-grow: 1;
}

/* Titre centré */
.product-info .woocommerce-loop-product__title {
  text-align: center;
}

.products .product .price {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.products .product .button {
  margin-top: auto;
  width: 100%;
}

/* Wishlist card produit */
.product-card-wishlist {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 10;
}

.product-card-wishlist .yith-wcwl-add-to-wishlist span,
.product-card-wishlist .yith-wcwl-add-to-wishlist .feedback,
.product-card-wishlist .yith-wcwl-add-button span {
  display: none !important;
}

.product-card-wishlist span.yith-wcwl-add-to-wishlist-button__label {
  display: none !important;
}

/* Produits similaires / upsells */
.related.products .products,
.upsells.products .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.related.products > h2,
.upsells.products > h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   1.18 Page Produit Single
   -------------------------------------------------------------------------- */
.single-product .content-area {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.5rem 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

/* Grille 52/48 */
.woocommerce div.product.product-grid {
  display: grid;
  grid-template-columns: 52% 48%;
  gap: 1.5rem;
  align-items: start;
}

/* Galerie */
.product-gallery-column {
  max-width: 99%;
  margin: 0 auto;
  padding: 0;
}

img.zoomimg {
  margin-bottom: 0.5rem;
}

.woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.woocommerce-product-gallery .flex-control-thumbs li {
  width: auto;
  max-width: 5rem;
}

/* Infos produit */
.woocommerce div.product .product_title {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.woocommerce div.product .price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 96% !important;
}

.woocommerce div.product .single_add_to_cart_button {
  flex: 0 0 auto;
  max-width: 12rem;
}

.single-product .single_add_to_cart_button {
  white-space: nowrap;
}

/* Accordéons */
.product-accordions-wrapper {
  width: 96%;
  max-width: 98%;
  margin: 1rem auto;
  float: left;
  clear: left;
}

.accordion-item {
  border-bottom: var(--border-ub);
  background: var(--border-ubg);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-sombre);
  text-align: left;
}

.accordion-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon { transform: rotate(45deg); }

.accordion-content {
  display: none;
  padding: 0 0 1rem;
  font-size: 0.875rem;
}

.accordion-item.active .accordion-content { display: block; }

/* --------------------------------------------------------------------------
   1.19 Breadcrumbs
   -------------------------------------------------------------------------- */
/* Masquage global */
.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb,
.breadcrumb-mobile,
.breadcrumb-desktop {
  display: none !important;
}

/* Breadcrumb DESKTOP - structure */
.breadcrumb-desktop {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Breadcrumb MOBILE - structure */
.breadcrumb-mobile {
  text-align: center;
  padding: 0;
}

.woocommerce-breadcrumb {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-gris-moyen);
}

.woocommerce-breadcrumb a { color: var(--color-accent); }

/* Page produit : masquage spécifique */
.single-product nav.woocommerce-breadcrumb,
.single-product .breadcrumb-mobile {
  display: none !important;
}

/* --------------------------------------------------------------------------
   1.20 Toast notifications
   -------------------------------------------------------------------------- */
.cart-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-sombre);
  color: var(--color-texte-gris);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-medium);
  z-index: var(--z-toast);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all var(--transition-normal);
  max-width: 18rem;
}

.cart-toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.cart-toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-toast-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent);
}

.cart-toast-icon svg { width: 100%; height: 100%; }

.cart-toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: var(--color-texte-gris);
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
}

.cart-toast-close:hover { opacity: 1; }

.cart-toast-close svg { width: 1rem; height: 1rem; }

/* --------------------------------------------------------------------------
   1.21 Panier
   -------------------------------------------------------------------------- */
.woocommerce-cart .content-area {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.cart-collaterals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cart_totals {
  background-color: var(--color-texte-clair);
  padding: 1.5rem;
}

.cart_totals .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  text-align: center;
  background-color: var(--color-sombre) !important;
  color: var(--color-texte-clair) !important;
  text-decoration: none !important;
}

.cart_totals .wc-proceed-to-checkout .checkout-button:hover {
  opacity: 0.9;
  text-decoration: none !important;
}

/* Cross-sells */
.cross-sells { margin-top: 2rem; }

.cross-sells > h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cross-sells .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   1.22 Mon Compte
   -------------------------------------------------------------------------- */
.woocommerce-account .content-area {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.woocommerce-account .woocommerce {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  flex-shrink: 0;
  width: 15rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  background-color: var(--degrade-blanc);
  margin-top: -2px !important;
  padding: 0;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  border-bottom: var(--border-ub);
  background: var(--border-ubg);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-sombre);
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background-color: var(--color-clair);
  font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   1.23 Footer
   -------------------------------------------------------------------------- */
#site-footer {
  background: var(--degrade-blanc);
  color: var(--color-texte-gris);
  padding: 2rem 0;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-widget-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-widget a {
  color: var(--color-texte-gris);
  opacity: 0.8;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-widget a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   1.24 Produits similaires (WRPS)
   -------------------------------------------------------------------------- */
.wrps_related_products_area {
  background: #fbf7f3 !important;
  padding: 0 1rem !important;
  margin: 2rem 0 0 0 !important;
  box-shadow: 0rem 0.125rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}

.wrps_related_products_area_title {
  margin: 0.5rem 0 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 2rem !important;
}

.wrps_related_products_area_title::before,
.wrps_related_products_area_title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-image: var(--related-line);
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   1.25 Smart Slider
   -------------------------------------------------------------------------- */
.slide-titeuls .n2-ss-item-content,
.slide-titeuls .n2-ss-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.slide-titeuls #n2-ss-4item14 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  white-space: nowrap;
}

.slide-titeuls .n2-ss-text {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  line-height: 1;
  white-space: nowrap;
}

/* Traits animés */
.slide-titeuls .n2-ss-text::before,
.slide-titeuls .n2-ss-text::after {
  content: "";
  display: inline-block !important;
  width: 12rem;
  height: 1px;
  background-image: var(--related-line) !important;
  opacity: 0.55;
  flex-shrink: 0;
  transform: scaleX(0);
  transform-origin: center;
}

.n2-ss-slide-active .slide-titeuls .n2-ss-text::before,
.n2-ss-slide-active .slide-titeuls .n2-ss-text::after {
  animation: slide-titeuls-line-in 1s ease-out forwards;
}

@keyframes slide-titeuls-line-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   1.26 Panneau filtres off-canvas
   -------------------------------------------------------------------------- */
.gaupe-filters-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-max);
  pointer-events: none;
}

.gaupe-filters-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 540px;
  max-width: 95vw;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

body.admin-bar .gaupe-filters-inner {
  top: 2rem;
}

.gaupe-filters-panel.is-open {
  pointer-events: auto;
}

.gaupe-filters-panel.is-open .gaupe-filters-inner {
  transform: translateX(0);
}

/* Header filtres */
.gaupe-filters-header {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
}

.gaupe-filters-close {
  background: none;
  border: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-gris-fonce);
}

/* Contenu filtres */
.gaupe-filters-content {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.gaupe-filters-message {
  margin-bottom: 0.2rem !important;
}

/* Footer filtres */
.gaupe-filters-footer {
  padding: 1rem;
  border-top: 1px solid var(--color-border);
}

.gaupe-filters-apply {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-accent);
  color: var(--color-texte-clair);
  border: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   1.27 WOOF Filtres
   -------------------------------------------------------------------------- */
.woof_products_top_panel {
  float: left;
  overflow: hidden;
  line-height: 1.2rem;
  margin: 0.1rem 0;
  display: none;
  position: relative;
  z-index: 99;
}

.woof_products_top_panel li span,
.woof_products_top_panel2 li span {
  display: inline-flex;
  align-items: center;
  min-width: 1rem;
  height: 1.25rem;
  padding-right: 1.5rem;
  border-radius: 0 !important;
  font-size: 0.85rem;
  line-height: 1rem;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  margin-right: 1.2rem !important;
  cursor: pointer;
  position: relative;
}

/* Croix WOOF */
.woof_products_top_panel li span::after,
.woof_products_top_panel2 li span::after {
  content: "×";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  background: var(--color-accent) !important;
  color: #ffffff !important;
  font-size: 0.9rem;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.woof_products_top_panel li span:hover::after,
.woof_products_top_panel2 li span:hover::after {
  background: #f00 !important;
}

/* Bouton reset WOOF */
button.woof_reset_button_2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.25rem;
  padding: 0 0.75rem;
  background: var(--color-accent) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.85rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

button.woof_reset_button_2:hover {
  background: #c0392b !important;
}

/* --------------------------------------------------------------------------
   1.28 Utilitaires
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none; }

.summary { width: 95% !important; margin: 0 auto; }

.yith-add-to-wishlist-button-block {
  margin: 0.1rem auto;
}

/* --------------------------------------------------------------------------
   1.29 Media Queries min-width (desktop overrides)
   -------------------------------------------------------------------------- */
@media (min-width: 40rem) {
  .header-inner {
    padding: 0.2rem 1rem;
    margin: 0.75rem 0 0.5rem 0;
  }
}

@media (min-width: 64rem) {
  .primary-menu-inner {
    display: flex;
    align-items: center;
  }

  .primary-menu-inner .menu-icons {
    margin-left: 0;
  }

  .primary-menu-inner .desktop-menu {
    margin-left: auto;
    margin-right: auto;
  }
}

/* --------------------------------------------------------------------------
   1.30 WAPF - Options produits (bloc unifié)
   -------------------------------------------------------------------------- */
/* Conteneur principal */
.wapf-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  width: 100%;
}

.wapf-field-row > .wapf-field-container {
  flex: 0 0 96%;
  max-width: 96%;
  margin: 0 auto;
}

/* Grille des radios - 2 colonnes 50/50 */
.wapf-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

.wapf-checkable {
  flex: 0 0 calc(50% - 5px);
  min-width: 0;
  box-sizing: border-box;
}

/* Style des cartes */
.wapf-checkable .wapf-input-label {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
  color: #222;
}

.wapf-checkable .wapf-input-label:hover {
  border-color: #90caf9;
  background-color: #e3f2fd;
  box-shadow: 0 2px 6px rgba(144, 202, 249, 0.2);
}

.wapf-checkable.wapf-checked .wapf-input-label {
  border-color: #66bb6a;
  background-color: #e8f5e9;
  box-shadow: 0 2px 8px rgba(102, 187, 106, 0.15);
}

/* Input masqué */
.wapf-checkable .wapf-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Texte des labels */
.wapf-label-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.wapf-label-text h5 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.wapf-label-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: #555;
  flex: 1;
}

/* Prix masqué */
.wapf-pricing-hint {
  display: none !important;
}

/* Focus accessibilité */
.wapf-checkable .wapf-input-label:focus-within {
  outline: 2px solid #66bb6a;
  outline-offset: 1px;
}

/* Visibilité forcée du texte */
.wapf-checkable .wapf-input-label *,
.wapf-checkable .wapf-input-label span,
.wapf-checkable .wapf-input-label small,
.wapf-checkable .wapf-input-label .wapf-option-label,
.wapf-checkable .wapf-input-label .wapf-label,
.wapf-checkable .wapf-input-label .wapf-label-text {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  position: relative;
  z-index: 3;
  color: inherit;
}

/* SVG décoratifs (prix) */
.wapf-checkable .wapf-input-label::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: -6px;
  width: 135px;
  height: 135px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  opacity: 0.3;
  pointer-events: none;
  transition: bottom 220ms ease, opacity 220ms ease;
  z-index: 1;
}

.wapf-checkable.wapf-price-5 .wapf-input-label::after {
  background-image: url("https://gaupe.fr/lunettes_img/p5.svg");
}

.wapf-checkable.wapf-price-6 .wapf-input-label::after {
  background-image: url("https://gaupe.fr/lunettes_img/p6.svg");
}

.wapf-checkable.wapf-price-10 .wapf-input-label::after {
  background-image: url("https://gaupe.fr/lunettes_img/p10.svg");
}

.wapf-checkable:not(.wapf-checked) .wapf-input-label:hover::after {
  bottom: 5px;
  opacity: 0.4;
}

.wapf-checkable.wapf-checked .wapf-input-label::after {
  bottom: 5px;
  opacity: 0.5;
  transition: none;
}

/* EXCEPTION : TRUE/FALSE (checkbox standard) */
.wapf-field-true-false .wapf-checkable {
  flex: unset;
  width: auto;
  min-width: auto;
}

.wapf-field-true-false .wapf-input-label {
  all: unset;
}

.wapf-field-true-false .wapf-checkbox-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  user-select: none;
}

.wapf-field-true-false input[type="checkbox"].wapf-input {
  position: static !important;
  opacity: 1 !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

/* EXCEPTION : SAISIE_CORRECTION (bouton pleine largeur) */
.saisie_correction .wapf-checkable {
  flex: 0 0 100%;
}

.saisie_correction .wapf-checkable .wapf-input-label {
  position: relative !important;
  width: 100% !important;
  height: 40px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.38) !important;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #ffffff !important;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.22),
    0 6px 18px rgba(236, 72, 153, 0.18),
    0 2px 10px rgba(250, 204, 21, 0.12) !important;
  transform: none !important;
  transition: background-color 220ms ease, box-shadow 220ms ease !important;
  overflow: hidden !important;
}

.saisie_correction .wapf-checkable .wapf-input-label::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 18px;
  background: linear-gradient(
    to right,
    rgba(124, 58, 237, 0.55),
    rgba(236, 72, 153, 0.55),
    rgba(250, 204, 21, 0.40)
  );
  filter: blur(16px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  width: auto;
  height: auto;
  bottom: auto;
  right: auto;
  background-image: none;
}

.saisie_correction .wapf-checkable .wapf-input-label * {
  position: relative;
  z-index: 2;
}

.saisie_correction .wapf-checkable .wapf-label-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

.saisie_correction .wapf-checkable .wapf-label-text h5 {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  filter: blur(0.9px);
  transition: filter 180ms ease;
}

.saisie_correction .wapf-checkable .wapf-input-label:hover .wapf-label-text h5 {
  filter: blur(0);
}

.saisie_correction .wapf-checkable.wapf-checked .wapf-input-label {
  background: rgba(245, 240, 255, 0.30) !important;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.30),
    0 10px 22px rgba(236, 72, 153, 0.22),
    0 6px 14px rgba(250, 204, 21, 0.16) !important;
}

.saisie_correction .wapf-checkable.wapf-checked .wapf-label-text h5 {
  filter: blur(0);
}

/* Label des champs WAPF */
.wapf-field-label {
  font-size: 0.8rem;
  white-space: nowrap;
  letter-spacing: 0.05rem;
}

/* --------------------------------------------------------------------------
   1.31 WAPF - Layout champs inline (width 50%/35%/30%)
   -------------------------------------------------------------------------- */
.wapf-fields-wrapper,
.wapf-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  width: 100%;
}

/* Champs à 50% */
.wapf-field-row > .wapf-field-container[style*="width:50%"] {
  flex: 0 0 calc(50% - 5px);
  max-width: calc(50% - 5px);
}

/* Champs à 35% */
.wapf-field-row > .wapf-field-container[style*="width:35%"] {
  flex: 0 0 calc(35% - 0.3rem);
  max-width: calc(35% - 0.3rem);
}

/* Champs à 30% */
.wapf-field-row > .wapf-field-container[style*="width:30%"] {
  flex: 0 0 calc(30% - 0.3rem);
  max-width: calc(30% - 0.3rem);
}

/* Champs à 100% (radios, etc.) */
.wapf-field-row > .wapf-field-container[style*="width:100%"] {
  flex: 0 0 100%;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   1.32 Toolbar boutique
   -------------------------------------------------------------------------- */
.shop-toolbar {
  margin-bottom: 1rem;
  text-align: right;
}

.gaupe-shop-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.gaupe-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gris-fonce);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
}

.gaupe-filter-button::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  background-color: var(--color-gris-moyen);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18M6 12h12M10 19h4' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.gaupe-filter-button:hover {
  border-color: var(--color-accent);
  color: var(--color-sombre);
}

.gaupe-filter-button:hover::before {
  background-color: var(--color-accent);
}

.gaupe-shop-toolbar .woocommerce-ordering {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.gaupe-shop-toolbar .woocommerce-ordering select {
  margin: 0;
}

/* --------------------------------------------------------------------------
   1.33 Layout CGV
   -------------------------------------------------------------------------- */
.cgv-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    "header header"
    "nav content"
    "footer footer";
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.cgv-header {
  grid-area: header;
}

.cgv-toc {
  grid-area: nav;
  position: sticky;
  top: 2rem;
  align-self: start;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.cgv-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cgv-toc li {
  margin: 0.5rem 0;
}

.cgv-toc a:hover {
  color: #E5AA70;
}

.cgv-toc a:active,
.cgv-toc a:visited {
  color: #000;
  font-weight: 450;
  font-style: oblique 6deg;
}

.cgv-content {
  grid-area: content;
}

.cgv-content h1,
.cgv-content h2,
.cgv-content h3 {
  margin: 1rem auto 0.5rem auto;
  font-style: italic;
  color: #E5AA70;
}

.cgv-content strong {
  font-style: oblique 5deg;
  color: #E5AA70;
}

.cgv-footer {
  grid-area: footer;
  clear: both;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   1.34 Blocs contenu (.gaupe-block-5050, .gaupe-block-6040)
   -------------------------------------------------------------------------- */
/* Bloc 50/50 avec header */
.gaupe-block-5050 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gaupe-block-5050-header {
  width: 100%;
  margin-top: 2rem;
  text-align: center;
}

.gaupe-block-5050-header h1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: 225%;
  font-weight: 400;
  font-style: normal;
  color: #c4c4c4;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: none;
}

.gaupe-block-5050-header h1::before,
.gaupe-block-5050-header h1::after {
  content: "";
  display: inline-block !important;
  width: 12rem;
  height: 1px;
  background-image: var(--related-line) !important;
  opacity: 0.55;
  flex-shrink: 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: slide-titeuls-line-in 1s ease-out forwards;
}

.gaupe-block-5050-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.25rem;
}

/* Bloc 60/40 sans header */
.gaupe-block-6040 {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0rem;
}

.gaupe-block-6040 > *:first-child {
  background-color: #f2ede875;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gaupe-block-6040 > *:first-child h1 {
  font-size: 2rem !important;
  padding-top: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 400;
  font-style: oblique 5deg;
  text-transform: uppercase;
}

/* Bouton bloc */
a.gaupe-block-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 0.2rem 1.6rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: #a58960;
  color: #fff;
  margin-top: 1rem;
}

/* Ratios images */
.gaupe-block-5050 img,
.gaupe-block-6040 img {
  object-fit: cover;
}

.gaupe-ratio-431,
.gaupe-ratio-432 {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.gaupe-ratio-431 {
  background-image: url("https://gaupe.fr/wp-content/uploads/2026/01/collection-homme.png");
}

.gaupe-ratio-432 {
  background-image: url("https://gaupe.fr/wp-content/uploads/2026/01/collection-femme.png");
}

.gaupe-ratio-431 h2,
.gaupe-ratio-432 h2 {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   1.35 Règles additionnelles (prism, galerie, blur)
   -------------------------------------------------------------------------- */
/* Prism */
.prism_v2 {
  display: block;
}

/* Galerie variations WooCommerce */
.woo-variation-gallery-wrapper .wvg-gallery-thumbnail-image img {
  margin: 30px !important;
}

/* Variation button */
.variable-item-span-button {
  font-size: 1rem !important;
}

/* Effet flou site */
body.blur-site h1,
body.blur-site h2,
body.blur-site h3,
body.blur-site h4,
body.blur-site h5,
body.blur-site h6,
body.blur-site p,
body.blur-site a,
body.blur-site span,
body.blur-site li,
body.blur-site label,
body.blur-site strong,
body.blur-site em,
body.blur-site small,
body.blur-site button,
body.blur-site .woocommerce,
body.blur-site .entry-content,
body.blur-site .site-content,
body.blur-site .site-header,
body.blur-site .site-footer {
  filter: blur(1.1px);
}

body.blur-site input,
body.blur-site select,
body.blur-site textarea {
  filter: none;
}

body.blur-site ::placeholder {
  filter: blur(1.1px);
}


/* ==========================================================================
   BLOC 2 : TABLETTE (max-width: 64rem)
   ========================================================================== */
@media (max-width: 64rem) {

  /* --------------------------------------------------------------------------
     2.1 Base
     -------------------------------------------------------------------------- */
  html {
    font-size: 12px !important;
  }

  /* --------------------------------------------------------------------------
     2.2 Header & Menu ajustements
     -------------------------------------------------------------------------- */
  .header-inner {
    padding: 0.2rem 1rem;
    margin: 0.75rem 0 0.5rem 0;
  }

  .primary-menu-inner {
    align-items: center;
    justify-content: center;
    max-width: 32rem;
    margin: 0 auto;
  }

  /* --------------------------------------------------------------------------
     2.3 Burger toggle visible
     -------------------------------------------------------------------------- */
  .burger-toggle {
    display: flex;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--color-texte-gris);
    border-radius: 50%;
    background: transparent;
    color: var(--color-texte-gris);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
  }

  /* --------------------------------------------------------------------------
     2.4 Breadcrumbs (logique tablette)
     -------------------------------------------------------------------------- */
  .breadcrumb-mobile {
    display: block;
    text-align: center;
    padding-top: 0;
    margin-top: -0.6rem;
  }

  .breadcrumb-mobile .woocommerce-breadcrumb {
    display: block;
    padding-top: 0;
  }

  .breadcrumb-desktop {
    display: none !important;
  }

  /* --------------------------------------------------------------------------
     2.5 Page produit ajustements
     -------------------------------------------------------------------------- */
  .single-product .content-area {
    max-width: var(--max-width-wide);
    margin: 0 0.5rem;
    padding: 1rem 0.1rem;
  }

  .product-gallery-column {
    max-width: 96%;
    margin: 0;
    padding: 0;
  }

  img.zoomimg {
    max-width: 96%;
    margin-bottom: 0.5rem;
  }

  .product-accordions-wrapper {
    width: 95%;
    max-width: 95%;
    margin: 1rem auto;
    float: left;
    clear: left;
  }

  /* --------------------------------------------------------------------------
     2.6 WooCommerce & Grilles produits (3 colonnes)
     -------------------------------------------------------------------------- */
  .woocommerce-page .content-area,
  .woocommerce .content-area {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0.5rem;
  }

  .products {
    grid-template-columns: repeat(3, 1fr);
  }

  .related.products .products,
  .upsells.products .products {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --------------------------------------------------------------------------
     2.7 Admin bar offset
     -------------------------------------------------------------------------- */
  .admin-bar .primary-menu-wrapper {
    top: 46px;
  }

  /* --------------------------------------------------------------------------
     2.8 WAPF tablette
     -------------------------------------------------------------------------- */
  .woocommerce div.product form.cart {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 100% !important;
    width: 100% !important;
  }

  .wapf-field-row,
  .wapf-field-row > .wapf-field-container {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .wapf-radios {
    gap: 0.5rem;
    width: 100%;
  }

  .wapf-checkable .wapf-input-label {
    padding: 0.8rem 0.8rem;
  }

  .wapf-label-text h5 {
    font-size: 1.2rem;
  }

  .wapf-label-text p {
    font-size: 1rem;
  }

  .variable-item-span-button {
    font-size: 1rem !important;
  }

  /* --------------------------------------------------------------------------
     2.9 CGV responsive tablette
     -------------------------------------------------------------------------- */
  .cgv-container {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "header"
      "nav"
      "content"
      "footer";
  }

  .cgv-toc {
    position: static;
    max-height: none;
  }

  /* --------------------------------------------------------------------------
     2.10 Blocs contenu responsive tablette
     -------------------------------------------------------------------------- */
  .gaupe-block-5050-body {
    grid-template-columns: 1fr;
  }

  .gaupe-block-6040 {
    grid-template-columns: 1fr;
  }

}


/* ==========================================================================
   BLOC 3 : MOBILE (max-width: 40rem)
   ========================================================================== */
@media (max-width: 40rem) {

  /* --------------------------------------------------------------------------
     3.1 Base
     -------------------------------------------------------------------------- */
  html {
    font-size: 10px !important;
  }

  /* --------------------------------------------------------------------------
     3.2 Layout & espacements réduits
     -------------------------------------------------------------------------- */
  .section-inner {
    padding: 0 1rem;
  }

  /* --------------------------------------------------------------------------
     3.3 Header & Logo compact
     -------------------------------------------------------------------------- */
  .header-inner {
    padding: 0.5rem 1rem;
    margin: 0.75rem 0 0.5rem 0;
  }

  .site-logo img,
  .custom-logo {
    max-height: 2.5rem;
    min-width: 6rem;
    max-width: 8rem;
  }

  .header-right {
    gap: 0.5rem;
  }

  .header-secondary-menu a {
    font-size: 0.65rem;
    gap: 0.2rem;
    margin: 0 !important;
  }

  /* --------------------------------------------------------------------------
     3.4 Menu mobile (burger actif, menu horizontal réduit)
     -------------------------------------------------------------------------- */
  .primary-menu-inner {
    align-items: center;
    justify-content: center;
    max-width: 20rem;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }

  .desktop-menu {
    display: none;
  }

  .mobile-menu-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
  }

  .primary-menu {
    gap: 0.2rem;
    flex-wrap: nowrap;
    overflow-y: hidden !important;
  }

  .primary-menu > li > a {
    font-size: 0.62rem;
  }

  .mobile-menu .sub-menu {
    display: none !important;
  }

  .burger-toggle {
    display: flex;
  }

  .menu-icons {
    gap: 0.5rem;
  }

  .menu-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* --------------------------------------------------------------------------
     3.5 Breadcrumbs mobile
     -------------------------------------------------------------------------- */
  .breadcrumb-mobile {
    display: block;
    text-align: center;
    padding: 0;
    margin-top: -0.8rem;
  }

  .breadcrumb-mobile .woocommerce-breadcrumb {
    display: block;
    padding: 0;
  }

  .breadcrumb-desktop {
    display: none !important;
  }

  /* Page produit : réaffichage breadcrumb mobile */
  .single-product .breadcrumb-mobile {
    display: block !important;
  }

  .single-product .breadcrumb-mobile nav.woocommerce-breadcrumb {
    display: block !important;
  }

  /* --------------------------------------------------------------------------
     3.6 Page produit (grille 1 col, prix repositionné)
     -------------------------------------------------------------------------- */
  .single-product .content-area {
    max-width: var(--max-width-wide);
    margin: 0 0.1rem;
    padding: 1rem 0.1rem;
  }

  .woocommerce div.product.product-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery-column {
    max-width: 96%;
    margin: 0;
    padding: 0;
  }

  img.zoomimg {
    max-width: 96%;
    margin-bottom: 0.5rem;
  }

  .product-accordions-wrapper {
    width: 95%;
    max-width: 95%;
    margin: 1rem auto;
    float: left;
    clear: left;
  }

  .summary {
    width: 95% !important;
    margin: 0 auto;
  }

  /* --------------------------------------------------------------------------
     3.7 WooCommerce & Grilles produits (2 colonnes)
     -------------------------------------------------------------------------- */
  .woocommerce-page .content-area,
  .woocommerce .content-area {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0.5rem 0.2rem;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .related.products .products,
  .upsells.products .products,
  .cross-sells .products {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --------------------------------------------------------------------------
     3.8 Panier & Mon Compte
     -------------------------------------------------------------------------- */
  .cart-collaterals {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .woocommerce {
    flex-direction: column;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
  }

  /* --------------------------------------------------------------------------
     3.9 Avantages (vertical)
     -------------------------------------------------------------------------- */
  .advantages-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .advantage-item {
    border-right: none;
    border-bottom: var(--border-ub);
    background: var(--border-ubg);
    padding: 0.75rem 0;
  }

  .advantage-item:last-child {
    border-bottom: none;
  }

  /* --------------------------------------------------------------------------
     3.10 Footer (2 colonnes)
     -------------------------------------------------------------------------- */
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --------------------------------------------------------------------------
     3.11 Toast pleine largeur
     -------------------------------------------------------------------------- */
  .cart-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  /* --------------------------------------------------------------------------
     3.12 Panneau filtres (depuis le bas)
     -------------------------------------------------------------------------- */
  .gaupe-filters-inner {
    width: 100%;
    height: 80vh;
    right: 0;
    bottom: 0;
    top: auto;
    transform: translateY(100%);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  }

  .gaupe-filters-panel.is-open .gaupe-filters-inner {
    transform: translateY(0);
  }

  /* --------------------------------------------------------------------------
     3.13 Smart Slider mobile
     -------------------------------------------------------------------------- */
  .slide-titeuls .n2-ss-text {
    font-size: 1rem !important;
  }

  .slide-titeuls .n2-ss-text::before,
  .slide-titeuls .n2-ss-text::after {
    width: 6rem;
  }

  div#n2-ss-3 .n2-font-3e2e7fe4e4de745474b6a8aa6b99c4e9-link a {
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 0.5rem 1.9rem;
  }

  .n2-ss-slider .n2-ss-item-image-content img {
    display: inline-block;
    max-width: 12rem;
  }

  /* --------------------------------------------------------------------------
     3.14 Wishlist cards mobile
     -------------------------------------------------------------------------- */
  .yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor svg.yith-wcwl-icon-svg,
  .yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor img {
    width: 1.5rem;
    color: currentColor;
    max-width: 35px;
  }

  .yith-add-to-wishlist-button-block {
    margin: 0.1rem auto;
  }

  .product-card-wishlist {
    position: absolute;
    right: 0.2rem;
    top: -0.7rem;
    max-height: 2rem !important;
  }

  /* --------------------------------------------------------------------------
     3.15 Produits similaires mobile
     -------------------------------------------------------------------------- */
  .wrps_related_products_area_title {
    clear: both !important;
    display: inline-block !important;
    width: 95% !important;
  }

  /* --------------------------------------------------------------------------
     3.16 WAPF mobile
     -------------------------------------------------------------------------- */
  .wapf-field-row,
  .wapf-field-row > .wapf-field-container {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .wapf-radios {
    gap: 0.5rem;
    width: 100%;
  }

  .wapf-checkable {
    flex: 0 0 calc(50% - 0.4rem);
  }

  .wapf-checkable .wapf-input-label {
    padding: 0.8rem 1rem;
  }

  .wapf-label-text h5 {
    font-size: 1.2rem;
  }

  .wapf-label-text p {
    font-size: 1rem;
  }

  .variable-item-span-button {
    font-size: 1rem !important;
  }

  .wapf-checkable .wapf-input-label::after {
    width: 8rem;
    height: 8rem;
  }

  /* --------------------------------------------------------------------------
     3.17 Menu sticky fix admin bar
     -------------------------------------------------------------------------- */
  .primary-menu-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
  }

  .admin-bar .primary-menu-wrapper {
    top: 46px;
  }

}


/* ==========================================================================
   ZONE DE VÉRIFICATION MANUELLE
   ========================================================================== */
/*
 * Aucun conflit non résolu détecté lors de la réorganisation.
 *
 * Points à surveiller après déploiement :
 * ----------------------------------------
 * 1. Breadcrumbs : logique complexe display none/block selon contexte
 * 2. .primary-menu-wrapper z-index : --z-toast
 * 3. html font-size : 16px (desktop), 12px (tablette), 10px (mobile)
 * 4. .site overflow : visible
 * 5. Montserrat : appliqué aux h1-h6 et menus via --font-headings
 * 6. WAPF : valeurs intactes dans tous les blocs
 * 7. Menu sticky mobile : top 46px avec admin bar
 *
 * Si un comportement inattendu apparaît, vérifier ces éléments en priorité.
 */