/* =========================================================
   Knockout Boxing Gear — Header + Hero (bento)
   Pure static CSS, no build step.
   ========================================================= */

/* Archivo (variable: wdth 62-125, wght 400-900), self-hosted from Google Fonts (OFL) — task 45 */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 70% 100%; font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 70% 100%; font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --black: #000;
  --panel: #e6e6e6;
  --panel-2: #d3d3d3;
  --white: #fff;
  --frame: #fff;                          /* page, gaps and notches (light theme) */
  --accent: #d0202a;                     /* KO red, used sparingly  */
  --accent-ink: #b01b24;                 /* same red, darker: small text on the grey panels (WCAG AA 4.5:1) */
  --gold: #8a6d24;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* geometry (desktop: driven by viewport height so it always fits) */
  --g: clamp(6px, 1.35vh, 14px);         /* black gap between panels */
  --r: clamp(12px, 2.6vh, 28px);         /* panel corner radius     */
  --header-h: clamp(40px, 6.6vh, 68px);

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--frame);
  color: var(--black);
  font-family: var(--font);
  font-variation-settings: "wdth" 82;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;   /* taps get :active states instead of grey boxes */
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a, button { touch-action: manipulation; }
ul { list-style: none; }

/* ---------------------------------------------------------
   Page frame: exactly one viewport
   --------------------------------------------------------- */
.page {
  height: 100vh;
  height: 100dvh;
  padding: var(--g);
  display: grid;
  grid-template-rows: var(--header-h) minmax(0, 1fr);
  gap: var(--g);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.header {
  position: relative;
  display: flex;
  align-items: stretch;
  z-index: 20;
}

.burger {
  position: relative;
  z-index: 2;
  flex: 0 0 var(--header-h);
  height: var(--header-h);
  border-radius: 50%;
  background: var(--frame);
  box-shadow: 0 0 0 calc(var(--g) * .55) var(--frame), inset 0 0 0 2px #dcdcdc;
  display: grid;
  place-content: center;
  gap: calc(var(--header-h) * .09);
  transition: transform .25s ease, background-color .25s ease;
}
.burger span {
  display: block;
  width: calc(var(--header-h) * .42);
  height: max(2px, calc(var(--header-h) * .065));
  border-radius: 2px;
  background: var(--black);
  transition: transform .3s ease, opacity .3s ease;
}
.burger:active { transform: scale(.94); }
.menu-open .burger span:nth-child(1) { transform: translateY(calc(var(--header-h) * .155)) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(calc(var(--header-h) * -.155)) rotate(-45deg); }

.bar {
  flex: 1;
  margin-left: calc(var(--header-h) * -.5);
  padding-left: calc(var(--header-h) * .5 + var(--g) * 1.6);
  padding-right: calc(var(--g) * .6);
  background: var(--panel);
  border-radius: var(--r);
  display: grid;
  /* same proportions as the hero grid so search aligns with the tall panel */
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
  align-items: center;
  column-gap: var(--g);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 6%;
  height: 100%;
}

.nav-num, .nav-promo { display: none; }   /* mobile menu only */

.nav-logo, .bar-logo { display: flex; align-items: center; height: 100%; }
/* A length, not a % of the bar: Safari sizes the logo's grid column before it resolves % heights,
   which left the box out of the logo's proportions. aspect-ratio + contain keep the mark whole in any box. */
.nav-logo img, .bar-logo img { height: min(44px, calc(var(--header-h) * .72)); width: auto; aspect-ratio: 1798 / 890; object-fit: contain; display: block; flex: none; }
img[src*="kobg-mark"] { object-fit: contain; }
.bar-logo { display: none; }

/* desktop: no burger, the bar takes the full width */
.burger { display: none; }
.bar { margin-left: 0; padding-left: calc(var(--g) * 2.4); }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-size: clamp(11px, 1.6vh, 16px);
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
  padding: .5em 0;
  transition: opacity .2s ease;
}
.nav-link.is-active {
  font-size: clamp(14px, 2.25vh, 24px);
  font-weight: 900;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .15em;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-link svg { width: 1.25em; height: 1.25em; transition: transform .25s ease; }

.nav-drop { position: relative; }
.nav-drop.is-open .drop-toggle svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute;
  top: calc(100% + var(--g));
  left: 50%;
  min-width: 180px;
  padding: 8px;
  background: var(--panel);
  border: var(--g) solid var(--frame);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
  border-radius: var(--r);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.drop-menu::before {           /* invisible bridge over the gap, so moving down from the toggle keeps it open */
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: calc(var(--g) * 2 + 2px);
}
.nav-drop.is-open .drop-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.drop-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: calc(var(--r) * .5);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  font-variation-settings: "wdth" 78;
  transition: background-color .2s ease, padding .25s var(--ease);
}
.drop-menu a::after {
  content: "";
  width: 6px; height: 6px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  rotate: 45deg;
  opacity: 0;
  translate: -6px 0;
  transition: opacity .2s ease, translate .25s var(--ease);
}
.drop-menu a:focus-visible { outline-offset: -2px; }

/* search + cart share the column that lines up with the tall panel */
.bar-actions {
  display: flex;
  align-items: center;
  gap: calc(var(--g) * .6);
  min-width: 0;
}

.search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .6em;
  height: calc(var(--header-h) - var(--g) * 1.2);
  padding: 0 1em;
  background: var(--panel-2);
  border-radius: calc(var(--r) * .7);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.search:focus-within { box-shadow: inset 0 0 0 2px var(--black); }
.search svg { flex: none; width: clamp(14px, 2.1vh, 22px); height: auto; color: #333; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(10px, 1.35vh, 14px);
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  text-transform: uppercase;
  color: var(--black);
}
.search input::placeholder { color: #555; transition: color .2s ease; }
.search:focus-within input::placeholder { color: #888; }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.cart-btn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  height: calc(var(--header-h) - var(--g) * 1.2);
  aspect-ratio: 1;
  border-radius: calc(var(--r) * .7);
  background: var(--black);
  color: var(--white);
  transition: transform .25s var(--ease), background-color .2s ease;
}
.cart-btn svg { width: 46%; height: auto; }
.cart-btn:active { transform: scale(.94); }
.cart-count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 2.5px var(--panel);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  font-variation-settings: "wdth" 80;
  scale: 0;
  transition: scale .3s cubic-bezier(.3, 1.6, .5, 1);
}
.cart-btn.has-items .cart-count { scale: 1; }
.cart-btn.is-bumped .cart-count { animation: bump .45s ease; }
@keyframes bump { 40% { scale: 1.35; } }

/* account link (compte.html): same size as the cart, light grey; a red dot once signed in */
.acct-btn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  height: calc(var(--header-h) - var(--g) * 1.2);
  aspect-ratio: 1;
  border-radius: calc(var(--r) * .7);
  background: var(--panel-2);
  color: var(--black);
  transition: transform .25s var(--ease), background-color .2s ease;
}
.acct-btn svg { width: 46%; height: auto; }
.acct-btn:active { transform: scale(.94); }
.acct-btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--black); }
.acct-dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2.5px var(--panel);
  scale: 0;
  transition: scale .3s cubic-bezier(.3, 1.6, .5, 1);
}
.acct-btn.is-in .acct-dot { scale: 1; }

/* ---------------------------------------------------------
   Hero bento grid
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr);
  grid-template-rows: minmax(0, 63fr) minmax(0, 37fr);
  gap: var(--g);
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border-radius: var(--r);
  min-height: 0;
}

.panel--feature { grid-column: 1 / 3; grid-row: 1; }
.panel--tall    { grid-column: 3;     grid-row: 1 / 3; }
.panel--promo   { grid-column: 1;     grid-row: 2; }
.panel--new     { grid-column: 2;     grid-row: 2; }

/* --- headlines --- */
.headline {
  position: relative;
  z-index: 2;
  font-weight: 800;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
  font-size: min(6.6vh, 4vw);
}
.headline .line { display: block; }
.panel--feature > .headline:first-child {
  position: absolute;
  top: calc(var(--r) * .75);
  left: calc(var(--r) * .9);
}
.headline--side {
  position: absolute;
  /* bottom-right, clear of the + button that sits on this corner */
  right: calc(min(17vh, 10.5vw) * .5 + var(--r) * 1.1);
  bottom: calc(var(--r) * .9);
  top: auto;
  text-align: right;
}

/* --- feature video background --- */
.feature-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 62%, rgba(0,0,0,.4) 100%),
    linear-gradient(100deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.45) 100%);
}
.panel--feature .headline { color: var(--white, #fff); text-shadow: 0 2px 18px rgba(0,0,0,.35); }

/* --- discover button (tall panel) --- */
.discover-btn {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(var(--r) * 1.1);
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 0 1.7em 0 2.1em;
  height: clamp(36px, 6vh, 58px);
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  font-weight: 800;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(11px, 1.6vh, 17px);
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.55);
  transition: gap .3s var(--ease), padding .3s var(--ease), background-color .2s ease, scale .2s ease;
}
.discover-btn svg { width: 1.15em; height: 1.15em; transition: translate .3s var(--ease); }
.discover-btn:active { scale: .97; }

/* --- tall panel photo --- */
.panel--tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.panel--tall::after {          /* ease the near-white floor into the panel tone + hairline, so the edge holds on the white page */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(230,230,230,0) 68%, rgba(230,230,230,.7));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  pointer-events: none;
}

/* ---------------------------------------------------------
   Notches (cut-outs in the frame colour that hold a button)
   --------------------------------------------------------- */
.notch {
  position: absolute;
  z-index: 3;
  background: var(--frame);
}

/* bottom-left arrow notch on the feature panel */
.hero { --tab: min(11.5vh, 7vw); }
.panel--feature { --btn: var(--tab); --notch: calc(var(--btn) + var(--g)); }
.notch--bl {
  left: 0; bottom: 0;
  width: var(--notch);
  height: var(--notch);
  border-top-right-radius: calc(var(--btn) / 2 + var(--g));
}
.circle-btn {
  position: absolute;
  left: 0; bottom: 0;
  width: var(--btn);
  height: var(--btn);
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  transition: background-color .25s ease, transform .25s ease;
}
.circle-btn svg { width: 38%; height: 38%; transition: transform .25s ease; }

/* bottom-right shop notch on the promo panel */
.panel--promo { --nw: 47%; --nh: min(12vh, 9vw); }
.notch--br {
  right: 0; bottom: 0;
  width: var(--nw);
  height: var(--nh);
  padding: var(--g) 0 0 var(--g);
  border-top-left-radius: calc(var(--r) + var(--g));
}
.shop-btn {
  height: 100%;
  border-radius: var(--r);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 calc(var(--r) * .55) 0 calc(var(--r) * .55);
  transition: background-color .25s ease;
}
.shop-txt { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; font-variation-settings: "wdth" 78; }
.shop-txt small { font-size: clamp(8px, 1.2vh, 13px); font-weight: 600; color: #444; }
.shop-txt strong { font-size: clamp(9px, min(1.55vh, 1.05vw), 16px); font-weight: 800; white-space: nowrap; }
.shop-btn svg {
  flex: none;
  width: min(3.4vh, 2.4vw);
  height: auto;
  padding-left: calc(var(--r) * .5);
  box-sizing: content-box;
  border-left: 1.5px solid #9a9a9a;
  transition: transform .25s ease;
}

/* concave fillets so the panel corners next to a notch are rounded */
.fillet {
  position: absolute;
  z-index: 3;
  width: var(--r);
  height: var(--r);
  pointer-events: none;
}
.fillet--tr { background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--frame) var(--r)); }
.fillet--tl { background: radial-gradient(circle at 0 0,    transparent calc(var(--r) - .5px), var(--frame) var(--r)); }
.fillet--bl-a { left: 0;              bottom: var(--notch); }
.fillet--bl-b { left: var(--notch);   bottom: 0; }
.fillet--br-a { right: 0;             bottom: var(--nh); }
.fillet--br-b { right: var(--nw);     bottom: 0; }

/* ---------------------------------------------------------
   Promo card
   --------------------------------------------------------- */
.panel--promo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 calc(var(--r) * .9) var(--nh);
}
.panel--promo > p { position: relative; z-index: 1; }
.promo-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .55em;
  margin-top: calc(var(--nh) * .35);
  padding: .5em .85em .45em .7em;
  border-radius: 99px;
  background: var(--black);
  color: var(--white);
  font-size: clamp(9px, 1.3vh, 13px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
}
.promo-dot {
  position: relative;
  flex: none;
  width: .6em; height: .6em;
  border-radius: 50%;
  background: var(--accent);
}
.promo-dot::after {            /* pulse ring: transform + opacity only, so it never repaints */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0%        { transform: scale(1);   opacity: .7; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}
.promo-big {
  font-weight: 800;
  font-variation-settings: "wdth" 84;
  font-size: min(10.2vh, 5.4vw);
  line-height: .9;
  letter-spacing: -.01em;
  white-space: nowrap;
  margin-top: .14em;
}
.promo-sub {
  margin-top: .45em;
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  font-size: min(2.7vh, 1.6vw);
  line-height: 1.08;
}
/* oversized outlined % in the empty top-right of the card */
.promo-deco {
  position: absolute;
  z-index: 0;
  top: -.2em;
  right: -.06em;
  font-size: min(36vh, 19vw);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: max(1.5px, .12vh) #c9c9c9;
  pointer-events: none;
  user-select: none;
  transition: transform .8s var(--ease), -webkit-text-stroke-color .4s ease;
}

/* ---------------------------------------------------------
   New stuff card
   --------------------------------------------------------- */
.panel--new {
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.07);   /* keeps the white card's edge on the white page */
  display: grid;
  place-items: center;
  container-type: size;
}
.panel--new::before {          /* soft gold glow behind the seal */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(206,174,90,.16), rgba(206,174,90,0) 75%);
  opacity: .6;
}
.seal {
  position: relative;
  /* largest 612:459 box that fits the card, whatever its shape */
  width: min(92cqw, 82cqh * 612 / 459);
  aspect-ratio: 612 / 459;
  container-type: size;
}
.seal img { position: absolute; inset: 0; width: 100%; height: 100%; }

.corner-arrow {             /* bottom-right: the + button covers the top-right corner */
  position: absolute;
  z-index: 2;
  bottom: calc(var(--r) * .6);
  right: calc(var(--r) * .6);
  width: clamp(24px, 3.6vh, 36px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0f0f0;
}
.corner-arrow svg { width: 50%; height: 50%; }
.seal-txt {
  position: absolute;
  left: 50%; top: 46%;
  translate: -50% -50%;
  width: 62%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
  color: var(--black);
}
.seal-txt small {
  font-weight: 700;
  font-variation-settings: "wdth" 80;
  font-size: 5.2cqh;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--gold);
}
.seal-txt strong {
  font-weight: 900;
  font-variation-settings: "wdth" 78;
  font-size: 10cqh;
  line-height: .95;
  white-space: nowrap;
  margin: .2em 0;
}

@keyframes pop { 50% { transform: scale(1.2); } }

/* ---------------------------------------------------------
   "Added to cart" toast
   --------------------------------------------------------- */
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(var(--g) * 2.5);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 99px;
  background: var(--panel);
  box-shadow: 0 0 0 var(--g) var(--frame), 0 18px 40px rgba(0,0,0,.18);
  font-size: 14px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  translate: -50% 16px;
  pointer-events: none;          /* never blocks a tap on the card underneath */
  transition: opacity .25s ease, translate .35s var(--ease), visibility .25s;
}
.toast svg {
  width: 24px; height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  box-sizing: border-box;
}
.toast.is-visible { opacity: 1; visibility: visible; translate: -50% 0; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.panel--new:focus-visible { outline-color: var(--black); outline-offset: -4px; }
.discover-btn:focus-visible { outline-offset: 4px; }

/* ---------------------------------------------------------
   Entrance motion (skipped entirely for reduced motion)
   --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .header { animation: drop-in .7s var(--ease) both; }
  .panel { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .panel--feature .headline .line { animation: line-up .9s var(--ease) both; animation-delay: .35s; }
  .panel--feature .headline .line + .line { animation-delay: .43s; }
  .panel--feature .headline--side .line { animation-delay: .5s; }
  .panel--feature .headline--side .line + .line { animation-delay: .58s; }
}
@keyframes drop-in { from { opacity: 0; translate: 0 -12px; } }
/* start at .01, not 0: Chrome ignores opacity-0 paints for LCP, so the hero would never report one */
@keyframes rise    { from { opacity: .01; translate: 0 28px; scale: .97; } }
@keyframes line-up { from { opacity: .01; translate: 0 .45em; } }

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

/* ---------------------------------------------------------
   Hover: mouse and trackpad only (after a tap, touch screens keep
   :hover applied, which left buttons stuck and the dropdown open)
   --------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .burger:hover { background: #f4f4f4; }
  .nav-link:hover::after { transform: scaleX(1); }
  /* hover opening is driven by script.js (mouseenter → .is-open) so aria-expanded always matches */
  .drop-menu a:hover { background: var(--panel-2); padding-left: 16px; }
  .drop-menu a:hover::after { opacity: 1; translate: 0 0; }
  .search:hover { background: #cbcbcb; }
  .cart-btn:hover { background: #222; }
  .acct-btn:hover { background: #cbcbcb; }
  .discover-btn:hover { gap: .85em; background: #1c1c1c; }
  .discover-btn:hover svg { translate: 2px 0; }
  .circle-btn:hover { background: var(--panel-2); }
  .circle-btn:hover svg { transform: translateX(3px); }
  .panel--promo:hover .promo-deco { transform: rotate(-6deg) scale(1.04); -webkit-text-stroke-color: #bdbdbd; }
}

/* ---------------------------------------------------------
   Products: gloves carousel (below the hero; the page scrolls)
   --------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.products {
  --per: 1.18;                    /* cards in view; the fraction lets the next one peek */
  display: grid;
  gap: var(--g);
  padding: 0 var(--g) calc(var(--g) * 2);
}

.products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 34px);
  background: var(--panel);
  border-radius: var(--r);
}
.products .promo-tag { margin-top: 0; font-size: 12px; }
.products-h {
  margin-top: .2em;
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.01em;
}
.products-sub {
  margin-top: .55em;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  color: #555;
}

.products-ctrl { flex: none; display: flex; align-items: center; gap: 10px; }
.products-all {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  height: 48px;
  margin-right: 6px;
  padding: 0 1.25em 0 1.5em;
  border-radius: 99px;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.products-all svg { width: 1.2em; height: 1.2em; }
.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
  transition: opacity .2s ease, transform .2s ease;
}
.carousel-btn svg { width: 42%; height: 42%; }
.carousel-btn:active { transform: scale(.92); }
.carousel-btn:disabled { opacity: .25; cursor: default; }

/* the track: native scroll + snap, so touch swipes and trackpads just work */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--g)) / var(--per));
  gap: var(--g);
  margin: 0 calc(var(--g) * -1);
  padding: 0 var(--g);
  scroll-padding: 0 var(--g);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
/* mouse drag (script.js): free scroll while held, then it glides to the nearest card */
.carousel.is-dragging,
.carousel.is-gliding { scroll-snap-type: none; }
.carousel a, .carousel img { -webkit-user-drag: none; }
.carousel.is-dragging { cursor: grabbing; user-select: none; }
.carousel.is-dragging * { cursor: grabbing; }
.carousel:focus-visible { outline-offset: -2px; }

.product {
  --btn: clamp(46px, 3.6vw, 58px);
  --notch: calc(var(--btn) + var(--g));
  --pad: calc(var(--g) * .9);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  background: var(--panel);
  border-radius: var(--r);
  overflow: hidden;
  scroll-snap-align: start;
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--r) - var(--pad) * .5);
  overflow: hidden;
  background: #ebe9ea;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.product-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: .5em .8em .45em;
  border-radius: 99px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1;
  white-space: nowrap;
}
.tag--sale { background: var(--accent); }
.product-idx {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  font-weight: 700;
  font-variation-settings: "wdth" 80;
  letter-spacing: .06em;
  color: #8c8c8c;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px calc(var(--notch) - var(--pad) + 8px) 4px 6px;
}
.product-name {
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  line-height: 1;
}
.product-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card opens the product */
.product-link:focus-visible { outline: none; }
.product:has(.product-link:focus-visible) { outline: 2px solid var(--black); outline-offset: -5px; }
.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  font-variation-settings: "wdth" 88;
  color: #555;
}
.swatch {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px #b3b3b3;
}
.product-price { margin-top: auto; padding-top: 4px; display: flex; align-items: baseline; gap: 10px; }
.product-price strong { font-size: clamp(19px, 1.6vw, 24px); font-weight: 800; font-variation-settings: "wdth" 84; white-space: nowrap; }
.product-price s { font-size: 14px; font-weight: 600; color: #5c5c5c; white-space: nowrap; }

/* bottom-right notch with the add button, same cut-out as the hero panels */
.notch--card {
  right: 0; bottom: 0;
  width: var(--notch);
  height: var(--notch);
  border-top-left-radius: calc(var(--notch) * .62);
}
.fillet--card-a { right: 0;             bottom: var(--notch); }
.fillet--card-b { right: var(--notch);  bottom: 0; }
.product-add {
  position: absolute;
  right: 0; bottom: 0;
  width: var(--btn);
  height: var(--btn);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel);
  transition: background-color .25s ease, transform .2s ease;
}
.product-add svg { grid-area: 1 / 1; width: 40%; height: 40%; transition: transform .35s ease, opacity .25s ease; }
.product-add .i-check { opacity: 0; transform: scale(.4); }
.product-add:active { transform: scale(.92); }
.product-add.is-added { background: var(--black); color: var(--white); }
.product-add.is-added .i-plus { opacity: 0; transform: rotate(90deg) scale(.4); }
.product-add.is-added .i-check { opacity: 1; transform: none; animation: pop .45s ease; }

