/*
Theme Name: PAPCO Aviation
Theme URI: https://gaupe.fr
Author: GAUPE
Description: Thème corporate PAPCO Aviation avec boutique WooCommerce.
Version: 1.8.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
*/

/* ==========================================================================
   POLICES (hébergées dans le thème, assets/fonts/ : plus d'appel à Google Fonts)
   Montserrat (police variable, graisses 400 à 700) et Roboto 700,
   jeux de caractères latin et latin étendu. Montserrat latin est préchargée
   dans <head> (papco_preload_fonts(), functions.php).
   ========================================================================== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/roboto-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/roboto-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   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);
}

/* Soulignement au survol : seulement les liens du texte des pages et articles. */
.entry-content 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; }

.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;
}

/* Éléments de premier niveau : toute la hauteur du header (le sous-menu part de son bord bas). */
.primary-menu > li {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.primary-menu > li > a {
  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;
}

/* Sous-menu : sous le header (top: 100 %), aligné sur le libellé du parent.
   Il se déroule du haut vers le bas en 0,75 s (clip-path) avec un léger glissement,
   et les éléments apparaissent un par un. Pas de transition sur top ni height.
   Ouverture au survol et au focus clavier (:focus-within).
   L'animation joue toujours, même si « réduire les animations » est activé (choix de Mehdi). */
.primary-menu .sub-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  min-width: 14.5rem;
  padding: 0;
  list-style: none;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 -2rem 100% -2rem);
  transform: translateY(-0.6rem);
  transition: opacity 0.4s ease,
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              clip-path 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 0.75s;
}

.primary-menu > li:hover > .sub-menu,
.primary-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 -2rem -2rem -2rem);
  transform: none;
  transition-delay: 0s;
}

.primary-menu .sub-menu li {
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-menu > li:hover > .sub-menu li,
.primary-menu > li:focus-within > .sub-menu li {
  opacity: 1;
  transform: none;
}

.primary-menu > li:hover > .sub-menu li:nth-child(1),
.primary-menu > li:focus-within > .sub-menu li:nth-child(1) { transition-delay: 0.1s; }
.primary-menu > li:hover > .sub-menu li:nth-child(2),
.primary-menu > li:focus-within > .sub-menu li:nth-child(2) { transition-delay: 0.18s; }
.primary-menu > li:hover > .sub-menu li:nth-child(3),
.primary-menu > li:focus-within > .sub-menu li:nth-child(3) { transition-delay: 0.26s; }
.primary-menu > li:hover > .sub-menu li:nth-child(4),
.primary-menu > li:focus-within > .sub-menu li:nth-child(4) { transition-delay: 0.34s; }

/* Trait rouge de 1 px sous chaque élément, sauf le dernier. */
.primary-menu .sub-menu li:not(:last-child) {
  border-bottom: 1px solid var(--papco-red, #b41412);
}

/* Liens du sous-menu : typographie dans la règle groupée du MODULE 27. */
.primary-menu .sub-menu a {
  display: block;
  padding: 0.95rem 1.25rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible {
  padding-left: 1.5rem;
  text-decoration: none;
}

.primary-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  right: auto;
  transform: none;
}

.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 : CARTE PRODUIT, FAVORIS (CONTENEUR)
   ========================================================================== */
@media (max-width: 40rem) {
  .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: var(--papco-red);
  color: #fff;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

ul.page-numbers li a.page-numbers:hover,
ul.page-numbers li a.page-numbers:focus-visible {
  background-color: #8f0f0e;
}

ul.page-numbers li span.page-numbers.current {
  background-color: #8f0f0e;
}

/* Wishlist card produit */
.product-card-wishlist {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 10;
}

.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;
}

/* --- 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);
  }

  .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; }

/* --- 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 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;
}

/* --- 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 22 : BLOCS DE CONTENU ET RATIOS D'IMAGE
   ========================================================================== */

.gaupe-block-5050-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.25rem;
}

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-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;
  }

}

/* ==========================================================================
   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;
}

/* 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) {

  .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-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.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;
}

/* ==========================================================================
   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 .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-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,
.screen-reader-text {
  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;
}

/* Lien d'évitement : visible seulement au focus clavier. */
.skip-link.screen-reader-text:focus {
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  clip: auto;
  background: var(--papco-white, #fff);
  color: var(--papco-navy, #0f1d3a);
  font-weight: 600;
}

.hidden { display: none; }

.summary { width: 95% !important; margin: 0 auto; }

.prism_v2 {
  display: block;
}

/* ==========================================================================
   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, blog.css (articles, pages, listes).
   ========================================================================== */

: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);
}

