/* ==========================================================================
   TEKKI FOR LIFE BUSINESS — Boutique
   ========================================================================== */
:root { --header-h: 64px; --announce-h: 36px; --promo-h: 0px; }
html.has-promo { --promo-h: 40px; }
@media (max-width: 760px) { :root { --header-h: 56px; } }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.is-intro, html.is-locked { overflow: hidden; }
html.is-locked body { padding-right: var(--sbw, 0px); }
body { overflow-x: clip; }

/* ---------- Intro ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s var(--ease-io);
  cursor: pointer;
}
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro__word {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 64px; font-size: clamp(64px, 15vw, 220px);
  font-size: clamp(64px, min(15vw, 22vh), 220px); /* 3 lignes : tient aussi sur les écrans peu hauts */
  line-height: .84; letter-spacing: .01em;
}
.intro__line { display: flex; overflow: hidden; padding-bottom: .02em; }
.intro__line > span {
  display: inline-block; transform: translateY(105%);
  animation: intro-up 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 40ms + 150ms);
}
.intro.is-done .intro__line > span { transform: none; animation: intro-out .8s var(--ease-io) forwards; animation-delay: calc(var(--i) * 15ms); }
@keyframes intro-up { to { transform: none; } }
@keyframes intro-out { to { transform: translateY(-105%); } }
.intro__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between;
  font: 500 12px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; opacity: .6;
}
.intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); }
.intro__bar i { display: block; height: 100%; background: var(--white); transform-origin: 0 50%; transform: scaleX(0); animation: intro-bar 2s var(--ease-io) forwards; }
@keyframes intro-bar { to { transform: scaleX(1); } }

/* ---------- Barre de progression de lecture ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; mix-blend-mode: difference; }
.progress i { display: block; height: 100%; background: var(--white); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Compte à rebours de promotion ---------- */
.promo {
  position: relative; z-index: 32;
  height: var(--promo-h); overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 var(--gutter);
  background: #e1251b; color: var(--white);
  font: 600 13px/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.promo[hidden] { display: none; }
.promo__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.promo__label { flex: none; font-weight: 500; opacity: .9; }
.promo__time { flex: none; min-width: 8ch; font: 700 16px/1 var(--f-text); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .promo { gap: 6px; font-size: 11px; letter-spacing: .03em; }
  .promo__time { font-size: 14px; }
}

/* ---------- Bandeau d'annonce ---------- */
.announce {
  position: relative; z-index: 31;
  height: var(--announce-h); overflow: hidden;
  display: flex; align-items: center;
  background: var(--gray); color: var(--ink);
  font: 400 12px/16px var(--f-text); letter-spacing: .02em;
}
.announce__track { display: flex; flex: none; white-space: nowrap; animation: announce-run 40s linear infinite; }
.announce:hover .announce__track { animation-play-state: paused; }
.announce__item { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; }
.announce__item::after { content: ''; width: 5px; height: 5px; background: var(--ink); transform: rotate(45deg); }
@keyframes announce-run { to { transform: translateX(-50%); } }
.announce__close { position: absolute; right: 0; top: 0; height: 100%; width: 44px; display: grid; place-items: center; background: var(--gray); }
.announce.is-closing { height: 0; transition: height .5s var(--ease); }

/* ---------- En-tête ---------- */
.header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: transform .6s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header__nav { display: flex; gap: 28px; }
.nav-link { font: 400 14px/1.5 var(--f-text); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 1280px) {
  .header__nav { gap: 18px; }
  .nav-link { font-size: 13px; letter-spacing: .04em; }
}
.header__burger { display: none; margin-left: -10px; }
.logo { justify-self: center; display: flex; align-items: center; gap: 10px; line-height: 1; }
.logo__mark { height: 50px; width: auto; flex: none; transition: transform .8s var(--ease-back); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.08); }
.js:not(.is-ready) .logo__mark { opacity: 0; }
.is-ready .logo__mark { animation: logo-in 1.2s var(--ease-back) .15s backwards; }
@keyframes logo-in { from { opacity: 0; transform: scale(.4) rotate(-30deg); } }
.logo__text { display: flex; flex-direction: column; align-items: center; }
.logo__word { font-family: var(--f-display); font-weight: 900; font-size: 28px; letter-spacing: .04em; line-height: .9; white-space: nowrap; }
.logo__word .lc { display: inline-block; transition: transform .5s var(--ease); transition-delay: calc(var(--c) * 22ms); }
.logo:hover .logo__word .lc { transform: translateY(-3px); }
.logo__sub { font: 500 9px/1 var(--f-text); letter-spacing: .5em; text-transform: uppercase; margin-top: 4px; padding-left: .5em; }
.header__utils { justify-self: end; display: flex; gap: 4px; margin-right: -10px; }
.cart-btn .cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--ink); color: var(--white);
  font: 600 11px/18px var(--f-text); text-align: center;
}
.cart-btn.is-bump { animation: cart-bump .7s var(--ease-back); }
.cart-btn.is-bump .cart-count { animation: count-pop .6s var(--ease-back); }
@keyframes cart-bump { 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94) rotate(4deg); } }
@keyframes count-pop { 0% { transform: scale(.2); } 70% { transform: scale(1.25); } }