.carousel-progress {
  position: relative;
  width: min(320px, 50%);
  height: 3px;
  margin: calc(var(--g) * .8) auto 0;
  border-radius: 3px;
  background: rgba(0,0,0,.12);
  overflow: hidden;
}
.carousel-thumb {               /* moved with transform (set from script.js), no layout per scroll frame */
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: var(--w, 30%);
  border-radius: inherit;
  background: var(--black);
  transform: translateX(var(--x, 0%));
  will-change: transform;
}

@media (min-width: 600px)  { .products { --per: 2.2; } }
@media (min-width: 1000px) { .products { --per: 3.25; } }
@media (min-width: 1680px) { .products { --per: 4.2; } }

@media (max-width: 599px) {
  .products-head { flex-direction: column; align-items: stretch; gap: 20px; }
  .products-all { margin-right: auto; height: 44px; }
  .carousel-btn { width: 44px; height: 44px; }
}

/* cards rise in the first time the section scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .products.will-reveal .products-head,
  .products.will-reveal .product { opacity: 0; }
  .products.is-in .products-head { animation: rise .8s var(--ease) both; }
  .products.is-in .product { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
}

/* ---------------------------------------------------------
   Responsive fallback (tablet / mobile): stack, allow scroll
   --------------------------------------------------------- */
/* portrait only: a phone held sideways keeps the desktop bento instead of a squashed stack */
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  :root {
    --g: clamp(5px, 1.9vw, 8px);
    --r: clamp(12px, 4.2vw, 18px);
    --header-h: clamp(40px, 6.2vh, 52px);
  }
  /* still exactly one viewport: 100vh fallback, 100dvh where supported */
  .page { height: 100vh; height: 100dvh; grid-template-rows: var(--header-h) minmax(0, 1fr); }

  /* header: burger + search, nav lives in the burger dropdown */
  .bar { grid-template-columns: auto minmax(0, 1fr); padding-right: calc(var(--g) * .6); padding-left: calc(var(--header-h) * .5 + var(--g) * 1.2); }
  .burger { display: grid; }
  .bar { margin-left: calc(var(--header-h) * -.5); }
  .bar-logo { display: flex; }
  .bar-logo img { height: min(40px, calc(var(--header-h) * .74)); }
  .nav .nav-logo { display: none; }
  .search, .cart-btn, .acct-btn { height: calc(var(--header-h) - var(--g) * 1.3); }
  .search { padding: 0 .85em; }
  .search input { font-size: clamp(11px, 3.4vw, 14px); }
  .cart-count { top: -4px; right: -4px; min-width: 17px; height: 17px; line-height: 17px; font-size: 10px; padding: 0 4px; }
  /* ---- mobile menu: a full-height bento sheet that replaces the hero ---- */
  .nav {
    --row: clamp(54px, 8.4vh, 72px);
    --dot: clamp(34px, 10vw, 42px);
    --promo: clamp(118px, 19vh, 190px);
    --nav-h: calc(100vh - var(--header-h) - 3 * var(--g));
    /* height Collections and the promo share (sheet minus the two fixed rows and gaps) */
    --spare: calc(var(--nav-h) - 2 * var(--row) - 3 * var(--g));
    --accordion: .55s cubic-bezier(.45, 0, .15, 1);
    position: absolute;
    top: calc(100% + var(--g));
    left: 0; right: 0;
    height: var(--nav-h);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    /* Produits / Collections / Contact / promo, in exact lengths so the open/close
       animates with its easing intact (fr tracks would stop dead at their minimums) */
    grid-template-rows: var(--row) calc(var(--spare) - var(--promo)) var(--row) var(--promo);
    align-items: stretch;
    justify-content: stretch;
    gap: var(--g);
    padding: 0;
    background: var(--frame);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s var(--ease), visibility .2s, grid-template-rows var(--accordion);
  }
  @supports (height: 100dvh) {
    .nav { --nav-h: calc(100dvh - var(--header-h) - 3 * var(--g)); }
  }
  /* collections collapsed: the panel shrinks to its header row, the promo takes the space */
  .nav:has(.nav-drop:not(.is-open)) { grid-template-rows: var(--row) var(--row) var(--row) calc(var(--spare) - var(--row)); }
  /* set by script.js while the sheet opens, so it appears already laid out */
  .nav.is-instant, .nav.is-instant * { transition: none !important; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }

  /* big numbered rows */
  .nav > .nav-link,
  .nav-drop { background: var(--panel); border-radius: var(--r); }
  .nav > .nav-link,
  .nav .drop-toggle {
    width: 100%;
    height: var(--row);
    padding: 0 calc((var(--row) - var(--dot)) / 2) 0 calc(var(--r) * 1.05);
    justify-content: flex-start;
    gap: 0;
    font-size: clamp(22px, 7vw, 32px);
    font-weight: 900;
    font-variation-settings: "wdth" 76;
    letter-spacing: -.005em;
  }
  .nav-link::after { display: none; }
  .nav-num {
    display: inline-block;
    min-width: 2.6em;
    font-size: .4em;
    font-weight: 700;
    font-variation-settings: "wdth" 80;
    letter-spacing: .06em;
    color: #8c8c8c;
  }
  .nav > .nav-link::before,      /* black arrow dot on the right */
  .nav .drop-toggle svg {
    flex: none;
    order: 2;
    margin-left: auto;
    width: var(--dot);
    height: var(--dot);
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    transition: transform var(--accordion), background-color .2s ease;
  }
  .nav > .nav-link::before {
    content: "";
    background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 44% no-repeat;
  }
  .nav .drop-toggle svg { padding: calc(var(--dot) * .27); }
  .nav > .nav-link:active::before { transform: translateX(3px); }

  /* collections: a 2 x 2 grid of tiles inside its panel. The tiles stay laid out;
     the panel's row clips them as it closes, and they fade in one by one as it opens */
  .nav-drop { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
  .drop-menu {
    position: static; transform: none; border: 0; background: none; box-shadow: none; opacity: 1;
    display: grid;
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(clamp(64px, 10vh, 96px), 1fr);
    gap: calc(var(--g) * .8);
    padding: 0 calc(var(--g) * 1.2) calc(var(--g) * 1.2);
    counter-reset: tile;
  }
  /* closed: out of the tab order once the collapse has finished */
  .nav-drop:not(.is-open) .drop-menu { visibility: hidden; transform: none; transition: visibility 0s .55s; }
  .nav-drop.is-open .drop-menu { visibility: visible; transform: none; transition: none; }
  .drop-menu::before { display: none; }   /* the desktop hover bridge */
  .drop-menu li {
    display: flex;
    min-width: 0;
    opacity: 0;
    translate: 0 14px;
    transition: opacity .12s ease, translate .25s var(--ease);   /* gone before the panel visibly shrinks */
  }
  .nav-drop.is-open .drop-menu li {
    opacity: 1;
    translate: 0 0;
    transition: opacity .4s ease, translate .5s var(--ease);
    transition-delay: calc(var(--n, 0) * 45ms + 90ms);
  }
  .drop-menu li:nth-child(2) { --n: 1; }
  .drop-menu li:nth-child(3) { --n: 2; }
  .drop-menu li:nth-child(4) { --n: 3; }
  .drop-menu a {
    position: relative;
    flex: 1;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 14px;
    border-radius: calc(var(--r) * .75);
    background: var(--white);
    font-size: clamp(14px, 4.3vw, 18px);
    line-height: 1;
    transition: background-color .2s ease;
  }
  .drop-menu a::before {         /* outlined index, same language as the promo % */
    counter-increment: tile;
    content: counter(tile, decimal-leading-zero);
    position: absolute;
    top: 8px; left: 12px;
    font-size: min(13vw, 6.4vh);
    font-weight: 900;
    font-variation-settings: "wdth" 70;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.3px #cdcdcd;
  }
  .drop-menu a::after {          /* ↗ in the top-right corner */
    position: absolute;
    top: 12px; right: 12px;
    width: 16px; height: 16px;
    border: 0;
    rotate: 0deg;
    opacity: 1; translate: 0 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .drop-menu a:hover { padding-left: 14px; background: var(--white); }   /* undo the desktop list hover on tiles */
  .drop-menu a:active { background: var(--panel-2); }

  /* promo block at the foot of the sheet */
  .nav-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: var(--promo);
    padding: calc(var(--r) * .9) calc(var(--r) * 1.05);
    border-radius: var(--r);
    background: var(--accent);
    color: var(--white);
    overflow: hidden;
  }
  .nav-promo::before {           /* outlined % watermark, echoes the hero promo card */
    content: "%";
    content: "%" / "";
    position: absolute;
    top: -.14em;
    right: -.04em;
    font-size: min(62vw, 34vh);
    font-weight: 900;
    font-variation-settings: "wdth" 70;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,.26);
    pointer-events: none;
  }
  .nav-promo > * { position: relative; }
  .nav-promo > .nav-promo-go { position: absolute; }
  .nav-promo .promo-tag { font-size: clamp(9px, 2.6vw, 12px); }
  .nav-promo-txt { display: flex; flex-direction: column; font-weight: 700; font-variation-settings: "wdth" 88; font-size: clamp(14px, 4.2vw, 18px); line-height: 1.05; }
  .nav-promo-txt strong {
    font-weight: 800;
    font-variation-settings: "wdth" 84;
    font-size: min(14vw, 7.4vh);
    line-height: .86;
    letter-spacing: -.01em;
    margin-bottom: .2em;
  }
  .nav-promo-go {
    position: absolute;
    right: calc(var(--r) * .9);
    bottom: calc(var(--r) * .9);
    width: calc(var(--dot) * 1.25);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    transition: transform .3s var(--ease);
  }
  .nav-promo-go svg { width: 42%; height: 42%; }
  .nav-promo:active .nav-promo-go { transform: translateX(3px); }

  /* opening: panels rise in one after another (tiles ride along with theirs) */
  @media (prefers-reduced-motion: no-preference) {
    .menu-open .nav > * { animation: rise .55s var(--ease) both; }
    .menu-open .nav > :nth-child(3) { animation-delay: .04s; }
    .menu-open .nav > :nth-child(4) { animation-delay: .08s; }
    .menu-open .nav > :nth-child(5) { animation-delay: .12s; }
  }
  .hero, .marquee, .products, .glove-banner { transition: opacity .3s ease; }
  .menu-open .hero,
  .menu-open .glove-banner,
  .menu-open .marquee,
  .menu-open .products { opacity: 0; pointer-events: none; }
  html:has(body.menu-open), body.menu-open { overflow: hidden; }

  /* compact bento: feature on top, promo + new stacked left, tall glove right */
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 44fr) minmax(0, 31fr) minmax(0, 25fr);
  }
  .panel--feature { grid-column: 1 / -1; grid-row: 1; }
  .panel--promo   { grid-column: 1;      grid-row: 2; }
  .panel--new     { grid-column: 1;      grid-row: 3; }
  .panel--tall    { grid-column: 2;      grid-row: 2 / 4; }

  /* feature panel */
  .hero { --tab: min(15vw, 8.5vh); }
  .headline { font-size: min(9.4vw, 5.4vh); }
  .panel--feature > .headline:first-child { top: calc(var(--r) * .8); left: calc(var(--r) * .9); }
  .panel--feature .headline--side {
    top: auto; bottom: calc(var(--r) * .8); right: calc(var(--r) * .9);
    font-size: min(7.6vw, 4.3vh);
  }

  /* promo card */
  .panel--promo {
    --nh: clamp(38px, 7.2vh, 58px);
    --nw: 100%;
    padding: 0 calc(var(--r) * .8) var(--nh);
  }
  .panel--promo .notch--br { padding-left: 0; border-top-left-radius: 0; }
  .panel--promo .fillet--br-b {
    left: 0; right: auto; bottom: var(--nh);
    background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--frame) var(--r));
  }
  .promo-tag { margin-top: 0; font-size: min(2.6vw, 1.45vh); }
  .promo-big { font-size: min(13.5vw, 7.4vh); margin-top: .12em; }
  .promo-sub { font-size: min(3.15vw, 1.85vh); margin-top: .35em; }
  .promo-deco { font-size: min(44vw, 24vh); top: -.16em; right: -.1em; }
  .shop-btn { padding: 0 calc(var(--r) * .6); gap: 4px; }
  .shop-txt small { font-size: min(2.6vw, 1.5vh); }
  .shop-txt strong { font-size: min(3vw, 1.75vh); white-space: nowrap; }
  .shop-btn svg { width: min(5.2vw, 3vh); padding-left: calc(var(--r) * .35); }

  /* new stuff card */
  .seal { width: min(96cqw, 80cqh * 612 / 459); }
  .corner-arrow { width: clamp(22px, 6.4vw, 30px); bottom: calc(var(--r) * .5); right: calc(var(--r) * .5); }

  /* tall glove */
  .panel--tall img { object-position: 50% 40%; }
  .discover-btn { height: clamp(32px, 4.8vh, 42px); padding: 0 1.15em 0 1.4em; font-size: clamp(11px, 3.2vw, 14px); bottom: calc(var(--r) * .8); }

  .toast { font-size: 13px; padding: 10px 16px 10px 10px; max-width: calc(100vw - var(--g) * 4); }
  .toast-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* touch screens: 16px keeps iOS from zooming the page when the search field is focused */
@media (pointer: coarse) {
  .search input { font-size: 16px; }
}

/* Best-sellers: small category label above the product name (Gants / Casque / Plastron) */
.product-cat {
  font-size: 11px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--accent-ink);
}

/* ---------------------------------------------------------
   Cart drawer (slides in from the right; full width on phones)
   --------------------------------------------------------- */
body.cart-open { overflow: hidden; }
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.cart-open .cart-overlay { opacity: 1; visibility: visible; }

.cart {
  position: fixed;
  z-index: 61;
  top: var(--g); right: var(--g); bottom: var(--g);
  width: min(440px, calc(100vw - var(--g) * 2));
  display: flex;
  flex-direction: column;
  gap: var(--g);
  padding: var(--g);
  border-radius: var(--r);
  background: var(--frame);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  translate: calc(100% + var(--g) * 2) 0;
  visibility: hidden;
  transition: translate .45s var(--ease), visibility 0s linear .45s;   /* stays visible while it slides out */
}
.cart-open .cart { translate: 0 0; visibility: visible; transition: translate .45s var(--ease), visibility 0s; }   /* visible at once, so focus can move in */

.cart-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px 20px;
  border-radius: calc(var(--r) * .8);
  background: var(--panel);
}
.cart-head .promo-tag { margin-top: 0; font-size: 11px; }
.cart-title {
  margin-top: 10px;
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  text-transform: uppercase;
  line-height: .9;
}
.cart-close {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  transition: transform .2s ease;
}
.cart-close svg { width: 44%; height: 44%; }
.cart-close:active { transform: scale(.92); }

.cart-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--g);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 10px;
  border-radius: calc(var(--r) * .8);
  background: var(--panel);
}
.cart-item-img {
  width: 72px; height: 90px;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 10px;
  background: #ebe9ea;
}
.cart-item-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-item-name {
  font-size: 17px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  line-height: 1.02;
}
.cart-item-meta { font-size: 13px; font-weight: 600; font-variation-settings: "wdth" 88; color: #555; }
.qty {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 2px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 99px;
  background: var(--white);
}
.qty-btn {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  transition: opacity .2s ease, transform .2s ease;
}
.qty-btn svg { width: 46%; height: 46%; }
.qty-btn:active { transform: scale(.9); }
.qty-btn:disabled { opacity: .2; cursor: default; }
.qty-val { min-width: 28px; text-align: center; font-size: 15px; font-weight: 800; font-variation-settings: "wdth" 80; }
.cart-item-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.cart-remove {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #555;
  transition: background-color .2s ease, color .2s ease;
}
.cart-remove svg { width: 58%; height: 58%; }
.cart-remove:hover { background: var(--white); color: var(--accent); }
.cart-item-total { font-size: 17px; font-weight: 800; font-variation-settings: "wdth" 80; white-space: nowrap; }

.cart-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  border-radius: calc(var(--r) * .8);
  background: var(--panel);
  text-align: center;
}
.cart-empty[hidden], .cart-foot[hidden], .cart-list[hidden] { display: none; }
.cart-empty-big {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  text-transform: uppercase;
  line-height: .95;
}
.cart-empty-sub { font-size: 14px; font-weight: 600; font-variation-settings: "wdth" 88; color: #555; }
.cart-empty-btn,
.cart-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  height: 52px;
  padding: 0 1.6em;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: gap .3s var(--ease), background-color .2s ease, scale .2s ease;
}
.cart-empty-btn { margin-top: 8px; }
.cart-empty-btn svg { width: 1.15em; height: 1.15em; }
.cart-empty-btn:hover { gap: 1em; }
.cart-empty-btn:active, .cart-checkout:active { scale: .97; }

