/*
Theme Name: PAPCO Aviation
Theme URI: https://gaupe.fr
Author: GAUPE
Description: Thème corporate PAPCO Aviation avec boutique WooCommerce.
Version: 1.5.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: papco
Tags: e-commerce, woocommerce, custom-logo, custom-menu
*/

/* ==========================================================================
   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');

/* ==========================================================================
   MODULE 00 : VARIABLES
   ========================================================================== */
: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: 0.0625rem solid transparent;
  --border-ubg: radial-gradient(circle at 50% 0, var(--color-accent), transparent) bottom center / 90% 0.0625rem no-repeat;
  --related-line: linear-gradient(to right, transparent, var(--color-accent), transparent);
  --font-headings: 'Montserrat', sans-serif;
}

/* ==========================================================================
   MODULE 01 : RESET, TYPOGRAPHIE ET BASE HTML
   ========================================================================== */
html {
  font-size: 100%;
  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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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; }

/* ==========================================================================
   MODULE 02 : STRUCTURE GÉNÉRALE ET ZONES DE CONTENU
   ========================================================================== */
.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;
}

.widget-under-menu-area {
  width: 100%;
  margin: 0;
  padding: 0 0.3rem;
}

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

/* ==========================================================================
   MODULE 03 : EN-TÊTE, LOGO ET MENU SECONDAIRE
   ========================================================================== */
#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: 5rem;
  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);
}

.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;
}

/* --- MODULE 03 responsive --- */
@media (min-width: 40rem) {
  .header-inner {
    padding: 0.2rem 1rem;
    margin: 0.75rem 0 0.5rem 0;
  }
}

@media (max-width: 64rem) {
  /* --------------------------------------------------------------------------
     2.1 Base
     -------------------------------------------------------------------------- */
  html {
    font-size: 0.75rem !important;
  }

  .header-inner {
    padding: 0.2rem 1rem;
    margin: 0.75rem 0 0.5rem 0;
  }
}

@media (max-width: 40rem) {
  /* --------------------------------------------------------------------------
     3.1 Base
     -------------------------------------------------------------------------- */
  html {
    font-size: 0.625rem !important;
  }

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

  .header-inner {
    padding: 0.25rem 1rem;
    margin: 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;
  }
}

/* ==========================================================================
   MODULE 04 : NAVIGATION PRINCIPALE, SOUS-MENUS, BURGER ET ICÔNES
   ========================================================================== */
.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: 2rem; }

.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;
}

.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: -0.125rem;
}

.desktop-menu { display: block; }
.mobile-menu-wrapper { display: none; }

.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;
}

.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;
}

.burger-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 0.0625rem 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: 0.0625rem 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;
}

/* --- MODULE 04 responsive --- */
@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;
  }
}

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

  .burger-toggle {
    display: flex;
    width: 2rem;
    height: 2rem;
    border: 0.0625rem 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;
  }

  .admin-bar .primary-menu-wrapper { top: 2.875rem; }
}

@media (max-width: 40rem) {
  .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;
  }

  .primary-menu-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
  }

  .admin-bar .primary-menu-wrapper { top: 2.875rem; }
}

/* ==========================================================================
   MODULE 05 : FAVORIS 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;
}

.yith-wcwl-icon-svg {
  stroke-width: 1 !important;
}

@media (max-width: 40rem) {
  .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: 2.1875rem;
  }

  .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;
  }
}

/* ==========================================================================
   MODULE 06 : RECHERCHE 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; }

.search-modal .dgwt-wcas-search-wrapp {
  width: 100%;
}

.search-modal .dgwt-wcas-search-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 0.0625rem 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;
}

/* ==========================================================================
   MODULE 07 : MINI-PANIER
   ========================================================================== */
.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-dropdown li.woocommerce-mini-cart-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-right: 1.9rem;
}

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

.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;
}

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

.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;
}

.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;
}

/* ==========================================================================
   MODULE 08 : BANDEAU DES 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: 0.0625rem 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;
}

@media (max-width: 40rem) {
  .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; }
}

/* ==========================================================================
   MODULE 09 : BOUTONS ET CHAMPS GÉNÉRIQUES
   ========================================================================== */
.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;
}

/* Apport css2 : branche spécifique .woocommerce a.button */
.woocommerce a.button {
  text-align: center;
  color: #fff;
}

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;
}

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;
}

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: 0.0625rem 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;
}

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 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;
}

/* ==========================================================================
   MODULE 10 : CATALOGUE, CARTES PRODUIT, PRIX, PAGINATION ET TOOLBAR
   ========================================================================== */
.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;
}

.woocommerce-result-count,
.woocommerce .woocommerce-result-count {
  display: none !important;
}

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

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

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

/* Consolidation A115 + B007 + B012 */
.products .product .product-info {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  text-align: left;
  min-height: 2rem;
  padding: 0rem;
  flex-wrap: wrap;
  align-content: flex-start;
}

.products .product .product-info > a.woocommerce-loop-product__link,
.products .product .product-info > .product-card-actions {
  flex: 0 0 100%;
}

.products .product .product-info span.screen-reader-text {
  display: none;
}

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

.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%;
}

.product-card-actions { text-align: center; }

.product-card-actions a.button.add_to_cart_button {
  font-size: .6rem;
  white-space: nowrap;
  margin: 0.5rem auto;
  width: 90%;
}

/* Badge promo + prix barré (css2) */
span.onsale,
.products .product .product-info del {
  flex: 0 0 auto;
  background-color: #FA003F;
  color: #fff;
  padding: 0.1rem 1.2rem 0.1rem 0.3rem;
  width: 45%;
  text-align: center;
  clip-path: polygon(0 0, 100% 0%, 80% 100%, 85% 100%, 0 100%);
  margin-bottom: 0.5rem;
}