@media (max-width: 1180px) {
  .header { grid-template-columns: auto 1fr auto; }
  .header__nav { display: none; }
  .header__burger { display: inline-grid; }
  .logo__word { font-size: 24px; }
  .logo__mark { height: 42px; }
  .logo { gap: 8px; }
}
@media (max-width: 380px) {
  .logo__word { font-size: 21px; }
  .logo__mark { height: 38px; }
}

/* Menu mobile */
.mmenu {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 29;
  background: var(--white); padding: 24px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.mmenu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io); }
.mmenu__nav { display: grid; gap: 4px; }
.mmenu__nav a {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 44px; font-size: clamp(44px, 12vw, 72px); line-height: .95;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.mmenu.is-open .mmenu__nav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + 200ms); }
.mmenu__foot { display: grid; gap: 10px; font-size: 14px; color: var(--charcoal); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: calc(100svh - var(--header-h) - var(--announce-h) - var(--promo-h));
  min-height: 560px; max-height: 1100px;
  background: var(--ink); color: var(--white);
}
@supports not (height: 100svh) { .hero { height: calc(100vh - var(--header-h) - var(--announce-h) - var(--promo-h)); } }
.hero__media { position: absolute; top: 0; right: 0; bottom: -18%; left: 0; will-change: transform; }
.hero__zoom { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: scale(1.18); transition: transform 2.6s var(--ease); }
.is-ready .hero__zoom { transform: scale(1); }
.hero__zoom img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 1s var(--ease); }
.hero__zoom img.is-loaded { opacity: 1; } /* la photo apparaît en fondu, une fois chargée */
.hero__shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(10, 10, 12, .72) 0%, rgba(10, 10, 12, .28) 42%, rgba(10, 10, 12, 0) 68%); }
.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; bottom: clamp(36px, 7vh, 88px);
  max-width: 1100px; will-change: transform, opacity;
}
.hero__eyebrow { margin-bottom: 20px; opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .25s, transform 1s var(--ease) .25s; }
.hero__title {
  font-size: 76px; font-size: clamp(76px, 13.5vw, 196px);
  font-size: clamp(76px, min(13.5vw, 21svh), 196px); /* ne déborde pas sur les écrans d'ordinateur peu hauts */
  letter-spacing: .015em;
}
.hero__title.is-3l { /* titre sur 3 lignes, ex. « Tekki|for life|Business » */
  font-size: 60px; font-size: clamp(60px, 10vw, 150px);
  font-size: clamp(60px, min(10vw, 14svh), 150px);
}
.hero__title .ln { display: block; overflow: hidden; padding: .02em 0 .05em; margin-bottom: -.05em; }
.hero__title .ch { display: inline-block; transform: translateY(112%) rotate(7deg); transform-origin: 0 100%; transition: transform 1.3s var(--ease); transition-delay: calc(var(--c) * 32ms + 250ms); }
.hero__sub {
  max-width: 560px; margin-top: 24px;
  font: 500 17px/1.5 var(--f-text); font-size: clamp(17px, 1.6vw, 22px);
  opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .75s, transform 1s var(--ease) .75s;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px;
  opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .9s, transform 1s var(--ease) .9s;
}
.is-ready .hero__eyebrow, .is-ready .hero__sub, .is-ready .hero__actions { opacity: 1; transform: none; }
.is-ready .hero__title .ch { transform: none; }
.hero__cta { border-color: var(--white); transition: color .5s var(--ease), transform .5s var(--ease); }
.hero__link { color: var(--white); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 36px; bottom: clamp(36px, 7vh, 88px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 11px/1 var(--f-text); letter-spacing: .24em; text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0; transition: opacity 1s var(--ease) 1.2s;
}
.is-ready .hero__scroll { opacity: .9; }
.hero__scroll i { position: relative; width: 1px; height: 64px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--white); animation: scroll-cue 1.8s var(--ease-io) infinite; }
@keyframes scroll-cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (max-width: 760px) {
  .hero { min-height: 520px; }
  .hero__zoom img { object-position: 38% 30%; }
  .hero__scroll { display: none; }
  .hero__actions { gap: 16px 24px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) var(--gutter); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-kicker { margin-bottom: 16px; color: var(--charcoal); }
.section-title { font-size: 52px; font-size: clamp(52px, 7vw, 112px); }

/* Titres découpés mot à mot */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-split] .wi { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--w) * 70ms); }
.js [data-split].is-in .wi { transform: none; }

