/*
 * PrestAI Hummingbird Child — styles de base et composants pa-*
 *
 * Aucune valeur de marque ici : uniquement des var(--pa-*) générées
 * dans tokens.css depuis tokens.json. Le spécifique client va dans
 * l'overlay (scss/_custom.scss, css/custom.css), jamais dans ce fichier.
 *
 * Points de rupture (ceux de Bootstrap 5 / Hummingbird, en max-width .98) :
 *   < 1200 px  grilles de 4 en 2 ou 3 colonnes
 *   <  992 px  affichage mobile : header et footer mobiles, barres d'achat fixes, fiche produit et
 *              tunnel en une colonne, héro de la home en photo de fond, carrousels au doigt
 *   <  768 px  téléphone : cartes des carrousels plus larges, réassurance en rangée, grilles en 1-2 colonnes
 *   <  576 px  petits téléphones (cartes produit, encart fidélité)
 *   <  480 px  très petits écrans (grille de 4 en 1 colonne)
 * prestai.js lit les mêmes valeurs (matchMedia('(max-width: 991.98px)')).
 */

/* =========================================================
   00. BOOTSTRAP / HUMMINGBIRD MAPPING
   ========================================================= */
.form-select:focus,
.form-control:focus {
    box-shadow: none;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity))!important;
}
#cart .product-line__item-discount.bg-primary {
  --bs-primary-rgb: var(--bs-secondary-rgb);
}

a {
 color: var(--pa-color-primary);
}

.page-content--cms a, .elementor-widget-text-editor a {
    text-decoration: underline;
}

.modal-content {
    color: var(--pa-color-primary);
}

/* =========================================================
   02. GLOBAL HUMMINGBIRD LAYOUT
   ========================================================= */

html,
body {
  overflow-x: clip;
}

body {
  color: var(--pa-color-ink);
  font-family: var(--pa-font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(#checkout):not(.page-checkout):not(.page-order) :is(
  .container,
  .container-xs,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl,
  .container-fluid,
  .container--limited-sm,
  .container--limited-md,
  .container--limited-lg,
  .container--limited-xl,
  .container--limited-xxl
) {
  width: min(var(--pa-container), calc(100% - (var(--pa-gutter) * 2)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

body:not(#checkout):not(.page-checkout):not(.page-order) :is(.container--limited-md),
body:not(#checkout):not(.page-checkout):not(.page-order) :is(.container--limited-sm) {
  max-width: 900px;
}
body#authentication .page:not(body), body#registration .page:not(body) {
    padding-bottom: 3rem;
}
body#contact main#wrapper #center-column {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}
body#contact #contact-us-message-textarea {
    min-height: 200px;
}

.pa-container {
  width: min(var(--pa-container), calc(100% - (var(--pa-gutter) * 2)));
  max-width: none;
  margin-inline: auto;
}

.top-preheader {
  max-height: var(--pa-preheader-height, 60px);
  opacity: 1;
  overflow: hidden;

  transition:
    max-height 0.28s ease,
    opacity 0.20s ease;
}

html.pa-preheader-hidden .top-preheader {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   PREHEADER — SLIDE MOBILE FLUIDE
   Hauteur visuelle : 33px
   Compatible menu mobile fixed
   Desktop / tablette >= 768px strictement inchangés
   ========================================================= */

@media (max-width: 767.98px) {

  /*
   * Le preheader garde toujours sa hauteur réelle.
   * Aucun changement de layout au scroll.
   */
  .top-preheader {
    box-sizing: border-box;

    height: 33px;
    min-height: 33px;
    max-height: none;

    opacity: 1;
    overflow: hidden;

    transition: none;
  }

  .top-preheader .pa-announcement-bar {
    height: 33px;
  }


  /*
   * Pas de transform sur #header :
   * cela évite de casser les éléments fixed
   * du menu mobile.
   */
  #header {
    top: 0;
    transition: none;
  }


  /*
   * Transition activée seulement après
   * l'initialisation.
   */
  html.pa-preheader-ready #header {
    transition:
      top 200ms cubic-bezier(.22, 1, .36, 1);
  }


  /*
   * Le preheader reste physiquement présent.
   * On neutralise donc le collapse global mobile.
   */
  html.pa-preheader-hidden .top-preheader {
    height: 33px;
    min-height: 33px;
    max-height: none;

    opacity: 1;
    pointer-events: none;
  }


  /*
   * Le header complet remonte de 33px. --pa-header-shift : décalage à retirer de --pa-header-height
   * pour les éléments collés sous le header (barre d'outils des listes).
   */
  html.pa-preheader-hidden #header {
    top: -33px;
  }

  html.pa-preheader-hidden {
    --pa-header-shift: 33px;
  }

}

/* =========================================================
   03. BASE PRESTAI
   ========================================================= */

.ai-page,
.ai-page *,
.ai-page *::before,
.ai-page *::after {
  box-sizing: border-box;
}

.ai-page {
  color: var(--pa-color-ink);
  font-family: var(--pa-font-body);
  background: var(--pa-color-light);
}

.ai-page img,
.ai-page picture,
.ai-page svg {
  display: block;
  max-width: 100%;
}

.ai-page a {
  color: inherit;
}

::selection {
  color: var(--pa-color-light);
  background: var(--pa-color-accent);
}

/* =========================================================
   04. TYPOGRAPHY
   ========================================================= */

/* Familles h1–h6 : générées dans tokens.css depuis font.headings */
h1,
h2,
h3,
.pa-title {
  color: var(--pa-color-primary);
}

.pa-title {
  font-family: var(--pa-font-title);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.pa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  color: var(--pa-color-accent);
  font-family: var(--pa-font-body);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pa-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

.pa-title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.pa-title--xl {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: .95;
}

/* Titre de bloc secondaire (histoire, bandeau d'appel à l'action) */
.pa-title--md {
  font-size: clamp(1.8rem, 2.6vw, 2.15rem);
  line-height: 1.1;
}

.pa-subtitle {
  max-width: 760px;
  margin: 1.25rem 0 0;
  color: var(--pa-color-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.pa-text {
  margin: 1rem 0 0;
  color: var(--pa-color-muted);
  font-size: 1.05rem;
}

.pa-reading-width {
  max-width: 760px;
}

/* =========================================================
   05. SECTIONS / LAYOUT HELPERS
   ========================================================= */

.pa-section {
  padding-block: var(--pa-section-y);
}

.pa-section--compact {
  padding-block: var(--pa-section-y-compact);
}

/* Bandeau : réassurance, logos, annonces */
.pa-section--tight {
  padding-block: var(--pa-section-y-tight);
}

.pa-section--surface {
  background: var(--pa-color-surface);
}

.pa-section--soft {
  background: var(--pa-color-surface-soft);
}

.pa-section--dark {
  color: var(--pa-color-light);
  background: var(--pa-color-primary);
}

.pa-section--dark .pa-title,
.pa-section--dark h1,
.pa-section--dark h2,
.pa-section--dark h3 {
  color: var(--pa-color-light);
}

.pa-section--dark .pa-text,
.pa-section--dark .pa-subtitle {
  color: rgba(255,255,255,.76);
}

.pa-section__head {
  max-width: 820px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.pa-section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.pa-grid-2,
.pa-grid-3,
.pa-grid-4 {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.pa-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.pa-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Grille fluide : autant de colonnes que la largeur le permet, 2 sur mobile.
   Largeur mini d'une colonne réglable par bloc : style="--pa-grid-min: 240px" */
.pa-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--pa-grid-min, 160px), 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* =========================================================
   06. LINKS / BUTTONS
   ========================================================= */

a {
  transition: color var(--pa-transition);
}

/* Liens en bouton principal (a.btn-primary : retour à l'accueil d'une recherche vide, page 404…).
   La règle a { color } du haut de ce fichier n'est dans aucune couche : elle l'emporte sur .btn de
   Bootstrap, rangé par Hummingbird dans une couche (@layer), et le texte prenait la couleur du fond. */
a.btn-primary {
  color: var(--bs-btn-color);
}

a.btn-primary:hover,
a.btn-primary:focus-visible {
  color: var(--bs-btn-hover-color);
}

a.btn-primary:active,
a.btn-primary.active {
  color: var(--bs-btn-active-color);
}

/* Liens de texte courant. a:not([class]) : les boutons, cartes et liens fléchés
   d'un bloc de contenu gardent leur propre style. */
.page-content--cms a:not([class]),
.pa-prose a:not([class]),
.ai-page p a {
  color: var(--pa-color-primary);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.page-content--cms a:not([class]):hover,
.pa-prose a:not([class]):hover,
.ai-page p a:hover {
  color: var(--pa-color-accent);
  text-decoration: none;
}

.pa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.pa-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border: 1px solid var(--pa-btn-primary-bg);
  border-radius: var(--pa-radius-pill);
  color: var(--pa-btn-primary-text)!important;
  background: var(--pa-btn-primary-bg);
  font-family: var(--pa-font-body);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform var(--pa-transition),
    color var(--pa-transition),
    background var(--pa-transition),
    border-color var(--pa-transition);
}

.pa-button:hover {
  color: var(--pa-btn-primary-hover-text)!important;
  background: var(--pa-btn-primary-hover-bg);
  border-color: var(--pa-btn-primary-hover-bg);
  transform: translateY(-1px);
}

.pa-button--accent {
  color: var(--pa-color-primary)!important;
  background: var(--pa-color-accent);
  border-color: var(--pa-color-accent);
}

.pa-button--accent:hover {
  color: var(--pa-color-light)!important;
  background: var(--pa-color-primary);
  border-color: var(--pa-color-primary);
}

.pa-button--secondary {
  color: var(--pa-color-primary)!important;
  background: transparent;
  border-color: rgba(var(--pa-color-primary-rgb), .24);
}

.pa-button--secondary:hover {
  color: var(--pa-color-light)!important;
  background: var(--pa-color-primary);
  border-color: var(--pa-color-primary);
}

.pa-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--pa-color-primary);
  font-weight: 800;
  text-decoration: none;
}

.pa-link-arrow::after {
  content: "→";
  transition: transform var(--pa-transition);
}

.pa-link-arrow:hover {
  color: var(--pa-color-accent);
}

.pa-link-arrow:hover::after {
  transform: translateX(3px);
}

/* Section sombre : boutons et liens inversés (le bouton primaire a sinon la couleur du fond) */
.pa-section--dark .pa-button:not(.pa-button--accent):not(.pa-button--secondary) {
  color: var(--pa-color-primary)!important;
  background: var(--pa-color-light);
  border-color: var(--pa-color-light);
}

.pa-section--dark .pa-button:not(.pa-button--accent):not(.pa-button--secondary):hover {
  color: var(--pa-btn-primary-hover-text)!important;
  background: var(--pa-btn-primary-hover-bg);
  border-color: var(--pa-btn-primary-hover-bg);
}

.pa-section--dark .pa-button--secondary {
  color: var(--pa-color-light)!important;
  background: transparent;
  border-color: rgba(var(--pa-color-light-rgb), .4);
}

.pa-section--dark .pa-button--secondary:hover {
  color: var(--pa-color-primary)!important;
  background: var(--pa-color-light);
  border-color: var(--pa-color-light);
}

.pa-section--dark .pa-link-arrow,
.pa-section--dark .pa-link-arrow:hover {
  color: var(--pa-color-light);
}

/* Boutons Bootstrap de Hummingbird (connexion, panier, contact…) : rayon des boutons du design system */
.btn-primary,
.btn-outline-primary {
  --bs-btn-border-radius: var(--pa-btn-radius);
}

.btn-primary {
  --bs-btn-color: var(--pa-btn-primary-text);
  --bs-btn-bg: var(--pa-btn-primary-bg);
  --bs-btn-border-color: var(--pa-btn-primary-bg);
  --bs-btn-hover-color: var(--pa-btn-primary-hover-text);
  --bs-btn-hover-bg: var(--pa-btn-primary-hover-bg);
  --bs-btn-hover-border-color: var(--pa-btn-primary-hover-bg);
  --bs-btn-active-color: var(--pa-btn-primary-text);
  --bs-btn-active-bg: var(--pa-btn-primary-bg);
  --bs-btn-active-border-color: var(--pa-btn-primary-bg);
}

.btn-outline-primary {
  --bs-btn-color: var(--pa-btn-secondary-text);
  --bs-btn-border-color: var(--pa-btn-secondary-border);
  --bs-btn-hover-color: var(--pa-btn-secondary-hover-text);
  --bs-btn-hover-bg: var(--pa-btn-secondary-hover-bg);
  --bs-btn-hover-border-color: var(--pa-btn-secondary-hover-border);
  --bs-btn-active-bg: var(--pa-btn-secondary-hover-bg);
  --bs-btn-active-border-color: var(--pa-btn-secondary-hover-border);
}

.btn-outline-primary:hover {
  color: var(--pa-btn-secondary-hover-text);
}

/* =========================================================
   07. CARDS
   ========================================================= */

.pa-card,
.pa-category-tile,
.pa-brand-card {
  overflow: hidden;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-lg);
  background: var(--pa-color-light);
}

.pa-card__media,
.pa-category-tile__media,
.pa-brand-card__media {
  position: relative;
  overflow: hidden;
  background: var(--pa-color-surface);
}

/* Carte entièrement cliquable (<a class="pa-card">) */
a.pa-card,
a.pa-category-tile,
a.pa-brand-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pa-card__media img,
.pa-category-tile__media img,
.pa-brand-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.pa-card:hover img,
.pa-category-tile:hover img,
.pa-brand-card:hover img {
  transform: scale(1.025);
}

.pa-card__body,
.pa-category-tile__body,
.pa-brand-card__body {
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.pa-card__body h3,
.pa-category-tile__body h3,
.pa-brand-card__body h3 {
  margin: 0;
  color: var(--pa-color-primary);
  font-family: var(--pa-font-title);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.05;
}

/* Badge au-dessus du titre d'une carte : plus discret, détaché du titre */
.pa-card__body > .pa-badge,
.pa-category-tile__body > .pa-badge,
.pa-brand-card__body > .pa-badge {
  margin-bottom: .85rem;
  padding: .28rem .55rem;
  font-size: .64rem;
}

.pa-card__body p,
.pa-category-tile__body p,
.pa-brand-card__body p {
  margin: .75rem 0 0;
  color: var(--pa-color-muted);
}

.pa-category-tile__media {
  aspect-ratio: 4/5;
}

.pa-card__media,
.pa-brand-card__media {
  aspect-ratio: 4/3;
}

/* =========================================================
   08. BADGES
   ========================================================= */

.pa-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: .4rem .68rem;
  border-radius: var(--pa-radius-pill);
  color: var(--pa-color-primary);
  background: rgba(var(--pa-color-accent-rgb), .12);
  font-family: var(--pa-font-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pa-badge--primary,
.pa-badge--navy {
  color: var(--pa-color-light);
  background: var(--pa-color-primary);
}

/* =========================================================
   09. REASSURANCE
   ========================================================= */

.pa-reassurance {
  background: var(--pa-color-light);
}

.pa-reassurance__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.pa-reassurance-item {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: .9rem;
  padding: 1.25rem 0;
}

.pa-reassurance-item__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--pa-color-accent);
}

.pa-reassurance-item h3,
.pa-reassurance-item__title {
  margin: 0;
  color: var(--pa-color-primary);
  font-family: var(--pa-font-body);
  font-size: 1rem;
  font-weight: 800;
}

.pa-reassurance-item p:not(.pa-reassurance-item__title) {
  margin: .35rem 0 0;
  color: var(--pa-color-muted);
  font-size: .9rem;
  line-height: 1.45;
}

/* =========================================================
   10. PRODUCT PROOFS
   ========================================================= */

.pa-product-proofs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: .75rem;
}

.pa-product-proof {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: .75rem;
  padding: .85rem .95rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-md);
  background: var(--pa-color-light);
}

.pa-product-proof__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--pa-color-accent);
}

