/* ============================================================
   HINAEVA — Boutique en ligne · design épuré premium
   Mobile-first, blanc, aéré, typographie élégante
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --ink-soft: #555;
  --muted: #8a8a8a;
  --line: #e8e5e0;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --accent: #0e3b43;        /* vert lagon profond */
  --accent-soft: #eef4f4;
  --gold: #b08d57;
  --danger: #b0472f;
  --radius: 4px;
  --shadow: 0 10px 40px rgba(0,0,0,.10);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Accessibilité clavier */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--ink); color: #fff;
  padding: .8rem 1.4rem; border-radius: 0 0 var(--radius) 0; font-size: .85rem;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.muted { color: var(--muted); }
.small { font-size: .8rem; }
.eyebrow {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: .8rem;
}

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: var(--radius);
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; transition: all .25s ease; background: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #145560; }
.btn-primary:disabled { background: #c9c9c9; cursor: not-allowed; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { width: 100%; padding: 1rem; font-size: .9rem; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb355; }
.btn-whatsapp svg { width: 20px; height: 20px; }
.link-btn {
  background: none; border: none; color: var(--accent);
  font-size: .85rem; letter-spacing: .04em; border-bottom: 1px solid transparent;
}
.link-btn:hover { border-bottom-color: var(--accent); }

/* ============ Bandeau annonce ============ */
.announce-bar {
  background: var(--accent); color: #fff; text-align: center;
  font-size: .74rem; letter-spacing: .06em; padding: .5rem 1rem;
}
.announce-bar span { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ En-tête ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: .8rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; position: relative;
}
.logo {
  font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: .3em;
  font-weight: 600; display: flex; flex-direction: column; line-height: 1;
}
.logo small {
  font-family: var(--font-sans); font-size: .58rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--muted); margin-top: .3rem; font-weight: 400;
}
.main-nav { display: none; gap: 1.6rem; margin-left: 1.5rem; }
.main-nav > a, .nav-item > a {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem 0; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--gold); }
.nav-item { position: relative; display: flex; align-items: center; gap: .2rem; }
.nav-item.has-mega { padding-bottom: 18px; margin-bottom: -18px; }
.mega-toggle { display: none; background: none; border: none; font-size: .65rem; color: var(--muted); padding: .3rem; }
.header-actions { margin-left: auto; display: flex; gap: .3rem; flex: 0 0 auto; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: inline-flex;
  align-items: center; justify-content: center; background: none; border: none;
  border-radius: 50%; transition: background .2s;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.badge {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px;
  background: var(--accent); color: #fff; border-radius: 9px;
  font-size: .62rem; font-weight: 600; display: flex; align-items: center;
  justify-content: center; padding: 0 4px;
}
.burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.burger span { width: 20px; height: 1.5px; background: var(--ink); transition: .2s; }

/* Recherche toujours visible + autocomplétion */
.header-search { position: relative; order: 3; flex: 1 1 100%; max-width: none; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; pointer-events: none; }
.header-search input {
  width: 100%; padding: .6rem .9rem .6rem 2.2rem; border: 1px solid var(--line);
  border-radius: 20px; font-family: inherit; font-size: .84rem; background: var(--bg-soft);
  outline: none;
}
.header-search input:focus { border-color: var(--accent); background: #fff; }
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .8rem; z-index: 60; max-height: 70vh; overflow-y: auto;
}
.suggest-products { display: flex; flex-direction: column; gap: .3rem; }
.suggest-product { display: flex; align-items: center; gap: .7rem; padding: .4rem; border-radius: var(--radius); }
.suggest-product:hover { background: var(--bg-soft); }
.suggest-thumb { width: 40px; height: 40px; flex: 0 0 auto; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.suggest-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.suggest-info { font-size: .82rem; line-height: 1.4; }
.suggest-brands { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.suggest-brands a { font-size: .74rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 14px; }
.suggest-brands a:hover { border-color: var(--ink); }
.suggest-viewall { display: block; text-align: center; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--accent); }
.suggest-empty { font-size: .82rem; color: var(--muted); padding: .4rem; }

/* Méga-menu */
.mega-menu {
  position: absolute; top: 100%; left: 0; transform: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem; display: none; grid-template-columns: repeat(4, 160px);
  gap: 1.6rem; z-index: 55; width: max-content; margin-top: 0;
}
.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega:focus-within .mega-menu { display: grid; }
.mega-col h4 { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.mega-col a { display: block; font-size: .84rem; padding: .3rem 0; }
.mega-col a:hover { color: var(--accent); }
.mega-col a.mega-more { color: var(--accent); font-size: .78rem; margin-top: .3rem; }

/* Mini-panier au survol */
.cart-hover { position: relative; }
.mini-cart {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem; display: none; z-index: 60;
}
.cart-hover:hover .mini-cart { display: block; }
.mini-cart-empty { font-size: .85rem; color: var(--muted); text-align: center; padding: .6rem 0; }
.mini-cart-item { display: grid; grid-template-columns: 40px 1fr auto; gap: .6rem; align-items: center; padding: .4rem 0; font-size: .8rem; }
.mini-cart-item img { width: 40px; height: 40px; object-fit: contain; mix-blend-mode: multiply; background: var(--bg-soft); border-radius: var(--radius); }
.mini-cart-noimg { width: 40px; height: 40px; background: var(--bg-soft); border-radius: var(--radius); display: block; }
.mini-cart-total { display: flex; justify-content: space-between; font-weight: 600; border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .6rem; font-size: .88rem; }

/* Nav mobile ouverte (tiroir) */
.main-nav.open {
  display: flex; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem; gap: .3rem; margin: 0; max-height: calc(100vh - 60px); overflow-y: auto;
}
.main-nav.open .nav-item { flex-direction: column; align-items: stretch; }
.main-nav.open .nav-item > a { flex: 1; padding: .6rem 0; }
.main-nav.open .mega-toggle { display: block; position: absolute; right: 0; top: 0; }
.main-nav.open .mega-menu {
  display: none; position: static; transform: none; box-shadow: none; border: none;
  grid-template-columns: 1fr; padding: 0 0 .6rem 1rem; width: auto; gap: .8rem;
}
.main-nav.open .nav-item.open .mega-menu { display: grid; }
.main-nav.open a { padding: .6rem 0; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--accent-soft) 100%);
  padding: 4.5rem 1.5rem 3.5rem; text-align: center; position: relative; overflow: hidden;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1.2rem; }
.hero-sub { max-width: 480px; margin: 0 auto 2.2rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-wave { display: block; width: 100%; height: 40px; fill: var(--bg); margin-top: 2rem; position: relative; }

/* ============ Rails produits (accueil) ============ */
.rail-section .section-head { margin-bottom: 1.2rem; }
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: minmax(190px, 72%);
  overflow-x: auto; scroll-snap-type: x proximity; gap: 1rem; padding-bottom: .4rem;
  scrollbar-width: none;
}
.rail-track.product-grid { grid-template-columns: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track .product-card { scroll-snap-align: start; min-width: 0; }
.rail-arrow {
  display: none; position: absolute; top: 40%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); font-size: 1.1rem; z-index: 2;
}
.rail-prev { left: -14px; }
.rail-next { right: -14px; }

/* ============ Avis clients / réseaux sociaux (accueil) ============ */
.reviews-section p { max-width: 640px; }
.social-block { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ============ Sections accueil ============ */
.home-section { max-width: 1280px; margin: 0 auto; padding: 3.5rem 1rem 0; }
.home-section:last-child { padding-bottom: 4rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.8rem;
}
.section-head h2 { font-size: 1.9rem; }
.brand-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.brand-tile {
  background: #fff; padding: 1.6rem 1rem; text-align: center; border: none;
  transition: background .2s; display: block; width: 100%;
}
.brand-tile:hover { background: var(--bg-soft); }
.brand-tile strong {
  display: block; font-family: var(--font-serif); font-size: 1.05rem;
  font-weight: 600; letter-spacing: .06em;
}
.brand-tile span { font-size: .72rem; color: var(--muted); }

/* ============ Univers (Homme / Femme / Enfant / Connectées) ============ */
.universe-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.universe-tile {
  background: var(--bg-soft); padding: 2.4rem 1rem; text-align: center;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.universe-tile:hover { background: var(--accent-soft); }
.universe-tile span {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .08em;
}

/* ============ Filtres : tags ============ */
.filter-tags { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .9rem; }

/* ============ Fil d'Ariane ============ */
.breadcrumb {
  max-width: 1280px; margin: 0 auto; padding: 1rem 1rem 0; font-size: .78rem;
  color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .crumb-sep { color: var(--line); }
.breadcrumb span:last-child { color: var(--ink); }

/* ============ Facettes (colonne filtres) ============ */
.facet-group { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.facet-group:first-of-type { border-top: 1px solid var(--line); margin-top: .3rem; }
.facet-group summary {
  cursor: pointer; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); list-style: none; display: flex;
  align-items: center; justify-content: space-between; padding: .2rem 0;
}
.facet-group summary::-webkit-details-marker { display: none; }
.facet-group summary::after { content: "+"; font-size: 1rem; color: var(--muted); }
.facet-group[open] summary::after { content: "–"; }
.facet-badge {
  background: var(--accent); color: #fff; font-size: .65rem; border-radius: 8px;
  padding: 0 6px; margin-left: .4rem;
}
.facet-body { padding-top: .6rem; display: flex; flex-direction: column; gap: .1rem; max-height: 260px; overflow-y: auto; }
.facet-search {
  margin-bottom: .5rem; padding: .5rem .6rem; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: .82rem; font-family: inherit;
}
.facet-check { justify-content: flex-start; margin-bottom: 0; padding: .3rem 0; font-size: .85rem; }
.facet-check input:disabled { opacity: .4; }
.facet-check span:last-child { margin-left: auto; }
.facet-count { color: var(--muted); font-size: .75rem; }
.swatch {
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15);
  flex: 0 0 auto; display: inline-block;
}

/* ============ Puces de filtres actifs ============ */
.active-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem;
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
  font-size: .78rem; color: var(--ink-soft); transition: border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip-clear { border-color: transparent; text-decoration: underline; color: var(--accent); }

/* ============ Voir plus ============ */
.load-more-wrap { display: flex; justify-content: center; margin-top: 2rem; }

/* ============ Mentions légales ============ */
.legal-content { max-width: 720px; margin: 0 auto; padding: 0 1rem 4rem; }
.legal-content p { margin-bottom: 1.4rem; font-size: .92rem; color: var(--ink-soft); line-height: 1.7; }
.legal-content strong { color: var(--ink); }

.reassurance {
  display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 4rem;
  border-top: 1px solid var(--line); margin-top: 3.5rem;
}
.reassurance-item h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.reassurance-item p { font-size: .88rem; color: var(--ink-soft); }

/* ============ Grille produits ============ */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem;
}
.brand-family-section { grid-column: 1 / -1; padding: .4rem 0 1.4rem; }
.brand-family-section + .brand-family-section { border-top: 1px solid var(--line); padding-top: 2rem; }
.brand-family-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem;
}
.brand-family-heading h2 { font-size: clamp(1.45rem, 3vw, 2.35rem); margin: 0; }
.brand-family-heading span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.brand-family-products {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem;
}
.product-card {
  background: #fff; border: 1px solid transparent; border-radius: var(--radius);
  transition: border-color .2s; position: relative; cursor: pointer;
}
.product-card:hover { border-color: var(--line); }
.card-img {
  aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .3s ease, transform .35s ease; }
.card-img-primary { position: relative; z-index: 1; }
.card-img-secondary { position: absolute; inset: 0; opacity: 0; z-index: 2; background: var(--bg-soft); }
.product-card:hover .card-img-primary { transform: scale(1.04); }
/* Au survol : l'image 2 REMPLACE l'image 1 (le mix-blend-mode: multiply laissait
   transparaître l'image 1 sous l'image 2 → deux montres superposées, bug corrigé).
   Pas de :hover sur mobile (tactile) : l'image 2 reste à opacity 0 par défaut,
   donc jamais superposée à l'image 1 sur ces écrans.
   Règle basée sur la classe .has-second (posée par cardHTML() en JS) pour couvrir
   les navigateurs sans support de :has() (Safari < 15.4) ; la version :has() reste
   en complément pour les navigateurs qui le supportent. */
.product-card.has-second:hover .card-img-primary,
.product-card:hover:has(.card-img-secondary) .card-img-primary { opacity: 0; transform: none; }
.product-card:hover .card-img-secondary { opacity: 1; }
.card-fav {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  border: none; background: rgba(255,255,255,.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 3;
}
.card-fav svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.card-fav.active svg { fill: var(--danger); stroke: var(--danger); }
.card-badges { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; flex-direction: column; gap: .3rem; }
.card-badge {
  font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  padding: .28rem .55rem; border-radius: 2px; color: #fff; background: var(--ink);
}
.badge-new { background: var(--accent); }
.badge-low { background: var(--gold); }
.badge-promo { background: var(--danger); }
.price-strike { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: .85em; }
.card-quickview {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3;
  background: rgba(26,26,26,.88); color: #fff; border: none; border-radius: var(--radius);
  padding: .6rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.product-card:hover .card-quickview,
.product-card:focus-within .card-quickview { opacity: 1; transform: none; }
.card-body { padding: .7rem .3rem .4rem; }
.card-brand { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.card-name {
  font-family: var(--font-serif); font-size: 1.02rem; font-weight: 500;
  margin: .15rem 0 .3rem; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em;
}
.card-price { font-weight: 500; font-size: .95rem; }
.card-stock { font-size: .7rem; margin-top: .2rem; }
.stock-ok { color: #2e7d4f; }
.stock-qty { color: var(--muted, #777); font-size: .85em; }
.stock-low { color: var(--gold); }
.stock-out { color: var(--danger); }

/* ============ Catalogue ============ */
.page { min-height: 55vh; }
.page-head { max-width: 1280px; margin: 0 auto; padding: 2.5rem 1rem 1.5rem; }
.page-head h1 { font-size: 2.2rem; }
.catalogue-layout { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.filters-toggle { margin-bottom: 1rem; width: 100%; }
.filters {
  display: none; padding: 1.2rem; border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 1.5rem; background: var(--bg-soft);
}
.filters.open { display: block; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.filters-head h2 { font-size: 1.3rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.field span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: .92rem; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field-inline { flex-direction: row; align-items: center; margin: 0; }
.field-inline span { white-space: nowrap; }
.field-inline select { width: auto; }
.check, .radio { display: flex; align-items: center; gap: .6rem; font-size: .9rem; margin-bottom: .7rem; cursor: pointer; }
.check input, .radio input { accent-color: var(--accent); width: 16px; height: 16px; }
.catalogue-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
#resultCount { font-size: .85rem; }

/* ============ Skeleton loaders ============ */
.skeleton-block { background: linear-gradient(90deg, var(--bg-soft) 25%, #f0eee9 37%, var(--bg-soft) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton-line { height: 10px; border-radius: 3px; margin: .35rem 0; background: linear-gradient(90deg, var(--bg-soft) 25%, #f0eee9 37%, var(--bg-soft) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.empty-msg { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }

/* ============ Pagination ============ */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination button {
  min-width: 38px; height: 38px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); font-size: .85rem; transition: all .2s; padding: 0 .6rem;
}
.pagination button:hover:not(:disabled) { border-color: var(--ink); }
.pagination button.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination button:disabled { opacity: .35; cursor: default; }

/* ============ Modale produit ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,20,20,.55);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.modal {
  background: #fff; width: 100%; max-width: 960px; max-height: 94vh;
  overflow-y: auto; border-radius: 12px 12px 0 0; position: relative;
  box-shadow: var(--shadow); animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: sticky; top: 10px; margin-left: calc(100% - 54px); z-index: 5;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--bg-soft); font-size: 1.5rem; line-height: 1;
}
.modal-body { padding: 0 1.3rem 2.5rem; margin-top: -30px; }
.product-detail { display: grid; gap: 1.8rem; }
.gallery-main {
  aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .3rem; }
.gallery-thumbs button {
  width: 62px; height: 62px; flex: 0 0 auto; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-soft); overflow: hidden; padding: 2px;
}
.gallery-thumbs button.current { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.detail-info .card-brand { font-size: .72rem; }
.detail-info h2 { font-size: 1.9rem; margin: .3rem 0 .6rem; }
.detail-price { font-size: 1.5rem; font-weight: 500; margin-bottom: .3rem; }
.detail-stock { font-size: .82rem; margin-bottom: 1.2rem; }
.detail-actions { display: flex; gap: .8rem; margin: 1.2rem 0 1.8rem; flex-wrap: wrap; }
.detail-actions .btn-primary { flex: 1; min-width: 200px; }
.fav-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  width: 48px; display: flex; align-items: center; justify-content: center;
}
.fav-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.fav-toggle.active svg { fill: var(--danger); stroke: var(--danger); }
.specs { border-top: 1px solid var(--line); }
.specs h3 { font-size: 1.1rem; margin: 1.2rem 0 .6rem; }
.specs dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.4rem; font-size: .88rem; }
.specs dt { color: var(--muted); }
.specs dd { color: var(--ink); }
.marketing-note { font-size: .9rem; color: var(--ink-soft); font-style: italic; margin-top: 1.2rem; }

/* ============ Panier / Checkout ============ */
.cart-layout, .checkout-layout { max-width: 1100px; margin: 0 auto; padding: 0 1rem 4rem; display: grid; gap: 2rem; }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center;
}
.cart-item-img {
  width: 84px; height: 84px; background: var(--bg-soft); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item-name { font-family: var(--font-serif); font-size: 1.05rem; }
.cart-item-brand { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.cart-item-price { font-weight: 500; }
.qty-controls { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.qty-controls button {
  width: 28px; height: 28px; border: 1px solid var(--line); background: #fff;
  border-radius: 50%; font-size: 1rem; line-height: 1;
}
.qty-controls button:disabled { opacity: .35; }
.remove-btn { background: none; border: none; color: var(--muted); font-size: .78rem; text-decoration: underline; margin-top: .4rem; }
.cart-summary {
  background: var(--bg-soft); border-radius: var(--radius); padding: 1.5rem;
  align-self: start; position: sticky; top: 90px;
}
.cart-summary h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.summary-line { display: flex; justify-content: space-between; font-size: .9rem; padding: .3rem 0; }
.summary-total {
  display: flex; justify-content: space-between; font-weight: 600; font-size: 1.15rem;
  border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem;
}
.cart-summary .btn { width: 100%; margin-top: 1.2rem; }
.empty-msg { text-align: center; padding: 3rem 1rem 5rem; color: var(--ink-soft); }
.empty-msg a { text-decoration: underline; }

/* ============ Checkout ============ */
.checkout-form h2 { font-size: 1.3rem; margin: 1.6rem 0 1rem; }
.checkout-form h2:first-child { margin-top: 0; }
.payment-box {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.payment-status { font-size: .82rem; padding: .55rem .8rem; border-radius: var(--radius); }
.payment-status.ok { background: #e8f3ec; color: #2e7d4f; }
.payment-status.warn { background: #fdf3e7; color: #9a6a1f; }

/* ============ Contact ============ */
.contact-layout { max-width: 1000px; margin: 0 auto; padding: 0 1rem 4rem; display: grid; gap: 2.5rem; }
.contact-info h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.contact-info p { margin-bottom: 1.2rem; color: var(--ink-soft); }

/* ============ Toast ============ */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .75rem 1.4rem; border-radius: 30px;
  font-size: .85rem; z-index: 200; box-shadow: var(--shadow);
  animation: slideUp .25s ease;
}

/* ============ Fiche produit (page dédiée A3) ============ */
.pd-layout { max-width: 1280px; margin: 0 auto; padding: 1rem 1rem 4rem; }
.pd-top { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
.pd-gallery { display: flex; flex-direction: column; gap: .8rem; }
.pd-thumbs { display: flex; gap: .6rem; overflow-x: auto; order: 2; padding-bottom: .2rem; }
.pd-thumb {
  width: 60px; height: 60px; flex: 0 0 auto; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-soft); overflow: hidden; padding: 2px;
}
.pd-thumb.current { border-color: var(--ink); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-main {
  aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  cursor: zoom-in; order: 1;
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s ease; }
.pd-main:hover img { transform: scale(1.7); }
.pd-photo-note { font-size: .78rem; color: var(--muted); font-style: italic; order: 3; }
.pd-buy .card-brand { font-size: .74rem; }
.pd-badges { display: flex; gap: .4rem; margin: .5rem 0; flex-wrap: wrap; }
.pd-buy h1 { font-size: 1.9rem; margin: .2rem 0 .4rem; }
.pd-ref { font-size: .78rem; color: var(--muted); margin-bottom: .8rem; }
.pd-price { font-size: 1.7rem; font-weight: 500; margin-bottom: .3rem; }
.pd-reassurance { display: grid; gap: .8rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pd-reassurance div { display: flex; align-items: center; gap: .7rem; font-size: .82rem; color: var(--ink-soft); }
.pd-reassurance svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.4; }

/* Onglets */
.pd-tabs { border-top: 1px solid var(--line); padding-top: 1.6rem; max-width: 820px; }
.pd-tabs-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.pd-tab-btn {
  background: none; border: none; padding: .3rem 0 .9rem; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pd-tab-btn.current { color: var(--ink); border-bottom-color: var(--accent); }
.pd-tab-panel p { color: var(--ink-soft); font-size: .92rem; line-height: 1.7; }
.specs-dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.4rem; font-size: .9rem; }
.specs-dl dt { color: var(--muted); }
.specs-dl dd { color: var(--ink); }

/* Cross-sell / récemment consultés */
.pd-crosssell { margin-top: 3rem; }
.pd-crosssell h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.pd-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .4rem;
}
.pd-carousel .product-card { scroll-snap-align: start; }

/* Lightbox plein écran */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,10,10,.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay img { max-width: 88vw; max-height: 82vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: #fff; font-size: 2rem; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1);
  border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ============ Pied de page ============ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 2rem; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 3rem 1rem 2rem;
  display: grid; gap: 2rem; font-size: .85rem;
}
.footer-col nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-col nav a:hover { text-decoration: underline; }
.footer-col h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-brand .logo { margin-bottom: .8rem; }
.footer-brand p { margin-bottom: 1rem; }
.footer-social { display: flex; gap: .3rem; }
.footer-newsletter form { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.footer-newsletter input { flex: 1; min-width: 140px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: .82rem; }
.footer-newsletter .btn { white-space: nowrap; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 1.4rem 1rem 2rem;
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.footer-payments { display: flex; gap: .6rem; flex-wrap: wrap; }
.pay-badge { font-size: .72rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); background: #fff; }

/* ============================================================
   ≥ 720 px
   ============================================================ */
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
  .brand-family-products { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .reassurance { grid-template-columns: repeat(2, 1fr); }
  .modal-overlay { align-items: center; padding: 2rem; }
  .modal { border-radius: 10px; }
  .product-detail { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 340px; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .pd-top { grid-template-columns: 1fr 1fr; align-items: start; }
  .pd-carousel { grid-auto-columns: 34%; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .universe-grid { grid-template-columns: repeat(4, 1fr); }
  .rail-track { grid-auto-columns: clamp(210px, 30vw, 280px); }
  .rail-arrow { display: block; }
}

/* ============================================================
   ≥ 1024 px
   ============================================================ */
@media (min-width: 1024px) {
  .burger { display: none; }
  .main-nav { display: flex; }
  .header-inner { flex-wrap: nowrap; }
  .header-search { order: 0; flex: 1 1 260px; max-width: 380px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-family-products { grid-template-columns: repeat(4, 1fr); }
  .brand-grid { grid-template-columns: repeat(6, 1fr); }
  .filters-toggle { display: none; }
  .catalogue-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2.5rem; align-items: start; }
  .filters { display: block; position: sticky; top: 90px; margin-bottom: 0; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; }
  .rail-track { grid-auto-columns: clamp(230px, 22vw, 320px); }
  .reassurance { grid-template-columns: repeat(4, 1fr); }
  .pd-top { grid-template-columns: 90px 1fr 420px; }
  .pd-gallery { grid-column: 1 / 3; display: grid; grid-template-columns: 90px 1fr; gap: .8rem; align-items: start; }
  .pd-gallery.no-thumbs { grid-template-columns: 1fr; }
  .pd-gallery.no-thumbs .pd-main { grid-column: 1; }
  .pd-thumbs { order: 0; flex-direction: column; overflow-x: visible; overflow-y: auto; max-height: 520px; }
  .pd-thumb { width: 100%; height: 70px; }
  .pd-main { order: 0; }
  .pd-photo-note { grid-column: 1 / 3; }
  .pd-buy { grid-column: 3; }
  .pd-carousel { grid-auto-columns: 22%; }
}