.cart-foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 14px;
  border-radius: calc(var(--r) * .8);
  background: var(--panel);
}
.cart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cart-subtotal strong { font-size: 28px; font-weight: 900; letter-spacing: 0; }
.cart-note { font-size: 12px; font-weight: 600; font-variation-settings: "wdth" 88; color: #666; }
.cart-checkout { width: 100%; margin-top: 4px; background: var(--accent); }
.cart-checkout svg { width: 1.35em; height: 1.35em; }
.cart-checkout:hover { background: #b51a23; }
.cart-continue {
  align-self: center;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .cart { top: var(--g); width: calc(100vw - var(--g) * 2); }
  .cart-item { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; }
  .cart-item-img { width: 60px; height: 76px; }
  .cart-item-name, .cart-item-total { font-size: 15px; }
}

/* ---------------------------------------------------------
   Marquee: store perks band between the hero and the best-sellers.
   Two identical lists slide left by exactly one list width = seamless loop.
   --------------------------------------------------------- */
.marquee {
  --marquee-h: clamp(48px, 6.4vh, 64px);
  --marquee-gap: clamp(26px, 3vw, 44px);
  position: relative;
  height: var(--marquee-h);
  margin: 0 var(--g) var(--g);
  border-radius: var(--r);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  contain: paint;
}
.marquee::before,
.marquee::after {               /* soft fade at both edges */
  content: "";
  position: absolute;
  z-index: 1;
  top: 0; bottom: 0;
  width: clamp(24px, 5vw, 80px);
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--black), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--black), transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
}
.marquee-group {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);   /* same spacing across the seam */
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  font-size: clamp(15px, 2.1vh, 21px);
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
}
.marquee-sep { flex: none; width: .9em; height: .9em; color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 42s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* reduced motion: a still band; the list wraps and stays fully readable */
@media (prefers-reduced-motion: reduce) {
  .marquee { height: auto; padding: 14px 18px; }
  .marquee::before, .marquee::after { display: none; }
  .marquee-track { width: auto; height: auto; animation: none; }
  .marquee-group { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: 12px; column-gap: 22px; padding: 0; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-item { gap: 10px; font-size: 14px; }
}

@media (max-width: 560px) {
  .marquee { --marquee-h: 46px; --marquee-gap: 22px; }
  .marquee-item { font-size: 15px; }
}

/* the cards' entrance scale would drag a snapping track a few px off card 1:
   snapping is off until the entrance has finished (script.js adds .is-revealed) */
.products.will-reveal .carousel,
.products.is-in:not(.is-revealed) .carousel { scroll-snap-type: none; }

/* gloves collection: sits right under the gloves banner */
.products--gloves { padding-top: 0; }

/* ---------------------------------------------------------
   Gloves banner: dark full-width panel under the Best-sellers.
   Desktop: photo fills the panel, copy sits on its empty black left side.
   Mobile: square-ish crop of the gloves on top, copy below on black.
   --------------------------------------------------------- */
.glove-banner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(400px, 62vh, 660px);
  margin: calc(var(--g) * -1) var(--g) var(--g);
  border-radius: var(--r);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.glove-banner-media { position: absolute; inset: 0; z-index: -1; }
.glove-banner-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
}
.glove-banner::before {        /* keeps the copy side solid black at any width */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.92) 32%, rgba(0,0,0,.35) 55%, transparent 70%);
}
.glove-banner::after {         /* huge outlined % watermark, like the promo panel */
  content: "KO";
  position: absolute;
  left: -.04em; bottom: -.22em;
  z-index: -1;
  font-size: clamp(200px, 30vw, 460px);
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.09);
  pointer-events: none;
}
.glove-banner-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(620px, 52%);
  padding: clamp(28px, 4.2vw, 64px);
}
.glove-banner-mark {
  width: clamp(88px, 8vw, 128px);
  height: auto;
  margin-bottom: clamp(18px, 2.4vh, 28px);
  filter: brightness(0) invert(1);
}
.glove-banner-tag {
  margin-top: 0;
  background: var(--white);
  color: var(--black);
  font-size: clamp(10px, 1.3vh, 13px);
}
.glove-banner-h {
  margin-top: .3em;
  font-size: clamp(56px, 8.4vw, 150px);
  font-weight: 900;
  font-variation-settings: "wdth" 74;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.01em;
}
.glove-banner-h .line { display: block; }
.glove-banner-h .line + .line { color: var(--accent); }
.glove-banner-tagline {
  margin-top: .6em;
  font-size: clamp(18px, 1.9vw, 28px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.glove-banner-sub {
  margin-top: .7em;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 600;
  font-variation-settings: "wdth" 88;
  color: #c9c9c9;
  line-height: 1.45;
}
.glove-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(22px, 3vh, 34px);
}
.glove-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  height: 54px;
  padding: 0 1.4em 0 1.7em;
  border-radius: 99px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background-color .2s ease, transform .2s var(--ease);
}
.glove-banner-cta svg { width: 1.25em; height: 1.25em; transition: transform .25s var(--ease); }
.glove-banner-cta:hover { background: #b01820; }
.glove-banner-cta:hover svg { transform: translateX(3px); }
.glove-banner-cta:active { transform: scale(.97); }
.glove-banner-cta:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.glove-banner-price {
  display: flex;
  align-items: baseline;
  gap: .4em;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
}
.glove-banner-price span { font-size: 12px; font-weight: 700; color: #c9c9c9; letter-spacing: .06em; }
.glove-banner-price strong { font-size: 24px; font-weight: 900; }
.glove-banner-price s { font-size: 14px; font-weight: 600; color: #9a9a9a; }

@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .glove-banner { display: block; min-height: 0; }
  .glove-banner-media { position: relative; inset: auto; display: block; aspect-ratio: 680 / 600; max-height: 52vh; width: 100%; }
  .glove-banner-media img { object-position: 50% 30%; }
  .glove-banner::before {     /* photo melts into the black copy area */
    inset: 0 0 auto 0;
    aspect-ratio: 680 / 600;
    max-height: 52vh;
    background: linear-gradient(180deg, transparent 55%, #000 100%);
    z-index: 0;
  }
  .glove-banner::after { font-size: 62vw; bottom: -.2em; }
  .glove-banner-body {
    position: relative;
    max-width: none;
    margin-top: -64px;
    padding: 0 22px 28px;
  }
  .glove-banner-mark { position: absolute; top: -9px; right: 22px; margin: 0; width: 84px; }
  .glove-banner-h { font-size: clamp(56px, 17vw, 96px); }
  .glove-banner-actions { width: 100%; }
  .glove-banner-cta { flex: 1 1 auto; justify-content: center; }
}

/* ---------------------------------------------------------
   Body protector banner: the gloves banner mirrored so the page doesn't repeat
   itself. Photo on the left, copy on the right; red tag pill, white CTA,
   "KO" watermark on the right.
   --------------------------------------------------------- */
.glove-banner--flip { justify-items: end; }
.glove-banner--flip .glove-banner-media img { object-position: 20% 50%; }
.glove-banner--flip::before {
  background: linear-gradient(270deg, #000 0%, rgba(0,0,0,.92) 32%, rgba(0,0,0,.35) 55%, transparent 70%);
}
.glove-banner--flip::after { left: auto; right: -.04em; }
.glove-banner--flip .glove-banner-tag { background: var(--accent); color: var(--white); }
.glove-banner--flip .glove-banner-tag .promo-dot,
.glove-banner--flip .glove-banner-tag .promo-dot::after { background: var(--white); }
.glove-banner--flip .glove-banner-h { font-size: clamp(48px, 5.8vw, 88px); }
.glove-banner--flip .glove-banner-h .line + .line { font-size: .5em; line-height: 1; margin-top: .12em; }
.glove-banner--flip .glove-banner-cta { background: var(--white); color: var(--black); }
.glove-banner--flip .glove-banner-cta:hover { background: #e6e6e6; }
.glove-banner--flip .glove-banner-cta:focus-visible { outline-color: var(--accent); }

@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .glove-banner--flip { justify-items: normal; }
  .glove-banner--flip .glove-banner-media img { object-position: 50% 40%; }
  .glove-banner--flip::before { background: linear-gradient(180deg, transparent 55%, #000 100%); }
  .glove-banner--flip::after { right: -.04em; }
  .glove-banner--flip .glove-banner-h { font-size: clamp(46px, 15vw, 88px); }
  .glove-banner--flip .glove-banner-h .line + .line { font-size: .52em; }
}

/* Hero tall panel with a white-background product shot (Rival RS100):
   white panel + contain, so the whole glove shows at every panel ratio */
.panel--tall-white { background: #fff; }
.panel--tall-white img { object-fit: contain; object-position: 50% 40%; }
.panel--tall-white::after { background: none; }
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .panel--tall-white img { object-position: 50% 38%; }
}

/* ---------------------------------------------------------
   Features ("Pourquoi Knockout"): head panel + 4 photo cards,
   full-bleed image, dark gradient, copy overlaid at the bottom.
   4 columns on desktop, 2 on tablet, a swipe row on phones.
   --------------------------------------------------------- */
.features {
  display: grid;
  gap: var(--g);
  padding: 0 var(--g) calc(var(--g) * 2);
}
.features-head {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 34px);
  background: var(--black);
  color: var(--white);
  border-radius: var(--r);
}
.features-head::after {                 /* KO watermark, like the banners */
  content: "KO";
  position: absolute;
  right: -.04em; bottom: -.22em;
  font-size: clamp(120px, 16vw, 260px);
  font-weight: 900;
  font-variation-settings: "wdth" 75;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.14);
  pointer-events: none;
}
.features .promo-tag { margin-top: 0; font-size: 12px; background: var(--accent); color: var(--white); }
.features .promo-tag .promo-dot,
.features .promo-tag .promo-dot::after { background: var(--white); }
.features-h {
  position: relative;
  margin-top: .2em;
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.01em;
}
.features-sub {
  position: relative;
  margin-top: .55em;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  color: #b3b3b3;
}
.features-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--g);
}
.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  background: #111;
  color: var(--white);
  border-radius: var(--r);
}
.feature-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.feature::before {                       /* keeps the copy readable on any photo */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 42%, rgba(0,0,0,.78) 74%, #000 100%);
}
.feature-idx {
  position: absolute;
  top: clamp(14px, 1.4vw, 22px); left: clamp(14px, 1.4vw, 22px);
  display: grid;
  place-items: center;
  min-width: 40px; height: 28px;
  padding: 0 .7em;
  border-radius: 99px;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.feature-body { padding: clamp(18px, 1.9vw, 28px); }
.feature-h {
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  line-height: .92;
}
.feature-h::after {                       /* short red rule under the title */
  content: "";
  display: block;
  width: 34px; height: 3px;
  margin-top: .45em;
  border-radius: 2px;
  background: var(--accent);
}
.feature-txt {
  margin-top: 10px;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 600;
  font-variation-settings: "wdth" 90;
  line-height: 1.4;
  color: rgba(255,255,255,.82);
}
@media (hover: hover) and (pointer: fine) {
  .feature:hover .feature-img { transform: scale(1.05); }
}
@media (max-width: 999px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { aspect-ratio: 4 / 5; }
}
/* phones: one swipeable row, the next card peeks in */
@media (max-width: 599px) {
  .features-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(var(--g) * -1);
    padding: 0 var(--g);
    scroll-padding: 0 var(--g);
  }
  .features-grid::-webkit-scrollbar { display: none; }
  .features.will-reveal .features-grid,
  .features.is-in:not(.is-revealed) .features-grid { scroll-snap-type: none; }
  .feature { aspect-ratio: 3 / 4; scroll-snap-align: start; }
  .feature-h { font-size: 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .features.will-reveal .features-head,
  .features.will-reveal .feature { opacity: 0; }
  .features.is-in .features-head { animation: rise .8s var(--ease) both; }
  .features.is-in .feature { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
}
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .features { transition: opacity .3s ease; }
  .menu-open .features { opacity: 0; pointer-events: none; }
}

/* ---------------------------------------------------------
   Guide d'achat (#guide): one card per Rival model in the shared product carousel.
   Close-up from the product's own gallery, what it is for, three facts from its page.
   --------------------------------------------------------- */
.products--guide { --per: 1.25; }
@media (min-width: 600px)  { .products--guide { --per: 2.3; } }
@media (min-width: 1000px) { .products--guide { --per: 3.6; } }
@media (min-width: 1680px) { .products--guide { --per: 4.6; } }
@media (min-width: 2200px) { .products--guide { --per: 6; } }
.guide {
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: calc(var(--g) * .9);
  background: var(--panel);
  border-radius: var(--r);
  overflow: hidden;
}
.guide-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--r) - var(--g) * .45);
  overflow: hidden;
  background: var(--white);
}
.guide-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-media--contain { background: #ebeae6; }   /* = the edges of the Body Shield photo: no box-in-box */
.guide-media--contain img { object-fit: contain; }
.guide-use { position: absolute; top: 12px; left: 12px; }
.guide-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 6px 4px;
}
.guide-name {
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  line-height: 1;
  transition: color .2s ease;
}
.guide-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card opens the product */
.guide-link:focus-visible { outline: none; }
.guide-card:has(.guide-link:focus-visible) { outline: 2px solid var(--black); outline-offset: -5px; }
.guide-line { font-size: 14px; font-weight: 600; line-height: 1.4; color: #333; }
.guide-facts { display: grid; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; line-height: 1.35; color: #444; }
.guide-facts li { position: relative; padding-left: 16px; }
.guide-facts li::before { content: ""; position: absolute; left: 1px; top: .42em; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }
.guide-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid #cfcfcf;
}
.guide-meta { font-size: 12px; font-weight: 700; font-variation-settings: "wdth" 86; text-transform: uppercase; letter-spacing: .04em; color: #5c5c5c; }
.guide-foot strong { font-size: clamp(18px, 1.5vw, 22px); font-weight: 800; font-variation-settings: "wdth" 84; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .guide-media img { transition: transform .5s var(--ease); }
  .guide-card:hover .guide-media img { transform: scale(1.04); }
  .guide-card:hover .guide-name { color: var(--accent-ink); }
}
@media (prefers-reduced-motion: no-preference) {
  .products.will-reveal .guide { opacity: 0; }
  .products.is-in .guide { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
}

/* ---------------------------------------------------------
   FAQ (#faq): black heading panel with the WhatsApp CTA, accordion on grey panels.
   Desktop: two columns (heading sticks while the list scrolls). Mobile: one column.
   Answers collapse only once script.js adds .faq--js; height animates via grid rows.
   --------------------------------------------------------- */
.faq {
  display: grid;
  gap: var(--g);
  padding: 0 var(--g) calc(var(--g) * 2);
}
.faq-head {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(18px, 2.4vw, 34px);
  background: var(--black);
  color: var(--white);
  border-radius: var(--r);
}
.faq-head::after {                       /* outlined "?" watermark, like the KO marks */
  content: "?";
  position: absolute;
  right: .04em; bottom: -.2em;
  font-size: clamp(160px, 20vw, 340px);
  font-weight: 900;
  font-variation-settings: "wdth" 75;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.14);
  pointer-events: none;
}
.faq .promo-tag { margin-top: 0; font-size: 12px; background: var(--accent); color: var(--white); }
.faq .promo-tag .promo-dot,
.faq .promo-tag .promo-dot::after { background: var(--white); }
.faq-h {
  position: relative;
  margin-top: .2em;
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.01em;
}
.faq-sub {
  position: relative;
  max-width: 34em;
  margin-top: .8em;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  font-variation-settings: "wdth" 88;
  color: rgba(255,255,255,.66);
}
.faq-cta { position: relative; z-index: 1; margin-top: clamp(22px, 3vw, 44px); }
.faq-cta-txt {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.faq-wa {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  height: 48px;
  padding: 0 1.4em 0 1.1em;
  border-radius: 99px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.faq-wa svg { width: 20px; height: 20px; flex: none; color: #1fa855; }
.faq-wa:hover { background: var(--accent); color: var(--white); }
.faq-wa:hover svg { color: var(--white); }

.faq-list { display: grid; gap: calc(var(--g) * .6); align-content: start; margin: 0; padding: 0; list-style: none; }
.faq-item { background: var(--panel); border-radius: var(--r); }
.faq-q-wrap { margin: 0; font-size: inherit; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: clamp(16px, 1.5vw, 22px) clamp(16px, 1.8vw, 26px);
  border-radius: var(--r);
  text-align: left;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  line-height: 1.2;
}
.faq-q:focus-visible { outline: 2px solid var(--black); outline-offset: -2px; }
.faq-icon {                              /* plus that turns into a minus */
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  transition: background .25s, color .25s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--black); color: var(--white); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
@media (hover: hover) { .faq-q:hover .faq-icon { background: var(--accent); color: var(--white); } }

.faq-a-inner p {
  margin: 0;
  padding: 0 clamp(16px, 1.8vw, 26px) clamp(18px, 1.6vw, 24px);
  max-width: 46em;
  font-size: 15px;
  line-height: 1.55;
  color: #333;
}
.faq--js .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq--js .faq-a-inner { min-height: 0; overflow: hidden; }
.faq--js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq--js .faq-item:not(.is-open) .faq-a-inner { visibility: hidden; transition: visibility 0s .4s; }

@media (min-width: 1000px) {
  .faq { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
  .faq-head { position: sticky; top: var(--g); min-height: clamp(380px, 34vw, 520px); }
  .faq-cta { margin-top: auto; padding-top: 32px; }
  .faq-a-inner p { font-size: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .faq.will-reveal .faq-head,
  .faq.will-reveal .faq-item { opacity: 0; }
  .faq.is-in .faq-head { animation: rise .8s var(--ease) both; }
  .faq.is-in .faq-item { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
}
@media (prefers-reduced-motion: reduce) {
  .faq--js .faq-a, .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; }
}
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .faq { transition: opacity .3s ease; }
  .menu-open .faq { opacity: 0; pointer-events: none; }
}

/* ---------------------------------------------------------
   Footer: compact bento grid in the hero's language — same --g gaps, --r radius,
   grey/white/black tiles, one red accent tile. Desktop mirrors the hero's 3-2-3 rhythm.
   --------------------------------------------------------- */
.faq-item { scroll-margin-top: var(--g); }
.faq--instant .faq-a, .faq--instant .faq-a-inner { transition: none !important; }

.site-footer { padding: 0 var(--g) var(--g); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--g);
}
.footer-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 1.6vw, 26px);
  border-radius: var(--r);
  background: var(--panel);
  color: var(--black);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* brand: the black "feature" tile, spans both rows like the tall Découvrir card */
.footer-tile--brand {
  grid-column: 1; grid-row: 1 / 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: var(--black); color: var(--white);
  isolation: isolate;
}
.footer-tile--brand::after {             /* small outlined KO, like the features head */
  content: "KO";
  position: absolute; right: -.04em; bottom: -.24em; z-index: -1;
  font-size: clamp(90px, 9vw, 170px); font-weight: 900; font-variation-settings: "wdth" 75; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14);
  pointer-events: none;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { width: clamp(70px, 6vw, 104px); height: auto; }
.footer-brand-name {
  font-size: clamp(15px, 1.25vw, 20px); font-weight: 900; font-variation-settings: "wdth" 75;
  text-transform: uppercase; line-height: .92;
}
.footer-tagline {
  max-width: 26em; margin: 0;
  font-size: 13px; font-weight: 700; font-variation-settings: "wdth" 88; line-height: 1.35;
  color: rgba(255,255,255,.66);
}
.footer-wa {
  display: inline-flex; align-items: center; gap: .55em;
  height: 42px; margin-top: auto; padding: 0 1.2em 0 1em;
  border-radius: 99px; background: var(--accent); color: var(--white);
  font-size: 13.5px; font-weight: 800; white-space: nowrap;
  transition: background .2s, color .2s;
}
.footer-wa svg { width: 18px; height: 18px; flex: none; }
.footer-wa:hover { background: var(--white); color: var(--black); }

/* link tiles */
.footer-col-h {
  margin: 0 0 10px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-ink);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 0; }
.footer-col a:not(.footer-social-link) {
  display: inline-block; padding: 3px 0; line-height: 18px; background-origin: content-box;   /* 24px tap target (WCAG 2.5.8) */
  font-size: 14px; font-weight: 700; font-variation-settings: "wdth" 88;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .2s, background-size .3s var(--ease);
}
.footer-col a:not(.footer-social-link):hover { color: var(--accent); background-size: 100% 1px; }
.footer-tile--about {                    /* white card with hairline, like "Revendeur officiel" */
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.07);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px;
}
.footer-about-links { flex: 1 1 auto; }
.footer-follow { flex: 0 0 auto; }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-col .footer-social li + li { margin-top: 0; }
.site-footer .footer-social-link {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--black); color: var(--white);
  transition: background .2s, transform .2s var(--ease);
}
.footer-social-link svg { width: 17px; height: 17px; }
.site-footer .footer-social-link:hover { background: var(--accent); transform: translateY(-2px); }

/* perks: the red accent tile, compact */
.footer-tile--perks {
  grid-column: 2 / 5; grid-row: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px;
  padding-block: clamp(12px, 1.2vw, 18px);
  list-style: none;
  background: var(--accent); color: var(--white);
}
.footer-perk { display: flex; align-items: center; gap: 10px; min-width: 0; }
.footer-perk-ico {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.footer-perk-ico svg { width: 18px; height: 18px; }
.footer-perk strong { display: block; font-size: 13px; font-weight: 800; line-height: 1.15; }
.footer-perk small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 600; color: #fff; }

/* slim bottom bar */
.footer-tile--bottom {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding-block: 8px; padding-right: 8px;
  font-size: 12.5px; font-weight: 600; color: #555;
}
.footer-copy { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.footer-legal a:hover, .footer-faq-link:hover { color: var(--black); text-decoration: underline; }
.footer-faq-link { margin-left: auto; font-weight: 800; color: var(--black); }
.footer-top-btn {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--black); color: var(--white);
  transition: background .2s, transform .2s var(--ease);
}
.footer-top-btn svg { width: 17px; height: 17px; }
.footer-top-btn:hover { background: var(--accent); transform: translateY(-2px); }

/* tablet: 2 columns */
@media (max-width: 999px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-tile--brand {
    grid-column: 1 / -1; grid-row: auto;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 20px;
  }
  .footer-tile--brand .footer-wa { margin-top: 0; }
  .footer-tile--perks { grid-column: auto; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
  .footer-tile--about { align-content: flex-start; }
}
/* phones: 2-col compact (link tiles side by side, the rest full width) */
@media (max-width: 599px) {
  .footer-tile { padding: 14px; }
  .footer-tile--brand { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .footer-tile--brand .footer-tagline { font-size: 12.5px; }
  .site-footer .footer-social-link { width: 32px; height: 32px; }
  .footer-tile--brand .footer-wa { justify-self: stretch; justify-content: center; }
  .footer-tile--about, .footer-tile--perks { grid-column: 1 / -1; }
  .footer-perk { gap: 8px; }
  .footer-perk small { display: none; }  /* keep the red tile to one line per perk */
  .footer-tile--bottom { gap: 6px 14px; padding: 10px 8px 10px 14px; }
  .footer-copy { flex: 1 1 100%; }
  .footer-faq-link { margin-left: 0; }
  .footer-top-btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-social-link, .footer-top-btn, .footer-col a { transition: none; }
  .site-footer .footer-social-link:hover, .footer-top-btn:hover { transform: none; }
}
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .site-footer { transition: opacity .3s ease; }
  .menu-open .site-footer { opacity: 0; pointer-events: none; }
}

/* =========================================================
   Real catalogue (knockoutboxinggear.com): size picker on the cards,
   FAQ size table, contact lines, "DH" deco on the promo card
   ========================================================= */
.promo-deco--dh { font-size: min(26vh, 13vw); top: -.08em; right: -.04em; }
@media (max-width: 860px) { .promo-deco--dh { font-size: min(30vw, 17vh); top: -.06em; } }

.product-opt {
  position: relative;
  z-index: 2;                               /* above the card-wide product link */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5c5c5c;
}
.product-size {
  appearance: none;
  -webkit-appearance: none;
  height: 30px;
  padding: 0 28px 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 99px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23141414' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 12px;
  color: var(--black);
  font: inherit;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: none;
  cursor: pointer;
}
.product-size:hover { border-color: var(--black); }
.product-size:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }

.faq-table-wrap { padding: 0 clamp(16px, 1.8vw, 26px) clamp(18px, 1.6vw, 24px); overflow-x: auto; }
.faq-table { width: 100%; max-width: 40em; border-collapse: collapse; font-size: 14px; color: #333; }
.faq-table th, .faq-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #e3e3e3; white-space: nowrap; }
.faq-table th { font-size: 11px; font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; letter-spacing: .06em; color: #5c5c5c; }
.faq-table td:first-child { font-weight: 800; color: var(--black); }
.faq-a-inner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.faq-mail {
  display: table; margin-top: 12px;
  font-size: 13px; font-weight: 700; font-variation-settings: "wdth" 88;
  color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.faq-mail:hover { color: var(--white); }

.site-footer .footer-contact { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 14px; font-size: 12.5px; font-weight: 700; font-variation-settings: "wdth" 88; color: rgba(255,255,255,.66); }
.site-footer .footer-contact a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* =========================================================
   Legal pages (mentions-legales.html, cgv.html, confidentialite.html)
   same bento language: white frame, black title tile, grey text tile
   ========================================================= */
.legal-page { min-height: 100vh; }
.legal-wrap {
  --lg: clamp(6px, 1.2vw, 14px);
  --lr: clamp(14px, 2vw, 28px);
  max-width: 1100px; margin: 0 auto; padding: var(--lg);
  display: grid; gap: var(--lg);
}
.legal-hero {
  position: relative; overflow: hidden;
  padding: clamp(22px, 4vw, 52px) clamp(18px, 3.4vw, 46px);
  background: var(--black); color: var(--white); border-radius: var(--lr);
}
.legal-hero::after {
  content: "KO"; position: absolute; right: -.06em; bottom: -.26em;
  font-size: clamp(120px, 22vw, 260px); font-weight: 900; font-variation-settings: "wdth" 70; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.16); pointer-events: none;
}
.legal-tag {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .5em .85em .45em .7em; border-radius: 99px;
  background: var(--white); color: var(--black);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.legal-dot { width: .55em; height: .55em; border-radius: 50%; background: var(--accent); }
.legal-h {
  position: relative; z-index: 1; margin: .35em 0 .15em;
  font-size: clamp(40px, 8vw, 96px); font-weight: 900; font-variation-settings: "wdth" 70;
  line-height: .92; text-transform: uppercase; overflow-wrap: anywhere;
}
.legal-sub { position: relative; z-index: 1; max-width: 34em; margin: 0; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.72); }
.legal-nav { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.legal-nav a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 1em; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.3); color: var(--white);
  font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em;
  transition: background .25s ease, border-color .25s ease;
}
.legal-nav a:hover { border-color: var(--white); }
.legal-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); }
.legal-body {
  min-width: 0;
  padding: clamp(20px, 3.6vw, 52px) clamp(18px, 4vw, 60px);
  background: var(--panel); border-radius: var(--lr);
  font-size: 15.5px; line-height: 1.62; color: #2a2a2a;
  font-variation-settings: "wdth" 92;
}
.legal-body > *, .legal-body section > * { max-width: 46em; }
.legal-body section { max-width: none; }
.legal-body section + section { margin-top: 44px; padding-top: 36px; border-top: 2px solid #cfcfcf; }
.legal-body h2 {
  margin: 1.6em 0 .55em; font-size: clamp(24px, 3vw, 34px); font-weight: 900; font-variation-settings: "wdth" 72;
  line-height: 1; text-transform: uppercase; color: var(--black);
}
.legal-body > h2:first-child, .legal-body section > h2:first-child { margin-top: 0; }
.legal-body h3, .legal-body h4 {
  margin: 1.7em 0 .4em; font-size: 15px; font-weight: 900; font-variation-settings: "wdth" 84;
  text-transform: uppercase; letter-spacing: .03em; color: var(--black);
}
.legal-body p { margin: 0 0 .75em; }
.legal-body ul, .legal-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.legal-body li { margin: .25em 0; }
.legal-body li::marker { color: var(--accent); }
.legal-body a { color: var(--black); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body strong { color: var(--black); }
.legal-toc { margin-bottom: 36px; padding: 18px 22px; background: var(--white); border-radius: calc(var(--lr) * .7); }
.legal-toc ol { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.legal-toc a { font-weight: 800; text-decoration: none; text-transform: uppercase; font-size: 13.5px; letter-spacing: .03em; }
.legal-toc a:hover { color: var(--accent); }
@media (max-width: 560px) {
  .legal-body { font-size: 15px; }
}
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-toc ol { list-style: none; padding: 0; counter-reset: toc; }
.legal-toc li { display: flex; align-items: baseline; gap: .45em; margin: 0; counter-increment: toc; }
.legal-toc li::before { content: counter(toc, decimal-leading-zero); flex: none; color: var(--accent); font-weight: 900; }
.legal-text { min-width: 0; max-width: 46em; }
.legal-text > h2:first-child, .legal-text > section:first-child > h2:first-child { margin-top: 0; }
/* desktop: sommaire in its own sticky column, text beside it (one grey tile, like the FAQ) */
@media (min-width: 1100px) {
  .legal-body { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); align-items: start; }
  .legal-body > .legal-toc { position: sticky; top: calc(var(--header-h) + var(--g) * 3); margin: 0; max-height: calc(100vh - var(--header-h) - var(--g) * 6); overflow-y: auto; }
  .legal-toc ol { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
  .legal-toc a { display: inline; font-size: 13px; line-height: 1.3; }
  .legal-toc li { font-size: 13px; }
}
@media (max-width: 560px) {
  .faq-table { font-size: 13px; }
  .faq-table th, .faq-table td { padding: 7px 5px; }
  .faq-table th { white-space: normal; font-size: 10px; }
}

/* =========================================================
   Collection tiles: real Rival product photo in each one
   (desktop dropdown: small thumb on the left; mobile menu: photo in the tile, label kept clear below)
   ========================================================= */
.drop-thumb {
  flex: none;
  width: 34px; height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  transition: transform .35s var(--ease);
}
.drop-lbl { flex: 1; white-space: nowrap; }
.drop-menu a:hover .drop-thumb { transform: scale(1.08); }
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .drop-menu a { position: relative; overflow: hidden; isolation: isolate; }
  .drop-menu a::before, .drop-menu a::after { z-index: 2; }
  .drop-thumb {
    position: absolute;
    z-index: 0;
    top: 10px; right: 10px;
    width: 72%;
    height: calc(100% - 24px - 2.3em);     /* leaves room for a two-line label */
    object-fit: contain;
    object-position: right center;
    border-radius: 0;
    background: none;
    transition: transform .5s var(--ease);
  }
  .drop-lbl { position: relative; z-index: 1; flex: 0 1 auto; min-width: 0; white-space: normal; }
  .drop-menu a:hover .drop-thumb, .drop-menu a:active .drop-thumb { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .drop-thumb { transition: none; } .drop-menu a:hover .drop-thumb { transform: none; } }

/* =========================================================
   Sticky header: fixed to the top on every screen size.
   The page grid keeps its first row as the header's slot, so the hero
   doesn't move; once the page scrolls (.is-scrolled, set by script.js)
   the bar eases down to a slightly shorter height. No strip behind it:
   it stays transparent, only its own tiles show.
   ========================================================= */
@property --header-h { syntax: "<length>"; inherits: true; initial-value: 52px; }
:root { --header-h-s: clamp(38px, 5.6vh, 56px); }
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  :root { --header-h-s: clamp(38px, 5.4vh, 46px); }
}
/* anchors land below the (compact) header with a little air */
html { scroll-padding-top: calc(var(--header-h-s) + var(--g) * 2 + 10px); }

.header {
  position: fixed;
  top: var(--g); left: var(--g); right: var(--g);
  height: var(--header-h);
  z-index: 40;                 /* above page content; the cart drawer (60/61) still covers it */
}
.page > .hero { grid-row: 2; }
.header::before {
  content: "";
  position: absolute;
  inset: calc(var(--g) * -1);
  z-index: -1;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
}
.header.is-scrolled { --header-h: var(--header-h-s); }
/* stuck header has no background of its own: the bar's tiles float over the page */
.header.is-scrolled::before { opacity: 0; }
/* the open mobile sheet sits on plain white (page behind is faded out anyway) */
.menu-open .header::before { box-shadow: none; background: var(--frame); -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .header.is-scrolled::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .header { transition: --header-h .35s var(--ease); }
  .header::before { transition: opacity .3s ease; }
}

/* =========================================================
   Menu (task 21): Gants (+ submenu) / Protecteur corporel / À propos / Contact
   ========================================================= */
.drop-head { display: inline-flex; align-items: center; gap: .1em; }
.drop-toggle {
  display: grid; place-items: center;
  width: 1.9em; height: 1.9em;
  font-size: clamp(11px, 1.6vh, 16px);
  border-radius: 50%;
  transition: background-color .2s ease;
}
.drop-toggle svg { width: 1.25em; height: 1.25em; transition: transform .25s ease; }
.drop-toggle:focus-visible { outline: 2px solid var(--black); outline-offset: 1px; }
.nav-link.is-current::after { transform: scaleX(1); }
.drop-menu { min-width: 220px; }
@media (hover: hover) and (pointer: fine) {
  .drop-toggle:hover { background: var(--panel-2); }
}

@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  /* Gants (with its tiles) / Protecteur / À propos / Contact / promo */
  .nav {
    --spare: calc(var(--nav-h) - 3 * var(--row) - 4 * var(--g));
    grid-template-rows: calc(var(--spare) - var(--promo)) var(--row) var(--row) var(--row) var(--promo);
  }
  .nav:has(.nav-drop:not(.is-open)) { grid-template-rows: var(--row) var(--row) var(--row) var(--row) calc(var(--spare) - var(--row)); }
  .nav .drop-head {
    display: flex; align-items: center;
    height: var(--row);
    padding: 0 calc((var(--row) - var(--dot)) / 2) 0 calc(var(--r) * 1.05);
  }
  .nav .drop-link {
    flex: 1; align-self: stretch;
    padding: 0; gap: 0;
    justify-content: flex-start;
    font-size: clamp(22px, 7vw, 32px);
    font-weight: 900;
    font-variation-settings: "wdth" 76;
    letter-spacing: -.005em;
  }
  .nav .drop-toggle { flex: none; width: var(--dot); height: var(--dot); padding: 0; font-size: inherit; display: block; }
  .nav .drop-toggle svg { display: block; margin: 0; }
  .nav-drop.is-open .drop-toggle svg { transform: rotate(180deg); }
  .nav .is-current .nav-num { color: var(--accent); }
  /* two photo tiles + a full-width "all gloves" bar under them */
  .drop-menu { grid-template-rows: minmax(clamp(64px, 10vh, 96px), 1fr) auto; grid-auto-rows: auto; }
  .drop-menu li.drop-li-all { order: 3; grid-column: 1 / -1; --n: 2; }
  .drop-menu li:nth-child(2) { --n: 0; }
  .drop-menu li:nth-child(3) { --n: 1; }
  .drop-menu a.drop-all {
    flex-direction: row; align-items: center; justify-content: space-between;
    min-height: 46px; padding: 12px 14px;
    background: var(--black); color: var(--white);
    font-size: clamp(13px, 3.8vw, 16px);
  }
  .drop-menu a.drop-all:hover, .drop-menu a.drop-all:active { background: #222; }
  .drop-menu a.drop-all::before { content: none; }
  .drop-menu a.drop-all::after { position: static; flex: none; filter: invert(1); }
  .drop-menu a.drop-all .drop-thumb { display: none; }
  @media (prefers-reduced-motion: no-preference) {
    .menu-open .nav > :nth-child(6) { animation-delay: .16s; }
  }
  .sub-main, .legal-wrap { transition: opacity .3s ease; }
  .menu-open .sub-main, .menu-open .legal-wrap { opacity: 0; pointer-events: none; }
}

/* =========================================================
   Sub pages (gants, à propos, contact, legal): fixed header + spacer
   ========================================================= */
.subpage { padding-top: calc(var(--header-h) + var(--g) * 2); }
/* legal pages share the sub-page geometry: full width, --g gaps, --r corners, site footer below */
.legal-page.subpage .legal-wrap { --lg: var(--g); --lr: var(--r); max-width: none; padding: 0 var(--g) calc(var(--g) * 2); }
.sub-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); padding: 0 var(--g) calc(var(--g) * 2); }
.subpage .site-footer { margin-top: 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 18px; padding: 0; list-style: none; font-size: 12px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .05em; color: #5c5c5c; }
.crumbs li + li::before { content: "/"; margin-right: .5em; color: #aaa; }
.crumbs a:hover { color: var(--black); text-decoration: underline; }
.crumbs [aria-current] { color: var(--black); }

.sub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--g);
  min-height: clamp(260px, 36vw, 460px);
}
.sub-hero-txt {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(20px, 3vw, 44px);
  background: var(--panel);
  border-radius: var(--r);
  min-width: 0;
}
.sub-hero .promo-tag { margin: 0 0 12px; font-size: 12px; }
.sub-h {
  font-size: clamp(56px, 10vw, 150px);
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.sub-h--long { font-size: clamp(34px, 4.6vw, 72px); line-height: .92; }
.sub-lead { margin-top: .8em; max-width: 34em; font-size: clamp(15px, 1.3vw, 19px); font-weight: 700; font-variation-settings: "wdth" 88; color: #555; }
.sub-meta { display: flex; align-items: center; gap: .55em; margin-top: 1.2em; font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; }
.sub-meta-sep { white-space: pre; margin-right: -.55em; }
.sub-hero-media { border-radius: var(--r); overflow: hidden; background: #111; min-height: 0; }
.sub-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.sub-hero--gants .sub-hero-media img { object-position: 70% 30%; }
.sub-hero--protecteur .sub-hero-media img { object-position: 50% 40%; }
.product-grid .product[hidden] { display: none; }
.chip--colour { padding-left: 1em; }
.chip-sw { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); flex: none; }
.chip[aria-pressed="true"] .chip-sw { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.sub-hero--dark .sub-hero-txt { background: var(--black); color: var(--white); }
.sub-hero--dark .crumbs ol { color: rgba(255,255,255,.55); }
.sub-hero--dark .crumbs [aria-current], .sub-hero--dark .crumbs a:hover { color: var(--white); }
.sub-hero--dark .sub-lead { color: rgba(255,255,255,.72); }
.sub-hero--dark .promo-tag { background: var(--white); color: var(--black); }   /* white tag on black, like the gloves banner */
.sub-hero--solo { grid-template-columns: minmax(0, 1fr); min-height: clamp(240px, 30vw, 400px); }

/* outlined "KO" watermark — the mark of the footer, the gloves banner and the legal hero — on the
   full-width dark heroes, the dark "next steps" tile (merci) and the product description tile */
.sub-hero--dark.sub-hero--solo .sub-hero-txt, .merci-next { position: relative; overflow: hidden; isolation: isolate; }
.sub-hero--dark.sub-hero--solo .sub-hero-txt::after, .merci-next::after, .pp-desc::after {
  content: "KO"; position: absolute; right: -.06em; bottom: -.26em; z-index: -1;
  font-size: clamp(140px, 22vw, 340px); font-weight: 900; font-variation-settings: "wdth" 70; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.16); pointer-events: none;
}
.sub-hero--dark.nf-hero .sub-hero-txt::after { content: "404"; }
.merci-next::after { font-size: clamp(140px, 16vw, 260px); }
.pp-desc::after { display: none; font-size: clamp(150px, 15vw, 260px); -webkit-text-stroke-color: #bdbdbd; }
@media (min-width: 700px) {        /* two columns: the description tile stretches beside the specs */
  .pp-desc { position: relative; overflow: hidden; isolation: isolate; }
  .pp-desc::after { display: block; }
}

/* gants: filters + grid */
.shop-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px;
  padding: calc(var(--g) * 1.2);
  background: var(--panel);
  border-radius: var(--r);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .6em;
  height: 44px; padding: 0 1.1em 0 1.3em;
  border-radius: 99px;
  background: var(--white);
  font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84;
  text-transform: uppercase; letter-spacing: .04em;
  transition: background-color .2s ease, color .2s ease;
}
.chip span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--panel-2); font-size: 11px; }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); }
.chip[aria-pressed="true"] span { background: var(--accent); color: var(--white); }
.chip:focus-visible, .sort select:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #555; }
.sort select {
  height: 44px; padding: 0 2.4em 0 1.1em;
  border: 0; border-radius: 99px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
  -webkit-appearance: none; appearance: none;
  font: inherit; font-size: 13px; color: var(--black);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .chip:not([aria-pressed="true"]):hover { background: var(--panel-2); }
}
.cat-group { display: grid; gap: var(--g); }
.cat-group[hidden] { display: none; }
.cat-group-head { padding: clamp(18px, 2.4vw, 34px); background: var(--panel); border-radius: var(--r); }
.cat-group-head .promo-tag { margin: 0; font-size: 12px; }
.cat-group-h {
  display: flex; align-items: flex-start; gap: .25em;
  margin-top: .2em;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 800; font-variation-settings: "wdth" 80;
  text-transform: uppercase; line-height: .88; letter-spacing: -.01em;
}
.cat-group-n { font-size: .32em; line-height: 1; padding-top: .2em; color: var(--accent-ink); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: var(--g);
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* à propos */
.about-story, .about-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); }
.about-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(22px, 3vw, 44px);
  background: var(--panel);
  border-radius: var(--r);
  min-width: 0;
}
.about-card p, .about-split-txt p { max-width: 36em; font-size: clamp(15px, 1.2vw, 18px); font-weight: 600; line-height: 1.5; color: #333; }
.about-num {
  font-size: clamp(54px, 7vw, 104px); font-weight: 900; font-variation-settings: "wdth" 70; line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px #bdbdbd;
}
.about-h { font-size: clamp(26px, 2.8vw, 44px); font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; line-height: .95; letter-spacing: -.005em; }
.about-h--big { font-size: clamp(32px, 4vw, 64px); }
.about-band {
  padding: clamp(28px, 5vw, 72px) clamp(22px, 4vw, 60px);
  background: var(--accent); color: var(--white);
  border-radius: var(--r);
}
.about-band-h { font-size: clamp(36px, 6.4vw, 104px); font-weight: 800; font-variation-settings: "wdth" 76; text-transform: uppercase; line-height: .88; letter-spacing: -.01em; }
.about-band p { margin-top: .8em; max-width: 34em; font-size: clamp(15px, 1.4vw, 20px); font-weight: 700; color: rgba(255,255,255,.85); }
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--g); }
.about-split-media { border-radius: var(--r); overflow: hidden; min-height: clamp(240px, 30vw, 440px); background: #111; }
.about-split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; }
.about-split-txt { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: clamp(22px, 3vw, 44px); background: var(--panel); border-radius: var(--r); }
.about-split-txt .promo-tag { margin: 0; font-size: 12px; color: var(--white); }
.about-card--accent { background: var(--black); color: var(--white); }
.about-card--accent p { color: rgba(255,255,255,.78); }
.champs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.champs li { padding: .7em 1.1em; border-radius: 99px; background: var(--white); font-size: 14px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .03em; }
.pill-btn {
  display: inline-flex; align-items: center; gap: .6em;
  height: 50px; margin-top: auto; padding: 0 1.3em 0 1.6em;
  border-radius: 99px;
  background: var(--black); color: var(--white);
  font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84;
  text-transform: uppercase; letter-spacing: .04em;
  transition: background-color .2s ease, transform .2s ease;
}
.pill-btn svg { width: 1.2em; height: 1.2em; }
.pill-btn--light { background: var(--white); color: var(--black); }
.pill-btn:hover { background: var(--accent); color: var(--white); }
.pill-btn:active { transform: scale(.97); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.contact-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 200px; min-width: 0;
  padding: clamp(18px, 2vw, 28px);
  background: var(--panel);
  border-radius: var(--r);
  transition: background-color .2s ease;
}
.contact-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: auto; border-radius: 50%; background: var(--white); }
.contact-ico svg { width: 22px; height: 22px; }
.contact-lbl { margin-top: 18px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.contact-val { font-size: clamp(16px, 1.4vw, 21px); font-weight: 800; font-variation-settings: "wdth" 84; line-height: 1.15; overflow-wrap: anywhere; }
.contact-go { position: absolute; top: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: var(--white); transition: transform .3s var(--ease); }
.contact-go svg { width: 44%; height: 44%; }
a.contact-card:hover .contact-go { transform: translateX(3px); }
a.contact-card:hover { background: var(--panel-2); }
.contact-card--wa { background: var(--accent); color: var(--white); }
.contact-card--wa .contact-lbl { color: rgba(255,255,255,.75); }
.contact-card--wa .contact-ico { background: rgba(255,255,255,.16); }
.contact-card--wa .contact-go { background: var(--white); color: var(--black); }
a.contact-card--wa:hover { background: var(--accent); filter: brightness(1.06); }
.contact-card--social { justify-content: flex-end; }
.contact-card--social .contact-lbl { margin: 0 0 auto; }
.contact-social { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; font-weight: 800; font-variation-settings: "wdth" 84; }
.contact-social svg { flex: none; width: 22px; height: 22px; }
.contact-social:hover span { text-decoration: underline; }
.contact-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--g); }
.contact-form, .contact-faq { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 44px); background: var(--panel); border-radius: var(--r); min-width: 0; }
.contact-note { font-size: 14px; font-weight: 600; color: #555; line-height: 1.45; }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #555; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 0; border-radius: calc(var(--r) * .6);
  background: var(--white);
  font: inherit; font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--black);
  resize: vertical;
}
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--black); outline-offset: 0; }
.contact-form .pill-btn { margin-top: 6px; align-self: flex-start; }
.contact-faq ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.contact-faq li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border-radius: calc(var(--r) * .6);
  background: var(--white);
  font-size: 15px; font-weight: 800; font-variation-settings: "wdth" 86;
}
.contact-faq li a svg { flex: none; width: 18px; height: 18px; }
.contact-faq li a:hover { background: var(--panel-2); }
.contact-faq .pill-btn { align-self: flex-start; }

