/* ==========================================================================
   Nexhost 3D — Système visuel « Atelier »
   Sombre par défaut, orange filament (#FF4A00), lignes franches, aucun
   box-shadow ni effet lumineux : la hiérarchie repose sur la typographie,
   les filets et les vides.
   ========================================================================== */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo-var-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  /* Fonds et encres — thème sombre par défaut */
  --bg: #0B0B0A; --bg-2: #101010; --surface: #141413; --surface-2: #1A1A18; --plate: #171716;
  --ink: #F4F0E9; --ink-2: #C3BDB2; --ink-3: #8E887C;
  --line: rgba(244, 240, 233, .10); --line-2: rgba(244, 240, 233, .20);
  /* Accent unique */
  --accent: #FF4A00; --accent-ink: #FF7A45; --accent-hover: #FF6120; --accent-soft: rgba(255, 74, 0, .13); --on-accent: #150D08;
  /* États */
  --ok: #4FBF7F; --ok-soft: rgba(79, 191, 127, .12);
  --warn: #E0A83A; --warn-soft: rgba(224, 168, 58, .12);
  --bad: #F0736B; --bad-soft: rgba(240, 115, 107, .12);
  --info: #B9B3A8; --info-soft: rgba(185, 179, 168, .10);
  /* Rayons — modérés et cohérents */
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px;
  /* Typographie */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1280px; --gut: clamp(18px, 4vw, 44px); --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F4F2ED; --bg-2: #EDEAE3; --surface: #FFFFFF; --surface-2: #F0EDE6; --plate: #E8E4DC;
  --ink: #131211; --ink-2: #46423B; --ink-3: #6D675D;
  --line: rgba(19, 18, 17, .13); --line-2: rgba(19, 18, 17, .24);
  --accent: #FF4A00; --accent-ink: #C03800; --accent-hover: #D63D00; --accent-soft: rgba(255, 74, 0, .10); --on-accent: #150D08;
  --ok: #167C4A; --ok-soft: rgba(22, 124, 74, .10);
  --warn: #8A5A00; --warn-soft: rgba(195, 130, 0, .12);
  --bad: #B32B22; --bad-soft: rgba(179, 43, 34, .10);
  --info: #5C564C; --info-soft: rgba(92, 86, 76, .08);
  color-scheme: light;
}

/* ---------------------------------------------------------------- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.62 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.04; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-stretch: 116%; }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.5rem); font-stretch: 110%; line-height: 1.08; }
h3 { font-size: 1.14rem; font-stretch: 104%; letter-spacing: -.012em; line-height: 1.28; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-1); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -70px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-2); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- Boutons ---- */
.btn {
  --b: var(--accent); --f: var(--on-accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--b); border-radius: var(--r-2);
  background: var(--b); color: var(--f); font-weight: 660; font-size: .95rem; font-stretch: 103%;
  text-decoration: none; white-space: nowrap; isolation: isolate;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .18s var(--ease);
}
.btn:hover { --b: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.995); }
.btn[disabled], .btn.is-busy { opacity: .5; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-done { --b: var(--ok); border-color: var(--ok); background: var(--ok); color: #08110C; }
.btn-accent { --b: var(--accent); --f: var(--on-accent); }
.btn-accent:hover { --b: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.btn-light { --b: var(--surface); --f: var(--ink); border-color: var(--line-2); }
.btn-ink { --b: var(--ink); --f: var(--bg); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink); border-color: var(--ink); opacity: .9; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .84rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--r-2); border: 1px solid transparent; background: transparent; color: var(--ink-2);
  text-decoration: none; transition: color .18s, background .18s, border-color .18s;
}
.icon-btn:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }
.icon-btn.is-on { color: var(--accent); }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.count {
  position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px; background: var(--accent); color: var(--on-accent);
  font: 700 .64rem/17px var(--mono); text-align: center; letter-spacing: 0;
}
.count.pop { animation: pop .45s var(--ease-out); }

/* ------------------------------------- Bandeau promo, topbar et en-tête --- */
.promo { position: relative; z-index: 41; background: var(--accent); color: #150D08; font-size: .8rem; }
.promo .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 36px; padding-right: 34px; text-align: center; }
.promo strong { font-family: var(--mono); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.promo a { color: #150D08; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.promo-x { position: absolute; right: max(var(--gut), calc((100% - var(--wrap)) / 2)); top: 50%; translate: 0 -50%; width: 26px; height: 26px; border: 0; border-radius: var(--r-1); background: transparent; color: #150D08; opacity: .7; }
.promo-x:hover { opacity: 1; background: rgba(21, 13, 8, .14); }

/* Barre utilitaire */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 36px; }
.topbar-side { display: flex; align-items: center; gap: 20px; min-width: 0; }
.topbar span, .topbar a {
  display: inline-flex; align-items: center; gap: 7px; font-size: .77rem; color: var(--ink-3);
  text-decoration: none; white-space: nowrap; transition: color .18s;
}
.topbar a:hover { color: var(--ink); }
.topbar svg { color: var(--accent); flex: none; }
.topbar .sep { width: 1px; height: 12px; background: var(--line-2); }
@media (max-width: 900px) { .topbar { display: none; } }

/* En-tête principal */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(16px); -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hdr .wrap { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 26px); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-2);
  background: var(--accent); color: var(--on-accent);
  transition: transform .3s var(--ease-out), background .2s;
}
.brand:hover .brand-mark { transform: rotate(-6deg); background: var(--accent-hover); }
.brand-name { font-weight: 840; font-stretch: 122%; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1; }
.brand-name span { color: var(--ink-3); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 9px 12px; border-radius: var(--r-1); text-decoration: none;
  font-weight: 540; font-size: .92rem; color: var(--ink-2); transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 640; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--accent);
}