.pa-product-proof__label {
  display: block;
  color: var(--pa-color-muted);
  font-size: .72rem;
  font-weight: 700;
}

.pa-product-proof__value {
  display: block;
  margin-top: .12rem;
  color: var(--pa-color-primary);
  font-size: .88rem;
  font-weight: 800;
}

/* =========================================================
   11. ANNOUNCEMENT BAR
   ========================================================= */

.pa-announcement-bar {
  position: relative;
  /* Contexte propre pour ses messages, sous le menu mobile (z-index 50 dans le header) */
  z-index: 1;
  width: 100%;
  overflow: hidden;
  color: var(--pa-color-light);
  background: var(--pa-color-primary);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.pa-announcement-bar__viewport {
  position: relative;
  width: 100%;
  height: 33px;
  overflow: hidden;
}

.pa-announcement-bar__item {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 33px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 1.5rem;
  opacity: 0;
  transform: translate3d(0,100%,0);
  pointer-events: none;
  font-size: .72rem;
  line-height: 1.2;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
}

.pa-announcement-bar__item.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* Avant le script, ou sans lui : si aucun message n'est actif, le premier s'affiche.
   Pas une fois le défilement lancé : entre deux messages, aucun n'est actif. */
.pa-announcement-bar:not([data-pa-announcement-initialized="true"]) .pa-announcement-bar__viewport:not(:has(.is-active)) > .pa-announcement-bar__item:first-child {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0,0,0);
}

.pa-announcement-bar__item.is-leaving {
  z-index: 3;
  animation: pa-announcement-leave 420ms cubic-bezier(.55,0,1,.45) forwards;
}

.pa-announcement-bar__item.is-entering {
  z-index: 2;
  animation: pa-announcement-enter 520ms cubic-bezier(.22,1,.36,1) forwards;
}

.pa-announcement-bar__icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: var(--pa-color-light);
}

@keyframes pa-announcement-leave {
  from { opacity: 1; transform: translate3d(0,0,0); }
  to   { opacity: 0; transform: translate3d(0,100%,0); }
}

@keyframes pa-announcement-enter {
  from { opacity: 0; transform: translate3d(0,100%,0); }
  to   { opacity: 1; transform: translate3d(0,0,0); }
}

/* =========================================================
   11b. BLOCS ÉDITORIAUX
   Composants des blocs PrestAI Content (home, pages CMS) :
   le markup du bloc n'utilise que ces classes, son CSS propre
   reste vide ou presque.
   ========================================================= */

/* Bloc pleine largeur dans une page CMS (cms/page.tpl) */
.columns-container--prestai-block {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.page-content--prestai-block {
  margin: 0;
  padding: 0;
}

/* Filets de séparation d'une section */
.pa-section--rule-top {
  border-top: 1px solid var(--pa-color-border);
}

.pa-section--rule-bottom {
  border-bottom: 1px solid var(--pa-color-border);
}

/* Décor « courbes de niveau » : <svg class="pa-contours"> premier enfant d'une section */
.pa-has-contours {
  position: relative;
  overflow: hidden;
}

.pa-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--pa-color-border);
  pointer-events: none;
}

.pa-has-contours > .pa-container {
  position: relative;
}

/* Texte + visuel côte à côte, empilés sous ~860px (héro, histoire…) */
.pa-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4.5rem);
}

.pa-split__text {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 640px;
}

.pa-split__media {
  flex: 1 1 380px;
  min-width: 0;
}

/* Visuel à ratio fixe, image recadrée (fond surface tant qu'elle charge) */
.pa-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--pa-radius-xl);
  background: var(--pa-color-surface);
}

.pa-media--wide {
  aspect-ratio: 16 / 9;
}

/* Visuel d'un bloc texte + image (héro, histoire) : hauteur plafonnée, la section tient dans l'écran */
.pa-split .pa-media {
  aspect-ratio: auto;
  height: clamp(240px, 36vw, 500px);
}

.pa-media img,
.pa-media picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texte long (histoire, article) */
.pa-prose {
  font-size: 1.05rem;
  line-height: 1.7;
}

.pa-prose > :first-child {
  margin-top: 0;
}

.pa-prose > :last-child {
  margin-bottom: 0;
}

.pa-prose p,
.pa-prose ul,
.pa-prose ol {
  margin: 0 0 1em;
}

.pa-prose h2 {
  margin: 1.6em 0 .6em;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
}

.pa-prose .pa-title {
  margin: 0 0 1.25rem;
}

/* Colonne de titre + colonne de contenu (FAQ, mentions…) */
.pa-aside-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
}

.pa-aside-layout__aside {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 420px;
}

.pa-aside-layout__aside .pa-section__head {
  margin-bottom: 0;
}

.pa-aside-layout__main {
  flex: 999 1 520px;
  min-width: 0;
}

/* Accordéon natif <details>/<summary>, sans JS */
.pa-accordion {
  border-top: 1px solid var(--pa-color-border);
}

.pa-accordion details {
  border-bottom: 1px solid var(--pa-color-border);
}

.pa-accordion summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--pa-color-primary);
  font-size: 1.06rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.pa-accordion summary::-webkit-details-marker {
  display: none;
}

.pa-accordion summary::after {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  margin-right: .3rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--pa-transition);
}

.pa-accordion details[open] summary::after {
  transform: translateY(25%) rotate(-135deg);
}

.pa-accordion details > :not(summary) {
  margin: 0 0 1.25rem;
  color: var(--pa-color-muted);
  line-height: 1.7;
}

/* Bandeau d'appel à l'action : texte à gauche, boutons à droite */
.pa-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.pa-cta-band__text {
  max-width: 640px;
}

.pa-cta-band .pa-subtitle {
  margin-top: .75rem;
}

.pa-cta-band .pa-actions {
  margin-top: 0;
}

/* Logos de marques */
.pa-logo-tile {
  display: grid;
  height: 88px;
  place-items: center;
  padding: .75rem 1.25rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-lg);
  background: var(--pa-color-light);
  color: var(--pa-color-muted);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color var(--pa-transition);
}

.pa-logo-tile:hover {
  border-color: var(--pa-color-primary);
}