/* Prix remisé (css2) */
.products .product .product-info ins {
  flex: 0 0 auto;
  color: #4c4c4c;
  padding: 0.1rem 0.3rem;
  text-decoration: none;
  margin-left: auto;
  width: 50%;
  text-align: center;
  border-radius: 15rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Ruban dégradé sous .price (css2) */
.products .product .price .woocommerce-Price-amount {
  display: inline-block;
  background: linear-gradient(to right, #c8864a, #e8b88a, #c8864a);
  color: #fff;
  padding: 0.1rem 1.2rem 0.1rem 0.3rem;
  width: 100%;
  text-align: center;
  clip-path: polygon(0 0, 100% 0%, 80% 100%, 85% 100%, 0 100%);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Prix normal — produit sans promo (css2) */
.products .product .product-info > span.woocommerce-Price-amount {
  display: inline-block;
  background-color: #eeeded;
  color: #031327;
  padding: 0.1rem 0.3rem 0.1rem 1.2rem;
  width: 55%;
  text-align: center;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 15% 100%, 10% 100%);
  margin-bottom: 0.5rem;
  margin-left: auto;
  font-weight: 600;
  font-style: oblique 8deg;
}

/* Pagination (css2) */
ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 0.6rem;
  padding: 0;
  margin: 1rem 0;
}

ul.page-numbers li a.page-numbers,
ul.page-numbers li span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #A58960;
  color: #fff;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 500;
}

ul.page-numbers li span.page-numbers.current {
  background-color: #7a6345;
}

/* 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;
}

.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;
}

/* Toolbar (consolidation A253 + B028) */
.shop-toolbar {
  margin-bottom: 1rem;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.shop-toolbar-left { flex: 1; }

.shop-cat-title {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-headings);
  color: var(--color-sombre);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.shop-toolbar-right {
  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: 0.0625rem solid var(--color-border);
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
}

.gaupe-filter-button::before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  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;
}

/* Sous-catégories (css2) */
.gaupe-subcategories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: #f0ede8;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.gaupe-subcat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: var(--color-sombre);
  transition: box-shadow 0.2s ease;
}

.gaupe-subcat-card:hover {
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.gaupe-subcat-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gaupe-subcat-card span {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- MODULE 10 responsive --- */
@media (max-width: 64rem) {
  .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);
  }
}

@media (max-width: 40rem) {
  .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);
  }

  .gaupe-subcategories {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   MODULE 11 : FICHE PRODUIT, GALERIE ET ACCORDÉONS
   ========================================================================== */
.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;
}

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

.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;
}

.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;
}

.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; }

.woo-variation-gallery-wrapper .wvg-gallery-thumbnail-image img {
  margin: 1.875rem !important;
}

/* --- MODULE 11 responsive --- */
@media (max-width: 64rem) {
  .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;
  }
}

@media (max-width: 40rem) {
  .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;
  }
}

/* ==========================================================================
   MODULE 12 : FILS D'ARIANE
   ========================================================================== */
.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb,
.breadcrumb-mobile,
.breadcrumb-desktop {
  display: none !important;
}

.breadcrumb-desktop {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--color-border);
}

.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); }

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

@media (max-width: 64rem) {
  .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;
  }
}

@media (max-width: 40rem) {
  .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;
  }

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

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

/* ==========================================================================
   MODULE 13 : NOTIFICATIONS PANIER
   ========================================================================== */
.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; }

@media (max-width: 40rem) {
  .cart-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* ==========================================================================
   MODULE 14 : PANIER, TOTAUX, VENTES CROISÉES ET SUGGESTIONS
   ========================================================================== */
.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 { 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;
}

/* --- Panier personnalisé (css2) --- */
.gaupe-cart-header {
  display: grid;
  grid-template-columns: 1fr 8rem 8rem 8rem;
  gap: 0;
  padding: 0.6rem 3rem 0.6rem 0;
  border-bottom: 0.125rem solid var(--color-border);
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-texte-gris);
}

.gaupe-cart-header .gaupe-cart-col-price,
.gaupe-cart-header .gaupe-cart-col-qty,
.gaupe-cart-header .gaupe-cart-col-total {
  text-align: center;
}

.gaupe-cart-row {
  display: grid;
  grid-template-columns: 1fr 8rem 8rem 8rem;
  gap: 0;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 0.0625rem solid var(--color-border);
  position: relative;
  padding-right: 3rem;
}

.gaupe-cart-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gaupe-cart-item-img img {
  width: 4.5rem !important;
  height: 4.5rem !important;
  object-fit: contain;
  display: block;
  padding: 0.25rem;
  background: #fafafa;
  border: 0.0625rem solid var(--color-border);
}

.gaupe-cart-item-name {
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-sombre);
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
}

.gaupe-cart-item-name:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.gaupe-cart-col-price,
.gaupe-cart-col-qty,
.gaupe-cart-col-total {
  text-align: center;
  font-size: 0.9rem;
}

.gaupe-cart-col-total {
  font-weight: 700;
  text-align: right;
  padding-right: 0.5rem;
}

.gaupe-cart-col-qty .quantity {
  display: flex;
  justify-content: center;
}

.gaupe-cart-col-qty .qty {
  width: 3.5rem;
  text-align: center;
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  border: 0.0625rem solid var(--color-border);
}

.gaupe-cart-item-remove {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gaupe-cart-item-remove a.remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background: transparent;
  color: var(--color-texte-gris);
  font-size: 1.2rem;
  line-height: 1;
  border: 0.0625rem solid var(--color-border);
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: 0;
  margin: 0;
}

.gaupe-cart-item-remove a.remove:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
  text-decoration: none;
}