/* Colonne flex : .site-content prend la place restante, le footer reste en bas
   de l'écran quand le contenu est court. */
#page.site {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding-top: var(--papco-header-height);
  overflow-x: clip;
}

#page.site > .site-content {
  flex: 1 0 auto;
}

.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 {
  height: 100%;
  margin-left: auto;
  margin-right: 0;
}

.primary-menu {
  height: 100%;
  justify-content: flex-end;
  gap: 1.8rem;
}

/* Typographie commune aux liens du menu principal et du sous-menu (une seule règle). */
.primary-menu > li > a,
.primary-menu .sub-menu a {
  font-family: var(--font-headings);
  color: var(--papco-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.primary-menu > li > a {
  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 {
  background: var(--papco-white);
  border: 0;
  box-shadow: 0 0.75rem 1.75rem rgba(15, 29, 58, 0.12);
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible,
.primary-menu .sub-menu .current-menu-item > a {
  color: var(--papco-red);
}

/* --------------------------------------------------------------------------
   Balayage du fond (lien des expertises, boutons du hero) : la couche
   .papco-wipe__over (texte blanc sur fond coloré) est découpée par clip-path
   jusqu'à --wipe, avec une pointe en chevron de --tip.
   --wipe doit hériter (inherits: true) pour être lu par la couche over.
   L'animation joue toujours, même si « réduire les animations » est activé (choix de Mehdi).
   -------------------------------------------------------------------------- */
@property --wipe {
  syntax: '<length-percentage>';
  inherits: true;
  initial-value: 0%;
}

.papco-wipe {
  --tip: 0.9rem;
  --wipe: 0%;
  position: relative;
  display: inline-flex;
  overflow: hidden;
  text-decoration: none;
  transition: --wipe 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.papco-wipe:hover,
.papco-wipe:focus-visible {
  --wipe: calc(100% + var(--tip));
  text-decoration: none;
}

.papco-wipe--chevron:hover,
.papco-wipe--chevron:focus-visible {
  --wipe: 100%;
}

.papco-wipe__base,
.papco-wipe__over {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

.papco-wipe__over {
  position: absolute;
  inset: 0;
  color: #fff;
  pointer-events: none;
  clip-path: polygon(0 0, calc(var(--wipe) - var(--tip)) 0, var(--wipe) 50%,
                     calc(var(--wipe) - var(--tip)) 100%, 0 100%);
}

/* Boutique : aucun produit trouvé, message puis formulaire de demande de pièce. */
.papco-no-products {
  box-sizing: border-box;
  max-width: 87.5rem;
  margin: 2.5rem auto 4rem;
  padding: 0 var(--papco-page-padding);
}

.papco-no-products-message {
  max-width: 60rem;
  margin: 0 0 1.5rem;
  color: var(--papco-navy);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.papco-no-products-form {
  max-width: 60rem;
}

.menu-icon { color: var(--papco-navy); }
.menu-icon:hover { color: var(--papco-red); }

/* La wishlist n'est pas affichée dans la barre ; le mini-panier sert de liste de devis (1.6.6). */
.wishlist-icon {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Zone sous menu (widget historique, utilisé seulement là où le hero est désactivé).
   -------------------------------------------------------------------------- */
.widget-under-menu-area,
.widget-under-menu-area .widget {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   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 {
    display: none;
  }

  /* Menu « Main menu (mobile) » : une enveloppe (Contact) de la taille de la loupe, à gauche des icônes. */
  .mobile-menu-wrapper {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: 0.75rem;
  }

  .mobile-menu-wrapper .mobile-menu {
    display: flex;
    align-items: center;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    list-style: none;
  }

  .mobile-menu-wrapper .mobile-menu > li {
    display: flex;
    align-items: center;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .mobile-menu-wrapper .mobile-menu > li > a.mobile-menu-icon {
    padding: 0;
    border: 0;
    background: none;
    line-height: 1;
  }

  .mobile-menu-wrapper .mobile-menu > li > a.mobile-menu-icon::after {
    content: 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;
  }
}

/* Catalogue : l'image du produit remplit toute la largeur de sa carte, centrée. */
.products .product > a.woocommerce-loop-product__link:first-child {
  display: block;
}

.products .product img.attachment-woocommerce_thumbnail {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
