/* ═══ POINT DE DÉPART ════════════════════════════════════════════════════
   Un thème sobre, prêt à l'emploi et fait pour être copié.
   Tout part de cinq couleurs et deux polices, posées par le layout (:root) ;
   ce fichier en dérive surfaces, voiles et survols.

   Ordre : jetons · base · typographie · contrôles · en-tête · tiroirs ·
   recherche · panier · cartes · sections · fiche · collection · page panier ·
   pages · pied · flottants · mouvement.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── Jetons ───────────────────────────────────────────────────────────── */
:root {
  --surface: color-mix(in srgb, var(--bg) 45%, #fff);
  --soft: color-mix(in srgb, var(--fg) 5%, var(--bg));
  --veil: color-mix(in srgb, var(--fg) 30%, transparent);
  --gut: 20px;
  --max: 1320px;
  --r: 0px;
  --k: 1;
  --ratio: 4 / 5;
  --hdr-h: 60px;
  --ann-h: 0px;
  --sp: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}
@media (min-width: 768px) { :root { --gut: 32px; } }
@media (min-width: 1280px) { :root { --gut: 48px; } }
html[data-largeur="large"] { --max: 1680px; }
html[data-largeur="pleine"] { --max: none; }
html[data-angles="doux"] { --r: 6px; }
html[data-titres="discrete"] { --k: .86; }
html[data-titres="ample"] { --k: 1.16; }
html[data-cadrage="carre"] { --ratio: 1 / 1; }
html[data-cadrage="allonge"] { --ratio: 2 / 3; }

/* Le mode sombre a ses propres valeurs : les couleurs du marchand valent pour le clair. */
html[data-mode="sombre"] { --bg: #141413; --fg: #ECEAE4; --muted: #9B9993; --line: #2F2E2B; --accent: #A3BCE3; --surface: #1C1C1A; --veil: rgba(0, 0, 0, .55); color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  html[data-mode="auto"] { --bg: #141413; --fg: #ECEAE4; --muted: #9B9993; --line: #2F2E2B; --accent: #A3BCE3; --surface: #1C1C1A; --veil: rgba(0, 0, 0, .55); color-scheme: dark; }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
html[data-sx-drawer] { overflow: hidden; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--fg); font: 400 15px/1.6 var(--f-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
input, select, textarea { margin: 0; color: inherit; font: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); font-size: 14px; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }
.sx-page { display: block; outline: none; min-height: 50svh; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* Les images arrivent en fondu ; sans JavaScript, elles sont là d'emblée. */
.img { display: block; width: 100%; height: 100%; object-fit: cover; }
.js .img { opacity: 0; transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.js .img.is-in { opacity: 1; }

/* ── Typographie ──────────────────────────────────────────────────────── */
.h1, .h2, .hero__title, .pinfo__title { font-family: var(--f-display); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
.h1, .hero__title { font-size: calc(clamp(40px, 6.6vw, 92px) * var(--k)); line-height: 1; }
.h2 { font-size: calc(clamp(30px, 3.6vw, 48px) * var(--k)); line-height: 1.05; }
.lead { font-size: 17px; line-height: 1.55; }
.small { font-size: 13px; line-height: 1.5; }
.muted { color: var(--muted); }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }

/* ── Contrôles ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px; border: 1px solid var(--fg); border-radius: var(--r); background: var(--fg); color: var(--bg); font: 500 14px/1 var(--f-text); letter-spacing: .01em; text-align: center; transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease); }
.btn--line { background: transparent; color: var(--fg); }
.btn--block { display: flex; width: 100%; }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.is-busy, .btn.is-busy > * { pointer-events: none; opacity: .6; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 84%, var(--bg)); }
  .btn--line:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
}

/* Le lien souligné : le trait se retire au survol et revient en se dessinant. */
.lnk { padding-bottom: 2px; background: linear-gradient(currentColor 0 0) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease); }
@media (hover: hover) { .lnk:hover { background-size: 0 1px; background-position: 100% 100%; } }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; margin: -8px; }

.inp { display: block; width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); outline: none; transition: border-color .2s var(--ease); }
.inp:focus { border-color: var(--fg); }
textarea.inp { min-height: 132px; padding: 14px 16px; resize: vertical; }
.fld { display: grid; gap: 8px; }
.fld__l { font-size: 13px; color: var(--muted); }

.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; transition: border-color .2s var(--ease); }
@media (hover: hover) { .chip:hover { border-color: var(--fg); } }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { appearance: none; display: grid; place-items: center; width: 16px; height: 16px; margin: 0; border: 1px solid var(--fg); border-radius: calc(var(--r) / 2); cursor: pointer; }
.check input::after { content: ''; width: 8px; height: 8px; background: var(--fg); transform: scale(0); transition: transform .15s var(--ease); }
.check input:checked::after { transform: scale(1); }

