/* =========================================================================
   LINKOO — Design system
   Nuit profonde, or champagne, aurores iridescentes.
   ========================================================================= */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07060c;
  --bg-2: #0d0b15;
  --bg-3: #14111f;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --panel-3: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --ink: #f6f2ea;
  --ink-2: #cbc5d8;
  --muted: #8f89a0;
  --gold: #f1d29a;
  --gold-2: #c8954d;
  --gold-3: #fff1cf;
  --violet: #8b6cff;
  --teal: #3de0c3;
  --rose: #ff6f9f;
  --danger: #ff5c7a;
  --ok: #3de0a0;
  --grad-gold: linear-gradient(115deg, #fff4da 0%, #f1d29a 28%, #c8954d 55%, #f8dca6 78%, #fff1cf 100%);
  --grad-iris: linear-gradient(115deg, #8b6cff 0%, #3de0c3 50%, #ff6f9f 100%);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --f-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow-lg: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6; letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: rgba(241, 210, 154, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: #000; border-radius: 10px; }
.skip:focus { top: 16px; }
.noscript { position: fixed; inset: auto 16px 16px; padding: 16px; background: var(--danger); border-radius: 12px; z-index: 100; }

/* ---------- Ambiance : aurore + grain ---------- */
#aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; filter: blur(60px) saturate(140%); opacity: .75; transform: scale(1.15); }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 120% 80% at 50% 0%, transparent 40%, rgba(7, 6, 12, .85) 100%); }
@keyframes grain { 0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -3%) } 60% { transform: translate(-2%, -1%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) } }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- Typo utilitaires ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.025em; font-variation-settings: 'SOFT' 50, 'WONK' 0; }
.italic { font-style: italic; font-weight: 300; }
.gold { background: var(--grad-gold); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s var(--ease) infinite; }
.iris { background: var(--grad-iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes sheen { 0%, 100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px var(--gutter); transition: padding .4s var(--ease); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 28px;
  padding: 10px 12px 10px 20px; border-radius: 999px; border: 1px solid transparent; transition: all .5s var(--ease);
}
.nav.scrolled .nav-inner { background: rgba(13, 11, 21, .66); border-color: var(--line); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 25px; font-weight: 500; letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; transition: transform .8s var(--spring); }
.logo:hover .logo-mark { transform: rotate(180deg); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--panel-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-burger span:first-child { top: 18px; } .nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.avatar-btn { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.avatar-btn:hover { border-color: var(--line-2); }

/* ---------- Boutons ---------- */
.btn {
  --bg-btn: var(--panel-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px; letter-spacing: .01em;
  background: var(--bg-btn); border: 1px solid var(--line-2); color: var(--ink); white-space: nowrap;
  transition: transform .35s var(--spring), background .25s, border-color .25s, box-shadow .35s, opacity .2s;
  isolation: isolate; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .28); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { --bg-btn: var(--grad-gold); background-size: 200% 100%; color: #1a1206; border: 0; box-shadow: 0 10px 40px -10px rgba(241, 210, 154, .55), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover { background-position: 100% 0; box-shadow: 0 18px 60px -12px rgba(241, 210, 154, .75), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { --bg-btn: transparent; border-color: transparent; }
.btn-ghost:hover { --bg-btn: var(--panel-2); border-color: var(--line); }
.btn-danger { --bg-btn: rgba(255, 92, 122, .1); border-color: rgba(255, 92, 122, .35); color: #ffc2ce; }
.btn-lg { height: 58px; padding: 0 32px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-icon { width: 40px; padding: 0; }
.btn.loading { color: transparent !important; }
.btn.loading::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--ink) transparent var(--ink) transparent; animation: spin .8s linear infinite; }
.btn-gold.loading::before { border-color: #1a1206 transparent #1a1206 transparent; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- Panneaux verre ---------- */
.glass {
  position: relative; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.glass-edge::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 241, 207, .5), transparent 30%, transparent 70%, rgba(139, 108, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot { --mx: 50%; --my: 50%; }
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 241, 207, .11), transparent 45%);
}
.spot:hover::after { opacity: 1; }

/* ---------- Page & transitions ---------- */
main { display: block; min-height: 80vh; outline: none; }
.page { padding-top: 110px; padding-bottom: 80px; animation: pageIn .7s var(--ease) both; }
.page.leaving { animation: pageOut .22s ease-in both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-8px) } }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-ring { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.section { padding: clamp(70px, 10vw, 140px) 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); margin-top: 14px; max-width: 16ch; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: min(100vh, 980px); display: flex; align-items: center; padding: 130px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero-grid > *, .brand-layout > *, .settings > * { min-width: 0; }
.hero h1 { font-size: clamp(46px, 6.4vw, 100px); line-height: 1; margin: 26px 0 28px; }
.hero h1 .line { display: block; overflow: hidden; padding: 0 .06em .16em 0; margin-bottom: -.1em; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; animation: rise 1.2s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { transform: translateY(110%) rotate(4deg); opacity: 0 } to { transform: none; opacity: 1 } }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: #1a1206; font-size: 11px; }
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 224, 160, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 224, 160, 0) } 100% { box-shadow: 0 0 0 0 rgba(61, 224, 160, 0) } }

.search {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: 38px; max-width: 580px;
  height: 66px; padding: 0 8px 0 24px; border-radius: 999px; background: rgba(13, 11, 21, .7); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); transition: border-color .3s, box-shadow .3s;
}
.search::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; background: var(--grad-iris); opacity: 0; filter: blur(14px); transition: opacity .5s; }
.search:focus-within { border-color: rgba(241, 210, 154, .55); }
.search:focus-within::before { opacity: .55; }
.search svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 17px; }
.search input::placeholder { color: var(--muted); }
.search .btn { height: 50px; }
.suggest { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 20; padding: 8px; border-radius: 22px; background: rgba(16, 13, 26, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-weight: 600; }
.suggest a:hover, .suggest a.hl { background: var(--panel-3); }
.suggest .perk { margin-left: auto; font-size: 12.5px; color: var(--gold); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); transition: all .25s var(--ease); white-space: nowrap; }
.chip:hover, .chip.active { color: var(--ink); background: var(--panel-3); border-color: var(--line-2); }
.chip.active { box-shadow: inset 0 0 0 1px rgba(241, 210, 154, .45); color: var(--gold-3); }
.chip svg { width: 15px; height: 15px; }