/* Apparitions au défilement */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Tuiles produit ---------- */
.tile { position: relative; display: flex; flex-direction: column; background: var(--mist); min-width: 0; }
.js .tile.will-reveal { opacity: 0; transform: translateY(48px); }
.js .tile.will-reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.tile__visual { position: relative; overflow: hidden; }
.tile__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
@supports not (aspect-ratio: 1 / 1) { .tile__media { height: 0; padding-top: 125%; } } /* vieux téléphones : la photo garde sa hauteur */
.tile__ph { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; font: 900 120px/1 var(--f-display); color: var(--gray); text-transform: uppercase; }
.tile__media::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--porcelain);
  transform-origin: 50% 0; transform: scaleY(0); pointer-events: none;
}
.js .tile.will-reveal .tile__media::after { transform: scaleY(1); }
.js .tile.will-reveal.is-in .tile__media::after { transform: scaleY(0); transition: transform 1.2s var(--ease-io); transition-delay: calc(var(--i, 0) * 70ms + 100ms); }
.tile__img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .7s var(--ease); }
.tile__img--alt { opacity: 0; }
.tile:hover .tile__img { transform: scale(1.07); }
.tile:hover .tile__img--alt { opacity: 1; }
.tile__badges { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.tile__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  transform: translateY(calc(100% + 16px)); transition: transform .7s var(--ease), color .5s var(--ease);
}
.tile:hover .tile__quick { transform: none; }
.tile__quick:focus-visible { transform: none; } /* règle à part : les vieux navigateurs ignorent :focus-visible */
.tile__info { flex: 1; display: grid; align-content: start; gap: 2px; padding: 18px 20px 22px; }
.tile__cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); }
.tile__name { font: 500 16px/1.35 var(--f-text); }
.tile__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.tile:hover .tile__name a { background-size: 100% 1px; }
.tile__price { margin-top: 6px; font: 500 16px/1.4 var(--f-text); font-variant-numeric: tabular-nums; }
.tile__price s { margin-left: 8px; font-weight: 400; font-size: 14px; color: var(--steel); }
.tile__price small, .qv__price small { font-size: .72em; font-weight: 400; color: var(--charcoal); }
.tile__pack { font-size: 12px; color: var(--charcoal); }
.tile__low { font-size: 12px; color: var(--warn); }
.tile__add { margin-top: 14px; justify-self: start; }
.tile.is-out .tile__img { filter: grayscale(1); opacity: .55; }
.tile.is-out:hover .tile__img { transform: none; }
.tile.is-out .tile__quick { display: none; }
@media (hover: none) { .tile__quick { display: none; } }