.pa-logo-tile img {
  display: block;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

/* =========================================================
   Avis clients — bloc {hook h='displayPrestaiShopReviews'} de PrestAI Engagement 2.8.0+
   Gabarit du module, adapté par ses variables et classes stables (README d'Engagement).
   La couleur des étoiles reste le réglage « Couleur des étoiles » du module.
   Disposition « Grille » (réglage du module) : résumé en ligne au-dessus de cartes
   « étoiles, avis, auteur · date ». Dans une .pa-section--dark : version claire sur fond sombre.
   ========================================================= */
.pa-shopreviews-hook-slider {
  --pa-sr-hook-ink: var(--pa-color-ink);
  --pa-sr-hook-muted: var(--pa-color-muted);
  --pa-sr-hook-border: var(--pa-color-border);
  margin: 0;
  font-family: var(--pa-font-body);
}

.pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__summary,
.pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__card {
  border-radius: var(--pa-radius-lg);
  background: var(--pa-color-light);
}

.pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__all {
  color: var(--pa-color-primary);
  font-weight: 700;
}

.pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__comment {
  color: var(--pa-sr-hook-ink);
}

/* Grille : résumé en ligne, puis cartes */
.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__viewport {
  flex-direction: column;
  gap: 1.5rem;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__summary {
  flex: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem 1rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__summary > * {
  margin: 0;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__average {
  font-size: 1.5rem;
  font-weight: 800;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__excellent,
.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__count {
  font-size: .95rem;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__all {
  margin-left: auto;
  font-size: .95rem;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__all::after {
  content: " →";
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__slides {
  padding: 0;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__track {
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: 0;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  padding: 1.75rem;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__card-top { order: 1; }
.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__comment { order: 2; }
.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__meta { order: 3; }

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__comment {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.55;
  -webkit-line-clamp: 5;
}

/* Auteur puis date ; le mot « par » du module est masqué (font-size: 0 sur son span, le nom garde sa taille) */
.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__meta {
  gap: .35rem;
  margin: 0;
  font-size: .875rem;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__meta > span {
  order: 1;
  font-size: 0;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__meta > span strong {
  font-size: .875rem;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__meta > time {
  order: 2;
}

.pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__meta > time::before {
  content: "· ";
}

@media (max-width: 767.98px) {
  /* Le conteneur du thème porte déjà la marge latérale */
  .pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__summary {
    width: auto;
    margin: 0 0 1rem;
  }

  .pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__track {
    padding: 0;
  }

  .pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__all {
    margin-left: 0;
  }

  .pa-shopreviews-hook-slider--grid .pa-shopreviews-hook-slider__more {
    margin: 1rem 0 0;
    border-radius: var(--pa-radius-pill);
  }

  /* Le lien du bas suffit : pas de second « Voir tous les avis » dans le résumé */
  .pa-shopreviews-hook-slider--grid:has(.pa-shopreviews-hook-slider__more) .pa-shopreviews-hook-slider__all {
    display: none;
  }
}

/* Carrousel (réglage du module) en mobile : résumé en une ligne au lieu d'une carte (étoiles, note,
   nombre d'avis, lien dessous), avis à 78 % qui défilent jusqu'au bord de l'écran, sans hauteur mini.
   Largeur : variable --pa-sr-hook-card-width du module, que son réglage « Largeur des cartes » pose en
   style en ligne (d'où !important, en téléphone seulement). */
@media (max-width: 767.98px) {
  .pa-shopreviews-hook-slider--carousel {
    --pa-sr-hook-card-width: 78% !important;
  }

  .pa-shopreviews-hook-slider--carousel .pa-shopreviews-hook-slider__summary {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .25rem .6rem;
    width: auto;
    min-height: 0;
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .pa-shopreviews-hook-slider--carousel .pa-shopreviews-hook-slider__summary > * {
    margin: 0;
  }

  .pa-shopreviews-hook-slider--carousel .pa-shopreviews-hook-slider__average {
    font-size: 1.35rem;
  }

  .pa-shopreviews-hook-slider--carousel .pa-shopreviews-hook-slider__excellent {
    display: none;
  }

  .pa-shopreviews-hook-slider--carousel .pa-shopreviews-hook-slider__all {
    flex-basis: 100%;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .pa-shopreviews-hook-slider--carousel .pa-shopreviews-hook-slider__track {
    width: auto;
    margin-inline: calc(var(--pa-gutter) * -1);
    padding: 2px var(--pa-gutter) 4px;
    scroll-padding-inline: var(--pa-gutter);
  }

  .pa-shopreviews-hook-slider--carousel .pa-shopreviews-hook-slider__card {
    gap: .6rem;
    min-height: 0;
    padding: 1.1rem 1.15rem;
  }
}

/* Sur une section sombre */
.pa-section--dark .pa-shopreviews-hook-slider {
  --pa-sr-hook-ink: var(--pa-color-light);
  --pa-sr-hook-muted: rgba(var(--pa-color-light-rgb), .76);
  --pa-sr-hook-border: rgba(var(--pa-color-light-rgb), .16);
}

.pa-section--dark .pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__summary,
.pa-section--dark .pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__card,
.pa-section--dark .pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__nav {
  background: transparent;
}

.pa-section--dark .pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__all,
.pa-section--dark .pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__more,
.pa-section--dark .pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__verified {
  color: var(--pa-color-light);
}

.pa-section--dark .pa-shopreviews-hook-slider .pa-shopreviews-stars__base,
.pa-section--dark .pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__stars {
  color: rgba(var(--pa-color-light-rgb), .28);
}

.pa-section--dark .pa-shopreviews-hook-slider .pa-shopreviews-hook-slider__slides::after {
  display: none;
}

/* Lien de fin de section (« Voir tout ») */
.pa-section__more {
  margin-top: 2rem;
}

/* =========================================================
   12. HEADER / FOOTER FOUNDATIONS
   ========================================================= */

#header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: var(--pa-color-light);
}

.header-top {
  padding-block: 0;
}

.breadcrumb__wrapper {
  margin-bottom: .75rem;
  background: transparent;
}

#footer,
.footer__main {
  color: var(--pa-color-light);
  background: var(--pa-color-primary);
}

#footer a {
  color: rgba(255,255,255,.82);
}

#footer a:hover {
  color: var(--pa-color-accent);
}

.pa-footer {
  color: var(--pa-color-light);
}

.pa-footer .elementor-heading-title {
  color: var(--pa-color-light);
  font-family: var(--pa-font-body);
}

.pa-footer .elementor-widget-text-editor {
  color: rgba(255,255,255,.72);
}

.pa-footer .elementor-icon-list-item a {
  color: rgba(255,255,255,.82);
  transition: color var(--pa-transition);
}

.pa-footer .elementor-icon-list-item a:hover {
  color: var(--pa-color-accent);
}

.pa-footer .elementor-social-icon {
  transition:
    color var(--pa-transition),
    background var(--pa-transition),
    transform var(--pa-transition);
}

.pa-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
}

@media (max-width: 767.98px) {
  .pa-footer .elementor-widget-text-editor {
    text-align: center;
  }
}


/* =========================================================
   12b. HEADER ET FOOTER DU THÈME (_partials/header.tpl, footer.tpl)
   ========================================================= */

/* ---------- Header ---------- */
.pa-header {
  position: relative;
  background: var(--pa-color-light);
  border-bottom: 1px solid var(--pa-color-border);
}

.pa-header__bar {
  display: flex;
  min-height: var(--pa-header-bar-height, 72px);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.pa-header__logo {
  flex: none;
}

.pa-header__logo .navbar-brand {
  display: flex;
  margin: 0;
  padding: 0;
}

/* Hauteur fixe, largeur déduite des proportions : un logo SVG sans width/height en pixels
   (viewBox seul, ou width="100%") n'a pas de taille propre et tombait à 0 × 0 dans le header. */
.pa-header__logo .logo {
  width: auto;
  height: var(--pa-header-logo-height, 40px);
  max-width: min(240px, 40vw);
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

.pa-header__shop-name {
  color: var(--pa-color-primary);
  font-family: var(--pa-font-title);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

.pa-header__menu {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

/* Méga menu PrestAI Content (2.7.0+) dans la barre : sans fond propre, centré, typo du thème.
   Les panneaux (fixes, pleine largeur) se placent sous .pa-header, marqué data-pa-megamenu-panel-anchor. */
.pa-header__menu .pa-megamenu {
  width: auto;
  background: transparent;
}

.pa-header__menu .pa-megamenu__panel {
  border-top: 1px solid var(--pa-color-border);
}

.pa-header__menu .pa-megamenu__nav {
  justify-content: center;
  color: var(--pa-color-primary);
  font-size: .95rem;
}

.pa-header__menu :is(.pa-megamenu__top-link, .pa-megamenu__trigger, .pa-megamenu__trigger-link) {
  font-weight: 600;
}

.pa-header__menu .pa-megamenu__panel {
  font-weight: 400;
}

.pa-header__menu .pa-megamenu__nav a:hover,
.pa-header__menu .pa-megamenu__trigger:hover {
  color: var(--pa-color-accent);
}

.pa-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.pa-header__action {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--pa-radius-pill);
  background: transparent;
  color: var(--pa-color-primary);
  transition: color var(--pa-transition), background var(--pa-transition);
}

.pa-header__action:hover,
.pa-header__action[aria-expanded="true"] {
  color: var(--pa-color-accent);
  background: var(--pa-color-surface);
}

.pa-header__badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--pa-radius-pill);
  background: var(--pa-color-accent);
  color: var(--pa-color-light);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Langue (modules/ps_languageselector) : bouton au code de la langue, menu déroulant de Bootstrap */
.pa-header__lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  height: 44px;
  margin-left: .25rem;
  padding: 0 .5rem;
  border: 0;
  border-radius: var(--pa-radius-pill);
  background: transparent;
  color: var(--pa-color-muted);
  font-family: var(--pa-font-body);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--pa-transition), background var(--pa-transition);
}

.pa-header__lang-toggle:hover,
.pa-header__lang-toggle[aria-expanded="true"] {
  color: var(--pa-color-primary);
  background: var(--pa-color-surface);
}

.pa-header__lang-toggle .pa-icon {
  transition: transform var(--pa-transition);
}

.pa-header__lang-toggle[aria-expanded="true"] .pa-icon {
  transform: rotate(180deg);
}

.pa-lang-menu {
  min-width: 12rem;
  margin: 0;
  padding: .375rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-md);
  background: var(--pa-color-light);
  box-shadow: 0 18px 40px -16px rgba(var(--pa-color-primary-rgb), .25);
  list-style: none;
}

.pa-lang-menu__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding: .5rem .75rem;
  border-radius: var(--pa-radius-sm);
  color: var(--pa-color-ink);
  font-size: .9rem;
  text-decoration: none;
}

.pa-lang-menu__item:hover,
.pa-lang-menu__item:focus-visible {
  background: var(--pa-color-surface);
  color: var(--pa-color-primary);
}

.pa-lang-menu__code {
  flex: none;
  width: 1.75rem;
  color: var(--pa-color-muted);
  font-size: .75rem;
  font-weight: 700;
}

.pa-lang-menu__name {
  flex: 1;
}

.pa-lang-menu__item.is-active {
  color: var(--pa-color-primary);
  font-weight: 700;
}

.pa-lang-menu__item .pa-icon {
  flex: none;
  color: var(--pa-color-accent);
}

.pa-header__search {
  border-top: 1px solid var(--pa-color-border);
  background: var(--pa-color-light);
}

.pa-header__search > .pa-container {
  padding-block: 1rem;
}

.pa-searchbar {
  position: relative;
}

.pa-searchbar__form {
  position: relative;
  display: flex;
  align-items: center;
}

.pa-searchbar__icon {
  position: absolute;
  left: 1.1rem;
  display: flex;
  color: var(--pa-color-muted);
  pointer-events: none;
}

.pa-searchbar .pa-searchbar__input {
  height: 52px;
  padding: 0 3rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-pill);
  font-size: 1rem;
}

.pa-searchbar__clear {
  position: absolute;
  right: .6rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: var(--pa-radius-pill);
  background: transparent;
  color: var(--pa-color-muted);
}

/* Résultats de la recherche (autocomplétion de Hummingbird, modules/ps_searchbar) : panneau sous tout le
   champ, résultats en grille (image, nom avec le texte cherché surligné, marque et prix ajoutés par
   prestai.js), lien « Voir tous les résultats » en pied */
.pa-searchbar .ps-searchbar__dropdown {
  top: calc(100% + .5rem);
  right: 0;
  left: 0;
  width: auto;
  max-width: none;
  overflow: hidden;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-lg);
  background: var(--pa-color-light);
  box-shadow: 0 18px 40px -16px rgba(var(--pa-color-primary-rgb), .25);
}

.pa-searchbar .ps-searchbar__results {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: .25rem .75rem;
  max-height: min(60vh, 26rem);
  padding: .75rem;
  overflow-y: auto;
}

.pa-searchbar .pa-search-result {
  gap: .9rem;
  padding: .5rem;
  border-radius: var(--pa-radius-md);
  color: inherit;
  text-decoration: none;
}

.pa-searchbar .pa-search-result:hover,
.pa-searchbar .pa-search-result:focus,
.pa-searchbar .pa-search-result[aria-selected="true"] {
  background: var(--pa-color-surface);
}

.pa-searchbar .pa-search-result__image {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--pa-radius-sm);
  background: var(--pa-color-surface);
  object-fit: cover;
}

.pa-search-result__body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.pa-searchbar .pa-search-result__name {
  display: -webkit-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--pa-color-primary);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pa-search-result__name mark {
  padding: 0;
  background: transparent;
  color: var(--pa-color-accent);
}

.pa-search-result__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .5rem;
  color: var(--pa-color-muted);
  font-size: .8125rem;
}

.pa-search-result__meta:empty {
  display: none;
}

.pa-search-result__price {
  color: var(--pa-color-ink);
  font-weight: 700;
}

.pa-search-result__regular {
  text-decoration: line-through;
}

.pa-searchbar__all {
  display: flex;
  justify-content: center;
  padding: .9rem 1rem;
  border-top: 1px solid var(--pa-color-border);
  font-size: .9rem;
}

.pa-searchbar__all[hidden] {
  display: none;
}

@media (max-width: 991.98px) {
  .pa-header__bar {
    min-height: 60px;
    gap: .5rem;
  }

  /* Bouton du menu mobile (méga menu) avant le logo */
  .pa-header__menu {
    order: -1;
    flex: none;
    justify-content: flex-start;
  }

  .pa-header__logo .logo {
    height: var(--pa-header-logo-height-mobile, 32px);
  }

  /* Icônes plus serrées : 38 px de large (44 px de haut pour le doigt), sans écart */
  .pa-header__actions {
    gap: 0;
  }

  .pa-header__action {
    width: 38px;
  }

  .pa-header__badge {
    right: -2px;
  }

  .pa-header__lang-toggle {
    margin-left: 0;
    padding: 0 .25rem 0 .4rem;
  }

  /* Compte : déjà dans le menu mobile (méga menu de PrestAI Content, bouton « Mon compte ») ; gardé sans
     méga menu */
  .pa-header:has(.pa-megamenu) .pa-header__action--account {
    display: none;
  }
}

/* ---------- Footer ---------- */
#footer .footer__before {
  color: var(--pa-color-ink);
  background: var(--pa-color-light);
}

#footer .footer__before a:not([class]) {
  color: var(--pa-color-primary);
}

.footer__main.pa-site-footer {
  padding: 0;
}

.pa-site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* Colonnes des modules (markup Hummingbird) : la grille remplace les colonnes Bootstrap.
   Pas les fenêtres que des modules rendent aussi sur displayFooter (bandeau et fenêtre de
   PrestAI Cookie Consent, modales) : elles gardent leur largeur et leurs marges. */
.pa-site-footer__grid > :not(.pc-banner, .pc-overlay, .modal) {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Titres des colonnes : en blanc, à la taille du texte courant, en gras, sans capitales */
.pa-site-footer .footer-block__title {
  margin: 0 0 1.1rem;
  color: var(--pa-color-light);
  font-family: var(--pa-font-title);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.pa-site-footer .footer-block__title a {
  color: inherit;
  text-decoration: none;
}

.pa-site-footer .footer-block__title button {
  color: inherit;
}

.pa-site-footer .footer-block__list {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
}

.pa-site-footer .footer-block__list li {
  margin: 0;
  padding: 0;
}

.pa-site-footer a {
  color: rgba(var(--pa-color-light-rgb), .82);
  text-decoration: none;
}

.pa-site-footer a:hover {
  color: var(--pa-color-light);
}

.pa-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pa-site-footer__shop {
  margin: 0;
  color: var(--pa-color-light);
  font-family: var(--pa-font-title);
  font-size: 1.25rem;
  font-weight: 700;
}

.pa-site-footer__address {
  margin: 0;
  color: rgba(var(--pa-color-light-rgb), .76);
  font-size: .875rem;
  font-style: normal;
  line-height: 1.6;
}

.pa-site-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
}

.pa-site-footer__after {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  padding-bottom: 2rem;
  font-size: .875rem;
}

/* Liens d'une ligne des modules (rétractation, cookies) côte à côte ; leur CSS les met à 100 % */
.pa-site-footer .pa-site-footer__after > * {
  flex: none;
  width: auto;
  max-width: none;
  margin: 0;
}

.pa-site-footer__after ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Liens d'une ligne des modules PrestAI (Rétractation de PrestAI Checkout, Cookies de PrestAI Cookie Consent) :
   alignés sur les colonnes, sans la gouttière Bootstrap */
.pa-site-footer .prestai-footer-link {
  padding-inline: 0;
}

.pa-site-footer__bottom {
  border-top: 1px solid rgba(var(--pa-color-light-rgb), .12);
  color: rgba(var(--pa-color-light-rgb), .7);
  font-size: .8125rem;
}

.pa-site-footer__bottom .pa-container {
  padding-block: 1.25rem;
}

.pa-site-footer__bottom .copyright {
  margin: 0;
  padding: 0;
  color: inherit;
  text-align: left;
}

/* Mobile et tablette (< 992 px, comme le header) : une colonne, blocs de liens en accordéon
   (modules/ps_linklist : bouton d-lg-none), séparés par un filet. Hummingbird déplie les accordéons dès
   768 px (règle dans un @layer) : on les garde repliés jusqu'à 991 px. */
@media (max-width: 991.98px) {
  .pa-site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .pa-site-footer .footer-block__content.collapse:not(.show) {
    display: none;
  }

  .pa-site-footer .footer-block__title--toggle {
    min-height: 44px;
  }

  .pa-site-footer .footer-block__title--toggle .material-icons {
    font-size: 1.5rem;
  }

  .pa-site-footer__grid > :not(.pc-banner, .pc-overlay, .modal) {
    padding-block: 1.1rem;
    border-top: 1px solid rgba(var(--pa-color-light-rgb), .12);
  }

  /* Filet entre les colonnes (un lien masqué d'un module en fin de grille ne laisse pas de filet orphelin) */
  .pa-site-footer__grid > :first-child {
    border-top: 0;
  }

  .pa-site-footer .footer-block__title--toggle {
    margin: 0;
  }

  .pa-site-footer .footer-block__title--toggle + .footer-block__content {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }

  .pa-site-footer__grid > .ps-linklist {
    padding-block: .4rem;
  }

  .pa-site-footer .pa-newsletter__form {
    max-width: 520px;
  }
}

/* ---------- Newsletter (ps_emailsubscription) ---------- */
.pa-newsletter__intro {
  margin: 0 0 .75rem;
  font-size: .875rem;
}

.pa-newsletter__row {
  display: flex;
  gap: .5rem;
}

.pa-newsletter__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 .9rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-sm);
  background: var(--pa-color-light);
  color: var(--pa-color-ink);
  font: inherit;
}

.pa-newsletter__submit {
  flex: none;
  height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: var(--pa-radius-sm);
  background: var(--pa-btn-primary-bg);
  color: var(--pa-btn-primary-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pa-newsletter__consent,
.pa-newsletter__conditions,
.pa-newsletter__msg {
  margin: .6rem 0 0;
  font-size: .8125rem;
}

.pa-newsletter__msg.is-error {
  font-weight: 700;
}

.pa-newsletter--band .pa-newsletter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.pa-newsletter--band .pa-title {
  max-width: 560px;
}

.pa-newsletter--band .pa-newsletter__form {
  flex: 1 1 360px;
  /* Sans min-width: 0, le formulaire garde la largeur du champ et du bouton (min-content) : à 390 px il dépassait de
     l'écran et toute la page défilait de côté. */
  min-width: 0;
  max-width: 520px;
}

.pa-newsletter--band .pa-newsletter__input,
.pa-newsletter--band .pa-newsletter__submit {
  height: 52px;
  border-radius: var(--pa-radius-pill);
}

.pa-newsletter--band .pa-newsletter__submit {
  padding: 0 1.5rem;
}

/* Dans le footer sombre */
.pa-site-footer .pa-newsletter__intro {
  color: rgba(var(--pa-color-light-rgb), .76);
}

.pa-site-footer .pa-newsletter__input {
  border-color: rgba(var(--pa-color-light-rgb), .24);
  background: transparent;
  color: var(--pa-color-light);
}

.pa-site-footer .pa-newsletter__input::placeholder {
  color: rgba(var(--pa-color-light-rgb), .6);
}

.pa-site-footer .pa-newsletter__submit {
  background: var(--pa-color-light);
  color: var(--pa-color-primary);
}

.pa-site-footer .pa-newsletter__consent,
.pa-site-footer .pa-newsletter__conditions {
  color: rgba(var(--pa-color-light-rgb), .7);
}

/* Méga menu mobile (PrestAI Content) dans le header du thème.
   - Hauteur : le module donne au menu la hauteur de la ligne d'ancrage (data-pa-megamenu-panel-anchor).
     Ici le menu est DANS cette ligne : la mesure s'auto-alimente et le header grandissait à chaque
     redimensionnement ou défilement (jusqu'à 300 px). Le menu prend la hauteur du burger.
   - Tiroir : de haut en bas de l'écran, par-dessus le bandeau d'annonce. */
.pa-header .pa-header__menu .pa-megamenu.is-mobile {
  height: auto !important;
  min-height: 44px !important;
}

.pa-header .pa-header__menu .pa-megamenu.is-mobile .pa-megamenu__drawer {
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding-top: env(safe-area-inset-top);
  border-radius: 0 !important;
}

/* Avant que le script du module passe le menu en mode mobile (.is-mobile, après DOMContentLoaded), le
   tiroir et le voile n'ont pas leur style : ils s'affichaient un instant sous le header, ou glissaient
   vers la gauche en prenant leur position fermée. Masqués jusqu'à .is-mobile : le tiroir apparaît
   directement fermé, sans transition. */
.pa-megamenu:not(.is-mobile) .pa-megamenu__drawer,
.pa-megamenu:not(.is-mobile) .pa-megamenu__backdrop {
  display: none !important;
}

/* Panier latéral (#pa-sidecart, déplacé dans <body> par prestai.js) */
.pa-sidecart.offcanvas {
  --bs-offcanvas-width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  border-left: 0;
  color: var(--pa-color-ink);
  font-family: var(--pa-font-body);
}

.pa-sidecart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  padding-top: max(1.1rem, env(safe-area-inset-top));
  border-bottom: 1px solid var(--pa-color-border);
}

.pa-sidecart__title {
  margin: 0;
  color: var(--pa-color-primary);
  font-family: var(--pa-font-title);
  font-size: 1.375rem;
}

.pa-sidecart__count {
  color: var(--pa-color-muted);
  font-family: var(--pa-font-body);
  font-size: 1rem;
}

.pa-sidecart__close,
.pa-sidecart__remove {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--pa-radius-pill);
  color: var(--pa-color-primary);
  background: transparent;
  cursor: pointer;
}

.pa-sidecart__close {
  margin-right: -.5rem;
}

.pa-sidecart__close:hover,
.pa-sidecart__remove:hover {
  background: var(--pa-color-surface);
}

.pa-sidecart__main {
  flex: 1;
  overflow-y: auto;
  padding: .5rem 1.5rem 1rem;
}

.pa-sidecart__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pa-sidecart__item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: start;
  gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pa-color-border);
  transition: opacity var(--pa-transition);
}