/* Anneau 3D de marques */
.stage { position: relative; height: 560px; perspective: 1400px; display: grid; place-items: center; }
.stage::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 210, 154, .28), transparent 65%); filter: blur(30px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7 } }
.ring { position: relative; width: 150px; height: 200px; transform-style: preserve-3d; animation: orbit 38s linear infinite; }
.stage:hover .ring { animation-play-state: paused; }
@keyframes orbit { from { transform: rotateX(-12deg) rotateY(0) } to { transform: rotateX(-12deg) rotateY(-360deg) } }
.ring-card {
  position: absolute; inset: 0; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  transform: rotateY(var(--a)) translateZ(300px); backface-visibility: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 55%, #0d0b15) 0%, #0d0b15 75%);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .5s var(--ease);
}
.ring-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%); }
.ring-card .mono { width: 52px; height: 52px; font-size: 20px; }
.ring-card b { font-size: 17px; font-family: var(--f-display); font-weight: 500; line-height: 1.15; }
.ring-card small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.stage-badge { position: absolute; z-index: 2; padding: 12px 16px; border-radius: 16px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; animation: float 6s ease-in-out infinite; }
.stage-badge svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--panel-3); color: var(--gold); }
.stage-badge.b1 { left: 0; top: 70px; } .stage-badge.b2 { right: 0; bottom: 70px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-14px) } }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--line-2); }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--gold); animation: scrollDot 2s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0) } 30% { opacity: 1 } 100% { opacity: 0; transform: translateY(14px) } }

