/* ==========================================================================
   X-ADV Shop — refonte v2 (novembre 2026)
   Remplace xadv-2026.css quand elle est active (voir _partials/stylesheets.tpl).
   Chargée après custom.css. Typo titres : Barlow Condensed (auto-hébergée, OFL).
   Motifs : lignes de niveau "carte topo" + bandes rouges inclinées du logo.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: optional; src: url("../fonts/bc-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: optional; src: url("../fonts/bc-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bc-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/bc-700i.woff2") format("woff2"); }

:root {
  --xa-noir: #131417;
  --xa-noir-2: #1d1f23;
  --xa-texte: #26282c;
  --xa-gris: #6b6e73;
  --xa-gris-clair: #9a9da1;
  --xa-trait: #e3e3de;
  --xa-fond: #f4f4f1;
  --xa-fond-2: #ecece8;
  --xa-rouge: #e30613;
  --xa-rouge-fonce: #b5040f;
  --xa-rouge-vif: #ff3b3b;
  --xa-or: #d2a23a;
  --xa-vert: #1f7a3a;
  --xa-rayon: 6px;
  --xa-rayon-l: 10px;
  --xa-ombre: 0 1px 2px rgba(19, 20, 23, .06);
  --xa-ombre-survol: 0 18px 32px -18px rgba(19, 20, 23, .45);
  --xa-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --xa-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='280' viewBox='0 0 560 280'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M-10 30C110 0 300 64 570 24'/%3E%3Cpath d='M-10 58C120 26 310 92 570 52'/%3E%3Cpath d='M-10 88C130 60 300 118 570 84'/%3E%3Cpath d='M-10 118C140 84 320 156 570 112'/%3E%3Cpath d='M-10 150C130 128 330 178 570 146'/%3E%3Cpath d='M-10 178C120 150 340 212 570 172'/%3E%3Cpath d='M-10 210C140 186 320 236 570 206'/%3E%3Cpath d='M-10 238C150 208 330 270 570 232'/%3E%3Cpath d='M-10 268C140 248 330 290 570 262'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
/* Icônes : tant que la police d'icônes n'est pas chargée, le navigateur écrit le nom
   ("shopping_cart"...) en toutes lettres, ce qui décale l'en-tête puis toute la page.
   On réserve un carré de 1em dès le départ. */
.material-icons {
  display: inline-block;
  width: 1em;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
}
body {
  color: var(--xa-texte);
}
@media (min-width: 1024px) {
  #wrapper {
    background: linear-gradient(180deg, #ececE9 0%, #e3e3df 100%);
    padding-bottom: 2rem;
  }
  #wrapper > .container {
    background: #fff;
    box-shadow: 0 0 24px rgba(0, 0, 0, .06);
  }
  #wrapper #notifications .container {
    background: transparent;
    box-shadow: none;
  }
}
#wrapper > .container {
  padding-bottom: 1.5rem;
}

/* Boutons */
.btn-primary,
.btn-primary:focus {
  background: var(--xa-rouge);
  border-color: var(--xa-rouge);
  color: #fff;
  border-radius: var(--xa-rayon);
  box-shadow: none;
  font-family: var(--xa-cond);
  font-weight: 700;
  letter-spacing: .05em;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:active:hover,
.btn-primary:active:focus {
  background: var(--xa-rouge-fonce);
  border-color: var(--xa-rouge-fonce);
  color: #fff;
}
.btn-primary.disabled,
.btn-primary:disabled,
.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
  background: #a3a5a8;
  border-color: #a3a5a8;
}
.btn-secondary,
.btn-tertiary {
  border-radius: var(--xa-rayon);
  box-shadow: none;
  font-family: var(--xa-cond);
  font-weight: 600;
  letter-spacing: .04em;
}
:focus-visible {
  outline: 2px solid var(--xa-rouge);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  body #header .header-nav,
  body#checkout #header .header-nav {
    background: var(--xa-noir);
    border-bottom: 0;
    box-shadow: inset 0 -3px 0 var(--xa-rouge);
  }
  /* Hauteur fixe : le texte de contact peut passer sur 2 lignes le temps que la police
     arrive, sans pousser toute la page vers le bas (décalage mesuré sur l'ancien site). */
  body #header .header-nav {
    height: 48px;
    max-height: 48px;
    overflow: visible;
  }
  #header .header-nav #_desktop_contact_link {
    display: flex;
    align-items: center;
    height: 45px;
  }
  #header .header-nav #contact-link {
    line-height: 1.25;
  }
  #header .header-nav .blockcart {
    background: transparent;
  }
  #header .header-nav .cart-preview.active {
    background: var(--xa-rouge);
  }
  #header .header-nav #search_widget form input[type="text"] {
    height: 36px;
    background: #fff;
    border: 0;
    border-radius: var(--xa-rayon);
    color: #222;
  }
  #header .header-nav #search_widget .material-icons.search {
    color: var(--xa-gris);
  }
  #header .header-top {
    padding-bottom: 0;
    border-bottom: 1px solid var(--xa-trait);
    box-shadow: 0 6px 16px -14px rgba(0, 0, 0, .5);
    position: relative;
  }
  #header #mega_menu_plus {
    margin-bottom: 0;
  }
  #header #mega_menu_plus ul.mg-menu {
    border-bottom: 0;
  }
}
#header a:hover {
  color: var(--xa-rouge-vif);
}
#header .header-top a:hover {
  color: var(--xa-rouge);
}

/* Menu principal (bamegamenu) */
@media (min-width: 992px) {
  #header #mega_menu_plus ul.mg-menu > li > a {
    padding-top: .15rem;
    padding-bottom: .35rem;
    background-image: linear-gradient(var(--xa-rouge), var(--xa-rouge));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 3px;
    transition: background-size .22s ease;
  }
  #header #mega_menu_plus ul.mg-menu > li:hover > a {
    background-size: 100% 3px;
  }
  #header #mega_menu_plus ul.mg-menu > li > a .menu-item-link-text {
    font-family: var(--xa-cond);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--xa-noir);
    transition: color .15s ease;
  }
  #header #mega_menu_plus ul.mg-menu > li:hover > a .menu-item-link-text {
    color: var(--xa-rouge);
  }
  body #header #mega_menu_plus ul.mg-menu li div.sub {
    border: 0 !important;
    border-top: 3px solid var(--xa-rouge) !important;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .45) !important;
  }
  #header #mega_menu_plus .sub .menu-item-link-text {
    font-family: var(--xa-cond);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: .02em;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  #header #mega_menu_plus ul.mg-menu > li > a .menu-item-link-text {
    font-family: var(--xa-cond);
    font-size: 1.2rem;
    font-weight: 700;
  }
}

