/* LocoStore — feuille de styles */

:root {
  --bg: #FBFAF9;
  --surface: #FFFFFF;
  --sunken: #F2F0EE;
  --ink: #0D0D0D;
  --ink-2: #4F4E4D;
  --ink-3: #6E6A66;
  --line: #E6E2DE;
  --accent: #ED1F06;
  --accent-ink: #C51A05;
  --mauve: #C7B4BA;
  --tan: #BF9D79;
  --lilac: #E9E1F6;
  --on-dark: #F4F2F0;
  --on-dark-2: #ABA7A3;
  --line-dark: #2A2A2B;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --shadow-1: 0 1px 2px rgba(13, 13, 13, .05), 0 4px 12px -4px rgba(13, 13, 13, .06);
  --shadow-2: 0 24px 48px -20px rgba(13, 13, 13, .22), 0 2px 8px rgba(13, 13, 13, .05);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 720ms;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 16px;
  --maxw: 1240px;
  --header-h: 64px;
  --section: 72px;
}

@media (min-width: 640px) { :root { --gutter: 24px; --section: 96px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 72px; --section: 120px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; transition: top var(--t-fast); }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tabular { font-variant-numeric: tabular-nums; }
.row-between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2B2B2C; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent-ink); color: #fff; }
.btn-accent:hover { background: #A81604; }
.btn .icon { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent;
  transition: background-color var(--t-fast);
}
.icon-btn:hover { background: var(--sunken); }
.link-btn { border: 0; background: none; padding: 10px; margin: -10px; color: var(--ink-3); border-radius: 8px; }
.link-btn:hover { color: var(--accent-ink); }

.tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1);
}
.tag-accent { background: var(--accent-ink); color: #fff; }
.tag-muted { background: var(--sunken); color: var(--ink-3); box-shadow: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 249, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.site-header.scrolled, .site-header.menu-open { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo-mark { position: relative; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); }
.logo-mark::before { content: ''; position: absolute; left: 8px; top: 7px; width: 4px; height: 16px; border-radius: 2px; background: #fff; }
.logo-mark::after { content: ''; position: absolute; left: 8px; top: 19px; width: 12px; height: 4px; border-radius: 2px; background: #fff; }
.logo-mark i { position: absolute; right: 5px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a, .mobile-nav nav a {
  position: relative; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav a:hover { color: var(--ink); background: var(--sunken); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.search { position: relative; display: none; }
.search input {
  width: 240px; height: 44px; padding: 0 16px 0 42px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 15px;
  transition: border-color var(--t-fast), width var(--t-med) var(--ease-out);
}
.search input:focus { outline: none; border-color: var(--ink); }
.search .icon { position: absolute; left: 14px; top: 12px; color: var(--ink-3); pointer-events: none; }
.search-mobile { display: block; margin: 12px 0 8px; }
.search-mobile input { width: 100%; }

.badge {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--accent-ink); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center; font-variant-numeric: tabular-nums;
}

.mobile-nav { border-top: 1px solid var(--line); padding-bottom: 16px; }
.mobile-nav nav { display: grid; }
.mobile-nav nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.mobile-nav nav a[aria-current="page"] { color: var(--accent-ink); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}
@media (min-width: 1100px) { .search { display: block; } }

/* ---------- Animations d'entrée ---------- */
.js [data-load], .js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + var(--i, 0) * 45ms);
}
.js.is-ready [data-load], .js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center -1px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; gap: 48px; align-items: center; }
.hero-proof { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.hero-proof .stars { color: var(--ink); }
.hero h1 { font-size: clamp(2.5rem, 8.5vw, 4.9rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.hero h1 .hl { color: var(--accent); }
.lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14.5px; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--accent-ink); }

.stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.stars .icon { width: 15px; height: 15px; color: var(--accent); stroke-width: 0; }

/* Scène du produit vedette */
.hero-stage {
  position: relative; display: grid; place-items: center;
  padding: 64px 0 40px; --px: 0; --py: 0;
}
.stage-glow {
  position: absolute; width: 120%; aspect-ratio: 1; max-width: 640px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--lilac) 0%, rgba(233, 225, 246, .55) 35%, rgba(237, 31, 6, .06) 55%, transparent 70%);
  pointer-events: none;
}
.spotlight {
  position: relative; z-index: 2; width: min(100%, 340px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 18px; box-shadow: var(--shadow-2);
}
.js .spotlight[data-load] { transform: translateY(24px) scale(.96); }
.js.is-ready .spotlight[data-load] { transform: none; }
.spotlight-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--sunken); }
.pill-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1E9E5A; box-shadow: 0 0 0 3px rgba(30, 158, 90, .18); }
.spotlight-media { position: relative; aspect-ratio: 1.1; margin: 6px 0 4px; display: grid; place-items: center; }
.spotlight-media .render { width: 84%; height: auto; }
.spotlight h2 { font-size: 21px; letter-spacing: -.02em; }
.spotlight .price { margin-top: 2px; }
.spotlight-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }

.swatches { display: flex; gap: 8px; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%; padding: 0; border: 0;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .12);
  position: relative; transition: transform var(--t-fast) var(--ease-out);
}
.swatch::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: border-color var(--t-fast); }
.swatch[aria-pressed="true"]::after { border-color: var(--ink); }
.swatch:hover { transform: scale(1.08); }

/* Carte vedette en 3D : inclinaison souris (--px/--py) > flottement continu > carte > photo en relief */
.spot-3d {
  position: relative; z-index: 2; display: grid; justify-items: center; width: min(100%, 340px);
  perspective: 1100px;
}
.spot-float {
  width: 100%; transform-style: preserve-3d;
  transform: rotateY(calc(var(--px) * 12deg)) rotateX(calc(var(--py) * -9deg));
}
.spot-float > .spotlight { width: 100%; transform-style: preserve-3d; animation: spot-drift 9s ease-in-out infinite; }
.js .spot-3d[data-load] { transform: translateY(40px) scale(.94); transition-duration: 1000ms; }
.js.is-ready .spot-3d[data-load] { transform: none; }
.js .spot-3d .spotlight, .js .spot-3d .spot-shadow { animation-play-state: paused; }
.js.is-ready .spot-3d .spotlight, .js.is-ready .spot-3d .spot-shadow { animation-play-state: running; }
@keyframes spot-drift {
  0%   { transform: translate3d(0, 0, 0) rotateX(2deg) rotateY(-5deg) rotateZ(-.6deg); }
  25%  { transform: translate3d(0, -12px, 0) rotateX(-1deg) rotateY(1deg) rotateZ(.4deg); }
  50%  { transform: translate3d(0, -4px, 0) rotateX(-3deg) rotateY(5deg) rotateZ(.8deg); }
  75%  { transform: translate3d(0, -14px, 0) rotateX(1deg) rotateY(0deg) rotateZ(-.3deg); }
  100% { transform: translate3d(0, 0, 0) rotateX(2deg) rotateY(-5deg) rotateZ(-.6deg); }
}
/* L'ombre suit le flottement : plus petite et plus claire quand la carte monte */
.spot-shadow {
  width: 78%; height: 26px; margin-top: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(13, 13, 13, .26), rgba(13, 13, 13, 0));
  animation: spot-shadow 9s ease-in-out infinite;
}
@keyframes spot-shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  25% { transform: scaleX(.86); opacity: .7; }
  50% { transform: scaleX(.96); opacity: .9; }
  75% { transform: scaleX(.84); opacity: .66; }
}
.spot-3d .spotlight .spotlight-media { transform-style: preserve-3d; aspect-ratio: 1; margin: 10px 0 12px; }
/* La photo ressort de la carte et réagit à la souris en sens inverse (profondeur) */
.spot-photo {
  width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 22px;
  transform: translateZ(46px) translate(calc(var(--px) * 6px), calc(var(--py) * 6px)) scale(.9);
  box-shadow: 0 30px 50px -28px rgba(13, 13, 13, .55);
  transition: transform 600ms var(--ease-out);
}
.spotlight-media:hover .spot-photo { transform: translateZ(60px) translate(calc(var(--px) * 6px), calc(var(--py) * 6px)) scale(.93); }
/* Reflet de lumière qui glisse selon l'inclinaison, et passe aussi tout seul de temps en temps */
.spot-sheen {
  position: absolute; inset: 5%; border-radius: 22px; pointer-events: none; overflow: hidden;
  transform: translateZ(47px);
}
.spot-sheen::before {
  content: ''; position: absolute; top: -20%; bottom: -20%; width: 45%; left: calc(25% + var(--px) * 40%);
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-12deg);
  animation: sheen-pass 9s ease-in-out infinite;
}
@keyframes sheen-pass {
  0%, 62% { translate: -160% 0; opacity: 0; }
  66% { opacity: 1; }
  80%, 100% { translate: 220% 0; opacity: 0; }
}
/* Écrans tactiles : pas de relief (certains mobiles affichent mal les images en 3D), le flottement reste */
@media (hover: none), (pointer: coarse) {
  .spot-float, .spot-float > .spotlight, .spot-3d .spotlight .spotlight-media { transform-style: flat; }
  .spot-photo, .spotlight-media:hover .spot-photo { transform: scale(.94); }
  .spot-sheen { transform: none; }
}
.spot-3d .spotlight .price { margin: 0; }
.spot-3d .spotlight-row { margin-top: 6px; }
@media (min-width: 960px) { .spot-3d { width: 360px; } }