.gaupe-cart-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  flex-wrap: nowrap;
}

.gaupe-cart-coupon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.gaupe-cart-coupon input[type="text"] {
  flex: 1;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  border: 0.0625rem solid var(--color-border);
  width: auto;
}

.gaupe-cart-coupon .button,
.gaupe-btn-update {
  height: 2.5rem;
  padding: 0 1.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gaupe-btn-update {
  background: transparent;
  color: var(--color-sombre);
  border: 0.0625rem solid var(--color-border);
  margin-left: auto;
}

.gaupe-btn-update:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  opacity: 1;
}

.gaupe-cart-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.gaupe-cart-totals .cart_totals h2 {
  font-size: 1.1rem;
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid var(--color-border);
}

.gaupe-cart-totals .cart_totals .shop_table {
  width: 100%;
  border-collapse: collapse;
}

.gaupe-cart-totals .cart_totals .shop_table tr {
  border-bottom: 0.0625rem solid var(--color-border);
}

.gaupe-cart-totals .cart_totals .shop_table tr:last-child {
  border-bottom: none;
}

.gaupe-cart-totals .cart_totals .shop_table th,
.gaupe-cart-totals .cart_totals .shop_table td {
  padding: 0.75rem 0.25rem;
  font-size: 0.9rem;
  vertical-align: top;
}

.gaupe-cart-totals .cart_totals .shop_table th {
  font-weight: 600;
  width: 40%;
  color: var(--color-sombre);
}

.gaupe-cart-totals .cart_totals .shop_table td {
  text-align: right;
}

.gaupe-cart-totals .cart_totals .shop_table tr.woocommerce-shipping-totals td {
  text-align: left;
}

.gaupe-cart-totals .cart_totals .shop_table tr.order-total th,
.gaupe-cart-totals .cart_totals .shop_table tr.order-total td {
  font-size: 1.05rem;
  font-weight: 700;
}

.gaupe-cart-totals .wc-proceed-to-checkout {
  margin-top: 1rem;
}

.gaupe-cart-totals .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: var(--color-sombre) !important;
  color: #fff !important;
  letter-spacing: 0.08em;
}

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

.gaupe-suggestions-title {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-texte-gris);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Consolidation B089 + B090 */
.gaupe-suggestions-title::before,
.gaupe-suggestions-title::after {
  content: "";
  flex: 1;
  height: 0.0625rem;
  background-image: var(--related-line);
  opacity: 0.4;
}

.gaupe-suggestions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gaupe-suggestion-card {
  background: #fff;
  border: 0.0625rem solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.gaupe-suggestion-img {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 50%;
  margin: 0 auto;
}

.gaupe-suggestion-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.gaupe-suggestion-body {
  padding: 0.4rem 0.6rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.gaupe-suggestion-name {
  font-family: var(--font-headings);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-sombre);
  text-decoration: none;
  line-height: 1.3;
  display: block;
  text-align: center;
}

.gaupe-suggestion-name:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.gaupe-suggestion-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-sombre);
  text-align: right;
}

.gaupe-suggestion-btn {
  margin-top: auto;
  font-size: 0.62rem !important;
  padding: 0.4rem 0.4rem !important;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* --- MODULE 14 responsive --- */
@media (max-width: 64rem) {
  .gaupe-cart-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 40rem) {
  .cart-collaterals {
    grid-template-columns: 1fr;
  }

  .gaupe-cart-header {
    display: none;
  }

  .gaupe-cart-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    padding: 1rem 2.5rem 1rem 0;
    gap: 0.25rem;
  }

  .gaupe-cart-item-info {
    grid-column: 1 / -1;
  }

  .gaupe-cart-col-price::before { content: attr(data-label) ": "; font-weight: 600; }
  .gaupe-cart-col-qty::before   { content: attr(data-label) ": "; font-weight: 600; }
  .gaupe-cart-col-total::before { content: attr(data-label) ": "; font-weight: 600; }

  .gaupe-cart-col-price,
  .gaupe-cart-col-qty,
  .gaupe-cart-col-total {
    text-align: left;
  }

  .gaupe-cart-actions {
    flex-wrap: wrap;
  }

  .gaupe-cart-coupon {
    flex: 0 0 100%;
  }
}

/* ==========================================================================
   MODULE 15 : ESPACE 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: -0.125rem !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;
}

@media (max-width: 40rem) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
  }

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

/* ==========================================================================
   MODULE 16 : PIED DE PAGE
   ========================================================================== */
#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: 0.0625rem solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

@media (max-width: 40rem) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   MODULE 17 : 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: 0.0625rem;
  background-image: var(--related-line);
  opacity: 0.55;
}

@media (max-width: 40rem) {
  .wrps_related_products_area_title {
    clear: both !important;
    display: inline-block !important;
    width: 95% !important;
  }
}

/* ==========================================================================
   MODULE 18 : 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;
}

.slide-titeuls .n2-ss-text::before,
.slide-titeuls .n2-ss-text::after {
  content: "";
  display: inline-block !important;
  width: 12rem;
  height: 0.0625rem;
  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);
  }
}

@media (max-width: 40rem) {
  .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: 0.0625rem;
    padding: 0.5rem 1.9rem;
  }

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

/* ==========================================================================
   MODULE 19 : PANNEAU DE FILTRES ET HUSKY/WOOF
   ========================================================================== */
.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: 33.75rem;
  max-width: 95vw;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -0.5rem 0 1.5rem 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);
}

.gaupe-filters-header {
  padding: 1rem;
  border-bottom: 0.0625rem 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);
}

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

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

.gaupe-filters-footer {
  padding: 1rem;
  border-top: 0.0625rem 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;
}

/* --- WOOF filtres actifs --- */
.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;
}