/* Recherche intégrée */
.hdr-search { position: relative; display: flex; align-items: center; flex: 1 1 auto; max-width: 330px; margin-left: auto; }
.hdr-search > svg { position: absolute; left: 12px; color: var(--ink-3); pointer-events: none; }
.hdr-search .input {
  min-height: 40px; padding-left: 37px; padding-right: 44px; font-size: .87rem;
  background: var(--surface); border-color: var(--line); border-radius: var(--r-2);
}
.hdr-search .input:focus { background: var(--bg); }
.hdr-search kbd {
  position: absolute; right: 9px; display: inline-grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid var(--line-2); border-radius: var(--r-1); font-family: var(--mono); font-size: .64rem; color: var(--ink-3);
  pointer-events: none;
}
.hdr-act { display: flex; align-items: center; gap: 4px; flex: none; }
.hdr-act .hide-d { display: none; }
.hdr-act .cart-btn { margin-left: 6px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border-radius: var(--r-2); border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.cart-btn:hover { border-color: var(--ink); background: var(--surface); }
.cart-btn .cart-ic { position: relative; display: grid; place-items: center; color: var(--ink); }
.cart-btn .cart-ic .count { position: absolute; top: -7px; right: -9px; }
.cart-meta { display: grid; gap: 1px; line-height: 1.1; text-align: left; }
.cart-meta .lbl { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cart-meta b { font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; }
.cart-btn .count { position: static; }
@media (max-width: 1180px) {
  .hdr-search { max-width: 220px; }
  .cart-meta { display: none; }
  .cart-btn { padding: 0 12px; }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .nav { display: none; }
  .hdr-search { display: none; }
  .menu-btn { display: inline-grid; }
  .hdr-act { margin-left: auto; }
  .hdr-act .hide-m { display: none; }
  .hdr-act .hide-d { display: inline-grid; }
  .brand-mark { width: 34px; height: 34px; }
}

/* ------------------------------------------------------- Sections ------- */

/* ------------------------------------------------------- Sections ------- */
main { display: block; min-height: 60vh; }
.section { padding: clamp(56px, 7.5vw, 104px) 0; }
.section-sm { padding: clamp(36px, 5vw, 64px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-ink { background: #0B0B0A; color: #F4F0E9; border-block: 1px solid rgba(244, 240, 233, .1); }
:root[data-theme="light"] .section-ink { background: #111110; }
.section-ink .lead, .section-ink p { color: rgba(244, 240, 233, .72); }
.section-ink .eyebrow { color: rgba(244, 240, 233, .6); }
.section-ink .muted { color: rgba(244, 240, 233, .55); }
.section-ink .card, .section-ink .card-flat { background: #151513; border-color: rgba(244, 240, 233, .12); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(26px, 3.4vw, 44px); flex-wrap: wrap; }
.sec-head h2 { margin-top: 14px; max-width: 22ch; }
.sec-head p { color: var(--ink-2); max-width: 48ch; margin-top: 14px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.center h2 { max-width: 26ch; }
.lead { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: var(--ink-2); line-height: 1.66; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.page-head { padding: clamp(34px, 5vw, 66px) 0 clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.05rem, 4.2vw, 3.4rem); margin-top: 16px; max-width: 24ch; overflow-wrap: break-word; hyphens: auto; }
.page-head .lead { margin-top: 16px; max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs span[aria-hidden] { opacity: .4; }

/* ------------------------------------------------------------- Hero ----- */
.hero { position: relative; padding: clamp(34px, 5vw, 64px) 0 clamp(44px, 6vw, 84px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin-top: 20px; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 22px; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 4px 34px; justify-content: start; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 3px; }
.hero-facts dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hero-facts dd { margin: 0; font-size: 1.02rem; font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; }
.hero-visual { min-width: 0; }

/* Visuel produit encadré, sans ombre */
.shot { border: 1px solid var(--line-2); border-radius: var(--r-3); overflow: hidden; background: var(--surface); }
.shot-media { position: relative; aspect-ratio: 1 / 1.02; background: var(--plate); overflow: hidden; }
.shot-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.shot:hover .shot-media img { transform: scale(1.025); }
.shot-tag {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border-radius: var(--r-1); background: rgba(11, 11, 10, .74);
  color: #F4F0E9; backdrop-filter: blur(6px); font-family: var(--mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.shot-foot { display: grid; gap: 10px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.shot-foot .row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.shot-foot .nm { font-weight: 700; font-stretch: 106%; font-size: 1.05rem; }
.shot-foot .rf { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.shot-foot .price { font-size: 1.14rem; }

/* ---------------------------------------------------- Réassurance ------- */
.proof { border-block: 1px solid var(--line); background: var(--bg-2); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { display: flex; align-items: flex-start; gap: 13px; padding: 22px 22px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-ic {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--r-2);
  border: 1px solid var(--line); background: var(--surface); color: var(--accent);
}
.proof-item strong { display: block; font-size: .92rem; font-weight: 680; letter-spacing: -.005em; }
.proof-item span { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.4; margin-top: 2px; }

/* --------------------------------------------------- Cartes produit ----- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(238px, 100%), 1fr)); gap: clamp(12px, 1.5vw, 22px); }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden;
  transition: border-color .3s var(--ease), transform .4s var(--ease-out);
}
.pcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--plate); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.045); }
.pcard-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.pcard-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 8, 7, .62));
  opacity: 0; transition: opacity .32s var(--ease);
}
.pcard:hover .pcard-media::after { opacity: 1; }
.pcard-cta {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: var(--r-2);
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(8px);
  color: var(--ink); font-size: .79rem; font-weight: 620; text-decoration: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .38s var(--ease-out);
}
.pcard:hover .pcard-cta, .pcard:focus-within .pcard-cta { opacity: 1; transform: none; }
.pcard-cta svg { color: var(--accent); }
.pcard-flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px 15px; flex: 1; }
.pcard-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.pcard-colors { display: inline-flex; align-items: center; gap: 3px; }
.pcard-colors i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); }
.pcard-colors b { font-weight: 500; letter-spacing: .04em; }
.pcard-name { font-size: .99rem; font-weight: 680; font-stretch: 104%; line-height: 1.32; letter-spacing: -.012em; }
.pcard-name a { text-decoration: none; }
.pcard-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-name a:hover { color: var(--accent-ink); }
.pcard-meta { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pcard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.price { font-weight: 740; font-size: 1.04rem; font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.price small { font-weight: 500; font-size: .72rem; color: var(--ink-3); letter-spacing: 0; }
.pcard-add {
  position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 34px;
  border-radius: var(--r-2); border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.pcard-add:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pcard-add.is-done { background: var(--ok); border-color: var(--ok); color: #08110C; }
a.pcard-add { text-decoration: none; }
.wish {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--r-2); border: 1px solid transparent; background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--ink-2); backdrop-filter: blur(6px); transition: color .2s, border-color .2s, background .2s;
}
.wish:hover { color: var(--ink); border-color: var(--line-2); }
.wish.on { color: var(--accent); }
.wish.on svg path { fill: currentColor; }
.wish.beat { animation: pop .45s var(--ease-out); }

/* ------------------------------------------------ Badges et puces ------- */

/* ------------------------------------------------ Badges et puces ------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: var(--r-1);
  font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap;
}
.badge-accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge-ink { background: var(--ink); color: var(--bg); border-color: transparent; }
.pcard-flags .badge:not(.badge-ink) { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border-radius: var(--r-2); border: 1px solid var(--line-2); background: transparent;
  font-weight: 560; font-size: .88rem; text-decoration: none; color: var(--ink-2);
  transition: color .18s, border-color .18s, background .18s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-family: var(--mono); font-size: .66rem; opacity: .6; }

/* ------------------------------------------------------- Processus ------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: s; }
.step { position: relative; padding: 26px 24px 8px 0; counter-increment: s; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before {
  content: "0" counter(s); display: block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 24px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .92rem; }

/* -------------------------------------------- Bande personnalisation ---- */
.custom {
  position: relative; border-radius: var(--r-4); background: var(--bg-2);
  border: 1px solid var(--line); padding: clamp(26px, 4.5vw, 56px); overflow: hidden;
}
.custom-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.custom h2 { margin-top: 14px; max-width: 17ch; }
.custom p { color: var(--ink-2); margin-top: 16px; max-width: 50ch; }
.custom .btn-ghost { border-color: var(--line-2); }
.spec { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--surface); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); }
.spec div:first-child { border-top: 0; }
.spec dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 0; max-width: 64%; font-weight: 640; font-size: .92rem; text-align: right; line-height: 1.4; }

/* Bande accent plein */
.band { background: var(--accent); color: #150D08; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 52px) 0; flex-wrap: wrap; }
.band h2 { color: #150D08; max-width: 24ch; }
.band p { color: rgba(21, 13, 8, .82); margin-top: 10px; max-width: 46ch; }
.band .btn { --b: #150D08; --f: #FFFFFF; border-color: #150D08; }
.band .btn:hover { --b: #2A1A10; --f: #FFFFFF; border-color: #2A1A10; }
.band .btn-ghost { background: transparent; color: #150D08; border-color: rgba(21, 13, 8, .45); }
.band .btn-ghost:hover { background: rgba(21, 13, 8, .10); border-color: #150D08; color: #150D08; }
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------- Galerie -------- */
.gallery { columns: 3 280px; column-gap: 18px; }
.gal-item { break-inside: avoid; margin: 0 0 18px; border-radius: var(--r-3); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gal-item img { width: 100%; transition: transform .8s var(--ease-out); }
.gal-item:hover img { transform: scale(1.02); }
.gal-item figcaption { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.gal-item figcaption strong { display: block; font-weight: 680; letter-spacing: -.01em; }
.gal-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }

/* ------------------------------------------------------------ FAQ ------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 0;
  cursor: pointer; list-style: none; font-weight: 640; font-size: 1.02rem; letter-spacing: -.01em;
  transition: color .18s;
}
.faq summary:hover { color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: var(--r-1);
  background: linear-gradient(currentColor, currentColor) center / 11px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 11px no-repeat;
  transition: background-size .25s var(--ease), border-color .2s;
}
.faq details[open] summary::after { background-size: 11px 1px, 0 0; border-color: var(--accent); color: var(--accent); }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 72ch; font-size: .96rem; }
.faq .ans p + p { margin-top: 10px; }

/* ---------------------------------------------------- Formulaires ------ */
.form { display: grid; gap: 18px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fgrid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .label { font-size: .84rem; font-weight: 620; color: var(--ink-2); letter-spacing: .005em; }
.field .opt { color: var(--ink-3); font-weight: 450; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-2);
  background: var(--bg); color: var(--ink); font-size: .98rem;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none' stroke='%238E887C' stroke-width='1.7'%3E%3Cpath d='M1 1.2 5.5 5.7 10 1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.mono-in { font-family: var(--mono); font-size: .92rem; letter-spacing: .04em; }
.hint { font-size: .79rem; color: var(--ink-3); line-height: 1.5; }
.err-msg { font-size: .8rem; color: var(--bad); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.drop {
  position: relative; display: grid; place-items: center; gap: 8px; padding: 28px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-3); background: var(--bg-2);
  text-align: center; color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-2); background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 15px; border-radius: var(--r-1); font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.alert { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r-2); background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.alert svg { flex: none; margin-top: 1px; }
.alert-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.alert-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.alert-bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.alert-info { background: var(--info-soft); border-color: var(--line); color: var(--info); }
.alert-info svg { color: var(--accent); }

/* ------------------------------------------- Cartes et panneaux -------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: clamp(18px, 2.6vw, 28px); }
.card-flat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-3); padding: 20px; }
.card h2 { font-size: 1.3rem; font-stretch: 106%; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.split > * { min-width: 0; }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.kv { display: grid; gap: 10px; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 620; text-align: right; }
.kv .total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 1.08rem; }
.kv .total dd { font-weight: 800; }
.empty { display: grid; place-items: center; gap: 10px; padding: clamp(38px, 6vw, 72px) 20px; text-align: center; color: var(--ink-2); }
.empty-ic {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: var(--r-3);
  background: var(--surface); border: 1px solid var(--line); color: var(--accent); margin-bottom: 6px;
}
.empty h3, .empty h2 { color: var(--ink); font-size: 1.2rem; }
.skel { border-radius: var(--r-3); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: skel 1.4s linear infinite; }

/* --------------------------------------------------- Fiche produit ----- */
.pp { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(22px, 3.4vw, 56px); align-items: start; padding: clamp(22px, 3vw, 36px) 0 clamp(48px, 6vw, 88px); }
.pp-media { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.pp-main { position: relative; aspect-ratio: 1; border-radius: var(--r-3); overflow: hidden; background: var(--plate); border: 1px solid var(--line); }
.pp-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.pp-main button { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: zoom-in; }
.pp-thumbs { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pp-thumb {
  flex: none; width: 72px; height: 72px; padding: 0; border-radius: var(--r-2); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--plate); opacity: .65;
  transition: opacity .2s, border-color .2s;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.pp-info { display: grid; gap: 22px; min-width: 0; }
.pp-info h1 { font-size: clamp(1.95rem, 3.2vw, 2.9rem); }
.pp-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pp-price .price { font-size: 1.75rem; }
.pp-desc { color: var(--ink-2); white-space: pre-line; font-size: 1rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px 0 7px;
  border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface);
  font-size: .86rem; font-weight: 560; transition: border-color .18s, color .18s;
}
.swatch i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.swatch:hover { border-color: var(--ink-3); }
.swatch[aria-checked="true"] { border-color: var(--accent); color: var(--ink); }
.qty { display: inline-flex; align-items: center; height: 50px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.15rem; color: var(--ink-2); }
.qty button:hover { color: var(--accent); }
.qty input { width: 38px; border: 0; background: none; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy { display: flex; gap: 9px; flex-wrap: wrap; align-items: stretch; }
.buy .btn { flex: 1; min-height: 50px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; margin: 0; }
.specs div { padding: 13px 15px; border-top: 1px solid var(--line); }
.specs div:nth-child(-n+2) { border-top: 0; }
.specs div:nth-child(even) { border-left: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: 4px 0 0; font-weight: 640; font-size: .92rem; }
.timeline-mini { display: grid; gap: 0; border-left: 1px solid var(--line-2); margin: 0 0 0 5px; padding: 0; }
.timeline-mini li { position: relative; list-style: none; padding: 0 0 16px 20px; }
.timeline-mini li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline-mini b { display: block; font-size: .9rem; font-weight: 660; }
.timeline-mini span { color: var(--ink-3); font-size: .84rem; }
.reviews { display: grid; gap: 12px; align-content: start; }
.review { padding: 17px 19px; border-radius: var(--r-2); background: var(--surface); border: 1px solid var(--line); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; }
.stars .off { color: var(--line-2); }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 3px; }
.rate-input input { position: absolute; opacity: 0; }
.rate-input label { cursor: pointer; color: var(--line-2); transition: color .15s; }
.rate-input label svg { width: 26px; height: 26px; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: var(--accent); }
.buybar { display: none; }

/* --------------------------------------- Tiroir panier et modales ------ */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(6, 6, 5, .62); opacity: 0; transition: opacity .3s var(--ease); }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(438px, 100%);
  display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line-2);
  transform: translateX(101%); transition: transform .38s var(--ease-out);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.16rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.line-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.li-img { width: 68px; height: 68px; border-radius: var(--r-2); overflow: hidden; background: var(--plate); border: 1px solid var(--line); display: block; }
.li-img img { width: 100%; height: 100%; object-fit: cover; }
.li-name { font-weight: 650; line-height: 1.32; text-decoration: none; font-size: .95rem; }
.li-name:hover { color: var(--accent-ink); }
.li-meta { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-3); margin-top: 3px; }
.li-meta i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-2); }
.li-ctl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-sm { height: 32px; }
.qty-sm button { width: 30px; font-size: .95rem; }
.qty-sm input { width: 26px; font-size: .86rem; }
.li-right { display: grid; justify-items: end; gap: 6px; align-self: stretch; align-content: space-between; }
.freeship { display: grid; gap: 8px; font-size: .84rem; color: var(--ink-2); }
.freeship .bar { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.freeship .bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease-out); }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-box {
  pointer-events: auto; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-3);
  transform: translateY(12px); opacity: 0; transition: transform .34s var(--ease-out), opacity .26s var(--ease);
}
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-box.wide { width: min(980px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px; }
.lightbox img { width: 100%; height: auto; border-radius: var(--r-2); }

/* --------------------------------------------- Tunnel de commande ------ */
.checkout-steps { display: flex; gap: 18px; margin-bottom: 22px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.checkout-steps span.on { color: var(--accent); }
.co-block { display: grid; gap: 18px; }
.co-block + .co-block { margin-top: 18px; }
.co-title { display: flex; align-items: center; gap: 12px; }
.co-title b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--r-1); border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); font: 600 .74rem/1 var(--mono); }
.ship-opts { display: grid; gap: 9px; }
.ship-opt {
  position: relative; display: grid; grid-template-columns: auto 44px minmax(0, 1fr) auto; gap: 13px; align-items: center;
  padding: 13px 15px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface);
  cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.ship-opt:hover { border-color: var(--ink-3); }
.ship-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ship-opt input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.ship-logo { width: 44px; height: 30px; display: grid; place-items: center; border-radius: var(--r-1); background: #fff; padding: 3px; color: #12110F; }
.ship-logo img { max-height: 24px; width: auto; }
.ship-opt strong { display: block; font-weight: 640; font-size: .93rem; }
.ship-opt small { display: block; color: var(--ink-3); font-size: .78rem; }
.ship-opt .relay { grid-column: 3 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); }
.relay-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
#relayMap { height: 420px; border-radius: var(--r-2); background: var(--plate); border: 1px solid var(--line); }
.relay-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.relay-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; text-align: left; padding: 12px; border-radius: var(--r-2); border: 1px solid var(--line); background: var(--surface); }
.relay-item:hover { border-color: var(--accent); }
.relay-item small { display: block; color: var(--ink-3); font-size: .78rem; }
.order-lines { display: grid; gap: 12px; margin-bottom: 18px; }
.order-line { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.order-line .li-img { width: 50px; height: 50px; position: relative; }
.order-line .q { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font: 600 .62rem/19px var(--mono); text-align: center; }

/* ------------------------------------------------ Espace client -------- */
.acc { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding: clamp(24px, 3.4vw, 44px) 0 clamp(48px, 6vw, 88px); }
.acc-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; }
.acc-user { display: flex; align-items: center; gap: 12px; padding: 0 4px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); font-weight: 760; font-stretch: 112%; }
.acc-user strong { display: block; line-height: 1.2; font-weight: 660; }
.acc-user span { font-size: .8rem; color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-2); text-decoration: none; font-weight: 540; color: var(--ink-2); font-size: .93rem; transition: background .18s, color .18s; }
.acc-nav a:hover { background: var(--surface); color: var(--ink); }
.acc-nav a[aria-current="page"] { position: relative; background: var(--surface); color: var(--ink); font-weight: 640; }
.acc-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: var(--accent); }
.acc-nav a .n { margin-left: auto; font: 600 .66rem var(--mono); padding: 1px 6px; border-radius: var(--r-1); background: var(--accent); color: var(--on-accent); }
.acc-nav .sep { height: 1px; background: var(--line); margin: 8px 0; }
.acc-main { display: grid; gap: 20px; min-width: 0; }
.acc-main > h1 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 16px 18px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); }
.stat span { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat b { display: block; margin-top: 6px; font-size: 1.55rem; font-weight: 780; font-stretch: 110%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.olist { display: grid; gap: 10px; }
.ocard { border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ocard > summary, .ocard-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; }
.ocard > summary::-webkit-details-marker { display: none; }
.ocard-ref { font-family: var(--mono); font-size: .82rem; font-weight: 600; letter-spacing: .03em; }
.ocard-sub { color: var(--ink-3); font-size: .82rem; }
.ocard-body { padding: 18px; display: grid; gap: 16px; border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; }
.track li { list-style: none; position: relative; padding-top: 26px; font-size: .78rem; color: var(--ink-3); text-align: center; }
.track li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.track li::after { content: ""; position: absolute; top: 2px; left: 50%; translate: -50% 0; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.track li.done { color: var(--ink); font-weight: 600; }
.track li.done::before { background: var(--accent); height: 2px; top: 5.5px; }
.track li.done::after { background: var(--accent); border-color: var(--accent); }
.track li.now::after { border-color: var(--accent); }
.feed { display: grid; gap: 0; }
.feed-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 13px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-1); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.feed-item b { display: block; font-weight: 620; font-size: .92rem; }
.feed-item span { color: var(--ink-3); font-size: .82rem; }
.feed-item time { font-family: var(--mono); font-size: .66rem; color: var(--ink-3); white-space: nowrap; }
/* ------------------------------------------------- Connexion / compte --- */
.auth { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); border-bottom: 1px solid var(--line); min-height: calc(100dvh - var(--header-h)); }
.auth-art {
  position: relative; overflow: hidden; background: var(--bg-2); border-right: 1px solid var(--line);
  padding: clamp(26px, 4vw, 54px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.auth-art::before {
  content: ""; position: absolute; inset: auto -30% -45% auto; width: 78%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); pointer-events: none;
}
.auth-art > * { position: relative; }
.auth-brandline { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.auth-brandline::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-art h2 { font-size: clamp(1.7rem, 2.7vw, 2.4rem); max-width: 16ch; letter-spacing: -.03em; }
.auth-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.auth-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); align-items: start; }
.auth-steps .n { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; color: var(--accent); padding-top: 3px; }
.auth-steps b { display: block; color: var(--ink); font-weight: 640; font-size: .92rem; }
.auth-steps span { font-size: .82rem; color: var(--ink-3); }
.auth-form { display: grid; align-content: center; padding: clamp(26px, 4vw, 54px) var(--gut); }
.auth-form .inner { width: min(430px, 100%); margin-inline: auto; display: grid; gap: 20px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-2); }
.auth-tabs button {
  border: 0; background: none; padding: 9px 12px; border-radius: calc(var(--r-2) - 2px);
  font-weight: 600; font-size: .88rem; color: var(--ink-3); transition: background .18s, color .18s;
}
.auth-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); }
.auth-tabs button:hover { color: var(--ink); }
.auth-head { display: grid; gap: 8px; }
.auth-head h1 { font-size: clamp(1.7rem, 2.5vw, 2.15rem); }
.auth-head p { color: var(--ink-3); font-size: .92rem; }
.auth-alt { font-size: .86rem; color: var(--ink-3); text-align: center; }
.auth-alt a, .auth-alt button { color: var(--accent-ink); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.auth-alt a:hover, .auth-alt button:hover { text-decoration: underline; }
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 5px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-1); background: transparent; color: var(--ink-3);
}
.pw-toggle:hover { color: var(--ink); background: var(--surface-2); }
.pw-meter { display: flex; gap: 4px; margin-top: 2px; }
.pw-meter i { height: 3px; flex: 1; border-radius: 2px; background: var(--line-2); transition: background .2s; }
.pw-meter i.on { background: var(--accent); }
.pw-meter[data-level="2"] i.on { background: var(--warn); }
.pw-meter[data-level="3"] i.on { background: var(--ok); }
.oauth { display: grid; gap: 8px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: .78rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 22px var(--gut); gap: 18px; }
  .auth-art h2 { font-size: 1.4rem; max-width: none; }
  .auth-steps li:nth-child(n+3) { display: none; }
  .auth-form { padding: 24px var(--gut) 40px; }
}

.divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --------------------------------------------------- Pied de page ------ */
.ftr { margin-top: clamp(48px, 7vw, 92px); background: #0B0B0A; color: #A8A39A; border-top: 1px solid rgba(244, 240, 233, .1); padding: clamp(44px, 6vw, 76px) 0 calc(26px + env(safe-area-inset-bottom)); }
.ftr a { color: #E9E5DD; text-decoration: none; }
.ftr a:hover { color: #FF7A45; }
.ftr-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); padding-bottom: 40px; border-bottom: 1px solid rgba(244, 240, 233, .1); }
.ftr .brand-mark { background: #141413; border-color: rgba(244, 240, 233, .2); color: #FF4A00; }
.ftr .brand-name { color: #F4F0E9; }
.ftr .brand-name span { color: #8E887C; }
.ftr p { margin-top: 16px; max-width: 36ch; font-size: .9rem; color: #8E887C; line-height: 1.6; }
.ftr h2 { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: #8E887C; margin-bottom: 15px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .91rem; }
.news { display: flex; gap: 8px; margin-top: 20px; max-width: 360px; }
.news .input { background: rgba(244, 240, 233, .05); border-color: rgba(244, 240, 233, .16); color: #F4F0E9; min-height: 44px; }
.news .input::placeholder { color: #8E887C; }
.news .input:focus { border-color: #FF4A00; background: rgba(244, 240, 233, .07); }
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .8rem; color: #8E887C; }
.ftr-bot .mono { color: #8E887C; }
.ftr-bot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pay-row { display: flex; gap: 8px; align-items: center; }

/* ---------------------------------------------------------- Toasts ----- */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 22px; translate: -50% 0; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: var(--r-2);
  background: var(--ink); color: var(--bg); border: 1px solid var(--line-2); font-size: .9rem; font-weight: 520;
  animation: toastin .32s var(--ease-out);
}
.toast.err { background: var(--bad); color: #120B0A; border-color: transparent; }
.toast .t-ic { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.toast.err .t-ic { background: rgba(0, 0, 0, .2); }
.toast.out { animation: toastout .28s var(--ease) forwards; }

/* ----------------------------------------------- Texte riche / légal --- */
.prose { max-width: 74ch; min-width: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.72; }
.prose h2 { font-size: 1.42rem; color: var(--ink); margin: 2.1em 0 .6em; font-stretch: 106%; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 1.06rem; margin: 1.6em 0 .5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-1); padding: 1px 5px; color: var(--ink); overflow-wrap: anywhere; }
.prose > p.muted:first-child { color: var(--ink-3); font-size: .94rem; border-left: 2px solid var(--accent); padding-left: 14px; }
.prose .legal-note { margin: 22px 0; padding: 15px 17px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r-2); background: var(--bg-2); font-size: .94rem; }
.prose .legal-note > strong { display: block; margin-bottom: 8px; }
.prose .legal-note p { margin-bottom: .6em; }
.prose .legal-note > :last-child { margin-bottom: 0; }
.prose .legal-note ul { margin-bottom: 0; }
.prose .legal-table { margin: 20px 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); -webkit-overflow-scrolling: touch; }
.prose .legal-table table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.prose .legal-table th, .prose .legal-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose .legal-table th { background: var(--surface-2); color: var(--ink); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); font-weight: 600; }
.prose .legal-table tr:last-child td { border-bottom: 0; }
.prose .legal-form { margin: 20px 0; padding: 17px; border: 1px dashed var(--line-2); border-radius: var(--r-2); background: var(--surface); }
.prose .legal-form p { margin-bottom: 12px; overflow-wrap: anywhere; }
.prose .legal-form p:last-child { margin-bottom: 0; }
.legal-id { display: grid; gap: 1px; border-radius: var(--r-2); overflow: hidden; background: var(--line); border: 1px solid var(--line); margin: 20px 0; }
.legal-id div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 16px; background: var(--surface); font-size: .9rem; }
.legal-id dt { color: var(--ink-3); }
.legal-id dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* ------------------------------------- Barre de filtres (catalogue) ----- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.toolbar .chips { flex: 1 1 auto; min-width: 0; }
.toolbar-tools { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; justify-content: flex-end; }
.toolbar-tools .input, .toolbar-tools .select { min-height: 42px; font-size: .9rem; }
.toolbar-tools .select { width: auto; min-width: 150px; }
@media (max-width: 640px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-tools { max-width: none; flex: 1 1 auto; }
  .toolbar-tools .input { flex: 1; }
  .toolbar-tools .select { min-width: 0; width: 42%; }
}

/* ------------------------------------------- Sommaire des pages légales et d'aide --- */

.legal-nav { min-width: 0; max-width: 100%; padding: 18px; }
.legal-nav h2 { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); margin: 0 0 12px; }
.legal-nav ul { min-width: 0; max-width: 100%; list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.legal-nav a { display: block; padding: 8px 11px; border-radius: var(--r-1); color: var(--ink-2); text-decoration: none; font-size: .89rem; line-height: 1.38; transition: background .16s, color .16s; }
.legal-nav a:hover { background: var(--surface-2); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--surface-2); color: var(--accent-ink); font-weight: 600; }
@media (max-width: 900px) {
  .legal-nav { padding: 12px; }
  .legal-nav ul { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 5px; padding-bottom: 2px; scrollbar-width: none; }
  .legal-nav ul::-webkit-scrollbar { display: none; }
  .legal-nav a { white-space: nowrap; padding: 8px 13px; border: 1px solid var(--line); }
}

/* -------------------------------------------------------- Animations --- */
.js .reveal { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .reveal:nth-child(2) { transition-delay: .05s; }
.js .reveal:nth-child(3) { transition-delay: .1s; }
.js .reveal:nth-child(4) { transition-delay: .15s; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes skel { to { background-position: -200% 0; } }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastout { to { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; translate: none !important; }
  .pcard:hover, .btn:hover { transform: none; }
}

/* ------------------------------------------------------ Tablette ------- */
@media (max-width: 1080px) {
  .nav a { padding: 10px 9px; font-size: .89rem; }
  .proof .wrap { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ftr-top { grid-template-columns: 1fr 1fr 1fr; }
  .ftr-top > :first-child { grid-column: 1 / -1; }
  .split { grid-template-columns: minmax(0, 1fr) 330px; }
  .custom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  [data-stack] { grid-template-columns: 1fr !important; }
  :root { --header-h: 62px; }
  .nav, .hdr-act .hide-m { display: none; }
  .menu-btn { display: inline-grid; }
  .hdr .wrap { justify-content: space-between; }
  .cart-btn .lbl { display: none; }
  .cart-btn { padding: 0 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .hero h1 { max-width: 22ch; }
  .shot-media { aspect-ratio: 4 / 3; }
  .pp { grid-template-columns: 1fr; }
  .pp-media { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .acc { grid-template-columns: 1fr; }
  .acc-nav { position: static; display: flex; overflow-x: auto; gap: 5px; padding-bottom: 6px; margin: 0 calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-user, .acc-nav .sep { display: none; }
  .acc-nav a { flex: none; padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--r-2); white-space: nowrap; }
  .acc-nav a[aria-current="page"] { border-color: var(--accent); }
  .acc-nav a[aria-current="page"]::before { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .relay-layout { grid-template-columns: 1fr; }
  #relayMap { height: 260px; }
}

/* ------------------------------------------------------ Téléphone ------ */
/* Barre d'onglets mobile : uniquement sur petit écran */
.tabbar { display: none; }
@media (max-width: 640px) {
  body { font-size: 15.5px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-buybar { padding-bottom: calc(64px + 72px + env(safe-area-inset-bottom)); }
  h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .btn { white-space: normal; text-align: center; }
  .promo .wrap { font-size: .76rem; min-height: 36px; justify-content: flex-start; text-align: left; }
  .promo a { white-space: nowrap; }
  .pp-thumbs { scrollbar-width: none; }
  .shot-media { aspect-ratio: 5 / 4; }
  .hdr-act .icon-btn.hide-s { display: none; }
  .hero { padding-top: 22px; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .hero-facts dd { font-size: .92rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .proof .wrap { grid-template-columns: 1fr; }
  .proof-item { border-left: 0 !important; padding: 15px 0 !important; }
  .proof-item + .proof-item { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 20px 0 6px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step::before { margin-bottom: 10px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard-body { padding: 12px 12px 13px; gap: 4px; }
  .pcard-name { font-size: .9rem; }
  .pcard-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .pcard-add { width: 100%; }
  .pcard-cat { font-size: .56rem; }
  .price { font-size: .98rem; }
  .wish { width: 32px; height: 32px; top: 6px; right: 6px; }
  .fgrid { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .ftr-top > :first-child { grid-column: 1 / -1; }
  .ftr-bot { flex-direction: column; gap: 10px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row .stat:first-child { grid-column: 1 / -1; }
  .ocard > summary, .ocard-head { grid-template-columns: minmax(0, 1fr) auto; }
  .ocard > summary .price { grid-column: 2; grid-row: 1; }
  .track li { font-size: .64rem; }
  .legal-id div { grid-template-columns: 1fr; gap: 2px; }
  .ship-opt { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ship-logo { display: none; }
  .ship-opt .relay { grid-column: 1 / -1; }
  .band .wrap { flex-direction: column; align-items: flex-start; }
  .band-actions { width: 100%; }
  .band-actions .btn { flex: 1 1 100%; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: saturate(1.2) blur(16px); -webkit-backdrop-filter: saturate(1.2) blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; color: var(--ink-3); text-decoration: none; font-size: .62rem; font-weight: 600; letter-spacing: .01em; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"] svg { color: var(--accent); }
  .tabbar .count { top: 0; right: calc(50% - 21px); }
  .buybar {
    position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 44;
    display: flex; align-items: center; gap: 12px; padding: 11px var(--gut);
    background: var(--surface); border-top: 1px solid var(--line);
    transform: translateY(160%); transition: transform .34s var(--ease-out);
  }
  .buybar:not(.show) { visibility: hidden; opacity: 0; }
  .buybar.show { transform: none; }
  .buybar .btn { flex: 1; min-height: 46px; }
  .buybar .price { font-size: 1.05rem; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .modal { align-items: end; padding: 0; }
  .modal-box { width: 100%; max-height: 92dvh; border-radius: var(--r-3) var(--r-3) 0 0; transform: translateY(30px); }
  .page-head { padding-top: 24px; }
  .sec-head { align-items: flex-start; }
}

/* ------------------------------------- Menu mobile (plein écran) ------- */
.mnav {
  position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; background: var(--bg);
  padding: 0 var(--gut) calc(22px + env(safe-area-inset-bottom));
  transform: translateY(-6px); opacity: 0; visibility: hidden;
  transition: opacity .26s var(--ease), transform .34s var(--ease-out), visibility .26s;
  overflow-y: auto;
}
.mnav.open { opacity: 1; transform: none; visibility: visible; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; border-bottom: 1px solid var(--line); }
.mnav nav { display: grid; margin-top: 6px; }
.mnav nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 17px 0;
  border-bottom: 1px solid var(--line); font-size: 1.42rem; font-weight: 740; font-stretch: 110%;
  letter-spacing: -.025em; text-decoration: none;
}
.mnav nav a span { font-family: var(--mono); font-size: .66rem; color: var(--ink-3); font-weight: 400; letter-spacing: .1em; }
.mnav-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 9px; }

/* Tablette : visuel contenu, grille sur 3 colonnes */
@media (min-width: 641px) and (max-width: 900px) {
  .hero-visual { max-width: 520px; width: 100%; }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ========================================================= Premium ===== */
.premium-page { --pn: var(--bg); }
.premium-hero { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.premium-hero .wrap { max-width: 780px; }
.premium-crown { display: none; }
.premium-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.premium-hero h1::after { content: ""; display: block; width: 52px; height: 2px; background: var(--accent); margin-top: 18px; }
.premium-tagline { font-size: clamp(1.04rem, 1.8vw, 1.28rem); color: var(--ink-2); margin: 18px 0 8px; font-weight: 600; }
.premium-lead { color: var(--ink-3); max-width: 62ch; margin-bottom: 24px; }
.premium-hero-benefits { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; max-width: 560px; }
.premium-hero-benefits li { display: flex; align-items: center; gap: 11px; font-size: .95rem; color: var(--ink-2); }
.premium-ic { color: var(--accent); display: inline-grid; place-items: center; }
.btn-premium { --b: var(--accent); --f: #fff; border-color: var(--accent); }
.btn-premium:hover { --b: var(--accent-hover); }
#premium { padding: clamp(36px, 5vw, 68px) 0; }
#premium .wrap { max-width: 1200px; }
.prem-section { margin-bottom: clamp(40px, 6vw, 80px); }
.prem-section h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 12px; }
.prem-section .lead { color: var(--ink-2); max-width: 62ch; margin: 0 0 28px; }
.prem-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.prem-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3);
  padding: 28px 24px; display: grid; gap: 16px; position: relative;
  transition: border-color .25s var(--ease), transform .3s var(--ease-out);
}
.prem-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.prem-card.featured { border-color: var(--accent); }
.prem-badge { position: absolute; top: -11px; left: 22px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .72rem; padding: 5px 12px; border-radius: var(--r-1); white-space: nowrap; letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }
.prem-card h3 { font-size: 1.2rem; }
.prem-price { font-size: 2.2rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; }
.prem-price small { font-size: .9rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.prem-subprice { color: var(--accent-ink); font-size: .9rem; font-weight: 600; }
.prem-saving { color: var(--ink-3); font-size: .86rem; }
.prem-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.prem-features li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); font-size: .9rem; }
.prem-features li::before { content: ""; width: 13px; height: 13px; margin-top: 5px; flex: none; border-radius: 3px; border: 1px solid var(--accent); background: var(--accent-soft); }
.prem-card .btn { width: 100%; justify-content: center; }
.prem-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; font-size: .9rem; }
.prem-table th, .prem-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; }
.prem-table th { color: var(--ink-3); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); font-weight: 500; }
.prem-table .highlight { color: var(--accent-ink); font-weight: 700; }
.prem-calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 26px 24px; }
.prem-calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.prem-calc label { display: block; color: var(--ink-3); font-size: .86rem; margin-bottom: 6px; }
.prem-calc input { width: 100%; padding: 10px 13px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: .96rem; }
.prem-calc input:focus { outline: none; border-color: var(--accent); }
.prem-calc .result { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-2); padding: 18px; margin-top: 14px; }
.prem-calc .result strong { color: var(--accent-ink); font-size: 1.3rem; }
.prem-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.prem-why .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 22px; }
.prem-why .card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.prem-why .card p { color: var(--ink-2); margin: 0; font-size: .92rem; }
.prem-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.prem-trust .item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 18px; }
.prem-trust .item strong { display: block; margin-bottom: 4px; font-size: .94rem; }
.prem-trust .item span { color: var(--ink-3); font-size: .86rem; }
.prem-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 15px 18px; margin-bottom: 9px; }
.prem-faq summary { cursor: pointer; font-weight: 620; list-style: none; }
.prem-faq summary::-webkit-details-marker { display: none; }
.prem-faq .ans { color: var(--ink-2); margin-top: 10px; line-height: 1.6; font-size: .92rem; }
.prem-cta-final { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-4); padding: clamp(32px, 5vw, 60px) 24px; text-align: center; }
.prem-cta-final h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.prem-cta-final p { color: var(--ink-2); max-width: 54ch; margin: 12px auto 24px; }
.prem-cta-final .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .prem-calc .row { grid-template-columns: 1fr; } }

/* --------------------------------------------- Ajustements de robustesse --- */
.prose, .li-name, .shot-foot .nm, .pcard-name, .ocard-sub, .acc-user span { overflow-wrap: anywhere; }
.prem-section, .legal-table { max-width: 100%; }
.prem-section { overflow-x: auto; }
@media (max-width: 640px) {
  .pp-price .price { font-size: 1.5rem; }
  .pp-info h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .prem-table { font-size: .84rem; }
  .prem-table th, .prem-table td { padding: 10px; }
  .gallery { columns: 1; }
  .custom { padding: 22px 18px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .mnav nav a { font-size: 1.24rem; padding: 14px 0; }
  .drawer-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
/* ==========================================================================
   V2 — Disposition éditoriale, rail de sélection, popup de bienvenue,
   animations de révélation et micro-interactions.
   ========================================================================== */

/* ------------------------------------------------- Jetons complémentaires */
:root {
  --surface-3: #1E1E1C;
  --inverse-bg: #0B0B0A;
  --inverse-ink: #F4F0E9;
  --r-show: 14px;
  --d: 0ms;
}
:root[data-theme="light"] {
  --surface-3: #E7E3DB;
}

/* ------------------------------------------------------- Bandeau défilant */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 16px; padding: 12px 26px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.marquee span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ Hero v2 ---- */
.hero-v2 { position: relative; padding: clamp(30px, 4vw, 58px) 0 clamp(38px, 5vw, 70px); overflow: hidden; }
.hero-v2 .wrap { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.hero-v2 h1 { margin-top: 22px; font-size: clamp(2.4rem, 4.7vw, 3.75rem); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; }
.hero-v2 h1 em { position: relative; font-style: normal; color: var(--accent); white-space: nowrap; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-3); }
.hero-trust svg { color: var(--accent); }

/* Collage produit : image principale + détail superposé */
.collage { position: relative; padding: 0 0 44px 0; }
.collage-main { border: 1px solid var(--line-2); border-radius: var(--r-show); overflow: hidden; background: var(--plate); aspect-ratio: 4 / 3.4; }
.collage-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.collage:hover .collage-main img { transform: scale(1.02); }
.collage-detail {
  position: absolute; right: 0; bottom: 0; width: 36%; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--surface);
}
.collage-detail img { width: 100%; height: 100%; object-fit: cover; }
.collage-tag {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border-radius: var(--r-1); background: rgba(11, 11, 10, .78);
  color: #F4F0E9; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
}
.collage-meta {
  position: absolute; left: 0; bottom: 0; display: grid; gap: 2px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-3) 0 var(--r-3) 0; background: var(--surface);
  max-width: 58%;
}
.collage-meta .rf { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.collage-meta .nm { font-weight: 700; font-size: .96rem; letter-spacing: -.01em; line-height: 1.25; }
.collage-meta .pr { font-weight: 700; font-size: .9rem; color: var(--accent-ink); }
@media (max-width: 900px) {
  .hero-v2 .wrap { grid-template-columns: 1fr; }
  .collage { padding-bottom: 38px; }
  .collage-main { aspect-ratio: 5 / 4; }
}
@media (max-width: 640px) {
  .hero-v2 h1 { font-size: clamp(2.1rem, 9.6vw, 2.9rem); max-width: none; }
  .collage-detail { width: 46%; }
}

/* --------------------------------------------------- Rail de sélection --- */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: max(238px, calc((100% - 3 * 16px) / 4 - 2px));
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 6px; }
.rail-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-2);
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); transition: background .2s, border-color .2s, color .2s;
}
.rail-btn:hover { background: var(--surface); border-color: var(--ink); }
.rail-btn[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 1080px) { .rail { grid-auto-columns: max(218px, calc((100% - 16px) / 2 - 2px)); } }
@media (max-width: 640px) { .rail { grid-auto-columns: 76%; gap: 12px; } }

/* ------------------------------------------------ Sections éditoriales -- */
.split-edit { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(26px, 4.5vw, 72px); align-items: start; }
.split-edit > .side { position: sticky; top: calc(var(--header-h) + 24px); }
.split-edit h2 { max-width: 18ch; }
@media (max-width: 900px) { .split-edit { grid-template-columns: 1fr; } .split-edit > .side { position: static; } }

.idx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.idx li {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 20px 0;
  border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease), background .3s;
}
.idx li:hover { padding-left: 8px; }
.idx .n { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--accent); padding-top: 3px; }
.idx h3 { font-size: 1.06rem; }
.idx p { color: var(--ink-3); font-size: .92rem; margin-top: 6px; }

/* Panneaux matières */
.mats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.mat {
  border: 1px solid var(--line); border-radius: var(--r-4); background: var(--surface);
  padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 14px;
  transition: border-color .25s var(--ease), transform .3s var(--ease-out);
}
.mat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mat-head h3 { font-size: 1.42rem; letter-spacing: -.03em; }
.mat-head span { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mat p { color: var(--ink-2); font-size: .93rem; }
.mat-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.mat-dots i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); }
.mat-facts { display: grid; gap: 6px; margin-top: 2px; }
.mat-facts span { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--ink-3); }
.mat-facts svg { color: var(--accent); flex: none; }
@media (max-width: 760px) { .mats { grid-template-columns: 1fr; } }

/* Bande de chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats div { padding: 22px 20px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; }
.stats span { display: block; margin-top: 6px; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Galerie asymétrique (accueil) */
.gal-duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(12px, 2vw, 20px); }
.gal-duo .gal-item { margin: 0; height: 100%; }
.gal-duo .col { display: grid; gap: clamp(12px, 2vw, 20px); align-content: start; }
.gal-duo .gal-item img { height: 100%; object-fit: cover; }
.gal-duo .col .gal-item img { aspect-ratio: 4 / 3; height: auto; }
@media (max-width: 760px) { .gal-duo { grid-template-columns: 1fr; } }

/* --------------------------------------------- Popup de bienvenue ------- */
.welcome {
  position: fixed; z-index: 96; right: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vw, 28px);
  width: min(400px, calc(100% - 24px)); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r-4); padding: 22px 22px 20px; overflow: hidden;
  transform: translateY(18px) scale(.99); opacity: 0; visibility: hidden;
  transition: opacity .32s var(--ease), transform .42s var(--ease-out), visibility .32s;
}
.welcome::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--accent); }
.welcome.open { opacity: 1; transform: none; visibility: visible; }
.welcome-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.welcome h2 { font-size: 1.32rem; letter-spacing: -.025em; line-height: 1.15; margin-top: 10px; }
.welcome p { color: var(--ink-2); font-size: .92rem; margin-top: 8px; }
.welcome-x { flex: none; width: 32px; height: 32px; border-radius: var(--r-2); border: 1px solid transparent; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.welcome-x:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }
.code-box { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 6px 6px 6px 14px; border: 1px dashed var(--line-2); border-radius: var(--r-2); background: var(--bg-2); }
.code-box b { font-family: var(--mono); font-size: .96rem; letter-spacing: .16em; text-transform: uppercase; flex: 1; overflow-wrap: anywhere; }
.code-box .btn { min-height: 38px; padding: 0 14px; font-size: .82rem; }
.welcome-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.welcome-foot .hint { flex: 1 1 130px; }
@media (min-width: 641px) { .welcome { bottom: clamp(20px, 3vw, 28px); } }
@media (max-width: 640px) {
  .welcome { right: 10px; left: 10px; width: auto; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 18px; }
  .welcome h2 { font-size: 1.16rem; }
}