.select { appearance: none; padding: 6px 22px 6px 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 14px; font-size: 14px; cursor: pointer; }

.qty { display: inline-flex; align-items: center; min-height: 50px; border: 1px solid var(--line); border-radius: var(--r); }
.qty__ctl { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: var(--r); }
.qty__btn { display: grid; place-items: center; width: 40px; height: 100%; color: var(--muted); transition: color .2s; }
.qty__ctl .qty__btn { width: 32px; }
.qty__btn:hover { color: var(--fg); }
.qty__btn .ico { width: 14px; height: 14px; }
.qty__input { width: 36px; border: 0; background: none; outline: none; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__val { min-width: 22px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }

.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price--sale .price__now { color: var(--accent); }
.price__was { color: var(--muted); font-size: .92em; }
.price__from { color: var(--muted); }

.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rating__stars { display: inline-flex; gap: 2px; }
.rating__s .ico { width: 13px; height: 13px; color: var(--line); }
.rating__s.is-on .ico { color: var(--fg); }

/* ── En-tête ──────────────────────────────────────────────────────────── */
/* Le groupe colle en haut, décalé de la hauteur du bandeau : le bandeau s'en va au défilement, l'en-tête reste. */
.sx-group--header { position: sticky; top: calc(var(--ann-h) * -1); z-index: 30; transition: transform .4s var(--ease); }
.sx-group--header:has(.hdr[data-sx-hidden="1"]) { transform: translateY(-100%); }

.ann { position: relative; display: grid; min-height: 36px; padding-inline: 40px; background: var(--fg); color: var(--bg); font-size: 12.5px; letter-spacing: .01em; }
.ann__msg { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 9px 0; text-align: center; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s; }
.ann__msg.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ann__msg a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ann__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; opacity: .6; transition: opacity .2s; }
.ann__nav:hover { opacity: 1; }
.ann__nav .ico { width: 14px; height: 14px; }
.ann__nav--prev { left: 4px; }
.ann__nav--next { right: 4px; }