.pa-sidecart__item.is-removing {
  opacity: .4;
  pointer-events: none;
}

.pa-sidecart__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--pa-radius-sm);
  background: var(--pa-color-surface);
}

.pa-sidecart__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pa-sidecart__name {
  display: block;
  color: var(--pa-color-primary);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.pa-sidecart__name:hover {
  color: var(--pa-color-accent);
}

.pa-sidecart__attributes {
  margin: .25rem 0 0;
  color: var(--pa-color-muted);
  font-size: .8125rem;
}

.pa-sidecart__line {
  display: flex;
  gap: .4rem;
  margin: .4rem 0 0;
  font-size: .9375rem;
}

.pa-sidecart__qty {
  color: var(--pa-color-muted);
}

.pa-sidecart__price {
  color: var(--pa-color-primary);
  font-weight: 800;
}

.pa-sidecart__remove {
  width: 36px;
  height: 36px;
  margin: -.35rem -.5rem 0 0;
  color: var(--pa-color-muted);
}

.pa-sidecart__totals {
  display: grid;
  gap: .4rem;
  padding-top: 1rem;
}

.pa-sidecart__total-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  color: var(--pa-color-muted);
}

.pa-sidecart__total-line--total {
  padding-top: .5rem;
  color: var(--pa-color-primary);
  font-size: 1.125rem;
  font-weight: 800;
}

/* PrestAI Checkout dans le panier latéral : jauge de livraison offerte en tête (aux couleurs du thème),
   emballage cadeau avant le total (style et script du module, Checkout 2.10.2+) : modules/ps_shoppingcart */
.pa-sidecart .prestai-fsp {
  margin: .5rem 0 .25rem;
  padding: .75rem .85rem;
  border-radius: var(--pa-radius-md);
  background: var(--pa-color-surface);
  container-type: inline-size;
}

/* Message sur une ligne : taille calée sur la largeur de la jauge (environ 52 caractères) */
.pa-sidecart .prestai-fsp__message {
  display: block;
  overflow: hidden;
  color: var(--pa-color-ink);
  font-size: min(.8125rem, 3.7cqi);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-sidecart__empty {
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding: 3rem 1rem;
  color: var(--pa-color-muted);
  text-align: center;
}

.pa-sidecart__footer {
  display: grid;
  gap: .6rem;
  padding: 1rem 1.5rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--pa-color-border);
}

.pa-sidecart__footer[hidden] {
  display: none;
}

.pa-sidecart__footer .pa-button {
  justify-content: center;
  width: 100%;
}

/* =========================================================
   12c. CARTE PRODUIT (catalog/_partials/miniatures/product.tpl)
   Spec : ProductCard du design system. Listes, recherche, carrousels CE, modules.
   ========================================================= */

.pa-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-lg);
  background: var(--pa-color-light);
  font-family: var(--pa-font-body);
  transition: border-color var(--pa-transition), box-shadow var(--pa-transition);
}

.pa-product-card:hover,
.pa-product-card:has(:focus-visible) {
  border-color: rgba(var(--pa-color-primary-rgb), .22);
  box-shadow: 0 10px 30px rgba(var(--pa-color-primary-rgb), .08);
}

.pa-product-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--pa-radius-lg);
  background: var(--pa-color-surface);
}

