/*
 * style.css — design system « Social Club » v2 (SPEC-V2 §1) : mobile-first, noir profond,
 * vert néon (#00e676) + accents dorés, glassmorphism, animations fluides (60 fps, transform/opacity),
 * prefers-reduced-motion respecté. Rôle : styles de la SPA rendue par app.js + portail âge + onglets.
 */

/* ============ Variables ============ */
:root {
  --bg: #05060a;
  --bg-2: #0b0e14;
  --ink: #f2f6f4;
  --muted: #9fb0a8;
  --faint: #65756e;

  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --surface-3: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(0, 230, 118, 0.35);

  --neon: #00e676;
  --neon-2: #69ffab;
  --neon-deep: #00b254;
  --gold: #ffd54f;
  --gold-deep: #d4af37;
  --grad: linear-gradient(118deg, var(--neon), var(--gold) 88%);
  --grad-soft: linear-gradient(118deg, rgba(0, 230, 118, 0.16), rgba(212, 175, 55, 0.12));
  --neon-shadow: 0 4px 18px rgba(0, 230, 118, 0.35);

  --ok: #69ffab;
  --bad: #ff6b6b;

  --r: 18px;
  --r-sm: 13px;
  --r-lg: 24px;

  --shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.35);

  --appbar-h: 58px;
  --tabbar-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0.16, 1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;                     /* ambiance app ; réautorisée sur les champs */
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--neon); text-decoration: none; }
input, textarea, select { font: inherit; }
h1, h2, h3 { line-height: 1.18; }
img { display: block; max-width: 100%; }
::selection { background: rgba(0, 230, 118, 0.35); }
.linkish { color: var(--neon); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ============ Fond : halos néon derriere les surfaces en verre ============ */
.glow {
  position: fixed; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0; opacity: 0.45;
}
.glow-a {
  width: 62vw; height: 62vw; top: -24vw; right: -18vw;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.5), transparent 68%);
  animation: drift 17s ease-in-out infinite alternate;
}
.glow-b {
  width: 55vw; height: 55vw; bottom: -20vw; left: -16vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent 68%);
  animation: drift 21s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6vw, 4vh, 0) scale(1.15); }
}