.hdr { background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.hdr[data-sx-stuck="1"] { border-bottom-color: var(--line); }
.hdr__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.hdr__start, .hdr__end { display: flex; align-items: center; gap: 18px; height: 100%; }
.hdr__end { justify-content: flex-end; }
.hdr__brand { font: 400 calc(24px * var(--k)) / 1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.hdr__logo { width: auto; max-height: 36px; }
.hdr__icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; margin: -6px; }
.hdr__n { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--fg); color: var(--bg); font: 600 10px/16px var(--f-text); text-align: center; }
.hdr__n[data-empty] { display: none; }
.hdr__nav, .hdr__txt { display: none; }
.hdr__list { display: flex; gap: 28px; height: 100%; }
.hdr__item { position: relative; display: flex; align-items: center; }
.hdr__link, .hdr__txt { font-size: 14px; background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.hdr__link[aria-current] { background-size: 100% 1px; }
@media (hover: hover) { .hdr__link:hover, .hdr__txt:hover { background-size: 100% 1px; } }
.hdr__sub { position: absolute; top: 100%; left: -24px; min-width: 240px; padding: 16px 24px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
.hdr__item:hover > .hdr__sub, .hdr__item:focus-within > .hdr__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hdr__sub a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; transition: color .2s; }
.hdr__sub a:hover, .hdr__sub a[aria-current] { color: var(--fg); }
@media (min-width: 1024px) {
  .hdr__bar { height: 72px; }
  .hdr__burger, .hdr__icon--m { display: none; }
  .hdr__nav { display: block; height: 100%; }
  .hdr__txt { display: inline-block; }
  .hdr__brand { font-size: calc(28px * var(--k)); }
}

/* ── Tiroirs (menu, panier, recherche) ────────────────────────────────── */
.drw { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; transition: visibility 0s linear .45s; }
.drw[data-sx-open="1"] { visibility: visible; pointer-events: auto; transition: none; }
.drw__veil { position: absolute; inset: 0; background: var(--veil); opacity: 0; transition: opacity .35s var(--ease); }
.drw[data-sx-open="1"] > .drw__veil { opacity: 1; }
.drw__panel { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 92vw); background: var(--bg); transition: transform .45s var(--ease-drawer); }
.drw--left .drw__panel { left: 0; transform: translateX(-100%); }
.drw--right .drw__panel { right: 0; transform: translateX(100%); }
.drw--top .drw__panel { left: 0; right: 0; bottom: auto; width: auto; max-height: 90svh; transform: translateY(-100%); }
.drw[data-sx-open="1"] > .drw__panel { transform: none; }
.drw__head { display: flex; flex: none; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 var(--gut); border-bottom: 1px solid var(--line); }
.drw__title { font: 400 calc(24px * var(--k)) / 1 var(--f-display); }
.drw__count { font: 400 14px var(--f-text); color: var(--muted); }
.drw__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gut); }
.drw__foot { display: grid; flex: none; gap: 12px; padding: 20px var(--gut) calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drw__row { display: flex; justify-content: space-between; font-size: 15px; }
.drw__row strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.drw__link { justify-self: center; font-size: 13px; }
.drw__note { color: var(--muted); font-size: 12.5px; text-align: center; }
.drw.is-empty .drw__foot, .drw.is-empty .gauge { display: none; }
.cempty { display: grid; justify-items: start; gap: 14px; padding: 28px 0; }

.mnav { flex: 1; overflow-y: auto; padding: 8px var(--gut) 24px; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; font: 400 calc(26px * var(--k)) / 1.1 var(--f-display); }
.mnav__link .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
details[open] > .mnav__link .ico { transform: rotate(45deg); }
.mnav__sub { padding: 0 0 16px; }
.mnav__sub a { display: block; padding: 7px 0; color: var(--muted); font-size: 15px; }
.mnav__sub a[aria-current] { color: var(--fg); }
.mnav__foot { display: grid; flex: none; gap: 14px; padding: 20px var(--gut) calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; }
.mnav__foot a { display: inline-flex; align-items: center; gap: 10px; }
.mnav__foot .ico { width: 18px; height: 18px; }

/* ── Recherche ────────────────────────────────────────────────────────── */
.srch__form { display: flex; flex: none; align-items: center; gap: 16px; min-height: 76px; border-bottom: 1px solid var(--line); }
.srch__field { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; }
.srch__input { flex: 1; min-width: 0; height: 56px; border: 0; background: none; outline: none; font: 400 calc(26px * var(--k)) / 1 var(--f-display); }
.srch__input::placeholder { color: var(--muted); }
.srch__input::-webkit-search-cancel-button { display: none; }
.srch__body { flex: 1; min-height: 0; overflow-y: auto; padding-block: 24px 32px; }
.srch__h { margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.srch__sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.srch.has-q .srch__idle { display: none; }
.srch__hits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.srch__hits:empty { display: none; }
.search__hit { display: grid; align-content: start; gap: 8px; font-size: 14px; }
.search__hit img, .search__hit > span:first-child { width: 100%; aspect-ratio: var(--ratio); object-fit: cover; border-radius: var(--r); background: var(--soft); }
.search__hit-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.search__more { grid-column: 1 / -1; justify-self: start; padding-bottom: 2px; background: linear-gradient(currentColor 0 0) 0 100% / 100% 1px no-repeat; font-size: 14px; }
.search__none { grid-column: 1 / -1; color: var(--muted); }
@media (hover: hover) { .search__hit:hover .search__hit-title { text-decoration: underline; text-underline-offset: 3px; } }
@media (min-width: 768px) { .srch__hits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }

/* ── Panier : jauge et lignes (le runtime écrit les lignes, ce CSS les habille) ── */
.gauge { display: grid; flex: none; gap: 10px; padding: 16px var(--gut); border-bottom: 1px solid var(--line); font-size: 13px; }
.gauge--page { padding: 0; border: 0; }
.gauge__bar { display: block; height: 2px; overflow: hidden; background: var(--line); }
.gauge__fill { display: block; width: var(--p, 0%); height: 100%; background: var(--fg); transition: width .6s var(--ease); }

.cline { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "m b t" "m c c"; column-gap: 16px; row-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.cline.is-busy { opacity: .45; pointer-events: none; }
.cline__media { grid-area: m; display: block; aspect-ratio: var(--ratio); overflow: hidden; border-radius: var(--r); background: var(--soft); }
.cline__media img { width: 100%; height: 100%; object-fit: cover; }
.cline__body { grid-area: b; display: grid; align-content: start; gap: 4px; min-width: 0; }
.cline__title { font-size: 14px; }
.cline__variant, .cline__price { color: var(--muted); font-size: 13px; }
.cline__total { grid-area: t; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cline__ctl { grid-area: c; display: flex; align-items: center; justify-content: space-between; align-self: end; }
.cline__remove { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.cline__remove:hover { color: var(--fg); }

/* ── Cartes et grilles ────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 900px) {
  .grid { gap: 48px 20px; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.grid__cell.is-new { animation: rise .6s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.card { position: relative; display: grid; gap: 12px; }
.card__media { position: relative; display: block; aspect-ratio: var(--ratio); overflow: hidden; border-radius: var(--r); background: var(--soft); }
.card__img { position: absolute; inset: 0; }
.card__img--alt, .js .card__img--alt.is-in { opacity: 0; }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 400 44px/1 var(--f-display); }
.card--out .card__media::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 40%, transparent); }
.card__info { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 14px; }
.card__title { font-size: inherit; font-weight: 400; line-height: 1.4; }
.card__title a { background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 8px; border-radius: var(--r); background: var(--bg); font-size: 11.5px; line-height: 1.2; letter-spacing: .01em; }
.badge--sale { color: var(--accent); }
.badge--out { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__img--alt.is-in { opacity: 1; }
  .card:hover .card__img:not(.card__img--alt) { transform: scale(1.015); }
  .card:hover .card__title a { background-size: 100% 1px; }
}
@media (max-width: 599px) { .card__info { flex-direction: column; } }

/* ── Sections ─────────────────────────────────────────────────────────── */
/* Des marges, pas des rembourrages : entre deux sections voisines elles fusionnent (les enveloppes du moteur n'ont ni bord ni rembourrage). */
.sec { margin-block: var(--sp); }
.sec--tight { margin-block: calc(var(--sp) * .55); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3.4vw, 44px); }
.sec__tools { display: flex; align-items: center; gap: 24px; }
.sec__more { font-size: 14px; white-space: nowrap; }

/* Grande image */
.hero { position: relative; display: grid; overflow: hidden; background: var(--soft); color: #fff; }
.hero--moyenne { min-height: 64svh; }
.hero--haute { min-height: calc(100svh - var(--hdr-h)); }
.hero__media { position: absolute; inset: -6% 0; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, var(--voile, .3)), rgba(0, 0, 0, calc(var(--voile, .3) * .2)) 65%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: flex; align-items: flex-end; }
.hero__txt { display: grid; justify-items: start; gap: 18px; max-width: 880px; padding-block: 56px clamp(40px, 6vw, 88px); }
.hero__title { color: inherit; }
.hero__text { max-width: 44ch; font-size: 17px; line-height: 1.5; opacity: .92; }
.hero__cta { font-size: 15px; }
.hero--centre .hero__inner { justify-content: center; align-items: center; }
.hero--centre .hero__txt { justify-items: center; text-align: center; }
.hero--nue { background: none; color: var(--fg); }
.hero--nue .hero__txt { padding-block: clamp(56px, 10vw, 160px); }
.hero--nue .hero__text { color: var(--muted); opacity: 1; }
.hero--nue.hero--centre { justify-items: center; }

/* Rangée qui défile */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); overscroll-behavior-x: contain; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: none; gap: 8px; }
.rail-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .2s, opacity .2s; }
.rail-btn .ico { width: 16px; height: 16px; }
.rail-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .rail-btn:hover:not(:disabled) { border-color: var(--fg); } }
@media (min-width: 900px) {
  .rail { grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .rail-nav { display: flex; }
}

/* Collections : tuiles, ou index typographique */
.clist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
.ctile { display: grid; align-content: start; gap: 6px; }
.ctile__media { position: relative; display: block; aspect-ratio: var(--ratio); overflow: hidden; margin-bottom: 8px; border-radius: var(--r); background: var(--soft); }
.ctile__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 400 40px/1 var(--f-display); }
.ctile__name { font: 400 calc(22px * var(--k)) / 1.15 var(--f-display); }
.ctile__n { color: var(--muted); font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .ctile:hover .img { transform: scale(1.03); } }
@media (min-width: 900px) {
  .clist { gap: 44px 20px; }
  .clist--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clist--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cindex { border-top: 1px solid var(--line); }
.cindex__row { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cindex__name { font: 400 calc(clamp(28px, 4.2vw, 56px) * var(--k)) / 1.05 var(--f-display); transition: transform .5s var(--ease); }
.cindex__n { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cindex__img { position: absolute; top: 50%; right: 14%; z-index: 2; width: clamp(140px, 14vw, 210px); aspect-ratio: var(--ratio); overflow: hidden; border-radius: var(--r); background: var(--soft); opacity: 0; transform: translateY(-46%) rotate(-3deg) scale(.94); transition: opacity .35s var(--ease), transform .5s var(--ease); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .cindex__row:hover .cindex__name { transform: translateX(12px); }
  .cindex__row:hover .cindex__img { opacity: 1; transform: translateY(-50%) rotate(-2deg); }
}
@media (hover: none) { .cindex__img { display: none; } }

/* Image et texte */
.itxt { display: grid; align-items: center; gap: 28px; }
.itxt__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.itxt--carre .itxt__media { aspect-ratio: 1; }
.itxt--paysage .itxt__media { aspect-ratio: 3 / 2; }
.itxt__txt { display: grid; justify-items: start; gap: 20px; max-width: 520px; }
@media (min-width: 900px) {
  .itxt { grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); }
  .itxt--droite .itxt__media { order: 2; }
}

/* Texte */
.rtxt { display: grid; justify-items: start; gap: 20px; }
.rtxt--centre { justify-items: center; text-align: center; }
.rtxt--centre .prose { margin-inline: auto; }
.rtxt__big { max-width: 32ch; font: 400 calc(clamp(26px, 3.2vw, 42px) * var(--k)) / 1.22 var(--f-display); letter-spacing: -.005em; text-wrap: balance; }
.rtxt__big p + p { margin-top: .6em; }

/* Engagements */
.eng { display: grid; border-block: 1px solid var(--line); }
.eng__item { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.eng__item:last-child { border-bottom: 0; }
.eng__item .ico { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; }
.eng__t { font-size: 14px; font-weight: 500; }
.eng__x { color: var(--muted); font-size: 13.5px; }
@media (min-width: 900px) {
  .eng { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
  .eng__item { padding: 30px 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  .eng__item:first-child { padding-left: 0; border-left: 0; }
}

/* Questions : l'accordéon, sans JavaScript. */
.faq { display: grid; gap: 32px; }
.faq__head { display: grid; justify-items: start; align-content: start; gap: 14px; }
@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 72px; }
  .faq__head { position: sticky; top: calc(var(--hdr-h) + 32px); align-self: start; }
}
.acc { border-bottom: 1px solid var(--line); }
.faq__list .acc:first-child { border-top: 1px solid var(--line); }
.acc__sum { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 16px; }
.acc__sum .ico { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.acc[open] > .acc__sum .ico { transform: rotate(45deg); }
.acc__body { padding: 0 0 22px; color: var(--muted); }
.acc--sm .acc__sum { padding: 14px 0; font-size: 14px; }
.acc--sm .acc__body { padding-bottom: 16px; }
/* Ouverture animée là où le navigateur sait le faire ; ailleurs, elle est immédiate. */
.acc::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.acc[open]::details-content { height: auto; }

/* Lettre */
.nl { display: grid; justify-items: center; gap: 16px; text-align: center; }
.nl__text { max-width: 46ch; }
.nl__form { display: grid; gap: 10px; width: min(100%, 460px); margin-top: 8px; }
.nl__row { display: flex; border-bottom: 1px solid var(--fg); }
.nl__in { flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none; font-size: 15px; }
.nl__in::placeholder { color: var(--muted); }
.nl__btn { flex: none; padding: 0 2px 0 16px; font-size: 14px; font-weight: 500; }
.nl__ok { color: var(--muted); font-size: 14px; }
form.is-ok .nl__row { display: none; }

/* Contact */
.contact { display: grid; gap: 40px; }
.contact__info { display: grid; align-content: start; gap: 20px; }
.contact__rows { display: grid; gap: 16px; margin-top: 8px; }
.contact__row dt { color: var(--muted); font-size: 13px; }
.contact__form { display: grid; gap: 18px; }
.contact__two { display: grid; gap: 18px; }
.contact__form .btn { justify-self: start; }
.form-ok { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
@media (min-width: 600px) { .contact__two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 88px; } }

/* ── Fiche produit ────────────────────────────────────────────────────── */
.pdp { display: grid; }
.pgal { position: relative; display: block; }
.pgal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.pgal__track::-webkit-scrollbar { display: none; }
.pgal__slide { flex: 0 0 100%; aspect-ratio: var(--ratio); overflow: hidden; scroll-snap-align: start; background: var(--soft); }
.pgal__slide--empty { display: grid; place-items: center; color: var(--muted); font: 400 64px/1 var(--f-display); }
.pgal__zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
/* Vidéo d'article : le cadre entier, sans recadrage. */
.pgal__video { display: block; width: 100%; height: 100%; object-fit: contain; }
.pgal:has(.pgal__slide--video) .pgal__count { pointer-events: none; }
.pgal__count { position: absolute; right: 14px; bottom: 14px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent); font-size: 12px; font-variant-numeric: tabular-nums; }

.pinfo { display: grid; align-content: start; gap: 22px; padding: 24px var(--gut) 8px; }
.pinfo__crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.pinfo__crumbs a:hover { color: var(--fg); }
.pinfo__title { font-size: calc(clamp(32px, 3.4vw, 48px) * var(--k)); line-height: 1.05; }
.pinfo__price { font-size: 17px; }
.pinfo__text { color: var(--muted); font-size: 14px; }
.pinfo > .acc + .acc { margin-top: -22px; }
.pinfo > :not(.acc) + .acc { border-top: 1px solid var(--line); }

.vpick__label { margin-bottom: 12px; font-size: 14px; }
.vpick__label span { color: var(--muted); }
.vpick__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.vpick__opt { position: relative; }
.vpick__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.vpick__opt span { display: grid; place-items: center; min-width: 52px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
.vpick__opt input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.vpick__opt input:focus-visible + span { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.vpick__opt.is-off span { color: var(--muted); text-decoration: line-through; }
@media (hover: hover) { .vpick__opt:hover span { border-color: var(--fg); } }

.pbuy { display: grid; gap: 14px; }
.pbuy__row { display: flex; gap: 10px; }
.pbuy__add { display: block; flex: 1; }
.pbuy__wa { justify-self: start; font-size: 14px; }
.pbuy__note { color: var(--muted); font-size: 13px; }
.btn.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }
.zones { display: grid; gap: 6px; margin-bottom: 12px; }
.zones li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }

/* La barre d'achat du téléphone : paraît quand le bouton principal est dépassé. */
.pbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 14px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); transform: translateY(100%); transition: transform .35s var(--ease); }
.pbar.is-on { transform: none; }
.pbar__txt { display: grid; flex: 1; min-width: 0; font-size: 13px; }
.pbar__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar__p { color: var(--muted); }
.pbar .btn { min-height: 44px; padding: 0 20px; }

@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: clamp(40px, 5vw, 96px); max-width: var(--max); margin-inline: auto; padding: 24px var(--gut) 0; }
  .pgal__track { display: grid; gap: 12px; overflow: visible; }
  .pgal__slide { border-radius: var(--r); }
  .pgal__count { display: none; }
  .pinfo { position: sticky; top: calc(var(--hdr-h) + 24px); max-width: 480px; padding: 16px 0 40px; }
  .pbar { display: none; }
}