/* ---------- Rail tendances ---------- */
.trending { padding-bottom: calc(var(--section) * .7); }
.rail-nav { display: flex; gap: 8px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3px) / 4); gap: 1px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a, .rail.is-dragging button { pointer-events: none; }
.rail > .tile { scroll-snap-align: start; }
.rail-progress { position: relative; height: 2px; margin-top: 32px; background: var(--line); }
.rail-progress i { position: absolute; top: 0; left: 0; height: 100%; width: 25%; background: var(--ink); transition: transform .4s var(--ease); }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 2px) / 2.6); } }
@media (max-width: 640px) {
  .rail { grid-auto-columns: 74%; }
  .rail-nav { display: none; }
}

/* ---------- Grand bandeau défilant ---------- */
.bigmarquee { overflow: hidden; padding: 28px 0; padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bigmarquee__track { display: flex; width: max-content; will-change: transform; }
.bigmarquee__item {
  display: inline-flex; align-items: center; gap: .28em; padding-right: .28em;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 64px; font-size: clamp(64px, 10.5vw, 176px); line-height: .9; letter-spacing: .01em; white-space: nowrap;
}
.bigmarquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.bigmarquee__star { width: .42em; height: .42em; fill: var(--ink); flex: none; }

/* ---------- Univers (horizontal épinglé) ---------- */
.universes { position: relative; background: var(--ink); color: var(--white); }
.universes__pin {
  position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 24px; gap: clamp(24px, 4vh, 48px);
  padding: var(--header-h) 0 32px;
}
.universes__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter); }
.universes__head .eyebrow { margin-bottom: 16px; opacity: .7; }
.universes__hint { display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.universes__track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.ucard {
  position: relative; flex: none; display: block;
  width: 260px; width: clamp(260px, 30vw, 460px); height: min(58vh, 600px);
  overflow: hidden; background: #1d1d22;
}
.ucard__img { position: absolute; top: 0; left: -12%; width: 124%; max-width: none; height: 100%; object-fit: cover; will-change: transform; transition: opacity .6s var(--ease); }
.ucard__veil { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(10, 10, 12, .75), rgba(10, 10, 12, 0) 55%); transition: opacity .6s var(--ease); }
.ucard__label { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ucard__name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 40px; font-size: clamp(40px, 4.4vw, 72px); line-height: .88; }
.ucard__count { display: block; margin-top: 10px; font: 500 13px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ucard__go { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px solid var(--white); display: grid; place-items: center; transition: background-color .4s, color .4s, transform .6s var(--ease); }
.ucard:hover .ucard__go { background: var(--white); color: var(--ink); transform: rotate(-45deg); }
.ucard__num { position: absolute; top: 20px; left: 24px; font: 500 12px/1 var(--f-text); letter-spacing: .2em; opacity: .8; }
.ucard--all { background: var(--white); color: var(--ink); }
.ucard--all .ucard__name { font-size: 56px; font-size: clamp(56px, 6vw, 96px); }
.ucard--all .ucard__go { border-color: var(--ink); width: 72px; height: 72px; }
.ucard--all:hover .ucard__go { background: var(--ink); color: var(--white); transform: translateX(6px); }
.universes__bar { height: 2px; margin: 0 var(--gutter); background: rgba(255, 255, 255, .18); }
.universes__bar i { display: block; height: 100%; background: var(--white); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .universes { height: auto !important; }
  .universes__pin { position: relative; height: auto; padding: var(--section) 0; }
  .universes__track {
    width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    transform: none !important; padding-bottom: 4px;
  }
  .universes__track::-webkit-scrollbar { display: none; }
  .ucard { width: 78vw; max-width: 420px; height: 64vh; max-height: 560px; scroll-snap-align: center; }
  .universes__bar { display: none; }
}

/* ---------- Boutique ---------- */
.trending + .shop { padding-top: calc(var(--section) * .5); }
.shop__head { flex-wrap: wrap; }
.shop__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.shop__search { width: 340px; max-width: 100%; }
.shop__sort .select { border-radius: 9999px; min-height: 52px; padding-left: 24px; border-color: var(--mist); background-color: var(--mist); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 28px; padding: 0 var(--gutter) 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 9999px;
  background: var(--mist); border: 1px solid transparent;
  font: 500 14px/1.3 var(--f-text);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--white); }