.pa-product-card__media .product-miniature__image-container,
.pa-product-card__media .product-miniature__image-link {
  display: block;
  aspect-ratio: 1 / 1;
}

.pa-product-card__media .product-miniature__image-link {
  outline-offset: -2px;
}

.pa-product-card__media picture,
.pa-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.pa-product-card__media img {
  object-fit: cover;
  transition: transform var(--pa-transition);
}

.pa-product-card:hover .pa-product-card__media img {
  transform: scale(1.025);
}

.pa-product-card__badges {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: .7rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.pa-product-card__badge {
  padding: .15rem .55rem;
  border-radius: var(--pa-radius-pill);
  color: var(--pa-color-light);
  background: var(--pa-color-accent);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.6;
}

.pa-product-card__badge--new,
.pa-product-card__badge--pack,
.pa-product-card__badge--online-only {
  background: var(--pa-color-primary);
}

.pa-product-card__badge--out_of_stock {
  color: var(--pa-color-primary);
  background: var(--pa-color-light);
}

/* Aperçu rapide : visible au survol ou au clavier, toujours sur écran tactile */
.pa-product-card__quickview {
  position: absolute;
  z-index: 2;
  top: .5rem;
  right: .5rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--pa-radius-pill);
  color: var(--pa-color-primary);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 8px rgba(var(--pa-color-primary-rgb), .12);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--pa-transition);
}

.pa-product-card:hover .pa-product-card__quickview,
.pa-product-card__quickview:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .pa-product-card__quickview {
    display: none;
  }
}

.pa-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .4rem;
  padding: .75rem .95rem 1.1rem;
}

.pa-product-card__name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--pa-color-primary);
  font-size: clamp(1rem, .9rem + .35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pa-product-card__name:hover {
  color: var(--pa-color-accent);
}

.pa-product-card__variants {
  display: flex;
  flex-wrap: nowrap;
  gap: .35rem;
  max-height: 16px;
  overflow: hidden;
}

/* Pastilles de couleur : petites et sur une ligne, à toutes les largeurs (Hummingbird les grossit en mobile) */
.pa-product-card__variants > a {
  flex: none;
  width: 14px;
  height: 14px;
  min-width: 0;
  margin: 1px;
  border: 1px solid var(--pa-color-border);
  border-radius: 50%;
}

/* Avis productcomments : masqué par Hummingbird, affiché (.d-flex) par son JS
   seulement si le produit a des avis. Ne pas forcer display ici. */
.pa-product-card .product-list-review {
  padding: 0;
}

.pa-product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .35rem;
}

.pa-product-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .5rem;
  min-width: 0;
}

.pa-product-card__price {
  color: var(--pa-color-primary);
  font-size: 1.05rem;
  font-weight: 800;
}

.pa-product-card__regular-price {
  color: var(--pa-color-muted);
  font-size: .9rem;
  font-weight: 400;
}

.pa-product-card__form {
  flex: none;
  margin: 0;
}

.pa-product-card__add {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--pa-btn-secondary-border);
  border-radius: var(--pa-radius-pill);
  color: var(--pa-btn-secondary-text);
  background: var(--pa-btn-secondary-bg);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--pa-transition), color var(--pa-transition), border-color var(--pa-transition);
}

.pa-product-card__add:hover,
.pa-product-card__add:focus-visible {
  border-color: var(--pa-btn-secondary-hover-border);
  color: var(--pa-btn-secondary-hover-text);
  background: var(--pa-btn-secondary-hover-bg);
}

@media (max-width: 575.98px) {
  .pa-product-card__body {
    padding: .6rem .7rem .85rem;
  }

  .pa-product-card__add {
    width: 40px;
    height: 40px;
  }
}

/* =========================================================
   12d. LISTES DE PRODUITS (catalog/listing/product-list.tpl, maquette Catégorie)
   En-tête, barre d'outils collante, tiroir de filtres, grille, pagination, texte SEO.
   ========================================================= */

/* Pleine largeur : la colonne de gauche ne porte plus que le tiroir (position fixe) */
.columns-container > .row:has(> .pa-listing-aside) > #center-column {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}

.pa-listing-aside {
  display: contents;
}

/* En-tête */
.pa-listing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: 0;
}

.pa-listing-head__main {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 760px;
}

.pa-listing-head .pa-title {
  margin: 0;
}

.pa-listing-head__description {
  margin-top: .9rem;
}

.pa-listing-head__description > :last-child {
  margin-bottom: 0;
}

.pa-listing-head__count {
  margin: 0;
  color: var(--pa-color-muted);
  font-size: .875rem;
}

.pa-category-children {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: .75rem;
}

.pa-category-children__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.125rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-pill);
  color: var(--pa-color-primary);
  background: var(--pa-color-light);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--pa-transition), color var(--pa-transition);
}

.pa-category-children__link:hover,
.pa-category-children__link:focus-visible {
  border-color: var(--pa-color-primary);
  color: var(--pa-color-primary);
}

/* Barre d'outils collante, pleine largeur d'écran : sans filet au repos ; filet et ombre seulement
   quand elle est collée sous le header (.is-stuck, prestai.js) */
.pa-listing-toolbar {
  position: sticky;
  z-index: 5;
  top: calc(var(--pa-header-height, 0px) - var(--pa-header-shift, 0px));
  margin: 1.25rem calc(50% - 50vw) 0;
  padding-inline: calc(50vw - 50%);
  background: var(--pa-color-light);
  transition: top 200ms cubic-bezier(.22, 1, .36, 1), box-shadow var(--pa-transition);
}

.pa-listing-toolbar.is-stuck {
  box-shadow: 0 1px 0 var(--pa-color-border), 0 10px 24px -12px rgba(var(--pa-color-primary-rgb), .18);
}

.pa-listing-toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding-block: .75rem;
}

.pa-listing-top {
  display: contents;
}

.pa-listing-top__filter {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.125rem;
  border: 1px solid var(--pa-color-primary);
  border-radius: var(--pa-radius-pill);
  color: var(--pa-color-primary);
  background: var(--pa-color-light);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--pa-transition), color var(--pa-transition);
}

.pa-listing-top__filter:hover,
.pa-listing-top__filter:focus-visible {
  color: var(--pa-color-light);
  background: var(--pa-color-primary);
}

.pa-listing-top__count {
  order: 2;
  margin: 0;
  color: var(--pa-color-muted);
  font-size: .875rem;
}

.pa-listing-toolbar #js-active-search-filters {
  order: 3;
  flex: 1 1 auto;
  min-width: 0;
}

.pa-listing-top__sort {
  order: 4;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  color: var(--pa-color-muted);
  font-size: .875rem;
}

.pa-listing-top__sort .products__sort-dropdown-button {
  min-height: 44px;
  padding: 0 2.25rem 0 .875rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-sm);
  color: var(--pa-color-ink);
  background: var(--pa-color-light);
  font-size: .875rem;
}

/* Filtres actifs en pastilles */
.active-filters__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.active-filters__title {
  display: none;
}

.active-filters__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 36px;
  padding: 0 .5rem 0 .875rem;
  border: 0;
  border-radius: var(--pa-radius-pill);
  color: var(--pa-color-primary);
  background: var(--pa-color-surface);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
}

.active-filters__link .material-icons {
  font-size: 1rem;
}

.active-filters__link:hover {
  color: var(--pa-color-light);
  background: var(--pa-color-primary);
}

/* Tiroir de filtres */
.pa-filters-drawer.offcanvas {
  --bs-offcanvas-width: min(400px, 92vw);
  display: flex;
  flex-direction: column;
  border-right: 0;
  font-family: var(--pa-font-body);
}

.pa-filters-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--pa-color-border);
}

.pa-filters-drawer__title {
  margin: 0;
  color: var(--pa-color-primary);
  font-family: var(--pa-font-title);
  font-size: 1.375rem;
}

.pa-filters-drawer__close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-right: -.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--pa-radius-pill);
  color: var(--pa-color-primary);
  background: transparent;
  cursor: pointer;
}

.pa-filters-drawer__close:hover {
  background: var(--pa-color-surface);
}

.pa-filters-drawer__body {
  flex: 1;
  padding: .5rem 1.5rem 1.5rem;
}

.pa-filters-drawer__body .accordion-button {
  padding-inline: 0;
  color: var(--pa-color-primary);
  font-weight: 700;
}

.pa-filters-drawer__body .accordion-button:not(.collapsed) {
  background: transparent;
  box-shadow: none;
}

.pa-filters-drawer__body .accordion-body {
  padding-inline: 0;
}

.pa-filters-drawer__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--pa-color-border);
}

.pa-filters-drawer__apply {
  width: 100%;
  justify-content: center;
}

/* Grille de résultats : juste sous la barre d'outils */
.pa-listing-products #js-product-list {
  padding-block: 1rem 0;
}

.pa-listing-products .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
}

@media (max-width: 1199.98px) {
  .pa-listing-products .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .pa-listing-products .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Pagination */
.pa-listing-products .products__pagination {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.pa-listing-products .pagination__container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: .75rem;
}

.pa-listing-products .pagination__number {
  color: var(--pa-color-muted);
  font-size: .8125rem;
}

.pa-listing-products .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .375rem;
  margin: 0;
}

.pa-listing-products .pagination .page-link {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  padding: 0 .75rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-pill);
  color: var(--pa-color-primary);
  background: var(--pa-color-light);
  font-weight: 600;
  line-height: 1;
}

/* Libellés « Précédent / Suivant » : masqués à l'œil (aria-label sur le bouton). Pas de display:none,
   les utilitaires !important de Hummingbird sont dans une couche (@layer) et l'emporteraient. */
.pa-listing-products .pagination .page-link .d-xl-flex {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pa-listing-products .pagination .page-item.active .page-link {
  border-color: var(--pa-color-primary);
  color: var(--pa-color-light);
  background: var(--pa-color-primary);
}

.pa-listing-products .pagination .page-item.disabled .page-link {
  border-color: transparent;
  background: transparent;
  opacity: .5;
}

/* Texte SEO de la catégorie */
.pa-category-additional {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--pa-radius-lg);
}

.pa-category-additional .pa-container {
  width: 100%;
}

.pa-category-additional__text {
  max-width: 760px;
}

@media (max-width: 767.98px) {
  .pa-listing-toolbar__inner {
    gap: .5rem;
  }

  .pa-listing-top__sort .products__sort-label {
    display: none;
  }

  .pa-listing-top__count {
    display: none;
  }

  .pa-listing-toolbar #js-active-search-filters {
    order: 5;
    flex-basis: 100%;
  }

  .pa-listing-toolbar #js-active-search-filters:not(:has(li)) {
    display: none;
  }
}

/* =========================================================
   12e. FICHE PRODUIT (catalog/product.tpl, maquette Produit)
   ========================================================= */

.pa-product {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

/* Héro : galerie + bloc d'achat */
.pa-product-hero {
  padding-block: clamp(.5rem, 1.5vw, 1rem) clamp(2.5rem, 5vw, 4.5rem);
}

.pa-product-hero .pa-product-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0;
}

.pa-product-gallery,
.pa-product-buybox {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

/* Galerie desktop : toutes les vues en grille 2 colonnes (le carrousel Hummingbird reste en mobile) */
@media (min-width: 992px) {
  .pa-product-gallery .product__carousel .carousel-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
    overflow: visible;
  }

  .pa-product-gallery .product__carousel .carousel-item {
    display: block !important;
    float: none;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
    backface-visibility: visible;
  }

  .pa-product-gallery .product__carousel .carousel-item:only-child {
    grid-column: 1 / -1;
  }

  .pa-product-gallery .product__carousel .carousel-control-prev,
  .pa-product-gallery .product__carousel .carousel-control-next,
  .pa-product-gallery .product__thumbnails {
    display: none;
  }

  /* Bloc d'achat collant au défilement : sous le header ; plus haut que l'écran, il défile d'abord puis
     se colle par le bas (--pa-buybox-height, mesuré par prestai.js), pour que tout reste atteignable */
  .pa-product-buybox {
    position: sticky;
    top: min(calc(var(--pa-header-height, 0px) + 1.5rem), calc(100vh - var(--pa-buybox-height, 0px) - 1.5rem));
  }
}

.pa-product-gallery .product__carousel .carousel-item {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-lg);
  background: var(--pa-color-surface);
}

/* Clic sur une photo : fenêtre de zoom de Hummingbird sur cette photo (prestai.js).
   Le bouton loupe reste pour le clavier, visible seulement au focus. */
.pa-product-gallery .product__carousel .carousel-item {
  cursor: zoom-in;
}