/* ---------- Monogramme de marque ---------- */
.mono {
  --brand: #888; position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--mono-ink, #fff);
  background: radial-gradient(120% 120% at 25% 15%, color-mix(in srgb, var(--brand) 70%, #fff) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand) 55%, #000) 100%);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--brand) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 6px rgba(0, 0, 0, .25);
}
.mono.light { --mono-ink: #111; }
.mono-xl { width: 120px; height: 120px; border-radius: 34px; font-size: 44px; }

/* ---------- Marquee ---------- */
.marquee { padding: 30px 0; border-block: 1px solid var(--line); 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); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 60s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--f-display); font-size: clamp(30px, 4vw, 54px); font-style: italic; font-weight: 300; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee-track span:hover { color: var(--gold); -webkit-text-stroke-color: transparent; }
.marquee-track i { align-self: center; width: 10px; height: 10px; transform: rotate(45deg); background: var(--grad-gold); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 40px 30px; background: rgba(10, 9, 17, .82); backdrop-filter: blur(10px); }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(40px, 5vw, 68px); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Catégories (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  --h: 42; position: relative; min-height: 170px; padding: 24px; border-radius: var(--r); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: linear-gradient(160deg, hsla(var(--h), 80%, 60%, .14), rgba(255, 255, 255, .02) 60%); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .3s;
}
.cat:hover { transform: translateY(-6px); border-color: hsla(var(--h), 80%, 70%, .45); }
.cat.big { grid-column: span 2; grid-row: span 2; min-height: 356px; }
.cat.big h3 { font-size: 40px; }
.cat .ico { width: 48px; height: 48px; padding: 12px; border-radius: 15px; background: hsla(var(--h), 80%, 60%, .18); color: hsl(var(--h), 90%, 78%); box-shadow: inset 0 0 0 1px hsla(var(--h), 80%, 70%, .25); }
.cat h3 { font-family: var(--f-display); font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.cat .count { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.cat .arrow { position: absolute; right: 22px; top: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: all .4s var(--spring); }
.cat .arrow svg { width: 16px; height: 16px; }
.cat:hover .arrow { background: var(--ink); color: #000; transform: rotate(-45deg); }
.cat-glow { position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, hsla(var(--h), 90%, 60%, .35), transparent 65%); filter: blur(10px); transition: transform .8s var(--ease); }
.cat:hover .cat-glow { transform: scale(1.4); }

/* ---------- Cartes marques ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bcard {
  --brand: #888; --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(165deg, color-mix(in srgb, var(--brand) 16%, transparent), rgba(255, 255, 255, .02) 55%);
  border: 1px solid var(--line); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s; transform-style: preserve-3d;
}
.bcard:hover { border-color: color-mix(in srgb, var(--brand) 55%, rgba(255, 255, 255, .2)); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--brand) 60%, transparent); }
.bcard-top { display: flex; align-items: center; gap: 14px; }
.bcard h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.bcard .cat-name { font-size: 12px; color: var(--muted); font-weight: 600; }
.bcard .perk { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--gold-3); }
.bcard .perk svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.bcard-foot { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: auto; }
.bcard-foot .go { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); transition: gap .3s var(--ease); }
.bcard:hover .go { gap: 12px; }
.bcard-foot svg { width: 15px; height: 15px; }
.sponsors-dot { display: inline-flex; align-items: center; gap: 8px; }
.sponsors-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.sponsors-dot.on::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.ribbon { position: absolute; top: 16px; right: -32px; transform: rotate(45deg); padding: 4px 40px; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; background: var(--grad-gold); color: #1a1206; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 34px 30px; border-radius: var(--r-lg); }
.step .n { font-family: var(--f-display); font-size: 88px; font-weight: 200; font-style: italic; line-height: .8; }
.step h3 { margin: 26px 0 12px; font-size: 24px; font-family: var(--f-display); font-weight: 400; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ---------- Sécurité ---------- */
.vault { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.vault-visual { position: relative; aspect-ratio: 1; max-width: 480px; display: grid; place-items: center; }
.vault-visual .orb { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); animation: spin 40s linear infinite; }
.vault-visual .orb:nth-child(1) { inset: 0; border-style: dashed; }
.vault-visual .orb:nth-child(2) { inset: 12%; animation-direction: reverse; animation-duration: 30s; border-color: rgba(241, 210, 154, .3); }
.vault-visual .orb:nth-child(3) { inset: 24%; animation-duration: 20s; }
.vault-visual .orb::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 20px var(--gold); }
.vault-visual .orb:nth-child(2)::after { background: var(--violet); box-shadow: 0 0 20px var(--violet); }
.vault-visual .orb:nth-child(3)::after { background: var(--teal); box-shadow: 0 0 20px var(--teal); }
.vault-core { position: relative; width: 38%; aspect-ratio: 1; border-radius: 32%; display: grid; place-items: center; background: linear-gradient(145deg, #1d1830, #0c0a14); border: 1px solid var(--line-2); box-shadow: 0 0 80px rgba(241, 210, 154, .25), inset 0 1px 0 rgba(255, 255, 255, .15); }
.vault-core svg { width: 46%; color: var(--gold); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.feature { display: flex; gap: 14px; padding: 18px; border-radius: 18px; }
.feature svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; flex: none; background: var(--panel-3); color: var(--gold); }
.feature b { display: block; font-size: 15px; margin-bottom: 4px; }
.feature span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Classement ---------- */
.leader { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.leader a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; transition: transform .4s var(--ease); }
.leader a:hover { transform: translateY(-4px); }
.leader .rank { font-family: var(--f-display); font-size: 30px; font-style: italic; width: 34px; color: var(--muted); }
.leader a:nth-child(1) .rank { color: var(--gold); }
.leader small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* ---------- Avatars ---------- */
.avatar { --h: 42; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: conic-gradient(from 210deg, hsl(var(--h), 85%, 62%), hsl(calc(var(--h) + 60), 85%, 55%), hsl(calc(var(--h) + 140), 80%, 50%), hsl(var(--h), 85%, 62%)); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.xl { width: 128px; height: 128px; font-size: 48px; font-family: var(--f-display); font-weight: 500; box-shadow: 0 0 0 6px rgba(7, 6, 12, .9), 0 0 0 7px var(--line-2), 0 30px 80px -10px hsla(var(--h), 85%, 60%, .55); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(50px, 8vw, 100px) clamp(24px, 6vw, 80px); border-radius: 40px; text-align: center; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 120%, rgba(241, 210, 154, .35), transparent 60%), radial-gradient(40% 60% at 10% 0%, rgba(139, 108, 255, .3), transparent 60%), radial-gradient(40% 60% at 90% 0%, rgba(61, 224, 195, .2), transparent 60%); }
.cta h2 { font-size: clamp(40px, 6.5vw, 92px); margin: 18px auto 24px; max-width: 14ch; }
.cta .lead { margin: 0 auto 36px; }

/* ---------- Page marque ---------- */
.brand-hero { --brand: #888; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 40px; border-radius: 36px; overflow: hidden; }
.brand-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 60%); }
.brand-hero h1 { font-size: clamp(40px, 6vw, 76px); margin: 10px 0 14px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.perk-card { padding: 24px; border-radius: 22px; }
.perk-card small { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.perk-card b { display: block; margin-top: 8px; font-family: var(--f-display); font-size: 26px; font-weight: 400; line-height: 1.2; }
.verified { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ok); font-weight: 600; flex-wrap: wrap; }
.verified svg { width: 16px; height: 16px; }
.verified code { color: var(--ink-2); background: var(--panel-2); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.brand-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; margin-top: 28px; align-items: start; }

/* Scène de tirage */
.draw { position: relative; padding: 34px; border-radius: 32px; text-align: center; overflow: hidden; }
.draw h2 { font-size: 34px; font-family: var(--f-display); font-weight: 400; margin-bottom: 8px; }
.flip { position: relative; height: 290px; margin: 28px auto; max-width: 440px; perspective: 1600px; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s var(--spring); }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip.shuffling .flip-inner { animation: shuffle .9s var(--ease); }
@keyframes shuffle { 0% { transform: rotateY(0) } 25% { transform: rotateY(-14deg) translateX(-14px) } 50% { transform: rotateY(14deg) translateX(14px) } 75% { transform: rotateY(-8deg) } 100% { transform: rotateY(0) } }
.face { position: absolute; inset: 0; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px; overflow: hidden; }
.face-front { background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 55%, #120f1d), #0c0a14 70%); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--brand) 60%, transparent); }
.face-front::before { content: ''; position: absolute; inset: 14px; border-radius: 18px; border: 1px dashed rgba(255, 255, 255, .18); }
.face-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%); background-size: 250% 100%; animation: holo 4s linear infinite; }
@keyframes holo { from { background-position: 150% 0 } to { background-position: -100% 0 } }
.face-front .q { font-family: var(--f-display); font-size: 92px; font-style: italic; font-weight: 300; line-height: 1; }
.face-back { transform: rotateY(180deg); background: linear-gradient(160deg, #1b1628, #0c0a14); border: 1px solid rgba(241, 210, 154, .4); box-shadow: 0 0 80px -20px rgba(241, 210, 154, .5); }
.codebox { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 22px; border-radius: 16px; background: rgba(0, 0, 0, .4); border: 1px dashed rgba(241, 210, 154, .55); max-width: 100%; }
.codebox code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--gold-3); overflow-wrap: anywhere; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.who small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.face-back .msg { font-size: 14px; color: var(--ink-2); font-style: italic; max-width: 34ch; }
.draw-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.sponsors { display: flex; flex-direction: column; gap: 10px; }
.sponsor { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; }
.sponsor .meta { min-width: 0; }
.sponsor .meta b { font-size: 15px; }
.sponsor .meta p { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor .meta small { font-size: 12px; color: var(--muted); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(61, 224, 160, .1); color: var(--ok); border: 1px solid rgba(61, 224, 160, .25); }
.badge.warn { background: rgba(255, 92, 122, .1); color: #ffb3c2; border-color: rgba(255, 92, 122, .3); }
.badge.gold { background: rgba(241, 210, 154, .1); color: var(--gold); border-color: rgba(241, 210, 154, .3); }
.badge svg { width: 12px; height: 12px; }

/* ---------- Catalogue ---------- */
.filters { position: sticky; top: 86px; z-index: 10; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 24px; margin: 30px 0 26px; background: rgba(13, 11, 21, .78); }
.filters-row { display: flex; gap: 12px; align-items: center; }
.filters .search { margin: 0; height: 52px; max-width: none; flex: 1; box-shadow: none; }
.filters .chips { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters .chips::-webkit-scrollbar { display: none; }
.select { height: 52px; padding: 0 40px 0 18px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); appearance: none; font-weight: 600; font-size: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1d29a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.select option { background: var(--bg-3); }
.empty { padding: 70px 20px; text-align: center; border-radius: var(--r-lg); }
.empty svg { width: 54px; height: 54px; margin: 0 auto 18px; color: var(--gold); opacity: .8; }
.empty h3 { font-family: var(--f-display); font-size: 28px; font-weight: 400; margin-bottom: 8px; }

/* ---------- Formulaires ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 60px 60px; overflow: hidden; }
.auth-art h2 { font-size: clamp(40px, 4.6vw, 70px); max-width: 12ch; }
.auth-art .lead { margin-top: 20px; }
.auth-art .floaters { position: absolute; inset: 0; pointer-events: none; }
.auth-art .floaters .mono { position: absolute; animation: float 7s ease-in-out infinite; animation-delay: var(--d); }
.auth-form-wrap { display: grid; place-items: center; padding: 120px var(--gutter) 60px; }
.auth-card { width: 100%; max-width: 460px; padding: 40px; border-radius: 32px; }
.auth-card h1 { font-family: var(--f-display); font-size: 40px; font-weight: 400; margin-bottom: 8px; }
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: #ffb3c2; font-weight: 600; }
.input, .textarea {
  width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2);
  outline: none; font-size: 15px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.textarea { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: rgba(241, 210, 154, .6); box-shadow: 0 0 0 4px rgba(241, 210, 154, .12); background: rgba(0, 0, 0, .45); }
.field.invalid .input, .field.invalid .textarea { border-color: rgba(255, 92, 122, .6); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-wrap button { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.pw-wrap button:hover { color: var(--ink); background: var(--panel-2); }
.pw-wrap svg { width: 18px; height: 18px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.meter i { height: 4px; border-radius: 4px; background: var(--line-2); transition: background .3s; }
.meter[data-s='1'] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-s='2'] i:nth-child(-n+2) { background: #ffb15c; }
.meter[data-s='3'] i:nth-child(-n+3) { background: var(--gold); }
.meter[data-s='4'] i { background: var(--ok); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, .3); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.check input:checked { background: var(--grad-gold); border-color: transparent; }
.check input:checked::after { content: ''; width: 5px; height: 10px; border: solid #1a1206; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.pow .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pow .bar i { display: block; height: 100%; width: 0; background: var(--grad-iris); transition: width .3s; }
.pow.ok { color: var(--ok); }
.form-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.form-foot a { color: var(--gold); font-weight: 700; }
.range { width: 100%; appearance: none; height: 10px; border-radius: 10px; background: linear-gradient(90deg, hsl(0 85% 60%), hsl(60 85% 60%), hsl(120 85% 55%), hsl(180 85% 55%), hsl(240 85% 65%), hsl(300 85% 60%), hsl(360 85% 60%)); outline: none; }
.range::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--bg); cursor: pointer; }

/* Combobox marque */
.combo { position: relative; }
.combo-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 280px; overflow: auto; padding: 6px; border-radius: 16px; background: #120f1d; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.combo-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-align: left; font-weight: 600; font-size: 14px; }
.combo-list button:hover, .combo-list button.hl { background: var(--panel-3); }
.combo-list .mono { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }

/* ---------- Modale ---------- */
.modal-back { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(4, 3, 8, .72); backdrop-filter: blur(10px); animation: fadeIn .3s var(--ease); }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 34px; border-radius: 30px; background: linear-gradient(160deg, #1a1626, #0e0c16); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: modalIn .5s var(--spring); }
.modal h2 { font-family: var(--f-display); font-size: 30px; font-weight: 400; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0 } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.96) } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 95; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; width: min(92vw, 440px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: rgba(22, 18, 34, .95); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; animation: toastIn .5s var(--spring); pointer-events: auto; backdrop-filter: blur(16px); }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--ok); }
.toast.error svg { color: var(--danger); }
.toast.out { animation: toastOut .3s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9) } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95) } }

/* ---------- Tableau de bord ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.dash-head h1 { font-size: clamp(38px, 5vw, 64px); margin-top: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 22px; border-radius: 22px; }
.kpi small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-family: var(--f-display); font-size: 44px; font-weight: 300; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; }
.chart { margin-top: 14px; padding: 24px; border-radius: 24px; }
.chart svg { width: 100%; height: 160px; overflow: visible; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); margin: 40px 0 22px; flex-wrap: wrap; }
.tabs button { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: all .25s; }
.tabs button.active { background: var(--ink); color: #0b0912; }
.mylinks { display: flex; flex-direction: column; gap: 10px; }
.mylink { display: grid; grid-template-columns: auto 1.4fr 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 20px; }
.mylink .m b { display: block; font-size: 15.5px; }
.mylink .m code { font-size: 13px; color: var(--gold-3); }
.mylink .m .url { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.mylink .nums { display: flex; gap: 18px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mylink .nums b { display: block; color: var(--ink); font-size: 17px; }
.mylink .act { display: flex; gap: 6px; }
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 28px; border-radius: 26px; }
.panel h3 { font-family: var(--f-display); font-size: 24px; font-weight: 400; margin-bottom: 4px; }
.share { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); max-width: 100%; }
.share code { font-size: 14px; color: var(--gold-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }

/* ---------- Profil public ---------- */
.profile-hero { text-align: center; padding: 30px 0 40px; }
.profile-hero .avatar { margin: 0 auto 26px; }
.profile-hero h1 { font-size: clamp(42px, 6vw, 76px); }
.profile-hero p { margin: 14px auto 0; max-width: 54ch; color: var(--ink-2); }
.profile-stats { display: inline-flex; gap: 30px; margin-top: 24px; padding: 14px 28px; border-radius: 999px; font-size: 13px; color: var(--muted); font-weight: 600; }
.profile-stats b { color: var(--ink); font-size: 18px; margin-right: 6px; font-family: var(--f-display); }
.plinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.plink { --brand: #888; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; transition: transform .4s var(--ease), border-color .3s; }
.plink:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.plink .info { flex: 1; min-width: 0; }
.plink .info b { display: block; }
.plink .info small { color: var(--gold); font-weight: 600; font-size: 12.5px; }

/* ---------- Pages texte ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(40px, 6vw, 72px); margin: 14px 0 26px; }
.prose h2 { font-family: var(--f-display); font-size: 28px; font-weight: 400; margin: 44px 0 14px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--ink); }

/* ---------- Admin ---------- */
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 18px; flex-wrap: wrap; }
.admin-item .m { min-width: 0; flex: 1; }
.admin-item code { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .4)); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 70px var(--gutter) 40px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 36ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.footer-cols a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 14.5px; transition: color .2s; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 34px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 420px; margin-top: 10px; }
  .ring-card { transform: rotateY(var(--a)) translateZ(290px); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .vault { grid-template-columns: 1fr; }
  .vault-visual { max-width: 340px; margin: 0 auto; }
  .brand-layout { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .mylink { grid-template-columns: auto 1fr auto; }
  .mylink .nums { grid-column: 2 / -1; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter); flex-direction: column; padding: 10px; margin: 0; border-radius: 22px; background: rgba(16, 13, 26, .97); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .nav-burger { display: block; }
  .nav-actions .hide-m { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .leader { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .settings, .form-grid, .perks { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand-hero { grid-template-columns: 1fr; padding: 28px; }
  .mono-xl { width: 88px; height: 88px; font-size: 32px; border-radius: 26px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 110px; }
  .search { height: 58px; padding-left: 18px; }
  .search .btn span { display: none; }
  .search .btn { width: 44px; height: 44px; padding: 0; }
  .stage { height: 340px; }
  .ring { width: 110px; height: 150px; }
  .ring-card { transform: rotateY(var(--a)) translateZ(215px); padding: 12px; border-radius: 16px; }
  .ring-card .mono { width: 38px; height: 38px; font-size: 15px; }
  .ring-card b { font-size: 13px; }
  .stage-badge { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cat.big { grid-column: auto; grid-row: auto; min-height: 200px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 32px; }
  .filters-row { flex-wrap: wrap; }
  .filters .select { width: 100%; }
  .auth-card, .modal, .draw { padding: 24px; }
  .plinks { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .mylink { grid-template-columns: auto 1fr; }
  .mylink .act { grid-column: 1 / -1; justify-content: flex-end; }
  .profile-stats { gap: 14px; padding: 12px 18px; }
  .codebox code { font-size: 17px; }
}

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

/* Apparition de l'en-tête (indépendante du défilement) */
.fade-up { animation: fadeUp 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px) } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span, .fade-up { animation: none !important; opacity: 1; transform: none; }
}
.hero > .wrap { min-width: 0; width: 100%; }
.hero .lead { max-width: 48ch; }
@media (max-width: 560px) {
  .nav { padding: 10px 12px; }
  .nav-inner { gap: 10px; padding: 8px 8px 8px 14px; }
  .logo { font-size: 22px; }
  .logo-mark { width: 30px; height: 30px; }
  .nav-actions .btn-sm { padding: 0 12px; }
  .avatar-btn span:last-child { display: none; }
  .avatar-btn { padding: 4px; }
}
.pow svg { width: 18px; height: 18px; flex: none; }
.plink > svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