@media (max-width: 1100px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sub-hero, .about-story, .about-grid2, .about-split, .contact-split { grid-template-columns: minmax(0, 1fr); }
  .sub-hero-media { aspect-ratio: 16 / 9; max-height: 260px; width: 100%; }
  .sub-hero--gants .sub-hero-media img { object-position: 78% 30%; }
  .shop-bar { align-items: stretch; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid .product { --btn: 40px; --pad: calc(var(--g) * .8); }
  .product-grid .product-name { font-size: 16px; }
  .product-grid .product-info { padding-left: 2px; padding-right: 2px; padding-bottom: calc(var(--btn) + 4px); }
  .product-grid .product-tags { top: 8px; left: 8px; }
  .product-grid .product-idx { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--g) * -1.2); padding: 0 calc(var(--g) * 1.2); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 40px; padding: 0 .8em 0 1em; gap: .45em; font-size: 11.5px; }
  .sub-meta { flex-wrap: wrap; row-gap: 4px; }
  .sub-meta span[id] { white-space: nowrap; }
  .shop-bar { flex-direction: column; flex-wrap: nowrap; }
  .chips { min-width: 0; }
  .sort { justify-content: space-between; }
  .sort select { flex: 1; max-width: 220px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-card { min-height: 0; }
  .contact-ico { margin-bottom: 0; }
  .contact-lbl { margin-top: 10px; }
}

