/* ==========================================================
   ZINOVA — thème « marketplace » blanc
   ========================================================== */
:root {
  --bg: #FFFFFF;
  --bg-2: #F7F7F7;
  --bg-3: #EFEFEF;
  --surface: #FFFFFF;
  --ink: #191919;
  --ink-2: #3A3A3A;
  --muted: #707070;
  --line: #E5E5E5;
  --blue: #2F5BEA;
  --blue-d: #1E44C6;
  --blue-l: #EEF3FF;
  --hot: #D8152F;
  --ok: #0B7A3B;
  --lime: #FFD84D;          /* accent jaune (badges, admin) */
  --violet: var(--blue);
  --wa: #25D366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.16);
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: var(--font);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.wrap { width: min(1440px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn--lg { min-height: 52px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--ink, .btn--lime { background: var(--blue); color: #fff; }
.btn--ink:hover, .btn--lime:hover { background: var(--blue-d); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }
.btn--ghost:hover { background: var(--blue-l); }
.btn--wa { background: var(--wa); color: #073B1C; }
.btn--wa svg { fill: currentColor; stroke: none; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn--soft { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.count {
  position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--hot); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.count[hidden] { display: none; }
.count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.link-arrow { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-arrow:hover { color: var(--blue); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

/* ---------- barre utilitaire ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topbar nav { display: flex; gap: 20px; }
.topbar a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- en-tête ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(0,0,0,.05); }
.nav__inner { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.logo { font-size: 32px; font-weight: 800; letter-spacing: -.06em; color: var(--ink); display: inline-flex; align-items: baseline; line-height: 1; }
.logo i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); margin-left: 2px; }
.logo__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 18px; margin-right: 6px; }
.logo--lg { font-size: 36px; }
.mega { position: relative; flex: none; }
.mega__btn { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); max-width: 110px; text-align: left; line-height: 1.25; padding: 4px; }
.mega__btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.mega.is-open .mega__btn svg { transform: rotate(180deg); }
.mega__panel {
  position: absolute; top: calc(100% + 10px); left: 0; width: 520px; padding: 12px; z-index: 60; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease);
}
.mega.is-open .mega__panel { opacity: 1; visibility: visible; transform: none; }
.mega__panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.mega__panel a:hover { background: var(--bg-2); text-decoration: underline; }
.mega__ico { font-size: 20px; width: 28px; text-align: center; }
.search { flex: 1; display: flex; gap: 8px; min-width: 0; }
.search__field {
  flex: 1; display: flex; align-items: center; min-width: 0; height: 46px; border: 2px solid var(--ink); border-radius: 999px; padding-left: 16px; background: #fff;
}
.search__field:focus-within { border-color: var(--blue); }
.search__field svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search__field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; padding: 0 12px; font-size: 15px; }
.search__field select { height: 30px; max-width: 190px; border: 0; border-left: 1px solid var(--line); background: none; padding: 0 14px; font-size: 13px; color: var(--ink-2); outline: none; cursor: pointer; }
.search__btn { height: 46px; padding: 0 30px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; transition: background .15s; }
.search__btn:hover { background: var(--blue-d); }
.nav__actions { display: flex; gap: 2px; }
.catbar { border-bottom: 1px solid var(--line); }
.catbar__inner { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; font-size: 13px; color: var(--ink-2); }
.catbar__inner::-webkit-scrollbar { display: none; }
.catbar a { white-space: nowrap; padding: 10px 0; border-bottom: 2px solid transparent; }
.catbar a:hover { color: var(--blue); text-decoration: underline; }
.catbar a.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.catbar__deal { color: var(--hot) !important; font-weight: 600; }

/* ---------- bannières ---------- */
.hero { position: relative; margin-top: 20px; }
.hero__track { position: relative; }
.slide {
  display: none; grid-template-columns: minmax(280px, 1fr) 1.6fr; gap: 32px; align-items: center; min-height: 340px;
  padding: 40px 48px; border-radius: var(--radius); background: var(--bg); color: var(--ink); /* --bg/--ink définis par slide */
}
.slide.is-on { display: grid; animation: fadein .45s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateX(12px); } }
.slide__kicker { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); opacity: .75; margin-bottom: 10px; }
.slide h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--ink); }
.slide p { font-size: 16px; margin: 14px 0 24px; color: var(--ink); opacity: .85; max-width: 420px; }
.slide__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.slide__item { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink); }
.slide__item > span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.slide__item b { font-size: 17px; }
.slide__img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; transition: transform .25s var(--ease); }
.slide__img span { font-size: clamp(54px, 6vw, 92px); }
.slide__img img { width: 100%; height: 100%; object-fit: cover; }
.slide__item:hover .slide__img { transform: translateY(-4px); }
.slide__item:hover > span { text-decoration: underline; }
.hero__ctrl { position: absolute; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 8px; }
.hero__ctrl .icon-btn { width: 34px; height: 34px; }
.hero__ctrl svg { width: 18px; height: 18px; }
.dots { display: flex; gap: 6px; padding: 0 4px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(0,0,0,.25); transition: width .25s, background .25s; }
.dots button.is-on { width: 22px; background: var(--ink); }

/* ---------- sections ---------- */
.section { padding-top: 44px; }
.section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section__head .link-arrow { margin-left: auto; }
.section__title { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.section__head .section__title { margin: 0; }

/* cercles de catégories */
.circles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.circle { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 14px; font-weight: 600; }
.circle__img {
  width: 100%; max-width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(34px, 4vw, 54px);
  background: color-mix(in srgb, var(--c) 12%, var(--bg-2)); transition: transform .25s var(--ease), box-shadow .25s;
}
.circle:hover .circle__img { transform: scale(1.05); box-shadow: 0 0 0 2px var(--ink); }
.circle:hover .circle__label { text-decoration: underline; }

/* compte à rebours */
.countdown { font-size: 14px; color: var(--hot); font-weight: 600; font-variant-numeric: tabular-nums; }
.countdown b { font-weight: 700; }

/* ---------- cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.card { position: relative; min-width: 0; }
.card__media { display: block; position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.pimg { width: 100%; height: 100%; background: var(--bg-2); display: grid; place-items: center; }
.pimg img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.pimg--emoji { background: var(--bg-2); display: grid; place-items: center; }
.pdp__img img, .thumb img, .slide__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pimg--emoji span { font-size: clamp(56px, 6vw, 88px); transition: transform .4s var(--ease); }
.card:hover .pimg img, .card:hover .pimg--emoji span { transform: scale(1.06); }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge--hot { background: var(--hot); color: #fff; }
.badge--new { background: var(--lime); color: var(--ink); top: auto; bottom: 10px; }
.badge--lg { font-size: 14px; padding: 5px 10px; top: 16px; left: 16px; }
.card__wish {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  z-index: 2; box-shadow: var(--shadow); transition: transform .15s;
}
.card__wish svg { width: 18px; height: 18px; }
.card__wish:hover { transform: scale(1.08); }
.card__wish.is-on svg { fill: var(--hot); stroke: var(--hot); }
.card__wish.is-on { animation: bump .45s var(--ease); }
.card__wish--lg { width: 46px; height: 46px; top: 16px; right: 16px; }
.card__wish--lg svg { width: 22px; height: 22px; }
/* coin bas-droit de l'image carrée : la marge en % se calcule sur la largeur de la carte */
.btn-add {
  position: absolute; z-index: 2; right: 10px; top: 0; margin-top: calc(100% - 48px); width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow);
  transition: background .15s, color .15s, transform .15s;
}
.btn-add svg { width: 20px; height: 20px; stroke-width: 2.2; }
.btn-add:hover { background: var(--blue); color: #fff; transform: scale(1.06); }
.btn-add.is-done { background: var(--ok); color: #fff; }
.btn-add[disabled] { opacity: .35; }
.card__body { padding: 10px 2px 0; }
.card__title { font-size: 14.5px; font-weight: 400; line-height: 1.35; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { text-decoration: underline; }
.price { display: flex; flex-direction: column; }
.price strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.price__was { font-size: 13px; color: var(--muted); }
.price__was em { font-style: normal; color: var(--ink); font-weight: 600; }
.card__meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.ok { color: var(--ok); font-weight: 600; }
.hot { color: var(--hot); font-weight: 600; }

/* ---------- rails horizontaux ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail__btn {
  position: absolute; top: 34%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; transition: transform .15s;
}
.rail__btn:hover { transform: scale(1.06); }
.rail__btn--prev { left: -10px; }
.rail__btn--next { right: -10px; }

/* bandeau packs */
.promo-band { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 36px 44px; border-radius: var(--radius); background: #FCE8EC; }
.promo-band h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.promo-band p { margin: 10px 0 22px; color: var(--ink-2); }
.promo-band__items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 440px; justify-self: end; }

/* confiance */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.trust > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 22px; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust span { grid-row: span 2; font-size: 30px; }
.trust small { color: var(--muted); }

/* ---------- boutique ---------- */
.shop-hero { padding: 8px 0 12px; }
.shop-hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.shop-hero__emoji { font-size: .9em; }
.shop-hero__intro { max-width: 820px; color: var(--ink-2); margin: 8px 0 0; }
.shop-hero .eyebrow { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 16px 0 10px; }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: var(--blue); }
.crumbs b { color: var(--ink); font-weight: 400; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; white-space: nowrap; font-size: 14px; background: var(--bg-2); border: 1px solid transparent; transition: .15s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.field-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.field-inline input, .field-inline select { height: 38px; border-radius: 99px; border: 1px solid var(--line); background: #fff; padding: 0 14px; }
.field-inline input { width: 96px; }
.toolbar .btn { margin-left: auto; }
.empty { text-align: center; padding: 72px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty span { font-size: 56px; }
.empty .btn { margin-top: 12px; }
.h-404 { font-size: clamp(26px, 3.4vw, 36px); }
.search--inline { display: flex; width: min(460px, 100%); margin: 12px auto 40px; }
.search--inline { height: 46px; border: 2px solid var(--ink); border-radius: 99px; align-items: center; gap: 8px; padding: 0 16px; }
.search--inline input { flex: 1; border: 0; outline: none; background: none; }
.search--inline svg { width: 18px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; font-weight: 600; }
.pager a:hover { background: var(--bg-2); }
.pager a.is-on { background: var(--ink); color: #fff; }

/* ---------- fiche produit ---------- */
.pdp { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.pdp__media { position: sticky; top: 150px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--bg-2); }
.pdp__img { width: 100%; height: 100%; }

/* galerie : vignettes à gauche, grande photo à droite */
.pdp__media--gallery { aspect-ratio: auto; background: none; overflow: visible; }
.gallery { display: grid; gap: 12px; }
.gallery--many { grid-template-columns: 76px minmax(0, 1fr); }
.gallery__thumbs { position: relative; display: flex; flex-direction: column; gap: 8px; height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: thin; padding: 2px; }
.gallery__thumb { flex: none; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 0; transition: box-shadow .15s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb:hover { box-shadow: inset 0 0 0 2px var(--muted); }
.gallery__thumb.is-on { box-shadow: inset 0 0 0 2px var(--ink); }
.gallery__stage { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.gallery__main { display: block; width: 100%; height: 100%; padding: 0; cursor: zoom-in; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s var(--ease); }
.gallery__main.is-zooming img { transform: scale(2.2); }
.gallery__arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__stage:hover .gallery__arrow, .gallery__arrow:focus-visible { opacity: 1; }
.gallery__count, .gallery__hint {
  position: absolute; bottom: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.92); font-size: 12px; font-weight: 600;
  pointer-events: none; transition: opacity .15s;
}
.gallery__count { right: 12px; }
.gallery__hint { left: 12px; display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.gallery__hint svg { width: 15px; height: 15px; }
.gallery__stage:has(.is-zooming) .gallery__hint, .gallery__stage:has(.is-zooming) .gallery__arrow, .gallery__stage:has(.is-zooming) .gallery__count { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) {
  .gallery__arrow { opacity: 1; }
  .gallery__main { cursor: pointer; }
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
}
.pdp__media--gallery .gallery--many ~ .badge--lg { left: calc(76px + 12px + 16px); }

/* visionneuse plein écran */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.lightbox__count { font-weight: 700; min-width: 48px; }
.lightbox__title { flex: 1; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__stage { position: relative; overflow: hidden; touch-action: pan-y; }
.lightbox__stage > img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .25s var(--ease); user-select: none; -webkit-user-drag: none; }
.lightbox.is-zoomed .lightbox__stage { touch-action: none; }
.lightbox.is-zoomed .lightbox__stage > img { transform: scale(2.5); cursor: zoom-out; }
.lightbox__arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; z-index: 2;
}
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }
.lightbox.is-zoomed .lightbox__arrow, .lightbox.is-zoomed .lightbox__tip { opacity: 0; pointer-events: none; }
.lightbox__tip { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 6px 12px; border-radius: 99px; background: rgba(25,25,25,.75); color: #fff; font-size: 12px; pointer-events: none; transition: opacity .15s; }
.lightbox__thumbs { display: flex; justify-content: safe center; gap: 8px; padding: 12px 16px; overflow-x: auto; border-top: 1px solid var(--line); }
.lightbox__thumbs button { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; padding: 0; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); opacity: .6; transition: opacity .15s; }
.lightbox__thumbs button.is-on { opacity: 1; box-shadow: inset 0 0 0 2px var(--ink); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp__img.pimg--emoji span { font-size: clamp(130px, 20vw, 240px); }
.pdp__info .chip { font-size: 13px; padding: 5px 12px; }
.pdp__info h1 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin: 12px 0 8px; line-height: 1.25; }
.pdp__lead { color: var(--ink-2); margin: 0 0 18px; font-size: 16px; }
.pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.pdp__price strong { font-size: 30px; font-weight: 700; }
.pdp__price s { color: var(--muted); font-size: 16px; }
.save { color: var(--hot); font-weight: 600; font-size: 14px; }
.stock { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--ok); }
.stock div { display: none; }
.stock--low { color: #B54708; }
.stock--out { color: var(--hot); }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.buy { display: flex; gap: 10px; margin-bottom: 14px; }
.buy__add { flex: 1; background: #fff !important; color: var(--blue) !important; box-shadow: inset 0 0 0 1px var(--blue); }
.buy__add:hover { background: var(--blue-l) !important; }
.qty { display: inline-flex; align-items: center; border: 1px solid #8F8F8F; border-radius: 99px; height: 52px; padding: 0 4px; background: #fff; }
.qty button { width: 38px; height: 38px; border-radius: 50%; font-size: 20px; }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 36px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; appearance: textfield; outline: none; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--sm { height: 40px; }
.qty--sm button { width: 30px; height: 30px; }
.express { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; scroll-margin-top: 160px; background: #fff; }
.express__head { display: flex; justify-content: space-between; align-items: center; }
.express__head span { font-size: 13px; color: var(--ok); font-weight: 600; }
.express__grid, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  height: 46px; border-radius: 10px; border: 1px solid #8F8F8F; background: #fff; padding: 0 14px; font-size: 15px; font-weight: 400; color: var(--ink);
  outline: none; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.field.has-err input { border-color: var(--hot); }
.field small { color: var(--hot); font-weight: 500; }
.pdp__perks { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.desc { max-width: 820px; border-top: 1px solid var(--line); margin-top: 40px; }
.desc h2 { font-size: 22px; margin-bottom: 12px; }
.desc p { font-size: 16px; color: var(--ink-2); }
.sticky-buy { display: none; }

/* ---------- panier / commande ---------- */
.checkout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cart-list, .panel { display: grid; gap: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; gap: 16px; }
.cart-list > .btn { justify-self: start; margin-top: 16px; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto auto 42px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row__info { display: flex; flex-direction: column; gap: 2px; }
.cart-row__info a:hover { text-decoration: underline; }
.cart-row__line { font-size: 17px; min-width: 80px; text-align: right; }
.thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; }
.thumb span { font-size: 28px; }
.thumb--lg { width: 96px; height: 96px; }
.thumb--lg span { font-size: 46px; }
.summary { position: sticky; top: 150px; background: var(--bg-2); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.summary h3 { font-size: 20px; margin-bottom: 4px; }
.summary--flat { position: static; text-align: left; margin: 24px 0; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row--total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 17px; font-weight: 700; }
.row--total b { font-size: 22px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.mini-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.mini-row small { display: block; }
.pay-option { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; border: 2px solid var(--blue); background: var(--blue-l); }
.pay-option > span { font-size: 26px; }
.pay-option small { display: block; color: var(--ink-2); }
.check { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; }

/* ---------- merci ---------- */
.thanks { display: grid; place-items: center; padding: 40px 0; }
.thanks__card { position: relative; max-width: 620px; width: 100%; text-align: center; border: 1px solid var(--line); border-radius: 20px; padding: 44px 28px; overflow: hidden; }
.thanks__ico { font-size: 64px; display: block; }
.thanks h1 { font-size: clamp(28px, 4vw, 38px); margin: 10px 0; }
.thanks .hero__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ref { background: var(--lime); padding: 2px 8px; border-radius: 6px; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: fall 3.2s var(--ease) forwards; }
.confetti i:nth-child(4n) { background: var(--lime); } .confetti i:nth-child(4n+1) { background: var(--blue); }
.confetti i:nth-child(4n+2) { background: var(--hot); } .confetti i:nth-child(4n+3) { background: var(--ok); }
.confetti i:nth-child(1){left:4%}.confetti i:nth-child(2){left:12%;animation-delay:.2s}.confetti i:nth-child(3){left:20%;animation-delay:.5s}
.confetti i:nth-child(4){left:28%;animation-delay:.1s}.confetti i:nth-child(5){left:36%;animation-delay:.4s}.confetti i:nth-child(6){left:44%;animation-delay:.7s}
.confetti i:nth-child(7){left:52%;animation-delay:.3s}.confetti i:nth-child(8){left:60%}.confetti i:nth-child(9){left:68%;animation-delay:.6s}
.confetti i:nth-child(10){left:76%;animation-delay:.2s}.confetti i:nth-child(11){left:84%;animation-delay:.5s}.confetti i:nth-child(12){left:92%;animation-delay:.1s}
.confetti i:nth-child(n+13){display:none}
@keyframes fall { to { transform: translateY(620px) rotate(720deg); opacity: 0; } }

/* ---------- aide ---------- */
.faq { max-width: 820px; display: grid; padding-bottom: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 0 0 18px; }
.faq .btn { margin-bottom: 18px; }

/* ---------- pied de page ---------- */
.footer { margin-top: 64px; padding: 40px 0 110px; border-top: 1px solid var(--line); background: #fff; font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 32px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer h4 { font-size: 14px; margin-bottom: 4px; }
.footer__grid a:not(.btn):not(.logo) { color: var(--ink-2); }
.footer__grid a:not(.btn):not(.logo):hover { color: var(--blue); text-decoration: underline; }
.footer p { margin: 0 0 6px; max-width: 320px; }
.footer .logo { font-size: 28px; }
.newsletter { display: flex; gap: 6px; width: 100%; padding: 4px; border-radius: 99px; border: 1px solid #8F8F8F; }
.newsletter input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0 12px; }
.newsletter .btn { min-height: 36px; padding: 6px 16px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- tiroir panier ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px 22px; }
.drawer__head h3 { font-size: 20px; }
.ship-meter { margin: 0 22px 8px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); font-size: 13px; }
.ship-meter p { margin: 0 0 8px; }
.ship-meter div { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ship-meter i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width .5s var(--ease); }
.drawer__items { flex: 1; overflow-y: auto; padding: 4px 22px; display: grid; align-content: start; }
.d-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.d-item a { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-item a:hover { text-decoration: underline; }
.d-item .qty { height: 32px; margin-top: 6px; }
.d-item .qty button { width: 26px; height: 26px; font-size: 16px; }
.d-item .qty input { width: 26px; font-size: 14px; }
.d-item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.d-item__rm { font-size: 12px; color: var(--blue); text-decoration: underline; }
.drawer__empty { text-align: center; padding: 48px 0; color: var(--muted); }
.drawer__empty span { font-size: 44px; display: block; margin-bottom: 8px; }
.drawer__foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__foot .row { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 160%); padding: 12px 20px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px);
  opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .25s, visibility .25s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.tabbar { display: none; }
.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1200px) {
  .rail { grid-auto-columns: calc((100% - 64px) / 5); }
  .grid--5 { grid-template-columns: repeat(4, 1fr); }
  .circles { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1000px) {
  .mega { display: none; }
  .slide { grid-template-columns: 1fr; padding: 28px; }
  .slide__items { grid-template-columns: repeat(3, 1fr); }
  .hero__ctrl { position: static; justify-content: center; margin-top: 12px; }
  .grid, .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 48px) / 4); }
  .pdp, .checkout, .promo-band { grid-template-columns: 1fr; }
  .pdp__media, .summary { position: static; }
  .gallery--many { grid-template-columns: minmax(0, 1fr); }
  .gallery__thumbs { order: 2; flex-direction: row; height: auto; min-height: 0; overflow-x: auto; overflow-y: hidden; }
  .gallery__thumb { width: 64px; }
  .pdp__media--gallery .gallery--many ~ .badge--lg { left: 16px; }
  .lightbox__arrow { width: 40px; height: 40px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust > div:nth-child(3) { border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: 70px; font-size: 14.5px; }
  .topbar { display: none; }
  .nav__inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .logo { font-size: 28px; }
  .nav__actions { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; }
  .search__field { height: 42px; }
  .search__field select { display: none; }
  .search__btn { height: 42px; padding: 0 16px; }
  .catbar__inner { gap: 18px; }
  .hero { margin-top: 12px; }
  .slide { padding: 22px; min-height: 0; }
  .slide__items { gap: 10px; }
  .slide__item > span { font-size: 12px; }
  .slide__img span { font-size: 44px; }
  .slide__item b { font-size: 14px; }
  .section { padding-top: 32px; }
  .section__title { font-size: 20px; }
  .circles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84px; overflow-x: auto; scrollbar-width: none; gap: 12px; }
  .circles::-webkit-scrollbar { display: none; }
  .circle { font-size: 12.5px; }
  .grid, .grid--5 { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .rail { grid-auto-columns: 44%; gap: 12px; }
  .rail__btn { display: none; }
  .price strong { font-size: 18px; }
  .promo-band { padding: 24px; }
  .trust { grid-template-columns: 1fr; }
  .trust > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
  .express__grid, .form-grid { grid-template-columns: 1fr; }
  .toolbar .btn { margin-left: 0; }
  .cart-row { grid-template-columns: 72px 1fr auto; }
  .cart-row .thumb--lg { width: 72px; height: 72px; }
  .cart-row .qty { grid-column: 2; justify-self: start; }
  .cart-row__line { grid-column: 3; grid-row: 2; }
  .cart-row > .icon-btn { grid-column: 3; grid-row: 1; justify-self: end; }
  .nav__actions [data-open-cart], #wishLink { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-2); padding: 4px 0; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .count { top: 0; right: calc(50% - 22px); }
  .sticky-buy {
    display: flex; justify-content: space-between; align-items: center; position: fixed; z-index: 55; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom));
    padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); transform: translateY(200%); transition: transform .3s var(--ease);
  }
  .sticky-buy.is-on { transform: none; }
  .sticky-buy b { font-size: 19px; display: block; line-height: 1.1; }
  .sticky-buy s { color: var(--muted); font-size: 12px; }
  .toast { bottom: 84px; }
}