.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;
}

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;
}

/* --- HUSKY labels (css2) --- */
.gaupe-filters-content .woof_container_label .woof_list_label {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gaupe-filters-content .woof_container_label .woof_list_label li {
  flex: 0 0 calc(25% - 0.35rem) !important;
  width: calc(25% - 0.35rem) !important;
  max-width: calc(25% - 0.35rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.gaupe-filters-content .woof_container_label .woof_label_term {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 2.8rem;
  min-height: 2.8rem;
  max-height: 2.8rem;
  padding: 0.25rem 0.3rem !important;
  box-sizing: border-box;
  border: 0.0625rem solid rgba(165, 137, 96, 0.45);
  background: #ffffff;
  color: #4c4c4c;
  font-size: 0.72rem;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  cursor: pointer;
}

.gaupe-filters-content .woof_container_label .woof_label_term.checked {
  background: #A58960;
  border-color: #A58960;
  color: #ffffff;
}

.gaupe-filters-content .woof_container_label .woof_label_term:hover {
  border-color: #7a6345;
  background: #f0ede8;
  color: #031327;
}

.gaupe-filters-content .woof_container_label .woof_label_term.checked:hover {
  background: #7a6345;
  color: #ffffff;
}

.gaupe-filters-content .woof_container_label .woof_wcga_label_hide,
.gaupe-filters-content .woof_container_label input[type="checkbox"],
.gaupe-filters-content .woof_container_label input[type="hidden"] {
  display: none !important;
}

/* --- MODULE 19 responsive --- */
@media (max-width: 40rem) {
  .gaupe-filters-inner {
    width: 100%;
    height: 80vh;
    right: 0;
    bottom: 0;
    top: auto;
    transform: translateY(100%);
    box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  }

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

  .gaupe-filters-content .woof_container_label .woof_list_label {
    gap: 0.25rem !important;
  }

  .gaupe-filters-content .woof_container_label .woof_list_label li {
    flex-basis: calc(25% - 0.25rem) !important;
    width: calc(25% - 0.25rem) !important;
    max-width: calc(25% - 0.25rem) !important;
  }

  .gaupe-filters-content .woof_container_label .woof_label_term {
    height: 2.6rem;
    min-height: 2.6rem;
    max-height: 2.6rem;
    padding: 0.2rem 0.18rem !important;
    font-size: 0.62rem;
    line-height: 1.08;
  }
}

/* ==========================================================================
   MODULE 20 : WAPF, VARIANTES ET SAISIE DE CORRECTION
   ========================================================================== */
.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;
}

.wapf-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

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

.wapf-checkable .wapf-input-label {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.75rem 0.875rem;
  border: 0.125rem solid #e0e0e0;
  border-radius: 0.625rem;
  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 0.125rem 0.375rem rgba(144, 202, 249, 0.2);
}

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

.wapf-checkable .wapf-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.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 0.25rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #222;
}

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

.wapf-pricing-hint {
  display: none !important;
}

.wapf-checkable .wapf-input-label:focus-within {
  outline: 0.125rem solid #66bb6a;
  outline-offset: 0.0625rem;
}

.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;
}

.wapf-checkable .wapf-input-label::after {
  content: "";
  position: absolute;
  right: 0.3125rem;
  bottom: -0.375rem;
  width: 8.4375rem;
  height: 8.4375rem;
  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: 0.3125rem;
  opacity: 0.4;
}

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

/* Exception TRUE/FALSE */
.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: 0.625rem !important;
  cursor: pointer !important;
  user-select: none;
}

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

/* Exception SAISIE_CORRECTION */
.saisie_correction .wapf-checkable {
  flex: 0 0 100%;
}

.saisie_correction .wapf-checkable .wapf-input-label {
  position: relative !important;
  width: 100% !important;
  height: 2.5rem !important;
  padding: 0 1.125rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0.75rem !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: 0.75rem !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #ffffff !important;
  box-shadow: 0 0.625rem 1.625rem rgba(124, 58, 237, 0.22),
    0 0.375rem 1.125rem rgba(236, 72, 153, 0.18),
    0 0.125rem 0.625rem 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: -1.125rem;
  border-radius: 1.125rem;
  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(1rem);
  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.05625rem);
  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 0.875rem 2.125rem rgba(124, 58, 237, 0.30),
    0 0.625rem 1.375rem rgba(236, 72, 153, 0.22),
    0 0.375rem 0.875rem rgba(250, 204, 21, 0.16) !important;
}

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

.wapf-field-label {
  font-size: 0.8rem;
  white-space: nowrap;
  letter-spacing: 0.05rem;
}

.wapf-fields-wrapper,
.wapf-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  width: 100%;
}

.wapf-field-row > .wapf-field-container[style*="width:50%"] {
  flex: 0 0 calc(50% - 0.3125rem);
  max-width: calc(50% - 0.3125rem);
}

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

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

.wapf-field-row > .wapf-field-container[style*="width:100%"] {
  flex: 0 0 100%;
  max-width: 100%;
}

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

/* --- MODULE 20 responsive --- */
@media (max-width: 64rem) {
  .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;
  }
}

@media (max-width: 40rem) {
  .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;
  }
}

/* ==========================================================================
   MODULE 21 : CONDITIONS GÉNÉRALES
   ========================================================================== */
.cgv-container {
  display: grid;
  grid-template-columns: 17.5rem 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header header"
    "nav content"
    "footer footer";
  gap: 2rem;
  max-width: 87.5rem;
  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;
}

@media (max-width: 64rem) {
  .cgv-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "nav"
      "content"
      "footer";
  }

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

/* ==========================================================================
   MODULE 22 : BLOCS DE CONTENU ET RATIOS D'IMAGE
   ========================================================================== */