/* =========================================================
   Promo code KOBG26: hero card, copy button, cart field
   ========================================================= */
.promo-deco--pct { font-size: min(30vh, 15vw); top: -.1em; right: -.02em; }
@media (max-width: 860px) { .promo-deco--pct { font-size: min(38vw, 20vh); top: -.1em; right: -.04em; } }

.promo-code-row { margin-top: .7em; display: flex; }
.promo-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42em .63em .42em .75em; /* right side minus the trailing letter-spacing */
  border: 2px dashed var(--black);
  border-radius: 10px;
  background: var(--white);
  font-size: clamp(14px, min(2.9vh, 1.75vw), 26px);
  line-height: 1;
}
.promo-code-txt {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  letter-spacing: .12em;
}
@media (max-width: 860px) {
  .promo-code { font-size: min(4.4vw, 2.5vh); border-radius: 8px; }
  .promo-code-row { margin-top: .55em; }
}

/* hero copy button (replaces the arrow): copy icon -> check for 1.8s */
.copy-btn { cursor: pointer; color: var(--black); }
.copy-btn svg { width: 44%; height: 44%; grid-area: 1 / 1; }
.copy-btn .check-ico { opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .3s var(--ease); }
.copy-btn .copy-ico { transition: opacity .2s ease, transform .3s var(--ease); }
.copy-btn.is-copied { background: var(--black); color: var(--white); }
.copy-btn.is-copied .copy-ico { opacity: 0; transform: scale(.5); }
.copy-btn.is-copied .check-ico { opacity: 1; transform: none; }
@media (hover: hover) {
  .copy-btn:hover svg { transform: none; }
  .copy-btn:hover .copy-ico { transform: scale(1.08); }
  .copy-btn.is-copied:hover { background: var(--black); }
}
.copy-btn:active { transform: scale(.94); }

/* cart: promo field + totals */
.cart-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #444;
}
.cart-line[hidden] { display: none; }
.cart-line strong { font-size: 15px; font-weight: 800; color: var(--black); letter-spacing: 0; white-space: nowrap; }
.cart-line--sub { color: var(--black); }
#cartDiscountLine strong { color: var(--accent); }
.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1.5px solid #cfcfcf;
  font-size: 15px;
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cart-total strong { font-size: 28px; font-weight: 900; letter-spacing: 0; }
.cart-promo { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 8px; border-top: 1.5px solid #cfcfcf; border-bottom: 1.5px solid #cfcfcf; }
.cart-promo-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #555; }
.cart-promo-row { display: flex; gap: 8px; }
.cart-promo-row[hidden], .cart-promo-on[hidden] { display: none; }
.cart-promo-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #bdbdbd;
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cart-promo-input::placeholder { color: #9a9a9a; letter-spacing: .04em; }
.cart-promo-input:focus-visible { outline: 2px solid var(--black); outline-offset: 1px; border-color: var(--black); }
.cart-promo-input[aria-invalid="true"] { border-color: var(--accent); }
.cart-promo-apply {
  flex: none;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  font-variation-settings: "wdth" 84;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cart-promo-apply:active { scale: .97; }
.cart-promo-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-promo-chip {
  padding: 7px 10px;
  border: 1.5px dashed var(--black);
  border-radius: 8px;
  background: var(--white);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}
.cart-promo-remove {
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-promo-remove:hover { color: var(--accent); }
.cart-promo-msg { font-size: 12px; font-weight: 700; color: #2a7a2a; min-height: 0; }
.cart-promo-msg:empty { display: none; }
.cart-promo-msg.is-error { color: var(--accent); }
@media (min-width: 861px) { .panel--promo .promo-code-row { margin-top: .55em; } }
/* desktop: content sits bottom-left beside the shop notch, so the taller code card never hits the top edge */
@media (min-width: 861px) {
  .panel--promo { justify-content: flex-end; padding-bottom: calc(var(--r) * .75); }
}
@media (max-width: 860px) and (max-height: 720px) {
  .promo-big { font-size: min(12vw, 6.2vh); }
  .promo-sub { font-size: min(3vw, 1.7vh); margin-top: .25em; }
  .promo-code { font-size: min(4vw, 2.2vh); }
  .promo-code-row { margin-top: .4em; }
}

/* ---------------------------------------------------------
   Copy tab: round top, bottom merged into the promo card
   --------------------------------------------------------- */
.copy-tab {
  --fr: calc(var(--r) + var(--g));           /* concentric with the video panel corner */
  grid-column: 1; grid-row: 2;
  align-self: start; justify-self: start;
  position: relative; z-index: 4;
  width: var(--tab);
  height: calc(var(--tab) + var(--g) + 1px);
  margin-top: calc(-1 * (var(--tab) + var(--g)));
  padding: 0 0 calc(var(--g) + 1px);
  border: 0;
  border-radius: calc(var(--tab) / 2) calc(var(--tab) / 2) 0 0;
  background: var(--promo-bg);
  color: var(--white);
  display: grid; place-items: center;
}
.copy-tab::after {
  content: "";
  position: absolute;
  left: calc(100% - .5px); bottom: 0;
  width: var(--fr);
  height: calc(var(--fr) + 1px);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--fr) - .5px), var(--promo-bg) var(--fr));
  pointer-events: none;
}
.copy-tab svg { width: 40%; height: 40%; transition: opacity .2s ease, transform .3s var(--ease); }
.copy-tab.is-copied { background: var(--promo-bg); color: var(--accent-on-dark); }
.copy-tab:active { transform: none; }
.copy-tab:active svg { transform: scale(.88); }
.copy-tab:focus-visible { outline-color: var(--white); outline-offset: -4px; }
.panel--promo { border-top-left-radius: 0; }
@media (hover: hover) {
  .copy-tab:hover { background: var(--promo-bg); }
  .copy-tab.is-copied:hover { background: var(--promo-bg); }
}
@media (prefers-reduced-motion: no-preference) {
  .copy-tab { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
}

/* ---------------------------------------------------------
   Promo card + copy tab: dark theme (one continuous black shape)
   --------------------------------------------------------- */
.hero { --promo-bg: var(--black); --accent-on-dark: #ff4a52; }
.panel--promo { background: var(--promo-bg); color: var(--white); }
.panel--promo .shop-btn { color: var(--black); }              /* neighbouring tile stays light */
.panel--promo .promo-deco { -webkit-text-stroke-color: #3a3a3a; }
.panel--promo .promo-tag { background: var(--white); color: var(--black); }
.panel--promo .promo-code { background: transparent; border-color: var(--white); color: var(--white); }
@media (hover: hover) {
  .panel--promo:hover .promo-deco { -webkit-text-stroke-color: #555; }
}

/* =========================================================
   Mobile polish (phones + portrait tablets only; desktop untouched)
   tap targets >= 44px, 16px form text (no iOS zoom), fluid type,
   tighter sub-hero, compact cart drawer with a pinned order bar,
   safe-area padding, overflow guard
   ========================================================= */
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  html, body { overflow-x: clip; }

  /* header: burger + cart keep their look, the hit area grows to >= 44px */
  .burger::after, .cart-btn::after, .acct-btn::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; }

  /* hero: CTA is a real 44px target (the promo code chip is display-only; the tab copies) */
  .discover-btn { height: clamp(44px, 5.2vh, 48px); }
  .search input { height: 100%; }
  .faq-mail { margin-top: 0; padding: 15px 0; }

  /* best-seller cards: 16px size picker (iOS would zoom under 16px), 44px tall */
  .product-size { height: 44px; padding: 0 30px 0 14px; font-size: 16px; background-position: right 11px center; }
  .product-opt { gap: 6px; }

  /* best-seller slider: snap straight to a card, no rubber-band into the page */
  .carousel { overscroll-behavior-x: contain; scroll-padding-inline: var(--g); }
  .product { scroll-snap-stop: always; }

  /* toasts float above the cart drawer and clear the home indicator */
  .toast { z-index: 70; bottom: calc(var(--g) * 2.5 + env(safe-area-inset-bottom, 0px)); }
}

/* touch screens: every select / text field at 16px (no zoom on focus) */
@media (pointer: coarse) {
  .sort select, .product-size, .cart-promo-input { font-size: 16px; }
}

@media (max-width: 860px) {
  /* sub pages: shorter hero photo so the content starts higher */
  .sub-hero { min-height: 0; }
  .sub-hero-media { aspect-ratio: 2 / 1; max-height: 220px; }

  /* breadcrumb + legal tabs: 44px tap rows without moving the layout */
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -15px; }
  .legal-nav a { height: 44px; }
  .legal-toc a { display: inline-flex; align-items: center; min-height: 44px; }
  .legal-toc ol { row-gap: 0; }
  .contact-social { min-height: 44px; padding: 4px 0; }
  .legal-body li > a:only-child { display: inline-block; padding: 12px 0; margin-block: -10px; }
}

@media (max-width: 599px), (max-width: 999px) and (pointer: coarse) {
  /* footer: link rows, round buttons and the WhatsApp pill at >= 44px */
  .footer-col li + li { margin-top: 0; }
  .footer-col a:not(.footer-social-link) { display: inline-block; min-width: 44px; padding: 12px 0; line-height: 20px; background-origin: content-box; }
  .footer-col-h { margin-bottom: 2px; }
  .site-footer .footer-social-link { width: 44px; height: 44px; }
  .footer-social { gap: 8px; }
  .footer-top-btn { width: 44px; height: 44px; }
  .footer-tile--brand .footer-wa { height: 48px; }
  .footer-legal { gap: 0; margin-left: -10px; }
  .footer-legal a, .footer-faq-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; }
  .footer-tile--bottom { column-gap: 4px; }
  .footer-brand { min-height: 44px; }
  .site-footer .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -14px; position: relative; }
  .site-footer .footer-contact { margin-block: 14px 18px; }
  .footer-tile--bottom { row-gap: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
  /* fluid sub-page titles: big, but never more than about two lines */
  .sub-h { font-size: clamp(44px, 14vw, 60px); }
  .sub-h--long { font-size: clamp(34px, 10.4vw, 46px); }
  .sub-hero-txt { padding: 20px 18px 22px; }
  /* gants meta: "25 produits" on its own line, no orphaned separator */
  .sub-meta .sub-meta-sep { display: none; }
  .sub-meta .sub-meta-rest { flex: 1 1 100%; }

  /* gants grid: 44px add button, 44px filter chips that snap while scrolling */
  .product-grid .product { --btn: 44px; }
  .product-grid .product-info { padding-bottom: calc(var(--btn) + 6px); }
  .chips { scroll-snap-type: x proximity; scroll-padding-inline: calc(var(--g) * 1.2); overscroll-behavior-x: contain; }
  .chip { height: 44px; scroll-snap-align: start; }
  .sort select { height: 44px; font-size: 16px; }

  /* cart drawer: compact head + items so more of the list shows; the totals and
     "Commander sur WhatsApp" stay pinned at the bottom, clear of the home bar */
  .cart { bottom: calc(var(--g) + env(safe-area-inset-bottom, 0px)); }
  .cart-head { padding: 12px 12px 12px 16px; align-items: center; }
  .cart-title { margin-top: 8px; font-size: 30px; }
  .cart-item { padding: 8px 6px 8px 8px; gap: 10px; }
  .cart-item-img { width: 56px; height: 70px; }
  .cart-item-info { gap: 4px; }
  .qty { gap: 0; padding: 0; margin-top: 0; }
  .qty-btn { position: relative; isolation: isolate; width: 44px; height: 44px; background: none; color: var(--white); }
  .qty-btn::before { content: ""; position: absolute; inset: 6px; z-index: -1; border-radius: 50%; background: var(--black); }
  .qty-btn svg { width: 32%; height: 32%; }
  .qty-val { min-width: 22px; }
  .cart-item-side { gap: 4px; }
  .cart-remove { width: 44px; height: 44px; margin: -4px -4px 0 0; }
  .cart-item-total { padding-right: 4px; }
  .cart-foot { gap: 7px; padding: 12px 14px 4px; }
  .cart-total strong { font-size: 24px; }
  .cart-total { padding-top: 6px; }
  .cart-promo { padding: 8px 0 6px; gap: 5px; }
  .cart-promo-input { height: 44px; font-size: 16px; }
  .cart-promo-apply { height: 44px; }
  .cart-promo-remove { min-height: 44px; padding: 0 6px; }
  .cart-note { font-size: 11px; line-height: 1.35; }
  .cart-checkout { height: 50px; margin-top: 2px; }
  .cart-continue { min-height: 44px; padding: 0 12px; }
}

/* short phones / landscape: the whole drawer scrolls instead of squeezing the list */
@media (max-width: 860px) and (max-height: 700px) {
  .cart { overflow-y: auto; overscroll-behavior: contain; }
  .cart-list { flex: none; overflow: visible; }
}

/* =========================================================
   Hero promo card, phones + portrait tablets (task 31)
   The card's type is sized from the card's own box (container
   units), not from vh, so it always fits whatever height the
   bento row gets - including iOS Safari, where 1vh is the
   *large* viewport and is taller than the 100dvh page.
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .hero { grid-template-rows: minmax(0, 42fr) minmax(0, 33fr) minmax(0, 25fr); }
  .hero .panel--promo {
    container-type: size;
    --nh: clamp(30px, 21cqh, 56px);   /* resolved on the children -> card units */
    --pt: clamp(6px, 6.5cqh, 18px);
    justify-content: center;
    padding: 0 calc(var(--r) * .8);
  }
  .hero .panel--promo .promo-tag { margin: var(--pt) 0 0; font-size: clamp(8px, min(5.4cqh, 6.2cqw), 12px); }
  .hero .panel--promo .promo-big { font-size: min(20cqh, 27cqw); margin-top: .1em; }
  .hero .panel--promo .promo-sub { font-size: clamp(9px, min(6.2cqh, 7.8cqw), 15px); margin-top: .3em; }
  .hero .panel--promo .promo-code-row { margin: clamp(4px, 3.6cqh, 12px) 0 calc(var(--nh) + var(--pt)); }
  .hero .panel--promo .promo-code { font-size: clamp(11px, min(7.2cqh, 9.6cqw), 20px); min-height: 0; border-radius: 8px; }
  .hero .panel--promo .promo-deco--pct { font-size: min(78cqh, 92cqw); }
  /* very short cards (tiny / landscape-ish viewports): drop the small print first */
  @container (max-height: 150px) {
    .hero .panel--promo .promo-sub { display: none; }
  }
}
/* landscape phones get the desktop bento with a very short promo row:
   same idea, type sized from the card box so nothing is clipped */
@media (min-width: 561px) and (orientation: landscape) and (max-height: 600px) {
  .hero .panel--promo { container-type: size; padding-bottom: clamp(8px, 9cqh, 18px); }
  .hero .panel--promo .promo-tag { margin-top: 0; font-size: clamp(7px, 6.4cqh, 12px); }
  .hero .panel--promo .promo-big { font-size: min(23cqh, 15cqw); margin-top: .08em; }
  .hero .panel--promo .promo-sub { font-size: clamp(8px, 6.6cqh, 14px); margin-top: .25em; }
  .hero .panel--promo .promo-code-row { margin-top: clamp(3px, 4cqh, 10px); }
  .hero .panel--promo .promo-code { font-size: clamp(10px, 8.4cqh, 18px); min-height: 0; }
  .hero .panel--promo .promo-deco--pct { font-size: min(85cqh, 40cqw); }
  @container (max-height: 135px) { .hero .panel--promo .promo-sub { display: none; } }
}

/* =========================================================
   Search (task 32): live suggestions under the header field + recherche.html
   ========================================================= */
.header .search { position: relative; }
.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(440px, calc(100vw - var(--g) * 2));
  min-width: 100%;
  max-height: min(560px, calc(100dvh - var(--header-h) - var(--g) * 4));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: var(--white);
  border-radius: calc(var(--r) * .7);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .06);
  color: var(--black);
  font-size: 14px;
  text-transform: none;
  text-align: left;
  cursor: auto;
}
.search-panel[hidden], .search-list[hidden], .search-none[hidden] { display: none; }
.search-list { margin: 0; padding: 0; list-style: none; }
.search-opt a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 12px 6px 6px;
  border-radius: calc(var(--r) * .5);
  color: inherit;
}
.search-opt img { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; background: var(--panel); }
.search-opt-txt { display: grid; gap: 2px; min-width: 0; }
.search-opt-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .01em; line-height: 1.15;
}
.search-opt-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: #666; }
.search-opt-price { font-size: 14px; font-weight: 800; white-space: nowrap; }
.search-opt[aria-selected="true"] a { background: var(--panel); }
.search-opt--all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--panel); }
.search-opt--all a {
  display: flex; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 0 14px;
  font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em;
}
.search-opt--all svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.search-opt--all[aria-selected="true"] a { background: var(--black); color: var(--white); }
.search-none { padding: 14px 12px 12px; }
.search-none-h { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.search-none-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-none-links a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 1.2em;
  border-radius: 99px; background: var(--panel);
  font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em;
}
@media (hover: hover) and (pointer: fine) {
  .search-none-links a:hover { background: var(--black); color: var(--white); }
}
/* phones: the panel spans the screen under the header and stops above the on-screen keyboard (--vvh) */
@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .search-panel {
    position: fixed;
    top: calc(var(--g) + var(--header-h) + 8px);
    left: var(--g); right: var(--g);
    width: auto; min-width: 0;
    max-height: calc(var(--vvh, 100dvh) - var(--header-h) - var(--g) * 2 - 16px);
  }
  .search-opt a { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .search-opt img { width: 44px; height: 55px; }
  .search-opt-name { font-size: 14px; }
  .search-opt-meta { font-size: 12px; }
  .search-opt-price { font-size: 13px; }
}

