:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F7F3EE;
  --primary: #9C4F18;
  --primary-light: #C17A54;
  --primary-dark: #6E3810;
  --accent: #5E6B53;
  --text: #2A2320;
  --muted: #5E5149;
  --subtle: #7A6C61;
  --border: #E7DDD2;
  --border-strong: #D8C9B8;
  --success: #3F7D4E;
  --danger: #A4331F;
  --gold: #B08227;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1280px;
  --gap: 24px;
  --header-h: 84px; /* +12px d'air au-dessus du menu (logo/nav plus aérés) */
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-success {
  background: var(--success);
}

.btn-success:hover {
  background: #2d5a39;
}

input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: var(--font-body);
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s var(--ease);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.container-narrow {
  max-width: 800px;
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

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

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

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.flex {
  display: flex;
  gap: var(--gap);
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap);
  transition: all 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

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

/* Cellule bannière affiliée (Effinity) insérée dans la grille produits */
.banner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--surface-2);
  padding: 0.75rem;
}
.banner-card img {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: var(--radius-sm, 4px);
  display: block;
}
.banner-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Cellule offre Gerflor native (deal réel Effinity) insérée dans la grille produits */
.offer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1f1a17;
  color: #fff;
  padding: 1.75rem 1.25rem;
}
.offer-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}
.offer-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light, #e0b285);
  margin: 0 0 0.6rem;
}
.offer-card__title {
  font-family: var(--font-heading, 'Lora', serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.35rem;
}
.offer-card__cond {
  font-size: 0.85rem;
  opacity: 0.78;
  margin: 0 0 1.25rem;
}
.offer-card__cta {
  display: inline-block;
  background: #fff;
  color: #1f1a17;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s var(--ease, ease), color 0.2s var(--ease, ease);
}
.offer-card__cta:hover {
  background: var(--primary, #9c4f18);
  color: #fff;
}

/* Bloc offre Gerflor inséré dans le corps d'un article (variante autonome, pas une cellule de grille) */
.article-offer {
  position: relative;
  background: #1f1a17;
  color: #fff;
  border-radius: var(--radius, 12px);
  text-align: center;
  padding: 2.25rem 1.5rem;
  margin: 2.5rem auto;
  max-width: 560px;
}
.article-offer .offer-card__cond {
  margin-bottom: 1.5rem;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.product-badge.gerflor {
  background: var(--primary);
}

.product-badge.rubio {
  background: var(--accent);
}

.product-info {
  padding: 1rem;
}

.product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.product-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-add-cart {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.625rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-add-cart:hover {
  background: var(--primary-dark);
}

.buy-link {
  background: var(--success);
  color: white;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  white-space: nowrap;
}

.buy-link:hover {
  background: #2d5a39;
  transform: translateY(-1px);
}

.buy-link:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 2px;
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center; /* centre le contenu dans les 84px → air réparti au-dessus ET en dessous du menu */
}
.header > .container { width: 100%; } /* le conteneur remplit la barre, le centrage vertical vient de .header */

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.1;
  /* Lockup : mark image + wordmark texte alignés (pattern réutilisable ecom-factory) */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

/* Logo mark (PNG transparent 188×190 → ratio préservé : height fixe, width auto) */
.logo__mark {
  display: block;
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.logo__wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
}

/* Focus clavier visible (a11y WCAG 2.2 — 2.4.7) */
.logo:focus-visible,
.footer-brand .footer-logo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .logo__mark { height: 42px; }
}

.nav-link, .nav-dropdown-btn { font-size: 0.92rem; }

.logo .accent {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}

.cart-icon:hover {
  background: var(--surface-2);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

/* Navigation dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s var(--ease);
}

.nav-dropdown-btn:hover {
  color: var(--primary);
}

.nav-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s var(--ease);
}

.nav-dropdown-btn[aria-expanded="true"] .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;            /* ancré à droite : croît vers la gauche, reste dans le viewport */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg, 0 18px 48px rgba(80,50,25,.18));
  padding: 1.5rem 1.75rem;
  width: max-content;
  max-width: min(840px, 94vw);
  z-index: 200;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1rem 1.75rem;
  align-content: start;
  /* caché par défaut — un seul dropdown s'ouvre au survol/focus/clic */
  display: none;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-dropdown-btn[aria-expanded="true"] ~ .nav-dropdown-menu {
  display: grid;
}

/* dropdown simple (Outils) : une colonne étroite */
.nav-dropdown-menu--simple {
  grid-template-columns: 1fr;
  min-width: 200px;
  max-width: 240px;
}

/* le premier dropdown (panneau le plus large) s'aligne à gauche pour ne pas déborder à gauche */
.nav-desktop .nav-dropdown:first-of-type > .nav-dropdown-menu {
  left: 0;
  right: auto;
}

.nav-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-group-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-group-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-category-link {
  color: var(--muted);
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
  font-size: 0.875rem;
}

.nav-category-link:hover {
  color: var(--primary);
}

/* Navigation mobile */
.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-link:hover {
  color: var(--primary);
}

.nav-mobile-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-mobile-group {
  border-bottom: 1px solid var(--border);
}

.nav-mobile-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}

.nav-mobile-toggle:hover {
  color: var(--primary);
}

.nav-mobile-arrow {
  font-weight: bold;
  transition: transform 0.2s var(--ease);
}

.nav-mobile-content {
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.nav-mobile-subgroup {
  margin-bottom: 1rem;
}

.nav-mobile-subtitle {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--subtle);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-mobile-sublink {
  display: block;
  color: var(--muted);
  padding: 0.25rem 0;
  font-size: 0.875rem;
}

.nav-mobile-sublink:hover {
  color: var(--primary);
}

/* burger relevé à 1100px : en dessous, la nav desktop (8 entrées) débordait et masquait "Conseils" */
@media (max-width: 1100px) {
  .nav-desktop {
    display: none;
  }

  /* menu mobile masqué par défaut, ouvert seulement au clic burger (.mobile-open) */
  .nav-mobile {
    display: none;
  }

  .nav.mobile-open .nav-mobile {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav.mobile-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;          /* FIX : le menu était écrasé à ~114px car enfant d'un flex-row */
    align-items: stretch;            /* items pleine largeur → le "+" s'aligne enfin à droite */
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1.25rem;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 60;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
  }
  /* confort tactile (cible ≥ 44px) + cohérence visuelle liens / toggles */
  .nav-mobile-link, .nav-mobile-toggle { padding: 0.95rem 0; font-size: 1rem; }
  .nav-mobile-sublink { padding: 0.55rem 0; font-size: 0.95rem; }
}

@media (min-width: 1101px) {
  .nav-mobile {
    display: none !important;
  }

  .nav-desktop {
    display: flex;
    gap: 1.25rem;
    align-items: center;
  }
}

/* Page catégorie */
.breadcrumb {
  margin: 2rem 0 1rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

.category-header {
  margin-bottom: 2rem;
}

.category-header h1 {
  margin-bottom: 1rem;
}

.cat-intro {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
}

.category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.category-count {
  font-weight: 600;
  color: var(--text);
}

.category-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-sort label {
  font-size: 0.875rem;
  color: var(--muted);
}

.category-sort select {
  min-width: 150px;
}

.category-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.category-empty h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.category-empty p {
  margin-bottom: 2rem;
}

/* État vide gracieux (catégorie sans produits / page-guide non couverte) */
.empty-state__cats {
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.empty-state__link {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.empty-state__link:hover,
.empty-state__link:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .category-meta {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .category-sort {
    flex-direction: column;
    align-items: stretch;
  }

  .category-sort select {
    width: 100%;
  }
}

.hero {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.filter-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-size: 0.875rem;
}

.filter-chip:hover {
  border-color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.search-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}

.search-input {
  border: none;
  background: none;
  font-size: 1rem;
  width: 100%;
  padding: 0.5rem;
}

.search-input:focus {
  outline: none;
}

.tools-grid {
  margin-top: 3rem;
}

.tool-card {
  text-align: center;
  padding: 2rem;
}

.tool-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.tool-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tool-description {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
  }
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--muted);
  padding: 0.5rem;
}

.cart-items {
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 600;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.cart-total {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s var(--ease);
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--muted);
  padding: 0.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.quiz-question {
  margin-bottom: 2rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
  width: 100%;
}

.quiz-option:hover {
  border-color: var(--primary);
}

.quiz-option.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--surface-2);
  font-weight: 600;
}

.comparison-table td {
  background: var(--surface);
}

.calculator-modes {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 0.25rem;
  margin-bottom: 2rem;
}

.calculator-mode {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.calculator-mode.active {
  background: var(--primary);
  color: white;
}

.calculator-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--text);
}

.result-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.result-label {
  color: var(--muted);
  margin-bottom: 1rem;
}

.decor-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.decor-tile {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.decor-tile:hover {
  transform: scale(1.02);
}

.decor-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.decor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 5vw, 64px) 0 28px;
  margin-top: clamp(48px, 7vw, 88px);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 32px;
}
.footer-brand .footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--text); display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.footer-brand .footer-logo .logo__mark { display: block; height: 34px; width: auto; flex-shrink: 0; }
.footer-brand .footer-logo .logo__wordmark { font-family: var(--font-heading); font-weight: 700; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 10px; max-width: 36ch; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--subtle);
}
@media (max-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

/* legacy footer (avant injection JS) */
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-link { color: var(--muted); font-size: 0.875rem; }
.footer-link:hover { color: var(--text); }
.footer-text { color: var(--muted); font-size: 0.875rem; text-align: center; }

.hidden {
  display: none;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: var(--muted);
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.75rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.breadcrumb {
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--text);
}

.spec-list {
  list-style: none;
  margin: 1rem 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
}

.spec-value {
  color: var(--muted);
}

.related-products {
  margin-top: 3rem;
}

.collection-select {
  max-width: 300px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 2rem 0;
  }
  .hero {
    padding: 2rem 0;
  }
  .filters {
    padding: 1rem;
  }
  .filter-options {
    gap: 0.25rem;
  }
  .filter-chip {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    padding: 1.5rem;
  }
  .comparison-table {
    font-size: 0.875rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ============================================================
   LAYOUT E-COMMERCE CATÉGORIE — sidebar filtres + grille
   ============================================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin-top: 1.5rem;
}
.shop-filter-toggle { display: none; }

/* ---- Sidebar filtres ---- */
.shop-filters {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 18px 18px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
}
.facet-head {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 0 6px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 6px;
}
.facet { padding: 14px 0; border-bottom: 1px solid var(--border); }
.facet:last-child { border-bottom: none; }
.facet__title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
  margin: 0 0 0.6rem;
}
.facet__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; max-height: 240px; overflow-y: auto; }
.facet__opt { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.92rem; color: var(--text); padding: 2px 0; }
.facet__opt input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.facet__opt-label { flex: 1; }
.facet__opt:hover .facet__opt-label { color: var(--primary); }
.facet__count { color: var(--subtle); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.facet__price { display: flex; align-items: center; gap: 0.4rem; }
.facet__price input { width: 100%; min-width: 0; padding: 0.45rem 0.5rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; font-size: 0.9rem; }
.facet__price-btn { padding: 0.45rem 0.8rem; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.facet__price-btn:hover { background: var(--primary-dark); }
.facet__empty { color: var(--muted); font-size: 0.9rem; padding: 1rem 0; }

/* ---- Zone produits ---- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.shop-toolbar .category-count { font-weight: 600; color: var(--text); }
.shop-toolbar .category-sort { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.shop-toolbar select { padding: 0.4rem 0.6rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; font-size: 0.9rem; background: var(--surface); cursor: pointer; }

/* ---- Chips filtres actifs ---- */
.shop-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.shop-chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 0.3rem 0.75rem;
  font-size: 0.85rem; color: var(--text); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chip:hover { background: var(--primary-light); border-color: var(--primary); }
.chip--clear { background: transparent; border-style: dashed; color: var(--muted); }
.chip--clear:hover { color: var(--primary); background: transparent; }

.decor-tile { display: block; text-decoration: none; color: inherit; }

/* ---- Responsive : sidebar repliable en mobile ---- */
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filter-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary); color: #fff; border: none;
    border-radius: var(--radius); padding: 0.7rem 1.2rem;
    font-weight: 600; font-size: 0.95rem; cursor: pointer; margin-bottom: 0.5rem;
  }
  .shop-filters { display: none; position: static; max-height: none; }
  .shop-filters.is-open { display: block; }
}