.pa-product-gallery .product__zoom:not(:focus-visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pa-product-gallery .product__carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fenêtre de zoom : une photo à la fois, entière à l'écran, flèches lisibles */
.product-images-modal .carousel-item picture {
  display: flex;
  justify-content: center;
}

.product-images-modal .carousel-item img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);
  border-radius: var(--pa-radius-md, var(--pa-radius-sm));
  object-fit: contain;
}

.product-images-modal .carousel-control-prev,
.product-images-modal .carousel-control-next {
  width: 4.5rem;
  opacity: .9;
}

.product-images-modal .carousel-control-prev:hover,
.product-images-modal .carousel-control-next:hover,
.product-images-modal .carousel-control-prev:focus-visible,
.product-images-modal .carousel-control-next:focus-visible {
  opacity: 1;
}

.pa-product-gallery .product__thumbnail-image {
  border-radius: var(--pa-radius-sm);
}

/* Aperçu rapide (catalog/_partials/quickview.tpl) : colonne d'achat au gabarit du bloc d'achat, sans
   collage, nom plus petit */
.quickview .pa-product-buybox {
  position: static;
}

.quickview .pa-product-buybox__name {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700; /* comme le <h1> de la fiche ; ici un <p> */
}

/* Bloc d'achat */
.pa-product-buybox {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pa-product-buybox__brand {
  margin: 0;
}

.pa-product-buybox__brand a {
  color: inherit;
  text-decoration: none;
}

.pa-product-buybox__name {
  margin: 0;
  color: var(--pa-color-primary);
  font-family: var(--pa-font-title);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.pa-product-buybox .product__prices {
  margin: 0;
}

.pa-product-buybox .product__price {
  color: var(--pa-color-primary);
  font-size: 1.625rem;
  font-weight: 800;
}

.pa-product-buybox .product__regular-price {
  color: var(--pa-color-muted);
}

/* Remise : badge accent (les utilitaires text-primary-emphasis lisent cette variable) */
.pa-product-buybox .product__discount-percentage,
.pa-product-buybox .product__discount-amount {
  --bs-primary-text-emphasis: var(--pa-color-light);
  margin-inline-start: .375rem;
  padding: .125rem .5rem;
  border-radius: var(--pa-radius-pill);
  background: var(--pa-color-accent);
  font-size: .75rem;
  font-weight: 700;
}

.pa-product-buybox .product__availability-status {
  display: flex;
  align-items: center;
  gap: .375rem;
}

.pa-product-buybox .product__availability-icon {
  font-size: 1.125rem;
}

.pa-product-buybox .product__delivery-infos {
  color: var(--pa-color-muted);
}

.pa-product-buybox .product__tax-infos {
  color: var(--pa-color-muted);
  font-size: .8125rem;
}

/* Prix et mention TTC / HT sur la même ligne ; prix barré, remise et le reste sur leur propre ligne */
.pa-product-buybox .product__prices-block {
  display: flex;
  flex-direction: row; /* Hummingbird : colonne */
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .5rem;
}

.pa-product-buybox .product__prices-block > * {
  flex: 0 0 100%;
  margin: 0;
}

.pa-product-buybox .product__prices-block > .product__prices-inline:not(.product__discount-price),
.pa-product-buybox .product__prices-block > .product__tax-infos {
  flex: 0 1 auto;
}

.pa-product-buybox__summary {
  color: var(--pa-color-muted);
  line-height: 1.65;
}

.pa-product-buybox__summary > :last-child {
  margin-bottom: 0;
}

/* Rythme du bloc d'achat : écart du bloc (1rem) + 1rem entre résumé, achat, réassurance et caractéristiques ;
   un filet au-dessus de la réassurance et des caractéristiques seulement ; plus des marges de 2rem de
   Hummingbird (résumé, déclinaisons, disponibilité, ajout) */
.pa-product-buybox .pa-product-buybox__summary,
.pa-product-buybox .pa-product-buybox__actions,
.pa-product-buybox .product__add-to-cart-container {
  margin-bottom: 0;
}

.pa-product-buybox__actions {
  margin-top: 1rem;
}

.pa-product-buybox .product__variants {
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.pa-product-buybox .product-variant {
  margin-bottom: 0;
}

.pa-product-buybox .product-variant__legend {
  color: var(--pa-color-primary);
  font-size: .875rem;
  font-weight: 700;
}

.pa-product-buybox .form-select {
  min-height: 44px;
  border-color: var(--pa-color-border);
  border-radius: var(--pa-radius-sm);
}

.pa-product-buybox .product__actions-qty-add {
  display: flex;
  flex-wrap: nowrap;
  gap: .625rem;
}

.pa-product-buybox .product__quantity {
  flex: 0 0 8.5rem;
  width: 8.5rem;
  margin: 0;
}

.pa-product-buybox .product__add-to-cart {
  flex: 1;
  min-width: 0;
}

.pa-product-buybox .product__add-to-cart-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  border: 1px solid var(--pa-btn-primary-border, var(--pa-color-primary));
  border-radius: var(--pa-radius-pill);
  color: var(--pa-btn-primary-text, var(--pa-color-light));
  background: var(--pa-btn-primary-bg, var(--pa-color-primary));
  font-weight: 700;
}

.pa-product-buybox .product__add-to-cart-button:hover {
  border-color: var(--pa-btn-primary-hover-border, var(--pa-color-accent));
  background: var(--pa-btn-primary-hover-bg, var(--pa-color-accent));
}

.pa-product-buybox .quantity-button .input-group {
  min-height: 52px;
  overflow: hidden;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-pill);
}

.pa-product-buybox .quantity-button .btn,
.pa-product-buybox .quantity-button input {
  border: 0;
  background: transparent;
}

.pa-product-buybox .product__availability {
  margin-top: 0;
  margin-bottom: .75rem;
  font-size: .875rem;
}

.pa-product-buybox__reassurance {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pa-color-border);
}

.pa-product-buybox__features {
  margin-top: 1rem;
}

/* Pictos éco en tête du bloc d'achat, caractéristiques de PrestAI Content en pied */
.pa-product-buybox__eco .pa-product-eco-labels {
  margin: 0;
}

.pa-product-buybox__features .pa-product-features {
  margin-top: 0;
}

.pa-product-buybox__reference {
  margin: .75rem 0 0;
  color: var(--pa-color-muted);
  font-size: .8125rem;
}

.pa-product-buybox .pa-product-origin {
  margin-top: 0;
}

/* Sections sous le héro */
.pa-product-section {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--pa-color-border);
}

.pa-product-section__title {
  margin: 0 0 1.5rem;
  color: var(--pa-color-primary);
  font-family: var(--pa-font-title);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
}

.pa-product-section--description .pa-product-section__body {
  max-width: 820px;
}

/* Sorties de PrestAI Content : ouvertes (prestai.js), sans double titre ni bordures d'accordéon */
.pa-product-section .pa-product-features,
.pa-product-section .pa-product-description__toggle,
.pa-product-section .pa-product-features__toggle {
  margin-top: 0;
  border: 0;
}

.pa-product-section .pa-product-description__panel,
.pa-product-section .pa-product-features__panel {
  padding: 0;
}

.pa-product-section .pa-product-description__content,
.pa-product-section .pa-product-features__text {
  font-size: 1rem;
  line-height: 1.7;
}

.pa-product-section .pa-product-features__spec dt,
.pa-product-section .pa-product-features__spec dd {
  font-size: .9375rem;
}

.pa-product-section details > summary {
  list-style: none;
  pointer-events: none;
}

.pa-product-section details > summary::-webkit-details-marker {
  display: none;
}

.pa-product-section .pa-product-description__summary,
.pa-product-section .pa-product-description__toggle-icon,
.pa-product-section .pa-product-features__toggle-icon {
  display: none;
}

.pa-product-section .pa-product-features__toggle + .pa-product-features__toggle {
  margin-top: 1.5rem;
}

.pa-product-section .pa-product-features__summary {
  margin-bottom: .5rem;
  color: var(--pa-color-primary);
  font-size: 1.0625rem;
  font-weight: 700;
}

.pa-product-section .pa-product-features__toggle:first-child .pa-product-features__summary {
  display: none;
}

/* Caractéristiques : lignes libellé / valeur, deux colonnes en desktop */
.pa-product-specs,
.pa-product-section .pa-product-features__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3.5rem;
  margin: 0;
  border-top: 1px solid var(--pa-color-border);
}

.pa-product-specs__row,
.pa-product-section .pa-product-features__spec {
  display: grid;
  margin: 0;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--pa-color-border);
}

.pa-product-specs dt,
.pa-product-section .pa-product-features__spec dt {
  color: var(--pa-color-primary);
  font-weight: 600;
}

.pa-product-specs dd,
.pa-product-section .pa-product-features__spec dd {
  margin: 0;
}

.pa-product-specs--reference {
  margin-top: 1.5rem;
  border-top: 0;
}

.pa-product-attachments {
  margin: 0;
  padding: .5rem 0 0;
  list-style: none;
}

/* Vous aimerez aussi, modules de pied de fiche : grille de cartes du listing */
.pa-product-section .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
}

.pa-product-section .section-title {
  margin: 0 0 1.5rem;
  color: var(--pa-color-primary);
  font-family: var(--pa-font-title);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
  text-align: start;
}

@media (max-width: 1199.98px) {
  .pa-product-section .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .pa-product-hero .pa-product-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .pa-product-section .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pa-product-specs,
  .pa-product-section .pa-product-features__specs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Grille de 4 : 2 colonnes jusqu'au mobile, 1 sous 480 px */
@media (max-width: 479.98px) {
  .pa-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Tiroir des filtres : le titre « Filtrer par » du module (left-block__title, d-md-block) double celui
   du tiroir. Les utilitaires d-* de Hummingbird sont en !important dans un @layer : masqué sans display. */
.pa-filters-drawer .left-block__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Galerie desktop : la vue de la déclinaison choisie (.is-cover) en premier ; avec un nombre impair de
   vues, elle prend les 2 colonnes : jamais de vue seule en bout de grille */
@media (min-width: 992px) {
  .pa-product-gallery .product__carousel .carousel-item.is-cover {
    order: -1;
  }

  .pa-product-gallery .product__carousel .carousel-inner:has(> .carousel-item:last-child:nth-child(odd)) .carousel-item.is-cover {
    grid-column: 1 / -1;
  }
}

/* Déclinaisons en boutons (catalog/_partials/product-variants.tpl : tailles…) */
.pa-variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pa-variant-pill {
  position: relative;
}

.pa-variant-pill__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pa-variant-pill__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 44px;
  margin: 0;
  padding: 0 .9rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-btn-radius);
  background: var(--pa-color-light);
  color: var(--pa-color-ink);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--pa-transition), background var(--pa-transition), color var(--pa-transition);
}

.pa-variant-pill__label:hover {
  border-color: var(--pa-color-primary);
}

.pa-variant-pill__input:checked + .pa-variant-pill__label {
  border-color: var(--pa-color-primary);
  background: var(--pa-color-primary);
  color: var(--pa-color-light);
}

.pa-variant-pill__input:focus-visible + .pa-variant-pill__label {
  outline: 2px solid var(--pa-color-accent);
  outline-offset: 2px;
}

/* Réassurance sous « Ajouter au panier » (bloc PrestAI Content fiche-reassurance) */
.pa-buy-reassurance {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0; /* filet et marge : .pa-product-buybox__reassurance */
  list-style: none;
  color: var(--pa-color-ink);
  font-size: .875rem;
  line-height: 1.35;
}