/* ------------------------------------------------- Micro-interactions ---- */
.link-sweep { position: relative; text-decoration: none; }
.link-sweep::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease);
}
.link-sweep:hover::after { transform: scaleX(1); }
.accent-line { width: 46px; height: 2px; background: var(--accent); margin-top: 18px; }
.js .accent-line { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) .1s; }
.js .accent-line.in { transform: scaleX(1); }

/* Révélation décalée des enfants (le délai est posé en JS via --d) */
.js .reveal { transition-delay: var(--d, 0ms); }
.js .reveal-img { opacity: 0; }
.js .reveal-img img { clip-path: inset(0 0 100% 0); transform: scale(1.03); transition: clip-path 1s var(--ease-out), transform 1.2s var(--ease-out), opacity .6s; }
.js .reveal-img.in { opacity: 1; }
.js .reveal-img.in img { clip-path: inset(0 0 0 0); transform: none; }

/* En-tête : léger tassement au défilement */
.hdr .wrap { transition: height .25s var(--ease); }
.hdr.scrolled .wrap { height: calc(var(--header-h) - 8px); }

/* Compteur de panier : pulsation discrète à l'ajout */
@keyframes bump { 0%, 100% { transform: none; } 35% { transform: translateY(-2px) scale(1.12); } }
.count.pop { animation: bump .45s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .js .reveal-img img { clip-path: none; transform: none; }
  .hdr.scrolled .wrap { height: var(--header-h); }
}