/* Photo agrandie : un <dialog> plein écran créé par theme.js. */
.zoom { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); }
.zoom::backdrop { background: var(--bg); }
.zoom[open] { animation: fade .3s var(--ease); }
.zoom img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.zoom__x { position: absolute; top: 20px; right: 20px; }
@keyframes fade { from { opacity: 0; } }

/* ── Collection ───────────────────────────────────────────────────────── */
.plp { padding-bottom: var(--sp); }
.plp__head { display: grid; gap: 10px; padding-block: clamp(36px, 5vw, 72px) 28px; }
.plp__count { color: var(--muted); font-size: 14px; }
.plp__desc { max-width: 60ch; color: var(--muted); }
.plp__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding: 12px 0; border-block: 1px solid var(--line); }
.plp__sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.plp__sort-l { color: var(--muted); }
.plp__empty { display: grid; justify-items: start; gap: 14px; padding: 40px 0; color: var(--muted); }
.more { display: grid; justify-items: center; gap: 14px; padding-top: 56px; }
.more__txt { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.more__bar { display: block; width: 160px; height: 1px; background: var(--line); }
.more__fill { display: block; width: var(--p, 0%); height: 100%; background: var(--fg); transition: width .6s var(--ease); }
.more .btn { margin-top: 8px; }
.more__prev { font-size: 13px; }

/* ── Page panier ──────────────────────────────────────────────────────── */
.cartp { padding-block: clamp(36px, 5vw, 72px) var(--sp); }
.cartp__title { margin-bottom: 28px; }
.cartp__grid { display: grid; gap: 40px; }
.cartp__lines { border-top: 1px solid var(--line); }
.cartp__empty { display: grid; justify-items: start; gap: 18px; padding: 32px 0; }
.cartp__side { display: grid; align-content: start; gap: 18px; padding: 24px; border-radius: var(--r); background: var(--surface); }
.cartp__side.is-hidden { display: none; }
.cartp__note { color: var(--muted); font-size: 13px; text-align: center; }
.totals { display: grid; gap: 10px; font-size: 14px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals > div[hidden] { display: none; }
.totals dd { font-variant-numeric: tabular-nums; text-align: right; }
.totals__total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; }
.promo { display: flex; gap: 8px; }
.promo .inp { min-height: 44px; }
.promo .btn { min-height: 44px; padding: 0 16px; }
@media (min-width: 900px) {
  .cartp__grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 72px; }
  .cartp__side { position: sticky; top: calc(var(--hdr-h) + 24px); }
}

