/**
 * Hummingbird Child Theme — Custom CSS
 * couleursetpapiers.com
 *
 * Les variables --clr-* et --font-* sont injectees par le module twblocks
 * (PrettyBlocks Theme Settings -> hookDisplayHeader). On ne les redeclare pas ici ;
 * on les CONSOMME via var(--clr-xxx, fallback).
 */

/* ============================================================
   ALIAS variable heritee — le theme parent (Hummingbird) ET le module
   PrettyBlocks definissent --blue: #03b5d2 (resurgences : accordeons, liens,
   bordures, etc.). On la rebranche sur le CYAN des Theme Settings.
   !important pour passer devant parent/module quel que soit l'ordre de chargement.
   ============================================================ */
:root {
  --blue: var(--clr-cyan, #5ab4e0) !important;
}

/* ============================================================
   GLOBAL — fond + couleur de texte depuis les Theme Settings
   (variables injectees par le module twblocks)
   ============================================================ */
body {
  --bs-body-bg: var(--clr-background, #fafaf7);
  background-color: var(--clr-background, #fafaf7);
  color: var(--clr-text, #2a2d3e);
}

/* ============================================================
   DESIGN SYSTEM — BOUTONS (surcharge des classes Bootstrap)
   ------------------------------------------------------------
   Hummingbird/Bootstrap pilotent les boutons via des variables
   --bs-btn-*. On redefinit ces variables par variante : ainsi
   N'IMPORTE QUEL bouton/lien .btn .btn-primary... (y compris ceux
   ajoutes par de futurs modules) herite du style projet,
   SANS !important (custom.css est charge apres le theme parent,
   donc a specificite egale c'est notre regle qui gagne).
   ============================================================ */

.btn {
  --bs-btn-border-radius: 50rem;            /* pilule */
  --bs-btn-font-family: var(--font-sans, inherit);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-lg {
  --bs-btn-border-radius: 50rem;
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-padding-y: 0.85rem;
}

.btn-sm {
  --bs-btn-border-radius: 50rem;
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: 0.4rem;
}

/* Primaire : ink, hover coral (signature maquette) */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--clr-primary, #5c6587);
  --bs-btn-border-color: var(--clr-primary, #5c6587);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--clr-coral, #d96a5a);
  --bs-btn-hover-border-color: var(--clr-coral, #d96a5a);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--clr-coral, #d96a5a);
  --bs-btn-active-border-color: var(--clr-coral, #d96a5a);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--clr-primary, #5c6587);
  --bs-btn-disabled-border-color: var(--clr-primary, #5c6587);
}

/* Secondaire : cyan, hover ink */
.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--clr-secondary, #5ab4e0);
  --bs-btn-border-color: var(--clr-secondary, #5ab4e0);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--clr-primary, #5c6587);
  --bs-btn-hover-border-color: var(--clr-primary, #5c6587);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--clr-primary, #5c6587);
  --bs-btn-active-border-color: var(--clr-primary, #5c6587);
}

/* Outline primaire : contour ink -> plein au hover */
.btn-outline-primary {
  --bs-btn-color: var(--clr-primary, #5c6587);
  --bs-btn-border-color: var(--clr-primary, #5c6587);
  --bs-btn-bg: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--clr-primary, #5c6587);
  --bs-btn-hover-border-color: var(--clr-primary, #5c6587);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--clr-primary, #5c6587);
  --bs-btn-active-border-color: var(--clr-primary, #5c6587);
}

.btn-outline-secondary {
  --bs-btn-color: var(--clr-secondary, #5ab4e0);
  --bs-btn-border-color: var(--clr-secondary, #5ab4e0);
  --bs-btn-bg: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--clr-secondary, #5ab4e0);
  --bs-btn-hover-border-color: var(--clr-secondary, #5ab4e0);
}

/* Tertiaire (boutons discrets / icones du theme) */
.btn-tertiary {
  --bs-btn-color: var(--clr-text, #2a2d3e);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--clr-coral, #d96a5a);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
}

/* Etats semantiques */
.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--clr-success, #3da87a);
  --bs-btn-border-color: var(--clr-success, #3da87a);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--clr-success, #3da87a);
  --bs-btn-hover-border-color: var(--clr-success, #3da87a);
}
.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--clr-error, #d45343);
  --bs-btn-border-color: var(--clr-error, #d45343);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--clr-error, #d45343);
  --bs-btn-hover-border-color: var(--clr-error, #d45343);
}
.btn-warning {
  --bs-btn-color: var(--clr-text, #2a2d3e);
  --bs-btn-bg: var(--clr-warning, #d4a840);
  --bs-btn-border-color: var(--clr-warning, #d4a840);
  --bs-btn-hover-color: var(--clr-text, #2a2d3e);
  --bs-btn-hover-bg: var(--clr-warning, #d4a840);
  --bs-btn-hover-border-color: var(--clr-warning, #d4a840);
}

/* Lien */
.btn-link {
  --bs-btn-color: var(--clr-primary, #5c6587);
  --bs-btn-hover-color: var(--clr-coral, #d96a5a);
  --bs-btn-font-weight: 600;
}

/* Bouton icone : cercle propre (ex: quickview, +/- quantite) */
.btn-square-icon {
  --bs-btn-border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 !important;     /* neutralise le padding-inline du theme parent */
  flex-shrink: 0;
}

/* ---- Alerts : couleurs projet (filet de securite, toute version Bootstrap) ---- */
.alert { border-radius: 0.75rem; }
.alert-info {
  --bs-alert-color: var(--clr-ink, #5c6587);
  --bs-alert-bg: var(--clr-pastel-cyan, #e8f5fd);
  --bs-alert-border-color: var(--clr-cyan, #5ab4e0);
  color: var(--clr-ink, #5c6587);
  background-color: var(--clr-pastel-cyan, #e8f5fd);
  border-color: var(--clr-cyan, #5ab4e0);
}
.alert-success {
  --bs-alert-color: var(--clr-success, #3da87a);
  --bs-alert-bg: var(--clr-pastel-teal, #e5f7f3);
  --bs-alert-border-color: var(--clr-success, #3da87a);
  color: var(--clr-success, #3da87a);
  background-color: var(--clr-pastel-teal, #e5f7f3);
  border-color: var(--clr-success, #3da87a);
}
.alert-danger {
  --bs-alert-color: var(--clr-error, #d45343);
  --bs-alert-bg: var(--clr-pastel-coral, #fce8e5);
  --bs-alert-border-color: var(--clr-error, #d45343);
  color: var(--clr-error, #d45343);
  background-color: var(--clr-pastel-coral, #fce8e5);
  border-color: var(--clr-error, #d45343);
}
.alert-warning {
  --bs-alert-color: var(--clr-text, #2a2d3e);
  --bs-alert-bg: var(--clr-pastel-yellow, #faf3e0);
  --bs-alert-border-color: var(--clr-warning, #d4a840);
  color: var(--clr-text, #2a2d3e);
  background-color: var(--clr-pastel-yellow, #faf3e0);
  border-color: var(--clr-warning, #d4a840);
}

/* ============================================================
   PRODUCT CARD (miniature) — override Hummingbird Child
   Applique a TOUS les listings + bloc TW "coups de coeur".
   ============================================================ */

.tw-product-card {
  display: flex;
  flex-direction: column;
}

.tw-product-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 1rem;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tw-product-card:hover .tw-product-card__inner {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.18);
}

/* ---- Media (carre + fond teinte par la couleur de categorie) ----
   La couleur vient du module twcolorcategory : :root{--cat-<id>:#hex}, relayee
   inline sur la card via --tw-cat. Repli = accent pastel cyclique par produit
   (--tw-accent-solid, pose par .tw-accent-N).
   IMPORTANT : une variable indefinie rend la declaration invalide (->unset),
   donc le repli doit etre porte PAR le var() lui-meme, pas par une regle separee. */
.tw-product-card                 { --tw-accent-solid: var(--clr-cyan,   #5ab4e0); }
.tw-product-card.tw-accent-1     { --tw-accent-solid: var(--clr-teal,   #4db8a8); }
.tw-product-card.tw-accent-2     { --tw-accent-solid: var(--clr-yellow, #d4a840); }
.tw-product-card.tw-accent-3     { --tw-accent-solid: var(--clr-coral,  #d96a5a); }
.tw-product-card.tw-accent-4     { --tw-accent-solid: var(--clr-ink,    #5c6587); }

.tw-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* teinte douce de la couleur categorie ; repli sur l'accent produit */
  background-color: color-mix(in srgb, var(--tw-cat, var(--tw-accent-solid)) 16%, #fff);
}

.tw-product-card .tw-product-card__dot {
  background-color: var(--tw-cat, var(--tw-accent-solid));
}

.tw-product-card__media .thumbnail-container,
.tw-product-card__media .product-miniature__image-container {
  position: absolute;
  inset: 0;
  margin: 0;
}

/* IMPORTANT : ne cibler QUE le lien image (pas les autres <a> du media,
   sinon le lien "Voir details" devient un carre 100% -> rond avec le border-radius) */
.tw-product-card__media .product-miniature__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.tw-product-card__media img,
.tw-product-card__media .product-miniature__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s ease;
}

.tw-product-card:hover .tw-product-card__media img {
  transform: scale(1.05);
}

/* Flags / badges */
.tw-product-card__media .product-flags {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tw-product-card__media .product-flags .badge {
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--clr-text, #2a2d3e);
  color: #fff;
}

.tw-product-card__media .product-flags .badge.discount,
.tw-product-card__media .product-flags .badge.on-sale {
  background-color: var(--clr-coral, #d96a5a);
}

.tw-product-card__wish {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 3;
}

/* Ajout panier OU "Voir details" : overlay pilule en bas, apparait au hover */
.tw-product-card__add-form {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  margin: 0;
}

/* Double classe pour passer devant .tw-product-card__add (meme specificite sinon,
   et .tw-product-card__add est declare apres -> son width:100% gagnerait) */
.tw-product-card__add.tw-product-card__add--details {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  width: auto;   /* left+right definissent la largeur (sinon width:100% deborde a droite) */
  height: auto;
}

.tw-product-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 9999px;
  background-color: var(--clr-text, #2a2d3e);
  color: var(--clr-background, #fafaf7);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.tw-product-card:hover .tw-product-card__add,
.tw-product-card:focus-within .tw-product-card__add {
  opacity: 1;
  transform: translateY(0);
}

.tw-product-card__add:hover {
  background-color: var(--clr-coral, #d96a5a);
  color: #fff;
}

.tw-product-card__add .material-icons {
  font-size: 1rem;
}

/* Sur appareils tactiles (pas de survol), on NE force plus l'affichage du bouton :
   il restait visible en permanence et masquait le visuel produit. Le bouton n'apparait
   donc qu'au survol/focus (desktop) ; sur mobile, l'ajout se fait depuis la fiche produit. */

/* ---- Corps ---- */
.tw-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem;
}

.tw-product-card__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-light, #737694);
}

.tw-product-card__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.tw-product-card__title {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--clr-text, #2a2d3e);
  text-decoration: none;
}

.tw-product-card__title:hover {
  text-decoration: underline;
  color: var(--clr-text, #2a2d3e);
}

.tw-product-card__variants {
  margin-top: 0.5rem;
}

.tw-product-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
}

.tw-product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.tw-product-card__price {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1.125rem;
  color: var(--clr-text, #2a2d3e);
}

.tw-product-card__regular {
  font-size: 0.8125rem;
  color: var(--clr-text-light, #737694);
  text-decoration: line-through;
}

.tw-product-card__stock {
  font-size: 11px;
  color: var(--clr-text-light, #737694);
}

/* ============================================================
   PRE-HEADER (bandeau fin : message + selecteurs langue/devise)
   couleursetpapiers.com
   ============================================================ */
.tw-preheader {
  border-bottom: 1px solid var(--clr-border, #e8e9ed);
  background: linear-gradient(
    90deg,
    var(--clr-pastel-cyan, #e8f5fd) 0%,
    var(--clr-pastel-coral, #fce8e5) 50%,
    var(--clr-pastel-cyan, #e8f5fd) 100%
  );
}

.tw-preheader__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1400px;
  min-height: 2.25rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.75rem;
}

.tw-preheader__spacer {
  flex: 1 1 0;
}

.tw-preheader__message {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  color: var(--clr-text, #2a2d3e);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.tw-preheader__message .tw-preheader__text,
.tw-preheader__message p {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tw-preheader__selectors {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Masquer le spacer sur mobile (message non centre, selecteurs a droite) */
@media (max-width: 767px) {
  .tw-preheader__spacer { display: none; }
  .tw-preheader__message { display: none; }  /* trop etroit sur mobile */
}

/* ---- Selecteurs langue / devise (dropdown custom, override thème enfant) ----
   Les <select> natifs sont remplaces par .tw-selector (declencheur + menu <ul>)
   -> alignement maitrise + liste deroulante entierement stylable. */
.tw-preheader__selectors .tw-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Separateur entre langue et devise */
.tw-preheader__selectors .tw-selector + .tw-selector::before {
  content: "";
  width: 1px;
  height: 0.8rem;
  margin-right: 0.4rem;
  background: var(--clr-text, #2a2d3e);
  opacity: 0.2;
}

/* Declencheur */
.tw-selector__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.25rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--clr-text, #2a2d3e);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tw-selector__trigger:hover,
.tw-selector:focus-within .tw-selector__trigger {
  background-color: rgba(255, 255, 255, 0.7);
}

.tw-selector__chevron {
  width: 0.7rem;
  height: 0.7rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.tw-selector:hover .tw-selector__chevron,
.tw-selector:focus-within .tw-selector__chevron {
  transform: rotate(180deg);
}

/* Menu deroulant */
.tw-selector__menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 200;
  min-width: 8rem;
  margin: 0.4rem 0 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.tw-selector:hover .tw-selector__menu,
.tw-selector:focus-within .tw-selector__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tw-selector__item a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: var(--clr-text, #2a2d3e);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tw-selector__item a:hover {
  background-color: var(--clr-pastel-cyan, #e8f5fd);
  color: var(--clr-text, #2a2d3e);
}

.tw-selector__item.is-current a {
  color: var(--clr-coral, #d96a5a);
  font-weight: 600;
}

/* ============================================================
   FOOTER (editable PrettyBlocks)
   couleursetpapiers.com
   Zones : footer_top (grille) + footer_bottom (copyright)
   ============================================================ */
.tw-footer {
  border-top: 1px solid var(--clr-border, #e8e9ed);
  background-color: var(--clr-pastel-ink, #eeeef3);
}

.tw-footer__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tw-footer__top {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* La zone PrettyBlocks devient la grille ; chaque bloc = 1 colonne */
.tw-footer__top [data-prettyblocks-zone="footer_top"] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 576px) {
  .tw-footer__top [data-prettyblocks-zone="footer_top"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .tw-footer__top [data-prettyblocks-zone="footer_top"] {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Bloc marque ---- */
.tw-footer-brand__logo {
  max-height: 2.5rem;
  width: auto;
}

.tw-footer-brand__title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--clr-text, #2a2d3e);
}

.tw-footer-brand__tagline {
  margin: 0.75rem 0 0;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--clr-text-light, #737694);
}

/* ---- Colonnes de liens ---- */
.tw-footer-col__title {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text, #2a2d3e);
}

.tw-footer-col__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tw-footer-col__list a {
  font-size: 0.875rem;
  color: var(--clr-text-light, #737694);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tw-footer-col__list a:hover {
  color: var(--clr-text, #2a2d3e);
}

/* ---- Barre copyright ---- */
.tw-footer__bottom-bar {
  border-top: 1px solid var(--clr-border, #e8e9ed);
}

.tw-footer-copyright {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--clr-text-light, #737694);
}

.tw-footer-copyright p {
  display: inline;
  margin: 0;
}

/* ============================================================
   FICHE PRODUIT — override catalog/product.tpl (Phase 1)
   couleursetpapiers.com
   ============================================================ */
.tw-product {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* ---- Haut : 2 colonnes ---- */
.tw-product__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .tw-product__main {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

/* ---- Galerie ---- */
.tw-product__gallery .product__images {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tw-product__gallery .product__carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 1.5rem;
  background: #fff;
}

.tw-product__gallery .carousel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.tw-product__gallery .product__zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
}

/* Miniatures en grille */
.tw-product__gallery .product__thumbnails-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tw-product__gallery .product__thumbnail {
  padding: 0;
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.tw-product__gallery .product__thumbnail.active,
.tw-product__gallery .product__thumbnail:hover {
  border-color: var(--clr-text, #2a2d3e);
}

.tw-product__gallery .product__thumbnail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  outline: none;
}
/* Le parent pose un outline carre (offset negatif) sur l'image active qui
   "bave" sur la bordure arrondie. L'etat actif est deja rendu par la bordure
   de .product__thumbnail -> on retire l'outline. */
.tw-product__gallery .product__thumbnail.active .product__thumbnail-image {
  outline: none;
}

/* ---- Colonne infos ---- */
.tw-product__info {
  display: flex;
  flex-direction: column;
}

.tw-product__brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-light, #737694);
}
.tw-product__brand a { color: inherit; text-decoration: none; }
.tw-product__brand a:hover { color: var(--clr-text, #2a2d3e); }

.tw-product__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-text, #2a2d3e);
}

.tw-product__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--clr-text-light, #737694);
}
.tw-product__ref { margin-left: auto; }

.tw-product__price-wrap {
  margin-top: 1.25rem;
}
.tw-product__price-wrap .product__price,
.tw-product__price-wrap .current-price-value,
.tw-product__price-wrap .price {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 2rem;
  color: var(--clr-text, #2a2d3e);
}
.tw-product__price-wrap .regular-price {
  color: var(--clr-text-light, #737694);
  text-decoration: line-through;
  font-size: 1.1rem;
}

.tw-product__desc-short {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--clr-text, #2a2d3e);
}

/* Le parent (Hummingbird) pose un gap (1.25rem puis 2rem) sur le conteneur des
   elements greffes sur displayProductAdditionalInfo -> trop d'espace. Les blocs
   ont leurs propres marges, on retire donc le gap. */
.page-product .product__additional-info {
  gap: 0;
}

/* ---- Actions (qte + ajout panier) ---- */
.tw-product__actions {
  margin-top: 1.5rem;
}

.tw-product__actions .product__actions-qty-add {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

/* Stepper quantite */
.tw-product__actions .product__quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 9999px;
  background: #fff;
  overflow: hidden;
}
.tw-product__actions .product__quantity .js-quantity-wanted,
.tw-product__actions .product__quantity input[type="number"] {
  width: 2.5rem;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
  -moz-appearance: textfield;
}
.tw-product__actions .product__quantity input::-webkit-outer-spin-button,
.tw-product__actions .product__quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tw-product__actions .product__quantity button {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: transparent;
  color: var(--clr-text-light, #737694);
  cursor: pointer;
}
.tw-product__actions .product__quantity button:hover {
  color: var(--clr-text, #2a2d3e);
}

/* Bouton ajout panier : pleine largeur */
.tw-product__actions .product__add-to-cart {
  flex: 1 1 auto;
  display: flex;
}
.tw-product__actions .product__add-to-cart-button {
  width: 100%;
}

/* Mobile : garder la pastille quantite a sa largeur naturelle. Sinon le groupe
   Bootstrap (.input-group, width:100%) s'etire sur toute la largeur et les
   boutons - 1 + restent colles a gauche (vide a droite). */
@media (max-width: 767.98px) {
  .tw-product__actions .product__quantity {
    width: auto;
    flex: 0 0 auto;
    align-self: flex-start;
  }
  .tw-product__actions .product__quantity .input-group,
  .tw-product__actions .product__quantity .quantity-button__group {
    width: auto;
  }
}

/* Disponibilite */
.tw-product__actions .product__availability {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}
.tw-product__actions .product__availability-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---- Reassurance ----
   Conteneur en bloc : c'est le module (.blockreassurance--product, en flex)
   qui dispose les items en rangee. (Ancienne grille 3 colonnes retiree : elle
   etait prevue pour une liste <li> et bridait le bloc module a 1 colonne.) */
.tw-product__reassurance {
  display: block;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--clr-border, #e8e9ed);
  list-style: none;
}
.tw-product__reassurance li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.tw-product__reassurance .material-icons {
  font-size: 1.3rem;
  color: var(--clr-text, #2a2d3e);
  opacity: 0.75;
}
.tw-product__reassurance strong {
  display: block;
  font-size: 0.78rem;
  color: var(--clr-text, #2a2d3e);
}
.tw-product__reassurance span {
  font-size: 0.7rem;
  color: var(--clr-text-light, #737694);
}

/* ---- Bas : onglets (desktop) / accordeon (mobile) ---- */
.tw-product__bottom {
  margin-top: 4rem;
}

/* Nav onglets (cachee en mobile, l'accordeon natif prend le relais) */
.tw-ptabs__nav { display: none; }

/* Accordeons (global) : pas de bordure quand l'item est ferme.
   La bordure n'apparait que sur l'item OUVERT (separateur), neutralisant
   le border-bottom var(--lightgray) du theme qui parasitait le design. */
.accordion .accordion-item {
  border: none;
  background: transparent;
}

.tw-ptabs .accordion-item {
  border: none;
  background: transparent;
}
.tw-ptabs .accordion-button {
  padding: 1.25rem 0;
  font-family: var(--font-sans, inherit);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-text, #2a2d3e);
  background: transparent;
  box-shadow: none;
}
.tw-ptabs .accordion-button:not(.collapsed) {
  color: var(--clr-text, #2a2d3e);
  background: transparent;
  box-shadow: none;
}
.tw-ptabs .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.tw-ptabs .accordion-body {
  padding: 0.5rem 0 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--clr-text, #2a2d3e);
}

/* DESKTOP : onglets horizontaux */
@media (min-width: 992px) {
  .tw-ptabs__nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 4rem;
    border-bottom: 1px solid var(--clr-border, #e8e9ed);
    margin-bottom: 2.5rem;
  }
  /* selecteur a 2 classes pour battre l'heritage .accordion (font-size + width:100%) */
  .tw-ptabs__nav .tw-ptabs__tab {
    flex: 0 0 auto;
    width: auto !important;   /* sinon herite du width:100% facon .accordion-button -> empilement */
    position: relative;
    padding: 1rem 0;
    border: none;
    background: none;
    white-space: nowrap;
    font-family: var(--font-sans, inherit);
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(42, 45, 62, 0.4);
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .tw-ptabs__nav .tw-ptabs__tab:hover { color: rgba(42, 45, 62, 0.7); }
  .tw-ptabs__nav .tw-ptabs__tab.is-active { color: var(--clr-text, #2a2d3e); }
  .tw-ptabs__nav .tw-ptabs__tab.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: var(--clr-text, #2a2d3e);
    border-radius: 9999px;
  }
  /* En mode onglets : on masque les entetes accordeon, on retire les bordures */
  [data-tw-tabs] .accordion-header { display: none; }
  [data-tw-tabs] .accordion-item { border-bottom: none; }
  [data-tw-tabs] .accordion-body {
    max-width: 60rem;
    margin: 0 auto;
    padding-top: 0;
  }
}

/* Liste "Details du produit" : pas de fond (le parent/Bootstrap met var(--bs-tertiary-bg)) */
.details__list { background-color: transparent; }

/* ---- Declinaisons : pills (radio) + select + couleurs ---- */
.product__variants .product-variant {
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}
/* Neutralise le legend { float:left } (Bootstrap/navigateur) qui decalait les pills */
.product__variants legend,
.product__variants .product-variant__legend {
  float: none;
  width: auto;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-light, #737694);
  margin-bottom: 0.5rem;
}
.product__variants .product-variant__selected { display: none; }

/* Radio -> pills */
.product__variants .product-variant__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
}
.product__variants .product-variant__radio {
  margin: 0 !important;
  padding: 0 !important;   /* neutralise le padding-left:1.5em de .form-check */
  min-height: 0;
}
.product__variants .product-variant__radio .form-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.product__variants .product-variant__radio label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 9999px;
  background: #fff;
  font-size: 0.85rem;
  color: var(--clr-text, #2a2d3e);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.product__variants .product-variant__radio label:hover {
  border-color: rgba(42, 45, 62, 0.4);
}
.product__variants .product-variant__radio .form-check-input:checked + label {
  background: var(--clr-text, #2a2d3e);
  border-color: var(--clr-text, #2a2d3e);
  color: var(--clr-background, #fafaf7);
}

/* Select declinaison */
.product__variants .form-select {
  border-radius: 9999px;
  border-color: var(--clr-border, #e8e9ed);
  max-width: 16rem;
}

/* Couleurs (swatches) */
.product__variants .product-variant__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product__variants .input-color__label .color {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--clr-border, #e8e9ed);
  cursor: pointer;
}
.product__variants .input-color__input:checked + .input-color__label .color,
.product__variants .input-color__label--active .color {
  outline: 2px solid var(--clr-text, #2a2d3e);
  outline-offset: 2px;
}

/* ---- Reassurance (module blockreassurance) ---- */
.tw-product__reassurance {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--clr-border, #e8e9ed);
}
.tw-product__reassurance .blockreassurance { margin: 0; }
.tw-product__reassurance .blockreassurance .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
}
.tw-product__reassurance .blockreassurance [class*="col-"] {
  flex: 1 1 0;
  min-width: 8rem;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  cursor: default;
}
.tw-product__reassurance .blockreassurance .block-icon {
  flex-shrink: 0;
  width: 1.5rem;
  margin: 0;
}
.tw-product__reassurance .blockreassurance .block-icon img {
  width: 1.5rem;
  height: 1.5rem;
}
.tw-product__reassurance .blockreassurance .block-title {
  font-size: 0.78rem !important;
  font-weight: 600;
  color: var(--clr-text, #2a2d3e) !important;
  margin: 0;
}
.tw-product__reassurance .blockreassurance p {
  font-size: 0.7rem;
  color: var(--clr-text-light, #737694) !important;
  margin: 0;
}

/* ---- Produits similaires / accessoires / deja vus ---- */
.tw-product__related {
  margin-top: 4rem;
}
.tw-product__related:empty {
  margin-top: 0;
}
.tw-product__related .section-title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--clr-text, #2a2d3e);
  margin-bottom: 1.5rem;
}
.tw-product__related .module-products .container {
  max-width: none;
  padding: 0;
}
.tw-product__related .products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .tw-product__related .products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   HEADER PRINCIPAL (barre logo + menu + icones) — Phase 1
   couleursetpapiers.com
   ============================================================ */
#header.header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--clr-background, #fafaf7);
}

/* Barre principale */
.header-bottom__container {
  max-width: 1400px;
}
/* Override du layout Bootstrap .row : on force une vraie ligne flex.
   (sinon .row > * impose width:100% -> les modules sans col-* s'empilent) */
.header-bottom__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 5rem;
}
.header-bottom__row > * {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}
.header-bottom__logo img,
.header-bottom__logo .logo {
  height: 2.5rem;
  width: auto;
}

/* Ordre facon maquette, identique a toutes les tailles :
   logo | menu | ......... | recherche compte panier
   (un seul jeu d'icones desktop, plus de doublons _mobile_*). */
.header-bottom__logo { order: 0; }
.header-bottom__row #_desktop_ps_searchbar { order: 2; margin-left: auto; }
.header-bottom__row #_desktop_ps_customersignin { order: 3; }
.header-bottom__row #_desktop_ps_shoppingcart { order: 4; }
/* Compte & panier visibles a toutes les tailles (les divs n'ont pas de classe responsive) */
.header-bottom__row #_desktop_ps_customersignin,
.header-bottom__row #_desktop_ps_shoppingcart { display: flex; align-items: center; }

/* Recherche : icone declencheur (rond) + panneau sous le header */
.tw-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background-color: var(--clr-pastel-ink, #eeeef3);
  color: var(--clr-text, #2a2d3e);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.tw-search-toggle:hover { background-color: var(--clr-border, #e8e9ed); }
.tw-search-toggle .material-icons { font-size: 1.3rem; }

.tw-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1025;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  /* pas de transition sur visibility (quirk navigateur) : flip instantane */
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tw-search-panel.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.tw-search-panel__inner {
  background: rgba(250, 250, 247, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border, #e8e9ed);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.18);
}
.tw-search-panel .ps-searchbar__form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.tw-search-panel .ps-searchbar__magnifier {
  position: static;   /* evite le chevauchement avec le placeholder (Hummingbird le met en absolu) */
  flex-shrink: 0;
  color: var(--clr-text-light, #737694);
  font-size: 1.4rem;
}
.tw-search-panel .ps-searchbar__input {
  flex: 1;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  padding: 0;
}
.tw-search-panel .ps-searchbar__input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}
/* Loupe alignee verticalement au placeholder.
   Hummingbird met .ps-searchbar__magnifier en position:absolute; top:50%;
   transform:translateY(-50%); left:.75rem -> on neutralise pour le layout flex. */
.tw-search-panel .ps-searchbar__form { align-items: center; }
.tw-search-panel .ps-searchbar__magnifier {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.tw-search-panel .ps-searchbar__magnifier svg { width: 1.25rem; height: 1.25rem; }

/* ---- Resultats de recherche (autocompletion) ----
   Panneau pleine largeur sous la barre de recherche, avec animation. */
.tw-search-panel .ps-searchbar__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: auto;
  max-width: none;
  margin: 0;
  z-index: 1080;
  border: none;
  border-top: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 0;
  background: var(--clr-background, #fafaf7);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: tw-search-in 0.25s ease;
}
@keyframes tw-search-in {
  from { opacity: 0; transform: translateY(-0.6rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pleine largeur de la page + scroll si beaucoup de resultats */
.tw-search-panel .ps-searchbar__results {
  display: block;
  width: 100%;
  padding: 1.5rem 2rem;
  max-height: 65vh;
  overflow-y: auto;
}
.tw-search-panel .ps-searchbar__results .products {
  display: grid;
  /* miniatures plafonnees a 250px, autant de colonnes que la largeur le permet */
  grid-template-columns: repeat(auto-fit, minmax(180px, 250px));
  justify-content: center;
  gap: 1.5rem 1.25rem;
  margin: 0;
}
/* pas de bouton "ajouter au panier" dans l'autocomplete */
.tw-search-panel .ps-searchbar__results .tw-product-card__add-form,
.tw-search-panel .ps-searchbar__results .tw-product-card__add { display: none; }
/* pas de pagination/compteur dans l'autocomplete (inutile ici) */
.tw-search-panel .ps-searchbar__results .pagination__container,
.tw-search-panel .ps-searchbar__results .pagination__number,
.tw-search-panel .ps-searchbar__results .pagination,
.tw-search-panel .ps-searchbar__results .total-products,
.tw-search-panel .ps-searchbar__results .product-count,
.tw-search-panel .ps-searchbar__results .products-selection { display: none !important; }

/* Message "aucun resultat" */
.tw-search-noresult {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--clr-text-light, #737694);
}
.tw-search-noresult strong { color: var(--clr-text, #2a2d3e); }

/* Lien "Voir tous les resultats" */
.tw-search-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--clr-border, #e8e9ed);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text, #2a2d3e);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.tw-search-footer:hover {
  color: var(--clr-coral, #d96a5a);
  gap: 0.7rem;
}
.tw-search-footer svg { width: 1rem; height: 1rem; }
/* Hummingbird met margin-block:0.5rem sur .ps-searchbar -> le panneau n'est pas
   colle au header. On l'annule. */
.header-bottom .tw-search-panel { margin: 0; }

/* Les glyphes d'icones heritent de la couleur du bouton (sinon le panier sombre
   garde une icone slate peu lisible — regle .header-block__icon de Hummingbird) */
.header-bottom .header-block__icon { color: inherit; }

/* Icones Lucide (svg) dans le header */
.header-bottom .header-block__action-btn svg,
.tw-search-toggle svg { width: 1.3rem; height: 1.3rem; }
/* Globe (lucide) du selecteur de langue */
.tw-selector__globe {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.75;
  flex-shrink: 0;
}

/* ---- Nav (ps_mainmenu premier niveau) en pills ---- */
.ps-mainmenu__tree {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ps-mainmenu__tree-item { position: relative; }
.ps-mainmenu__tree-item-wrapper {
  display: inline-flex;
  align-items: center;
}
.ps-mainmenu__tree-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(42, 45, 62, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ps-mainmenu__tree-link:hover {
  background-color: var(--clr-pastel-ink, #eeeef3);
  color: var(--clr-text, #2a2d3e);
}
.ps-mainmenu__tree-item.current > .ps-mainmenu__tree-item-wrapper > .ps-mainmenu__tree-link {
  color: var(--clr-text, #2a2d3e);
  font-weight: 600;
}
/* Chevron dropdown */
.ps-mainmenu__tree-dropdown-toggle {
  border: none;
  background: none;
  padding: 0;
  margin-left: -0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  position: relative;
}
.ps-mainmenu__tree-dropdown-toggle::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.ps-mainmenu__tree-item:hover .ps-mainmenu__tree-dropdown-toggle::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

/* ---- Icones header (compte / panier / recherche) ---- */
.header-bottom .header-block { margin: 0; }
.header-bottom .header-block__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background-color: var(--clr-pastel-ink, #eeeef3);
  color: var(--clr-text, #2a2d3e);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.header-bottom .header-block__action-btn:hover {
  background-color: var(--clr-border, #e8e9ed);
}
/* Bootstrap place .d-none/.d-md-inline dans @layer utilities. Un !important DANS
   une layer bat un !important hors layer -> notre regle non-layered perdait.
   On l'ajoute donc dans la meme layer : a specificite superieure (0,2,0), elle gagne. */
@layer utilities {
  .header-bottom .header-block__title { display: none !important; }
}
.header-bottom .header-block__icon { margin: 0; font-size: 1.3rem; }
.header-bottom .header-block__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background-color: var(--clr-coral, #d96a5a);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Panier = bouton "primary" (ink) facon maquette */
.header-bottom .blockcart .header-block__action-btn {
  background-color: var(--clr-text, #2a2d3e);
  color: var(--clr-background, #fafaf7);
}
.header-bottom .blockcart .header-block__action-btn:hover {
  background-color: var(--clr-ink, #5c6587);
}

/* Compte CLIENT CONNECTE = meme bouton que le panier (fond fonce, icone claire),
   sans le chevron Bootstrap du .dropdown-toggle. Le cas deconnecte (simple lien)
   garde le bouton pastel clair standard. */
.header-bottom .ps-customersignin .dropdown .header-block__action-btn {
  background-color: var(--clr-text, #2a2d3e);
  color: var(--clr-background, #fafaf7);
}
.header-bottom .ps-customersignin .dropdown .header-block__action-btn:hover {
  background-color: var(--clr-ink, #5c6587);
}
.header-bottom .ps-customersignin .dropdown-toggle::after {
  display: none;
}

/* Espacement du groupe d'icones a droite */
.header-bottom [data-ps-ref="customer-signin"],
.header-bottom .blockcart {
  display: flex;
  align-items: center;
}
/* Le panneau de recherche doit etre un bloc pleine largeur (pas un flex inline) */
.header-bottom .tw-search-panel { display: block; }

/* ============================================================
   MENU PRINCIPAL — bloc TW Blocks header_menu (remplace ps_mainmenu)
   couleursetpapiers.com
   ============================================================ */
/* Le mega se positionne en absolu par rapport a la barre header */
.header-bottom { position: relative; }
.header-bottom__menu { order: 1; margin-left: 1.5rem; min-width: 0; }

.tw-menu__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tw-menu__item { position: static; }

.tw-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(42, 45, 62, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tw-menu__link:hover {
  background-color: var(--clr-pastel-ink, #eeeef3);
  color: var(--clr-text, #2a2d3e);
}
.tw-menu__chevron {
  width: 0.7rem;
  height: 0.7rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.tw-menu__item--mega:hover .tw-menu__chevron {
  transform: rotate(180deg);
}

/* ---- Mega panel (pleine largeur de la barre) ---- */
.tw-menu__mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1020;
  padding: 0 1.5rem 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  /* pas de transition sur visibility (quirk) : flip instantane */
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tw-menu__item--mega:hover .tw-menu__mega,
.tw-menu__item--mega:focus-within .tw-menu__mega,
.tw-menu__mega:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Pont transparent comblant le "trou" entre le lien et le panneau,
   pour que le survol ne se perde pas en descendant la souris. */
.tw-menu__mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 2.5rem;
}
.tw-menu__mega-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.18);
}
.tw-menu__mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .tw-menu__mega-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .tw-menu__mega-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---- Colonne (univers) ---- */
.tw-menu__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tw-menu__col:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.15);
}
/* Fond + point d'accent pastel par colonne */
/* Couleur de colonne = couleur identitaire de la sous-categorie (--tw-cat,
   relayee inline depuis --cat-<id>). Repli = accent cyclique nomme via
   --tw-accent-solid (le repli est porte par le var() : une var indefinie
   invaliderait sinon toute la declaration). */
.tw-menu__col.tw-accent-cyan   { --tw-accent-solid: var(--clr-cyan,   #5ab4e0); }
.tw-menu__col.tw-accent-teal   { --tw-accent-solid: var(--clr-teal,   #4db8a8); }
.tw-menu__col.tw-accent-yellow { --tw-accent-solid: var(--clr-yellow, #d4a840); }
.tw-menu__col.tw-accent-coral  { --tw-accent-solid: var(--clr-coral,  #d96a5a); }
.tw-menu__col.tw-accent-ink    { --tw-accent-solid: var(--clr-ink,    #5c6587); }
.tw-menu__col { background: color-mix(in srgb, var(--tw-cat, var(--tw-accent-solid)) 12%, #fff); }
.tw-menu__col .tw-menu__dot { background: var(--tw-cat, var(--tw-accent-solid)); }

.tw-menu__col-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 0.95rem;
  line-height: 1.1;
  color: var(--clr-text, #2a2d3e);
  text-decoration: none;
}
.tw-menu__col-title:hover { text-decoration: underline; }
.tw-menu__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  flex-shrink: 0;
}
.tw-menu__col-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tw-menu__col-links a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.85rem;
  color: rgba(42, 45, 62, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}
.tw-menu__col-links a:hover { color: var(--clr-text, #2a2d3e); }
.tw-menu__col-all {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-text, #2a2d3e);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.tw-menu__col-all:hover { gap: 0.55rem; }
.tw-menu__col-all svg { width: 0.85rem; height: 0.85rem; }

/* ============================================================
   MENU MOBILE (burger + drawer offcanvas) — < lg uniquement
   ============================================================ */
.tw-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--clr-text, #2a2d3e);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.tw-burger:hover { background: var(--clr-pastel-ink, #eeeef3); }
.tw-burger svg { width: 1.5rem; height: 1.5rem; }

/* Drawer : couvre l'ecran, masque par defaut */
.tw-mdrawer {
  position: fixed;
  inset: 0;
  z-index: 1090;
  visibility: hidden;
  pointer-events: none;
}
.tw-mdrawer.is-open { visibility: visible; pointer-events: auto; }

.tw-mdrawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 30, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.tw-mdrawer.is-open .tw-mdrawer__backdrop { opacity: 1; }

.tw-mdrawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  background: var(--clr-background, #fafaf7);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.tw-mdrawer.is-open .tw-mdrawer__panel { transform: translateX(0); }

.tw-mdrawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--clr-border, #e8e9ed);
}
.tw-mdrawer__title { font-weight: 700; font-size: 1.05rem; color: var(--clr-text, #2a2d3e); }
.tw-mdrawer__close {
  display: inline-flex;
  padding: 0.25rem;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.tw-mdrawer__close svg { width: 1.4rem; height: 1.4rem; }
.tw-mdrawer__body { padding: 0.25rem 0 2rem; }

/* Liste */
.tw-mmenu { list-style: none; margin: 0; padding: 0; }
.tw-mmenu__item { border-bottom: 1px solid var(--clr-border, #eef0f4); }
.tw-mmenu__top,
.tw-mmenu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text, #2a2d3e);
  text-decoration: none;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}
.tw-mmenu__top:hover,
.tw-mmenu__toggle:hover { color: var(--clr-coral, #d96a5a); }
.tw-mmenu__chevron { width: 1.1rem; height: 1.1rem; transition: transform 0.25s ease; flex-shrink: 0; }
.tw-mmenu__item.is-open .tw-mmenu__chevron { transform: rotate(180deg); }

/* Panneau accordeon (max-height animee par JS) */
.tw-mmenu__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  background: var(--clr-pastel-ink, #f3f4f8);
}
.tw-mmenu__all {
  display: block;
  padding: 0.7rem 1.5rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text-light, #737694);
  text-decoration: none;
}
.tw-mmenu__group { padding: 0.3rem 0 0.7rem; }
.tw-mmenu__group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--clr-text, #2a2d3e);
  text-decoration: none;
}
.tw-mmenu__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--tw-cat, var(--clr-ink, #5c6587));
  flex-shrink: 0;
}
.tw-mmenu__link {
  display: block;
  padding: 0.4rem 1.5rem 0.4rem 2.55rem;
  font-size: 0.9rem;
  color: var(--clr-text-light, #5c6080);
  text-decoration: none;
}
.tw-mmenu__group-title:hover,
.tw-mmenu__link:hover { color: var(--clr-coral, #d96a5a); }

body.tw-noscroll { overflow: hidden; }

/* Securite : jamais de drawer en desktop (le nav .tw-menu prend le relais) */
@media (min-width: 992px) {
  .tw-mdrawer { display: none; }
}

/* ============================================================
   PANIER — offcanvas de previsualisation (cote droit)
   ============================================================ */
.tw-cart-drawer { position: fixed; inset: 0; z-index: 1095; visibility: hidden; pointer-events: none; }
.tw-cart-drawer.is-open { visibility: visible; pointer-events: auto; }
.tw-cart-drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 30, 0.45); opacity: 0; transition: opacity 0.28s ease; }
.tw-cart-drawer.is-open .tw-cart-drawer__backdrop { opacity: 1; }
.tw-cart-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(92vw, 400px);
  display: flex; flex-direction: column;
  background: var(--clr-background, #fafaf7);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.tw-cart-drawer.is-open .tw-cart-drawer__panel { transform: translateX(0); }
.tw-cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--clr-border, #e8e9ed); }
.tw-cart-drawer__title { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.05rem; color: var(--clr-text, #2a2d3e); }
.tw-cart-drawer__count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.4rem; border-radius: 999px; background: var(--clr-coral, #d96a5a); color: #fff; font-size: 0.75rem; font-weight: 700; }
.tw-cart-drawer__close { display: inline-flex; padding: 0.25rem; border: none; background: transparent; color: inherit; cursor: pointer; }
.tw-cart-drawer__close svg { width: 1.4rem; height: 1.4rem; }
.tw-cart-drawer__body { flex: 1; overflow-y: auto; padding: 0.25rem 1.25rem; }

.tw-cart-line { display: flex; gap: 0.85rem; padding: 0.9rem 0; border-bottom: 1px solid var(--clr-border, #eef0f4); }
.tw-cart-line__media { flex-shrink: 0; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--clr-pastel-ink, #f3f4f8); }
.tw-cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.tw-cart-line__info { flex: 1; min-width: 0; }
.tw-cart-line__name { display: block; font-weight: 600; font-size: 0.9rem; line-height: 1.3; color: var(--clr-text, #2a2d3e); text-decoration: none; }
.tw-cart-line__name:hover { color: var(--clr-coral, #d96a5a); }
.tw-cart-line__attrs { margin-top: 0.15rem; font-size: 0.78rem; color: var(--clr-text-light, #737694); }
.tw-cart-line__meta { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.35rem; font-size: 0.88rem; }
.tw-cart-line__qty { color: var(--clr-text-light, #737694); }
.tw-cart-line__price { font-weight: 700; color: var(--clr-text, #2a2d3e); }
.tw-cart-line__remove { flex-shrink: 0; align-self: center; display: inline-flex; padding: 0.35rem; border-radius: 6px; color: var(--clr-text-light, #9a9db4); text-decoration: none; }
.tw-cart-line__remove:hover { color: var(--clr-coral, #d96a5a); background: var(--clr-pastel-coral, #fce8e5); }
.tw-cart-line__remove svg { width: 1.1rem; height: 1.1rem; }

.tw-cart-drawer__foot { padding: 1.1rem 1.25rem; border-top: 1px solid var(--clr-border, #e8e9ed); }
.tw-cart-drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem; font-size: 0.95rem; }
.tw-cart-drawer__total { font-weight: 800; font-size: 1.15rem; color: var(--clr-text, #2a2d3e); }
.tw-cart-drawer__actions { display: flex; flex-direction: column; gap: 0.6rem; }
.tw-cart-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.tw-cart-btn--primary { background: var(--clr-ink, #2a2d3e); color: #fff; }
.tw-cart-btn--primary:hover { background: var(--clr-coral, #d96a5a); }
.tw-cart-btn--ghost { background: transparent; color: var(--clr-text, #2a2d3e); border: 1px solid var(--clr-border, #d8dae2); }
.tw-cart-btn--ghost:hover { border-color: var(--clr-ink, #2a2d3e); }

.tw-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 2rem; color: var(--clr-text-light, #737694); }
.tw-cart-drawer__empty svg { width: 2.5rem; height: 2.5rem; opacity: 0.4; }

/* Titres WYSIWYG (hero / about) : neutraliser les marges des <p> de l'editeur */
.tw-hero-title p,
.tw-about-title p { margin: 0; }
.tw-hero-title p + p,
.tw-about-title p + p { margin-top: 0.08em; }

/* ============================================================
   FICHE PRODUIT — bloc reassurance (blockreassurance) + bouton panier
   ============================================================ */
/* Items cote a cote (le parent les met en grille 1 colonne -> empiles). */
.blockreassurance--product {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
  width: 100%;       /* le parent le bridait a ~188px -> 1 item/ligne */
  max-width: none;
}
.blockreassurance--product .reassurance {
  flex: 1 1 150px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: none;
}
/* Annule la boite icone fixe (64px) du parent : l'icone colle au texte. */
.blockreassurance--product .reassurance__image {
  width: auto;
  min-width: 0;
  margin: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.blockreassurance--product .reassurance__image img {
  width: 24px;
  height: 24px;
  max-width: none;
  object-fit: contain;
}
.blockreassurance--product .reassurance__content { display: block; min-width: 0; }
/* Le <br> entre titre et desc creait un ecart trop grand (titre/desc sont deja
   en block) -> on le neutralise. */
.blockreassurance--product .reassurance__content br { display: none; }
.blockreassurance--product .reassurance__title {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--clr-text, #2a2d3e);
}
.blockreassurance--product .reassurance__desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--clr-text-light, #737694);
}

/* Bouton "Ajouter au panier" : icone Lucide alignee avec le texte. */
.product__add-to-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.product__add-to-cart-button svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }

/* ============================================================
   PAGE CONTACT (blocs TW + contactform restyle)
   ============================================================ */
.tw-contact { --tw-cwidth: 1400px; }
.tw-contact__main {
  max-width: var(--tw-cwidth);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.tw-contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
}
@media (max-width: 991.98px) {
  .tw-contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---- Hero ---- */
.tw-chero { max-width: var(--tw-cwidth, 1400px); margin: 0 auto; padding: 2.5rem 1.5rem 0.5rem; }
.tw-chero__inner {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  height: clamp(340px, 46vh, 440px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.35);
}
.tw-chero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tw-chero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 100%);
}
.tw-chero__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  max-width: 38rem;
}
.tw-chero__eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 1rem;
}
.tw-chero__title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 0.95; color: #fff; margin: 0;
}
.tw-chero__title p { margin: 0; }
.tw-chero__title em { font-style: italic; }
.tw-chero__subtitle {
  margin-top: 1.25rem; max-width: 28rem;
  color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.6;
}

/* ---- Colonne infos (gauche) ---- */
.tw-cinfos__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--clr-cyan, #5ab4e0); margin-bottom: 0.5rem;
}
.tw-cinfos__title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.05; margin: 0 0 1.25rem;
  color: var(--clr-text, #2a2d3e);
}
.tw-cinfos__title p { margin: 0; }
.tw-cinfos__title em { font-style: italic; }
.tw-cinfos__desc { max-width: 28rem; color: var(--clr-text-light, #737694); line-height: 1.65; margin-bottom: 2.25rem; }

.tw-cinfos__cards { display: flex; flex-direction: column; gap: 1rem; }
.tw-cinfo {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 1rem;
  background: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tw-cinfo--link:hover {
  transform: translateY(-2px);
  border-color: var(--clr-cyan, #5ab4e0);
  box-shadow: 0 18px 36px -22px rgba(0,0,0,0.3);
}
.tw-cinfo__icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.85rem;
}
.tw-cinfo__icon svg { width: 1.25rem; height: 1.25rem; }
.tw-cinfo__icon.tw-accent-coral  { background: var(--clr-pastel-coral, #fce8e5); color: var(--clr-coral, #d96a5a); }
.tw-cinfo__icon.tw-accent-cyan   { background: var(--clr-pastel-cyan, #e8f5fd); color: var(--clr-cyan, #5ab4e0); }
.tw-cinfo__icon.tw-accent-yellow { background: var(--clr-pastel-yellow, #faf3e0); color: var(--clr-text, #2a2d3e); }
.tw-cinfo__icon.tw-accent-teal   { background: var(--clr-pastel-teal, #e5f7f3); color: var(--clr-teal, #4db8a8); }
.tw-cinfo__icon.tw-accent-ink    { background: var(--clr-pastel-ink, #eeeef3); color: var(--clr-ink, #5c6587); }
.tw-cinfo__body { flex: 1; min-width: 0; }
.tw-cinfo__label {
  display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--clr-text-light, #737694); margin-bottom: 0.25rem;
}
.tw-cinfo__value { display: block; font-size: 0.92rem; line-height: 1.5; color: var(--clr-text, #2a2d3e); }

/* ---- Formulaire contact (contactform restyle) ---- */
.tw-cform {
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 2rem;
  background: var(--clr-pastel-ink, #f1f1f6);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.tw-cform input[name="url"] { display: none !important; }
.tw-cform__fields { display: flex; flex-direction: column; gap: 1.25rem; }
.tw-cform__field { display: flex; flex-direction: column; gap: 0.5rem; }
.tw-cform__label-row { display: flex; align-items: baseline; justify-content: space-between; }
.tw-cform__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--clr-text, #2a2d3e);
}
.tw-cform__hint { font-size: 0.72rem; color: var(--clr-text-light, #737694); }
.tw-cform__control {
  width: 100%;
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 1rem;
  background: var(--clr-background, #fafaf7);
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  color: var(--clr-text, #2a2d3e);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tw-cform__control:focus {
  outline: none;
  border-color: var(--clr-cyan, #5ab4e0);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--clr-cyan, #5ab4e0) 18%, transparent);
}
.tw-cform__textarea { resize: vertical; min-height: 8rem; }

/* Champ fichier stylise */
.tw-cform__file {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 1px dashed var(--clr-border, #cfd2dc);
  border-radius: 1rem;
  background: var(--clr-background, #fafaf7);
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tw-cform__file:hover { border-color: var(--clr-cyan, #5ab4e0); background: var(--clr-pastel-cyan, #e8f5fd); }
.tw-cform__file-name { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.9rem; color: var(--clr-text-light, #737694); }
.tw-cform__file-name svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.tw-cform__file-name .js-tw-cform-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-cform__file-btn { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clr-text, #2a2d3e); flex-shrink: 0; }
.tw-cform__file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* Emplacement captcha (placeholder hCaptcha) */
.tw-cform__captcha {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 1rem;
  background: var(--clr-background, #fafaf7);
  padding: 0.9rem 1.25rem;
}
.tw-cform__captcha-check { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.9rem; color: var(--clr-text, #2a2d3e); }
.tw-cform__captcha-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--clr-cyan, #5ab4e0); }
.tw-cform__captcha-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clr-text-light, #737694); }
.tw-cform__captcha-badge svg { width: 0.85rem; height: 0.85rem; }

/* Bouton envoyer */
.tw-cform__footer { margin-top: 1.5rem; }
.tw-cform__submit {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: none; cursor: pointer;
  border-radius: 9999px;
  background: var(--clr-ink, #2a2d3e);
  color: #fff;
  padding: 0.95rem 2rem;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
  transition: background-color 0.25s ease, gap 0.25s ease, box-shadow 0.25s ease;
}
.tw-cform__submit:hover { background: var(--clr-coral, #d96a5a); gap: 0.8rem; box-shadow: 0 15px 40px -10px rgba(217,106,90,0.5); }
.tw-cform__submit svg { width: 1rem; height: 1rem; }

.tw-cform__notif { border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: 0.9rem; }
.tw-cform__notif ul { margin: 0; padding-left: 1rem; }
.tw-cform__notif--success { background: var(--clr-pastel-teal, #e5f7f3); color: var(--clr-teal, #2f8a7a); }
.tw-cform__notif--error { background: var(--clr-pastel-coral, #fce8e5); color: var(--clr-coral, #d96a5a); }

/* ---- Newsletter ---- */
.tw-cnews { max-width: var(--tw-cwidth, 1400px); margin: 0 auto; padding: 0 1.5rem 5rem; }
.tw-cnews__inner {
  /* overflow: clip (et non hidden) : masque les blobs decoratifs SANS creer de conteneur
     scrollable. Sinon, apres inscription, le saut vers l'ancre #emailsubscription_anchor_
     (interne au bloc) fait defiler l'inner et decale le contenu vers le haut. */
  position: relative; overflow: clip;
  border-radius: 2.5rem;
  background: var(--clr-pastel-yellow, #faf3e0);
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.tw-cnews__blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.tw-cnews__blob--1 { top: -4rem; right: -4rem; width: 16rem; height: 16rem; background: color-mix(in srgb, var(--clr-coral, #d96a5a) 22%, transparent); }
.tw-cnews__blob--2 { bottom: -5rem; left: -2.5rem; width: 18rem; height: 18rem; background: color-mix(in srgb, var(--clr-cyan, #5ab4e0) 22%, transparent); }
.tw-cnews__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 767.98px) { .tw-cnews__grid { grid-template-columns: 1fr; } }
.tw-cnews__eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--clr-coral, #d96a5a); }
.tw-cnews__title { font-family: var(--font-display, 'Fraunces', serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0.75rem 0 0; color: var(--clr-text, #2a2d3e); }
.tw-cnews__title p { margin: 0; }
.tw-cnews__title em { font-style: italic; }
.tw-cnews__desc { margin-top: 1rem; max-width: 28rem; color: var(--clr-text, #2a2d3e); opacity: 0.75; line-height: 1.6; }

/* ps_emailsubscription restyle dans la newsletter : on neutralise le wrapper
   natif (section/container/row) et on ne garde QUE l'input + le bouton.
   bg-body-tertiary / py-3 sont des utilitaires Bootstrap dans @layer utilities :
   un !important DANS une layer bat un !important non-layered -> on surcharge
   donc DANS la layer utilities (specificite superieure => on gagne). */
@layer utilities {
  .tw-cnews__form .ps-emailsubscription { background: transparent !important; padding: 0 !important; margin: 0; }
}
.tw-cnews__form .ps-emailsubscription { margin: 0; }
.tw-cnews__form .ps-emailsubscription > .container { padding: 0; max-width: none; width: 100%; }
.tw-cnews__form .ps-emailsubscription .row { margin: 0; }
/* masquer titre, texte GDPR et conditions du widget */
.tw-cnews__form .ps-emailsubscription .h3,
.tw-cnews__form .ps-emailsubscription form .fs-6 { display: none !important; }
/* le form reprend toute la largeur (annule le col-lg-6 natif) */
.tw-cnews__form .ps-emailsubscription form { width: 100%; max-width: none; flex: 1 1 100%; padding: 0; }
/* input + bouton sur une ligne */
.tw-cnews__form .ps-emailsubscription form .d-flex { gap: 0.75rem; margin: 0 !important; }

.tw-cnews__form .ps-emailsubscription,
.tw-cnews__form form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.tw-cnews__form input[type="email"],
.tw-cnews__form input[type="text"] {
  flex: 1 1 14rem;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  padding: 1rem 1.5rem;
  font-size: 0.92rem;
}
.tw-cnews__form input:focus { outline: none; border-color: var(--clr-coral, #d96a5a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--clr-coral, #d96a5a) 18%, transparent); }
.tw-cnews__form button:not(.btn-close),
.tw-cnews__form [type="submit"] {
  border: none; cursor: pointer;
  border-radius: 9999px;
  background: var(--clr-ink, #2a2d3e);
  color: #fff;
  padding: 1rem 1.75rem;
  font-size: 0.9rem; font-weight: 600;
  transition: background-color 0.25s ease;
}
.tw-cnews__form button:not(.btn-close):hover { background: var(--clr-coral, #d96a5a); }
/* alerte succes/erreur : le .btn-close herite sinon du bouton pilule ci-dessus (cf. button non exclu) */
.tw-cnews__form .alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1 1 100%;
  margin: 0.5rem 0 0;
  padding: 0.9rem 1.1rem;
}
.tw-cnews__form .alert .btn-close {
  position: static;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  padding: 0;
  margin: 0;
  opacity: 0.5;
}
.tw-cnews__form .alert .btn-close:hover { opacity: 0.85; }

/* ============================================================
   PAGE AMBASSADEURS (bloc TW ambassadors, page CMS)
   ============================================================ */
.tw-cms { width: 100%; }
.tw-amb { padding: 0; }

.tw-amb__head { text-align: center; max-width: 40rem; margin: 0 auto 4rem; }
.tw-amb__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--clr-coral, #d96a5a);
}
.tw-amb__title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; margin: 0.75rem 0 0;
  color: var(--clr-text, #2a2d3e);
}
.tw-amb__title p { margin: 0; }
.tw-amb__title em { font-style: italic; }
.tw-amb__desc { margin: 1.25rem auto 0; max-width: 36rem; font-size: 1.05rem; line-height: 1.6; color: var(--clr-text-light, #737694); }

.tw-amb__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3rem;
}
@media (max-width: 991.98px) { .tw-amb__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; } }
@media (max-width: 575.98px)  { .tw-amb__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.tw-amb-card { display: flex; flex-direction: column; }
.tw-amb-card__media {
  position: relative; overflow: hidden;
  border-radius: 2rem; aspect-ratio: 4 / 5;
  background: var(--clr-pastel-ink, #eeeef3);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.35);
}
.tw-amb-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s ease;
}
.tw-amb-card:hover .tw-amb-card__media img { transform: scale(1.05); }

.tw-amb-card__body { margin-top: 1.75rem; padding: 0 0.25rem; }
.tw-amb-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tw-amb-card__name {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem); line-height: 1.15; margin: 0;
  color: var(--clr-text, #2a2d3e);
}
.tw-amb-card__name em { font-style: italic; }
.tw-amb-card__job {
  margin: 0.35rem 0 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--clr-coral, #d96a5a);
}
.tw-amb-card__socials { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.tw-amb-card__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: var(--clr-pastel-ink, #eeeef3); color: var(--clr-text, #2a2d3e);
  text-decoration: none; transition: background-color 0.25s ease, color 0.25s ease;
}
.tw-amb-card__social:hover { background: var(--clr-ink, #2a2d3e); color: #fff; }
.tw-amb-card__social svg { width: 1.05rem; height: 1.05rem; }
.tw-amb-card__intro { margin: 1rem 0 0; max-width: 28rem; font-size: 0.98rem; line-height: 1.6; color: var(--clr-text-light, #737694); }

/* ============================================================
   LISTING / CATÉGORIE — filtres (ps_facetedsearch) + toolbar
   ============================================================ */

/* ---- Sidebar filtres (colonne gauche) facon maquette ---- */
#search-filters {
  border: 1px solid var(--clr-border, #e8e9ed);
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.25rem 1.35rem;
  position: sticky;
  top: 1.5rem;
}
#search-filters .left-block__title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 1.3rem;
  margin: 0 0 0.35rem;
  color: var(--clr-text, #2a2d3e);
}

/* Reinitialiser */
.search-filters__clear { margin: 0 0 0.35rem; }
.search-filters__clear .js-search-filters-clear-all {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border: none; background: transparent; padding: 0;
  font-size: 0.8rem; color: var(--clr-text-light, #737694); cursor: pointer;
}
.search-filters__clear .js-search-filters-clear-all:hover { color: var(--clr-coral, #d96a5a); }
.search-filters__clear .material-icons { font-size: 1.05rem; }

/* Groupes (accordion) */
#search-filters .accordion { border: none; }
#search-filters .accordion-item {
  border: none;
  border-top: 1px solid var(--clr-border, #eef0f4);
  background: transparent;
}
#search-filters .accordion-item:first-child { border-top: none; }
#search-filters .accordion-button {
  padding: 0.85rem 0;
  font-size: 0.92rem; font-weight: 600;
  color: var(--clr-text, #2a2d3e);
  background: transparent !important; box-shadow: none !important;
  border: none !important;
}
#search-filters .accordion-button::after { width: 1rem; height: 1rem; background-size: 1rem; }
#search-filters .accordion-button:focus { box-shadow: none; }
/* Neutralise la regle parasite Hummingbird (.accordion button:hover/focus::after
   { border:1px solid var(--blue) }) qui dessine une barre bleue sur le chevron. */
#search-filters .accordion-button:hover::after,
#search-filters .accordion-button:focus::after { border: none !important; color: inherit; }

/* === Accordeons (regle GENERIQUE du parent Hummingbird : .accordion button) ===
   Le parent applique au survol/focus la couleur --blue + une bordure parasite sur
   le chevron (::after). On bascule la couleur sur Ink (couleur principale) et on
   supprime la bordure du ::after, pour TOUS les accordeons (pas seulement les facettes). */
.accordion button:hover,
.accordion button:focus {
  color: var(--clr-ink, #5c6587);
}
.accordion button:hover::after,
.accordion button:focus::after {
  border: none !important;
  color: var(--clr-ink, #5c6587);
}

/* Options -> CHIPS (uniquement les listes <ul>, pas le slider) */
#search-filters ul.accordion-body {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 0 0 0.9rem; margin: 0; list-style: none;
}
#search-filters ul.accordion-body > li { margin: 0; }
#search-filters .facet-label {
  display: inline-flex; align-items: center;
  margin: 0;
  border: 1px solid var(--clr-border, #e0e2ea);
  border-radius: 9999px;
  background: var(--clr-background, #fafaf7);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
#search-filters .facet-label:hover { border-color: var(--clr-text, #2a2d3e); }
#search-filters .facet-label.active { background: var(--clr-ink, #2a2d3e); border-color: var(--clr-ink, #2a2d3e); }
#search-filters .facet-label .form-check { display: contents; }
#search-filters .facet-label .form-check-input { display: none; }
#search-filters .facet-label .form-check-label,
#search-filters .facet-label .search-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.36rem 0.85rem; margin: 0;
  font-size: 0.8rem; line-height: 1; color: var(--clr-text, #2a2d3e); text-decoration: none;
}
#search-filters .facet-label.active .form-check-label,
#search-filters .facet-label.active .search-link,
#search-filters .facet-label.active .search-filters__color-label { color: #fff; }
/* Compteur (n) : foncé si chip inactif, clair si actif */
#search-filters .facet-label .search-filters__magnitude { color: var(--clr-text, #2a2d3e); opacity: 0.6; font-size: 0.92em; }
#search-filters .facet-label.active .search-filters__magnitude { color: #fff; opacity: 0.85; }

/* Pastilles couleur dans le chip */
#search-filters .facet-label .color.color-sm {
  width: 0.95rem; height: 0.95rem; border-radius: 9999px; display: inline-block;
  border: 1px solid rgba(0,0,0,0.12);
}

/* Dropdown facette */
#search-filters .facet-dropdown .dropdown-toggle {
  border-radius: 9999px; border: 1px solid var(--clr-border, #e0e2ea);
  background: var(--clr-background, #fafaf7); color: var(--clr-text, #2a2d3e);
  font-size: 0.8rem; padding: 0.4rem 0.9rem;
}

/* Slider prix */
#search-filters .search-filters__slider-container { padding: 0.75rem 0.4rem 1rem; }
#search-filters .search-filters__slider-values { font-size: 0.82rem; color: var(--clr-text-light, #737694); margin-top: 0.5rem; }

/* ---- Toolbar listing (compteur + tri) ---- */
.products__selection {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.products__count { font-size: 0.9rem; color: var(--clr-text-light, #737694); }
.products__sort { display: flex; align-items: center; gap: 0.5rem; }
.products__sort-dropdown-button.btn {
  border-radius: 9999px;
  border: 1px solid var(--clr-border, #e8e9ed);
  background: #fff; color: var(--clr-text, #2a2d3e);
  padding: 0.55rem 1.15rem; font-size: 0.85rem; font-weight: 500;
}
.products__sort-dropdown-button.btn:hover { border-color: var(--clr-text, #2a2d3e); background: #fff; }

/* Bouton "Filtrer" (toggle offcanvas) : visible UNIQUEMENT en mobile.
   Les filtres sont en sidebar dès md (#left-column col-md-4), le bouton y est
   donc inutile. (Hummingbird ne pose aucune classe responsive dessus.) */
@media (min-width: 768px) {
  #search_filter_toggler,
  .products__filter-button { display: none !important; }
}

/* Sous-categories masquees dans le header catégorie */
.subcategory { display: none; }

/* ---- Hero catégorie : fond = couleur de la catégorie, image à droite ---- */
.tw-cat-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: 1.5rem;
  /* Fond pastel identique aux colonnes du mega menu (12% de la couleur catégorie + blanc) */
  background: color-mix(in srgb, var(--tw-cat, var(--tw-accent-solid)) 12%, #fff);
  padding: 2rem 2.5rem;
  margin-bottom: 1.75rem;
  overflow: hidden;
}
.tw-cat-hero__text { max-width: 40rem; }
.tw-cat-hero__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--clr-text, #2a2d3e); opacity: 0.6; margin-bottom: 0.5rem;
}
.tw-cat-hero .page-title-section,
.tw-cat-hero h1,
.tw-cat-hero__title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; margin: 0;
  color: var(--clr-text, #2a2d3e);
}
.tw-cat-hero__title p { margin: 0; }
.tw-cat-hero .category__description {
  margin-top: 0.85rem; max-width: 34rem;
  color: var(--clr-text, #2a2d3e); opacity: 0.78; line-height: 1.55;
}
.tw-cat-hero__media { flex-shrink: 0; }
.tw-cat-hero__img {
  display: block; max-height: 180px; width: auto;
  border-radius: 1rem; box-shadow: 0 16px 36px -18px rgba(0,0,0,0.35);
}
@media (max-width: 767.98px) {
  .tw-cat-hero { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .tw-cat-hero__media { align-self: center; }
  .tw-cat-hero__img { max-height: 140px; }
}

/* ============================================================
   BANDEAU RÉASSURANCE (bloc TW, au-dessus du footer)
   ============================================================ */
/* Bande foncee (bg-foreground / text-background dans la maquette) */
.tw-rea {
  background: var(--clr-text, #2a2d3e);
  color: var(--clr-background, #fafaf7);
  margin-top: 5rem;
}
.tw-rea__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.tw-rea__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tw-rea__icon { margin-bottom: 0.85rem; opacity: 0.9; color: #fff; }
.tw-rea__icon svg { width: 2.25rem; height: 2.25rem; stroke-width: 1.8; }
.tw-rea__icon img { display: block; max-height: 2.75rem; width: auto; object-fit: contain; }
.tw-rea__title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 1.5rem; line-height: 1.2; color: #fff;
}
.tw-rea__text {
  margin: 0.4rem 0 0;
  max-width: 20rem;
  font-size: 0.85rem; line-height: 1.5; opacity: 0.8;
}
@media (max-width: 767.98px) {
  .tw-rea { margin-top: 3rem; }
  .tw-rea__container { grid-template-columns: 1fr; gap: 2.25rem; }
}