/* ============================================================
   GRILLE PRODUITS CATÉGORIE — 4 colonnes, cartes uniformes
   ============================================================ */
.shop-main .grid-auto { grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .shop-main .grid-auto { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .shop-main .grid-auto { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .shop-main .grid-auto { grid-template-columns: 1fr; } }

/* carte uniforme : image ratio fixe + titre 2 lignes + prix + bouton aligné en bas */
.shop-main .product-card { display: flex; flex-direction: column; height: 100%; }
.shop-main .product-image { aspect-ratio: 4 / 3; }
.shop-main .product-info { display: flex; flex-direction: column; flex: 1; padding: 0.85rem 0.9rem 1rem; }
.shop-main .product-title {
  font-size: 0.9rem; line-height: 1.3; margin-bottom: 0.4rem;
  min-height: 2.34em;                 /* 2 lignes → toutes les cartes alignées */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-main .product-title a { color: var(--text); }
.shop-main .product-title a:hover { color: var(--primary); }
.shop-main .product-price { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 0.2rem; }
.shop-main .product-meta { font-size: 0.78rem; color: var(--subtle); margin-bottom: 0.7rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.shop-main .product-actions { margin-top: auto; display: flex; gap: 0.4rem; align-items: stretch; }
.shop-main .btn-view { flex: 1; text-align: center; background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.5rem; font-size: 0.85rem; font-weight: 600; }
.shop-main .btn-view:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.shop-main .btn-add-cart { width: 42px; flex-shrink: 0; padding: 0.5rem; border-radius: var(--radius-sm); font-size: 1rem; line-height: 1; }

/* ---- Fix label "Trier" (ne pas passer le ":" à la ligne) ---- */
.shop-toolbar .category-sort { white-space: nowrap; }
.shop-toolbar .category-sort label { white-space: nowrap; }

/* ---- Boutons utilisés en <a> (hero, sélecteur) : style bouton complet ---- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; line-height: 1.2; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }

/* ---- Maillage interne (Méline) : liens fiche produit → catégories + sœurs ---- */
.product-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.5rem auto 0; max-width: var(--maxw); padding: 1.1rem var(--gap) 0; border-top: 1px solid var(--border); }
.product-cats__label { font-weight: 600; color: var(--subtle); font-size: 0.9rem; }
.product-cats a { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.88rem; color: var(--text); }
.product-cats a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-sisters { margin: 0.4rem 0 1.4rem; font-size: 0.92rem; color: var(--muted); }
.cat-sisters__label { font-weight: 600; color: var(--text); }
.cat-sisters a { font-weight: 600; }

/* ---- Casse : titres facettes + menu en casse normale (plus de MAJUSCULES forcées) ---- */
.facet__title, .nav-group-title, .nav-mobile-subtitle, .facet-head { text-transform: none; letter-spacing: normal; }

/* ---- Carte produit entièrement cliquable (stretched link sur le nom uniquement) ---- */
.product-card { position: relative; cursor: pointer; }
.product-image { display: block; }
.product-title { margin: 0 0 0.4rem; }
.product-title a.product-link { color: var(--text); text-decoration: none; font-weight: 600; }
/* le pseudo-élément couvre TOUTE la carte → box cliquable, mais un seul lien dans l'arbre a11y */
.product-title a.product-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card:hover .product-title a.product-link { color: var(--primary); }
/* focus clavier visible sur le lien titre (la tabulation atteint le lien + le bouton) */
.product-title a.product-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-sm); }
/* le bouton Ajouter reste cliquable au-dessus du stretched link */
.btn-add-cart { position: relative; z-index: 2; }
.btn-add-cart:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.shop-main .product-info { display: flex; flex-direction: column; flex: 1; }
.shop-main .btn-add-cart { width: 100%; margin-top: auto; }

/* ---- Carte offre partenaire : toute la carte cliquable via overlay obfusqué (Règle #24, jamais d'<a href> affilié en clair) ---- */
.offer-card { cursor: pointer; }
.offer-card .offer-card__overlay { content: ""; position: absolute; inset: 0; z-index: 1; }
.offer-card .offer-card__cta { position: relative; z-index: 2; }
.offer-card .offer-card__overlay:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.offer-card .offer-card__cta:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ============================================================
   FIX menu hover (texte BLANC sur pastille) + cartes cohérentes partout
   ============================================================ */
/* pastille brune + texte blanc au survol / dropdown ouvert (au lieu de brun sur brun) */
.nav-desktop .nav-link, .nav-desktop .nav-dropdown-btn {
  padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); background: transparent; transform: none;
}
.nav-desktop .nav-dropdown-btn[aria-expanded="true"] {
  background: var(--primary); color: #fff; transform: none;
}
/* pastille brune au survol : SOURIS uniquement — évite le hover collé en tactile (bouton brun permanent) */
@media (hover: hover) {
  .nav-desktop .nav-link:hover, .nav-desktop .nav-dropdown-btn:hover {
    background: var(--primary); color: #fff; transform: none;
  }
}
.nav-desktop .nav-link.active { color: var(--primary); }
@media (hover: hover) { .nav-desktop .nav-link.active:hover { color: #fff; } }

/* style de carte produit identique PARTOUT (catégories, produits similaires, best-sellers) */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-image { aspect-ratio: 4 / 3; }
.product-info { display: flex; flex-direction: column; flex: 1; padding: 0.85rem 0.9rem 1rem; }
.product-title { font-size: 0.92rem; line-height: 1.3; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 1.05rem; }
.product-meta { font-size: 0.78rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.btn-add-cart { width: 100%; margin-top: auto; }

/* ---- USPs above-the-fold (fiche produit) ---- */
.product-usps { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; padding: 0; }
.product-usps li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.85rem; color: var(--text); font-weight: 500; }
.product-usps li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ---- Sticky "Acheter" mobile (Shopify CRO) ---- */
.product-sticky-atc { display: none; }
@media (max-width: 768px) {
  .product-sticky-atc {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 0.7rem 1rem; box-shadow: 0 -6px 20px rgba(0,0,0,.12);
  }
  .product-sticky-price { font-weight: 700; font-size: 1.15rem; color: var(--primary); white-space: nowrap; }
  .product-sticky-atc .buy-link { flex: 1; text-align: center; }
}

/* garantir le texte blanc au survol/ouverture du menu (priorité absolue) */
.nav-desktop .nav-dropdown-btn[aria-expanded="true"] { color: #fff !important; }
@media (hover: hover) {
  .nav-desktop .nav-link:hover,
  .nav-desktop .nav-dropdown-btn:hover { color: #fff !important; }
}

/* ============================================================
   MODERN WEB GUIDANCE (GoogleChrome) — quick wins
   ============================================================ */
/* color-scheme : contrôles natifs (form, scrollbars) + light-dark() adaptés au thème */
:root { color-scheme: only light; }

/* text-wrap : titres équilibrés + paragraphes sans orphelins */
h1, h2, h3, h4, .product-title, .facet__title, .blog-card h3, .article-header h1 { text-wrap: balance; }
p, .article-content p, .product-pitch, .cat-intro, .hero-subtitle, .blog-hero p { text-wrap: pretty; }

/* content-visibility : rendu différé des cartes hors écran (perf pages catégories 100+ produits) */
.product-card { content-visibility: auto; contain-intrinsic-size: auto 360px; }

.footer-social { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.8rem; font-weight: 600; font-size: 0.9rem; }

.cat-seo { padding: clamp(32px,5vw,56px) 0; border-top: 1px solid var(--border); margin-top: 2rem; }
.cat-seo .container { max-width: 820px; }
.cat-seo h2 { font-family: var(--font-heading); font-size: clamp(1.4rem,3vw,1.9rem); margin: 2rem 0 0.6rem; }
.cat-seo p { margin: 0 0 1rem; line-height: 1.75; }
.cat-seo ul, .cat-seo ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.cat-seo li { margin-bottom: 0.5rem; }
.cat-seo a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cat-faq { margin-top: 2.5rem; }
.cat-faq > h2 { margin-bottom: 1rem; }
.cat-faq .faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.cat-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; }
.cat-faq summary::-webkit-details-marker { display: none; }
.cat-faq .faq-answer { padding: 0 18px 16px; color: var(--muted); }
.cat-faq .faq-answer p { margin: 0; }

/* Fix contraste post-retrait dark mode : boutons toggle/option = texte foncé (actif = blanc sur primary) */
.quiz-option, .calculator-mode, .quiz-restart, .quiz-back, .compare-toggle, .comparator-toggle { color: var(--text); }
.quiz-option.selected, .calculator-mode.active, .compare-toggle.active, .comparator-toggle.active { color: #fff; }

/* Contenu SEO enrichi fiche produit (groundé) — aéré pour la lisibilité (mobile-first) */
.product-seo { margin: 3rem auto 0; max-width: 720px; padding: 2rem 1.25rem 0; border-top: 1px solid var(--border); }
.product-seo h2 { font-family: var(--font-heading); font-size: clamp(1.35rem, 4.5vw, 1.6rem); line-height: 1.25; margin: 0 0 1.5rem; }
.product-seo h3 { font-family: var(--font-heading); font-size: 1.18rem; line-height: 1.3; color: var(--primary); margin: 2.25rem 0 0.85rem; }
.product-seo p { margin: 0 0 1.2rem; line-height: 1.8; font-size: 1rem; color: var(--text); }
.product-seo .product-seo__lead { font-size: 1.12rem; line-height: 1.7; color: var(--subtle); margin-bottom: 1.6rem; }
.product-seo > .container > *:last-child { margin-bottom: 0; }

/* Caractéristiques techniques par gamme (chantier P0/P0bis, 11-07-26) — même boîte
   que .product-seo (cohérence visuelle), spec-list réutilisée (déjà stylée #product-detail). */
.product-tech-specs { margin: 3rem auto 0; max-width: 720px; padding: 2rem 1.25rem 0; border-top: 1px solid var(--border); }
.product-tech-specs h2 { font-family: var(--font-heading); font-size: clamp(1.35rem, 4.5vw, 1.6rem); line-height: 1.25; margin: 0 0 1.25rem; }
.product-tech-specs .spec-list { margin: 0 0 1.25rem; }
.product-tech-specs .spec-label { color: var(--subtle); font-weight: 500; }
.product-tech-specs .spec-value { color: var(--text); font-weight: 600; text-align: right; }
.product-brand-trust { font-size: 0.9rem; line-height: 1.6; color: var(--muted); padding: 0.85rem 1rem; background: var(--surface-2); border-radius: var(--radius-sm); margin: 0; }

/* Badges gamme sur cartes produit (Clipsable / 19 dB / Acoustique+) — même langage
   visuel que .chip (filtres), token-based, jamais de prix. */
.product-card__badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 0.4rem; }
.product-card__badge { display: inline-block; padding: 0.15rem 0.55rem; font-size: 0.72rem; font-weight: 600; color: var(--primary-dark); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; line-height: 1.5; }

/* Lisibilité : tout bouton restylé (texte foncé) hérite du fond marron de button:hover → texte/icône BLANC (demande user 15-06-26) */
.nav-mobile-toggle:hover, .nav-mobile-toggle:hover .nav-mobile-arrow,
.mobile-menu-btn:hover,
.quiz-option:hover, .calculator-mode:hover, .quiz-restart:hover, .quiz-back:hover,
.compare-toggle:hover, .comparator-toggle:hover { color: #fff; }

/* ============================================================
   PATTERN RÉUTILISABLE — Vue no-JS soignée (ecom-factory)
   ------------------------------------------------------------
   Blocs pré-rendus en HTML brut par build-mms-shop.mjs pour la
   crawlabilité (audit 23-06-26). 2 publics : Googlebot + rares
   utilisateurs sans JS. Le runtime JS ré-hydrate par-dessus en
   écrasant l'innerHTML du conteneur parent (.nav / .footer /
   #decor-tiles / #category-products) → ces blocs DISPARAISSENT en
   vue JS-on (collateral innerHTML wipe). Ce CSS ne pilote donc QUE
   la vue no-JS + le bref instant avant hydratation (markup
   intentionnel, jamais de barre grise ni de bande tassée).

   Réutilisable tel quel pour tout template e-commerce : aucune
   valeur en dur, 100 % tokens :root, sélecteurs génériques.
   color-scheme du projet = only light (dark mode retiré
   volontairement) → pas de bloc prefers-color-scheme ici.
   ============================================================ */

/* ---- 0. Anti-FOUC — bascule no-js / js AVANT le paint ----
   BUG user (24-06-26) : en navigation, l'utilisateur JS voyait un flash des
   blocs pré-rendus (bandeau .nav-prerender, tuiles décor, .footer-prerender,
   grille catégorie brute) car script.js (defer) n'écrase les conteneurs
   QU'APRÈS le 1er paint.
   FIX : <html class="no-js"> + script SYNCHRONE en 1er dans <head> qui bascule
   en .js avant tout rendu du body (cf. build-mms-shop.mjs / templates 05-site).
   Dès que .js est actif, on masque les blocs pré-rendus → zéro flash. Le runtime
   reconstruit ensuite le vrai menu/grilles/footer dans les conteneurs parents.
   ⚠️ display:none ne RETIRE PAS les liens du DOM → la vue Googlebot/no-JS (1re
   vague de crawl, avant tout JS) lit toujours les 335 liens en HTML brut. La
   vue .no-js (JS jamais exécuté) garde les blocs visibles et stylés. */
.js [data-prerender] { display: none !important; }
/* La vue no-JS garde tout visible (état par défaut — aucune règle requise). */

/* ---- 1. Bandeau catégories no-JS (.nav-prerender) ----
   PROBLÈME : la bande de 31 liens vit DANS le header flex à hauteur
   fixe (.header height:var(--header-h)), où elle tassait/chevauchait
   logo + hero. SOLUTION réutilisable : en no-JS uniquement (le runtime
   JS écrase .nav → cette bande n'existe jamais en JS-on), on relâche la
   hauteur du header via :has() et on sort la bande du flux nav pour la
   poser en pleine largeur SOUS la barre — bandeau de pills propre,
   scrollable horizontalement sur mobile, hiérarchisé. */
.header:has(.nav-prerender) {
  height: auto;
  position: static; /* la bande pousse le contenu : pas de sticky qui masquerait le hero */
}
.header:has(.nav-prerender) .header-content {
  height: auto;
  flex-wrap: wrap;
  padding-block: 1.25rem 0.75rem; /* +air au-dessus du logo/nav en no-JS (bande maillage) */
}
.nav:has(.nav-prerender) {
  flex-wrap: wrap;
  order: 0;
}
.nav-prerender {
  order: 99;            /* après logo/liens dans le header-content réordonné */
  flex-basis: 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
  margin: 0.75rem 0 0;
  padding: 0.85rem 0 0.25rem;
  border-top: 1px solid var(--border);
}
.nav-prerender::before {
  content: "Nos catégories";
  flex-basis: 100%;
  margin-bottom: 0.15rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
}
.nav-prerender-link {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--muted);
  background: var(--surface-2);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-prerender-link:hover,
.nav-prerender-link:focus-visible {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* ---- 2. Tuiles décor no-JS (.decor-tile) ----
   Le build pré-rend désormais le <img src> réel (meilleur SEO image
   + plus de barre grise). Filet de sécurité CSS : un fond dégradé
   token-based DERRIÈRE l'image garantit qu'une tuile reste une vraie
   tuile lisible même si l'image manque/404/avant chargement.
   Le label (.decor-overlay) reste lisible dans les deux cas. */
.decor-tile {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.decor-tile::after { /* trame discrète quand l'image est absente (no-JS / 404) */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.06) 14px 28px);
  pointer-events: none;
}
.decor-tile img { position: relative; z-index: 1; }
.decor-tile .decor-overlay {
  z-index: 2;
  background: linear-gradient(transparent, rgba(42, 35, 32, 0.78));
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

/* ---- 3. Plan du site no-JS (.footer-prerender) ----
   Liste catégories du footer brut : multi-colonnes aérées,
   titre soigné, fonctionne sans le footer JS. */
.footer-prerender {
  /* inséré en enfant direct de <footer> (hors .container) → on reproduit
     la gouttière du conteneur pour aligner avec le reste du footer. */
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 1.5rem clamp(16px, 4vw, 24px) 0;
  border-top: 1px solid var(--border);
}
.footer-prerender__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.footer-prerender__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--primary-light);
  transition: border-color 0.2s var(--ease);
}
.footer-prerender__title a:hover,
.footer-prerender__title a:focus-visible { border-color: var(--primary); }
.footer-prerender__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem 1.75rem;
  grid-template-columns: 1fr;
}
.footer-prerender__cats a {
  display: inline-block;
  padding: 0.15rem 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer-prerender__cats a:hover,
.footer-prerender__cats a:focus-visible {
  color: var(--primary);
  padding-left: 0.35rem;
}
@media (min-width: 640px) { .footer-prerender__cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-prerender__cats { grid-template-columns: repeat(3, 1fr); } }

/* ---- 4. État vide gracieux (.empty-state) ----
   Affinage du message + titre (le layout des liens .empty-state__cats
   est déjà défini plus haut). Carte centrée, sobre, tokens. */
.empty-state {
  max-width: 640px;
  margin: 2.5rem auto;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.empty-state__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  color: var(--text);
}
.empty-state__text {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .nav-prerender-link,
  .footer-prerender__title a,
  .footer-prerender__cats a { transition: none; }
}

/* ============================================================
   PRODUCT PAGE v2 — refonte visuelle fiche produit (10-07-26)
   Galerie multi-photos + hero + pilot-calc + product-seo
   Tokens Japandi existants uniquement. Mobile-first.
   ============================================================ */

/* --- Galerie --- */
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-gallery .pg-main-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery .pg-main-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .25s var(--ease);
}
.pg-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-thumb {
  width: 72px; height: 72px; padding: 0;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden; cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pg-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pg-thumb:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.pg-thumb.is-active { border-color: var(--primary); }
.pg-thumb:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* --- Hero produit : hiérarchie colonne droite --- */
#product-detail .grid-2 { gap: clamp(24px, 4vw, 48px); align-items: start; }
#product-detail h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  margin: .5rem 0 .75rem;
}
#product-detail .product-price {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}
#product-detail .product-usps { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 8px; }
#product-detail .product-usps li {
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .85rem; font-weight: 600;
}
#product-detail .spec-list {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  margin: 1.25rem 0;
}
#product-detail .spec-list > div:nth-child(even) { background: rgba(255,255,255,.6); }
#product-detail .product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.25rem; }
@media (max-width: 640px) {
  #product-detail .product-actions .btn-add-cart,
  #product-detail .product-actions .buy-link { flex: 1 1 100%; text-align: center; }
}

