/* =========================================================================
   Boutique affiliée — thème néon / verre
   Les couleurs d'accent (--a1, --a2, --a3) se changent dans l'admin.
   ========================================================================= */
:root {
  --bg: #07060d;
  --bg2: #0d0b18;
  --card: rgba(255, 255, 255, .045);
  --card-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --tx: #f4f2ff;
  --tx-2: #b7b3cc;
  --tx-3: #7d7895;
  --ok: #22c55e;
  --warn: #f59e0b;
  --r: 22px;
  --r-sm: 14px;
  --grad: linear-gradient(120deg, var(--a1), var(--a2) 55%, var(--a3));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --f-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx); font-family: var(--f-body);
  font-size: 16px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--a1); color: #fff; }
.ic { display: inline-block; vertical-align: middle; flex: none; }
[data-ic] { display: inline-flex; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- Loader */
#loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-content: center; gap: 28px; justify-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-orb {
  width: 84px; height: 84px; border-radius: 26px; background: var(--grad); background-size: 200% 200%;
  display: grid; place-items: center; font: 800 40px var(--f-head); color: #fff;
  animation: orbSpin 1.6s var(--ease) infinite, gradMove 3s linear infinite;
  box-shadow: 0 0 60px -6px var(--a1), 0 0 120px -20px var(--a2);
}
.loader-bar { width: 160px; height: 3px; border-radius: 9px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 9px; animation: load 1s var(--ease) infinite; }
@keyframes orbSpin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.86); border-radius: 50%; } 100% { transform: rotate(360deg) scale(1); } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes gradMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

#progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 1000; box-shadow: 0 0 12px var(--a1); }

#cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--a1) 22%, transparent), transparent 62%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s; mix-blend-mode: screen;
}
@media (hover: hover) { body:hover #cursor-glow { opacity: 1; } }

/* ---------------------------------------------------------------- Annonce */
.announce { position: relative; z-index: 60; overflow: hidden; background: var(--grad); background-size: 200% 100%; animation: gradMove 8s linear infinite; font-size: 13px; font-weight: 600; color: #fff; }
.announce-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.announce-track span { padding: 8px 2.5rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Nav */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 6, 13, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--f-head); letter-spacing: -.02em; }
.brand-orb { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); background-size: 200% 200%; animation: gradMove 6s linear infinite; color: #fff; font-weight: 800; box-shadow: 0 6px 24px -6px var(--a1); }
.nav-links { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); padding: 5px; border-radius: 99px; }
.nav-links a { padding: 7px 16px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--tx-2); transition: .25s; }
.nav-links a:hover { color: var(--tx); background: var(--card-2); }
.nav-actions { display: flex; gap: 8px; }
.icon-btn {
  position: relative; height: 42px; min-width: 42px; padding: 0 11px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); color: var(--tx); transition: .25s var(--ease);
}
.icon-btn:hover { background: var(--card-2); border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn kbd { font: 600 11px var(--f-body); color: var(--tx-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; font-size: 11px; display: grid; place-items: center; background: var(--a3); color: #fff; transform: scale(0); transition: transform .4s var(--spring); }
.count.on { transform: scale(1); }
.count.bump { animation: bump .5s var(--spring); }
@keyframes bump { 50% { transform: scale(1.5); } }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; padding: 40px clamp(16px, 4vw, 48px) 90px; overflow: hidden; isolation: isolate; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.aurora { position: absolute; inset: -20%; z-index: -3; filter: blur(80px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 50vw; height: 50vw; left: 5%; top: 0; background: var(--a1); animation: float1 18s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: 0; top: 10%; background: var(--a2); animation: float2 22s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 35%; bottom: 0; background: var(--a3); animation: float3 26s ease-in-out infinite; opacity: .7; }
@keyframes float1 { 50% { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes float2 { 50% { transform: translate(-14vw, 14vh) scale(.85); } }
@keyframes float3 { 50% { transform: translate(-8vw, -12vh) scale(1.2); } }
.grid-bg { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); opacity: .5; }

.hero-inner { width: 100%; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--card); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero-title { font: 700 clamp(40px, 6.2vw, 86px)/.98 var(--f-head); letter-spacing: -.045em; margin: 22px 0 22px; }
.hero-title .line { display: block; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradMove 6s linear infinite; padding-bottom: .08em; }
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--tx-2); max-width: 560px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 44px; }
.hero-stats b { display: block; font: 700 clamp(28px, 3vw, 38px) var(--f-head); letter-spacing: -.03em; }
.hero-stats span { font-size: 13px; color: var(--tx-3); }

/* Mots qui apparaissent */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.reveal-words .w > i { display: inline-block; font-style: normal; transform: translateY(110%) rotate(6deg); transition: transform 1s var(--ease); }
.reveal-words.in .w > i { transform: none; }
.grad.reveal-words .w > i { background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradMove 6s linear infinite; }
.grad.reveal-words { background: none; animation: none; color: inherit; }

/* Scène 3D */
.hero-stage { position: relative; height: 520px; perspective: 1200px; }
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.float-card {
  position: absolute; width: 250px; padding: 14px; border-radius: 24px; background: rgba(20, 17, 36, .72); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform-style: preserve-3d; animation: bob 6s ease-in-out infinite; cursor: pointer; transition: border-color .3s;
}
.float-card:hover { border-color: var(--a2); }
.float-card:nth-child(1) { left: 6%; top: 8%; transform: translateZ(60px) rotate(-8deg); }
.float-card:nth-child(2) { right: 4%; top: 22%; transform: translateZ(120px) rotate(6deg); animation-delay: -2s; z-index: 2; }
.float-card:nth-child(3) { left: 22%; bottom: 2%; transform: translateZ(20px) rotate(-2deg); animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -18px; } }
.float-card .thumb { height: 150px; border-radius: 16px; }
.float-card h4 { margin: 12px 4px 6px; font: 600 14px/1.3 var(--f-head); }
.float-card .fc-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.float-chip { position: absolute; padding: 9px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; background: rgba(20, 17, 36, .85); border: 1px solid var(--line-2); backdrop-filter: blur(12px); animation: bob 5s ease-in-out infinite; z-index: 3; transform: translateZ(170px); }
.float-chip.c1 { left: -2%; bottom: 14%; color: var(--ok); animation-delay: -1s; }
.float-chip.c2 { right: 8%; top: 2%; animation-delay: -3s; }
.float-chip.c2 .ic { color: #facc15; }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 99px; }
.scroll-hint i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: var(--tx); translate: -50% 0; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- Boutons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 16px; font-weight: 700; font-size: 15px; transition: transform .3s var(--ease), box-shadow .3s, background .3s; overflow: hidden; white-space: nowrap; }
.btn-primary { background: var(--grad); background-size: 200% 100%; color: #fff; box-shadow: 0 10px 40px -10px var(--a1), inset 0 1px 0 rgba(255, 255, 255, .25); animation: gradMove 6s linear infinite; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 50px -8px var(--a1); }
.btn-ghost { background: var(--card); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--card-2); }
.btn-sm { height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn > * { position: relative; z-index: 1; pointer-events: none; }

/* ---------------------------------------------------------------- Bandeau catégories */
.cat-marquee { padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg2); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cat-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.cat-marquee:hover .cat-track { animation-play-state: paused; }
.cat-pill { display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font: 600 16px var(--f-head); white-space: nowrap; transition: .3s var(--ease); }
.cat-pill:hover { border-color: var(--c); transform: translateY(-3px); box-shadow: 0 12px 30px -12px var(--c); }
.cat-pill .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.cat-pill small { color: var(--tx-3); font: 500 13px var(--f-body); }

/* ---------------------------------------------------------------- Sections */
.section { max-width: 1320px; margin: 0 auto; padding: clamp(70px, 9vw, 120px) clamp(16px, 4vw, 48px) 0; position: relative; }
.section-head { margin-bottom: 36px; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-head h2 { font: 700 clamp(34px, 4.6vw, 60px)/1 var(--f-head); letter-spacing: -.04em; margin: 12px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a2); }
.rail-nav { display: flex; gap: 8px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Vignettes */
.thumb { position: relative; overflow: hidden; border-radius: 18px; background: radial-gradient(120% 90% at 30% 10%, color-mix(in srgb, var(--c, var(--a1)) 38%, #120f22), #0d0b18 70%); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .6s var(--ease); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); background: #fff; }
.thumb.has-img { background: #fff; }
.thumb .ph { color: #fff; opacity: .95; filter: drop-shadow(0 0 22px var(--c, var(--a1))); transition: transform .6s var(--ease); }
.thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .22), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.thumb .rings { position: absolute; inset: 0; pointer-events: none; }
.thumb .rings i { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; translate: -50% -50%; }
.thumb .rings i:nth-child(1) { width: 45%; aspect-ratio: 1; }
.thumb .rings i:nth-child(2) { width: 70%; aspect-ratio: 1; }
.thumb .rings i:nth-child(3) { width: 95%; aspect-ratio: 1; }

/* ---------------------------------------------------------------- Carte produit */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card {
  --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; border-radius: var(--r); padding: 12px; background: var(--card); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), border-color .3s, box-shadow .4s, opacity .5s, translate .5s;
  transform-style: preserve-3d; will-change: transform;
}
.card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--a1), transparent 40%, transparent 60%, var(--a2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { box-shadow: 0 30px 60px -25px color-mix(in srgb, var(--a1) 60%, transparent); }
.card:hover::before { opacity: 1; }
.card:hover .thumb::after { opacity: 1; }
.card:hover .thumb img, .card:hover .thumb .ph { transform: scale(1.08) translateZ(30px); }
.card .thumb { aspect-ratio: 1 / .85; }
.quick-zone { padding: 0; display: block; width: 100%; border-radius: 18px; }
.card-body { padding: 14px 6px 4px; display: flex; flex-direction: column; flex: 1; gap: 8px; transform: translateZ(20px); }
.card h3 { font: 600 16.5px/1.3 var(--f-head); margin: 0; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .cat-label { font-size: 12px; font-weight: 600; color: var(--c, var(--tx-3)); text-transform: uppercase; letter-spacing: .06em; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }
.card.hide { display: none; }
.card.enter { opacity: 0; translate: 0 30px; }

.badges { position: absolute; top: 12px; left: 12px; right: 58px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; background: rgba(7, 6, 13, .75); backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.badge.off { background: linear-gradient(120deg, #ef4444, #f97316); border: 0; color: #fff; }
.badge.hot { background: var(--grad); border: 0; color: #fff; }

.heart { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 6, 13, .6); backdrop-filter: blur(8px); border: 1px solid var(--line-2); transition: transform .4s var(--spring), background .3s, color .3s; }
.heart:hover { transform: scale(1.12); }
.heart.on { background: var(--a3); color: #fff; border-color: transparent; }
.heart.on .ic path { fill: currentColor; }
.heart.pop { animation: heartPop .6s var(--spring); }
@keyframes heartPop { 30% { transform: scale(.7); } 60% { transform: scale(1.35); } }

.quick { position: absolute; left: 50%; bottom: 14px; translate: -50% 10px; opacity: 0; z-index: 2; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; background: rgba(7, 6, 13, .8); backdrop-filter: blur(8px); border: 1px solid var(--line-2); transition: .35s var(--ease); white-space: nowrap; }
.card:hover .quick, .card:focus-within .quick { opacity: 1; translate: -50% 0; }

.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tx-2); }
.stars .s { position: relative; display: inline-block; letter-spacing: 1px; color: rgba(255, 255, 255, .18); font-size: 14px; line-height: 1; }
.stars .s::before { content: '★★★★★'; }
.stars .s i { position: absolute; inset: 0; overflow: hidden; color: #facc15; font-style: normal; white-space: nowrap; }
.stars .s i::before { content: '★★★★★'; }

.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 700 22px var(--f-head); letter-spacing: -.02em; }
.price s { color: var(--tx-3); font-size: 14px; }
.go { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; background: #fff; color: #0b0a12; transition: .3s var(--ease); white-space: nowrap; }
.go:hover { background: var(--a2); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -8px var(--a2); }

/* ---------------------------------------------------------------- Deal du jour */
.deal { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(16px, 3vw, 36px); border-radius: 32px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--line-2); overflow: hidden; isolation: isolate; }
.deal::before { content: ''; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--a1) 40%, transparent), transparent 30%, color-mix(in srgb, var(--a2) 40%, transparent), transparent 60%); animation: spin 14s linear infinite; filter: blur(60px); opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.deal .thumb { aspect-ratio: 1; border-radius: 24px; }
.deal .thumb .ph { width: 42%; height: auto; }
.deal-info { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 10px 0; }
.deal-info h3 { font: 700 clamp(26px, 3vw, 40px)/1.08 var(--f-head); letter-spacing: -.03em; margin: 0; }
.deal-info p { color: var(--tx-2); margin: 0; }
.deal-price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.deal-price b { font: 700 clamp(38px, 4vw, 52px) var(--f-head); letter-spacing: -.04em; }
.deal-price s { color: var(--tx-3); font-size: 20px; }
.save { padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 14px; background: rgba(34, 197, 94, .14); color: var(--ok); border: 1px solid rgba(34, 197, 94, .3); }
.countdown { display: flex; gap: 10px; }
.cd { min-width: 74px; padding: 12px 8px 10px; border-radius: 16px; text-align: center; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); }
.cd b { display: block; font: 700 30px/1 var(--f-head); font-variant-numeric: tabular-nums; }
.cd b.tick { animation: tick .45s var(--ease); }
@keyframes tick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cd span { font-size: 11px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; }
.stock { display: grid; gap: 8px; font-size: 13px; color: var(--tx-2); }
.stock .bar { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; }
.stock .bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #f97316, #ef4444); transition: width 2s var(--ease); }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.features li { display: flex; gap: 10px; align-items: center; color: var(--tx-2); font-size: 15px; }
.features li .ic { color: var(--ok); }

/* ---------------------------------------------------------------- Rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 30px; scrollbar-width: none; margin-inline: -4px; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 66px) / 4); } }

/* ---------------------------------------------------------------- Barre d'outils */
.toolbar { position: sticky; top: 72px; z-index: 20; display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 10px; margin-bottom: 28px; border-radius: 20px; background: rgba(13, 11, 24, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); }
.chips { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--tx-2); white-space: nowrap; transition: color .3s; }
.chip:hover { color: var(--tx); }
.chip.on { color: #fff; }
.chip-ind { position: absolute; z-index: 0; top: 0; height: 40px; border-radius: 12px; background: var(--grad); box-shadow: 0 6px 20px -6px var(--a1); transition: transform .5s var(--spring), width .5s var(--spring); }
.tools { display: flex; gap: 8px; }
.search-inline { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--tx-3); }
.search-inline input { border: 0; outline: 0; background: none; width: 160px; color: var(--tx); }
.search-inline:focus-within { border-color: var(--a2); }
select { height: 40px; padding: 0 34px 0 12px; border-radius: 12px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b7b3cc' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line); appearance: none; outline: 0; font-size: 14px; }
select option { background: var(--bg2); }
.empty { text-align: center; color: var(--tx-2); padding: 60px 0; font-size: 18px; }

/* ---------------------------------------------------------------- Infolettre */
.news { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 32px; overflow: hidden; isolation: isolate; background: #0e0b1c; }
.news::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); background-size: 200% 200%; animation: gradMove 5s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.news-glow { position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; right: -10%; top: -40%; background: radial-gradient(circle, color-mix(in srgb, var(--a1) 50%, transparent), transparent 65%); filter: blur(30px); }
.news h2 { font: 700 clamp(28px, 3.4vw, 44px)/1.05 var(--f-head); letter-spacing: -.03em; margin: 12px 0; }
.news p { color: var(--tx-2); margin: 0; }
.news-row { display: flex; gap: 10px; }
.news-row input[type=email] { flex: 1; min-width: 0; height: 54px; padding: 0 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); outline: 0; transition: .3s; }
.news-row input[type=email]:focus { border-color: var(--a2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 20%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--tx-3); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--a1); }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #f87171; }

/* ---------------------------------------------------------------- Pied de page */
.footer { max-width: 1320px; margin: 120px auto 0; padding: 50px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-tag { color: var(--tx-3); margin: 0; flex: 1; min-width: 200px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); transition: .3s var(--ease); }
.socials a:hover { background: var(--grad); transform: translateY(-3px) rotate(-6deg); border-color: transparent; }
.disclosure { display: flex; gap: 12px; align-items: flex-start; margin: 30px 0; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; color: var(--tx-2); }
.disclosure .ic { color: var(--a2); margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--tx-3); }
.to-top:hover { color: var(--tx); }

/* ---------------------------------------------------------------- Tiroir / Modal */
.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(4, 3, 10, .6); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: .4s; }
.backdrop.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--bg2); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease); }
.drawer.on { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font: 700 20px var(--f-head); display: flex; align-items: center; gap: 10px; }
.drawer-head h3 .ic { color: var(--a3); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; align-content: start; gap: 12px; }
.wish-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); animation: slideIn .5s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
.wish-item .thumb { width: 72px; height: 72px; border-radius: 12px; }
.wish-item .thumb .ph { width: 30px; height: 30px; }
.wish-item h4 { margin: 0 0 4px; font: 600 14px/1.3 var(--f-head); }
.wish-item .acts { display: flex; flex-direction: column; gap: 6px; }
.wish-item .acts a, .wish-item .acts button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); }
.wish-item .acts a:hover { background: var(--a2); }
.wish-item .acts button:hover { background: #ef4444; }
.wish-empty { text-align: center; color: var(--tx-3); padding: 60px 10px; }
.wish-empty .ic { color: var(--a3); margin-bottom: 10px; }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: .35s; }
.modal.on { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 20px; border-radius: 28px; background: var(--bg2); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8); transform: translateY(30px) scale(.96); transition: transform .5s var(--spring); }
.modal.on .modal-card { transform: none; }
.modal-card .thumb { aspect-ratio: 1; }
.modal-card .thumb .ph { width: 40%; height: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.modal-info { display: flex; flex-direction: column; gap: 16px; padding: 12px 6px; }
.modal-info h3 { font: 700 28px/1.1 var(--f-head); letter-spacing: -.02em; margin: 0; padding-right: 40px; }
.modal-info p { color: var(--tx-2); margin: 0; }
.modal-info .btn { flex: 1 1 200px; }
.note { font-size: 12px; color: var(--tx-3); }

.palette { width: min(640px, 100%); align-self: start; margin-top: 12vh; border-radius: 22px; background: var(--bg2); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8); transform: translateY(-20px) scale(.97); transition: transform .45s var(--spring); }
.modal.on .palette { transform: none; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--tx-3); }
.palette-input input { flex: 1; border: 0; outline: 0; background: none; font-size: 18px; color: var(--tx); }
.palette-input kbd { font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.p-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; transition: background .2s; }
.p-item.active, .p-item:hover { background: var(--card-2); }
.p-item .thumb { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.p-item .thumb .ph { width: 22px; height: 22px; }
.p-item .t { flex: 1; min-width: 0; }
.p-item .t b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-item .t small { color: var(--tx-3); }
.p-none { padding: 30px; text-align: center; color: var(--tx-3); }

/* ---------------------------------------------------------------- Toasts / confettis */
.toasts { position: fixed; z-index: 200; bottom: 20px; left: 50%; translate: -50% 0; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; background: rgba(20, 17, 36, .92); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); animation: toastIn .5s var(--spring) both; }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
.toast .ic { color: var(--a3); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }
.confetti { position: fixed; z-index: 300; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }

.noscript-list { max-width: 900px; margin: 40px auto; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { height: 380px; max-width: 560px; width: 100%; margin: 0 auto; }
  .float-card { width: 200px; }
  .float-card .thumb { height: 110px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .deal, .news, .modal-card { grid-template-columns: 1fr; }
  .toolbar { top: 64px; }
  .tools { width: 100%; }
  .search-inline { flex: 1; }
  .search-inline input { width: 100%; }
  .icon-btn kbd { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 24px; min-height: auto; }
  .hero-stage { height: 300px; }
  .float-card { width: 160px; padding: 10px; border-radius: 18px; }
  .float-card .thumb { height: 90px; }
  .float-card h4 { font-size: 12px; }
  .float-chip { font-size: 11px; padding: 7px 10px; }
  .hero-ctas .btn { flex: 1; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 8px; border-radius: 18px; }
  .card h3 { font-size: 14px; }
  .card-body { padding: 10px 4px 2px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .go { justify-content: center; }
  .price b { font-size: 18px; }
  .heart { width: 34px; height: 34px; top: 8px; right: 8px; }
  .badges { top: 8px; left: 8px; right: 46px; }
  .badge { font-size: 10.5px; padding: 4px 8px; }
  .quick { display: none; }
  .cd { min-width: 0; flex: 1; }
  .news-row { flex-direction: column; }
  .scroll-hint { display: none; }
  .rail { grid-auto-columns: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-words .w > i { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Palmarès (Tops) */
.packs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pack-card { display: block; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: .4s var(--ease); }
.pack-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .6s var(--ease); }
.pack-card b { display: block; padding: 14px 16px 16px; font: 600 16px/1.3 var(--f-head); }
.pack-card:hover { transform: translateY(-4px); border-color: var(--a1); box-shadow: 0 30px 60px -30px var(--a1); }
.pack-card:hover img { transform: scale(1.04); }

/* ---------------------------------------------------------------- Chatbot — Le Dragon */
.chat-fab {
  position: fixed; z-index: 150; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; line-height: 1;
  background: var(--grad); background-size: 200% 200%; animation: gradMove 6s linear infinite;
  box-shadow: 0 12px 34px -8px var(--a1), 0 0 0 1px rgba(255, 255, 255, .15) inset;
  transition: transform .35s var(--spring), box-shadow .3s;
}
.chat-fab:hover { transform: scale(1.1) rotate(-6deg); box-shadow: 0 18px 44px -8px var(--a1); }
.chat-fab::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--a2) 60%, transparent);
  animation: chatRing 2.4s ease-out infinite; pointer-events: none;
}
@keyframes chatRing { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-panel {
  position: fixed; z-index: 150; right: 22px; bottom: 94px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 130px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  background: rgba(16, 13, 30, .96); border: 1px solid var(--line-2);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.96); transform-origin: bottom right;
  transition: opacity .35s var(--ease), transform .45s var(--spring), visibility .35s;
}
.chat-panel.on { opacity: 1; visibility: visible; transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--grad); background-size: 200% 100%; animation: gradMove 8s linear infinite; color: #fff; }
.chat-head .chat-orb { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; background: rgba(0, 0, 0, .25); flex: none; }
.chat-head b { display: block; font: 700 17px var(--f-head); letter-spacing: -.01em; }
.chat-head small { display: block; font-size: 12px; opacity: .85; }
.chat-head .chat-close { margin-left: auto; background: rgba(0, 0, 0, .25); border-color: transparent; color: #fff; }
.chat-head .chat-close:hover { background: rgba(0, 0, 0, .4); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; gap: 8px; align-items: flex-end; animation: slideIn .4s var(--ease) both; }
.chat-msg.user { justify-content: flex-end; }
.chat-avatar { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--grad); flex: none; }
.chat-bubble { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg.dragon .chat-bubble { background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg.user .chat-bubble { background: var(--grad); background-size: 200% 100%; color: #fff; border-bottom-right-radius: 5px; }
.chat-bubble a { color: var(--a3); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.chat-msg.user .chat-bubble a { color: #fff; }
.chat-msg.typing .chat-bubble { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.chat-msg.typing .chat-bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--tx-2); animation: chatDots 1.2s infinite; }
.chat-msg.typing .chat-bubble i:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing .chat-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDots { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-suggest { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest button { flex: none; padding: 8px 13px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--tx-2); background: var(--card); border: 1px solid var(--line); transition: .25s; white-space: nowrap; }
.chat-suggest button:hover { color: #fff; border-color: var(--a2); background: var(--card-2); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); outline: 0; color: var(--tx); font-size: 15px; transition: .3s; }
.chat-form input:focus { border-color: var(--a2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 20%, transparent); }
.chat-form input:disabled { opacity: .55; }
.chat-send { height: 46px; width: 46px; padding: 0; flex: none; border-radius: 14px; }
.chat-send .ic { transform: rotate(-45deg); }
.chat-note { margin: 0; padding: 0 16px 12px; font-size: 11.5px; color: var(--tx-3); text-align: center; }
@media (max-width: 560px) {
  .chat-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; font-size: 27px; }
  .chat-panel { right: 8px; bottom: 78px; width: calc(100vw - 16px); height: min(540px, calc(100dvh - 100px)); }
}