.pa-buy-reassurance li {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.pa-buy-reassurance svg {
  flex: none;
  color: var(--pa-color-accent);
}

/* Barre d'achat fixe en mobile (fiche produit, panier : prestai.js) */
.pa-sticky-buy {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030; /* sous les tiroirs et fenêtres de Bootstrap (1045+) */
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem var(--pa-gutter) calc(.65rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pa-color-border);
  background: var(--pa-color-light);
  box-shadow: 0 -8px 24px rgba(var(--pa-color-primary-rgb), .08);
}

.pa-sticky-buy[hidden] {
  display: none;
}

.pa-sticky-buy__info {
  flex: 1 1 auto;
  min-width: 0;
}

.pa-sticky-buy__name {
  margin: 0;
  overflow: hidden;
  color: var(--pa-color-muted);
  font-size: .8125rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-sticky-buy__price {
  margin: 0;
  color: var(--pa-color-primary);
  font-weight: 700;
  line-height: 1.3;
}

.pa-sticky-buy__button {
  flex: none;
  min-height: 44px;
  padding-inline: 1.25rem;
}

/* La barre (66 px : 2 × .65rem + bouton de 44 px + filet) ne cache pas le bas de page ; le badge d'avis
   flottant de PrestAI Engagement (2.9.1+) remonte d'autant, par sa variable de décalage */
html.pa-sticky-buy-visible {
  --pa-sr-floating-offset: 66px;
}

html.pa-sticky-buy-visible body {
  padding-bottom: 72px;
}

@media (min-width: 992px) {
  .pa-sticky-buy {
    display: none !important;
  }
}

/* =========================================================
   12f. HOME DU THÈME (templates/index.tpl) ET CARROUSELS DE PRODUITS
   ========================================================= */

.pa-home {
  width: 100%;
}

.pa-home .page-content--home {
  display: block; /* Hummingbird : .page-content en grille avec 40px d'écart entre les sections */
  margin: 0;
  padding: 0;
}

/* Carrousel de cartes produit : 4 cartes (desktop), 3 (tablette), 2 (mobile), défilement par page */
.pa-product-rail {
  --pa-rail-gap: clamp(.75rem, 1.6vw, 1.25rem);
  --pa-rail-columns: 4;
  position: relative;
}

.pa-product-rail__track {
  display: grid;
  grid-auto-columns: calc((100% - (var(--pa-rail-columns) - 1) * var(--pa-rail-gap)) / var(--pa-rail-columns));
  grid-auto-flow: column;
  gap: var(--pa-rail-gap);
  margin: 0;
  padding: 0 0 .25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.pa-product-rail__track::-webkit-scrollbar {
  display: none;
}

.pa-product-rail__item {
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
}

.pa-product-rail__item > .pa-product-card {
  width: 100%;
}

.pa-product-rail__nav {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--pa-color-border);
  border-radius: 50%;
  color: var(--pa-color-primary);
  background: var(--pa-color-light);
  box-shadow: 0 6px 18px rgba(var(--pa-color-primary-rgb), .12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity var(--pa-transition), background var(--pa-transition);
}

.pa-product-rail__nav:hover {
  background: var(--pa-color-surface);
}

.pa-product-rail__nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.pa-product-rail__nav--prev {
  left: -22px;
}

.pa-product-rail__nav--next {
  right: -22px;
}

@media (max-width: 1199.98px) {
  .pa-product-rail {
    --pa-rail-columns: 3;
  }
}

/* Affichage mobile (< 992 px) : au doigt, sans flèches, jusqu'au bord de l'écran ; la carte suivante
   dépasse à droite (38 % en tablette, 62 % en téléphone) */
@media (max-width: 991.98px) {
  .pa-product-rail__track {
    grid-auto-columns: 38%;
    margin-inline: calc(var(--pa-gutter) * -1);
    padding: 0 var(--pa-gutter) .25rem;
    scroll-padding-inline: var(--pa-gutter);
  }

  .pa-product-rail__nav {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .pa-product-rail__track {
    grid-auto-columns: 62%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-product-rail__track {
    scroll-behavior: auto;
  }
}

/* Derniers articles du blog : moins de 4 articles, pas de colonnes vides (3 en 3 colonnes ; 1 ou 2 en
   cartes horizontales sur 2 colonnes) */
@media (min-width: 992px) {
  .prestai-blog-latest .pa-grid-4:has(> :last-child:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prestai-blog-latest .pa-grid-4:not(:has(> :nth-child(3))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prestai-blog-latest .pa-grid-4:not(:has(> :nth-child(3))) > .pa-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  }

  .prestai-blog-latest .pa-grid-4:not(:has(> :nth-child(3))) > .pa-card .pa-card__media {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }
}

/* Home en affichage mobile (< 992 px) : univers, merchandising, marques et blog en carrousel au doigt
   (cartes qui dépassent à droite pour inviter à faire défiler) au lieu de grilles sur plusieurs écrans.
   Largeur des cartes : tablette puis téléphone. */
@media (max-width: 991.98px) {
  .pa-home :is(.pa-grid-auto, .pa-grid-4) {
    grid-template-columns: none;
    grid-auto-columns: 44%;
    grid-auto-flow: column;
    gap: .75rem;
    margin-inline: calc(var(--pa-gutter) * -1);
    padding: 0 var(--pa-gutter) .25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--pa-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .pa-home :is(.pa-grid-auto, .pa-grid-4)::-webkit-scrollbar {
    display: none;
  }

  .pa-home :is(.pa-grid-auto, .pa-grid-4) > * {
    scroll-snap-align: start;
  }

  .pa-home .pa-grid-auto {
    grid-auto-columns: 28%;
  }
}

@media (max-width: 767.98px) {
  .pa-home :is(.pa-grid-auto, .pa-grid-4) {
    grid-auto-columns: 72%;
  }

  .pa-home .pa-grid-auto {
    grid-auto-columns: 42%;
  }

  .pa-home .prestai-blog-latest .pa-card__body p {
    display: none;
  }
}

/* Héro de la home en mobile (section du bloc dont la .pa-split porte le titre .pa-title--xl) : photo en
   fond sur toute la section, dégradé sombre vers le bas, texte en blanc ; bouton principal blanc sur toute
   la largeur, bouton secondaire en lien dessous. Le héro tient dans un écran. Dès l'affichage mobile
   (< 992 px) : en tablette, texte et photo s'empileraient sinon. */
@media (max-width: 991.98px) {
  .pa-home .pa-section:has(.pa-split .pa-title--xl) {
    padding-block: 0;
    background: var(--pa-color-primary);
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-contours {
    display: none;
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) > .pa-container {
    position: static;
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-split {
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(74svh, 560px);
    padding-block: 2.5rem 1.75rem;
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-split__media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-split .pa-media {
    height: 100%;
    border-radius: 0;
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--pa-color-primary-rgb), .05) 0%, rgba(var(--pa-color-primary-rgb), .45) 40%, rgba(var(--pa-color-primary-rgb), .92) 100%);
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-split__text {
    position: relative;
    z-index: 1;
    flex: none;
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) :is(.pa-eyebrow, .pa-title) {
    color: var(--pa-color-light);
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-subtitle {
    color: rgba(255, 255, 255, .85);
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-actions {
    gap: .25rem;
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-button:not(.pa-button--secondary) {
    border-color: var(--pa-color-light);
    color: var(--pa-color-primary) !important;
    background: var(--pa-color-light);
  }

  .pa-home .pa-section:has(.pa-split .pa-title--xl) .pa-button--secondary {
    min-height: 44px;
    border-color: transparent;
    color: var(--pa-color-light) !important;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* =========================================================
   13. FORMS
   ========================================================= */

.pa-form label {
  margin-bottom: .4rem;
  color: var(--pa-color-primary);
  font-size: .875rem;
  font-weight: 700;
}

.pa-form :is(input, select, textarea) {
  border-color: var(--pa-color-border);
  border-radius: var(--pa-radius-sm);
  font-family: var(--pa-font-body);
}

.pa-form :is(input:not([type="checkbox"]):not([type="radio"]), select) {
  min-height: 48px;
}

/* =========================================================
   14. ACCESSIBILITY
   ========================================================= */

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid rgba(var(--pa-color-accent-rgb), .45);
  outline-offset: 3px;
}

/* =========================================================
   15. RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
  .pa-grid-4 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .pa-grid-3,
  .pa-section__head--split {
    grid-template-columns: 1fr;
  }

  .pa-reassurance__grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 767.98px) {
  .pa-section {
    padding-block: 3rem;
  }

  .pa-section--tight {
    padding-block: var(--pa-section-y-tight);
  }

  .pa-grid-2,
  .pa-grid-3 {
    grid-template-columns: 1fr;
  }

  .pa-title--xl {
    font-size: clamp(2.6rem, 13vw, 3.75rem);
  }

  .pa-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pa-button {
    width: 100%;
  }

  .pa-announcement-bar__viewport,
  .pa-announcement-bar__item {
    height: 33px;
  }

  .pa-announcement-bar__item {
    gap: .4rem;
    padding-inline: .75rem;
    font-size: .68rem;
  }

  /* Réassurance en mobile : une rangée qui défile au doigt (cartes compactes, la suivante dépasse à
     droite) au lieu d'une grille 2 × 2 sur un écran entier */
  .pa-reassurance__grid {
    grid-template-columns: none;
    grid-auto-columns: 78%;
    grid-auto-flow: column;
    gap: .625rem;
    margin-inline: calc(var(--pa-gutter) * -1);
    padding: 0 var(--pa-gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--pa-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .pa-reassurance__grid::-webkit-scrollbar {
    display: none;
  }

  .pa-reassurance-item {
    align-items: center;
    gap: .75rem;
    padding: .75rem .9rem;
    border: 1px solid var(--pa-color-border);
    border-radius: var(--pa-radius-md);
    scroll-snap-align: start;
  }

  .pa-reassurance-item__icon {
    width: 2rem;
    height: 2rem;
  }

  .pa-reassurance-item h3,
  .pa-reassurance-item__title {
    font-size: .875rem;
  }

  .pa-reassurance-item p:not(.pa-reassurance-item__title) {
    margin-top: .15rem;
    font-size: .8125rem;
    line-height: 1.35;
  }

  .pa-cta-band .pa-actions {
    width: 100%;
  }
}

/* =========================================================
   16. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .pa-announcement-bar__item {
    animation: none !important;
  }

  .pa-announcement-bar__item:not(.is-active) {
    display: none;
  }

  .pa-card__media img,
  .pa-category-tile__media img,
  .pa-brand-card__media img,
  .pa-product-card__media img,
  .pa-accordion summary::after,
  .pa-button,
  .pa-link-arrow::after {
    transition-duration: .01ms !important;
  }
}


/* PrestAI B2B 0.6.0 — historique d'une commande d'un client pro : « Total à payer » mis en avant sous un filet,
   comme au panier et à la confirmation (prestai-checkout.css). */
body#order-detail .grid-table__row--to-pay {
  border-top: 1px solid var(--pa-color-border);
}

body#order-detail .grid-table__row--to-pay .grid-table__cell {
  font-size: 1.125rem;
}

/* PrestAI Content 2.13.0 — Magasins (page native des magasins et bloc « Nos magasins ») : les variables du module sur
   les jetons du thème. Repères et fiche choisie : --prestai-stores-accent vaut déjà --bs-primary (couleur primaire). */
body .prestai-stores,
body .prestai-stores-block {
  --prestai-stores-border: var(--pa-color-border);
  --prestai-stores-radius: var(--pa-radius-md);
  --prestai-stores-muted: var(--pa-color-muted);
  /* Revendeurs (Content 2.14.0) : badge et repère à la couleur d'accent du thème, pour les distinguer des magasins du
     marchand (repère plein à la couleur primaire) d'un coup d'œil sur la carte. */
  --prestai-stores-reseller: var(--pa-color-accent);
}

/* Le filtre « Tous · Nos magasins · Revendeurs » (Content 2.14.0) : des pastilles du thème, à la hauteur de
   « Autour de moi », au lieu des petits boutons gris de Bootstrap ; celle choisie à la couleur primaire. */
body .prestai-stores__kinds {
  gap: 0.375rem;
}

body .prestai-stores__kind {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-pill);
  background: var(--pa-color-light);
  color: var(--pa-color-ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color var(--pa-transition), background-color var(--pa-transition), color var(--pa-transition);
}

body .prestai-stores__kind:hover {
  border-color: var(--pa-color-ink);
  background: var(--pa-color-light);
  color: var(--pa-color-ink);
}

body .prestai-stores__kind:focus-visible {
  outline: 2px solid var(--pa-color-primary);
  outline-offset: 2px;
  box-shadow: none;
}

body .prestai-stores__kind[aria-pressed="true"],
body .prestai-stores__kind[aria-pressed="true"]:hover {
  border-color: var(--pa-color-primary);
  background: var(--pa-color-primary);
  color: var(--pa-color-light);
}

/* Téléphone : les trois pastilles sur une ligne. */
@media (max-width: 575.98px) {
  body .prestai-stores__kind {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
}

body .prestai-stores__kind-count {
  color: var(--pa-color-muted);
  opacity: 1;
}

body .prestai-stores__kind[aria-pressed="true"] .prestai-stores__kind-count {
  color: inherit;
  opacity: 0.75;
}

/* Fiche compacte (Content 2.13.1). La rangée des liens (Itinéraire, Voir sur la carte, Horaires de la semaine) en liens
   du thème, tous pareils (préfixe body : la feuille du module est chargée après celle du thème) : encre, soulignés, couleur primaire au survol, focus visible. */
body .prestai-store__actions .prestai-store__directions,
body .prestai-store__actions .prestai-store__locate,
body .prestai-store__week > summary {
  color: var(--pa-color-ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body .prestai-store__actions .prestai-store__directions:hover,
body .prestai-store__actions .prestai-store__locate:hover,
body .prestai-store__week > summary:hover,
body .prestai-store__actions .prestai-store__directions:focus-visible,
body .prestai-store__actions .prestai-store__locate:focus-visible,
body .prestai-store__week > summary:focus-visible {
  color: var(--pa-color-primary);
  text-decoration-thickness: 2px;
}

body .prestai-store__actions .prestai-store__directions:focus-visible,
body .prestai-store__actions .prestai-store__locate:focus-visible,
body .prestai-store__week > summary:focus-visible {
  outline: 2px solid var(--pa-color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Le triangle de « Horaires de la semaine » en gris du thème, plus discret que le lien. */
body .prestai-store__week > summary::marker {
  color: var(--pa-color-muted);
}

/* Les liens de contact (téléphone, e-mail) en encre du thème. */
body .prestai-store__contacts a {
  color: var(--pa-color-ink);
}

body .prestai-store__contacts a:hover {
  color: var(--pa-color-primary);
}

/* Téléphone et e-mail : le « · » entre les deux est placé dans l'espace qui les sépare. Quand l'e-mail passe à la ligne
   (téléphone), le « · » tombe à gauche de la fiche et il est masqué : jamais de ligne qui commence par « · ». */
body .prestai-store__contacts {
  column-gap: 1rem;
  clip-path: inset(-0.5rem -0.5rem -0.5rem -3px);
}

body .prestai-store__contacts li {
  position: relative;
}

body .prestai-store__contacts li + li::before {
  content: "·";
  position: absolute;
  top: 0;
  right: 100%;
  width: 1rem;
  text-align: center;
}

/* La semaine ouverte : les heures juste après la colonne des jours, pas au milieu de la fiche. */
body .prestai-store__hours th {
  width: 1%;
}

/* Les horaires regroupés : un groupe (« Sam – Dim 10:00 – 16:00 ») passe entier à la ligne, jamais coupé entre ses
   jours et ses heures. Depuis Content 2.14.1, le « · » ouvre le groupe suivant (::before) : comme pour les contacts, il
   est placé dans l'espace entre deux groupes, et masqué quand son groupe commence une ligne (jamais de ligne qui
   commence par « · »). Seulement sur ce balisage : avec Content 2.14.0 et avant, le « · » est un <span aria-hidden>
   entre les groupes, qui deviendrait un élément de la rangée, seul en début ou en fin de ligne. */
body .prestai-store__summary-part {
  white-space: nowrap;
}

body .prestai-store__summary:not(:has(> [aria-hidden="true"])) {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  clip-path: inset(-0.5rem -0.5rem -0.5rem -3px);
}

body .prestai-store__summary:not(:has(> [aria-hidden="true"])) > .prestai-store__summary-part {
  position: relative;
}

body .prestai-store__summary:not(:has(> [aria-hidden="true"])) > .prestai-store__summary-part + .prestai-store__summary-part::before {
  content: "·";
  content: "·" / "";
  position: absolute;
  top: 0;
  right: 100%;
  width: 1rem;
  text-align: center;
}

/* PrestAI B2B 1.1.0 — « Compte professionnel » : le bloc du revendeur (#prestaib2b-reseller, une carte de Bootstrap) en
   carte du thème (bordure et rayon des fiches), ce qui serait affiché sur la carte dans un encart gris clair. La case
   d'accord est à la couleur primaire comme toutes les cases du thème (socle, tokens.css). */
body #prestaib2b-reseller {
  margin-top: 1.5rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-md);
  background: var(--pa-color-light);
  box-shadow: none;
}

body #prestaib2b-reseller > .card-body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

body #prestaib2b-reseller h2 {
  margin-bottom: 0.75rem;
  font-family: var(--pa-font-title);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pa-color-ink);
}

body #prestaib2b-reseller .prestaib2b-reseller__preview {
  margin-bottom: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--pa-radius-sm);
  background: var(--pa-color-surface);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body #prestaib2b-reseller .text-muted {
  color: var(--pa-color-muted) !important;
}

body #prestaib2b-reseller .form-check {
  margin-top: 1rem;
}

body #prestaib2b-reseller .btn {
  margin-top: 1rem !important;
}

/* Le bloc sur displayFooterBefore : dans la largeur du site, et ses liens lisibles (ceux du pied de page sont blancs). */
#footer .footer__before > .prestai-stores-block {
  width: min(var(--pa-container), calc(100% - (var(--pa-gutter) * 2)));
  margin: 0 auto;
  padding-block: clamp(2rem, 4vw, 3rem);
}

#footer .footer__before .prestai-stores-block a {
  color: var(--pa-color-ink);
}

#footer .footer__before .prestai-stores-block a:hover {
  color: var(--pa-color-primary);
}

/* Sur la home (section « stores » de config.yml) : le titre du bloc remplacé par l'en-tête de section s'il y en a un. */
.pa-home-stores .prestai-stores-block {
  margin: 0;
}

.pa-home-stores .pa-section__head + .prestai-stores-block .prestai-stores-block__title {
  display: none;
}

/* PrestAI Checkout 2.13.0 — suggestions d'adresse au clic (tunnel : étape Adresses ; compte client : ajout et
   modification d'adresse). Sous le champ adresse : une ligne discrète en petit texte gris, « Activer les suggestions »
   en lien du thème ; si Google ne répond pas après le clic, un message sur fond d'avertissement. Ici et non dans
   prestai-checkout.css : la page d'adresse du compte client ne charge pas ce fichier. */
.prestai-address-consent,
.prestai-address__error {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.prestai-address-consent__text {
  color: var(--pa-color-muted);
  opacity: 1;
}

.prestai-address-consent__button {
  margin-left: 0.25rem;
  font-weight: 600;
  color: var(--pa-color-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prestai-address-consent__button:hover,
.prestai-address-consent__button:focus-visible {
  color: var(--pa-color-primary);
  text-decoration-thickness: 2px;
}

.prestai-address-consent__button:focus-visible {
  outline: 2px solid var(--pa-color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.prestai-address__error {
  padding: 0.5rem 0.75rem;
  color: var(--bs-warning-text-emphasis, #664d03);
  background: var(--bs-warning-bg-subtle, #fff3cd);
  border-radius: var(--pa-radius-sm, 0.5rem);
}

/* PrestAI B2B 1.3.0 — commande rapide des pros (README du module, « Thème enfant »). Le tableau remplace la grille dans
   #js-product-list (hook du socle, catalog/_partials/products.tpl) ; le sélecteur Grille / Commande rapide est dans la
   barre d'outils de la liste, juste avant le tri (products-top.tpl). Variables du module sur les jetons du thème ;
   succès, alerte et erreur gardent celles de Bootstrap. */
body .b2b-qo,
body .b2b-qo-page,
body .b2b-qo-reorder {
  --b2b-qo-border: var(--pa-color-border);
  --b2b-qo-head: var(--pa-color-surface);
  --b2b-qo-muted: var(--pa-color-muted);
  --b2b-qo-mark: var(--pa-color-primary);
  /* La suggestion choisie au clavier (page « Commande rapide ») : fond teinté et barre à la couleur primaire. */
  --b2b-qo-active: rgba(var(--pa-color-primary-rgb), .08);
  --b2b-qo-active-mark: var(--pa-color-primary);
  --b2b-qo-radius: var(--pa-radius-sm);
}

.pa-listing-products .b2b-qo--theme {
  margin: 0;
}

/* La barre « Ajouter au panier » (pied du tableau du module : minimum de commande et bouton) reste collée au bas de
   l'écran tant que le tableau est à l'écran, pour montrer qu'un seul bouton envoie toutes les lignes saisies ; elle
   reprend sa place à la fin du tableau (sticky, contenue dans le formulaire : jamais sur la pagination ni sur le pied de
   page). Même allure que la barre d'achat fixe du starter en mobile (.pa-sticky-buy), zone basse de l'iPhone comprise. */
body .b2b-qo--theme .b2b-qo__footer,
body .b2b-qo--page .b2b-qo__footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: .75rem;
  padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pa-color-border);
  background: var(--pa-color-light);
  box-shadow: 0 -8px 24px rgba(var(--pa-color-primary-rgb), .08);
}

body .b2b-qo--theme .b2b-qo__submit,
body .b2b-qo--page .b2b-qo__submit {
  min-height: 44px;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  body .b2b-qo--theme .b2b-qo__footer,
  body .b2b-qo--page .b2b-qo__footer {
    padding-right: var(--pa-gutter);
    padding-left: var(--pa-gutter);
  }
}

/* Le sélecteur : deux boutons accolés à la hauteur du tri, celui choisi à la couleur primaire. Le module le dessine avec
   --bs-* : le thème le reprend par ses propres sélecteurs (les variables --b2b-qo-* ne sont posées que sur le tableau). */
.pa-listing-top__view {
  order: 4;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.pa-listing-top__view + .pa-listing-top__sort {
  margin-left: 0;
}

body .b2b-qo-toggle {
  gap: .5rem;
  color: var(--pa-color-muted);
  font-size: .875rem;
}

body .b2b-qo-toggle__button {
  position: relative;
  min-height: 44px;
  padding: 0 .875rem;
  border: 1px solid var(--pa-color-border);
  color: var(--pa-color-ink);
  background: var(--pa-color-light);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--pa-transition), border-color var(--pa-transition), color var(--pa-transition);
}

body .b2b-qo-toggle__button:first-child {
  border-radius: var(--pa-radius-sm) 0 0 var(--pa-radius-sm);
}

body .b2b-qo-toggle__button:last-child {
  border-radius: 0 var(--pa-radius-sm) var(--pa-radius-sm) 0;
}

body .b2b-qo-toggle__button:hover:not([aria-pressed="true"]) {
  color: var(--pa-color-primary);
}

body .b2b-qo-toggle__button[aria-pressed="true"] {
  border-color: var(--pa-color-primary);
  color: var(--pa-color-light);
  background: var(--pa-color-primary);
}

body .b2b-qo-toggle__button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--pa-color-primary);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  /* Sa propre ligne sous Filtrer et Tri, deux moitiés égales ; « Affichage » reste le nom du groupe, lu sans être vu. */
  .pa-listing-top__view {
    order: 5;
    flex-basis: 100%;
    margin-left: 0;
  }

  .pa-listing-top__view + .pa-listing-top__sort {
    margin-left: auto;
  }

  .pa-listing-toolbar:has(.pa-listing-top__view) #js-active-search-filters {
    order: 6;
  }

  body .pa-listing-top__view .b2b-qo-toggle {
    width: 100%;
  }

  body .pa-listing-top__view .b2b-qo-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body .pa-listing-top__view .b2b-qo-toggle__buttons {
    display: flex;
    flex: 1;
  }

  body .pa-listing-top__view .b2b-qo-toggle__button {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* PrestAI Sales 2.15.0 — codes promo sur la boutique (README du module, « Contrat du thème enfant ») : l'étiquette de la
   vignette (displayPrestaiSalesPromoTag, entre les avis et le prix) et le bloc du panier (displayPrestaiSalesPromoCart,
   cart-voucher.tpl du socle). Couleur primaire et arrondi du thème. */
body {
  --prestai-promo-accent: var(--pa-color-primary);
  --prestai-promo-on-accent: var(--pa-color-light);
  --prestai-promo-radius: var(--pa-radius-sm);
}

.pa-product-card__promo {
  min-width: 0;
}

.pa-product-card__promo .psl-promo-tag {
  font-size: .75rem;
}

.cart-voucher .psl-promo-cart {
  margin: .75rem 0;
}

/* Copier / Appliquer du panier : à la hauteur des boutons du thème (petits boutons du module sinon, 24 px). */
.cart-voucher .psl-promo-copy,
.cart-voucher .psl-promo-apply__button {
  min-height: 2.25rem;
  padding: 0 .875rem;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .cart-voucher .psl-promo-copy,
  .cart-voucher .psl-promo-apply__button {
    min-height: 44px;
  }
}