/* Menu "mobile" du module (affiché jusqu'à 991 px) */
@media (max-width: 991px) {
  #header #mega_menu_plus .mobi,
  #header #mega_menu_plus .mobi a {
    background: var(--xa-noir) !important;
    border-radius: var(--xa-rayon);
  }
  #header #mega_menu_plus .mobi a,
  #header #mega_menu_plus .mobi .menu-item-link-text {
    color: #fff !important;
    font-family: var(--xa-cond);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
}
@media (min-width: 768px) and (max-width: 768px) {
  #header .header-nav #search_widget {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  #header .header-nav #contact-link,
  #header .header-nav #contact-link a {
    font-size: 12px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #header #mega_menu_plus ul.mg-menu > li {
    padding-left: 4px;
    padding-right: 4px;
  }
  #header #mega_menu_plus ul.mg-menu > li > a .menu-item-link-text {
    font-size: 1.08rem;
    letter-spacing: 0;
  }
}

/* En-tête mobile */
@media (max-width: 767px) {
  #header {
    box-shadow: 0 6px 16px -14px rgba(0, 0, 0, .55);
  }
  #wrapper #content-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  #rechercheM #search_widget form input[type="text"] {
    border-radius: var(--xa-rayon);
  }
}

/* --------------------------------------------------------------------------
   Fil d'Ariane
   -------------------------------------------------------------------------- */
#wrapper .breadcrumb {
  background: transparent;
  padding: .55rem 0 .7rem;
  margin: 0;
}
#wrapper .breadcrumb li,
#wrapper .breadcrumb li a {
  font-family: var(--xa-cond);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--xa-gris);
}
#wrapper .breadcrumb li a:hover {
  color: var(--xa-rouge);
}
#wrapper .breadcrumb li:last-child,
#wrapper .breadcrumb li:last-child a,
#wrapper .breadcrumb li:last-child span {
  color: var(--xa-noir);
  font-weight: 700;
}
#wrapper .breadcrumb li::after {
  margin: 0 .4em;
  color: var(--xa-rouge);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Titres de section (accueil, listes, accessoires, modules)
   -------------------------------------------------------------------------- */
#wrapper .featured-products h2.products-section-title,
#wrapper #products h2.products-section-title,
#wrapper .product-accessories h3.titreh3,
#wrapper h1#js-product-list-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.75rem 0 1.25rem;
  padding: 0;
  background: transparent;
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
}
#wrapper .featured-products h2.products-section-title::before,
#wrapper #products h2.products-section-title::before,
#wrapper .product-accessories h3.titreh3::before,
#wrapper h1#js-product-list-header::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 1.05em;
  background: var(--xa-rouge);
  box-shadow: 6px 0 0 -1px rgba(227, 6, 19, .35);
  transform: skewX(-18deg);
}
#wrapper .featured-products h2.products-section-title::after,
#wrapper #products h2.products-section-title::after,
#wrapper .product-accessories h3.titreh3::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  margin-left: .4rem;
  background: linear-gradient(90deg, var(--xa-trait), transparent);
}

/* --------------------------------------------------------------------------
   Catégorie : bandeau (xadv-category-hero.tpl)
   -------------------------------------------------------------------------- */
.xa-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.75rem;
  margin: 0 0 1.5rem;
  padding: 1.75rem 230px 1.75rem 1.75rem;
  overflow: hidden;
  border-radius: var(--xa-rayon-l);
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 55%),
    var(--xa-topo),
    var(--xa-noir);
  box-shadow: 0 16px 30px -22px rgba(0, 0, 0, .7);
}
.xa-hero::before,
.xa-hero::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  transform: skewX(-20deg);
  pointer-events: none;
}
.xa-hero::before {
  right: 92px;
  width: 26px;
  background: var(--xa-rouge);
}
.xa-hero::after {
  right: 44px;
  width: 30px;
  background: repeating-linear-gradient(90deg, rgba(227, 6, 19, .55) 0 6px, transparent 6px 12px);
}
.xa-hero--noimg {
  grid-template-columns: minmax(0, 1fr);
}
.xa-hero__media {
  width: 132px;
  height: 132px;
  padding: 8px;
  border-radius: var(--xa-rayon);
  background: #fff;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8);
}
.xa-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.xa-hero__kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .35rem;
  color: #ff5a5a;
  font-family: var(--xa-cond);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.1;
  text-transform: uppercase;
}
.xa-hero__kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--xa-rouge);
  transform: skewX(-20deg);
}
#main .xa-hero h1.xa-hero__title {
  margin: 0;
  color: #fff;
  font-family: var(--xa-cond);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: .005em;
  line-height: .98;
  text-transform: uppercase;
}
.xa-hero__desc,
.xa-hero__desc p,
.xa-hero__desc span {
  color: #cdced1;
  font-size: .95rem;
  line-height: 1.6;
}
.xa-hero__desc {
  max-width: 78ch;
  margin-top: .8rem;
}
.xa-hero__desc p {
  margin: 0 0 .4rem;
}
.xa-hero__desc p:last-child {
  margin-bottom: 0;
}
.xa-hero__desc a,
.xa-hero__desc strong,
.xa-hero__desc b {
  color: #fff;
  font-weight: 600;
}
.xa-hero__desc a {
  text-decoration: underline;
  text-decoration-color: rgba(227, 6, 19, .9);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.xa-hero__desc a:hover {
  color: #fff;
  text-decoration-color: #fff;
}
.js-xa-clamp.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.xa-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .55rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--xa-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.xa-more.is-pending {
  visibility: hidden;
}
.xa-more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--xa-rouge-vif);
  border-bottom: 2px solid var(--xa-rouge-vif);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.xa-more[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

/* --------------------------------------------------------------------------
   Catégorie : sous-catégories
   -------------------------------------------------------------------------- */
#main #subcategories.xa-subcats {
  margin: 0 0 1.75rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
#main #subcategories.xa-subcats ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#main #subcategories.xa-subcats ul::before,
#main #subcategories.xa-subcats ul::after {
  display: none;
}
#main #subcategories.xa-subcats ul li {
  position: relative;
  display: flex;
  flex-direction: column;
  float: none;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--xa-trait);
  border-radius: var(--xa-rayon);
  background: #fff;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