.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: 0.0625rem;
  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;
}

.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;
}

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;
}

.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;
}

@media (max-width: 64rem) {
  .gaupe-block-5050-body {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   MODULE 23 : ACCUEIL, CARTES DE CATÉGORIES ET LIEN TLB
   ========================================================================== */
.home h1,
.home h2,
.home h3,
.home h4,
.home h5,
.home h6 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.home h1::before,
.home h1::after,
.home h2::before,
.home h2::after,
.home h3::before,
.home h3::after,
.home h4::before,
.home h4::after,
.home h5::before,
.home h5::after,
.home h6::before,
.home h6::after {
  content: "";
  flex: 1;
  height: 0.0625rem;
  background-image: var(--related-line);
  opacity: 0.55;
}

/* Blocs parfums */
.blackshado-duo-categories {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 28rem;
  padding: 1rem 0;
  overflow: visible;
}

.blackshado-duo-card {
  position: relative;
  flex: 0 0 48%;
  width: 48%;
  min-height: 28rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none !important;
  overflow: hidden;
  border-radius: 0;
  transition: clip-path 0.35s ease, filter 0.35s ease;
}

.blackshado-duo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.35s ease;
  z-index: 1;
}

.blackshado-duo-card:hover {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  z-index: 10;
  filter: brightness(1.08);
}

.blackshado-duo-card:hover::before {
  background: rgba(0, 0, 0, 0.12);
}

.blackshado-duo-card span {
  position: relative;
  z-index: 2;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 0;
}

.blackshado-duo-homme {
  background-image: url("https://blackshado.fr/wp-content/uploads/2026/05/fragrance_homme.png");
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.blackshado-duo-femme {
  background-image: url("https://blackshado.fr/wp-content/uploads/2026/05/fragrance_femme.png");
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -5.75%;
}

/* Cartes catégories animées */
.bs-categories-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 1rem;
  overflow: hidden;
  transform: skew(5deg);
}

.bs-cat-card {
  flex: 1 1 0%;
  transition: all 1s ease-in-out;
  height: 55vmin;
  max-width: 55vmin;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  min-width: 0;
}

.bs-cat-card:not(:last-child) {
  margin-right: 0.25em;
}

.bs-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1s ease-in-out;
  filter: grayscale(100%);
  display: block;
}