/* ── Recherche, pages, 404 ────────────────────────────────────────────── */
.srp { display: grid; gap: 28px; padding-block: clamp(36px, 5vw, 72px) var(--sp); }
.srp__form { display: flex; align-items: center; gap: 12px; max-width: 640px; border-bottom: 1px solid var(--fg); }
.srp__in { flex: 1; min-width: 0; height: 56px; border: 0; background: none; outline: none; font: 400 calc(26px * var(--k)) / 1 var(--f-display); }
.srp__in::-webkit-search-cancel-button { display: none; }
.srp__count { color: var(--muted); font-size: 14px; }
.pageh { display: grid; justify-items: center; gap: 18px; padding-block: clamp(48px, 7vw, 104px) clamp(24px, 3vw, 40px); text-align: center; }
.pageh__intro { max-width: 52ch; color: var(--muted); }
.nf { display: grid; justify-items: center; gap: 18px; padding-block: clamp(64px, 10vw, 144px); text-align: center; }
.nf__code { font: 400 calc(clamp(96px, 16vw, 200px) * var(--k)) / .9 var(--f-display); letter-spacing: -.03em; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }

/* ── Pied de page ─────────────────────────────────────────────────────── */
.foot { padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.foot__grid { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.foot__col { display: grid; flex: 1 1 160px; align-content: start; gap: 14px; }
.foot__col--wide { flex: 2 1 280px; max-width: 420px; }
.foot__brand { font: 400 calc(30px * var(--k)) / 1 var(--f-display); }
.foot__h { color: var(--muted); font-size: 13px; }
.foot__text { color: var(--muted); font-size: 14px; max-width: 40ch; }
.foot__links { display: grid; gap: 8px; font-size: 14px; }
.foot__links a { background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
@media (hover: hover) { .foot__links a:hover { background-size: 100% 1px; } }
/* Le nom de la boutique sur toute la largeur : sa taille suit le nombre de lettres (--n). */
.foot__mark { margin-top: clamp(48px, 7vw, 104px); overflow: hidden; font: 400 min(26vw, calc((100vw - 2 * var(--gut)) / (var(--n) * .46))) / .82 var(--f-display); letter-spacing: -.03em; text-align: center; white-space: nowrap; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(24px, 3vw, 40px); padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot__right { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ── Flottants : WhatsApp, notifications ──────────────────────────────── */
.wa { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fg); color: var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .14); transition: transform .3s var(--ease); }
.wa .ico { width: 22px; height: 22px; }
@media (hover: hover) { .wa:hover { transform: translateY(-2px); } }
html[data-pbar] .wa { transform: translateY(calc(-1 * var(--pbar-h, 72px))); }

.toasts { position: fixed; left: 50%; bottom: 20px; z-index: 80; display: grid; gap: 8px; width: min(92vw, 360px); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: var(--r); background: var(--fg); color: var(--bg); font-size: 14px; text-align: center; animation: rise .35s var(--ease) both; }
.toast--error { background: #8A2B1E; color: #fff; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }

/* ── Mouvement ────────────────────────────────────────────────────────── */
/* Le runtime pose .sx-reveal au montage, puis .sx-in quand l'élément entre à l'écran. */
.sx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--sx-delay, 0ms); }
.sx-reveal[data-sx-reveal="fade"] { transform: none; }
.sx-reveal.sx-in { opacity: 1; transform: none; }
html[data-sx-motion="aucune"] *, html[data-sx-motion="aucune"] *::before, html[data-sx-motion="aucune"] *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .img, .sx-reveal { opacity: 1; transform: none; }
}