/* ============ Portail âge 18+ ============ */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, #0d1512 0%, var(--bg) 60%);
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
html.age-pending .gate, html.age-refused .gate { display: flex; }
html.age-pending .appbar, html.age-pending .views, html.age-pending .tabbar,
html.age-pending .cart-fab, html.age-refused .appbar, html.age-refused .views, html.age-refused .tabbar { visibility: hidden; }
html.age-pending .gate-leaf, html.age-pending .glow { /* le halo reste visible : ambiance */ }
.gate-card {
  width: min(430px, 100%); text-align: center;
  padding: 34px 26px 26px; border-radius: var(--r-lg);
  background: rgba(13, 18, 15, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(0, 230, 118, 0.12), var(--shadow);
  animation: gate-in 0.5s var(--ease-out) both;
}
@keyframes gate-in { from { opacity: 0; transform: translateY(22px) scale(0.96); } }
.gate-leaf { font-size: 2.9rem; animation: sway 4.5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.gate-brand {
  margin-top: 10px; font-size: 1.5rem; font-weight: 900; letter-spacing: 0.14em;
}
.gate-brand span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate-brand.gate-red { letter-spacing: 0.04em; }
.gate-red { color: var(--bad); }
.gate-q { font-size: 1.28rem; font-weight: 850; margin-top: 20px; }
.gate-note { color: var(--muted); font-size: 0.88rem; margin-top: 10px; line-height: 1.5; }
.gate-actions { display: grid; gap: 10px; margin-top: 24px; }
.gate-fine { margin-top: 18px; font-size: 0.72rem; color: var(--faint); }
.gate-legal { text-align: left; max-height: 86dvh; overflow-y: auto; }
.gate-legal h1 { font-size: 1.15rem; margin-bottom: 8px; text-align: center; }

/* ============ Barre d'application sticky ============ */
.appbar {
  position: sticky; top: 0; z-index: 40;
  height: calc(var(--appbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  display: flex; align-items: center; gap: 8px;
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.brand {
  flex: 1; display: inline-flex; align-items: center; gap: 8px;
  text-align: left; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.02em; padding: 6px 4px;
  transition: transform 0.15s var(--ease-out);
}
.brand:active { transform: scale(0.96); }
.brand-leaf { font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6)); }
.brand-hot {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.14s var(--ease-out), background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:active { transform: scale(0.88); }
.icon-btn:hover { background: var(--surface-2); }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 10px; font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #04120a; box-shadow: var(--neon-shadow);
}
.cart-badge.pop { animation: badge-pop 0.4s var(--ease-out); }
@keyframes badge-pop { 45% { transform: scale(1.45); } }
.demo-flag {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold); background: rgba(212, 175, 55, 0.12); border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 9px; border-radius: 999px;
}

/* ============ Vues + transitions ============ */
.views {
  position: relative; z-index: 1;
  max-width: 580px; margin: 0 auto;
  padding: 4px 16px calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom, 0px));
}
.view { animation: view-in 0.42s var(--ease-out) both; }
.view.out { animation: view-out 0.2s ease-in both; }
@keyframes view-in  { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
@keyframes view-out { to   { opacity: 0; transform: translateY(-10px) scale(0.99); } }
.section-title { font-size: 1.06rem; font-weight: 800; margin: 26px 2px 12px; }

.muted { color: var(--muted); }
.tiny  { font-size: 0.78rem; }
.empty { text-align: center; padding: 34px 10px; }

/* ============ Hero (img/hero.jpg) ============ */
.hero {
  position: relative; margin: 12px 0 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: card-in 0.55s var(--ease-out) both;
}
.hero-media { position: relative; aspect-ratio: 16/10; background: #0a0f0c; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s ease; transform: scale(1.02);
}
.hero-media img.loaded { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.15) 0%, rgba(5, 6, 10, 0.55) 55%, rgba(5, 6, 10, 0.96) 100%);
}
.hero-body { position: relative; padding: 0 18px 20px; margin-top: -74px; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--neon); background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.35);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
  box-shadow: 0 0 18px rgba(0, 230, 118, 0.25);
}
.hero h1 { font-size: clamp(1.55rem, 7vw, 2.1rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin-top: 10px; font-size: 0.9rem; max-width: 38ch; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ============ Bandeau laboratoire (img/lab.jpg) ============ */
.trust {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: card-in 0.55s var(--ease-out) 0.08s both;
}
.trust img, .trust .ph.round {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--gold-deep); box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}
.trust p { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.trust b { color: var(--ink); }

/* ============ Tuiles de secours (ph) ============ */
.ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; background: linear-gradient(140deg, #10231a, #0a110d 60%, #1a1608);
}
.thumb .ph { font-size: 1.8rem; }
img + .ph { display: none; }

/* ============ Bandeaux « 3 barres qui défilent » (sticky) ============ */
.bars {
  position: sticky; top: calc(var(--appbar-h) + env(safe-area-inset-top, 0px)); z-index: 20;
  margin: 14px -16px 4px; padding: 10px 0 2px;
  background: rgba(5, 6, 10, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 0;
}
.bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.bar::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 15px; border-radius: 999px; font-size: 0.84rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: transform 0.14s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.chip:active { transform: scale(0.92); }
.chip.on {
  background: var(--grad); border-color: transparent; color: #04120a;
  box-shadow: var(--neon-shadow);
}
.chip.mini { padding: 6px 12px; font-size: 0.76rem; }
.chip.mini.on { background: var(--surface-3); color: var(--neon); border-color: var(--line-strong); box-shadow: none; }

/* ============ Grille produits (vraies photos) ============ */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 13px; margin-top: 14px; padding-bottom: 8px;
}
.pcard {
  text-align: left; border-radius: var(--r); overflow: hidden; width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform 0.18s var(--ease-out), border-color 0.25s;
  animation: card-in 0.5s var(--ease-out) calc(var(--i, 0) * 55ms) both;
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.pcard:active { transform: scale(0.97); }
@keyframes card-in { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.thumb { position: relative; aspect-ratio: 1/1; background: #0a110d; }
.thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s ease;
}
.thumb img.loaded { opacity: 1; }
.cbd-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 0.66rem; font-weight: 850; letter-spacing: 0.02em; color: #04120a;
  background: var(--grad); padding: 4px 8px; border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.45);
}
.cbd-badge.count {
  left: auto; top: 8px; right: 8px; min-width: 22px; text-align: center;
  background: var(--gold); box-shadow: 0 0 12px rgba(255, 213, 79, 0.5);
}
.cbd-badge.count.pop { animation: badge-pop 0.4s var(--ease-out); }
.pc-body { padding: 11px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { font-size: 0.92rem; font-weight: 800; }
.pc-cat { font-size: 0.68rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.pc-body .desc {
  font-size: 0.73rem; color: var(--muted); margin-top: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.p-price { font-size: 0.9rem; font-weight: 850; color: var(--neon); }
.p-price small { font-size: 0.66rem; color: var(--faint); font-weight: 700; margin-right: 2px; }
.p-add {
  padding: 7px 13px; border-radius: 11px; font-size: 0.82rem; font-weight: 850;
  background: var(--grad); color: #04120a; box-shadow: var(--neon-shadow);
  transition: transform 0.14s var(--ease-out), filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.p-add:hover { filter: brightness(1.08); }
.p-add:active { transform: scale(0.86); }

/* Stepper +/- (fiche produit + drawer) */
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.st-btn {
  width: 32px; height: 32px; border-radius: 9px; font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; color: var(--neon);
  transition: transform 0.13s var(--ease-out), background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.st-btn:hover { background: var(--surface-3); }
.st-btn:active { transform: scale(0.8); }
.st-qty { min-width: 26px; text-align: center; font-size: 0.92rem; font-weight: 850; }
.st-qty.bump { animation: qty-bump 0.32s var(--ease-out); }
@keyframes qty-bump { 45% { transform: scale(1.35); color: var(--neon); } }

.p-oos {
  font-size: 0.74rem; font-weight: 700; color: var(--bad);
  background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.3);
  padding: 6px 12px; border-radius: 10px;
}

.legal-strip {
  margin-top: 18px; padding: 12px; text-align: center;
  font-size: 0.74rem; color: var(--faint);
  border-top: 1px dashed var(--line);
}

/* ============ Fiche produit ============ */
.prod { padding-top: 12px; }
.prod-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3.4;
  border: 1px solid var(--line); background: #0a110d; box-shadow: var(--shadow);
}
.prod-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s ease;
}
.prod-media img.loaded { opacity: 1; }
.prod-media .ph.big { font-size: 3.4rem; }
.floating {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(5, 6, 10, 0.72); border: 1px solid var(--line-strong); color: var(--neon);
  padding: 6px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 800;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.prod-body { padding: 4px 2px; animation: card-in 0.45s var(--ease-out) 0.06s both; }
.prod-body h1 { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; margin-top: 14px; }
.prod-desc { color: var(--muted); font-size: 0.92rem; margin-top: 8px; line-height: 1.55; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.tile {
  text-align: center; padding: 12px 6px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.tile .v { font-size: 1.02rem; font-weight: 900; color: var(--neon); }
.tile .l { font-size: 0.68rem; color: var(--faint); margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-chip {
  font-size: 0.76rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
}
.tag-chip.eff { color: var(--neon); background: rgba(0, 230, 118, 0.08); border-color: rgba(0, 230, 118, 0.3); }
.tag-chip.aro { color: var(--gold); background: rgba(212, 175, 55, 0.08); border-color: rgba(212, 175, 55, 0.3); }
.prod-sub { font-size: 0.82rem; font-weight: 800; color: var(--muted); margin: 18px 2px 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px;
  border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line);
  transition: transform 0.14s var(--ease-out), border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pill:active { transform: scale(0.93); }
.pl-lbl { font-weight: 850; font-size: 0.9rem; }
.pl-price { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.pill.on {
  border-color: var(--neon); background: rgba(0, 230, 118, 0.12);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.28), inset 0 0 12px rgba(0, 230, 118, 0.08);
}
.pill.on .pl-price { color: var(--neon); }
.prod-buy {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 22px; padding: 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.live { font-size: 1.5rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live small { display: block; font-size: 0.7rem; font-weight: 700; color: var(--faint); -webkit-text-fill-color: var(--faint); }
.legal-note {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm);
  font-size: 0.72rem; line-height: 1.5; color: var(--faint);
  background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--line);
}

/* ============ Skeleton loaders ============ */
.sk-line {
  height: 13px; border-radius: 7px; margin-top: 9px;
  background: var(--surface-2); position: relative; overflow: hidden;
}
.sk-line::after, .sk-thumb::after, .sk-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.10), transparent);
  transform: translateX(-100%); animation: shimmer 1.3s infinite;
}
.sk-thumb { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r); aspect-ratio: 1/1; }
.sk-grow { flex: 1; }
.sk-card { display: flex; flex-direction: column; gap: 10px; padding: 0; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); animation: card-in 0.5s var(--ease-out) calc(var(--i, 0) * 70ms) both; overflow: hidden; }
.sk-card .sk-grow { padding: 0 12px 12px; }
.sk-hero { position: relative; overflow: hidden; height: 190px; border-radius: var(--r-lg); background: var(--surface-2); margin-bottom: 16px; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ============ Pastille flottante panier (au-dessus des onglets) ============ */
.cart-fab {
  position: fixed; z-index: 35; left: 50%;
  bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  min-width: 250px; padding: 15px 24px; border-radius: 999px;
  font-weight: 850; font-size: 0.92rem; color: #04120a;
  background: var(--grad); box-shadow: 0 12px 34px rgba(0, 230, 118, 0.4);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: transform 0.16s var(--ease-out), box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.cart-fab:active { transform: translateX(-50%) scale(0.94); }
.cart-fab.show { animation: fab-in 0.4s var(--ease-out) both; }
@keyframes fab-in { from { opacity: 0; transform: translateX(-50%) translateY(24px) scale(0.9); } }

/* ============ Onglets bas de page ============ */
.tabbar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(7, 9, 13, 0.82);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em;
  transition: color 0.25s, transform 0.15s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.tab:active { transform: scale(0.92); }
.tab-ico { font-size: 1.32rem; transition: filter 0.25s, transform 0.25s var(--ease-out); }
.tab.on { color: var(--neon); }
.tab.on .tab-ico { filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.7)); transform: translateY(-2px); }
.tab.on::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--grad); box-shadow: 0 0 12px rgba(0, 230, 118, 0.8);
}
.tab-badge {
  position: absolute; top: 7px; right: calc(50% - 26px); min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 10px; font-size: 0.66rem; font-weight: 850;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #241a00; box-shadow: 0 0 12px rgba(255, 213, 79, 0.55);
  animation: badge-pop 0.4s var(--ease-out);
}

/* ============ Drawer panier (feuille basse) ============ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 48;
  background: rgba(3, 4, 6, 0.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s;
}
.drawer-overlay.show { opacity: 1; }
.drawer {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  width: 100%; max-height: 80dvh; margin: 0 auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; flex-direction: column;
  background: rgba(11, 14, 18, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--line); border-bottom: 0;
  transform: translateY(105%);
  transition: transform 0.42s var(--ease-drawer);
}
.drawer.open { transform: translateY(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 1.1rem; font-weight: 850; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; overscroll-behavior: contain; }
.drawer-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }

.cart-empty { text-align: center; padding: 46px 10px; color: var(--muted); }
.cart-empty .big { font-size: 2.6rem; display: block; margin-bottom: 12px; animation: sway 3.4s ease-in-out infinite; }

.cart-line {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  animation: line-in 0.35s var(--ease-out) both;
}
@keyframes line-in { from { opacity: 0; transform: translateX(16px); } }
.cl-thumb {
  position: relative; width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden;
  font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line);
}
.cl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.cl-thumb img.loaded { opacity: 1; }
.cl-info { flex: 1; min-width: 0; }
.cl-info h4 { font-size: 0.88rem; font-weight: 750; }
.cl-variant { font-size: 0.72rem; color: var(--gold); font-weight: 750; margin-top: 2px; }
.cl-price { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.cl-total { font-size: 0.88rem; font-weight: 850; color: var(--neon); min-width: 66px; text-align: right; }

.cart-from { font-size: 0.78rem; color: var(--faint); margin: 4px 0 10px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total-row .lbl { font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.total-row .val { font-size: 1.35rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn {
  width: 100%; padding: 15px; border-radius: var(--r-sm); font-size: 0.95rem; font-weight: 850;
  background: var(--grad); color: #04120a; box-shadow: var(--neon-shadow);
  transition: transform 0.15s var(--ease-out), filter 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.96); }
.btn[disabled] { opacity: 0.5; filter: saturate(0.5); cursor: wait; }
.btn.ghost {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: none;
}
.btn.ghost:active { transform: scale(0.96); }

/* ============ Checkout ============ */
.checkout h1, .track h1, .profile h1, .order-empty h1, .legal-view h1 { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 4px; }
.age-reminder {
  margin-top: 16px; padding: 13px 15px; border-radius: var(--r-sm);
  background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold); font-size: 0.83rem; line-height: 1.45;
}
.field { margin-top: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.field label .opt { color: var(--faint); font-weight: 600; }
.field label .req { color: var(--gold); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--ink); font-size: 0.95rem; user-select: text;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--neon); background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.14);
}
.field.err input, .field.err textarea { border-color: var(--bad); animation: shake 0.4s; }
.field .hint { font-size: 0.74rem; color: var(--faint); margin-top: 6px; }
.field.err .hint { color: var(--bad); }
@keyframes shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }

/* Livraison discrète */
.discreet {
  display: flex; align-items: center; gap: 13px; width: 100%; margin-top: 18px;
  padding: 14px 15px; border-radius: var(--r-sm); text-align: left;
  background: var(--surface); border: 1.5px solid var(--line);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.discreet .di-ico { font-size: 1.4rem; }
.discreet .di-txt { flex: 1; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.discreet .di-txt b { color: var(--ink); }
.discreet .di-check {
  width: 26px; height: 26px; border-radius: 8px; flex: none; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); color: #04120a; font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}
.discreet.on { border-color: var(--neon); background: rgba(0, 230, 118, 0.07); box-shadow: 0 0 14px rgba(0, 230, 118, 0.15); }
.discreet.on .di-check { background: var(--grad); border-color: transparent; }

/* Choix du paiement */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt {
  padding: 16px 12px; border-radius: var(--r-sm); text-align: center;
  background: var(--surface); border: 2px solid var(--line);
  transition: transform 0.15s var(--ease-out), border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pay-opt:active { transform: scale(0.94); }
.pay-opt .ico { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.pay-opt .t { font-weight: 850; font-size: 0.9rem; }
.pay-opt .s { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.pay-opt.on { border-color: var(--neon); background: var(--grad-soft); box-shadow: 0 0 16px rgba(0, 230, 118, 0.2); }
.wallet-box {
  margin-top: 12px; padding: 14px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04); border: 1px dashed var(--line-strong);
  font-size: 0.84rem;
}
.wallet-box .addr {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.78rem;
  word-break: break-all; color: var(--ok); margin-top: 6px; user-select: text;
}
.wallet-box.pending { color: var(--muted); font-style: italic; }
.copy-btn {
  margin-top: 10px; font-size: 0.76rem; font-weight: 800; padding: 7px 13px;
  border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line);
  transition: transform 0.13s var(--ease-out);
}
.copy-btn:active { transform: scale(0.9); }

/* Résumé de commande */
.summary {
  margin-top: 22px; padding: 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.summary h3 { font-size: 0.95rem; font-weight: 850; margin-bottom: 12px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; padding: 5px 0; color: var(--muted); }
.sum-line .n { flex: 1; min-width: 0; }
.sum-line .n em { font-style: normal; color: var(--gold); font-size: 0.78rem; }
.sum-line .q { color: var(--faint); font-weight: 750; }
.sum-sep { border-top: 1px dashed var(--line); margin: 10px 0; }
.sum-total { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 900; }
.sum-total .v { color: var(--neon); }

/* ============ Ma commande : suivi + chat ============ */
.track { padding-top: 10px; }
.track-hero-emoji { font-size: 3rem; display: block; margin: 6px 0 4px; animation: land 0.8s var(--ease-out) both; }
@keyframes land { from { opacity: 0; transform: scale(0.4) rotate(-14deg); } }
.code-card {
  margin: 16px auto 8px; padding: 18px 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  position: relative; overflow: hidden; max-width: 420px; text-align: center;
  cursor: pointer; transition: transform 0.15s var(--ease-out);
}
.code-card:active { transform: scale(0.97); }
.code-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: var(--grad); opacity: 0.28; filter: blur(16px);
}
.code-card .lbl { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.code-card .code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 800; letter-spacing: 0.08em; margin-top: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: text;
}
.code-card .hint { font-size: 0.72rem; color: var(--faint); margin-top: 8px; }

/* Timeline */
.timeline-wrap { text-align: left; margin-top: 22px; }
.timeline-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.timeline-title h3 { font-size: 1.02rem; font-weight: 850; }
.eta-chip {
  font-size: 0.74rem; font-weight: 850; color: #04120a; background: var(--grad);
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--neon-shadow);
}
.eta-chip.cold { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.timeline { position: relative; padding: 4px 0 4px 46px; }
.timeline::before {
  content: ""; position: absolute; left: 17px; top: 12px; bottom: 12px; width: 3px;
  border-radius: 2px; background: var(--surface-2);
}
.t-progress {
  position: absolute; left: 17px; top: 12px; width: 3px; border-radius: 2px;
  background: var(--grad); box-shadow: 0 0 12px rgba(0, 230, 118, 0.55);
  height: var(--h, 0%); transition: height 0.9s var(--ease-out);
}
.t-step { position: relative; padding: 13px 0; opacity: 0.45; transition: opacity 0.4s; animation: card-in 0.5s var(--ease-out) calc(var(--i, 0) * 90ms) both; }
.t-step .dot {
  position: absolute; left: -46px; top: 10px; width: 37px; height: 37px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.02rem;
  background: var(--surface); border: 1px solid var(--line);
  transition: background 0.4s, border-color 0.4s, transform 0.3s var(--ease-out), box-shadow 0.4s;
}
.t-step .lbl { font-size: 0.94rem; font-weight: 800; }
.t-step .sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.t-step .time { float: right; font-size: 0.74rem; color: var(--faint); font-family: ui-monospace, monospace; }
.t-step.done { opacity: 1; }
.t-step.done .dot { background: var(--grad-soft); border-color: var(--neon); }
.t-step.now { opacity: 1; }
.t-step.now .dot { background: var(--grad); border-color: transparent; color: #04120a; animation: pulse 1.7s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
.t-step.just-done .dot { animation: qty-bump 0.5s var(--ease-out); }
.track-cancelled {
  margin-top: 18px; padding: 16px; border-radius: var(--r); text-align: center;
  background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.35);
  color: var(--bad); font-weight: 800;
}
.track-note { font-size: 0.74rem; color: var(--faint); margin-top: 14px; }
.track-recap {
  text-align: left; margin-top: 20px; padding: 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.track-recap h3 { font-size: 0.9rem; font-weight: 850; margin-bottom: 8px; }
.track-recap .sum-line .n { color: var(--ink); }
.track-actions { margin-top: 22px; display: grid; gap: 10px; }

/* Chat client↔livreur (bulles) */
.chat-card {
  margin-top: 20px; padding: 16px; border-radius: var(--r); text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.chat-card h3 { font-size: 0.95rem; font-weight: 850; margin-bottom: 10px; }
.chat-log {
  max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  padding: 6px 4px 10px; overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.msg { max-width: 82%; animation: msg-in 0.35s var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.msg.client { align-self: flex-end; text-align: right; }
.msg.driver { align-self: flex-start; }
.msg.system { align-self: center; max-width: 92%; text-align: center; }
.m-who { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.bubble {
  display: inline-block; padding: 10px 14px; border-radius: 16px; font-size: 0.88rem; line-height: 1.45;
  background: var(--surface-2); border: 1px solid var(--line); text-align: left;
  user-select: text;
}
.msg.client .bubble {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.24), rgba(0, 230, 118, 0.12));
  border-color: rgba(0, 230, 118, 0.4); border-bottom-right-radius: 6px;
}
.msg.driver .bubble { border-bottom-left-radius: 6px; background: rgba(212, 175, 55, 0.1); border-color: rgba(212, 175, 55, 0.3); }
.m-time { font-size: 0.62rem; color: var(--faint); margin-top: 3px; }
.m-sys {
  display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--muted);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
}
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input {
  flex: 1; padding: 12px 15px; border-radius: 999px; font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink);
  user-select: text; transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-form input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.14); }
.chat-form .btn.send { width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 1.05rem; flex: none; }

/* Ma commande — vide */
.order-empty { text-align: center; padding-top: 18px; }
.oe-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/8;
  margin-bottom: 18px; border: 1px solid var(--line); background: #0a110d;
}
.oe-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.oe-media img.loaded { opacity: 1; }
.oe-media .ph.big { font-size: 3rem; }
.order-empty p { max-width: 34ch; margin: 8px auto 18px; line-height: 1.5; }
.code-lookup { margin-top: 26px; }
.code-lookup h3 { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
#follow-form { display: flex; gap: 8px; }
#follow-form input {
  flex: 1; padding: 12px 15px; border-radius: var(--r-sm); text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink);
  font-family: ui-monospace, monospace; user-select: text; letter-spacing: 0.06em;
}
#follow-form input:focus { outline: none; border-color: var(--neon); }
#follow-form .btn { width: auto; padding: 12px 20px; }

/* ============ Profil ============ */
.profile { padding-top: 14px; }
.p-head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 58px; height: 58px; flex: none; border-radius: 50%; font-size: 1.5rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; color: #04120a;
  background: var(--grad); box-shadow: var(--neon-shadow);
}
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.hist { display: grid; gap: 10px; }
.hist-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left;
  padding: 13px 14px; border-radius: var(--r); width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.15s var(--ease-out), border-color 0.2s;
  animation: card-in 0.5s var(--ease-out) calc(var(--i, 0) * 60ms) both;
}
.hist-item:active { transform: scale(0.97); }
.hist-item:hover { border-color: var(--line-strong); }
.h-code { font-family: ui-monospace, monospace; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; }
.h-meta { grid-column: 1; font-size: 0.72rem; color: var(--faint); }
.h-status { font-size: 0.7rem; font-weight: 800; color: var(--gold); background: rgba(212, 175, 55, 0.12); padding: 4px 10px; border-radius: 999px; grid-row: 1 / span 2; align-self: center; }
.h-status.ok { color: var(--neon); background: rgba(0, 230, 118, 0.12); }
.h-status.bad { color: var(--bad); background: rgba(255, 107, 107, 0.12); }
.h-total { font-weight: 850; font-size: 0.86rem; color: var(--neon); grid-column: 2; }
.h-arrow { display: none; }
.profile-actions { display: grid; gap: 10px; }