/* Pastilles flottantes */
.chip {
  position: absolute; z-index: 3;
  transform: translate(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * 1px));
}
.chip-pop { display: block; }
.js .chip-pop { opacity: 0; transform: scale(.6); transition: opacity 500ms var(--ease-out), transform 700ms var(--spring); transition-delay: calc(500ms + var(--d) * 90ms); }
.js.is-ready .chip-pop { opacity: 1; transform: none; }
.chip-float {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-1);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: float var(--dur, 6s) ease-in-out infinite alternate;
  animation-delay: calc(var(--d) * -1.3s);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.chip:hover .chip-float { border-color: var(--ink); box-shadow: var(--shadow-2); }
.chip-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--sunken); display: grid; place-items: center; }
.chip-ico .render { width: 30px; height: 30px; }
@keyframes float {
  from { transform: translateY(-6px) rotate(-1.5deg); }
  to { transform: translateY(6px) rotate(1.5deg); }
}

.chip.c5, .chip.c6 { display: none; }
@media (min-width: 560px) { .chip.c5, .chip.c6 { display: block; } }

@media (min-width: 960px) {
  .hero { padding: 56px 0 96px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 32px; }
  .hero-stage { min-height: 580px; padding: 72px 0; }
  .spotlight { width: 360px; }
}

/* ---------- Bandeau de confiance ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust ul { display: grid; grid-template-columns: 1fr; }
.trust li { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 14.5px; line-height: 1.35; }
.trust li + li { border-top: 1px solid var(--line); }
@media (min-width: 560px) and (max-width: 899px) {
  .trust ul { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .trust li { padding: 20px 0; }
  .trust li + li { border-top: 0; }
}
.trust li strong { display: block; font-size: 15px; }
.trust li span { color: var(--ink-3); }
.trust .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sunken); display: grid; place-items: center; flex: none; }
.trust .ico .icon { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li { padding: 28px 24px; }
  .trust li + li { border-left: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.section-head p { color: var(--ink-2); max-width: 32em; margin-top: 10px; }

/* Catégories (grille bento) */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 190px; padding: 18px; border-radius: var(--radius-l); background: var(--sunken);
  isolation: isolate;
}
.tile h3 { font-size: 19px; letter-spacing: -.02em; max-width: 9em; }
.tile p { font-size: 14px; color: var(--ink-3); margin-top: 4px; max-width: 14em; }
.tile .count { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.tile .count .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }
.tile .render { position: absolute; right: -14px; bottom: -14px; width: 58%; z-index: -1; transition: transform 600ms var(--ease-out); }
.tile:hover .render { transform: translateY(-8px) rotate(-4deg) scale(1.04); }
.tile:hover .count .icon { transform: translateX(3px); }
.tile-feature { grid-column: span 2; min-height: 260px; background: var(--lilac); }
.tile-feature .render { width: 46%; right: 4%; bottom: -6px; }
.tile-dark { background: var(--ink); color: var(--on-dark); }
.tile-dark p { color: var(--on-dark-2); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 210px); gap: 16px; }
  .tile { min-height: 0; padding: 24px; }
  .tile h3 { font-size: 22px; }
  .tile-feature { grid-column: 1 / 3; grid-row: 1 / 3; }
  .tile-feature h3 { font-size: 34px; }
  .tile-feature .render { width: 62%; right: -2%; bottom: -10px; }
  .tile-wide { grid-column: span 2; }
  .tile-wide .render { width: 36%; right: 6%; bottom: -16px; }
}

/* Onglets */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 900px) { .tabs { margin: 0; padding: 0; } }

