/* =========================================================
   RagastoShop — feuille de style
   Concept : l'habillage du badge (asphalte, chrome, rouge de l'anneau)
   encadre un catalogue clair « studio » où les produits sont sur fond blanc.
   Motif : graduations de compte-tours (eyebrows, hero, barre de régime au scroll).
   ========================================================= */
:root {
  /* couleur */
  --asphalt: #0b0b0d;
  --carbon: #141418;
  --graphite: #23242a;
  --steel: #8b8e96;
  --chrome: #d9dbe0;
  --paper: #ffffff;
  --soft: #f3f4f6;
  --white: #ffffff;
  --ink: #111216;
  --muted: #5d6069;
  --line: #e6e7ea;
  --red: #d0161f;
  --red-hot: #ff2b34;
  --red-deep: #8f0d14;
  /* type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  /* gabarit */
  --wrap: 1320px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --nav-h: 76px;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; text-wrap: balance; }
.hero__title, .section__title, .cat__copy h3, .season h3, .pack h3, .shop-hero__title, .qv__title, .hero-card__name, .drawer__title, .empty h3, .filters__head, .logo__word b, .cart-total { font-stretch: 125%; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--red); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
svg:not(.fill) path, svg:not(.fill) circle, svg:not(.fill) rect { vector-effect: non-scaling-stroke; }

/* icônes ligne */
.icon-btn svg, .btn svg, .topbar svg, .footer svg, .perk svg, .card__btn svg, .chip svg, .link-arrow svg, .toolbar svg, .wa-float svg, .search__bar > svg, .cat__go svg, .season__meta svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
svg.fill { fill: currentColor; stroke: none; }
svg .fill { fill: currentColor; stroke: none; }

