/* Vitrine — mobile d'abord. Couleurs de marque injectées par le gabarit (--brand, --accent). */
:root {
  --brand: #2b1a14;
  --accent: #c8963e;
  --cream: #fbf6ef;
  --sand: #f3e8da;
  --paper: #ffffff;
  --ink: #1f1511;
  --muted: #74645b;
  --line: #eadfd2;
  --ok: #2f7d4f;
  --warn: #b26a12;
  --danger: #b3261e;
  --wa: #1fa855;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 26, 20, .06), 0 8px 24px rgba(43, 26, 20, .07);
  --tabbar: 64px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; }
svg { display: inline-block; vertical-align: -.18em; flex: none; }
[hidden] { display: none !important; }
.hair-art { object-fit: cover; background: #241713; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12;
  letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 4.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .7rem; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ bandeau + en-tête */
.announce { background: var(--brand); color: #f6e7cf; font-size: .8rem; text-align: center;
  padding: 7px 16px; letter-spacing: .01em; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 246, 239, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(234, 223, 210, .7); }
.header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font: 600 1.28rem/1 var(--font-display);
  white-space: nowrap; min-width: 0; }
.logo img { height: 36px; width: auto; }
.logo .crown { width: 30px; height: 30px; color: var(--accent); flex: none; }
.logo span { overflow: hidden; text-overflow: ellipsis; }
.nav-desktop { display: none; gap: 4px; margin-left: 18px; }
.nav-desktop a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--muted); }
.nav-desktop a:hover, .nav-desktop a.on { color: var(--ink); background: var(--sand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.market { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  background: var(--paper); font-size: .8rem; font-weight: 700; }
.market a { padding: 5px 9px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.market a.on { background: var(--brand); color: #fff; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 999px; background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--sand); }
.badge-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800;
  display: grid; place-items: center; }
.header .cart-desktop { display: none; }

/* ------------------------------------------------------------------ barre d'onglets mobile */
.tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid;
  grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); position: relative; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on svg { color: var(--accent); }
.tabbar .badge-count { top: 6px; right: calc(50% - 22px); }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; cursor: pointer; text-align: center;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(43, 26, 20, .25); }
.btn-gold { background: var(--accent); color: #1c120d; }
.btn-gold:hover { filter: brightness(1.05); box-shadow: 0 6px 18px rgba(200, 150, 62, .35); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-light { background: var(--paper); border-color: var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { box-shadow: 0 8px 22px rgba(31, 168, 85, .35); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1.5px; text-decoration-color: var(--accent); }

/* ------------------------------------------------------------------ héros */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(120% 90% at 85% 0%, rgba(200, 150, 62, .35), transparent 55%),
  radial-gradient(90% 80% at 0% 100%, rgba(120, 60, 40, .55), transparent 60%), var(--brand); }
.hero .wrap { position: relative; display: grid; gap: 28px; padding-top: 38px; padding-bottom: 42px; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { color: rgba(255, 255, 255, .82); max-width: 46ch; font-size: 1.04rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .ctas .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero-art { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16/9;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-art .hair-art { width: 100%; height: 100%; }
.hero-art .chip-float { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94);
  color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: .82rem; font-weight: 700;
  box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; }
.hero-art .chip-float b { font-family: var(--font-display); font-size: 1.15rem; }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 12px; font-size: .82rem; color: rgba(255,255,255,.85); }
.trust b { display: block; color: #fff; font-size: .95rem; }

/* ------------------------------------------------------------------ sections */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; font-size: .9rem; white-space: nowrap; color: var(--brand); }
.scroller { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: none; }

.texture-chip { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
  border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700;
  font-size: .9rem; white-space: nowrap; }
.texture-chip .dot { width: 38px; height: 38px; border-radius: 999px; overflow: hidden; flex: none; }
.texture-chip .dot .hair-art { width: 100%; height: 100%; }
.texture-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.shelves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shelf { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1.08;
  color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.shelf .hair-art, .shelf img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; }
.shelf::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 10, 6, .78)); }
.shelf.wide { grid-column: span 2; aspect-ratio: 2.3/1; }
.shelf .txt { position: absolute; left: 14px; right: 14px; bottom: 13px; }
.shelf b { display: block; font: 600 1.25rem/1.1 var(--font-display); }
.shelf small { opacity: .85; font-weight: 600; }

/* ------------------------------------------------------------------ cartes produit */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.card { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  background: var(--sand); }
.card-media img, .card-media .hair-art { width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; }
.card:hover .card-media img, .card:hover .card-media .hair-art { transform: scale(1.04); }
.card-media .tags { position: absolute; top: 9px; left: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; background: rgba(255, 255, 255, .94); color: var(--ink); }
.tag.gold { background: var(--accent); color: #1c120d; }
.tag.dark { background: var(--brand); color: #fff; }
.tag.out { background: #efe7de; color: var(--muted); }
.card-media .texture-label { position: absolute; bottom: 9px; left: 9px; right: 9px;
  color: rgba(255,255,255,.9); font: italic 600 1.05rem/1.1 var(--font-display);
  text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.card-body { padding: 0 2px; }
.card-title { font-weight: 700; font-size: .95rem; line-height: 1.3; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.price { font-weight: 800; font-size: 1rem; }
.price small { font-weight: 600; color: var(--muted); font-size: .75rem; }
.price s { color: var(--muted); font-weight: 600; font-size: .82rem; margin-left: 4px; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: .8rem; }

/* ------------------------------------------------------------------ boutique : filtres */
.page-head { padding: 22px 0 8px; }
.page-head h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: .2em; }
.filters { position: sticky; top: 60px; z-index: 20; background: var(--cream);
  padding: 8px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pills { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px;
  margin: 0 -16px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font-weight: 700; font-size: .84rem; white-space: nowrap; }
.pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill .sw { display: inline-block; width: 13px; height: 13px; border-radius: 99px;
  vertical-align: -2px; margin-right: 5px; border: 1px solid rgba(0,0,0,.1); }
.filter-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 42px; }
.search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; }
.select-sm { height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  padding: 0 12px; font-weight: 700; font-size: .84rem; }
.empty { text-align: center; padding: 50px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* ------------------------------------------------------------------ fiche produit */
.product { display: grid; gap: 22px; padding-top: 10px; }
.gallery { position: relative; margin: 0 -16px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4/5; background: var(--sand); }
.gallery-track img, .gallery-track .hair-art { width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.55); transition: .2s; }
.dots i.on { width: 20px; background: #fff; }
.thumbs { display: none; }
.p-info h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: .25em; }
.p-sub { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--muted);
  font-size: .88rem; font-weight: 600; margin-bottom: 14px; }
.p-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.p-price .now { font: 700 1.9rem/1 var(--font-display); }
.p-price s { color: var(--muted); font-weight: 600; }
.p-price .save { background: #f6e3c2; color: #6b4310; font-weight: 800; font-size: .78rem;
  padding: 4px 9px; border-radius: 999px; }
.avail { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; }
.avail::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47, 125, 79, .15); }
.avail.low::before { background: var(--warn); box-shadow: 0 0 0 4px rgba(178, 106, 18, .15); }
.avail.preorder::before { background: #6a4bc4; box-shadow: 0 0 0 4px rgba(106, 75, 196, .15); }
.avail.out::before { background: #b9aca2; box-shadow: none; }
.opt-label { display: flex; justify-content: space-between; font-weight: 800; font-size: .85rem;
  margin: 18px 0 8px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.opts.wide { grid-template-columns: 1fr; }
.opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 56px; padding: 6px 8px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--paper); cursor: pointer; text-align: center; transition: .15s; }
.opts.wide .opt { flex-direction: row; justify-content: space-between; padding: 12px 14px; text-align: left; }
.opt b { font-size: 1rem; }
.opt small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.opt.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #fff; }
.opt.is-out { opacity: .45; }
.opt.is-pre::after { content: "pré"; position: absolute; top: -7px; right: -5px; background: #6a4bc4;
  color: #fff; font-size: .6rem; font-weight: 800; padding: 2px 6px; border-radius: 99px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.qty input { width: 38px; text-align: center; border: 0; background: none; font-weight: 800;
  -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; margin-top: 18px; }
.buy-row .btn { flex: 1; }
.hint { display: flex; gap: 10px; align-items: flex-start; background: #fff7ea; border: 1px solid #f1dfbf;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; margin-top: 14px; }
.hint svg { flex: none; color: var(--accent); margin-top: 1px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: .92rem;
  background: var(--paper); border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); }
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; font-weight: 700; }
.prose { font-size: .98rem; color: #3b2e28; white-space: pre-line; }
.sticky-buy { position: fixed; z-index: 45; left: 0; right: 0;
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 10px 16px;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: flex;
  align-items: center; gap: 12px; transform: translateY(120%); transition: transform .25s ease; }
.sticky-buy.show { transform: none; }
.sticky-buy .p { font-weight: 800; line-height: 1.15; }
.sticky-buy .p small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
.sticky-buy .btn { margin-left: auto; min-height: 46px; }
.date-field { margin-top: 14px; display: grid; gap: 6px; }

.look-group { margin-top: 14px; }
.look-group h3 { font-size: 1.08rem; margin-bottom: 10px; }
.look-row .card { width: 44%; max-width: 230px; }

/* ------------------------------------------------------------------ formulaires */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 700; font-size: .86rem; }
.field .opt-txt { color: var(--muted); font-weight: 600; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper);
  font-size: 16px; }