.bs-cat-card__head {
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.5em;
  transform: rotate(-90deg);
  transform-origin: 0% 0%;
  transition: all 0.5s ease-in-out;
  min-width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 0.85em;
  font-family: var(--font-headings, 'Montserrat', sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-decoration: none;
}

.bs-cat-card:hover {
  flex-grow: 10;
  max-width: 55vmin;
  text-decoration: none;
}

.bs-cat-card:hover img {
  filter: grayscale(0);
}

.bs-cat-card:hover .bs-cat-card__head {
  text-align: center;
  top: calc(100% - 2.2em);
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: clamp(0.5rem, 3vmin, 1.3rem);
  transform: rotate(0deg) skew(-5deg);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-width: unset;
  box-sizing: border-box;
}

.bs-cat-card--no-image {
  background: linear-gradient(135deg, var(--color-accent, #ac8d6f), var(--color-sombre, #4c4c4c));
}

/* Lien tlb */
h3 a.tlb {
  display: inline-block;
  background: #c93;
  padding: 0.625rem 1.5rem;
  color: #fff;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.5s ease, background-color 0.5s ease, color 0.5s ease, border-radius 0.5s ease;
}

h3 a.tlb:hover {
  background: #000;
  color: #c93;
  border-radius: 0;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  text-decoration: none;
}

/* --- MODULE 23 responsive --- */
@media (max-width: 40rem) {
  .blackshado-duo-categories {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    margin: 1.5rem auto;
    min-height: auto;
  }

  .blackshado-duo-card {
    flex: 0 0 auto;
    width: 100%;
    min-height: 24rem;
    aspect-ratio: 16 / 10;
    clip-path: none;
    border-radius: 0;
  }

  .blackshado-duo-card:hover {
    clip-path: none;
    filter: brightness(1.08);
  }

  .blackshado-duo-card span {
    font-size: 0.95rem;
  }

  .blackshado-duo-femme {
    margin-left: 0;
  }

  .bs-categories-container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    transform: none;
    overflow: visible;
    margin: 1rem 0.5rem;
    gap: 0.25rem;
  }

  .bs-cat-card {
    flex: 1 1 0%;
    height: auto;
    max-width: none;
    min-width: 0;
    overflow: hidden;
    margin-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .bs-cat-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(0);
    display: block;
  }

  .bs-cat-card__head {
    position: static;
    transform: none !important;
    background: transparent;
    color: var(--color-sombre, #4c4c4c);
    font-size: 0.55rem;
    padding: 0.4rem 0.2rem 0;
    min-width: unset;
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  .bs-cat-card:hover {
    flex-grow: 1;
    max-width: none;
  }

  .bs-cat-card:hover img {
    filter: grayscale(0);
  }

  .bs-cat-card:hover .bs-cat-card__head {
    position: static;
    top: auto;
    transform: none !important;
    font-size: 0.9rem;
    background: transparent;
    color: var(--color-sombre, #4c4c4c);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    width: 100%;
    min-width: unset;
  }
}

/* ==========================================================================
   MODULE 24 : CONTACT ET CF7 COMMUNS
   ========================================================================== */
.page-id-contact .entry-content,
.woocommerce-page .entry-content,
body .entry-content {
  max-width: 100%;
  padding: 0;
}

.bs-contact-wrap {
  display: grid !important;
  grid-template-columns: 1fr 1.5fr !important;
  gap: 4rem;
  align-items: start;
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 2rem auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.bs-contact-wrap > .bs-contact-info {
  grid-column: 1;
}

.bs-contact-wrap > .bs-contact-form {
  grid-column: 2;
}

.bs-contact-info-title {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--color-sombre);
}

.bs-contact-info-intro {
  color: var(--color-gris-moyen);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.bs-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.0625rem solid var(--color-border);
}

.bs-contact-channel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bs-contact-label {
  font-family: var(--font-headings);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin-bottom: 0.1rem;
}

.bs-contact-channel a,
.bs-contact-channel span {
  font-size: 0.875rem;
  color: var(--color-sombre);
  text-decoration: none;
  display: block;
  line-height: 1.6;
}

.bs-contact-channel a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.bs-contact-disclaimer {
  background: #f7f4f0;
  padding: 1.25rem 1.5rem;
  border-left: 0.1875rem solid var(--color-accent);
}

.bs-contact-disclaimer-title {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--color-sombre);
}

.bs-contact-disclaimer p {
  font-size: 0.8rem;
  color: var(--color-gris-moyen);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.bs-contact-disclaimer ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.bs-contact-disclaimer li {
  font-size: 0.8rem;
  color: var(--color-gris-moyen);
  line-height: 1.6;
  margin-bottom: 0.15rem;
}

.bs-contact-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bs-form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.bs-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.bs-form-field input[type="text"],
.bs-form-field input[type="email"],
.bs-form-field textarea,
.bs-form-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0.0625rem solid var(--color-border);
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  border-radius: 0;
  color: var(--color-sombre);
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

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

.bs-form-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.bs-form-field .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #e74c3c;
  margin-top: 0.25rem;
}

.bs-form-field input.wpcf7-not-valid,
.bs-form-field textarea.wpcf7-not-valid,
.bs-form-field select.wpcf7-not-valid {
  border-color: #e74c3c;
}

.bs-form-field--rgpd {
  font-size: 0.78rem;
  color: var(--color-gris-moyen);
  line-height: 1.5;
}

.bs-form-field--rgpd .wpcf7-acceptance {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.bs-form-field--rgpd input[type="checkbox"] {
  width: auto;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.bs-contact-form .wpcf7-submit {
  padding: 0.8rem 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--color-sombre);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-headings);
  font-weight: 600;
  transition: opacity var(--transition-fast);
  display: inline-block;
  margin-top: 0.25rem;
}

.bs-contact-form .wpcf7-submit:hover {
  opacity: 0.85;
}

.wpcf7-response-output {
  margin-top: 1rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.85rem !important;
  border-radius: 0 !important;
  border: 0.0625rem solid var(--color-accent) !important;
  color: var(--color-sombre) !important;
}

@media (max-width: 64rem) {
  .bs-contact-wrap {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }

  .bs-contact-wrap > .bs-contact-info,
  .bs-contact-wrap > .bs-contact-form {
    grid-column: 1;
  }
}

@media (max-width: 40rem) {
  .bs-contact-wrap {
    padding: 0 1rem;
  }

  .bs-form-row--half {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODULE 25 : FORMULAIRE PROFESSIONNEL
   ========================================================================== */
.bs-pro-form {
  max-width: 47.5rem;
  margin-inline: auto;
  line-height: 1.55;
}

.bs-pro-form p { margin: 0 0 1.125rem; }
.bs-pro-form label { font-weight: 400; }

.bs-pro-form input[type="text"],
.bs-pro-form input[type="email"],
.bs-pro-form input[type="tel"],
.bs-pro-form select,
.bs-pro-form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: 0.375rem;
  padding: 0.6875rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: #222;
  background: #fff;
  border: 0.0625rem solid #b5b5b5;
  border-radius: 0.3125rem;
}

.bs-pro-form textarea { min-height: 5.9375rem; resize: vertical; }
.bs-pro-form input[type="file"] { max-width: 100%; font-size: 1rem; }

.bs-pro-form fieldset {
  min-width: 0;
  margin: 1.25rem 0;
  padding: 0;
  border: 0;
}

.bs-pro-form legend {
  float: none;
  width: auto;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.05em;
  font-weight: 400;
}

.bs-pro-form .bs-pro-choices legend {
  font-size: 1em;
  margin-bottom: 0.5rem;
}

.bs-pro-form .wpcf7-list-item {
  display: block;
  margin: 0 0 0.5rem;
}

.bs-pro-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.bs-pro-form input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

.bs-pro-details { margin: 1.5rem 0; }

.bs-pro-details > summary {
  padding: 0.8125rem 1rem;
  color: #222;
  background: #f3f3f3;
  border-radius: 0.3125rem;
  cursor: pointer;
  line-height: 1.5;
}

.bs-pro-details > summary:hover { background: #e8e8e8; }

.bs-pro-details .bs-pro-close-label { display: none; }
.bs-pro-details[open] > summary .bs-pro-open-label { display: none; }
.bs-pro-details[open] > summary .bs-pro-close-label { display: inline; }

.bs-pro-extra { padding-top: 1.125rem; }

.bs-pro-form .bs-pro-privacy { font-size: .9em; }
.bs-pro-form .bs-pro-privacy a { text-decoration: underline; }

.bs-pro-form .wpcf7-submit {
  max-width: 100%;
  padding: 0.8125rem 1.25rem;
  border: 0;
  border-radius: 0.3125rem;
  background: #222;
  color: #fff;
  font-size: 1rem;
  white-space: normal;
  cursor: pointer;
}

.bs-pro-form input:focus-visible,
.bs-pro-form select:focus-visible,
.bs-pro-form textarea:focus-visible,
.bs-pro-form summary:focus-visible,
.bs-pro-form a:focus-visible {
  outline: 0.125rem solid #2563eb;
  outline-offset: 0.1875rem;
}

/* ==========================================================================
   MODULE 26 : UTILITAIRES ET EFFETS TRANSVERSAUX
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  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;
}

.prism_v2 {
  display: block;
}

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(0.06875rem);
}

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

body.blur-site ::placeholder {
  filter: blur(0.06875rem);
}

/* ==========================================================================
   MODULE 27 : PAPCO AVIATION
   Identité, header translucide, menu, footer. Remplace les anciens modules 27 et 28.
   Les styles propres aux sections vivent dans assets/css/ : hero.css, home.css (accueil),
   certifications.css.
   ========================================================================== */

:root {
  --papco-red: #b41412;
  --papco-navy: #0f1d3a;
  --papco-text: #1e293b;
  --papco-muted: #64748b;
  --papco-border: #d9e0e7;
  --papco-white: #ffffff;
  --papco-gray: #f3f5f7;
  --papco-blue-light: #eaf3f9;
  --papco-header-height: 4.75rem;
  --papco-page-padding: 2rem;

  /* Variables historiques du thème rattachées à l'identité PAPCO. */
  --color-sombre: var(--papco-text);
  --color-clair: var(--papco-gray);
  --color-accent: var(--papco-red);
  --color-texte-clair: var(--papco-white);
  --color-texte-gris: var(--papco-muted);
  --color-gris-fonce: var(--papco-navy);
  --color-gris-moyen: var(--papco-muted);
  --color-border: rgba(15, 29, 58, 0.12);
  --color-border-light: rgba(15, 29, 58, 0.10);
  --degrade-blanc: var(--papco-white);
  --related-line: linear-gradient(to right, transparent, var(--papco-red), transparent);
}

/* Base stable : 1rem reste égal à la taille racine du navigateur. */
html {
  font-size: 100% !important;
  width: 100%;
}

body {
  width: 100%;
  min-width: 0;
  background: var(--papco-gray) !important;
  color: var(--papco-text);
}

#page.site {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding-top: var(--papco-header-height);
  overflow-x: clip;
}

.site-content,
.content-area,
.site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.section-inner,
.advantages-inner {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--papco-page-padding);
  padding-right: var(--papco-page-padding);
}

/* Surfaces pour l'alternance des sections. */
.papco-bg-white { background: var(--papco-white) !important; }
.papco-bg-gray { background: var(--papco-gray) !important; }
.papco-bg-blue { background: var(--papco-blue-light) !important; }

/* --------------------------------------------------------------------------
   Header : seul le FOND est translucide (60 % en haut de page, 100 % après une hauteur
   de header de scroll). --header-p (0 à 1) est piloté par assets/js/header-scroll.js ;
   sans lui, le header reste opaque. Le menu et le logo ne sont jamais transparents.
   -------------------------------------------------------------------------- */
#site-header {
  --header-min-alpha: 0.6;
  --header-p: 1;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 640;
  height: var(--papco-header-height);
  margin: 0;
  padding: 0;
  background: rgb(255 255 255 / calc(var(--header-min-alpha) + (1 - var(--header-min-alpha)) * var(--header-p))) !important;
  border-bottom: 0.0625rem solid rgb(15 29 58 / calc(0.10 * var(--header-p)));
}

/* Pages avec hero : transparent dès le chargement, avant que le script ne prenne la main. */
.papco-js body.has-papco-hero #site-header {
  --header-p: 0;
}

.header-inner {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0 var(--papco-page-padding);
  border: 0;
}

.site-logo {
  position: relative;
  z-index: 710;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Logo (téléversé ou de repli) : largeur explicite, la hauteur suit le ratio.
   Indispensable pour un SVG sans dimensions, qui s'effondrerait sinon à 0 de large. */
.site-logo img,
.custom-logo {
  width: var(--papco-logo-width, 11rem);
  max-width: 100%;
  height: auto;
  min-width: 0;
  max-height: 3.5rem;
  object-fit: contain;
}

/* Le menu secondaire de l'ancien thème n'est pas utilisé dans la barre PAPCO. */
.header-right {
  display: none;
}

/* Le menu principal est superposé au header pour former une seule barre. */
.primary-menu-wrapper {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 700;
  width: 100%;
  height: var(--papco-header-height);
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}

.primary-menu-inner {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0 var(--papco-page-padding) 0 14rem;
  justify-content: flex-end;
}

.primary-menu-inner .desktop-menu,
.primary-menu-inner .menu-icons,
.primary-menu-inner .burger-toggle,
.primary-menu-inner .mobile-menu-wrapper {
  pointer-events: auto;
}

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

.primary-menu {
  justify-content: flex-end;
  gap: 1.8rem;
}

.primary-menu > li > a {
  color: var(--papco-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1rem 0;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
  color: var(--papco-red);
}

/* Bouton du menu : ajouter la classe CSS « menu-cta » à l'élément de menu (ex. « Nous contacter »). */
.primary-menu > li.menu-cta > a {
  padding: 0.6rem 1.1rem;
  border: 0.0625rem solid var(--papco-red);
  border-radius: 0.125rem;
  color: var(--papco-red);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-menu > li.menu-cta > a::after {
  content: "\2192";
  margin-left: 0.6rem;
}

.primary-menu > li.menu-cta > a:hover,
.primary-menu > li.menu-cta > a:focus-visible {
  background: var(--papco-red);
  color: var(--papco-white);
}

.primary-menu .sub-menu {
  top: calc(100% - 0.5rem);
  background: var(--papco-white);
  border: 0.0625rem solid var(--papco-border);
  box-shadow: 0 0.5rem 1.5rem rgba(15, 29, 58, 0.12);
}

.primary-menu .sub-menu a {
  color: var(--papco-text);
}

.primary-menu .sub-menu a:hover {
  color: var(--papco-red);
  background: var(--papco-gray);
}

.menu-icon { color: var(--papco-navy); }
.menu-icon:hover { color: var(--papco-red); }

/* Le site est corporate : les raccourcis boutique ne sont pas affichés dans la barre. */
.wishlist-icon,
.mini-cart-wrapper {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Zone sous menu (widget historique, utilisé quand aucune photo de hero n'est définie).
   -------------------------------------------------------------------------- */
.widget-under-menu-area,
.widget-under-menu-area .widget {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.widget-under-menu-area .n2-section-smartslider,
.widget-under-menu-area .n2-ss-slider,
.widget-under-menu-area .n2-ss-slider-wrapper-inside {
  width: 100% !important;
  max-width: none !important;
}

/* --------------------------------------------------------------------------
   Typographie et boutons.
   -------------------------------------------------------------------------- */
.home h1,
.home h2,
.home h3,
.home h4,
.home h5,
.home h6 {
  color: var(--papco-navy);
}

.home h1::before,
.home h1::after,
.home h2::before,
.home h2::after,
.home h3::before,
.home h3::after,
.home h4::before,
.home h4::after,
.home h5::before,
.home h5::after,
.home h6::before,
.home h6::after {
  display: none;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
  border-radius: 0.1875rem;
}

.btn,
input[type="submit"] {
  background: var(--papco-red);
  color: var(--papco-white);
  border: 0.0625rem solid var(--papco-red);
}

.btn:hover,
input[type="submit"]:hover {
  background: #95110f;
  color: var(--papco-white);
  border-color: #95110f;
}

/* --------------------------------------------------------------------------
   Footer : barre en flux normal (sur l'accueil écran large, assets/js/footer-scroll.js
   la fait glisser hors de l'écran puis la repose en bas de page).
   -------------------------------------------------------------------------- */
#papco-footer-anchor {
  height: 0;
}

#site-footer {
  position: relative;
  z-index: 650;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--papco-white);
  color: var(--papco-navy);
  border-top: 0.0625rem solid var(--papco-red);
  will-change: transform;
}

html.papco-footer-fx {
  scroll-padding-bottom: var(--papco-footer-h, 0px);
}

.footer-inner {
  width: 100%;
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 var(--papco-page-padding);
}

.footer-widgets {
  padding: 1.5rem 0;
  border-bottom: 0.0625rem solid var(--papco-border);
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 3.5rem;
  padding: 0.5rem 0;
}

.footer-logo {
  display: block;
  flex: 0 0 auto;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 2.25rem;
}

.footer-menu a {
  color: var(--papco-navy);
  font-size: 0.7rem;
  line-height: 1.2;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: var(--papco-red);
}

.footer-nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li::before {
  content: "|";
  margin: 0 0.9rem;
  color: var(--papco-border);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--papco-navy);
  font-size: 0.7rem;
}

.footer-contact-item svg {
  flex: 0 0 auto;
  color: var(--papco-muted);
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-item a:hover,
.footer-contact-item a:focus-visible {
  color: var(--papco-red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0 0.75rem;
  border-top: 0.0625rem solid var(--papco-border);
}

.footer-copyright,
.footer-baseline {
  margin: 0;
  color: var(--papco-muted);
  font-size: 0.65rem;
  line-height: 1.3;
}

.footer-baseline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-baseline::after {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--papco-red);
}

/* --------------------------------------------------------------------------
   WordPress admin bar.
   -------------------------------------------------------------------------- */
body.admin-bar #site-header,
body.admin-bar .primary-menu-wrapper {
  top: 2rem;
}

/* --------------------------------------------------------------------------
   Tablette / mobile.
   -------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  :root {
    --papco-header-height: 4.25rem;
    --papco-page-padding: 1.25rem;
    --papco-logo-width: 9rem;
  }

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

  .primary-menu-inner {
    max-width: none;
    padding: 0 var(--papco-page-padding) 0 10rem;
    justify-content: flex-end;
  }

  .desktop-menu,
  .mobile-menu-wrapper {
    display: none;
  }

  .burger-toggle {
    display: flex;
    margin: 0 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border: 0.0625rem solid var(--papco-navy);
    color: var(--papco-navy);
  }

  .menu-icons {
    margin-left: 0.75rem;
  }

  .burger-panel {
    width: 22rem;
    max-width: 86%;
    background: var(--papco-white);
  }

  .burger-menu li {
    border-bottom: 0.0625rem solid var(--papco-border);
    background: none;
  }

  .burger-menu a {
    color: var(--papco-navy);
  }

  .burger-menu a:hover {
    color: var(--papco-red);
    background: var(--papco-gray);
  }

  body.admin-bar #site-header,
  body.admin-bar .primary-menu-wrapper {
    top: 2.875rem;
  }

  .footer-main {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .footer-contact {
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 40rem) {
  :root {
    --papco-header-height: 4rem;
    --papco-page-padding: 1rem;
    --papco-logo-width: 7.5rem;
  }

  .header-inner {
    margin: 0;
    padding: 0 var(--papco-page-padding);
  }

  .site-logo img,
  .custom-logo {
    max-width: 7.5rem;
    min-width: 0;
    max-height: 2.75rem;
  }

  .primary-menu-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 var(--papco-page-padding) 0 8rem;
    gap: 0.625rem;
  }

  .menu-icons {
    gap: 0.5rem;
  }

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

  .section-inner,
  .advantages-inner {
    padding-left: var(--papco-page-padding);
    padding-right: var(--papco-page-padding);
  }

  .footer-nav {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .footer-baseline::after {
    display: none;
  }
}