/* ---------- éléments de base ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.eyebrow--light { color: var(--chrome); }
.ticks { width: 34px; height: 10px; flex: none; background:
  repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 8px) bottom / 100% 6px no-repeat,
  linear-gradient(var(--red), var(--red)) right bottom / 2px 10px no-repeat; opacity: .9; }

.btn { --skew: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 28px;
  font: 700 13px/1 var(--display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(var(--skew) 0, 100% 0, calc(100% - var(--skew)) 100%, 0 100%);
  transition: background .25s var(--ease), color .25s, transform .25s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hot); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--red); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: none; border-radius: var(--r); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 12px; --skew: 7px; }
.btn--block { width: 100%; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background .2s, color .2s; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn--light { background: var(--soft); color: var(--ink); }
.icon-btn--light:hover { background: var(--ink); color: #fff; }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  background: var(--soft); color: var(--ink); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.tag--red { background: var(--red); color: #fff; }
.tag--dark { background: var(--ink); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.link-arrow::after { content: ""; width: 26px; height: 2px; background: currentColor; transition: width .3s var(--ease), background .3s; }
.link-arrow:hover::after { width: 42px; background: var(--red); }
.link-arrow--light { color: #fff; }
.link-mini { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-mini:hover { color: var(--red); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: box-shadow .2s, background .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip svg { width: 14px; height: 14px; }
.chip--static { height: 28px; font-size: 13px; background: var(--soft); box-shadow: none; }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font: 700 12px/1 var(--body); }

.price { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-variant-numeric: tabular-nums; }
.price b { font-weight: 800; font-size: 17px; letter-spacing: 0; }
.price s { color: var(--muted); font-size: 13px; font-weight: 500; }
.price--lg b { font-size: 28px; font-stretch: 112%; }
.price--lg s { font-size: 17px; }
.price .save { font: 600 13px/1 var(--body); color: var(--red); }

/* ================= TOPBAR ================= */
.topbar { background: var(--asphalt); color: var(--steel); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar p { display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 4px rgba(255,43,52,.18); flex: none; }
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--chrome); transition: color .2s; }
.topbar__links a:hover { color: #fff; }
.topbar__links svg { width: 15px; height: 15px; }

/* ================= NAV ================= */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101; background: var(--asphalt); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: rgba(11,11,13,.97); color: #fff; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(11,11,13,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); transition: height .3s var(--ease); }
.nav.is-scrolled .nav__inner { height: 62px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { width: 52px; height: 52px; transition: width .3s var(--ease), height .3s var(--ease), transform .6s var(--ease); filter: drop-shadow(0 4px 14px rgba(208,22,31,.35)); }
.logo:hover img { transform: rotate(-12deg); }
.nav.is-scrolled .logo img { width: 42px; height: 42px; }
.logo__word { display: flex; flex-direction: column; line-height: .86; font-family: var(--display); text-transform: uppercase; }
.logo__word b { font-weight: 900; font-size: 20px; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 0%, #d9dbe0 45%, #8b8e96 55%, #f1f2f4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__word i { font-style: normal; font-weight: 700; font-size: 10px; letter-spacing: .62em; color: var(--red-hot); margin-top: 3px; }

.nav__list { display: flex; align-items: center; gap: 2px; height: 100%; }
nav[aria-label="Catégories"] { flex: 1; height: 100%; display: flex; justify-content: center; }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link { position: relative; display: flex; align-items: center; height: 40px; padding: 0 12px; font: 600 13px/1 var(--display); font-stretch: 108%; letter-spacing: .06em; text-transform: uppercase; color: var(--chrome); transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--red); transform: scaleX(0) skewX(-20deg); transform-origin: left; transition: transform .3s var(--ease); }
.nav__item:hover .nav__link, .nav__item.is-open .nav__link, .nav__link.is-active { color: #fff; }
.nav__item:hover .nav__link::after, .nav__item.is-open .nav__link::after, .nav__link.is-active::after { transform: scaleX(1) skewX(-20deg); }
.nav__link--promo { color: var(--red-hot); }
.nav__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__burger { display: none; }
.cart-btn__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font: 700 11px/18px var(--body); text-align: center; transform: scale(0); transition: transform .3s var(--ease); }
.cart-btn__count.is-on { transform: scale(1); }
.cart-btn__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* barre de régime = progression de lecture */
.nav__rev { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
.nav__rev span { display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--chrome) 0 70%, var(--red) 78%, var(--red-hot) 100%); }

/* méga-menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--carbon); border-top: 1px solid rgba(255,255,255,.06); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s, transform .3s var(--ease), visibility 0s .3s; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .3s var(--ease); }
.mega__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 1.3fr); gap: 40px; padding-block: 36px 40px; }
.mega h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); font-weight: 600; margin-bottom: 16px; }
.mega__col ul { display: grid; gap: 2px; }
.mega__col a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; font: 600 16px/1.1 var(--body); color: var(--chrome); transition: color .2s, transform .25s var(--ease); }
.mega__col a:hover { color: #fff; transform: translateX(6px); }
.mega__col small { font: 400 12px/1 var(--body); color: var(--steel); }
.mega__brands { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.mega__brands a { font: 500 15px/1.2 var(--body); }
.mega__all { color: var(--red-hot) !important; font: 700 12px/1.1 var(--display) !important; letter-spacing: .14em; text-transform: uppercase; }
.mega__feat { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; padding: 16px; background: var(--white); color: var(--ink); border-radius: var(--r); transition: transform .3s var(--ease); }
.mega__feat:hover { transform: translateY(-3px); }
.mega__feat-img { aspect-ratio: 1; }
.mega__feat strong { display: block; font: 700 16px/1.2 var(--display); margin: 10px 0 6px; }
.mega__feat .tag { background: var(--ink); color: #fff; }
.mega__feat .tag--red { background: var(--red); }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; background: var(--asphalt); color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 55%, rgba(208,22,31,.28), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(208,22,31,.14), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px),
    var(--asphalt); }
.hero__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-block: 64px 72px; }
.hero__title { font-size: clamp(38px, 5.2vw, 78px); font-weight: 900; line-height: .95; text-transform: uppercase; margin-bottom: 26px; }
.hero__title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--red-hot); position: relative; }
.hero__lead { max-width: 50ch; font-size: 17px; color: #c2c4ca; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.hero__facts li { display: grid; gap: 4px; }
.hero__facts strong { font: 700 26px/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.hero__facts span { font-size: 13px; color: var(--steel); }

.hero__stage { position: relative; display: grid; align-items: center; justify-items: start; min-height: 580px; padding-bottom: 40px; }
.tacho { position: absolute; right: -4%; top: 50%; transform: translateY(-54%); width: min(560px, 96%); aspect-ratio: 1; height: auto; overflow: visible; }
.tacho .t { stroke: rgba(217,219,224,.35); stroke-width: 2; }
.tacho .t-major { stroke-width: 3.5; stroke: rgba(217,219,224,.75); }
.tacho .t-red { stroke: var(--red); stroke-width: 2.5; }
.tacho .t-red.t-major { stroke: var(--red-hot); stroke-width: 4; }
.tacho .t-arc { fill: none; stroke: var(--red); stroke-width: 6; filter: drop-shadow(0 0 8px rgba(255,43,52,.7)); }
.tacho .t-arc--dim { stroke: rgba(255,255,255,.08); filter: none; stroke-width: 2; }
.tacho__num { font: 700 21px var(--display); fill: rgba(217,219,224,.8); }
.tacho__num.is-red { fill: var(--red-hot); }
.tacho__unit { font: 600 11px var(--display); letter-spacing: .24em; fill: var(--steel); text-transform: uppercase; }
.tacho__needle { transform-origin: 300px 300px; transform: rotate(-135deg); transition: transform 1.6s cubic-bezier(.3, 1.4, .4, 1); filter: drop-shadow(0 0 6px rgba(255,43,52,.8)); }

.hero-card { position: relative; z-index: 2; width: min(340px, 64%); margin-left: 2%; background: var(--white); color: var(--ink); border-radius: var(--r); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05); transform: rotate(-2deg); transition: transform .5s var(--ease); }
.hero-card:hover { transform: rotate(0) translateY(-4px); }
.hero-card.swap { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: rotate(-2deg) translateY(16px) scale(.97); } }
.hero-card__media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
.hero-card__name { font-size: 19px; margin-top: 6px; }
.hero-card__cta { display: flex; gap: 8px; align-items: center; }
.hero__tabs { position: absolute; z-index: 3; bottom: 0; left: 2%; display: flex; gap: 6px; }
.hero__tabs button { display: grid; gap: 8px; min-width: 104px; padding: 8px 4px; text-align: left; font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); transition: color .2s; }
.hero__tabs button i { height: 3px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.hero__tabs button i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.hero__tabs button.is-on { color: #fff; }
.hero__tabs button.is-on i::after { transform: scaleX(1); transition: transform 6.5s linear; }
.hero__stage:hover .hero__tabs button.is-on i::after { transition: none; }

/* entrée */
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ================= MARQUEE ================= */
.brands { display: flex; align-items: center; background: var(--carbon); color: var(--chrome); border-block: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.brands__label { flex: none; align-self: stretch; display: flex; align-items: center; padding: 0 28px 0 max(16px, env(safe-area-inset-left, 0px)); background: var(--red); color: #fff;
  font: 700 11px/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; max-width: 190px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); position: relative; z-index: 1; }
.marquee { display: flex; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; align-items: center; flex: none; animation: marquee 48s linear infinite; padding-block: 22px; }
.brands:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 12px; padding: 0 38px; white-space: nowrap; color: var(--chrome); }
.marquee__item img { height: 40px; width: auto; max-width: none; filter: brightness(0) invert(.86); opacity: .75; transition: opacity .25s, filter .25s; }
.marquee__item.is-wide img { height: 26px; }
.marquee__item span { font: 800 13px/1 var(--display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .06em; opacity: .75; transition: opacity .25s; }
.marquee__item:hover img { filter: brightness(0) invert(1); opacity: 1; }
.marquee__item:hover span { opacity: 1; }
.marquee__sep { width: 10px; height: 10px; flex: none; background: var(--red); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ================= SECTIONS ================= */
.section { padding-block: 96px; }
.section--dark .link-arrow { color: #fff; }
.section--promo { background: radial-gradient(60% 80% at 100% 0%, rgba(208,22,31,.22), transparent 60%), var(--asphalt); }
.section--promo .card { box-shadow: none; }
.section--dark { background: var(--asphalt); color: #fff; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 40px; }
.section__title { font-size: clamp(28px, 3.3vw, 46px); font-weight: 900; text-transform: uppercase; line-height: 1; }
.section__note { max-width: 40ch; color: var(--steel); }

/* rayons */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: var(--white); border-radius: var(--r); overflow: hidden; isolation: isolate; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.cat::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cat:hover { box-shadow: 0 24px 50px -30px rgba(17,18,22,.45); }
.cat:hover::after { transform: scaleX(1); }
.cat__art { position: absolute; z-index: -1; right: -6%; top: -4%; width: 70%; aspect-ratio: 1; transition: transform .6s var(--ease); }
.cat:hover .cat__art { transform: scale(1.07) rotate(-3deg); }
.cat__copy h3 { font-size: 21px; font-weight: 800; text-transform: uppercase; }
.cat__copy p { margin-top: 6px; font-size: 13px; color: var(--muted); max-width: 26ch; }
.cat__count { position: absolute; top: 18px; left: 22px; font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cat__go { position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); transition: background .3s, color .3s, transform .3s var(--ease); }
.cat:hover .cat__go { background: var(--red); color: #fff; transform: translateX(4px); }
.cat--xl { grid-column: span 2; grid-row: span 2; padding: 32px; background: var(--ink); color: #fff; }
.cat--xl .cat__art { width: 82%; right: -8%; top: 0; }
.cat--xl .cat__copy h3 { font-size: 40px; }
.cat--xl .cat__copy p { color: var(--steel); font-size: 15px; }
.cat--xl .cat__count { left: 32px; top: 30px; color: var(--steel); }
.cat--xl .cat__go { background: rgba(255,255,255,.1); color: #fff; }
.cat:last-child { grid-column: span 2; }
.cat:last-child .cat__art { width: 42%; right: 4%; top: 2%; }

/* ================= CARTES ================= */
.grid { display: grid; gap: 20px; }
.grid--shop { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--promo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.card:hover { box-shadow: 0 0 0 1px var(--line), 0 26px 50px -30px rgba(17,18,22,.5); transform: translateY(-3px); }
.card__media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--white); cursor: pointer; }
.card__views { position: absolute; inset: 0; }
.card__view { position: absolute; inset: 7%; opacity: 0; transform: scale(.97); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.card__view.is-on { opacity: 1; transform: none; }
.card__view svg, .card__view img { width: 100%; height: 100%; object-fit: contain; }
.card__view img { position: absolute; inset: -7.5%; width: 115%; height: 115%; }
/* filigrane sur les visuels studio */
.wm { position: absolute; inset: 0; pointer-events: none; }
.wm::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/watermark.png") center / 46% no-repeat; opacity: .06; }
.wm::after { content: "RAGASTOSHOP"; position: absolute; right: 12px; bottom: 12px; font: 700 10px/1 var(--display); letter-spacing: .3em; color: var(--ink); opacity: .3; transition: opacity .25s; }
.card__media:hover .wm::after, .hero-card__media .wm::after { opacity: 0; }
.price-buckets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.price-buckets .chip { height: 32px; font-size: 13px; gap: 8px; }
.price-buckets .chip small { color: var(--muted); font-size: 11px; }
.price-buckets .chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.price-buckets .chip.is-on small { color: var(--steel); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card__segs { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity .25s; }
.card__segs i { flex: 1; height: 3px; background: rgba(17,18,22,.12); border-radius: 2px; transition: background .2s; }
.card__segs i.is-on { background: var(--ink); }
.card__media:hover .card__segs, .hero-card__media .card__segs { opacity: 1; }
.card__actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.card__btn { display: inline-flex; align-items: center; gap: 0; height: 38px; padding: 0 10px; border-radius: 99px; background: var(--white); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0,0,0,.35), inset 0 0 0 1px var(--line);
  font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateX(10px); transition: opacity .25s, transform .3s var(--ease), background .2s, color .2s; }
.card__btn svg { width: 18px; height: 18px; }
.card__btn span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--ease), margin .3s; }
.card__btn:hover span { max-width: 80px; margin-left: 6px; }
.card__btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 16px -8px rgba(208,22,31,.7); }
.card__btn:hover { background: var(--ink); color: #fff; }
.card:hover .card__btn, .card:focus-within .card__btn { opacity: 1; transform: none; }
.card:hover .card__btn:nth-child(2) { transition-delay: .05s; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; border-top: 1px solid var(--line); flex: 1; }
.card__brand { display: flex; justify-content: space-between; gap: 10px; font: 700 11px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.card__brand span { color: var(--muted); font-weight: 500; letter-spacing: .06em; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__name { font: 700 15px/1.3 var(--body); }
.card__name a:hover { color: var(--red); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.swatches { display: flex; gap: 5px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 2px var(--white), 0 0 0 3px var(--line); }

/* apparition */
.pre { opacity: 0; transform: translateY(24px); }
.pre.in { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }

/* ================= PROMOS ================= */
.promo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; }
.pack { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 560px; padding: 36px; border-radius: var(--r); overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(80% 60% at 70% 30%, rgba(208,22,31,.45), transparent 70%), linear-gradient(160deg, var(--graphite), var(--asphalt) 70%); }
.pack__art { position: absolute; inset: 0; z-index: -1; }
.pack__a { position: absolute; width: 74%; right: -6%; top: 2%; transition: transform .8s var(--ease); filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.pack__b { position: absolute; width: 40%; left: 4%; top: 18%; transform: rotate(-14deg); transition: transform .8s var(--ease); filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.pack:hover .pack__a { transform: translateY(-8px) rotate(2deg); }
.pack:hover .pack__b { transform: rotate(-20deg) translateY(-6px); }
.pack__copy { display: grid; gap: 14px; justify-items: start; background: linear-gradient(transparent, rgba(11,11,13,.85) 30%); margin: -36px; padding: 120px 36px 36px; }
.pack h3 { font-size: clamp(24px, 2.5vw, 34px); font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.pack h3 em { font-style: normal; color: var(--red-hot); }
.pack p { color: #c2c4ca; max-width: 42ch; }

/* ================= RAIL NOUVEAUTÉS ================= */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; margin-bottom: 18px; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav .icon-btn { box-shadow: inset 0 0 0 1.5px var(--ink); }
.rail-nav .icon-btn:hover { background: var(--ink); color: #fff; }
.rail-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.rail-progress { height: 3px; background: var(--line); overflow: hidden; }
.rail-progress span { display: block; height: 100%; background: var(--red); transition: transform .15s linear; }

/* ================= SAISONS ================= */
.seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
.season { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 22px; row-gap: 6px; padding: 32px 28px; min-height: 280px; background: var(--asphalt); transition: background .35s; }
.season:hover { background: var(--carbon); }
.season__gauge { grid-row: 1 / span 3; width: 14px; border-radius: 99px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.season__gauge i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lvl); background: linear-gradient(0deg, var(--chrome), var(--red) 80%); border-radius: inherit; transition: height .8s var(--ease); }
.season:hover .season__gauge i { height: calc(var(--lvl) * .85 + 15%); }
.season__range { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.season h3 { font-size: 30px; font-weight: 900; text-transform: uppercase; align-self: end; }
.season__meta { display: inline-flex; align-items: center; gap: 10px; color: var(--chrome); font-size: 14px; }
.season__meta svg { transition: transform .3s var(--ease); color: var(--red-hot); }
.season:hover .season__meta svg { transform: translateX(6px); }

/* ================= COCKPIT ================= */
.cockpit { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.cockpit__copy { display: grid; gap: 20px; justify-items: start; }
.cockpit__copy > p { color: var(--muted); max-width: 52ch; font-size: 17px; }
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 10px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg) scale(.8); }

/* ================= SERVICES ================= */
.perks { background: var(--red); color: #fff; }
.perks__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.perk { display: flex; align-items: center; gap: 16px; padding: 28px 24px; }
.perk + .perk { border-left: 1px solid rgba(255,255,255,.22); }
.perk svg { width: 34px; height: 34px; color: #fff; stroke-width: 1.5; }
.perk strong { display: block; font: 800 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.perk span { font-size: 14px; color: rgba(255,255,255,.82); }

/* ================= VISITE ================= */
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: stretch; }
.visit__copy { display: grid; gap: 28px; align-content: start; justify-items: start; }
.visit__list { display: grid; margin: 0; width: 100%; }
.visit__list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.visit__list dt { font: 700 11px/1.9 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.visit__list dd { margin: 0; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.visit__social { gap: 18px !important; }
.visit__social a, .visit__list dd > a { border-bottom: 1.5px solid var(--red); }
.copy { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--soft); font-weight: 600; }
.copy:hover { background: var(--ink); color: #fff; }
.visit__map { min-height: 420px; border-radius: var(--r); overflow: hidden; background: var(--graphite); position: relative; }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ================= FOOTER ================= */
.footer { background: var(--asphalt); color: var(--steel); padding-top: 72px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.footer__brand { display: grid; gap: 18px; justify-items: start; max-width: 34ch; }
.footer__brand img { width: 120px; height: 120px; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; margin-top: 3px; color: var(--red-hot); }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); color: var(--chrome); transition: background .2s, color .2s; }
.footer__social a:hover { background: var(--red); color: #fff; box-shadow: none; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

.wa-float { position: fixed; z-index: 90; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #1fae5b; color: #fff; box-shadow: 0 14px 30px -10px rgba(31,174,91,.7); transition: transform .3s var(--ease); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* ================= OVERLAYS ================= */
.drawer, .modal, .search { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s .4s; }
.drawer.is-open, .modal.is-open, .search.is-open { visibility: visible; transition: none; }
.drawer::before, .modal::before, .search::before { content: ""; position: absolute; inset: 0; background: rgba(5,5,7,.6); opacity: 0; transition: opacity .35s; pointer-events: none; }
.is-open::before { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); display: flex; flex-direction: column; background: var(--white); color: var(--ink); transition: transform .45s var(--ease);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); padding-right: env(safe-area-inset-right, 0px); }
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); background: var(--asphalt); color: #fff; padding-left: env(safe-area-inset-left, 0px); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer--left .drawer__head { border-color: rgba(255,255,255,.08); }
.drawer--right .icon-btn:hover { background: var(--soft); }
.drawer__title { font: 800 19px/1 var(--display); text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer--left .drawer__foot { border-color: rgba(255,255,255,.08); }
.m-cat { border-bottom: 1px solid rgba(255,255,255,.08); }
.m-cat summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 700 16px/1 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; list-style: none; }
.m-cat summary::-webkit-details-marker { display: none; }
.m-cat summary span { font: 500 13px/1 var(--body); color: var(--steel); }
.m-cat summary::after { content: "+"; font: 400 26px/1 var(--body); color: var(--red-hot); margin-left: 12px; transition: transform .3s; }
.m-cat[open] summary::after { transform: rotate(45deg); }
.m-cat ul { display: grid; gap: 2px; padding: 0 0 16px 12px; border-left: 2px solid var(--red); margin-bottom: 10px; }
.m-cat a { display: block; padding: 7px 0; color: var(--chrome); }
.m-cat small { color: var(--steel); }
.m-link { display: block; padding: 16px 0; font: 700 16px/1 var(--display); font-stretch: 112%; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.08); }
.m-link--promo { color: var(--red-hot); }

/* panier */
.line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__img { aspect-ratio: 1; background: var(--white); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 6px; }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__info { display: grid; gap: 3px; align-content: start; font-size: 14px; }
.line__info strong { font-size: 15px; }
.line__end { display: grid; justify-items: end; align-content: space-between; }
.qty { display: inline-flex; align-items: center; margin-top: 6px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); width: max-content; }
.qty button { width: 30px; height: 30px; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font: 800 19px/1 var(--display); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.cart-empty { display: grid; gap: 14px; justify-items: start; padding: 28px 0; }

/* recherche */
.search__panel { position: absolute; left: 0; right: 0; top: 0; background: var(--white); padding-block: calc(24px + env(safe-area-inset-top, 0px)) 32px; transform: translateY(-100%); transition: transform .45s var(--ease); max-height: 90vh; overflow-y: auto; }
.search.is-open .search__panel { transform: none; }
.search__bar { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.search__bar > svg { width: 26px; height: 26px; }
.search__bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 800 clamp(20px, 2.6vw, 30px)/1.2 var(--display); font-stretch: 115%; text-transform: uppercase; }
.search__bar input::placeholder { color: #b6b9c0; }
.search__bar .icon-btn:hover { background: var(--soft); }
.search__hints { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.search__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.hit { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r); transition: background .2s; }
.hit:hover { background: var(--soft); }
.hit__img { aspect-ratio: 1; background: var(--white); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 4px; }
.hit small { display: block; font-size: 12px; color: var(--muted); }
.hit strong { font-weight: 600; }

/* aperçu rapide */
.modal { display: grid; place-items: center; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
.modal__panel { position: relative; width: min(1060px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--white); border-radius: var(--r); opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .3s, transform .45s var(--ease); }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--soft); }
.modal__close:hover { background: var(--ink) !important; color: #fff; }
.qv { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.qv__media { padding: 24px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.qv__main { position: relative; aspect-ratio: 1; padding: 6%; }
.qv__main img { width: 100%; height: 100%; object-fit: contain; }
.qv__tag { position: absolute; top: 0; left: 0; }
.qv__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qv__thumbs button { aspect-ratio: 1; padding: 8px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.qv__thumbs button.is-on { box-shadow: inset 0 0 0 2px var(--ink); }
.qv__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.qv__info { padding: 40px 36px 36px; display: grid; gap: 20px; align-content: start; }
.qv__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; text-transform: uppercase; margin-top: -6px; line-height: 1.05; }
.qv__desc { color: var(--muted); }
.opt { display: grid; gap: 10px; }
.opt__label { font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.swatches--lg button { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px var(--white), 0 0 0 4px var(--line); transition: box-shadow .2s; }
.swatches--lg { gap: 12px; }
.swatches--lg button.is-on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { min-width: 50px; height: 44px; padding: 0 12px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; transition: box-shadow .2s, background .2s, color .2s; }
.sizes button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sizes button.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.qv__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.qv__cta .btn--red { flex: 1; }
.qv__season { display: flex; flex-wrap: wrap; gap: 6px; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }

.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); max-width: calc(100vw - 32px); padding: 14px 22px; background: var(--ink); color: #fff; border-left: 4px solid var(--red); font-weight: 500; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: transform .4s var(--ease), opacity .3s, visibility 0s .4s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .4s var(--ease), opacity .3s; }

/* ================= BOUTIQUE ================= */
.shop-hero { background: var(--asphalt); color: #fff; padding-top: 28px; position: relative; overflow: hidden; }
.shop-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 85% 40%, rgba(208,22,31,.3), transparent 70%); pointer-events: none; }
.shop-hero .wrap { position: relative; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--steel); }
.crumbs a:hover { color: #fff; }
.crumbs span { display: inline-flex; gap: 8px; }
.shop-hero__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 200px; }
.shop-hero__title { font-size: clamp(32px, 4.8vw, 64px); font-weight: 900; text-transform: uppercase; line-height: .95; }
.shop-hero__tag { margin-top: 12px; color: var(--steel); font-size: 17px; }
.shop-hero__art { width: 220px; flex: none; margin-block: -10px -40px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); transform: rotate(-6deg); }
.cat-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 14px 18px 16px; font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.cat-tabs a small { font: 500 12px/1 var(--body); letter-spacing: 0; opacity: .7; }
.cat-tabs a:hover { color: #fff; }
.cat-tabs a.is-on { color: #fff; border-color: var(--red); }

.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; padding-block: 36px 96px; }
.filters { position: sticky; top: calc(62px + 20px + env(safe-area-inset-top, 0px)); align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
.filters__head, .filters__foot { display: none; }
.fg { border-bottom: 1px solid var(--line); }
.fg summary { display: flex; align-items: center; gap: 8px; padding: 16px 0; font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; list-style: none; }
.fg summary::-webkit-details-marker { display: none; }
.fg summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.fg[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.fg__opts { display: grid; gap: 2px; padding-bottom: 16px; }
.fg--toggles { display: grid; gap: 12px; padding: 4px 0 18px; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; font-size: 15px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 20px; height: 20px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #b9bcc3; background: var(--white); transition: background .2s, box-shadow .2s; position: relative; }
.check__box::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.check input:checked + .check__box { background: var(--red); box-shadow: none; }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--red-hot); outline-offset: 2px; }
.check:hover .check__box { box-shadow: inset 0 0 0 1.5px var(--ink); }
.check__label small { display: block; font-size: 12px; color: var(--muted); }
.check__n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 15px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 40px; height: 22px; border-radius: 99px; background: #c9ccd2; position: relative; transition: background .25s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--red-hot); outline-offset: 2px; }
.range { padding-bottom: 20px; }
.range__vals { display: flex; justify-content: space-between; font: 700 14px/1 var(--display); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.range__track { position: relative; height: 22px; }
.range__track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: var(--line); border-radius: 2px; }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px var(--red), 0 2px 6px rgba(0,0,0,.25); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px var(--red); cursor: grab; }
.range input::-webkit-slider-runnable-track { background: none; }

.toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.toolbar__filters { display: none; gap: 8px; }
.toolbar__count { color: var(--muted); }
.toolbar__count b { color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 18px; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 10px; font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sort select { height: 42px; padding: 0 36px 0 14px; border: 0; border-radius: var(--r); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111216' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line); -webkit-appearance: none; appearance: none; font: 500 15px var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; min-height: 0; }
.chip--x { background: var(--ink); color: #fff; box-shadow: none; }
.chip--x:hover { background: var(--red); box-shadow: none; }
.empty { display: grid; gap: 14px; justify-items: start; padding: 56px 40px; background: var(--white); border-radius: var(--r); }
.empty h3 { font-size: 24px; text-transform: uppercase; }
.empty p { color: var(--muted); max-width: 52ch; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .nav__link { padding: 0 8px; font-size: 14px; letter-spacing: .05em; }
  .nav__link::after { left: 8px; right: 8px; }
  .nav__inner { gap: 16px; }
  .mega__inner { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(240px, 1.2fr); }
  .mega__inner > .mega__col:nth-child(3) { display: none; }
}
@media (max-width: 1060px) {
  :root { --nav-h: 66px; }
  nav[aria-label="Catégories"] { display: none; }
  .nav__burger { display: inline-grid; margin-left: -8px; }
  .logo img { width: 44px; height: 44px; }
  .hero__grid { grid-template-columns: 1fr; padding-block: 48px 56px; }
  .hero__stage { min-height: 540px; justify-items: center; }
  .tacho { right: auto; left: 50%; transform: translate(-50%, -54%); width: min(560px, 120%); }
  .hero-card { margin-left: 0; width: min(340px, 74%); }
  .hero__tabs { left: 50%; transform: translateX(-50%); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .promo-layout, .cockpit, .visit__grid { grid-template-columns: 1fr; }
  .pack { min-height: 460px; }
  .rail { grid-auto-columns: calc((100% - 40px) / 3); }
  .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .qv { grid-template-columns: 1fr; }
  .qv__media { border-right: 0; border-bottom: 1px solid var(--paper); }
  .qv__info { padding: 28px 24px; }
  .shop { grid-template-columns: 1fr; }
  .toolbar__filters { display: inline-flex; clip-path: none; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(380px, 90vw); max-height: none; background: var(--white); padding: env(safe-area-inset-top, 0px) 20px 0 max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column;
    transform: translateX(-102%); transition: transform .45s var(--ease); box-shadow: 30px 0 60px -30px rgba(0,0,0,.5); }
  .filters.is-open { transform: none; }
  #filter-groups { flex: 1; overflow-y: auto; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font: 800 19px/1 var(--display); text-transform: uppercase; }
  .filters__head .icon-btn:hover { background: var(--soft); }
  .filters__foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .topbar p { font-size: 12px; }
  .topbar__links a:not([aria-label]) { display: none; }
  .nav__wa { display: none; }
  .logo__word b { font-size: 21px; }
  .hero__title { font-size: clamp(32px, 9.6vw, 50px); }
  .hero__lead { font-size: 16px; }
  .hero__facts { gap: 14px 26px; margin-top: 36px; }
  .hero__facts strong { font-size: 21px; }
  .hero__stage { min-height: 440px; }
  .tacho { width: 128%; }
  .hero-card { width: min(320px, 84%); }
  .hero-card__name { font-size: 17px; }
  .section { padding-block: 64px; }
  .section__head { margin-bottom: 28px; }
  .cats { grid-auto-rows: 180px; gap: 10px; }
  .cat { padding: 16px; }
  .cat__copy h3 { font-size: 15px; }
  .cat__copy p, .cat__go { display: none; }
  .cat__count { left: 16px; top: 14px; }
  .cat--xl { grid-row: span 2; padding: 20px; }
  .cat__art { width: 78%; right: -8%; }
  .cat--xl .cat__copy h3 { font-size: 28px; }
  .cat--xl .cat__copy p { display: block; }
  .cat--xl .cat__count { left: 20px; top: 18px; }
  .cat--xl .cat__art { width: 58%; top: 4%; }
  .grid--promo, .grid--two, .grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rail { grid-auto-columns: 72%; gap: 12px; }
  .card__body { padding: 12px; }
  .card__brand span { display: none; }
  .card__name { font-size: 14px; }
  .price b { font-size: 17px; }
  .price s { font-size: 13px; }
  .card__foot .swatches { display: none; }
  .card__btn { opacity: 1; transform: none; height: 34px; padding: 0 8px; }
  .card__btn:first-child { display: none; }
  .pack { min-height: 420px; padding: 24px; }
  .pack__copy { margin: -24px; padding: 100px 24px 24px; }
  .marquee__item { padding: 0 22px; }
  .marquee__item img { height: 30px; }
  .marquee__item.is-wide img { height: 20px; }
  .brands__label { max-width: 120px; font-size: 11px; padding-right: 20px; }
  .seasons { grid-template-columns: 1fr 1fr; }
  .season { padding: 22px 18px; min-height: 210px; column-gap: 14px; }
  .season h3 { font-size: 20px; }
  .season__range { font-size: 12px; }
  .perks__grid { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
  .perk { padding: 18px 0; }
  .visit__list > div { grid-template-columns: 1fr; gap: 4px; }
  .visit__map { min-height: 300px; }
  .footer__grid { grid-template-columns: 1fr; }
  .search__results { grid-template-columns: 1fr; }
  .shop-hero__art { width: 120px; margin-bottom: -20px; }
  .shop-hero__row { min-height: 150px; }
  .toolbar { flex-wrap: wrap; }
  .sort span { display: none; }
  .qv__media { padding: 16px; }
  .specs > div { grid-template-columns: 110px 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { max-height: 92dvh; border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 400px) {
  .hero__cta .btn { width: 100%; }
  .seasons { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .card__segs { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}

/* ---- v2 : carte hero détaillée, zoom photo, crédits ---- */
.hero-card__body { display: grid; gap: 14px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.hero-card__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-card__head .price { flex-direction: column; align-items: flex-end; gap: 2px; }
.hero-card__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 10px 0; border-block: 1px solid var(--line); }
.hero-card__specs dt { font: 700 9px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-card__specs dd { margin: 3px 0 0; font: 700 12px/1.25 var(--body); }
.hero-card__cta { justify-content: space-between; }
.hero-card__cta > span { display: flex; gap: 8px; align-items: center; }
.card__view img.is-zoom { transform: scale(1.7); transform-origin: 50% 40%; }
.credits { flex-basis: 100%; font-size: 12px; color: var(--steel); }
.credits summary { cursor: pointer; width: max-content; }
.credits ul { display: grid; gap: 4px; margin-top: 8px; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }
.card, .hero-card, .mega__feat { color: var(--ink); }
.nav__link { white-space: nowrap; }
.hero-card__cta .link-arrow { white-space: nowrap; font-size: 11px; }
.tacho__unit { display: none; }
.cat--xl { background: var(--white); color: var(--ink); }
.cat--xl .cat__copy p, .cat--xl .cat__count { color: var(--muted); }
.cat--xl .cat__go { background: var(--soft); color: var(--ink); }
.cat__art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat--xl .cat__art { width: 74%; right: -2%; top: 2%; }
@media (max-width: 1200px) { .nav__link { font-size: 12px; letter-spacing: .03em; padding: 0 7px; } }
/* filigrane = vrai logo RagastoShop en coin (mêmes proportions que tools/photo_studio.py) */
.wm::after { content: ""; right: 3.5%; bottom: 3.5%; width: 12%; aspect-ratio: 1; background: url("../assets/img/logo-badge-512.png") center / contain no-repeat; opacity: .92; letter-spacing: 0; }
.card__media:hover .wm::after, .hero-card__media .wm::after { opacity: .92; }
@media (max-width: 1500px) { .nav__inner { gap: 18px; } .nav__link { padding: 0 8px; font-size: 12px; } .nav__link::after { left: 8px; right: 8px; } }