#main #subcategories.xa-subcats ul li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--xa-rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
#main #subcategories.xa-subcats ul li a.img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 118px;
  padding: 12px;
  background: linear-gradient(180deg, #f7f7f5 0%, #ececE8 100%);
  line-height: 0;
}
#main #subcategories.xa-subcats ul li img,
#main #subcategories.xa-subcats ul li img:hover {
  width: auto;
  height: 94px;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: multiply;
  transition: transform .3s ease;
}
#main #subcategories.xa-subcats ul li h5 {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  margin: 0;
  padding: .6rem .75rem .7rem;
}
#main #subcategories.xa-subcats ul li .subcategory-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
}
#main #subcategories.xa-subcats ul li .subcategory-name::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--xa-rouge);
  border-right: 2px solid var(--xa-rouge);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
#main #subcategories.xa-subcats ul li .subcategory-name::before {
  /* toute la tuile est cliquable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
@media (hover: hover) {
  #main #subcategories.xa-subcats ul li:hover {
    border-color: #cdcdc8;
    box-shadow: var(--xa-ombre-survol);
    transform: translateY(-3px);
  }
  #main #subcategories.xa-subcats ul li:hover::after {
    transform: scaleX(1);
  }
  #main #subcategories.xa-subcats ul li:hover img {
    transform: scale(1.06);
  }
  #main #subcategories.xa-subcats ul li:hover .subcategory-name {
    color: var(--xa-rouge);
  }
  #main #subcategories.xa-subcats ul li:hover .subcategory-name::after {
    transform: translateX(3px) rotate(45deg);
  }
}

/* --------------------------------------------------------------------------
   Liste : barre de tri, pagination
   -------------------------------------------------------------------------- */
#products .products-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: .55rem .5rem;
  border-radius: var(--xa-rayon);
  background: var(--xa-fond);
}
#products .products-selection .total-products p,
#products .products-selection .sort-by,
#products .products-selection .showing {
  margin: 0;
  padding-top: 0;
  color: var(--xa-gris);
  font-family: var(--xa-cond);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
#products .products-selection .sort-by-row {
  align-items: center;
}
#products .products-selection .sort-by {
  text-align: right;
  white-space: nowrap;
}
#products .products-sort-order .select-title {
  height: 40px;
  padding: .45rem .8rem;
  border: 1px solid #d3d3ce;
  border-radius: var(--xa-rayon);
  background: #fff;
  box-shadow: none;
  color: var(--xa-noir);
  font-weight: 600;
}
#products .products-sort-order .select-title:hover {
  border-color: var(--xa-noir);
}
#products .products-sort-order .dropdown-menu {
  border: 0;
  border-radius: var(--xa-rayon);
  box-shadow: var(--xa-ombre-survol);
}
#products .products-sort-order .select-list:hover {
  background: var(--xa-rouge);
  color: #fff;
}

.pagination {
  margin-top: 1rem;
  font-family: var(--xa-cond);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--xa-gris);
}
.pagination .page-list {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.pagination .page-list li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .65rem;
  border: 1px solid var(--xa-trait);
  border-radius: var(--xa-rayon);
  background: #fff;
  color: var(--xa-noir);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.pagination .page-list li a:hover {
  border-color: var(--xa-noir);
  color: var(--xa-rouge);
}
.pagination .page-list li.current a {
  border-color: var(--xa-rouge);
  background: var(--xa-rouge);
  color: #fff;
}
.pagination .page-list li a .material-icons {
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Rubriques de liste (pièces d'origine / marques phares / compatibles)
   -------------------------------------------------------------------------- */
#wrapper #produitsorigine,
#wrapper #produitsreco,
#wrapper #toutproduits {
  --accent: var(--xa-rouge);
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  margin: 1.75rem 0 1.1rem;
  padding: .75rem 1.25rem .75rem 104px;
  overflow: hidden;
  border: 0;
  border-radius: var(--xa-rayon);
  background: linear-gradient(90deg, var(--xa-fond) 0%, #fafaf8 100%);
  box-shadow: inset 0 -2px 0 var(--accent);
}
#wrapper #produitsreco {
  --accent: var(--xa-or);
}
#wrapper #toutproduits {
  --accent: var(--xa-noir);
  display: block;
}
#wrapper #produitsorigine::before,
#wrapper #produitsreco::before,
#wrapper #toutproduits::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22px;
  width: 104px;
  background: var(--accent);
  transform: skewX(-14deg);
}
#wrapper #toutproduits::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23131417' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 22px no-repeat;
}
#wrapper #produitsorigine img,
#wrapper #produitsreco img {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
#wrapper #produitsoriginetext,
#wrapper #produitsrecotext {
  display: block;
  margin: 0;
}
#wrapper #produitsorigine h3,
#wrapper #produitsreco h3,
#wrapper #toutproduits h3 {
  margin: 0;
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.05;
  text-transform: uppercase;
}
#wrapper #produitsorigine p,
#wrapper #produitsreco p,
#wrapper #toutproduits p {
  margin: .2rem 0 0;
  color: var(--xa-gris);
  font-size: .88rem;
  font-style: normal;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Grilles de produits
   -------------------------------------------------------------------------- */