/* ============ Mentions légales ============ */
.legal-view { padding-top: 12px; }
.legal { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.legal h3 { color: var(--ink); font-size: 0.95rem; margin: 18px 2px 6px; }
.legal h3::before { content: "◆ "; color: var(--gold); font-size: 0.7rem; }
.legal p { margin-bottom: 8px; }
.legal b { color: var(--ink); }
.gate-legal .legal { font-size: 0.78rem; }

/* ============ Feuille d'action (bottom sheet) ============ */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 58; background: rgba(3, 4, 6, 0.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.25s;
}
.sheet-overlay.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 60; left: 50%; bottom: 0;
  transform: translate(-50%, 105%);
  width: min(480px, 100vw); padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: rgba(12, 15, 19, 0.96);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-top: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transition: transform 0.38s var(--ease-drawer);
  display: grid; gap: 10px; text-align: center;
}
.sheet.open { transform: translate(-50%, 0); }
.sheet h3 { font-size: 1.05rem; font-weight: 850; }
.sheet p { font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.sheet .row { display: grid; gap: 10px; margin-top: 8px; }

/* ============ Toast (au-dessus des onglets) ============ */
.toast {
  position: fixed; z-index: 70; left: 50%;
  bottom: calc(var(--tabbar-h) + 74px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: min(420px, 92vw); padding: 12px 18px; border-radius: 14px;
  font-size: 0.86rem; font-weight: 700; text-align: center;
  background: rgba(13, 17, 14, 0.92); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: toast-in 0.35s var(--ease-out) both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(0.94); } }
.toast.bad { border-color: rgba(255, 107, 107, 0.5); color: #ffb4b4; }

/* ============ Confettis CSS (couleurs marque) ============ */
.confetti-layer { position: fixed; inset: 0; z-index: 66; pointer-events: none; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -6vh; width: 9px; height: 14px; border-radius: 3px;
  opacity: 0;
  animation: confetti-fall var(--d, 2s) ease-in var(--dl, 0s) forwards;
}
@keyframes confetti-fall {
  8%  { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate3d(var(--x, 0px), 108vh, 0) rotate3d(1, 1, 0.3, var(--rot, 720deg));
  }
}

/* ============ Divers / accessibilité ============ */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