/* collection pages: card reached from a search result */
.product.is-found { animation: found 3s var(--ease) both; }
@keyframes found {
  0%, 70% { box-shadow: 0 0 0 3px var(--accent), 0 0 0 9px rgba(208, 32, 42, .18); }
  100% { box-shadow: 0 0 0 3px rgba(208, 32, 42, 0), 0 0 0 9px rgba(208, 32, 42, 0); }
}

/* recherche.html */
.sub-hero--search { min-height: 0; }
.sub-hero--search .sub-hero-txt { padding-top: clamp(22px, 3vw, 44px); }
.sub-hero--search .sub-h { overflow-wrap: anywhere; }
.search-page-form {
  display: flex; align-items: center; gap: 10px;
  max-width: 720px;
  margin-top: clamp(16px, 2vw, 26px);
  padding: 6px 6px 6px 18px;
  background: var(--white);
  border-radius: 99px;
  color: var(--black);
}
.search-page-form:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.search-page-form svg { width: 20px; height: 20px; flex: none; color: #333; }
.search-page-form input {
  flex: 1; min-width: 0; height: 46px;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--black);
}
.search-page-form input::placeholder { color: #777; }
.search-page-go {
  flex: none; height: 46px; padding: 0 1.4em;
  border-radius: 99px; background: var(--accent); color: var(--white);
  font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .05em;
}
.search-page-go:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.search-empty { padding: clamp(22px, 3vw, 44px); background: var(--panel); border-radius: var(--r); }
.search-empty[hidden] { display: none; }
.search-empty-h { font-size: clamp(22px, 2.6vw, 36px); font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; line-height: 1; overflow-wrap: anywhere; }
.search-empty-sub { margin-top: .6em; font-weight: 700; color: #555; }
.search-empty-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 560px) {
  .search-page-form { padding-left: 14px; gap: 6px; }
  .search-page-form svg { display: none; }
  .search-page-go { padding: 0 1em; }
}

/* =========================================================
   Product pages (<id>.html, tools/build33.py) — same bento language:
   white frame, --g gaps, --r radius, grey/black tiles, one red accent tile
   ========================================================= */
.pp > .products, .pp > .faq { padding: 0; }
.pp > .marquee { margin: 0; }
.pp-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); }