#wrapper #js-product-list .products,
#wrapper .featured-products .products,
#wrapper .product-accessories .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 1.1rem;
  margin: 0 0 1.5rem;
  padding: 0;
}
#wrapper #js-product-list .products::before,
#wrapper #js-product-list .products::after,
#wrapper .featured-products .products::before,
#wrapper .featured-products .products::after,
#wrapper .product-accessories .products::before,
#wrapper .product-accessories .products::after {
  display: none;
}
#wrapper .products > .js-product.product {
  display: flex;
  float: none;
  width: auto;
  max-width: none;
  min-width: 0;
  flex: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Vignette produit
   -------------------------------------------------------------------------- */
#wrapper .products .product-miniature {
  display: flex;
  width: 100%;
  margin: 0;
}
#wrapper .products .product-miniature .thumbnail-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--xa-trait);
  border-radius: var(--xa-rayon-l);
  background: #fff;
  box-shadow: var(--xa-ombre);
  container-type: inline-size;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
#wrapper .products .product-miniature .thumbnail-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 3px;
  background: var(--xa-rouge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
#wrapper .products .product-miniature .xa-card__media {
  position: relative;
}
#wrapper .products .product-miniature .product-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 10px;
  overflow: hidden;
  background: #fff;
}
#wrapper .products .product-miniature .product-thumbnail img {
  position: static;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  transition: transform .4s ease;
}
#wrapper .products .product-miniature img.manufacturer {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: auto;
  max-width: 42%;
  height: auto;
  max-height: 36px;
  margin: 0;
  padding: 2px 4px;
  border-radius: 3px;
  background: #fff;
  pointer-events: none;
}

/* Contenu des packs (vignettes des produits inclus) */
#wrapper .products .product-miniature .packitems {
  position: absolute;
  top: 70%;
  top: calc(100cqw - 54px);
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  pointer-events: none;
}
#wrapper .products .product-miniature .pack-item {
  flex: 0 0 auto;
  height: 40px;
  height: clamp(22px, 12.5cqw, 40px);
  margin: 0;
}
#wrapper .products .product-miniature .packitems img,
#wrapper .products .product-miniature .packitems img:hover {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 1px solid #c9c9c4;
  border-radius: 4px;
  background: #fff;
}
#wrapper .products .product-miniature .plus-item {
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

/* Drapeaux (remise, promo, nouveau, pack) */
#wrapper .products .product-miniature .product-flags {
  position: absolute;
  top: 10px;
  right: 0;
  left: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  width: auto;
  margin: 0;
  pointer-events: none;
}
#wrapper .products .product-miniature .product-flags li.product-flag {
  position: static;
  display: block;
  min-width: 0;
  min-height: 0;
  width: auto;
  margin: 0;
  padding: .18rem .65rem .18rem 1.05rem;
  border-radius: 0;
  background: var(--xa-noir);
  box-shadow: none;
  color: #fff;
  font-family: var(--xa-cond);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.25;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}
#wrapper .products .product-miniature .product-flags li.product-flag.discount {
  background: var(--xa-rouge);
  font-size: 1.15rem;
}
#wrapper .products .product-miniature .product-flags li.product-flag.out_of_stock {
  background: var(--xa-gris);
}
#wrapper .products .product-miniature .product-price-and-shipping .discount-product {
  display: none;
}

/* Texte de la vignette */
#wrapper .products .product-miniature .product-description {
  position: relative;
  top: auto;
  bottom: auto;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: auto;
  height: auto;
  padding: .75rem .9rem .85rem;
  border-top: 1px solid #efefeb;
  background: #fff;
  text-align: left;
}
#wrapper .products .product-miniature .product-title {
  margin: 0 0 .55rem;
  padding: 0 2.4rem 0 0;
  overflow: visible;
  white-space: normal;
  text-align: left;
  text-transform: none;
}
#wrapper .products .product-miniature .product-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.6em;
  overflow: hidden;
  color: var(--xa-texte);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}
#wrapper .products .product-miniature .product-title a::after {
  /* toute la vignette est cliquable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
#wrapper .products .product-miniature .thumbnail-container .product-description {
  position: static;
}
#wrapper .products .product-miniature .product-price-and-shipping {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .5rem;
  margin-top: auto;
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-weight: 700;
  text-align: left;
}
#wrapper .products .product-miniature .product-price-and-shipping .price {
  font-size: 1.55rem;
  line-height: 1;
}
#wrapper .products .product-miniature .product-price-and-shipping .regular-price {
  order: 2;
  color: var(--xa-gris-clair);
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: line-through;
}
#wrapper .products .product-miniature .product-price-and-shipping .regular-price ~ .price {
  color: var(--xa-rouge);
}
#wrapper .products .product-miniature .product-description::after {
  /* pastille flèche */
  content: "";
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--xa-fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23131417' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: background-color .2s ease;
}
@media (hover: hover) {
  #wrapper .products .product-miniature .thumbnail-container:hover {
    border-color: #cfcfca;
    box-shadow: var(--xa-ombre-survol);
    transform: translateY(-4px);
  }
  #wrapper .products .product-miniature .thumbnail-container:hover::after {
    transform: scaleX(1);
  }
  #wrapper .products .product-miniature .thumbnail-container:hover .product-thumbnail img {
    transform: scale(1.04);
  }
  #wrapper .products .product-miniature .thumbnail-container:hover .product-title a {
    color: var(--xa-rouge);
  }
  #wrapper .products .product-miniature .thumbnail-container:hover .product-description::after {
    background-color: var(--xa-rouge);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
  }
}

/* --------------------------------------------------------------------------
   Accueil
   -------------------------------------------------------------------------- */
#wrapper #super_counter {
  position: relative;
  width: auto;
  margin: 2rem 0;
  padding: 2rem 1rem 1.8rem;
  overflow: hidden;
  border-radius: var(--xa-rayon-l);
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 60%),
    var(--xa-topo),
    var(--xa-noir);
  color: #fff;
}
#wrapper #super_counter::before,
#wrapper #super_counter::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 22px;
  background: var(--xa-rouge);
  transform: skewX(-20deg);
}
#wrapper #super_counter::before {
  left: 40px;
}
#wrapper #super_counter::after {
  right: 40px;
}
#wrapper #super_counter .super_counter_lbl {
  font-family: var(--xa-cond);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