.chip sup { font-size: 11px; opacity: .6; top: 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--white); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__info { padding: 14px 14px 18px; }
  .tile__name, .tile__price { font-size: 14px; }
  .tile__add { width: 100%; padding: 8px 6px; font-size: 11px; letter-spacing: .02em; }
  .shop__search { width: 100%; }
  .shop__tools { width: 100%; }
  .shop__sort { flex: 1; }
  .shop__sort .select { width: 100%; }
}
.shop__empty { display: grid; justify-items: center; gap: 12px; padding: 72px 0; text-align: center; }
.skel-tile { aspect-ratio: 4 / 6.2; }
@supports not (aspect-ratio: 1 / 1) { .skel-tile { height: 0; padding-top: 155%; } }

/* ---------- Étapes ---------- */
.steps__head { max-width: 900px; }
.steps__head .eyebrow { margin-bottom: 16px; color: var(--charcoal); }
.steps__wrap { position: relative; margin-top: 48px; margin-top: clamp(48px, 7vw, 88px); }
.steps__line { position: absolute; top: 28px; left: 28px; right: 0; height: 1px; background: var(--line); }
.steps__line i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { display: grid; align-content: start; gap: 16px; }
.step__num {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--white);
  font: 600 18px/1 var(--f-display); letter-spacing: .05em;
  transition: background-color .6s var(--ease), color .6s var(--ease), transform .8s var(--ease-back);
}
.step__icon { margin-top: 12px; opacity: .25; transform: translateY(12px) rotate(-12deg); transition: opacity .8s var(--ease), transform .9s var(--ease-back); }
.step__title { transition: opacity .8s var(--ease); opacity: .35; }
.step__text { color: var(--charcoal); max-width: 300px; opacity: .35; transition: opacity .8s var(--ease); }
.step.is-on .step__num { background: var(--ink); color: var(--white); transform: scale(1.08); }
.step.is-on .step__icon { opacity: 1; transform: none; }
.step.is-on .step__title, .step.is-on .step__text { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .step__icon, .step__title, .step__text { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .steps__line { top: 0; bottom: 0; left: 28px; right: auto; width: 1px; height: auto; }
  .steps__line i { width: 100%; height: 100%; transform-origin: 50% 0; transform: scaleY(0); }
  .steps__list { grid-template-columns: 1fr; gap: 40px; }
  .step { grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step__num { grid-row: span 3; }
  .step__icon { display: none; }
  .step__title { align-self: end; }
}

/* ---------- Réassurance ---------- */
.assurance { background: var(--porcelain); padding: 40px var(--gutter); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.assurance__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.assurance__list li { display: flex; gap: 16px; align-items: flex-start; }
.assurance__list strong { display: block; font-weight: 500; }
.assurance__list span { display: block; font-size: 14px; color: var(--charcoal); }
@media (max-width: 960px) { .assurance__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .assurance__list { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Suivi ---------- */
.track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.track__intro .eyebrow { margin-bottom: 16px; color: var(--charcoal); }
.track__lead { margin-top: 24px; max-width: 460px; }
.track__form { display: grid; gap: 12px; }
.track__form .btn { justify-self: start; }
.track__result { margin-top: 28px; }
.track-card { border: 1px solid var(--ink); padding: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; animation: card-in .8s var(--ease); }
@keyframes card-in { from { opacity: 0; transform: translateY(20px); } }
.track-card__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.track-card__num { font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: .9; letter-spacing: .02em; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline__fill { position: absolute; left: 7px; top: 6px; width: 1px; background: var(--ink); height: var(--h, 0); transition: height 1.4s var(--ease-io) .2s; }
.tl-step { position: relative; display: flex; justify-content: space-between; gap: 12px; color: var(--steel); }
.tl-step::before { content: ''; position: absolute; left: -28px; top: 3px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--steel); background: var(--white); transition: background-color .4s, border-color .4s; }
.tl-step.is-done { color: var(--ink); }
.tl-step.is-done::before { background: var(--ink); border-color: var(--ink); }
.tl-step.is-current strong { font-weight: 600; }
.tl-step time { font-size: 13px; color: var(--charcoal); white-space: nowrap; }
.track-msg { padding: 16px 20px; background: var(--mist); font-size: 15px; }
.track-items { display: grid; gap: 6px; font-size: 14px; color: var(--charcoal); border-top: 1px solid var(--line); padding-top: 16px; }
.track-items div { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 860px) { .track { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) 24px; padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__claim { font-size: 36px; font-size: clamp(36px, 3.6vw, 56px); }
.footer__h { margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; color: var(--charcoal); font-size: 15px; }
.footer__links button { text-align: left; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .i { margin-top: 2px; }
.footer__word {
  display: flex; justify-content: space-between;
  margin: 48px 0 24px; margin: clamp(48px, 7vw, 96px) 0 24px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 15.2vw; line-height: .78; letter-spacing: 0;
  overflow: hidden; padding-top: .04em;
}
.footer__word span { display: inline-block; will-change: transform; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--charcoal); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Onglet d'aide ---------- */
.edge-tab {
  position: fixed; right: 0; top: 50%; z-index: 25;
  display: flex; align-items: center; gap: 10px;
  padding: 16px 10px;
  background: var(--ink); color: var(--white);
  writing-mode: vertical-rl;
  font: 500 12px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase;
  transform: translate(0, -50%); transition: padding .5s var(--ease), background-color .3s;
}
.edge-tab .i { transform: rotate(90deg); }
.edge-tab:hover { padding-right: 16px; }
@media (max-width: 760px) {
  .edge-tab { writing-mode: horizontal-tb; top: auto; bottom: 16px; right: 16px; transform: none; border-radius: 99px; padding: 14px; }
  .edge-tab span { display: none; }
  .edge-tab .i { transform: none; width: 22px; height: 22px; }
}

/* ---------- Panier (tiroir) ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; pointer-events: none; }
.drawer__backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(19, 19, 23, .5); opacity: 0; transition: opacity .6s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(520px, 100%); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .8s var(--ease);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 44px; }
.drawer__steps { display: flex; gap: 6px; margin-top: 12px; font: 500 11px/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.drawer__steps li { display: flex; align-items: center; gap: 6px; transition: color .4s; }
.drawer__steps li + li::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .5; }
.drawer__steps li.is-active, .drawer__steps li.is-done { color: var(--ink); }
.drawer__body { position: relative; flex: 1; overflow: hidden; }
.dview {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column;
  background: var(--white);
  transform: translateX(105%); visibility: hidden;
  transition: transform .75s var(--ease), opacity .5s var(--ease), visibility 0s .75s;
}
.dview.is-active { z-index: 1; transform: none; opacity: 1; visibility: visible; transition: transform .75s var(--ease), opacity .5s var(--ease); }
.dview.is-past { transform: translateX(-30%); opacity: 0; }
.dview > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dview__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 28px; display: grid; align-content: start; gap: 18px; }
.dview__foot { display: grid; gap: 10px; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.dview__note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--charcoal); }
.sum-row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum-row--total { font-size: 17px; padding-top: 6px; border-top: 1px solid var(--line); }
.cart-min { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: #fdecea; color: var(--danger); font-size: 14px; line-height: 1.45; }
.cart-min[hidden] { display: none; }
.cart-min .i { flex: none; margin-top: 1px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; justify-self: start; }
.checkout__intro { font-size: 15px; color: var(--charcoal); }
.checkout__pay { border: 0; padding: 0; margin: 0; }
.checkout__pay legend { padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout__remember { font-size: 14px; color: var(--charcoal); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Lignes du panier */
.cart-list { display: grid; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.cart-line:first-child { padding-top: 4px; }
.cart-line__img { width: 84px; height: 104px; object-fit: cover; background: var(--mist); }
.cart-line__name { font-weight: 500; line-height: 1.35; }
.cart-line__meta { font-size: 13px; color: var(--charcoal); margin-top: 2px; }
.cart-line__price { margin-top: 6px; font-variant-numeric: tabular-nums; }
.cart-line__side { display: grid; justify-items: end; align-content: space-between; gap: 8px; }
.cart-line__remove { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal); }
.cart-line__remove:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cart-empty { display: grid; gap: 16px; justify-items: start; padding-top: 12px; }
.cart-empty .display { font-size: 56px; }
.cart-suggest { display: grid; gap: 12px; margin-top: 12px; width: 100%; }
.cart-suggest__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; background: var(--mist); transition: background-color .3s; }
.cart-suggest__item:hover { background: var(--porcelain); }
.cart-suggest__item img { width: 56px; height: 64px; object-fit: cover; }

/* Confirmation */
.done { justify-items: start; text-align: left; }
.done__check { width: 88px; height: 88px; }
.done__check circle { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 252; stroke-dashoffset: 252; animation: draw 1s var(--ease-io) .2s forwards; }
.done__check path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s var(--ease) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__title { font-size: 48px; font-size: clamp(48px, 9vw, 64px); }
.done__num { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--mist); font-weight: 500; letter-spacing: .04em; }
.done__recap { width: 100%; display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.done__recap div { display: flex; justify-content: space-between; gap: 12px; }
.done__actions { display: grid; gap: 10px; width: 100%; }
.done > * { animation: card-in .9s var(--ease) backwards; }
.done > *:nth-child(2) { animation-delay: .5s; } .done > *:nth-child(3) { animation-delay: .6s; } .done > *:nth-child(4) { animation-delay: .7s; }
.done > *:nth-child(5) { animation-delay: .8s; } .done > *:nth-child(6) { animation-delay: .9s; } .done > *:nth-child(7) { animation-delay: 1s; }

/* ---------- Fiche produit ---------- */
.qv { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; }
.qv__backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(19, 19, 23, .55); opacity: 0; transition: opacity .6s var(--ease); }
.qv__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(1120px, calc(100% - 48px)); height: min(760px, calc(100vh - 48px));
  background: var(--white); overflow: hidden;
  opacity: 0; transform: translateY(32px) scale(.98); visibility: hidden;
  transition: opacity .5s var(--ease), transform .8s var(--ease), visibility 0s .8s;
}
.qv.is-open { pointer-events: auto; }
.qv.is-open .qv__backdrop { opacity: 1; }
.qv.is-open .qv__panel { opacity: 1; transform: none; visibility: visible; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.qv__close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.qv__gallery { position: relative; background: var(--mist); display: flex; flex-direction: column; min-height: 0; }
.qv__main { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.qv__main img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.qv__main img.is-leaving { opacity: 0; transform: scale(1.04); }
.qv__thumbs { display: flex; gap: 1px; background: var(--white); }
.qv__thumbs:empty { display: none; }
.qv__thumb { width: 84px; height: 96px; opacity: .55; transition: opacity .3s; background: var(--mist); }
.qv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.qv__thumb.is-active, .qv__thumb:hover { opacity: 1; }
.qv__info { overflow-y: auto; padding: 28px 24px; padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 52px); display: grid; align-content: start; gap: 18px; }
.qv__info > * { animation: card-in .8s var(--ease) backwards; }
.qv__info > *:nth-child(2) { animation-delay: .06s; } .qv__info > *:nth-child(3) { animation-delay: .12s; } .qv__info > *:nth-child(4) { animation-delay: .18s; }
.qv__info > *:nth-child(5) { animation-delay: .24s; } .qv__info > *:nth-child(6) { animation-delay: .3s; } .qv__info > *:nth-child(7) { animation-delay: .36s; }
.qv__name { font-size: 44px; font-size: clamp(44px, 4.6vw, 64px); padding-right: 40px; }
.qv__price { font: 500 22px/1.3 var(--f-text); font-variant-numeric: tabular-nums; }
.qv__price s { margin-left: 10px; font-size: 16px; font-weight: 400; color: var(--steel); }
.qv__desc { color: var(--charcoal); line-height: 1.6; }
.qv__pack { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--mist); font-size: 14px; }
.qv__total { margin-top: -6px; font-size: 14px; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.qv__stock { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.qv__stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.qv__stock.is-low::before { background: var(--warn); }
.qv__stock.is-out::before { background: var(--steel); }
.qv__opts { display: grid; gap: 10px; }
.qv__opts .choices { gap: 6px; }
.qv__opts .choice span { min-width: 52px; justify-content: center; border-radius: 2px; }
.qv__opts.is-error .choice span { border-color: var(--danger); }
.qv__buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qv__buy .btn { flex: 1; min-width: min(250px, 100%); } /* assez large pour « Ajouter au panier », sinon passe à la ligne */
.qv__perks { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--charcoal); }
.qv__perks li { display: flex; gap: 10px; align-items: center; }
.qv__share { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; justify-self: start; }
@media (max-width: 860px) {
  .qv { place-items: end stretch; }
  /* Une seule colonne qui défile : la photo garde sa hauteur et ne recouvre plus le nom ni les tailles */
  .qv__panel { display: block; width: 100%; height: 100%; transform: translateY(100%); opacity: 1; transition: transform .8s var(--ease), visibility 0s .8s; overflow-y: auto; }
  .qv.is-open .qv__panel { transform: none; transition: transform .8s var(--ease); }
  .qv__main { flex: none; aspect-ratio: 1 / 1; }
  @supports not (aspect-ratio: 1 / 1) { .qv__main { height: 0; padding-top: 100%; } }
  .qv__info { overflow: visible; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .qv__name { font-size: 30px; font-size: clamp(30px, 8vw, 44px); padding-right: 0; }
}
.flip-ghost { position: fixed; z-index: 99; object-fit: cover; pointer-events: none; }

/* ---------- Recherche ---------- */
.search { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 92; pointer-events: none; }
.search__backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(19, 19, 23, .45); opacity: 0; transition: opacity .5s var(--ease); }
.search__panel {
  position: absolute; top: 0; left: 0; right: 0; max-height: 88vh; overflow-y: auto;
  background: var(--white); padding: 20px var(--gutter) 40px;
  transform: translateY(-100%); transition: transform .8s var(--ease);
}
.search.is-open { pointer-events: auto; }
.search.is-open .search__backdrop { opacity: 1; }
.search.is-open .search__panel { transform: none; }
.search__bar { display: flex; gap: 12px; align-items: center; }
.search__field { flex: 1; }
.search__results { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; }
.search__results > p { grid-column: 1 / -1; color: var(--charcoal); }
.sresult { display: grid; gap: 10px; padding: 12px; background: var(--mist); animation: card-in .6s var(--ease) backwards; animation-delay: calc(var(--i) * 40ms); text-align: left; }
.sresult img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.sresult__media { overflow: hidden; }
@supports not (aspect-ratio: 1 / 1) {
  .sresult__media { position: relative; height: 0; padding-top: 100%; }
  .sresult__media img { position: absolute; top: 0; left: 0; height: 100%; }
}
.sresult:hover img { transform: scale(1.06); }
.sresult strong { font-weight: 500; font-size: 14px; }
.sresult span { font-size: 14px; color: var(--charcoal); }

/* ---------- Effets : curseur, vol vers le panier, toast ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 97; pointer-events: none; will-change: transform; }
.cursor__dot {
  position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  font: 500 11px/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase;
  transform: scale(0); transition: transform .5s var(--ease);
}
.cursor.is-on .cursor__dot { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .has-cursor [data-cursor] { cursor: none; } }
.fly { position: fixed; z-index: 99; pointer-events: none; background-size: cover; background-position: center; will-change: transform; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 98;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px); padding: 10px 10px 10px 10px;
  background: var(--ink); color: var(--white);
  transform: translate(-50%, calc(100% + 40px)); transition: transform .7s var(--ease);
}
.toast.is-show { transform: translate(-50%, 0); }
.toast img { width: 48px; height: 56px; object-fit: cover; }
.toast__text { display: grid; font-size: 14px; padding-right: 8px; }
.toast__text span { opacity: .7; font-size: 12px; }
.toast .btn { min-height: 40px; }

.demo-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 26;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px); padding: 6px 6px 6px 16px;
  background: var(--white); border: 1px solid var(--ink); font-size: 13px;
}
.demo-bar .icon-btn { width: 32px; height: 32px; }
@media (max-width: 760px) { .demo-bar { right: 84px; } .demo-bar > span { font-size: 12px; } }

.load-error { display: grid; gap: 16px; justify-items: start; padding: 48px 0; }