/* ------------------------------------------------ Filtres catalogue v3 -- */
.cat-layout { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: clamp(22px, 3.2vw, 52px); align-items: start; }
.cat-side {
  position: sticky; top: calc(var(--header-h) + 26px); display: grid; gap: 24px;
  padding-right: clamp(14px, 2vw, 24px); border-right: 1px solid var(--line); align-self: start;
}
.cat-block { display: grid; gap: 10px; min-width: 0; }
.cat-block > h2 {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin: 0;
}
.cat-reset {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font); font-size: .76rem;
  font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--accent-ink);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.cat-reset:hover { color: var(--accent); }
.cat-cats { display: grid; gap: 1px; min-width: 0; }
.cat-cats a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-1); text-decoration: none; font-size: .91rem;
  color: var(--ink-2); transition: background .16s, color .16s;
}
.cat-cats a:hover { background: var(--surface); color: var(--ink); }
.cat-cats a.on { background: var(--surface); color: var(--ink); font-weight: 640; }
.cat-cats a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--accent); }
.cat-cats .n { font-family: var(--mono); font-size: .64rem; color: var(--ink-3); }
.cat-cats a.on .n { color: var(--accent-ink); }
.cat-search { position: relative; display: flex; align-items: center; }
.cat-search svg { position: absolute; left: 11px; color: var(--ink-3); pointer-events: none; }
.cat-search .input { padding-left: 35px; }
.cat-tools { display: grid; gap: 10px; min-width: 0; }
.cat-side .field > label { font-size: .74rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.cat-side .input, .cat-side .select { min-height: 40px; font-size: .88rem; }
.cat-switch {
  display: flex; align-items: center; gap: 10px; font-size: .87rem; color: var(--ink-2);
  cursor: pointer; user-select: none; padding: 2px 0;
}
.cat-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cat-switch i {
  width: 32px; height: 18px; border-radius: 99px; background: var(--line); position: relative;
  transition: background .2s; flex: none;
}
.cat-switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink-3); transition: transform .22s var(--ease), background .2s;
}
.cat-switch input:checked + i { background: var(--accent); }
.cat-switch input:checked + i::after { transform: translateX(14px); background: #fff; }
.cat-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
.cat-note { display: grid; gap: 8px; }
.cat-note strong { font-size: .92rem; font-weight: 660; }
.cat-note p { font-size: .82rem; color: var(--ink-3); }
.cat-count { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; gap: 18px; }
  .cat-side { position: static; padding-right: 0; border-right: 0; gap: 14px; }
  .cat-block:first-child { gap: 8px; }
  .cat-cats { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .cat-cats::-webkit-scrollbar { display: none; }
  .cat-cats a { flex: none; border: 1px solid var(--line-2); border-radius: var(--r-2); white-space: nowrap; padding: 8px 12px; }
  .cat-cats a.on { border-color: var(--accent); }
  .cat-cats a.on::before { display: none; }
  .cat-tools { grid-template-columns: minmax(0, 1fr) 44%; gap: 8px; align-items: end; }
  .cat-tools .field > label { display: none; }
  .cat-switch { grid-column: 1 / -1; margin-top: 2px; }
  .cat-note { display: none; }
}

/* ------------------------------------------- Fiche produit : colonnes --- */

/* ------------------------------------------- Fiche produit : colonnes --- */
.pp-v2 { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 420px); gap: clamp(18px, 2.6vw, 34px); align-items: start; padding: clamp(20px, 3vw, 34px) 0 clamp(44px, 6vw, 84px); }
.pp-rail { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 8px; }
.pp-rail .pp-thumb { width: 84px; height: 84px; }
.pp-stage { position: sticky; top: calc(var(--header-h) + 18px); }
.pp-panel { min-width: 0; display: grid; gap: 20px; }
@media (max-width: 1080px) {
  .pp-v2 { grid-template-columns: 84px minmax(0, 1fr) minmax(0, 360px); }
}
@media (max-width: 900px) {
  .pp-v2 { grid-template-columns: 1fr; }
  .pp-rail { position: static; order: 2; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .pp-rail::-webkit-scrollbar { display: none; }
  .pp-stage { position: static; order: 1; }
  .pp-panel { order: 3; }
}

/* Grand logo de pied de page */
.ftr-mark {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(244, 240, 233, .1); flex-wrap: wrap;
}
.ftr-mark strong {
  font-size: clamp(2.2rem, 7.6vw, 6rem); font-weight: 850; font-stretch: 122%; letter-spacing: -.045em;
  line-height: .86; color: #22221F; user-select: none;
}
.ftr-mark strong span { color: var(--accent); }
.ftr-mark em { font-style: normal; font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #5F5B53; }

/* --- Ajustements fiche produit et cartes (v2) --- */
.pp-v2.pp-solo { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.pp-v2.pp-solo .pp-panel { grid-column: 2; }
.pp-v2.pp-solo .pp-stage { grid-column: 1; }
.pp-rail { max-height: calc(100vh - var(--header-h) - 44px); overflow-y: auto; padding-right: 2px; }
.pp-rail .pp-thumb { width: 100%; height: 76px; }
.pp-panel h1 { font-size: clamp(1.7rem, 2.7vw, 2.4rem); }
@media (max-width: 900px) {
  .pp-v2.pp-solo { grid-template-columns: 1fr; }
  .pp-v2.pp-solo .pp-panel, .pp-v2.pp-solo .pp-stage { grid-column: auto; }
  .pp-rail { max-height: none; overflow-x: auto; overflow-y: hidden; }
  .pp-rail .pp-thumb { width: 72px; height: 72px; flex: none; }
}
/* Bouton « Ajouter » des cartes : discret, l'accent reste aux CTA principaux */
.pcard .pcard-add.btn { --b: var(--surface-2); --f: var(--ink); border-color: var(--line-2); }
.pcard .pcard-add.btn:hover { --b: var(--accent); --f: var(--on-accent); border-color: var(--accent); }
.pcard .pcard-add.btn-ghost { --b: transparent; }
.pcard .pcard-add.btn-ghost:hover { --b: transparent; --f: var(--ink); border-color: var(--ink); background: transparent; }
@media (prefers-reduced-motion: reduce) { .pp-rail { max-height: none; } }

/* --- Correctifs de débordement et finitions (v2) --- */
.cat-layout > *, .pp-v2 > *, .split > *, .split-edit > *, .hero-v2 .wrap > *,
.mats > *, .stats > *, .auth > *, .gal-duo > *, .ftr-top > *, .cat-side,
.cat-tools, .cat-cats, .pp-rail, .pp-stage, .pp-panel, .card-flat, .field { min-width: 0; }
.cat-cats { max-width: 100%; }
.cat-side > *, .cat-tools > *, .pp-panel > *, .cat-layout > * > * { min-width: 0; }
.pp-rail { max-width: 100%; }

/* Pages Premium : contenu aligné sur la grille du site */
.prem-section { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; padding-inline: 0; }
.prem-features li::before {
  content: "✓"; display: grid; place-items: center; width: 15px; height: 15px; margin-top: 3px;
  flex: none; border: 0; background: none; color: var(--accent); font-size: .72rem; font-weight: 700;
}

/* État vide : action principale en accent */
.empty .btn:not(.btn-ghost):not(.btn-accent) { --b: var(--accent); --f: var(--on-accent); border-color: var(--accent); }
.empty .btn:not(.btn-ghost):not(.btn-accent):hover { --b: var(--accent-hover);}

/* Espace client : panneau latéral plus équilibré */
.auth-art { justify-content: center; }
.auth-form button.btn:not(.btn-ghost):not(.link) { --b: var(--accent); --f: var(--on-accent); border-color: var(--accent); }
.auth-form button.btn:not(.btn-ghost):not(.link):hover { --b: var(--accent-hover); }

/* Accueil mobile : le collage ne se chevauche plus */
@media (max-width: 640px) {
  .collage { padding-bottom: 0; }
  .collage-detail { top: 10px; bottom: auto; right: 10px; width: 38%; }
  .collage-meta { position: static; max-width: none; margin-top: 10px; border-radius: var(--r-3); }
  .marquee span { padding: 10px 18px; font-size: .62rem; }
  .rail-btn { width: 36px; height: 36px; }
  .sec-head .rail-nav { order: 3; }
}
@media (max-width: 900px) { .auth-art { min-height: 260px; padding: 26px var(--gut); } }

/* ============================================ Panier détaillé (v3) ====== */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr); gap: clamp(22px, 3.2vw, 46px); align-items: start; }
.cart-list { border-top: 1px solid var(--line); }
.cart-list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 0 12px; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.cart-list-head button {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-3);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.cart-list-head button:hover { color: var(--bad); }
.cart-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px;
  align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb {
  width: 92px; aspect-ratio: 1; border-radius: var(--r-2); overflow: hidden;
  background: var(--plate); border: 1px solid var(--line); display: block;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; display: grid; gap: 5px; }
.cart-name { font-weight: 660; font-size: .98rem; text-decoration: none; line-height: 1.3; }
.cart-name:hover { color: var(--accent-ink); }
.cart-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .79rem; color: var(--ink-3); }
.cart-meta i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); }
.cart-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.cart-price { text-align: right; display: grid; gap: 4px; align-content: center; }
.cart-price .unit { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cart-price .line { font-weight: 740; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.cart-remove {
  justify-self: end; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: var(--r-2); background: transparent; color: var(--ink-3);
  transition: color .18s, border-color .18s, background .18s;
}
.cart-remove:hover { color: var(--bad); border-color: var(--line-2); background: var(--surface); }
.cart-summary {
  position: sticky; top: calc(var(--header-h) + 22px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-3); padding: clamp(18px, 2.4vw, 26px);
  display: grid; gap: 16px;
}
.cart-summary h2 { font-size: 1.16rem; }
.cart-sum { display: grid; gap: 10px; margin: 0; }
.cart-sum > div { display: flex; justify-content: space-between; gap: 14px; font-size: .9rem; color: var(--ink-2); }
.cart-sum dt { color: var(--ink-3); }
.cart-sum dd { margin: 0; font-weight: 620; color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-sum .total { padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.cart-sum .total dd { font-weight: 800; font-size: 1.16rem; }
.cart-trust { display: grid; gap: 7px; padding-top: 4px; }
.cart-trust span { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-3); }
.cart-trust svg { color: var(--accent); flex: none; }
.cart-continue { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--ink-3); text-decoration: none; }
.cart-continue:hover { color: var(--ink); }
@media (max-width: 1080px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } .cart-summary { position: static; } }
@media (max-width: 640px) {
  .cart-row { grid-template-columns: 76px minmax(0, 1fr); row-gap: 10px; align-items: start; }
  .cart-thumb { width: 76px; }
  .cart-price { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: space-between; }
  .cart-controls { margin-top: 0; }
  .cart-remove { position: absolute; right: 0; }
}

/* ====================================== Sélecteur de couleur (v3) ====== */
.colorbar { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-2); }
.colorbar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.colorbar-head .lbl {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.colorbar-head .val { display: inline-flex; align-items: center; gap: 8px; font-weight: 660; font-size: .92rem; }
.colorbar-head .val i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 6px;
  border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface);
  font-size: .84rem; font-weight: 550; color: var(--ink-2);
  transition: border-color .18s, background .18s, color .18s;
}
.swatch i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.swatch:hover { border-color: var(--ink-3); color: var(--ink); }
.swatch[aria-checked="true"] { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.swatch-custom i { background: conic-gradient(from 210deg, #ff4a00, #ffd400, #5bc236, #1d9bf0, #8b5cf6, #ff4a00); }
.picker { display: grid; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.picker-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.picker input[type="color"] {
  width: 54px; height: 40px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-2);
  background: none; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.picker input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.picker input[type="color"]::-webkit-color-swatch { border: 0; border-radius: var(--r-1); }
.picker-hex { font-family: var(--mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.picker-rgb { display: flex; gap: 8px; }
.picker-rgb label { display: grid; gap: 3px; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.picker-rgb input {
  width: 64px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line-2);
  border-radius: var(--r-1); background: var(--surface); font-family: var(--mono); font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.picker-quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.picker-quick button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); padding: 0;
  transition: transform .18s, border-color .18s;
}
.picker-quick button:hover { transform: scale(1.15); }
.picker-quick span { font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.picker-hint { font-size: .76rem; color: var(--ink-3); line-height: 1.45; }

/* Aperçu en temps réel sur la photo produit */
.pp-main { isolation: isolate; }
.pp-main.is-tinted::after {
  content: ""; position: absolute; inset: 0; background: var(--tint, transparent);
  mix-blend-mode: color; opacity: .92; pointer-events: none;
}
.pp-main.is-tinted::before {
  content: ""; position: absolute; inset: 0; background: var(--tint, transparent);
  mix-blend-mode: multiply; opacity: .16; pointer-events: none;
}
.tint-note {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: var(--r-1); background: rgba(11, 11, 10, .78); color: #F4F0E9;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
}
.tint-note i { width: 9px; height: 9px; border-radius: 50%; background: var(--tint, #fff); }

/* Panier : couleur personnalisée */
.li-meta .hex, .cart-meta .hex { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; }

/* --- v3 : finitions mobiles --- */
@media (max-width: 640px) {
  .pcard-foot { flex-direction: row; align-items: center; gap: 8px; }
  .pcard-add { width: 36px; }
  .pcard-media { aspect-ratio: 1 / 1.12; }
  .hdr .wrap { gap: 8px; }
  .topbar { display: none; }
}

/* ==========================================================================
   v4 — Logo, header compact, recherches, animations visibles, scroll fluide
   ========================================================================== */

/* ------------------------------------------------------------- Logo image */
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 0; background: none; border: 0; color: inherit;
  transition: transform .4s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-5deg) scale(1.05); background: none; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.ftr .brand-mark { background: none; border: 0; width: 46px; height: 46px; }
@media (max-width: 900px) { .brand-mark { width: 36px; height: 36px; } }

/* ------------------------------------------------------ Header plus compact */
:root { --header-h: 66px; }
.hdr .wrap { gap: clamp(8px, 1.4vw, 20px); }
.nav { gap: 0; }
.nav a { padding: 8px 11px; font-size: .91rem; }
.brand-name { font-size: 1rem; }
.icon-btn { width: 38px; height: 38px; }
.cart-btn { min-height: 38px; padding: 0 12px; }
.topbar, .promo .wrap { min-height: 34px; }

/* ------------------------------------ Recherche : icône seule qui s'élargit */
.hdr-search {
  position: relative; display: flex; align-items: center; flex: none; margin-left: auto;
  width: 38px; height: 38px; max-width: none; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-2); background: transparent;
  overflow: hidden; transition: width .44s var(--ease-out), background .2s var(--ease), border-color .2s var(--ease);
}
.hdr-search > svg { display: none; }
.hdr-search-btn {
  position: relative; z-index: 2; width: 36px; height: 36px; flex: none;
  display: grid; place-items: center; border: 0; background: none; color: var(--ink-3);
  cursor: pointer; transition: color .2s var(--ease);
}
.hdr-search-btn:hover { color: var(--ink); }
.hdr-search .input {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 36px; min-height: 0;
  padding: 0 10px 0 0; border: 0; background: transparent; font-size: .86rem;
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease);
}
.hdr-search .input:focus { outline: 0; background: transparent; }
.hdr-search:hover, .hdr-search:focus-within, .hdr-search.is-open {
  width: clamp(206px, 21vw, 262px); background: var(--surface); border-color: var(--line);
}
.hdr-search:hover .input, .hdr-search:focus-within .input, .hdr-search.is-open .input { opacity: 1; pointer-events: auto; }
@media (max-width: 1180px) {
  .hdr-search:hover, .hdr-search:focus-within, .hdr-search.is-open { width: 186px; }
}
@media (max-width: 1100px) {
  .nav a { padding: 8px 7px; font-size: .86rem; }
  .hdr .wrap { gap: 8px; }
  .cart-btn { padding: 0 10px; }
  .brand-name { font-size: .95rem; }
}
/* En dessous de 1240 px, le champ repliable laisse place à la recherche en calque. */
@media (max-width: 1240px) {
  .hdr-search { display: none; }
  .hdr-act .hide-d { display: inline-grid; }
}
@media (max-width: 900px) { .hdr-search { display: none; } }

/* --------------------------------------------------------- Titre du hero ---- */
.hero-v2 h1 {
  font-size: clamp(1.75rem, 2.9vw, 2.45rem); line-height: 1.1;
  letter-spacing: -.028em; max-width: 21ch; margin-top: 18px;
}
@media (max-width: 900px) { .hero-v2 h1 { font-size: clamp(1.9rem, 5.4vw, 2.3rem); max-width: none; } }
@media (max-width: 640px) { .hero-v2 h1 { font-size: clamp(1.65rem, 6.2vw, 2rem); } }

/* -------------------------------------- Personnalisation de la couleur ------ */
.color-custom {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  padding: 7px 12px; border: 1px dashed var(--line-2); border-radius: var(--r-2);
  background: transparent; color: var(--ink-2); font-size: .84rem; font-weight: 560;
  cursor: pointer; transition: border-color .2s var(--ease), color .2s, background .2s, transform .2s;
}
.color-custom:hover { border-color: var(--accent); color: var(--ink); background: var(--surface); transform: translateY(-1px); }
.color-custom svg { color: var(--accent); flex: none; }
.color-custom[aria-expanded="true"] { border-style: solid; border-color: var(--accent); color: var(--ink); }
.swatch-custom { display: none; }

/* ============================================================= Animations === */
@keyframes nxPageIn { from { opacity: 0; } to { opacity: 1; } }
main { animation: nxPageIn .42s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }
@keyframes nxRise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes nxZoom { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }

/* Entrée du hero : chaque ligne arrive en décalé, le visuel zoome doucement. */
.hero-v2 .wrap > div > * { animation: nxRise .8s var(--ease-out) both; }
.hero-v2 .wrap > div > *:nth-child(1) { animation-delay: .03s; }
.hero-v2 .wrap > div > *:nth-child(2) { animation-delay: .11s; }
.hero-v2 .wrap > div > *:nth-child(3) { animation-delay: .19s; }
.hero-v2 .wrap > div > *:nth-child(4) { animation-delay: .27s; }
.hero-v2 .wrap > div > *:nth-child(5) { animation-delay: .35s; }
.hero-v2 .wrap > div:last-child { animation: nxZoom 1s var(--ease-out) both .12s; }

/* Têtes de page intérieures. */
.page-head > .wrap > * { animation: nxRise .62s var(--ease-out) both; }
.page-head > .wrap > *:nth-child(2) { animation-delay: .07s; }
.page-head > .wrap > *:nth-child(3) { animation-delay: .14s; }

/* Filet d'accent qui se trace. */
.accent-line.in, .eyebrow::before { transform-origin: left center; }
.accent-line { transform-origin: left center; }

/* Micro-interactions : flèches, plus, icônes. */
.btn .arr { transition: transform .32s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.icon-btn svg, .wish svg, .rail-btn svg { transition: transform .26s var(--ease-out); }
.icon-btn:hover svg { transform: scale(1.08); }
.wish:hover svg { transform: scale(1.12); }
.pcard-add svg { transition: transform .3s var(--ease-out); }
.pcard-add:hover svg { transform: rotate(90deg); }
.pcard:hover .pcard-add { border-color: var(--accent); color: var(--accent-ink); }
.pcard:hover .pcard-cat { color: var(--ink-2); }
.rail-btn:hover svg { transform: translateX(2px); }
[data-rail-prev]:hover svg { transform: translateX(-2px); }

/* Soulignement animé des liens de navigation. */
.nav a::before {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform .34s var(--ease-out);
}
.nav a:hover::before, .nav a:focus-visible::before { transform: scaleX(1); }

/* Images : léger zoom déjà au survol des cartes, on ajoute la transition d'entrée. */
.reveal-img img { transition: transform .9s var(--ease-out); }

/* Section « stats » : valeur qui monte (JS) + petit pop. */
.stats b[data-count] { font-variant-numeric: tabular-nums; }

/* État « en cours de défilement » : on coupe le flou du header pour rester fluide. */
body.is-scrolling .hdr, body.is-scrolling .tabbar {
  -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-v2 .wrap > div > *, .hero-v2 .wrap > div:last-child, .page-head > .wrap > * { animation: none !important; }
  .hdr-search { transition: none; }
  .btn:hover .arr, .pcard-add:hover svg, .icon-btn:hover svg, .wish:hover svg, .rail-btn:hover svg { transform: none; }
  .nav a::before { transition: none; }
}

/* Les actions restent collées à droite, même sans le champ de recherche. */
.hdr .hdr-act { margin-left: auto; }