#wrapper #super_counter .super_counter_lbl_2 {
  color: #cdced1;
  font-family: inherit;
  font-size: .95rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: none;
}
#wrapper #super_counter #super_counter_nb {
  margin: .2rem 0;
  font-family: var(--xa-cond);
  font-size: clamp(3.6rem, 11vw, 7rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}

#wrapper #custom-text {
  margin: 1rem 0;
  padding: 1.5rem 15px;
}
#wrapper #custom-text h1 {
  margin: 0 0 .8rem;
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
}
#wrapper #custom-text h2 {
  margin: 0 0 1rem;
  color: #3a3c40;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}
#wrapper #custom-text p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--xa-trait);
  color: var(--xa-gris);
  font-size: .86rem;
  line-height: 1.65;
  text-align: left;
}
#wrapper #custom-text img {
  border-radius: var(--xa-rayon);
}
#wrapper .page-home .banner img {
  border-radius: var(--xa-rayon-l);
}

/* --------------------------------------------------------------------------
   Fiche produit
   -------------------------------------------------------------------------- */
.xa-product__top {
  margin-top: .25rem;
}
.xa-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .35rem;
  color: var(--xa-rouge);
  font-family: var(--xa-cond);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.xa-brand::before {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--xa-rouge);
  transform: skewX(-20deg);
}
.xa-brand:hover {
  color: var(--xa-rouge-fonce);
}
#product #encaps h1.h1 {
  margin: 0 0 .9rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.02;
  text-transform: uppercase;
}

/* Prix */
#product .product-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .9rem;
  margin: 0 0 1rem;
}
#product .product-prices .product-price {
  margin: 0;
}
#product .product-prices .current-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}
#product .product-prices .current-price-value {
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: clamp(2.4rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}
#product .product-prices .has-discount .current-price-value {
  color: var(--xa-rouge);
}
#product .product-prices .product-discount {
  order: 2;
}
#product .product-prices .product-discount .regular-price {
  margin: 0;
  color: var(--xa-gris-clair);
  font-family: var(--xa-cond);
  font-size: 1.35rem;
  font-weight: 500;
}
#product .has-discount .discount,
#product .product-prices .discount {
  margin: 0;
  padding: .2rem .7rem .2rem 1rem;
  border-radius: 0;
  background: var(--xa-rouge);
  color: #fff;
  font-family: var(--xa-cond);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}
#product .product-pack-price {
  flex-basis: 100%;
  margin: 0;
  padding: 0;
  background: none;
}
#product .product-pack-price span {
  display: inline-block;
  padding: .2rem .7rem .2rem 1rem;
  background: var(--xa-noir);
  color: #fff;
  font-family: var(--xa-cond);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}
#product .tax-label {
  color: var(--xa-gris);
  font-size: .9rem;
}
#product #reduc {
  flex-basis: 100%;
  padding: .6rem .8rem;
  border: 0;
  border-left: 3px solid var(--xa-rouge);
  border-radius: 0 var(--xa-rayon) var(--xa-rayon) 0;
  background: #fdf1f1;
}

/* Compatibilité */
.xa-compat {
  margin: 0 0 1.1rem;
  padding: .75rem .85rem .8rem;
  border: 1px solid #d5e7d9;
  border-radius: var(--xa-rayon);
  background: #f2f8f3;
}
.xa-compat__label {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .5rem;
  color: var(--xa-vert);
  font-family: var(--xa-cond);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.xa-compat__label::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--xa-vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.xa-compat__list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xa-compat__list li {
  margin: 0;
  padding: .15rem .55rem;
  border: 1px solid #cfe2d4;
  border-radius: 4px;
  background: #fff;
  color: #20402a;
  font-family: var(--xa-cond);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
}

/* Description courte */
#product .xa-short,
#product .xa-short p {
  color: #3b3d42;
  font-size: .95rem;
  line-height: 1.65;
}
#product .xa-short ul {
  padding-left: 1.1rem;
}

/* Bloc d'achat */
#product .product-actions {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem 1rem;
  border: 1px solid var(--xa-trait);
  border-radius: var(--xa-rayon-l);
  background: #fafaf8;
}
#product .product-actions form {
  display: flex;
  flex-direction: column;
}
#product .product-actions form > * {
  order: 5;
}
#product .product-actions form > .product-variants {
  order: 1;
}
#product .product-actions form > .product-pack {
  order: 2;
}
#product .product-actions form > .product-discounts {
  order: 3;
}
#product .product-actions form > .product-add-to-cart {
  order: 4;
}
#product .product-actions form > .newpay {
  order: 6;
  margin: .75rem 0 0;
}
#product .product-actions form > .newpay img {
  max-width: 100%;
  height: auto;
  opacity: .9;
}
#product .product-actions .product-variants {
  margin: 0;
}
#product .product-actions .product-variants > .product-variants-item {
  margin: 0 0 .9rem;
}
#product .product-variants .control-label,
#product .product-add-to-cart .control-label {
  display: block;
  margin-bottom: .35rem;
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
#product .product-variants select.form-control {
  width: 100%;
  max-width: 100%;
  height: 46px;
  padding: 0 2.2rem 0 .8rem;
  border: 1px solid #cdcdc8;
  border-radius: var(--xa-rayon);
  background-color: #fff;
  box-shadow: none;
  color: var(--xa-noir);
  font-weight: 600;
}
#product .product-variants select.form-control:focus {
  border-color: var(--xa-noir);
}
#product .product-variants .input-color + span.color,
#product .product-variants .color {
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cdcdc8;
}
#product .product-variants .input-color:checked + span {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--xa-rouge);
}
#product .product-variants .input-container .radio-label {
  border-radius: var(--xa-rayon);
  box-shadow: inset 0 0 0 1px #cdcdc8;
  font-weight: 600;
}
#product .product-variants .input-radio:checked + span {
  background: var(--xa-noir);
  color: #fff;
  box-shadow: none;
}
#product #product-availability {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: 0 0 .8rem;
  color: var(--xa-vert);
  font-family: var(--xa-cond);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .01em;
}
#product #product-availability .material-icons {
  font-size: 1.35rem;
}
#product #product-availability .product-last-items,
#product #product-availability .product-unavailable {
  color: #c27200;
}
#product .product-quantity {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: .6rem;
}
#product .product-quantity .qty {
  flex: 0 0 auto;
  margin: 0;
}
#product .product-quantity #quantity_wanted {
  height: 54px;
  border-radius: var(--xa-rayon) 0 0 var(--xa-rayon);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}