/* --- Module calculateur (pilot-calc) --- */
.pilot-calc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 36px);
  margin: 2.5rem 0;
}
.pilot-calc h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  margin: 0 0 1rem;
  color: var(--text);
}
.pilot-calc__table-wrap { overflow-x: auto; }
.pilot-calc table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  margin: 1rem 0;
}
.pilot-calc th {
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--text);
  text-align: left; padding: .65rem .9rem;
  font-size: .9rem;
}
.pilot-calc td { padding: .6rem .9rem; border-top: 1px solid var(--border); font-size: .95rem; }
.pilot-calc tr:nth-child(even) td { background: var(--surface-2); }
.pilot-calc__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 1.25rem 0; }
.pilot-calc__form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.pilot-calc__form input, .pilot-calc__form select {
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  min-width: 130px;
}
.pilot-calc__form input:focus-visible, .pilot-calc__form select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.pilot-calc__result {
  font-size: 1.05rem; font-weight: 600;
  margin: .75rem 0;
}
.pilot-calc__price {
  background: color-mix(in srgb, var(--primary) 10%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, white);
  border-radius: 10px;
  padding: .8rem 1.1rem;
  margin: 1rem 0;
  color: var(--primary-dark);
  font-weight: 600;
}
.pilot-calc .btn-terracotta {
  display: inline-block;
  background: var(--primary); color: #fff;
  border: none; border-radius: 999px;
  padding: .7rem 1.6rem;
  font-weight: 700; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.pilot-calc .btn-terracotta:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.pilot-calc__faq { display: grid; gap: 12px; margin-top: 1.5rem; }
@media (min-width: 768px) { .pilot-calc__faq { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.pilot-calc__faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
}
.pilot-calc__faq-item h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--primary-dark); }
.pilot-calc__faq-item p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }

/* --- Bloc éditorial --- */
.product-seo { max-width: 68ch; }
.product-seo p { line-height: 1.7; }

/* --- Produits similaires --- */
#related-products .product-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
#related-products .product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(42,35,32,.09); }