/* ---------- Cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  border-radius: var(--radius-l); background: var(--sunken); overflow: hidden;
}
.card-media .render { width: 76%; height: auto; transition: transform 600ms var(--ease-out); }
.card-media::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .04);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media .render { transform: translateY(-8px) scale(1.04); }
}
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.card-meta .stars { font-size: 13px; }
.swatch-dots { display: none; gap: 4px; margin-left: auto; }
.swatch-dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(13, 13, 13, .15); }
@media (min-width: 480px) { .swatch-dots { display: inline-flex; } }
.card-title { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.price s { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); }
.add-btn {
  position: relative; z-index: 2; flex: none;
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--ink); color: #fff;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast);
}
.add-btn:hover { background: var(--accent-ink); }
.add-btn:active { transform: scale(.9); }
.add-btn:disabled { background: var(--sunken); color: var(--ink-3); cursor: not-allowed; }
@media (min-width: 640px) {
  .card-title { font-size: 16.5px; }
  .price { font-size: 17px; }
  .price s { display: inline; margin-left: 6px; }
}

.fly { position: fixed; z-index: 200; pointer-events: none; will-change: transform; }

/* ---------- Étapes (section sombre) ---------- */
.dark { background: var(--ink); color: var(--on-dark); }
.dark .section-head p { color: var(--on-dark-2); }
.steps { position: relative; display: grid; gap: 28px; }
.steps-line { display: none; }
.step { position: relative; padding-left: 64px; }
.step-num {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  background: #1C1C1D; border: 1px solid var(--line-dark); color: var(--on-dark);
  transition: background-color 400ms var(--ease-out), border-color 400ms, color 400ms;
  transition-delay: calc(var(--i) * 260ms + 300ms);
}
.steps.is-in .step-num { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--on-dark-2); max-width: 26em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step { padding: 76px 0 0; }
  .steps-line {
    display: block; position: absolute; left: 23px; right: 23px; top: 23px; height: 2px;
    background: var(--line-dark); overflow: hidden;
  }
  .steps-line span {
    position: absolute; inset: 0; background: var(--accent-ink);
    transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--ease-out) 250ms;
  }
  .steps.is-in .steps-line span { transform: scaleX(1); }
}

/* FAQ */
.faq { display: grid; gap: 40px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--t-med) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }
.faq details[open] p { animation: fade-down var(--t-med) var(--ease-out); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.4fr; gap: 64px; } }