#product .product-quantity .input-group-btn-vertical .btn {
  height: 27px;
}
#product .product-quantity .add {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#product .product-add-to-cart .add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: 54px;
  padding: 0 1.25rem;
  font-size: 1.3rem;
  letter-spacing: .06em;
  box-shadow: 0 10px 20px -12px rgba(227, 6, 19, .9);
}
#product .product-add-to-cart .add-to-cart {
  overflow: hidden;
  white-space: nowrap;
}
#product .product-add-to-cart .add-to-cart .material-icons {
  margin: 0;
  font-size: 1.5rem;
}
#product .product-minimal-quantity {
  margin: .4rem 0 0;
}
/* Doublon du module "déjà vus" dans le bloc d'achat (il reste affiché sous la fiche) */
#product .product-actions .featured-products {
  display: none;
}

/* Contenu d'un pack */
#product .product-pack {
  margin: 0 0 1rem;
}
#product .product-pack .h4 {
  font-family: var(--xa-cond);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#product .product-pack article .card {
  margin-bottom: .5rem;
  border: 1px solid var(--xa-trait);
  border-radius: var(--xa-rayon);
  box-shadow: none;
}
#product .product-pack .pack-product-container {
  align-items: center;
}
#product .product-pack .pack-product-name a {
  color: var(--xa-texte);
  font-weight: 600;
}
#product .product-pack .pack-product-name a:hover {
  color: var(--xa-rouge);
}

/* Galerie */
#product .xa-product__gallery #content {
  max-width: 100%;
}
#product .product-cover {
  margin-bottom: .8rem;
}
#product .product-cover img {
  border: 1px solid var(--xa-trait);
  border-radius: var(--xa-rayon-l);
  box-shadow: none;
}
#product .product-cover .layer {
  border-radius: var(--xa-rayon-l);
}
#product .product-images .thumb {
  border: 2px solid var(--xa-trait);
  border-radius: var(--xa-rayon);
  box-shadow: none;
  transition: border-color .15s ease;
}
#product .product-images .thumb:hover {
  border-color: #b5b5b0;
}
#product .product-images .thumb.selected,
#product .product-images .thumb.selected:hover {
  border-color: var(--xa-rouge);
}
#product #content .product-flags {
  z-index: 2;
}
#product #content .product-flags li.product-flag {
  padding: .25rem .8rem .25rem 1.1rem;
  background: var(--xa-noir);
  box-shadow: none;
  color: #fff;
  font-family: var(--xa-cond);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .03em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
#product #content .product-flags li.product-flag.discount,
#product #content .product-flags li.product-flag.on-sale {
  background: var(--xa-rouge);
}

/* Réassurance */
#product #block-reassurance {
  margin-top: 1.25rem;
  border-radius: var(--xa-rayon-l);
  background: transparent;
  box-shadow: none;
}
#product #block-reassurance ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin: 0;
}
#product #block-reassurance li {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--xa-rayon);
  background: var(--xa-fond);
}
#product #block-reassurance li .block-reassurance-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  height: 100%;
  padding: .85rem .9rem;
}
#product #block-reassurance li .block-reassurance-item img {
  width: 26px;
  height: auto;
  margin: 0;
}
#product #block-reassurance li .block-reassurance-item span {
  color: var(--xa-texte);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Onglets pleine largeur */
#product .xa-product__tabs {
  margin: 2.25rem 0 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#product .xa-product__tabs .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  border-bottom: 2px solid var(--xa-trait);
}
#product .xa-product__tabs .nav-tabs .nav-item {
  margin: 0 0 -2px;
}
#product .xa-product__tabs .nav-tabs .nav-link {
  padding: .45rem 0 .55rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--xa-gris);
  font-family: var(--xa-cond);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
#product .xa-product__tabs .nav-tabs .nav-link.active,
#product .xa-product__tabs .nav-tabs .nav-link:hover {
  border-bottom-color: var(--xa-rouge);
  color: var(--xa-noir);
}
#product .xa-product__tabs .tab-content {
  padding: 1.5rem 0 .5rem;
}
#product .xa-product__tabs .product-description,
#product .xa-product__tabs .product-description p {
  color: #3b3d42;
  font-size: .95rem;
  line-height: 1.7;
}
#product .xa-product__tabs .product-description {
  max-width: 900px;
}
@media (min-width: 992px) {
  #product .xa-product__tabs .tab-content > #product-details.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 2.5rem;
  }
  #product .xa-product__tabs #product-details > * {
    grid-column: 1;
  }
  #product .xa-product__tabs #product-details > .product-features:has(.delivery-info-multi) {
    grid-column: 2;
    grid-row: 1 / span 12;
    margin-top: 0;
  }
}
#product #product-details .product-manufacturer {
  float: none;
  margin: 0 0 .75rem;
}
#product #product-details .manufacturer-logo {
  max-height: 60px;
  padding: 4px;
  border: 1px solid var(--xa-trait);
  border-radius: var(--xa-rayon);
  box-shadow: none;
}
#product #product-details .product-reference {
  margin: 0 0 .5rem;
  color: var(--xa-texte);
  font-size: .95rem;
}
#product #product-details .product-reference .label {
  font-weight: 700;
}
#product .product-features {
  margin: 0 0 1.25rem;
}
#product .product-features h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1rem 0 .7rem;
  padding: 0;
  border: 0;
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
#product .product-features h3::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 1em;
  background: var(--xa-rouge);
  transform: skewX(-18deg);
}
#product .product-features dl.data-sheet {
  display: grid;
  grid-template-columns: minmax(110px, max-content) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--xa-trait);
  border-radius: var(--xa-rayon);
  background: #fff;
}
#product .product-features dl.data-sheet dt.name,
#product .product-features dl.data-sheet dd.value {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: .6rem .85rem;
  border-radius: 0;
  border-bottom: 1px solid var(--xa-trait);
  font-size: .9rem;
  line-height: 1.45;
  text-transform: none;
}
#product .product-features dl.data-sheet dt.name {
  background: var(--xa-fond);
  color: var(--xa-noir);
  font-weight: 700;
}
#product .product-features dl.data-sheet dd.value {
  background: #fff;
  color: #3b3d42;
  font-weight: 400;
}
#product .product-features dl.data-sheet dt.name:last-of-type,
#product .product-features dl.data-sheet dd.value:last-of-type {
  border-bottom: 0;
}
#product .delivery-info-multi {
  gap: .45rem 1rem;
  margin: 0;
  padding: .9rem 1rem .5rem;
  border-radius: var(--xa-rayon) var(--xa-rayon) 0 0;
  background: var(--xa-fond);
}
#product .delivery-line {
  color: var(--xa-texte);
  font-size: .9rem;
}
#product .delivery-line-world {
  margin: 0;
  padding: .55rem 1rem .8rem;
  border-top: 1px solid var(--xa-trait);
  border-radius: 0 0 var(--xa-rayon) var(--xa-rayon);
  background: var(--xa-fond);
}