.field textarea { min-height: 90px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200, 150, 62, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ------------------------------------------------------------------ panier */
.cart { display: grid; gap: 20px; padding-bottom: 20px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.box h2, .box h3 { font-size: 1.15rem; }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 76px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--sand); }
.cart-line .thumb img, .cart-line .thumb .hair-art { width: 100%; height: 100%; object-fit: cover; }
.cart-line .name { font-weight: 700; line-height: 1.3; }
.cart-line .var { font-size: .82rem; color: var(--muted); font-weight: 600; }
.cart-line .bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cart-line .qty { height: 38px; }
.cart-line .qty button { width: 36px; }
.cart-line .lt { font-weight: 800; text-align: right; }
.cart-line .lt s { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.zone { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: var(--paper); }
.zone input { accent-color: var(--brand); width: 20px; height: 20px; flex: none; }
.zone.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.zone .z-name { font-weight: 700; font-size: .93rem; }
.zone .z-delay { font-size: .78rem; color: var(--muted); font-weight: 600; }
.zone .z-fee { margin-left: auto; font-weight: 800; white-space: nowrap; }
.sum { display: grid; gap: 8px; font-size: .95rem; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum .total { font: 700 1.35rem/1.2 var(--font-display); padding-top: 10px; border-top: 1px dashed var(--line); }
.sum .disc { color: var(--ok); font-weight: 700; }
.nudge { background: #eef7f0; color: #1f5e39; border-radius: 12px; padding: 10px 12px;
  font-size: .86rem; font-weight: 700; }
.wa-note { display: flex; gap: 10px; font-size: .84rem; color: var(--muted); margin-top: 10px; }

/* ------------------------------------------------------------------ commande envoyée / suivi */
.center-card { max-width: 560px; margin: 26px auto; text-align: center; }
.big-check { width: 74px; height: 74px; border-radius: 99px; margin: 0 auto 16px; display: grid;
  place-items: center; background: #e5f4ea; color: var(--ok); }
.ref { display: inline-block; font: 800 1.1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em; background: var(--sand); padding: 9px 14px; border-radius: 10px; }
.timeline { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px;
  background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .pt { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 99px;
  background: var(--paper); border: 2px solid var(--line); display: grid; place-items: center; }
.timeline li.done .pt { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.done::before { background: var(--ok); }
.timeline b { display: block; }

/* ------------------------------------------------------------------ avis */
.reviews { display: grid; gap: 12px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: grid; gap: 8px; }
.review .who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; }
.review .av { width: 36px; height: 36px; border-radius: 99px; background: var(--sand); display: grid;
  place-items: center; font-weight: 800; color: var(--brand); }
.review p { margin: 0; font-size: .94rem; }
.review img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 220px; }
.reviews-scroller .review { width: 82%; max-width: 340px; }

/* ------------------------------------------------------------------ calculateur */
.calc { display: grid; gap: 18px; }
.seg { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.seg label { display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: .9rem; height: 100%; }
.seg span small { font-weight: 600; color: var(--muted); font-size: .76rem; }
.seg input:checked + span { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.seg input:focus-visible + span { outline: 2.5px solid var(--accent); }
.range-wrap { display: flex; align-items: center; gap: 14px; }
.range-wrap input[type=range] { flex: 1; accent-color: var(--brand); height: 34px; }
.range-wrap output { font: 700 1.6rem/1 var(--font-display); min-width: 3.2ch; }
.result { background: var(--brand); color: #fff; border-radius: 22px; padding: 22px; }
.result .n { font: 700 3rem/1 var(--font-display); color: var(--accent); }
.result ul { margin: 12px 0 0; padding-left: 18px; color: rgba(255,255,255,.85); font-size: .92rem; }

/* ------------------------------------------------------------------ installation / divers */
.install-banner { position: fixed; z-index: 60; left: 12px; right: 12px;
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 10px); background: var(--brand); color: #fff;
  border-radius: 20px; padding: 14px; display: none; gap: 12px; align-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.install-banner.show { display: flex; animation: up .35s ease; }
.install-banner img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.install-banner .t { flex: 1; font-size: .85rem; line-height: 1.35; }
.install-banner .t b { display: block; font-size: .95rem; }
.install-banner .btn { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.install-banner .x { background: none; border: 0; color: rgba(255,255,255,.6); font-size: 1.4rem; cursor: pointer; padding: 4px; }
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(20, 10, 6, .5); display: none; }
.sheet-bg.show { display: block; }
.sheet { position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; background: var(--paper);
  border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s ease; max-height: 85vh; overflow: auto; }
.sheet.show { transform: none; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; font-weight: 600; }
.steps li::before { content: counter(s); width: 30px; height: 30px; flex: none; border-radius: 99px;
  background: var(--sand); display: grid; place-items: center; font-weight: 800; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 14px);
  transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px;
  font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px);
  display: flex; gap: 12px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent); text-decoration: underline; white-space: nowrap; }
.flash { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: .9rem;
  background: #e8f4ec; color: #1f5e39; }
.flash.error { background: #fbeae8; color: #8a1f17; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }

.feature-row { display: grid; gap: 12px; }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--line); }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--sand); color: var(--brand);
  display: grid; place-items: center; flex: none; }
.feature b { display: block; margin-bottom: 2px; }
.feature p { margin: 0; font-size: .88rem; color: var(--muted); }
.band { background: var(--sand); }
.calc-teaser { display: grid; gap: 14px; align-items: center; background: var(--paper); border-radius: 24px;
  padding: 22px; border: 1px solid var(--line); }

.footer { background: var(--brand); color: rgba(255,255,255,.78); padding: 36px 0 26px; margin-top: 30px;
  font-size: .9rem; }
.footer .cols { display: grid; gap: 22px; }
.footer h4 { color: #fff; font: 600 1.1rem/1.2 var(--font-display); margin: 0 0 10px; }
.footer a { display: block; padding: 4px 0; }
.footer .socials { display: flex; gap: 10px; }
.footer .socials a { width: 40px; height: 40px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; padding: 0; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px;
  font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }

/* ------------------------------------------------------------------ grands écrans */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .install-banner { left: auto; right: 20px; width: 380px; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar, .sticky-buy { display: none; }
  .nav-desktop, .header .cart-desktop { display: flex; }
  .header .wrap { height: 70px; }
  .filters { top: 70px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 64px; padding-bottom: 70px; }
  .shelves { grid-template-columns: repeat(4, 1fr); }
  .shelf.wide { grid-column: span 4; aspect-ratio: 5/1; }
  .hero-art { aspect-ratio: 4/3; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product { grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; padding-top: 26px; }
  .gallery { margin: 0; position: sticky; top: 90px; }
  .gallery-track { border-radius: 24px; }
  .thumbs { display: flex; gap: 8px; margin-top: 10px; }
  .thumbs button { width: 66px; height: 80px; border-radius: 10px; overflow: hidden; border: 2px solid transparent;
    padding: 0; cursor: pointer; background: var(--sand); }
  .thumbs button.on { border-color: var(--brand); }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .cart { grid-template-columns: 1.3fr .9fr; align-items: start; }
  .cart .aside { position: sticky; top: 90px; }
  .feature-row { grid-template-columns: repeat(4, 1fr); }
  .look-row .card { width: calc(25% - 8px); }
  .calc { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .calc-teaser { grid-template-columns: 1fr auto; padding: 30px 34px; }
  .footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .toast { bottom: 24px; }
  .install-banner { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