/* gallery */
.pp-gallery { display: grid; gap: var(--g); align-content: start; min-width: 0; }
.pp-stage { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px #ececec; }
.pp-track {
  display: flex; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.pp-track::-webkit-scrollbar { display: none; }
.pp-track:focus-visible { outline: 2px solid var(--black); outline-offset: -2px; }
.pp-slide { flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.pp-slide img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s var(--ease); user-select: none; -webkit-user-drag: none; }
.pp-slide.is-zoom { cursor: zoom-in; }
.pp-slide.is-zoom img { transform: scale(2); }
.pp-stage .product-tags { position: absolute; top: clamp(12px, 1.4vw, 20px); left: clamp(12px, 1.4vw, 20px); z-index: 2; pointer-events: none; }
.pp-count {
  position: absolute; left: clamp(12px, 1.4vw, 20px); bottom: clamp(12px, 1.4vw, 20px); z-index: 2;
  padding: .45em .8em; border-radius: 99px; background: var(--black); color: var(--white);
  font-size: 12px; font-weight: 800; font-variation-settings: "wdth" 84; letter-spacing: .06em; pointer-events: none;
}
.pp-nav { position: absolute; z-index: 2; bottom: clamp(12px, 1.4vw, 20px); }
.pp-nav[data-dir="prev"] { right: calc(clamp(12px, 1.4vw, 20px) + 54px); }
.pp-nav[data-dir="next"] { right: clamp(12px, 1.4vw, 20px); }
.pp-thumbs { display: flex; gap: calc(var(--g) * .8); overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumb {
  flex: none; width: clamp(64px, 7vw, 96px); aspect-ratio: 1; padding: 0;
  border-radius: calc(var(--r) * .7); overflow: hidden; background: #fff;
  box-shadow: inset 0 0 0 1px #e3e3e3; transition: box-shadow .2s, opacity .2s; opacity: .7;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pp-thumb:hover { opacity: 1; }
.pp-thumb[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--black); }
.pp-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buy box */
.pp-buy {
  display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 22px);
  min-width: 0; padding: clamp(20px, 3vw, 44px);
  background: var(--panel); border-radius: var(--r);
}
.pp-buy .crumbs ol { margin: 0; }
.pp-buy .crumbs li { min-width: 0; overflow-wrap: anywhere; }
.pp-buy-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pp-buy .promo-tag { margin: 0; font-size: 12px; }
a.pp-coll { text-decoration: none; transition: background .2s; }
a.pp-coll:hover { background: var(--accent); }
a.pp-coll:hover .promo-dot, a.pp-coll:hover .promo-dot::after { background: var(--white); }
.pp-brand { font-size: 13px; font-weight: 900; font-variation-settings: "wdth" 80; text-transform: uppercase; letter-spacing: .14em; color: #666; }
.pp-h {
  font-size: clamp(40px, 4.4vw, 72px); font-weight: 800; font-variation-settings: "wdth" 78;
  text-transform: uppercase; line-height: .88; letter-spacing: -.015em; overflow-wrap: anywhere;
}
.pp-h-sub { display: block; margin-top: .2em; font-size: .42em; line-height: 1; font-variation-settings: "wdth" 84; color: #666; letter-spacing: .02em; }
.pp-price strong { font-size: clamp(26px, 2.4vw, 36px); font-weight: 900; font-variation-settings: "wdth" 84; }

.pp-form { display: grid; gap: clamp(16px, 1.6vw, 22px); padding-top: clamp(16px, 1.6vw, 22px); border-top: 1px solid #cfcfcf; }
.pp-opt { position: relative; margin: 0; padding: 0; border: 0; min-width: 0; }
.pp-opt-h { padding: 0; margin: 0 0 10px; font-size: 12px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .06em; color: #555; }
.pp-opt-h strong { color: var(--black); }
.pp-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pp-sw {
  display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 3px var(--panel), 0 0 0 4px transparent;
  transition: box-shadow .2s;
}
.pp-sw:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 3px var(--panel), 0 0 0 5px #9a9a9a; }
.pp-sw[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 3px var(--panel), 0 0 0 5px var(--black); }
.pp-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.pp-guide-link { position: absolute; top: 0; right: 0; font-size: 12px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .05em; text-decoration: underline; text-underline-offset: 3px; }
.pp-guide-link:hover { color: var(--accent); }
.pp-size-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-size-btn { position: relative; }
.pp-size-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pp-size-btn span {
  display: grid; place-items: center; min-width: 58px; height: 48px; padding: 0 1em;
  border-radius: 99px; background: var(--white); cursor: pointer;
  font-size: 14px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.pp-size-btn:hover span { box-shadow: inset 0 0 0 2px var(--black); }
.pp-size-input:checked + span { background: var(--black); color: var(--white); }
.pp-size-input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-size-err { margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--accent); }
.pp-size.is-error .pp-size-btn span { box-shadow: inset 0 0 0 2px var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .pp-size.is-error .pp-size-list { animation: pp-shake .4s var(--ease); }
}
@keyframes pp-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.pp-actions { display: flex; gap: 10px; }
.pp-qty { flex: none; display: flex; align-items: center; height: 56px; padding: 4px; border-radius: 99px; background: var(--white); }
.pp-qty-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; transition: background .2s, color .2s; }
.pp-qty-btn svg { width: 18px; height: 18px; }
.pp-qty-btn:hover:not(:disabled) { background: var(--black); color: var(--white); }
.pp-qty-btn:disabled { opacity: .3; cursor: default; }
.pp-qty-input {
  width: 3ch; border: 0; background: none; text-align: center; font: inherit;
  font-size: 17px; font-weight: 900; -moz-appearance: textfield; appearance: textfield;
}
.pp-qty-input::-webkit-inner-spin-button, .pp-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pp-qty-input:focus-visible { outline: 2px solid var(--black); border-radius: 6px; }
.pp-add {
  position: relative; flex: 1; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 56px; padding: 0 1.4em; border-radius: 99px;
  background: var(--black); color: var(--white);
  font-size: 15px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  transition: background .2s;
}
.pp-add svg { width: 20px; height: 20px; flex: none; }
.pp-add .i-check, .pp-add .pp-add-done { display: none; }
.pp-add.is-added { background: #1f8a4c; }
.pp-add.is-added .i-check, .pp-add.is-added .pp-add-done { display: inline; }
.pp-add.is-added .i-plus, .pp-add.is-added .pp-add-txt { display: none; }
.pp-add:hover:not(.is-added) { background: var(--accent); }
.pp-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pp-wa {
  display: flex; align-items: center; justify-content: center; gap: .6em;
  height: 56px; padding: 0 1.4em; border-radius: 99px;
  background: var(--white); color: var(--black);
  font-size: 15px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--black);
  transition: background .2s, color .2s;
}
.pp-wa svg { width: 22px; height: 22px; flex: none; color: #1fa855; }
.pp-wa:hover { background: #1fa855; color: var(--white); box-shadow: none; }
.pp-wa:hover svg { color: var(--white); }
.pp-wa:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.pp-promo {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 12px 12px 12px 18px; border-radius: calc(var(--r) * .8);
  background: var(--accent); color: var(--white);
  font-size: 14px; font-weight: 700; font-variation-settings: "wdth" 88;
}
.pp-promo strong { font-weight: 900; }
.pp-code {
  height: 40px; padding: 0 1.1em; border-radius: 99px; background: var(--white); color: var(--black);
  font-size: 14px; font-weight: 900; letter-spacing: .1em; border: 2px dashed var(--black);
  transition: background .2s, color .2s;
}
.pp-code:hover { background: var(--black); color: var(--white); border-color: var(--white); }
.pp-code:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.pp-perks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 86; }
.pp-perks li { display: flex; align-items: center; gap: .6em; }
.pp-perks svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--black); color: var(--white); }

/* info bento: description (light) | specs (dark) + note (red) / tip (grey) */
.pp-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); }
.pp-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0;
  padding: clamp(20px, 3vw, 44px); border-radius: var(--r); background: var(--panel);
  font-size: 15px; line-height: 1.55; color: #333;
}
.pp-card .promo-tag { margin: 0; font-size: 12px; }
.pp-card-h { font-size: clamp(28px, 3vw, 48px); font-weight: 800; font-variation-settings: "wdth" 78; text-transform: uppercase; line-height: .92; letter-spacing: -.01em; color: var(--black); overflow-wrap: anywhere; }
.pp-card p { max-width: 46em; }
.pp-card strong { color: var(--black); font-weight: 800; }
.pp-lead { font-size: clamp(17px, 1.4vw, 21px); font-weight: 800; font-variation-settings: "wdth" 86; line-height: 1.25; color: var(--black); }
.pp-sub-h { margin-top: 8px; font-size: clamp(18px, 1.5vw, 23px); font-weight: 800; font-variation-settings: "wdth" 82; text-transform: uppercase; line-height: 1.05; color: var(--black); }
.pp-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-width: 46em; }
.pp-list li { position: relative; padding-left: 22px; }
.pp-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.pp-card--dark { background: var(--black); color: rgba(255,255,255,.78); }
.pp-card--dark .pp-card-h, .pp-card--dark strong { color: var(--white); }
.pp-card--dark .promo-tag { background: var(--accent); }
.pp-card--dark .promo-tag .promo-dot, .pp-card--dark .promo-tag .promo-dot::after { background: var(--white); }
.pp-card--dark .pp-list li + li { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.pp-card--dark .pp-list li + li::before { top: calc(.55em + 10px); }
.pp-card--accent { background: var(--accent); color: rgba(255,255,255,.9); }
.pp-card--accent .pp-card-h, .pp-card--accent strong { color: var(--white); }
.pp-card--accent .promo-tag { background: var(--white); color: var(--black); }
.pp-card--accent .promo-tag .promo-dot, .pp-card--accent .promo-tag .promo-dot::after { background: var(--accent); }
.pp-card--grey { background: var(--panel-2); }

/* size guide (gloves: FAQ table, this model's sizes in bold) */
.pp-sizes { scroll-margin-top: calc(var(--header-h) + var(--g) * 2); }
.pp-sizes-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pp-sizes-q { margin-top: 6px; font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .05em; color: var(--black); }
.pp-sizes-body { width: 100%; min-width: 0; padding: clamp(14px, 1.6vw, 24px); border-radius: calc(var(--r) * .8); background: var(--white); }
.pp-sizes-body p { margin: 0 0 12px; }
.pp-sizes-body p:last-child { margin: 12px 0 0; }
.pp-sizes-body .faq-table-wrap { padding: 0; }
.pp-sizes-body .faq-table { max-width: none; }
.pp-sizes-body tr.is-off td { color: #b3b3b3; font-weight: 500; }
.pp-sizes-body tr.is-off td:first-child { color: #b3b3b3; font-weight: 600; }
.pp-sizes-body tr.is-on td { font-weight: 800; color: var(--black); }
.pp-col-0 tr.is-on td:nth-child(1), .pp-col-1 tr.is-on td:nth-child(2) { color: var(--accent); }
.pp-size-legend { font-size: 13px; font-weight: 700; color: #666; }

/* sticky add-to-cart bar: mobile only */
.pp-bar { display: none; }

@media (min-width: 700px) {
  .pp-info { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .pp-desc { grid-row: span var(--side, 1); }
}
@media (min-width: 1000px) {
  .pp-sizes { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
  .pp-sizes:not(:has(.pp-sizes-body)) { display: flex; }
}
@media (min-width: 861px) {
  .pp-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .pp-gallery { position: sticky; top: calc(var(--header-h) + var(--g) * 2); }
  /* keep the photo + thumbnails in one screen */
  .pp-slide { aspect-ratio: auto; height: min(calc(100vw * .53 - var(--g) * 2), calc(100vh - var(--header-h) - var(--g) * 5 - clamp(64px, 7vw, 96px))); min-height: 320px; }
}

@media (max-width: 860px) and (orientation: portrait), (max-width: 560px), (max-aspect-ratio: 4/5) {
  .pp-bar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; z-index: 30; left: var(--g); right: var(--g);
    bottom: calc(var(--g) + env(safe-area-inset-bottom, 0px));
    padding: 8px 8px 8px 8px; border-radius: var(--r);
    background: var(--black); color: var(--white);
    box-shadow: 0 0 0 var(--g) var(--frame), 0 12px 30px rgba(0,0,0,.25);
    transform: translateY(calc(100% + var(--g) * 3)); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .pp-bar.is-on { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
  .menu-open .pp-bar, .cart-open .pp-bar { transform: translateY(calc(100% + var(--g) * 3)); visibility: hidden; }
  .pp-bar img { flex: none; width: 44px; height: 55px; border-radius: calc(var(--r) * .6); object-fit: cover; background: #ebe9ea; }
  .pp-bar-txt { flex: 1; min-width: 0; }
  .pp-bar-name, .pp-bar-meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .pp-bar-name { font-size: 14px; font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; }
  .pp-bar-meta { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); }
  .pp-bar-meta strong { color: var(--white); }
  .pp-bar-add { flex: none; height: 48px; padding: 0 1.1em; background: var(--accent); font-size: 14px; }
  .pp-bar-add:hover:not(.is-added) { background: var(--white); color: var(--black); }
  .pp-page .site-footer { margin-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .pp-page .toast { bottom: calc(var(--g) * 2 + 76px + env(safe-area-inset-bottom, 0px)); }
  .pp-h { font-size: clamp(36px, 11vw, 60px); }
  .pp-thumb { width: 64px; }
}
@media (max-width: 380px) {
  .pp-actions { flex-wrap: wrap; }
  .pp-qty { flex: 1 1 100%; justify-content: space-between; }
  .pp-actions .pp-add { flex: 1 1 100%; }
  .pp-bar-add { padding: 0 .9em; }
  .pp-bar img { display: none; }
  .pp-promo { padding-left: 14px; }
}
@media (pointer: coarse) {
  .pp-qty-input { font-size: 17px; }
}
.pp-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px #e6e6e6; pointer-events: none; }
.pp-form { grid-template-columns: minmax(0, 1fr); }
.pp-add-txt { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .pp-qty-btn { width: 40px; height: 40px; }
  .pp-qty { height: 52px; }
  .pp-add, .pp-wa { height: 52px; font-size: 14px; padding: 0 1em; }
  .pp-actions .pp-add .i-plus { display: none; }
  .pp-guide-link { position: static; display: inline-block; margin: -4px 0 10px; }
}
.pp-slide { position: relative; }
.pp-slide img { position: absolute; inset: 0; }

/* Sliders scroll sideways only. overflow-x:auto silently makes overflow-y auto
   too, so while the cards' entrance animation (rise: 28px down) poked out of
   the bottom of a track, the track became vertically scrollable and caught the
   wheel / finger: the page stopped until the animation ended. A track can't
   take a vertical scroll now, so up/down always goes straight to the page. */
.carousel, .pp-track, .pp-thumbs, .faq-table-wrap { overflow-y: hidden; overscroll-behavior-y: auto; }
@media (max-width: 599px) {
  .features-grid { overflow-y: hidden; overscroll-behavior-y: auto; }
}
@media (max-width: 560px) {
  .chips { overflow-y: hidden; overscroll-behavior-y: auto; }
}

/* Smooth scrolling (Lenis, assets/vendor/lenis.min.js; required CSS from lenis 1.3.27).
   Lenis eases the page itself, so the CSS smooth anchor scroll must not stack on top. */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
html.lenis, html.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* =========================================================
   Cash-on-delivery orders (task 36): product order form (.cod in the buy box),
   checkout (commande.html) and confirmation (merci.html). Same bento language.
   ========================================================= */
/* "Ajouter au panier" is now the secondary action: white pill, the red one confirms the order */
.pp-actions .pp-add { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.pp-actions .pp-add:hover:not(.is-added) { background: var(--black); color: var(--white); }
.pp-actions .pp-add.is-added { background: #1f8a4c; color: var(--white); box-shadow: none; }

.cod {
  position: relative;
  display: flex; flex-direction: column; gap: clamp(14px, 1.4vw, 20px);
  min-width: 0; padding: clamp(18px, 2vw, 28px);
  border-radius: calc(var(--r) * .8); background: var(--white);
  scroll-margin-top: var(--g);
}
.cod--panel { background: var(--panel); border-radius: var(--r); padding: clamp(20px, 3vw, 44px); }
.cod-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cod-head .promo-tag { margin: 0; font-size: 12px; }
.cod-head .crumbs ol { margin: 0 0 6px; }
.cod-h {
  font-size: clamp(30px, 2.8vw, 44px); font-weight: 800; font-variation-settings: "wdth" 78;
  text-transform: uppercase; line-height: .9; letter-spacing: -.01em; overflow-wrap: anywhere;
}
.cod-h:focus { outline: none; }
.cod-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.cod-h--page { font-size: clamp(40px, 5vw, 80px); line-height: .86; }
.cod-h-sub { display: block; margin-top: .25em; font-size: .42em; line-height: 1; font-variation-settings: "wdth" 84; color: var(--accent); letter-spacing: .02em; }
.cod-intro { max-width: 40em; font-size: 14px; font-weight: 600; font-variation-settings: "wdth" 88; line-height: 1.45; color: #555; }
.cod-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cod-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cod-field--full { grid-column: 1 / -1; }
.cod-field label { font-size: 12px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .05em; color: #555; }
.cod-opt { font-weight: 700; text-transform: none; letter-spacing: 0; color: #888; }
.cod-field input, .cod-field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  border: 2px solid transparent; border-radius: calc(var(--r) * .55);
  background: #f1f1f1; color: var(--black);
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0;
  transition: border-color .2s, background-color .2s;
}
.cod--panel .cod-field input, .cod--panel .cod-field textarea { background: var(--white); }
.cod-field textarea { resize: vertical; min-height: 74px; line-height: 1.4; }
.cod-field input::placeholder, .cod-field textarea::placeholder { color: #9a9a9a; font-weight: 500; }
.cod-field input:hover, .cod-field textarea:hover { border-color: #cfcfcf; }
.cod-field input:focus-visible, .cod-field textarea:focus-visible { outline: none; border-color: var(--black); background: var(--white); }
.cod-field.is-error input, .cod-field.is-error textarea { border-color: var(--accent); background: #fff5f5; }
.cod-field.is-error label { color: var(--accent); }
.cod-err { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--accent); }
.cod-err[hidden] { display: none; }
.cod-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* product form: live summary */
.cod-sum { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: calc(var(--r) * .6); background: var(--panel); }
.cod-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; color: #444; }
.cod-line[hidden] { display: none; }
.cod-line strong { min-width: 0; font-size: 15px; font-weight: 800; color: var(--black); letter-spacing: 0; text-align: right; overflow-wrap: anywhere; }
.cod-line--sel strong { text-transform: none; }
.cod-line--sub { color: var(--black); }
.cod-line--disc strong, #coDiscLine strong { color: var(--accent); }
.cod-sum .cart-promo { padding: 10px 0; }
.cod-sum .cart-promo-input { background: var(--white); }
.cod-total strong { font-size: clamp(24px, 2.2vw, 30px); }
.cod-ship-note { font-size: 12px; font-weight: 600; font-variation-settings: "wdth" 88; color: #666; }
.cod-pick {
  padding: 0; border: 0; background: none; color: var(--accent-ink);
  font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cod-due { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: calc(var(--r) * .6); background: var(--black); color: var(--white); font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; }
.cod-due strong { font-size: clamp(24px, 2.2vw, 32px); font-weight: 900; letter-spacing: 0; white-space: nowrap; }

.cod-alert {
  padding: 12px 16px; border-radius: calc(var(--r) * .5);
  background: #fde8e9; color: #8d1219; box-shadow: inset 0 0 0 1.5px rgba(208, 32, 42, .35);
  font-size: 14px; font-weight: 700; line-height: 1.4;
}
.cod-alert[hidden] { display: none; }
.cod-submit {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  width: 100%; height: 58px; padding: 0 1.4em; border: 0; border-radius: 99px;
  background: var(--accent); color: var(--white); cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  transition: background-color .2s, scale .2s ease;
}
.cod-submit svg { width: 20px; height: 20px; flex: none; }
.cod-submit:hover:not(:disabled) { background: var(--black); }
.cod-submit:active:not(:disabled) { scale: .98; }
.cod-submit:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.cod-submit:disabled { cursor: progress; }
.cod-submit-txt { overflow: hidden; text-overflow: ellipsis; }
.cod-spin { display: none; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: var(--white); }
.cod-submit.is-loading { background: #a81a22; }
.cod-submit.is-loading svg { display: none; }
.cod-submit.is-loading .cod-spin { display: block; animation: cod-spin .8s linear infinite; }
@keyframes cod-spin { to { transform: rotate(360deg); } }
.cod-legal { font-size: 12px; font-weight: 600; line-height: 1.45; color: #666; }
.cod-legal a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.cod-legal a:hover { color: var(--accent); }

/* sticky mobile bar: "Commander" scrolls to the form */
.pp-bar-go {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 99px; color: var(--white); cursor: pointer;
  font: inherit; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.pp-bar-go:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* cart drawer: "Acheter maintenant" greyed while empty */
.cart-checkout.is-disabled { background: #9a9a9a; pointer-events: none; }

/* ---- checkout (commande.html) ---- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); align-items: start; }
.co-grid[hidden], .co-empty[hidden] { display: none; }
.co-main { min-width: 0; }
.co-sum { min-width: 0; border-radius: var(--r); background: var(--black); color: var(--white); overflow: hidden; }
.co-sum-toggle { display: none; }
.co-sum-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2.2vw, 30px); }
.co-sum-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.co-sum-head .promo-tag { margin: 0; font-size: 12px; background: var(--accent); }
.co-sum-head .promo-tag .promo-dot, .co-sum-head .promo-tag .promo-dot::after { background: var(--white); }
.co-sum-h { font-size: clamp(28px, 2.6vw, 42px); font-weight: 800; font-variation-settings: "wdth" 78; text-transform: uppercase; line-height: .9; }
.co-list { flex: none; overflow: visible; gap: 8px; margin: 0; padding: 0; list-style: none; }
.co-list .cart-item { background: var(--white); color: var(--black); }
.co-sum-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: calc(var(--r) * .8); background: var(--panel); color: var(--black); }
.co-sum-foot .cart-promo-input { background: var(--white); }
.co-empty {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px;
  min-height: clamp(300px, 40vw, 480px); padding: clamp(22px, 3vw, 44px);
  border-radius: var(--r); background: var(--panel);
}
.co-empty .promo-tag { margin: 0; font-size: 12px; }
.co-empty-h { font-size: clamp(44px, 7vw, 110px); font-weight: 800; font-variation-settings: "wdth" 78; text-transform: uppercase; line-height: .86; letter-spacing: -.015em; overflow-wrap: anywhere; }
.co-empty-h:focus { outline: none; }
.co-empty-sub { max-width: 34em; font-size: clamp(15px, 1.3vw, 18px); font-weight: 700; font-variation-settings: "wdth" 88; color: #555; }
.co-empty-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.co-empty-links .pill-btn { margin: 0; }
.co-trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); }
.co-trust-card .pp-card-h { font-size: clamp(24px, 2.2vw, 36px); }
.co-trust-card a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .co-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 961px) {
  .co-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .co-main { grid-column: 1; grid-row: 1; }
  .co-sum { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--g) * 2); }
}
@media (max-width: 960px) {
  /* phones / tablets: the summary folds into one bar above the form */
  .co-sum-toggle {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 16px clamp(16px, 4vw, 24px); border: 0; background: none; color: inherit; cursor: pointer;
    font: inherit; text-align: left;
  }
  .co-sum-toggle-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; letter-spacing: .03em; }
  .co-sum-toggle-n { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65); letter-spacing: .04em; }
  .co-sum-toggle strong { font-size: 20px; font-weight: 900; white-space: nowrap; }
  .co-sum-chev { flex: none; width: 22px; height: 22px; transition: transform .3s var(--ease); }
  .co-sum.is-open .co-sum-chev { transform: rotate(180deg); }
  .co-sum-toggle:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; border-radius: var(--r); }
  .co-sum-body { display: none; padding-top: 0; }
  .co-sum.is-open .co-sum-body { display: flex; }
  .co-sum-head { display: none; }
}

/* ---- confirmation (merci.html) ---- */
.merci-hero .sub-hero-txt { gap: 0; }
.merci-hero .sub-h:focus { outline: none; }
.merci-num {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .5em; margin-top: 1.2em; align-self: flex-start;
  padding: .7em 1.1em; border-radius: 99px; background: var(--white); color: var(--black);
  font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .05em;
}
.merci-num[hidden] { display: none; }
.merci-num strong { font-size: clamp(16px, 1.6vw, 22px); font-weight: 900; letter-spacing: .06em; overflow-wrap: anywhere; }
.merci-test {
  padding: 14px 18px; border-radius: var(--r); background: #fff4d6; color: #5c4300;
  box-shadow: inset 0 0 0 2px #e0b74a; font-size: 14px; font-weight: 700; line-height: 1.45;
}
.merci-test[hidden] { display: none; }
.merci-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); }
.merci-recap[hidden] { display: none; }
.merci-recap, .merci-next { align-items: stretch; }
.merci-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.merci-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-radius: calc(var(--r) * .6); background: var(--white); }
.merci-item-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.merci-item-name strong { font-size: 17px; font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; line-height: 1.02; }   /* = .cart-item-name */
.merci-item-name small { font-size: 13px; font-weight: 700; color: #666; }
.merci-item-qty { grid-column: 1; font-size: 13px; font-weight: 700; color: #555; }
.merci-item-total { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
.merci-totals { display: flex; flex-direction: column; gap: 8px; }
.merci-cust { display: grid; gap: 8px; margin: 0; }
.merci-cust div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; padding-top: 8px; border-top: 1px solid #cfcfcf; font-size: 14px; }
.merci-cust dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.merci-cust dd { margin: 0; font-weight: 700; color: var(--black); overflow-wrap: anywhere; white-space: pre-line; }
.merci-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: merci; }
.merci-steps li { position: relative; padding-left: 46px; counter-increment: merci; min-height: 32px; }
.merci-steps li::before {
  content: counter(merci); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 14px; font-weight: 900;
}
.merci-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
.merci-links .pill-btn { margin: 0; }
.merci-home { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; text-decoration: underline; text-underline-offset: 3px; color: var(--white); }
.merci-home:hover { color: var(--accent); }
@media (min-width: 861px) {
  .merci-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .merci-grid:has(.merci-recap[hidden]) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .cod-fields { grid-template-columns: minmax(0, 1fr); }
  .cod { padding: 16px; }
  .cod--panel { padding: 18px 16px; }
  .cod-sum { padding: 14px; }
  .cod-submit { height: 54px; font-size: 15px; }
  .cod-line { font-size: 12px; }
  .co-empty-links .pill-btn { flex: 1 1 auto; justify-content: center; }
  .merci-cust div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 360px) {
  .cod-submit { font-size: 14px; padding: 0 1em; gap: .45em; }
  .cod-sum .cart-promo-row { flex-wrap: wrap; }
  .cod-sum .cart-promo-apply { flex: 1 1 100%; }
  .co-sum-foot .cart-promo-row { flex-wrap: wrap; }
  .co-sum-foot .cart-promo-apply { flex: 1 1 100%; }
}

/* =========================================================
   Cart drawer, desktop (task 40): wide bento panel.
   Left = cart lines as a grid of compact cards (never an inner scroll box),
   right = header + summary column. script.js (fitCart) picks the columns and
   card density (lg > md > sm > xs) so every line fits the viewport height;
   only past that limit the whole panel scrolls (.is-tall), summary kept in view.
   ========================================================= */
@media (min-width: 1024px) and (min-aspect-ratio: 81/100) {
  #cartDrawer {
    --sum-w: clamp(340px, 27vw, 392px);
    --cols: 2;
    --cw: 320px;
    width: min(calc(100vw - var(--g) * 2),
               calc(var(--cols) * var(--cw) + (var(--cols) - 1) * var(--g) + var(--sum-w) + var(--g) * 3));
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sum-w);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "list head" "list foot";
  }
  #cartDrawer.is-empty { display: flex; width: min(440px, calc(100vw - var(--g) * 2)); }
  #cartDrawer .cart-head { grid-area: head; padding: 16px 16px 14px 20px; }
  #cartDrawer .cart-title { font-size: 40px; }
  #cartDrawer .cart-foot { grid-area: foot; min-height: 0; }
  #cartDrawer .cart-total { margin-top: auto; }          /* total + note + buttons sit at the foot of the column */

  /* the lines: a grid, no inner scrolling */
  #cartDrawer .cart-list {
    --iw: 76px; --ih: 92px; --nf: 16px; --mf: 13px; --qb: 30px; --rb: 34px; --tf: 16px; --cp: 10px;
    grid-area: list;
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    align-content: start;
    gap: var(--g);
    overflow: hidden;
  }
  #cartDrawer .cart-list[data-density="md"] { --iw: 62px; --ih: 76px; --nf: 15px; --mf: 12.5px; --qb: 28px; --rb: 32px; --tf: 15px; --cp: 9px; }
  #cartDrawer .cart-list[data-density="sm"] { --iw: 50px; --ih: 62px; --nf: 14px; --mf: 12px;   --qb: 26px; --rb: 30px; --tf: 14px; --cp: 8px; }
  #cartDrawer .cart-list[data-density="xs"] { --iw: 42px; --ih: 52px; --nf: 13px; --mf: 11.5px; --qb: 24px; --rb: 28px; --tf: 13px; --cp: 7px; }
  #cartDrawer .cart-list[hidden] { display: none; }

  /* compact card: photo | name + remove / colour · size · price / qty + line total */
  #cartDrawer .cart-item {
    grid-template-columns: var(--iw) minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "img name rm" "img meta meta" "img qty total";
    align-items: center;
    column-gap: 12px;
    row-gap: 3px;
    padding: var(--cp) calc(var(--cp) + 4px) var(--cp) var(--cp);
  }
  #cartDrawer .cart-item-info, #cartDrawer .cart-item-side { display: contents; }
  #cartDrawer .cart-item-img { grid-area: img; width: var(--iw); height: var(--ih); border-radius: 8px; }
  #cartDrawer .cart-item-name {
    grid-area: name; align-self: start; font-size: var(--nf);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; line-height: 1.12;
  }
  #cartDrawer .cart-item-meta { grid-area: meta; font-size: var(--mf); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #cartDrawer .qty { grid-area: qty; align-self: end; margin-top: 2px; }
  #cartDrawer .qty-btn { width: var(--qb); height: var(--qb); }
  #cartDrawer .qty-val { min-width: 24px; font-size: calc(var(--nf) - 1px); }
  #cartDrawer .cart-remove { grid-area: rm; align-self: start; justify-self: end; width: var(--rb); height: var(--rb); margin: -4px -6px 0 0; }
  #cartDrawer .cart-item-total { grid-area: total; align-self: end; justify-self: end; font-size: var(--tf); padding-bottom: 4px; }

  /* xl = few lines: tall product tiles (photo on top) so a small cart fills the panel */
  #cartDrawer .cart-list[data-density="xl"] { --nf: 15px; --mf: 13px; --qb: 32px; --rb: 34px; --tf: 17px; --cp: 12px; }
  #cartDrawer .cart-list[data-density="xl"] .cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "img img" "name rm" "meta meta" "qty total";
    row-gap: 6px;
    padding: var(--cp);
  }
  #cartDrawer .cart-list[data-density="xl"] .cart-item-img {
    width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 34vh; border-radius: 12px; margin-bottom: 4px;
    object-position: 50% 45%;
  }
  #cartDrawer .cart-list[data-density="xl"] .cart-item-name { -webkit-line-clamp: 3; line-clamp: 3; min-height: 3.36em; }
  #cartDrawer .cart-list[data-density="xl"] .cart-remove { margin: -2px -4px 0 0; }

  /* past the fit limit: the panel scrolls as a whole, the summary column stays in view */
  #cartDrawer.is-tall { overflow-y: auto; overscroll-behavior: contain; grid-template-rows: auto 1fr; }
  #cartDrawer.is-tall .cart-list { overflow: visible; }
  #cartDrawer.is-tall .cart-head { position: sticky; top: 0; z-index: 1; }
  #cartDrawer.is-tall .cart-foot { position: sticky; top: calc(var(--head-h, 120px) + var(--g)); align-self: start; }
}
/* short desktop screens: a tighter summary column */
@media (min-width: 1024px) and (min-aspect-ratio: 81/100) and (max-height: 820px) {
  #cartDrawer .cart-head { padding: 12px 12px 12px 18px; align-items: center; }
  #cartDrawer .cart-title { margin-top: 6px; font-size: 34px; }
  #cartDrawer .cart-foot { gap: 7px; padding: 14px 16px 8px; }
  #cartDrawer .cart-total strong { font-size: 24px; }
  #cartDrawer .cart-promo { padding: 8px 0 6px; }
  #cartDrawer .cart-promo-input, #cartDrawer .cart-promo-apply { height: 40px; }
  #cartDrawer .cart-note { font-size: 11px; line-height: 1.35; }
  #cartDrawer .cart-checkout { height: 46px; }
  #cartDrawer .cart-continue { padding: 4px 10px; }
}

/* WhatsApp contact links: hidden until WHATSAPP_NUMBER is set in script.js (it adds html.has-wa) — task 45 */
html:not(.has-wa) .contact-card--wa,
html:not(.has-wa) li:has(> a.js-wa) { display: none !important; }
html:not(.has-wa) .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  html:not(.has-wa) .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(.has-wa) .contact-card--social { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  html:not(.has-wa) .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Customer accounts (compte.html + the note above the order forms).
   Same bento language: grey .cod--panel forms, black side card, white order tiles.
   ========================================================= */
.acct-grid, .acct-dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g); align-items: start; }
.acct-grid[hidden], .acct-dash[hidden], .acct-tabs[hidden] { display: none; }
.acct-forms, .acct-side { display: grid; gap: var(--g); min-width: 0; }
.acct-form[hidden] { display: none; }
.acct-hero .sub-hero-txt { gap: 0; }
.acct-hero .sub-h:focus { outline: none; }
.acct-hero .sub-h:focus-visible { outline: 2px solid var(--white); outline-offset: 6px; border-radius: 4px; }

.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 99px; background: var(--panel); }
.acct-tab {
  height: 48px; padding: 0 1em; border: 0; border-radius: 99px; background: transparent; color: #555; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em;
  transition: background-color .2s, color .2s;
}
.acct-tab[aria-selected="true"] { background: var(--black); color: var(--white); }
.acct-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.acct-pass { position: relative; }
.acct-pass input { padding-right: 56px; }
.acct-eye {
  position: absolute; top: 50%; right: 6px; translate: 0 -50%;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: #555; cursor: pointer;
}
.acct-eye svg { width: 22px; height: 22px; }
.acct-eye[aria-pressed="true"] { color: var(--accent); }
.acct-eye:focus-visible { outline: 2px solid var(--black); outline-offset: -2px; }
.acct-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.acct-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700; color: #333; cursor: pointer; }
.acct-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--black); flex: none; }
.acct-link {
  padding: 6px 0; border: 0; background: none; color: var(--black); cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}
.cod-legal .acct-link { font-size: inherit; padding: 0; }
.acct-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.acct-ok {
  padding: 12px 16px; border-radius: calc(var(--r) * .5);
  background: #e3f4ea; color: #145c33; box-shadow: inset 0 0 0 1.5px rgba(31, 138, 76, .35);
  font-size: 14px; font-weight: 700; line-height: 1.4;
}
.acct-ok[hidden] { display: none; }
.acct-user { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.acct-submit--dark { background: var(--black); }
.acct-submit--dark:hover:not(:disabled) { background: var(--accent); }
.acct-submit--dark.is-loading { background: #333; }
.acct-out { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 6px; border-top: 1px solid #cfcfcf; }
.acct-out .pill-btn { margin: 0; padding: 0 1.6em; border: 0; cursor: pointer; font-family: inherit; }
.acct-why { position: relative; overflow: hidden; }
.acct-why .pill-btn { margin-top: 6px; }
.acct-why .pill-btn:hover { background: var(--accent); color: var(--white); }

/* orders */
.acct-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.acct-muted { color: #555; font-weight: 600; }
.acct-muted[hidden] { display: none; }
.acct-muted a, .acct-note a { color: var(--black); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.acct-muted a:hover, .acct-note a:hover { color: var(--accent-ink); }
.acct-small { font-size: 13px; }
.acct-olist { display: grid; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.acct-olist:empty { display: none; }
.acct-order { display: flex; flex-direction: column; gap: 10px; padding: clamp(14px, 1.6vw, 20px); border-radius: calc(var(--r) * .7); background: var(--white); }
.acct-order-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.acct-order-id { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.acct-order-id strong { font-size: 16px; letter-spacing: .04em; color: var(--black); overflow-wrap: anywhere; }
.acct-order-meta { font-size: 13px; font-weight: 700; color: #666; }
.acct-order-items { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.acct-order-items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; line-height: 1.15; color: var(--black); overflow-wrap: anywhere; }
.acct-order-items small { font-size: 13px; font-weight: 700; text-transform: none; color: #666; }
.acct-order-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid #e3e3e3; font-size: 13px; font-weight: 700; color: #555; }
.acct-order-foot strong { font-size: 20px; font-weight: 900; white-space: nowrap; color: var(--black); }
.acct-badge {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px;
  font-size: 12px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .05em;
  background: var(--panel); color: var(--black);
}
.acct-badge--ok { background: var(--black); color: var(--white); }
.acct-badge--ship { background: #1d4ed8; color: var(--white); }
.acct-badge--done { background: #1f8a4c; color: var(--white); }
.acct-badge--off { background: #fde8e9; color: #8d1219; }
.acct-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.acct-steps li { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 10px; border-top: 4px solid var(--panel); font-size: 11.5px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; color: #888; }
.acct-steps li.is-past, .acct-steps li.is-now { border-top-color: var(--black); color: var(--black); }
.acct-steps li.is-now { border-top-color: var(--accent); }
.acct-steps small { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #777; overflow-wrap: anywhere; }

/* order forms (product pages, commande.html) and merci.html: "signed in" / "sign in" line */
.acct-note {
  display: block;
  padding: 12px 16px; border-radius: calc(var(--r) * .5); background: var(--panel);
  font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #444;
}
.cod--panel .acct-note { background: var(--white); }
.acct-note strong { color: var(--black); }
.acct-note-opt { color: #777; }
.acct-note-adr { display: block; margin-top: 4px; font-size: 12.5px; color: #666; overflow-wrap: anywhere; }
.acct-note--merci { background: var(--white); }

@media (min-width: 961px) {
  .acct-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .acct-why { position: sticky; top: calc(var(--header-h) + var(--g) * 2); }
  .acct-dash { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (hover: hover) and (pointer: fine) {
  .acct-tab:hover:not([aria-selected="true"]) { background: var(--panel-2); color: var(--black); }
  .acct-link:hover { color: var(--accent-ink); }
  .acct-eye:hover { background: #f1f1f1; }
}
@media (max-width: 560px) {
  .acct-tab { font-size: 13px; padding: 0 .6em; }
  .acct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .acct-out .pill-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- loyalty points (programme fidélité) ---------- */
.cod-line--pts strong, .cart-line.cod-line--pts strong { color: #1f8a4c; }
.cart-note--pts a, .pp-perk--pts a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.pp-perk--pts svg { background: var(--accent); }
.pts-box, .wheel-box { display: grid; gap: 10px; padding: 14px 16px; border: 1.5px dashed #bdbdbd; border-radius: calc(var(--r) * .6); background: var(--white); }
.pts-box[hidden], .wheel-box[hidden], .pts-amount[hidden] { display: none; }
.pts-head { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; }
.pts-head svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.pts-bal, .wheel-val { margin-left: auto; font-size: 15px; letter-spacing: 0; text-transform: none; white-space: nowrap; color: #1f8a4c; }
.pts-use { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; font-weight: 700; cursor: pointer; }
.pts-use input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--black); cursor: inherit; }
.pts-use.is-off { color: #777; cursor: not-allowed; }
.pts-amount { display: grid; gap: 6px; }
.pts-amount-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #444; }
.pts-amount-row { display: flex; align-items: center; gap: 8px; }
.pts-input { flex: 0 1 140px; min-width: 0; height: 40px; padding: 0 12px; border: 1.5px solid #bdbdbd; border-radius: 10px; background: var(--white); font: inherit; font-size: 16px; font-weight: 800; }
.pts-input:focus-visible { outline: 2px solid var(--black); outline-offset: 1px; border-color: var(--black); }
.pts-unit { font-weight: 800; color: #444; }
.pts-all { flex: none; height: 40px; margin-left: auto; padding: 0 14px; border-radius: 10px; background: var(--black); color: var(--white); font-size: 12px; font-weight: 800; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; }
.pts-all:hover { background: var(--accent-ink); }
.pts-hint, .pts-earn, .wheel-hint { margin: 0; font-size: 12px; font-weight: 600; color: #555; }
@media (max-width: 420px) {
  .pts-amount-row { flex-wrap: wrap; }
  .pts-all { flex: 1 1 100%; margin-left: 0; }
}
/* Mon compte */
.acct-points { display: grid; gap: 14px; }
.acct-pts-bal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; font-weight: 700; color: #555; }
.acct-pts-bal strong { font-size: clamp(30px, 3vw, 40px); font-weight: 900; color: var(--black); white-space: nowrap; }
.acct-pts-bal span { font-size: 13px; }
.acct-pts-prog { display: grid; gap: 6px; }
.acct-pts-prog progress { width: 100%; height: 10px; border: 0; border-radius: 99px; background: #e3e3e3; overflow: hidden; appearance: none; -webkit-appearance: none; }
.acct-pts-prog progress::-webkit-progress-bar { background: #e3e3e3; border-radius: 99px; }
.acct-pts-prog progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.acct-pts-prog progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.acct-pts-next { margin: 0; font-size: 14px; font-weight: 800; }
.acct-pts-h { margin: 4px 0 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.acct-pts-list { display: grid; gap: 0; max-height: 340px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.acct-pts-list:empty { display: none; }
.acct-pts-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #e3e3e3; }
.acct-pts-what { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.acct-pts-what small { font-size: 12px; font-weight: 600; color: #666; overflow-wrap: anywhere; }
.acct-pts-n { flex: none; font-size: 16px; font-weight: 900; white-space: nowrap; }
.acct-pts-n.is-plus, .acct-order-pts .is-plus { color: #1f8a4c; }
.acct-pts-n.is-minus { color: var(--accent-ink); }
.acct-order-pts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; font-weight: 800; color: #444; }

/* =========================================================
   Roue de la chance (assets/wheel.js): modal, wheel, floating button, checkout box, Mon compte card
   ========================================================= */
/* Modal = one CSS grid that always fits the viewport (no scrolling in any state).
   Spacing scale: --edge (viewport margin) · --pad (card padding) · --gap (row gutter) · --col (column gutter).
   Phones / portrait: one column head / wheel / main / foot; the wheel takes the height that is left
   (--wheel-reserve = height of everything else, measured by wheel.js).
   Wide landscape: two columns, the wheel is a square as tall as the card, text column on the right. */
.wheel-dlg { --edge: 10px; --pad: clamp(14px, 1.6vmin + 8px, 28px); --gap: clamp(8px, 1.4vmin + 2px, 16px); --col: clamp(20px, 3vw, 40px);
  width: min(100vw - 2 * var(--edge), 460px); max-width: none; max-height: calc(100vh - 2 * var(--edge)); max-height: calc(100dvh - 2 * var(--edge)); margin: auto; padding: 0; border: 0; border-radius: calc(var(--r) * .8); background: var(--white); color: var(--black); overflow: hidden auto; overscroll-behavior: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.wheel-dlg::backdrop { background: rgba(0, 0, 0, .72); }
html.wheel-open { overflow: hidden; }
.wheel-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "wheel" "main" "foot"; gap: var(--gap); padding: var(--pad); text-align: center; }
.wheel-x { position: absolute; top: calc(var(--pad) - 6px); right: calc(var(--pad) - 6px); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); color: var(--black); z-index: 2; }
.wheel-x svg { width: 20px; height: 20px; }
.wheel-x:hover { background: var(--panel-2); }
.wheel-x:focus-visible, .wheel-start:focus-visible, .wheel-btn:focus-visible, .wheel-link:focus-visible, .wheel-fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wheel-head { grid-area: head; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 38px; padding: 0 46px; }
.wheel-tag { margin: 0; }
.wheel-h { margin: 0; font-size: clamp(24px, 6.6vw, 34px); font-weight: 900; font-variation-settings: "wdth" 80; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.wheel-cell { grid-area: wheel; display: grid; place-items: center; min-width: 0; min-height: 0; }
.wheel-stage { position: relative; container-type: inline-size; width: clamp(120px, min(100%, 100vh - 2 * var(--edge) - var(--wheel-reserve, 300px)), 400px); width: clamp(120px, min(100%, 100dvh - 2 * var(--edge) - var(--wheel-reserve, 300px)), 400px); aspect-ratio: 1; padding-top: 4px; }
.wheel-main { grid-area: main; display: grid; align-content: center; justify-items: center; gap: var(--gap); min-width: 0; }
.wheel-lead { margin: 0; max-width: 36ch; font-size: 14px; font-weight: 600; line-height: 1.4; color: #444; }
.wheel-dlg.has-result .wheel-lead { display: none; }
.wheel-legal { grid-area: foot; margin: 0; font-size: 12px; font-weight: 600; line-height: 1.4; color: #555; }
.wheel-legal a { color: var(--black); font-weight: 800; }
.wheel-svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25)); }
.wheel-rotor { will-change: transform; }
.wheel-t-big { font-family: var(--font); font-size: 17px; font-weight: 900; font-variation-settings: "wdth" 80; letter-spacing: -.02em; }
.wheel-t-big.is-long { font-size: 14px; }
.wheel-t-big.wheel-t-pct { font-size: 21px; letter-spacing: -.01em; }
.wheel-t-small { font-family: var(--font); font-size: 6.4px; font-weight: 800; letter-spacing: .06em; }
.wheel-t-gift { font-size: 6px; }
.wheel-pointer { position: absolute; top: -4px; left: 50%; width: 9%; aspect-ratio: 30 / 36; translate: -50% 0; background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); z-index: 1; }
.wheel-pointer::after { content: ""; position: absolute; inset: 11% 23% 33%; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: .35; }
.wheel-start { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 27%; aspect-ratio: 1; translate: -50% calc(-50% + 2px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a3a3a, #000 70%); color: #fff; border: 4px solid #f3efe6; box-shadow: 0 0 0 3px #111, 0 6px 14px rgba(0, 0, 0, .45); font-size: clamp(13px, 6.2cqi, 26px); font-weight: 900; font-variation-settings: "wdth" 80; letter-spacing: .04em; cursor: pointer; }
.wheel-start:hover:not(:disabled) { background: radial-gradient(circle at 35% 30%, #e5333c, var(--accent-ink) 70%); }
.wheel-start:disabled { cursor: default; }
.wheel-dlg.has-result .wheel-start span, .wheel-dlg.is-spinning .wheel-start span { opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .wheel-start:not(:disabled) { animation: wheel-pulse 1.8s var(--ease) infinite; }
  .wheel-dlg[open] .wheel-panel { animation: wheel-in .35s var(--ease); }
}
@keyframes wheel-pulse { 0%, 100% { box-shadow: 0 0 0 3px #111, 0 0 0 0 rgba(208, 32, 42, .55), 0 6px 14px rgba(0, 0, 0, .45); } 60% { box-shadow: 0 0 0 3px #111, 0 0 0 14px rgba(208, 32, 42, 0), 0 6px 14px rgba(0, 0, 0, .45); } }
@keyframes wheel-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.wheel-status { min-height: 1.3em; margin: 0; font-size: 14px; font-weight: 800; line-height: 1.35; }
.wheel-dlg.has-result .wheel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wheel-result { display: grid; gap: 6px; width: 100%; padding: 12px 14px; border-radius: calc(var(--r) * .6); background: #f3efe6; outline: none; }
.wheel-result[hidden] { display: none; }
.wheel-won { margin: 0; font-size: 12px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.wheel-prize { margin: 0; font-size: clamp(22px, 6vw, 30px); font-weight: 900; font-variation-settings: "wdth" 80; line-height: 1.05; text-transform: uppercase; }
.wheel-prize-txt { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: #333; }
.wheel-acts { display: grid; gap: 6px; margin-top: 2px; }
.wheel-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 900; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.wheel-btn:hover { background: var(--accent-ink); }
.wheel-btn:disabled { opacity: .7; }
.wheel-btn--ghost { background: var(--black); }
.wheel-link { display: inline-flex; align-items: center; justify-content: center; justify-self: center; min-height: 36px; padding: 0 8px; font-size: 14px; font-weight: 800; color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.wheel-small { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.35; color: #555; }
.wheel-who { overflow-wrap: anywhere; }
.wheel-ok { margin: 0; font-weight: 800; color: #1f6e3f; }
.wheel-err { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.35; color: var(--accent-ink); }
/* short phones: tighter copy, no tag once the result is shown */
@media (max-height: 700px) and (max-aspect-ratio: 1/1) {
  .wheel-dlg.has-result .wheel-tag { display: none; }
  .wheel-lead, .wheel-prize-txt { font-size: 13px; line-height: 1.35; }
  .wheel-legal, .wheel-small { font-size: 11px; }
}
@media (max-height: 600px) and (max-aspect-ratio: 1/1) {
  .wheel-tag { display: none; }
  .wheel-lead { font-size: 12.5px; }
  .wheel-h { font-size: 24px; }
  .wheel-prize { font-size: 21px; }
  .wheel-result { padding: 10px 12px; gap: 4px; }
  .wheel-btn { min-height: 42px; }
  .wheel-prize-txt { font-size: 12px; }
}
/* wide landscape: two columns */
@media (min-width: 760px) and (min-aspect-ratio: 1/1) {
  .wheel-dlg { --edge: 20px; --wsz: min(100vh - 2 * var(--edge) - 2 * var(--pad), 520px); --wsz: min(100dvh - 2 * var(--edge) - 2 * var(--pad), 520px);
    width: min(100vw - 2 * var(--edge), var(--wsz) + 2 * var(--pad) + var(--col) + 440px); }
  .wheel-panel { grid-template-columns: minmax(0, var(--wsz)) minmax(300px, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "wheel head" "wheel main" "wheel foot"; column-gap: var(--col); row-gap: var(--gap); text-align: left; }
  .wheel-head { justify-items: start; align-content: start; gap: 10px; padding: 4px 52px 0 0; }
  .wheel-h { font-size: clamp(32px, 3.6vw, 50px); }
  .wheel-stage { width: min(100%, var(--wsz)); }
  .wheel-main { justify-items: stretch; align-content: start; }
  .wheel-lead { max-width: 40ch; font-size: 16px; line-height: 1.5; }
  .wheel-result { padding: 18px 20px; gap: 8px; }
  .wheel-prize { font-size: clamp(26px, 2.8vw, 36px); }
  .wheel-prize-txt { font-size: 14px; }
  .wheel-link { justify-self: start; padding: 0; }
  .wheel-legal { align-self: end; padding-top: var(--gap); border-top: 1px solid rgba(0, 0, 0, .1); }
  .wheel-toast { top: var(--pad); left: calc(var(--pad) + var(--wsz) + var(--col)); right: var(--pad); }
}
@media (min-width: 760px) and (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .wheel-dlg { --edge: 10px; --pad: 14px; --gap: 8px; }
  .wheel-h { font-size: 28px; }
  .wheel-lead { font-size: 13px; line-height: 1.4; }
  .wheel-dlg.has-result .wheel-tag, .wheel-dlg.has-result .wheel-h { display: none; }
  .wheel-dlg.has-result .wheel-head { display: none; }
  .wheel-result { padding: 10px 12px; gap: 4px; }
  .wheel-btn { min-height: 40px; }
  .wheel-prize-txt, .wheel-small, .wheel-legal { font-size: 11.5px; }
  .wheel-legal { padding-top: 6px; }
}
/* floating button (bottom left; the toast is bottom centre, the cart drawer above everything) */
.wheel-fab { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 16px 6px 6px; border-radius: 99px; background: var(--black); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); font-size: 13px; font-weight: 900; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .03em; }
.wheel-fab svg { flex: none; width: 36px; height: 36px; }
.wheel-fab:hover { background: var(--accent-ink); }
.wheel-fab.is-done { padding-right: 14px; background: #333; }
@media (prefers-reduced-motion: no-preference) { .wheel-fab:not(.is-done) svg { animation: wheel-fab-spin 6s linear infinite; } }
@keyframes wheel-fab-spin { to { rotate: 360deg; } }
@media (max-width: 420px) { .wheel-fab { font-size: 12px; padding-right: 13px; } }
body.cart-open .wheel-fab, body.menu-open .wheel-fab, html.wheel-open .wheel-fab { visibility: hidden; }
/* checkout: the « Roue de la chance » discount box (same look as the points box) */
.wheel-box { border-color: var(--accent); }
.wheel-box .wheel-val { color: var(--accent-ink); }
/* Mon compte */
.acct-wheel { display: grid; gap: 12px; border: 2px solid var(--accent); }
.acct-wheel[hidden] { display: none; }
.acct-wheel-body { display: grid; gap: 6px; }
.acct-wheel-body p { margin: 0; }
.acct-wheel-prize strong { font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; font-variation-settings: "wdth" 84; }
.acct-wheel-prize--used strong, .acct-wheel-prize--expired strong { color: #666; }
.acct-wheel-txt { font-size: 14px; font-weight: 600; color: #444; }
.acct-wheel-err { font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.acct-wheel-go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--black); color: #fff; font-size: 13px; font-weight: 900; text-transform: uppercase; text-decoration: none; }
.acct-wheel-note { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: #f3efe6; border-left: 4px solid var(--accent); font-size: 13px; font-weight: 700; }
.acct-wheel-note[hidden] { display: none; }
.wheel-dlg.has-result .wheel-lead { display: none; }
/* « Félicitations » pop-up after a spin (wheel.js toast) */
.wheel-toast { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-radius: calc(var(--r) * .6); background: var(--black); color: #fff; text-align: left; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); border-left: 6px solid var(--accent); }
.wheel-toast[hidden] { display: none; }
.wheel-toast-burst { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.3L21 9l-5 4.4L17.5 20 12 16.6 6.5 20 8 13.4 3 9l6.4-.7z' fill='%23fff'/%3E%3C/svg%3E") center / 22px no-repeat; }
.wheel-toast-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.wheel-toast-h { font-size: clamp(20px, 5.4vw, 24px); font-weight: 900; font-variation-settings: "wdth" 80; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.wheel-toast-txt { font-size: 14px; font-weight: 700; line-height: 1.3; color: #f3efe6; }
.wheel-toast-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); }
.wheel-toast-x svg { width: 16px; height: 16px; }
.wheel-toast-x:hover { background: rgba(255, 255, 255, .22); }
.wheel-toast-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .wheel-toast { opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .25s var(--ease), transform .35s var(--ease); }
  .wheel-toast.is-in { opacity: 1; transform: none; }
  .wheel-toast.is-in .wheel-toast-burst { animation: wheel-burst .7s var(--ease) both; }
}
@keyframes wheel-burst { 0% { transform: scale(.4) rotate(-40deg); } 60% { transform: scale(1.15) rotate(8deg); } 100% { transform: none; } }
/* règlement du jeu: odds tables */
.legal-table-wrap { margin: 14px 0 18px; overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table caption { text-align: left; font-weight: 800; padding-bottom: 8px; }
.legal-table th, .legal-table td { padding: 9px 10px; border-bottom: 1px solid rgba(0, 0, 0, .12); text-align: left; }
.legal-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--black); }
.legal-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.legal-table tfoot td { font-weight: 800; border-bottom: 0; }

/* =========================================================
   Bottom sheet (assets/refund.js): « Politique de remboursement » under each order form
   ========================================================= */
.cod-refund { margin: -2px 0 0; }
.cod-refund-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 800; color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.cod-refund-link svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.cod-refund-link:hover { color: var(--accent-ink); }
.cod-refund-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
html.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: auto 0 0; width: min(100%, 760px); max-width: none; max-height: none; height: auto; margin: 0 auto; padding: 0; border: 0; background: transparent; color: var(--black); overflow: visible; }
.sheet::backdrop { background: rgba(0, 0, 0, .65); opacity: 0; transition: opacity .28s var(--ease); }
.sheet.is-in::backdrop { opacity: 1; }
.sheet-panel { display: flex; flex-direction: column; max-height: min(88vh, 820px); max-height: min(88dvh, 820px); border-radius: calc(var(--r) * .8) calc(var(--r) * .8) 0 0; background: var(--white); box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); transform: translateY(100%); transition: transform .28s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.sheet.is-in .sheet-panel { transform: none; }
.sheet-head { position: relative; flex: none; display: grid; gap: 6px; padding: 20px 72px 14px 20px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.sheet-grab { position: absolute; top: 8px; left: 50%; width: 44px; height: 4px; translate: -50% 0; border-radius: 4px; background: rgba(0, 0, 0, .18); }
.sheet-tag { margin: 0; justify-self: start; }
.sheet-h { margin: 0; font-size: clamp(24px, 6vw, 34px); font-weight: 900; font-variation-settings: "wdth" 80; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.sheet-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); color: var(--black); }
.sheet-x svg { width: 20px; height: 20px; }
.sheet-x:hover { background: var(--panel-2); }
.sheet-x:focus-visible, .sheet a:focus-visible, .sheet-body:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 20px 22px; display: grid; gap: 14px; font-size: 14px; line-height: 1.5; }
.sheet-lead { margin: 0; font-weight: 600; color: #444; }
.sheet-sec { padding: 14px 16px; border-radius: calc(var(--r) * .5); background: #f3efe6; }
.sheet-sec h3 { margin: 0 0 6px; font-size: 16px; font-weight: 900; font-variation-settings: "wdth" 84; text-transform: uppercase; letter-spacing: .01em; }
.sheet-sec h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.sheet-sec p, .sheet-sec ul, .sheet-sec ol { margin: 0; }
.sheet-sec ul, .sheet-sec ol { display: grid; gap: 4px; padding-left: 20px; }
.sheet a { color: var(--black); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.sheet a:hover { color: var(--accent-ink); }
.sheet-foot { margin: 0; font-size: 13px; font-weight: 600; color: #555; }
.sheet-cgv { color: var(--accent-ink) !important; }
@media (min-width: 760px) {
  .sheet-head { padding: 24px 80px 16px 28px; }
  .sheet-body { padding: 20px 28px 28px; grid-template-columns: 1fr 1fr; align-items: start; }
  .sheet-lead, .sheet-foot { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .sheet-panel, .sheet::backdrop { transition: none; } }