/* --------------------------------------------------------------------------
   Pages de contenu (FAQ, guides…)
   -------------------------------------------------------------------------- */
.cmscustom h2 {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 2rem 0 1rem;
  padding: 0 0 .5rem;
  border-bottom: 2px solid var(--xa-trait);
  background: transparent;
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.cmscustom h2::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 1em;
  background: var(--xa-rouge);
  transform: skewX(-18deg);
}
.cmscustom h3 {
  margin: 1.5rem 0 .9rem;
  padding: .5rem .8rem;
  border-left: 3px solid var(--xa-noir);
  border-radius: 0 var(--xa-rayon) var(--xa-rayon) 0;
  background: var(--xa-fond);
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: 1.3rem;
  font-weight: 700;
}
#main .page-header h1,
#wrapper .page-header h1 {
  font-family: var(--xa-cond);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--xa-noir);
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
#footer {
  padding-top: 0;
  border-top: 0;
}
#footer .block_newsletter {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
#footer .block_newsletter #block-newsletter-label {
  color: var(--xa-noir);
  font-family: var(--xa-cond);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
#footer .block_newsletter form input[type="email"] {
  height: 46px;
  border: 1px solid #cdcdc8;
  border-radius: var(--xa-rayon);
}
#footer .block_newsletter form input[type="email"]:focus {
  border-color: var(--xa-noir);
  outline: none;
}
#footer .block_newsletter form .btn-primary {
  height: 46px;
  padding: 0 1.4rem;
  font-size: 1.15rem;
}
#footer .block_newsletter form p {
  color: var(--xa-gris);
  font-size: .8rem;
}
.footer-container {
  border-top: 4px solid var(--xa-rouge);
  background:
    var(--xa-topo),
    var(--xa-noir);
}
.footer-container h3,
.footer-container .h3,
.footer-container .block-contact .block-contact-title,
.footer-container .linklist .blockcms-title a,
.footer-container #block_myaccount_infos .myaccount-title a {
  color: #fff;
  font-family: var(--xa-cond);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .05em;
}
@media (min-width: 768px) {
  .footer-container h3::after,
  .footer-container .block-contact .block-contact-title::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin: .35rem 0 .3rem;
    background: var(--xa-rouge);
    transform: skewX(-20deg);
    transform-origin: left bottom;
  }
}
.footer-container li a {
  color: #c9cacd;
  font-weight: 400;
}
.footer-container li a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Tablette
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  #wrapper {
    background: #fff;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  #product .product-add-to-cart .add-to-cart {
    gap: .35rem;
    padding: 0 .7rem;
    font-size: 1.12rem;
    letter-spacing: .03em;
  }
}
@media (max-width: 991px) {
  #product #block-reassurance ul {
    grid-template-columns: minmax(0, 1fr);
    gap: .4rem;
  }
  #product #block-reassurance li .block-reassurance-item {
    flex-direction: row;
    align-items: center;
    padding: .6rem .75rem;
  }
  .xa-hero {
    padding-right: 150px;
  }
  .xa-hero::before {
    right: 64px;
  }
  .xa-hero::after {
    right: 24px;
  }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  #wrapper .breadcrumb {
    padding: .45rem 0 .55rem;
  }
  #wrapper .breadcrumb li,
  #wrapper .breadcrumb li a {
    font-size: .82rem;
  }

  .xa-hero {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: .9rem;
    margin-bottom: 1.1rem;
    padding: 1.1rem 1rem 1.15rem;
    border-radius: var(--xa-rayon);
  }
  .xa-hero--noimg {
    grid-template-columns: minmax(0, 1fr);
  }
  .xa-hero::before {
    right: -6px;
    width: 14px;
  }
  .xa-hero::after {
    display: none;
  }
  .xa-hero__media {
    width: 64px;
    height: 64px;
    padding: 4px;
  }
  .xa-hero__kicker {
    font-size: .85rem;
    letter-spacing: .12em;
  }
  #main .xa-hero h1.xa-hero__title {
    padding-right: .6rem;
    font-size: 1.85rem;
  }
  .xa-hero__desc,
  .xa-hero .xa-more {
    grid-column: 1 / -1;
  }
  .xa-hero__desc {
    margin-top: .55rem;
  }
  .xa-hero .xa-more {
    justify-self: start;
    margin-top: -.35rem;
  }
  .xa-hero__body {
    display: contents;
  }
  .xa-hero__kicker,
  #main .xa-hero h1.xa-hero__title {
    grid-column: 2;
  }
  .xa-hero__kicker {
    align-self: end;
  }
  .xa-hero__media {
    grid-row: 1 / span 2;
  }
  .xa-hero:not(:has(.xa-hero__kicker)) .xa-hero__media {
    grid-row: 1;
  }
  .xa-hero:not(:has(.xa-hero__kicker)) h1.xa-hero__title {
    align-self: center;
  }
  .xa-hero--noimg .xa-hero__kicker,
  .xa-hero--noimg h1.xa-hero__title {
    grid-column: 1;
  }
  .xa-hero__desc,
  .xa-hero__desc p {
    font-size: .9rem;
    line-height: 1.55;
  }
  .js-xa-clamp.is-clamped {
    -webkit-line-clamp: 3;
  }

  /* Sous-catégories : rangée qui défile */
  #main #subcategories.xa-subcats {
    margin: 0 -15px 1.25rem;
  }
  #main #subcategories.xa-subcats ul {
    grid-auto-flow: column;
    grid-auto-columns: 40%;
    grid-template-columns: none;
    gap: .55rem;
    padding: 0 15px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 0 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  #main #subcategories.xa-subcats ul li {
    scroll-snap-align: start;
  }
  #main #subcategories.xa-subcats ul li a.img {
    height: 88px;
    padding: 8px;
  }
  #main #subcategories.xa-subcats ul li img,
  #main #subcategories.xa-subcats ul li img:hover {
    height: 70px;
  }
  #main #subcategories.xa-subcats ul li h5 {
    padding: .45rem .55rem .55rem;
  }
  #main #subcategories.xa-subcats ul li .subcategory-name {
    font-size: .98rem;
  }

  #products .products-selection {
    padding: .5rem .25rem;
  }
  #products .products-selection .showing {
    padding-top: .4rem;
    font-size: .92rem;
  }

  #wrapper #produitsorigine,
  #wrapper #produitsreco,
  #wrapper #toutproduits {
    min-height: 60px;
    margin: 1.25rem 0 .9rem;
    padding: .6rem .85rem .6rem 80px;
  }
  #wrapper #produitsorigine::before,
  #wrapper #produitsreco::before,
  #wrapper #toutproduits::before {
    width: 82px;
  }
  #wrapper #produitsorigine img,
  #wrapper #produitsreco img {
    left: 12px;
    width: 42px;
    height: 42px;
    margin-top: -21px;
  }
  #wrapper #toutproduits::after {
    left: 15px;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    background-size: 19px;
  }
  #wrapper #produitsorigine p,
  #wrapper #produitsreco p,
  #wrapper #toutproduits p {
    font-size: .8rem;
  }

  /* Grilles : 2 colonnes */
  #wrapper #js-product-list .products,
  #wrapper .featured-products .products,
  #wrapper .product-accessories .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
  #wrapper .products .product-miniature .product-thumbnail {
    padding: 6px;
  }
  #wrapper .products .product-miniature img.manufacturer {
    top: 6px;
    left: 6px;
    max-width: 48%;
    max-height: 24px;
    padding: 1px 2px;
  }
  #wrapper .products .product-miniature .product-flags {
    top: 6px;
    gap: 3px;
  }
  #wrapper .products .product-miniature .product-flags li.product-flag {
    padding: .1rem .45rem .1rem .8rem;
    font-size: .85rem;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  }
  #wrapper .products .product-miniature .product-flags li.product-flag.discount {
    font-size: .95rem;
  }
  #wrapper .products .product-miniature .packitems {
    top: calc(100cqw - 40px);
    left: 6px;
    right: 6px;
  }
  #wrapper .products .product-miniature .plus-item {
    font-size: .9rem;
  }
  #wrapper .products .product-miniature .product-description {
    padding: .55rem .6rem .65rem;
  }
  #wrapper .products .product-miniature .product-title {
    padding-right: 0;
  }
  #wrapper .products .product-miniature .product-title a {
    font-size: .8rem;
  }
  #wrapper .products .product-miniature .product-price-and-shipping .price {
    font-size: 1.3rem;
  }
  #wrapper .products .product-miniature .product-price-and-shipping .regular-price {
    font-size: .9rem;
  }
  #wrapper .products .product-miniature .product-description::after {
    display: none;
  }

  #wrapper #super_counter {
    padding: 1.4rem .75rem 1.3rem;
  }
  #wrapper #super_counter::before {
    left: 10px;
    width: 12px;
  }
  #wrapper #super_counter::after {
    right: 10px;
    width: 12px;
  }
  #wrapper #super_counter .super_counter_lbl {
    font-size: 1.1rem;
  }

  /* Fiche produit */
  #product #encaps {
    margin-top: .75rem;
  }
  #product #encaps h1.h1 {
    font-size: 1.85rem;
  }
  #product .product-actions {
    margin-left: -6px;
    margin-right: -6px;
    padding: 1rem .9rem .9rem;
  }
  #product .product-add-to-cart .add-to-cart {
    font-size: 1.15rem;
  }
  #product #block-reassurance ul {
    grid-template-columns: minmax(0, 1fr);
    gap: .4rem;
  }
  #product #block-reassurance li .block-reassurance-item {
    flex-direction: row;
    align-items: center;
    padding: .6rem .75rem;
  }
  #product .xa-product__tabs {
    margin-top: 1.5rem;
  }
  #product .xa-product__tabs .nav-tabs .nav-link {
    font-size: 1.15rem;
  }
  #product .product-features dl.data-sheet {
    grid-template-columns: minmax(0, 1fr);
  }
  #product .product-features dl.data-sheet dt.name {
    border-bottom: 0;
    padding-bottom: .2rem;
  }
  #product .product-features dl.data-sheet dd.value {
    padding-top: .2rem;
  }
}

@media (max-width: 359px) {
  #wrapper #js-product-list .products,
  #wrapper .featured-products .products,
  #wrapper .product-accessories .products {
    gap: .45rem;
  }
  #product .product-quantity {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  #wrapper .products .product-miniature .thumbnail-container,
  #wrapper .products .product-miniature .product-thumbnail img,
  #main #subcategories.xa-subcats ul li,
  #main #subcategories.xa-subcats ul li img,
  #header #mega_menu_plus ul.mg-menu > li > a {
    transition: none;
  }
}