/* Produit à la une */
.feature { display: grid; gap: 40px; align-items: center; }
.feature-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-xl); background: var(--sunken); overflow: hidden; }
.feature-media::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--lilac), transparent 70%); }
.feature-media .render { position: relative; width: 66%; animation: float 7s ease-in-out infinite alternate; }
.feature h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.feature-copy > p { color: var(--ink-2); margin-top: 16px; max-width: 32em; }
.feature-list { display: grid; gap: 14px; margin: 28px 0 32px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .icon { margin-top: 2px; color: var(--accent-ink); }
.feature-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.feature-price strong { font-size: 30px; font-family: var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.feature-price s { color: var(--ink-3); }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Avis */
.reviews { display: grid; gap: 16px; }
.review { padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--sunken); }
.review footer span { display: block; color: var(--ink-3); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Newsletter */
.newsletter {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--ink); color: var(--on-dark);
  padding: 40px 24px; display: grid; gap: 28px; isolation: isolate;
}
.newsletter::before {
  content: ''; position: absolute; z-index: -1; right: -20%; top: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 31, 6, .38), transparent 65%);
}
.newsletter h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.newsletter p { color: var(--on-dark-2); margin-top: 10px; }
.nl-form { display: grid; gap: 10px; }
.nl-form label { font-size: 14px; font-weight: 600; }
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-row input {
  flex: 1 1 220px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #3A3A3B;
  background: #1A1A1B; color: #fff; font-size: 16px;
}
.nl-row input:focus { outline: none; border-color: #fff; }
.nl-row .btn { background: #fff; color: var(--ink); min-height: 52px; }
.nl-row .btn:hover { background: var(--lilac); }
.nl-msg { font-size: 14px; min-height: 1.5em; }
.nl-msg.error { color: #FF9B8A; }
.nl-msg.ok { color: #9FE3BC; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; align-items: center; padding: 64px; gap: 48px; } }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 56px; margin-top: var(--section); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--ink-3); margin-top: 14px; max-width: 26em; }
.footer-title { font-family: var(--font-body); font-size: 15px; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 6px 0; color: var(--ink-2); }
.site-footer li a:hover { color: var(--ink); }
.footer-contact li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.footer-contact .icon { width: 17px; height: 17px; }
.footer-contact li span { padding: 6px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 24px 32px; margin-top: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Tiroir du panier ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(13, 13, 13, .42); opacity: 0; transition: opacity 220ms var(--ease-in); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 240ms var(--ease-in);
  box-shadow: -24px 0 48px -24px rgba(13, 13, 13, .3);
}
.drawer.open .drawer-scrim { opacity: 1; transition: opacity 320ms var(--ease-out); }
.drawer.open .drawer-panel { transform: none; transition: transform 420ms var(--ease-out); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-head .muted { font-family: var(--font-body); font-size: 16px; font-weight: 500; }
.ship-progress { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.bar { height: 6px; border-radius: 999px; background: var(--sunken); margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent-ink); border-radius: inherit; transform-origin: left; transition: transform 500ms var(--ease-out); }
.cart-list { flex: 1; overflow-y: auto; padding: 4px 20px; overscroll-behavior: contain; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb { width: 76px; aspect-ratio: 1; border-radius: var(--radius-m); background: var(--sunken); display: grid; place-items: center; }
.cart-thumb .render { width: 80%; }
.cart-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-name { font-weight: 600; line-height: 1.3; }
.cart-name:hover { text-decoration: underline; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.stepper { display: inline-flex; align-items: center; margin-top: 8px; border: 1.5px solid var(--line); border-radius: 999px; width: max-content; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.stepper button:hover { background: var(--sunken); }
.stepper .icon { width: 16px; height: 16px; }
.stepper span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-empty { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 56px 12px; color: var(--ink-2); }
.cart-empty .icon { width: 40px; height: 40px; color: var(--ink-3); }
.drawer-foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.drawer-foot .row-between { font-size: 17px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 150; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 460px; width: max-content;
  padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px;
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in);
}
.toast.in { opacity: 1; transform: none; transition: opacity 320ms var(--ease-out), transform 420ms var(--spring); }
.toast .icon { color: #9FE3BC; width: 18px; height: 18px; }
.toast-action { border: 0; border-radius: 999px; background: #2B2B2C; color: #fff; padding: 8px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; min-height: 36px; }
.toast-action:hover { background: #3A3A3B; }
@media (min-width: 640px) { .toasts { left: auto; right: 24px; bottom: 24px; justify-items: end; } }
/* Panier ouvert : les toasts ne doivent pas masquer le bouton de commande */
body.no-scroll .toasts { bottom: auto; top: calc(72px + env(safe-area-inset-top)); }
@media (min-width: 640px) { body.no-scroll .toasts { top: auto; bottom: 24px; right: auto; left: 24px; justify-items: start; } }

/* ---------- Page boutique ---------- */
.page-head { padding: 32px 0 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.035em; }
.page-head p { color: var(--ink-2); margin-top: 8px; }

.shop { display: grid; gap: 24px; padding-bottom: 32px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.toolbar .count { font-size: 15px; color: var(--ink-2); }
.toolbar-actions { display: flex; gap: 8px; align-items: center; }
.select {
  min-height: 44px; padding: 0 38px 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  appearance: none; -webkit-appearance: none; font-size: 14.5px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.select:focus-visible { outline-offset: 2px; }
.filter-toggle { display: inline-flex; }

.filters { display: grid; gap: 28px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.check .muted { margin-left: auto; font-size: 13px; }
.range-out { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 32px; }
.filters-foot { display: flex; gap: 10px; }
.desktop-reset { display: none; }
@media (min-width: 1024px) { .desktop-reset { display: inline-flex; } }

.sheet { position: fixed; inset: 0; z-index: 90; }
.sheet .drawer-scrim { opacity: 0; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius-l) var(--radius-l) 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 240ms var(--ease-in);
}
.sheet-panel::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 12px; }
.sheet.open .drawer-scrim { opacity: 1; transition: opacity 320ms var(--ease-out); }
.sheet.open .sheet-panel { transform: none; transition: transform 420ms var(--ease-out); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { font-size: 22px; }

.empty { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 64px 16px; border-radius: var(--radius-l); background: var(--sunken); }
.empty h2 { font-size: 24px; }
.empty p { color: var(--ink-2); max-width: 28em; }

@media (min-width: 1024px) {
  .shop { grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
  .filter-toggle { display: none; }
  .sheet { position: sticky; top: calc(var(--header-h) + 24px); inset: auto; z-index: 1; display: block !important; }
  .sheet .drawer-scrim, .sheet-panel::before, .sheet-head, .sheet .filters-foot { display: none; }
  .sheet-panel { position: static; transform: none !important; max-height: none; overflow: visible; padding: 0; background: none; border-radius: 0; transition: none; }
}

/* ---------- Page produit ---------- */
.pdp { display: grid; gap: 32px; padding-bottom: 24px; }
.gallery { display: grid; gap: 12px; }
.gallery-main {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-xl);
  background: var(--sunken); overflow: hidden;
}
.gallery-main::before { content: ''; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--lilac), transparent 70%); }
.gallery-main .render { position: relative; width: 70%; }
.thumbs { display: flex; gap: 10px; }
.thumb {
  width: 76px; aspect-ratio: 1; border-radius: var(--radius-m); background: var(--sunken); border: 2px solid transparent; padding: 6px;
  transition: border-color var(--t-fast);
}
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.thumb:hover { border-color: var(--ink-3); }
.pdp-info h1 { font-size: clamp(2rem, 5vw, 2.9rem); letter-spacing: -.03em; margin-top: 10px; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--ink-2); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1E9E5A; }
.stock.low::before { background: #D98A0B; }
.stock.out::before { background: var(--ink-3); }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.pdp-price strong { font-family: var(--font-display); font-size: 36px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pdp-price s { color: var(--ink-3); }
.save { font-size: 13px; font-weight: 700; color: var(--accent-ink); background: #FCE9E6; padding: 3px 9px; border-radius: 999px; }
.pdp-desc { color: var(--ink-2); max-width: 36em; }
.opt { margin-top: 24px; }
.opt-label { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.opt-label span { font-weight: 500; color: var(--ink-3); }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.buy .stepper { margin: 0; height: 54px; }
.buy .stepper button { width: 48px; height: 48px; }
.buy .btn { flex: 1 1 180px; }
.delivery { margin-top: 28px; padding: 20px; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.delivery label { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.delivery .select { width: 100%; }
.delivery-out { font-size: 15px; color: var(--ink-2); min-height: 1.6em; }
.delivery-out strong { color: var(--ink); }
.perks { display: grid; gap: 10px; margin-top: 20px; font-size: 14.5px; color: var(--ink-2); }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks .icon { color: var(--ink); }
.specs { margin-top: 8px; width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--ink-3); width: 42%; padding-right: 16px; }
.pdp-details { display: grid; gap: 40px; margin-top: 24px; }
.pdp-details h2 { font-size: 26px; }
@media (min-width: 960px) {
  .pdp { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 24px); }
  .pdp-details { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- Commande ---------- */
.checkout { display: grid; gap: 24px; padding-bottom: 24px; align-items: start; }
.order-form { display: grid; gap: 16px; min-width: 0; }
.form-card { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); display: grid; gap: 18px; min-width: 0; }
.form-card legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.form-card legend + * { clear: both; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.req { color: var(--accent-ink); }
.hint { font-size: 14px; color: var(--ink-3); margin-top: -2px; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background-color: var(--surface); font-size: 16px; line-height: 1.4;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:hover { border-color: #CFCAC5; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13, 13, 13, .08); }
textarea.input { resize: vertical; min-height: 96px; }
select.input { padding-right: 40px; }
.input[aria-invalid="true"] { border-color: var(--accent-ink); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(197, 26, 5, .12); }
.field-error { font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.field-error:empty { display: none; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.error-summary { padding: 16px 18px; border-radius: var(--radius-m); border: 1.5px solid var(--accent-ink); background: #FDF1EF; }
.error-summary:focus { outline: none; box-shadow: 0 0 0 4px rgba(197, 26, 5, .14); }
.error-summary h2 { font-family: var(--font-body); font-size: 16px; letter-spacing: 0; margin-bottom: 6px; }
.error-summary ul { display: grid; gap: 2px; }
.error-summary a { color: var(--accent-ink); text-decoration: underline; font-weight: 500; }

.pay-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-m); border: 1.5px solid var(--ink); background: var(--bg); }
.pay-option p { flex: 1; line-height: 1.4; }
.pay-option p span { display: block; font-size: 14px; color: var(--ink-3); }
.pay-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sunken); display: grid; place-items: center; flex: none; }
.pay-check { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.pay-check .icon { width: 15px; height: 15px; stroke-width: 2.6; }

.submit-btn { position: relative; margin-top: 4px; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.submit-btn.loading .spinner { display: block; }
.submit-btn.loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { padding: 20px; border-radius: var(--radius-l); background: var(--sunken); display: grid; gap: 14px; }
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary-head h2 { font-size: 21px; letter-spacing: -.02em; }
.summary-lines { display: grid; gap: 12px; }
.summary-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14.5px; }
.summary-thumb { position: relative; width: 56px; aspect-ratio: 1; border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.summary-thumb .render { width: 80%; }
.summary-thumb b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; line-height: 20px; text-align: center; }
.summary-line strong { display: block; font-weight: 600; line-height: 1.3; }
.summary-line span { color: var(--ink-3); }
.totals { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.totals .row-between span:first-child { color: var(--ink-2); }
.total-row { padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; }
.total-row { align-items: center; }
.total-row strong { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; white-space: nowrap; }
.summary-line .tabular, .totals .tabular { white-space: nowrap; }
.free { color: #17804A; font-weight: 600; }
@media (min-width: 960px) {
  .checkout { grid-template-columns: 1.35fr 1fr; gap: 48px; }
  .summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; }
  .form-card { padding: 28px; }
}

/* Confirmation */
.success { max-width: 640px; margin: 0 auto; padding: 48px 0 24px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.success-check { width: 88px; height: 88px; }
.success-check circle { fill: var(--ink); transform-origin: center; animation: pop 600ms var(--spring) both; }
.success-check path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 420ms var(--ease-out) 380ms forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h1 { font-size: clamp(2rem, 5.5vw, 3rem); letter-spacing: -.03em; }
.success h1:focus { outline: none; }
.success > p { color: var(--ink-2); font-size: 17px; max-width: 34em; }
.order-id { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--sunken); font-weight: 600; font-variant-numeric: tabular-nums; }
.next-steps { width: 100%; text-align: left; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 20px; align-items: start; }
.next-steps li + li { border-top: 1px solid var(--line); }
.next-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); font-weight: 700; font-size: 14px; }
.next-steps li:first-child .n { background: var(--accent-ink); color: #fff; }
.next-steps p { line-height: 1.45; }
.next-steps p span { display: block; color: var(--ink-3); font-size: 14.5px; }
.success .hero-ctas { justify-content: center; margin-top: 12px; }
.demo-note { font-size: 14px; color: var(--ink-3); }

[hidden] { display: none !important; }

/* ---------- Boutique multi-univers ---------- */
.tile-warm { background: #EFE3D3; }
@media (max-width: 899px) { .bento .tile:nth-child(even):last-child { grid-column: span 2; } }
.check-group { font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin: 12px 0 2px; }
.check-group:first-child { margin-top: 0; }
.price .from { font-weight: 500; font-size: .85em; color: var(--ink-3); }

/* Variantes en texte : contenance, taille… */
.variant-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-pill {
  display: grid; justify-items: start; gap: 1px; min-width: 96px; min-height: 52px; padding: 8px 16px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; line-height: 1.25;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.variant-pill strong { font-size: 15.5px; }
.variant-pill span { font-size: 13px; color: var(--ink-3); }
.variant-pill:hover { border-color: #CFCAC5; }
.variant-pill:active { transform: scale(.97); }
.variant-pill[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Le menu a plus de liens : il s'affiche à partir de 1024 px et la recherche à partir de 1280 px */
@media (min-width: 900px) and (max-width: 1023px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .mobile-nav:not([hidden]) { display: block !important; }
}
@media (min-width: 1024px) { .nav a { padding: 8px 10px; } }
@media (min-width: 1100px) and (max-width: 1279px) { .search { display: none; } }

/* ---------- Formulaire de commande : modes, totaux, réassurance ---------- */
.label { font-weight: 600; font-size: 15px; }
.modes { display: grid; gap: 10px; }
@media (min-width: 560px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { position: relative; cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode-box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.mode-box > .icon { color: var(--ink-3); }
.mode-text { display: grid; line-height: 1.3; }
.mode-text strong { font-size: 15px; }
.mode-text span { font-size: 13px; color: var(--ink-3); }
.mode-fee { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mode:hover .mode-box { border-color: #CFCAC5; }
.mode input:checked + .mode-box { border-color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.mode input:checked + .mode-box > .icon { color: var(--ink); }
.mode input:focus-visible + .mode-box { outline: 2.5px solid var(--accent-ink); outline-offset: 3px; }
.mode input:disabled + .mode-box { opacity: .5; cursor: not-allowed; }

.order-totals { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--radius-l); background: var(--sunken); font-size: 15px; }
.order-totals .row-between span:first-child { color: var(--ink-2); }
.saving, .saving span { color: #17804A !important; font-weight: 600; }
.reassure { display: grid; gap: 10px; padding: 4px 2px 0; font-size: 14.5px; color: var(--ink-2); }
.reassure li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.reassure .icon { color: var(--ink); margin-top: 1px; }
.reassure strong { color: var(--ink); }

/* ---------- Fiche produit : galerie glissante ---------- */
.gallery-main { display: block; }
.gallery-track {
  position: relative; display: flex; width: 100%; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -4px; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; }
.gallery-slide .render { width: 70%; height: auto; }
.gallery-slide .render.photo { width: 100%; height: 100%; object-fit: cover; }
.thumb .render.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.card-media .render.photo, .cart-thumb .render.photo, .summary-thumb .render.photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.g-nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0;
  background: var(--surface); box-shadow: var(--shadow-1); display: none; place-items: center;
  transition: transform var(--t-fast) var(--ease-out);
}
.g-nav:active { transform: scale(.92); }
.g-prev { left: 14px; }
.g-prev .icon { transform: rotate(180deg); }
.g-next { right: 14px; }
.g-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.g-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(13, 13, 13, .22); transition: width 300ms var(--ease-out), background-color 300ms; }
.g-dots i.on { width: 20px; background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .g-nav { display: grid; } .g-dots { display: none; } }
.gallery-main::before { z-index: 0; left: 14%; top: 14%; pointer-events: none; }
.gallery-track { z-index: 1; }

.pdp-meta a { text-decoration: underline; text-underline-offset: 3px; }
.swatch[aria-checked="true"]::after { border-color: var(--ink); }

/* Offres groupées */
.offers { display: grid; gap: 10px; }
.offer { position: relative; cursor: pointer; display: block; }
.offer input { position: absolute; opacity: 0; pointer-events: none; }
.offer-box {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius-m); border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.offer:hover .offer-box { border-color: #CFCAC5; }
.offer:active .offer-box { transform: scale(.99); }
.offer input:checked + .offer-box { border-color: var(--accent-ink); background: #FFF7F5; box-shadow: inset 0 0 0 1px var(--accent-ink); }
.offer input:focus-visible + .offer-box { outline: 2.5px solid var(--accent-ink); outline-offset: 3px; }
.offer-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: border-color var(--t-fast); }
.offer-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent-ink); transform: scale(0); transition: transform 300ms var(--spring); }
.offer input:checked + .offer-box .offer-radio { border-color: var(--accent-ink); }
.offer input:checked + .offer-box .offer-radio::after { transform: scale(1); }
.offer-text { display: grid; line-height: 1.3; }
.offer-text strong { font-size: 16px; }
.offer-text span { font-size: 13.5px; color: #17804A; font-weight: 600; }
.offer-text span:only-of-type { color: var(--ink-3); font-weight: 500; }
.offer-price { display: grid; justify-items: end; line-height: 1.25; }
.offer-price strong { font-size: 17px; }
.offer-price s { font-size: 13px; color: var(--ink-3); }
.offer-badge { position: absolute; top: -10px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--accent-ink); color: #fff; font-size: 12px; font-weight: 700; }

.buy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.buy-row .btn { flex: 1 1 200px; }
.buy-row .stepper { margin: 0; height: 54px; }
.buy-row .stepper button { width: 48px; height: 48px; }
.soldout { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius-m); background: var(--sunken); }

.quick-order { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 6px; scroll-margin-top: calc(var(--header-h) + 12px); }
.quick-order h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); letter-spacing: -.025em; }
.quick-order > p { margin-bottom: 14px; }
.quick-order .form-card { padding: 18px; }

.review-stars { display: flex; gap: 2px; }
.review-stars span { color: var(--line); display: inline-flex; }
.review-stars span.on { color: var(--accent); }
.review-stars .icon { width: 16px; height: 16px; stroke-width: 0; }
.faq-title { font-size: clamp(2rem, 5vw, 3.1rem); }
.recap { width: 100%; text-align: left; display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--radius-l); background: var(--sunken); font-size: 15px; }
.recap ul { display: grid; gap: 6px; }

/* Bouton fixe « Commander maintenant » (mobile) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 249, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 260ms var(--ease-in);
}
.sticky-cta.show { transform: none; transition: transform 420ms var(--ease-out); }
.sticky-info { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.sticky-info strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-info span { font-weight: 700; font-size: 16px; }
.sticky-cta .btn { flex: none; min-height: 48px; }
body.has-sticky { padding-bottom: 76px; }
@media (min-width: 960px) { .sticky-cta { display: none; } body.has-sticky { padding-bottom: 0; } }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px 0 14px; border-radius: 999px;
  background: #1FAF54; color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 12px 28px -10px rgba(31, 175, 84, .55);
  transition: transform 300ms var(--ease-out), bottom 300ms var(--ease-out), background-color var(--t-fast);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #17964A; }
.wa-float:active { transform: scale(.95); }
.wa-float span { display: none; }
@media (min-width: 640px) { .wa-float { right: 24px; bottom: 24px; } .wa-float span { display: inline; } }
body.has-sticky .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.no-scroll .wa-float { display: none; }
.toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .toasts { bottom: 96px; } }
body.has-sticky .toasts { bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ---------- Effets au survol (souris uniquement) ---------- */
@media (hover: hover) and (pointer: fine) {
  /* Inclinaison 3D + reflet qui suit le curseur */
  .card-media, .tile {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 700ms var(--ease-out), box-shadow 500ms var(--ease-out);
  }
  .card-media.tilting, .tile.tilting {
    transition: transform 140ms var(--ease-out), box-shadow 300ms var(--ease-out);
    box-shadow: 0 22px 40px -24px rgba(13, 13, 13, .35);
  }
  .card-media::before, .tile::before {
    content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .5), transparent 55%);
    opacity: 0; transition: opacity 450ms var(--ease-out);
  }
  .tile-dark::before { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 55%); }
  .card-media.tilting::before, .tile.tilting::before { opacity: 1; }
  .tag { z-index: 2; }

  /* Boutons attirés par le curseur */
  .btn-dark, .btn-accent, .add-btn {
    translate: var(--tx, 0px) var(--ty, 0px);
    transition: translate 600ms var(--spring), transform var(--t-fast) var(--ease-out), background-color var(--t-fast), color var(--t-fast);
  }
  .btn.pulling, .add-btn.pulling {
    transition: translate 160ms var(--ease-out), transform var(--t-fast) var(--ease-out), background-color var(--t-fast), color var(--t-fast);
  }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-load], .js [data-reveal], .js .chip-pop { opacity: 1 !important; transform: none !important; }
}
