/* claimit.fans — « Obsidian » : monochrome, verre fumé, ressorts. L'or est réservé à la carte et au premium. */
:root {
  --bg: #000;
  --bg-1: #050505;
  --s0: #0b0b0c;
  --s1: #121214;
  --s2: #1a1a1d;
  --s3: #2a2a2e;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);
  --ink: #fafafa;
  --ink-2: #c4c4c8;
  --muted: #85858c;
  --dim: #5a5a60;
  --gold: #d4af37;
  --gold-2: #f3dc8b;
  --gold-3: #8c6d1f;
  --danger: #ff6b6b;
  --ok: #7ee2a8;
  --r: 10px;
  --r-lg: 16px;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;

  /* Courbes reprises de la config Hyprland : washi (bezier), pop / soft / snap (ressorts). */
  --ease: cubic-bezier(.19, 1, .22, 1);
  --washi: cubic-bezier(.22, 1, .36, 1);
  --io: cubic-bezier(.76, 0, .24, 1);
  --pop: linear(0, 0.044, 0.149, 0.293, 0.446, 0.597, 0.737, 0.854, 0.947, 1.018, 1.065, 1.094, 1.106, 1.106, 1.098, 1.085, 1.069, 1.052, 1.036, 1.022, 1.011, 1.002, 0.995, 0.991, 0.989, 0.988, 0.989, 0.99, 0.992, 0.993, 0.995, 0.997, 0.998, 0.999, 1);
  --soft: linear(0, 0.025, 0.084, 0.168, 0.26, 0.361, 0.456, 0.55, 0.632, 0.709, 0.773, 0.83, 0.876, 0.915, 0.944, 0.969, 0.986, 1, 1.009, 1.015, 1.019, 1.02, 1.021, 1.02, 1.019, 1.017, 1.015, 1.013, 1.011, 1.009, 1.007, 1.006, 1.004, 1.003, 1.002, 1.001, 1);
  --snap: linear(0, 0.028, 0.097, 0.191, 0.293, 0.403, 0.509, 0.609, 0.694, 0.772, 0.838, 0.89, 0.933, 0.967, 0.992, 1.009, 1.021, 1.029, 1.032, 1.033, 1.032, 1.03, 1.027, 1.023, 1.02, 1.016, 1.013, 1.01, 1.008, 1.005, 1.004, 1.002, 1.001, 1);

  --monogram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%234a3006' stroke-width='1.1' opacity='.16'%3E%3Cpath d='M28 16 Q30 26 40 28 Q30 30 28 40 Q26 30 16 28 Q26 26 28 16Z' fill='%235a3c08'/%3E%3Ccircle cx='0' cy='0' r='7'/%3E%3Ccircle cx='56' cy='0' r='7'/%3E%3Ccircle cx='0' cy='56' r='7'/%3E%3Ccircle cx='56' cy='56' r='7'/%3E%3Cpath d='M0 -4 Q2 -2 4 0 Q2 2 0 4 Q-2 2 -4 0 Q-2 -2 0 -4Z M56 -4 Q58 -2 60 0 Q58 2 56 4 Q54 2 52 0 Q54 -2 56 -4Z M0 52 Q2 54 4 56 Q2 58 0 60 Q-2 58 -4 56 Q-2 54 0 52Z M56 52 Q58 54 60 56 Q58 58 56 60 Q54 58 52 56 Q54 54 56 52Z' fill='%235a3c08'/%3E%3Cpath d='M28 -3 L31 0 L28 3 L25 0Z M28 53 L31 56 L28 59 L25 56Z M-3 28 L0 25 L3 28 L0 31Z M53 28 L56 25 L59 28 L56 31Z' fill='%235a3c08'/%3E%3C/g%3E%3C/svg%3E");
  --gold-foil: linear-gradient(125deg,
    #5c4312 0%, #a07d33 12%, #e3cb8f 24%, #c4a157 34%, #8a6a27 46%,
    #d6bb7a 58%, #f3e3b6 66%, #b8954a 76%, #77591f 88%, #cfb06a 100%);
  --brushed: repeating-linear-gradient(0deg, rgba(255,250,235,.06) 0 1px, rgba(60,40,8,.05) 1px 2px, transparent 2px 3px);
  --grain: 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* Transitions entre pages (navigateurs récents) : l'ancienne page glisse et s'efface, la nouvelle arrive en slidefade 20 %. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--io) both; }
::view-transition-new(root) { animation: vt-in .55s var(--soft) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(20px) scale(.985); filter: blur(6px); } }

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #17171a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in .7s var(--soft) both;
}
body::after { /* grain */
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .045;
  background: var(--grain); mix-blend-mode: overlay;
}
@keyframes page-in { from { opacity: 0; } }
a { color: var(--ink); text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
button { font: inherit; color: inherit; }

/* ---------- apparition au défilement (popin / slidefade) ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px) scale(.97); filter: blur(6px); }
[data-reveal].in {
  opacity: 1; transform: none; filter: none;
  transition: opacity .6s var(--washi), transform .7s var(--pop), filter .6s var(--washi);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- ambiance : particules + curseur ---------- */
#fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nav, main, footer, .dash { position: relative; z-index: 1; }

.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cursor, #fff); }
.cursor-ring {
  width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1px solid color-mix(in srgb, var(--cursor, #fff) 55%, transparent);
  transition: width .35s var(--pop), height .35s var(--pop), margin .35s var(--pop), background .2s;
}
.cursor-ring.hot { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: color-mix(in srgb, var(--cursor, #fff) 8%, transparent); }
.cursor-trail { position: fixed; top: 0; left: 0; z-index: 299; pointer-events: none; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--cursor, #fff); }
html.cc, html.cc a, html.cc button, html.cc .card3d, html.cc label { cursor: none; }

/* ---------- nav : îlot flottant ---------- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(1080px, calc(100% - 32px)); margin: 14px auto 0; padding: 8px 8px 8px 18px;
  background: rgba(12,12,14,.62); border: 1px solid var(--line); border-radius: 14px;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: width .6s var(--soft), padding .6s var(--soft), background .3s;
  animation: island .8s var(--pop) both;
}
.nav.scrolled { width: min(860px, calc(100% - 32px)); background: rgba(12,12,14,.8); }
@keyframes island { from { opacity: 0; transform: translateY(-16px) scale(.92); } }
.logo { font: 600 17px var(--sans); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.logo b { color: var(--gold); font-weight: 600; }
.nav nav { position: relative; display: flex; align-items: center; gap: 2px; }
.nav nav a {
  position: relative; z-index: 1; padding: 8px 14px; border-radius: 8px;
  font: 500 13px var(--sans); color: var(--muted); transition: color .25s;
}
.nav nav a:hover, .nav nav a.on { color: var(--ink); }
.nav nav .pill { /* indicateur qui glisse d'un lien à l'autre */
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; border-radius: 8px;
  background: rgba(255,255,255,.07); opacity: 0;
  transition: transform .5s var(--pop), width .5s var(--pop), opacity .25s;
}
.nav nav a.cta { color: var(--bg); background: var(--ink); margin-left: 6px; font-weight: 600; }
.nav nav a.cta:hover { color: var(--bg); }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px 90px; }

/* ---------- typo ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
h1 { font: 600 clamp(44px, 7.4vw, 92px)/.95 var(--sans); letter-spacing: -.05em; }
h1 em, h2 em { font: italic 500 1.04em var(--serif); letter-spacing: -.02em; background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: foil 8s linear infinite; padding-right: .06em; }
@keyframes foil { to { background-position: 200% 0; } }
h2 { font: 600 clamp(30px, 4.6vw, 52px)/1 var(--sans); letter-spacing: -.04em; }
h3 { font: 600 18px var(--sans); letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 17px; max-width: 500px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
hr.rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 96px 0; }

/* ---------- formulaires ---------- */
.field {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(18,18,20,.8);
  transition: border-color .3s, box-shadow .4s var(--ease), transform .5s var(--pop);
}
.field:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 5px rgba(255,255,255,.04), 0 20px 50px -20px rgba(255,255,255,.08); }
.field .prefix { padding: 0 0 0 12px; font: 400 16px var(--mono); color: var(--dim); white-space: nowrap; }
.field input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink);
  font: 500 16px var(--mono); padding: 12px 6px 12px 0;
}
.field.shake { animation: shake .45s var(--io); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
input.plain, textarea, select.plain {
  width: 100%; color: var(--ink); outline: 0; font: 14px var(--sans); padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--s1);
  transition: border-color .2s, box-shadow .3s var(--ease);
}
input.plain:focus, textarea:focus, select.plain:focus { border-color: var(--line-2); box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
select.plain { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
label { display: block; font: 500 12px var(--sans); color: var(--ink-2); margin: 18px 0 8px; }
label small { color: var(--dim); font-weight: 400; margin-left: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: var(--r); cursor: pointer;
  background: var(--ink); color: var(--bg);
  font: 600 13px var(--sans); letter-spacing: -.01em; white-space: nowrap;
  transition: transform .45s var(--pop), background .25s, box-shadow .3s, opacity .2s;
}
.btn:hover { box-shadow: 0 10px 30px -10px rgba(255,255,255,.35); transform: translateY(-1px); }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn svg { width: 15px; height: 15px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn.gold { background: var(--gold-foil); background-size: 220% 100%; color: #241805; transition: transform .45s var(--pop), background-position .8s var(--ease); }
.btn.gold:hover { background-position: 100% 0; box-shadow: 0 10px 34px -10px rgba(212,175,55,.6); }
.btn.small { padding: 8px 13px; font-size: 12px; border-radius: 8px; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 45%, transparent); }
.btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }

.status { min-height: 22px; margin-top: 12px; font: 13px var(--sans); transition: color .2s; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.status.gold { color: var(--gold); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 0 0; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { margin-bottom: 32px; }
.hero .stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hint { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

.stats { display: flex; gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; width: fit-content; }
.stats div { padding: 14px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats div b { display: block; font: 600 26px/1.15 var(--sans); letter-spacing: -.03em; }
.stats div span { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.steps > div { background: var(--s0); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; transition: transform .6s var(--pop), border-color .3s; }
.steps > div:hover { transform: translateY(-4px); border-color: var(--line-2); }
.steps b { display: inline-block; font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin-bottom: 18px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 14px; }

/* bandeau premium (accueil) */
.premium-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; border: 1px solid rgba(212,175,55,.25); border-radius: 20px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(212,175,55,.12), transparent 70%), var(--s0); }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.02); }
.feat svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

/* ---------- la carte en or (inchangée : c'est la signature) ---------- */
.card3d {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; --sx: 50%; --fit: 13;
  position: relative; width: 320px; aspect-ratio: 5 / 7; flex: none;
  perspective: 1400px; container-type: inline-size; user-select: none; touch-action: pan-y;
}
.card3d.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.card3d::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -9%; height: 7%;
  background: radial-gradient(closest-side, rgba(0,0,0,.85), transparent); filter: blur(6px); z-index: -1;
}
.card3d .inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.face {
  position: absolute; inset: 0; border-radius: 5.5cqw; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--brushed), var(--monogram), var(--gold-foil);
  background-size: auto, 17.5cqw 17.5cqw, 260% 260%;
  background-position: 0 0, center, var(--sx) 50%;
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,240,190,.55), inset 0 0 0 2px rgba(90,60,10,.35);
  color: #33240a;
  display: flex; flex-direction: column; padding: 8cqw 8cqw 7cqw;
}
.face::before {
  content: ""; position: absolute; inset: 3.4cqw; border-radius: 3cqw; pointer-events: none;
  border: 1px solid rgba(80,52,8,.5); box-shadow: 0 0 0 1px rgba(255,244,205,.35), inset 0 0 0 1px rgba(255,244,205,.25);
}
.face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,252,235,.6), rgba(255,240,200,.12) 28%, transparent 55%);
  mix-blend-mode: overlay;
}
.back { transform: rotateY(180deg); background-size: auto, 11cqw 11cqw, 260% 260%; }
.engr { text-shadow: 0 1px 0 rgba(255,246,214,.6), 0 -1px 0 rgba(70,46,6,.25); }
.face .top { display: flex; justify-content: space-between; align-items: center; font: 600 3.3cqw var(--sans); letter-spacing: .3em; }
.face .uid { font-family: var(--mono); letter-spacing: .12em; }
.face .mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.medal { width: 20cqw; height: 20cqw; margin-bottom: 7cqw; filter: drop-shadow(0 1px 0 rgba(255,246,214,.6)); }
.face .handle { font: 500 calc(var(--fit) * 1cqw)/1 var(--serif); letter-spacing: -.01em; word-break: break-all; }
.face .handle i { font: 300 .78em var(--sans); font-style: normal; opacity: .6; margin-right: .04em; vertical-align: .08em; }
.face .sep { width: 18cqw; height: 1px; margin: 5cqw 0 4cqw; background: rgba(70,46,6,.55); box-shadow: 0 1px 0 rgba(255,246,214,.5); }
.face .meta { font: 500 2.9cqw var(--sans); letter-spacing: .28em; text-transform: uppercase; }
.face .bot { display: flex; align-items: center; justify-content: center; gap: 2cqw; text-align: center; font: 600 2.9cqw var(--sans); letter-spacing: .5em; text-transform: uppercase; }
.face .prem { display: inline-flex; align-items: center; gap: 1.2cqw; letter-spacing: .3em; }
.face .prem svg { width: 3.4cqw; height: 3.4cqw; }
.back .mid .medal { width: 34cqw; height: 34cqw; margin-bottom: 8cqw; }
.back .url { font: 500 5.2cqw var(--serif); font-style: italic; }
.card3d.mini { width: 100%; }
.card3d.mini .face { box-shadow: 0 18px 40px -22px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,240,190,.55); }

/* ---------- grilles ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 18px; }
.grid a { display: block; transition: transform .6s var(--pop); }
.grid a:hover { transform: translateY(-6px); }
.feed-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--s0); }
.tabs .btn { background: transparent; color: var(--muted); box-shadow: none; }
.tabs .btn.on { background: var(--s2); color: var(--ink); }

/* ---------- panneaux ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(11,11,12,.8); padding: 26px; }
.panel + .panel { margin-top: 14px; }
.panel h3 { margin-bottom: 4px; }
.panel > .muted { font-size: 13px; }
.link-row { display: grid; grid-template-columns: 26px 1fr 2fr auto; gap: 8px; align-items: center; margin-bottom: 8px; animation: popin .5s var(--pop) both; }
.link-row .grip { color: var(--dim); cursor: grab; display: grid; place-items: center; }
.link-row .grip svg { width: 16px; height: 16px; }
.offer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.offer:first-child { border-top: 0; }
.offer .actions { display: flex; gap: 8px; }
@keyframes popin { from { opacity: 0; transform: scale(.8); } }

footer { text-align: center; padding: 40px 16px; font: 500 11px var(--mono); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 250; margin: 0; padding: 11px 16px; max-width: calc(100vw - 32px);
  background: rgba(20,20,22,.92); border: 1px solid var(--line-2); border-radius: 12px; backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px #000; translate: -50% 0; animation: toast .5s var(--pop) both; }
.toast:empty { display: none; }
@keyframes toast { from { opacity: 0; transform: translateY(16px) scale(.9); } }

/* ---------- admin ---------- */
.admin-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.achip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 5px 5px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; background: var(--s0); }
.achip small { color: var(--muted); font: 11px var(--mono); }
.admin-log { max-height: 340px; overflow: auto; font-size: 13px; }
.admin-log div { padding: 7px 0; border-top: 1px solid var(--line); }
.admin-log .mono { color: var(--muted); font-size: 11px; margin-right: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 14px; }
.stat-grid div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--s0); }
.stat-grid b { display: block; font: 600 26px/1.1 var(--sans); letter-spacing: -.03em; }
.stat-grid span { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- badges ---------- */
.badges { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bdg { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--c, #fff);
  transition: transform .45s var(--pop), background .2s; animation: popin .6s var(--pop) both; animation-delay: calc(var(--i, 0) * 60ms + .3s); }
.bdg svg { width: 16px; height: 16px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c, #fff) 45%, transparent)); }
.bdg:hover { transform: translateY(-3px) scale(1.08); background: rgba(255,255,255,.09); }
.bdg::after { /* infobulle */
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px; white-space: nowrap;
  padding: 5px 9px; border-radius: 7px; background: #111; border: 1px solid var(--line-2); color: var(--ink); font: 500 12px var(--sans);
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .35s var(--pop);
}
.bdg:hover::after { opacity: 1; translate: -50% 0; }

/* ---------- profil (page publique) ---------- */
body.themed { --gold: var(--accent); --gold-2: color-mix(in srgb, var(--accent) 55%, white); --gold-3: color-mix(in srgb, var(--accent) 55%, black); color: var(--text, var(--ink)); }
body.themed.grad { --grad: linear-gradient(100deg, var(--accent), var(--accent2)); }
.bg-media { position: fixed; inset: -20px; z-index: -1; background: center / cover no-repeat; filter: blur(var(--bgblur, 0px)); }
.bg-media video { width: 100%; height: 100%; object-fit: cover; }
.bg-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0, var(--dim, 0)); }

.profile { --box-o: .45; --box-b: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 0 0; font-family: var(--pfont, var(--sans)); }
.profile > * { animation: rise .8s var(--pop) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); filter: blur(6px); } }
.profile .avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 2px solid color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: 0 0 0 6px rgba(0,0,0,.25), 0 18px 40px -12px rgba(0,0,0,.8); }
.profile .name { font: 600 clamp(34px, 6vw, 54px)/1.05 var(--pfont, var(--sans)); letter-spacing: -.035em; margin-top: 18px; color: var(--text, var(--ink)); }
.profile .handle-line { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); color: var(--gold); margin-top: 6px; }
.profile .badges { margin-top: 14px; }
.profile .bio { color: color-mix(in srgb, var(--text, var(--ink)) 72%, transparent); max-width: 480px; margin-top: 14px; white-space: pre-wrap; min-height: 1.6em; }
.profile .bio .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--gold); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,calc(var(--box-o) * .6)); font: 500 12px var(--mono); color: color-mix(in srgb, var(--text, var(--ink)) 70%, transparent); backdrop-filter: blur(var(--box-b)); }
.chip svg { width: 13px; height: 13px; stroke: var(--gold); }
.links { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 440px; margin-top: 26px; }
.links a {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  color: var(--text, var(--ink)); background: rgba(10,10,12,var(--box-o)); backdrop-filter: blur(var(--box-b)); -webkit-backdrop-filter: blur(var(--box-b));
  font: 500 14px var(--pfont, var(--sans)); text-align: left;
  transition: transform .5s var(--pop), border-color .25s, background .25s;
}
.links a svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.links a span { flex: 1; }
.links a .go { width: 14px; height: 14px; opacity: .4; transition: transform .45s var(--pop), opacity .2s; }
.links a:hover { transform: translateY(-2px) scale(1.01); border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.links a:hover .go { transform: translateX(3px); opacity: .9; }
.links a.cta { background: var(--gold-foil); color: #241805; border: 0; justify-content: center; }
.ledger { margin-top: 36px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ledger li { list-style: none; padding: 3px 0; }
.ledger b { color: var(--gold); font-weight: 500; }

/* mises en page (premium sauf classic) */
.profile.l-split { display: grid; grid-template-columns: auto 1fr; gap: 0 56px; align-items: center; text-align: left; max-width: 900px; margin: 0 auto; padding-top: 60px; }
.profile.l-split .col { display: flex; flex-direction: column; align-items: flex-start; }
.profile.l-split .chips, .profile.l-split .badges { justify-content: flex-start; }
.profile.l-split .avatar { width: 84px; height: 84px; }
.profile.l-box .shell { width: min(540px, 100%); padding: 34px 28px 30px; border-radius: 22px; border: 1px solid var(--line-2);
  background: rgba(10,10,12,var(--box-o)); backdrop-filter: blur(var(--box-b)) saturate(1.3); -webkit-backdrop-filter: blur(var(--box-b)) saturate(1.3);
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.profile.l-box .card3d { width: 190px; }
.profile.l-box .links a { background: rgba(255,255,255,.04); backdrop-filter: none; }
.profile.l-minimal { padding-top: 90px; }
.profile.l-minimal .avatar { width: 128px; height: 128px; }

/* effets sur le nom */
.fx-glow { text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 70%, transparent), 0 0 42px color-mix(in srgb, var(--gold) 35%, transparent); }
.fx-shine { background: linear-gradient(100deg, var(--text, #fff) 35%, var(--gold-2) 50%, var(--text, #fff) 65%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: shine 3.2s var(--io) infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.fx-rainbow { background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bff95, #6bd5ff, #b46bff, #ff6b6b) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: foil 4s linear infinite; }
.fx-glitch { position: relative; }
.fx-glitch::before, .fx-glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.fx-glitch::before { color: #ff2e63; translate: -2px 0; clip-path: inset(0 0 60% 0); animation: glitch 2.6s steps(1) infinite; mix-blend-mode: screen; }
.fx-glitch::after { color: #08d9d6; translate: 2px 0; clip-path: inset(55% 0 0 0); animation: glitch 2.2s steps(1) infinite reverse; mix-blend-mode: screen; }
@keyframes glitch { 0%, 86%, 100% { transform: none; } 88% { transform: translate(3px, -1px); } 92% { transform: translate(-3px, 1px); } 96% { transform: translate(2px, 1px); } }
.fx-sparkle { position: relative; }
.fx-sparkle i { position: absolute; width: 8px; height: 8px; pointer-events: none; background: var(--gold-2); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 1.8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
.grad .name:not(.fx-rainbow):not(.fx-shine) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* écran d'entrée + lecteur */
.splash {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; text-align: center;
  background: rgba(0,0,0,.7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  cursor: pointer; transition: opacity .7s var(--washi), visibility .7s, backdrop-filter .7s;
}
.splash.gone { opacity: 0; visibility: hidden; backdrop-filter: blur(0); }
.splash.gone > div { transform: scale(1.08); filter: blur(6px); }
.splash > div { transition: transform .7s var(--ease), filter .7s; }
.splash b { display: block; font: 600 clamp(34px, 7vw, 60px)/1 var(--pfont, var(--sans)); letter-spacing: -.04em; color: #fff; margin-bottom: 18px; }
.splash span { font: 500 12px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.player {
  position: fixed; left: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; max-width: min(340px, calc(100vw - 32px)); border-radius: 14px;
  background: rgba(12,12,14,.7); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: island .8s var(--pop) both .6s;
}
.player button { width: 34px; height: 34px; flex: none; border: 0; cursor: pointer; display: grid; place-items: center; border-radius: 9px; background: var(--gold); color: #000; transition: transform .4s var(--pop); }
.player button:active { transform: scale(.9); }
.player button svg { width: 13px; height: 13px; fill: currentColor; }
.player .title { font: 500 12px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .bars { display: flex; gap: 2px; align-items: end; height: 14px; flex: none; }
.player .bars i { width: 2px; height: 100%; border-radius: 1px; background: var(--gold); transform-origin: bottom; transform: scaleY(.25); }
.player.playing .bars i { animation: bar .9s ease-in-out infinite; }
.player.playing .bars i:nth-child(2) { animation-delay: -.3s; }
.player.playing .bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes bar { 50% { transform: scaleY(1); } }
.player input[type=range] { width: 64px; }

/* ---------- tableau de bord ---------- */
.dash { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.dash.with-preview { grid-template-columns: 236px minmax(0, 1fr) 400px; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-right: 1px solid var(--line); background: rgba(5,5,6,.9); overflow-y: auto; }
.side .logo { padding: 6px 10px 18px; }
.side .grp { font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 14px 10px 6px; }
.side .items { position: relative; display: flex; flex-direction: column; gap: 2px; }
.side a.item { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font: 500 13px var(--sans); color: var(--muted); transition: color .2s, transform .4s var(--pop); }
.side a.item svg { width: 16px; height: 16px; flex: none; }
.side a.item:hover { color: var(--ink); }
.side a.item:active { transform: scale(.97); }
.side a.item.on { color: var(--ink); }
.side a.item .tag { margin-left: auto; font: 600 9px var(--mono); letter-spacing: .1em; color: var(--gold); border: 1px solid rgba(212,175,55,.35); border-radius: 5px; padding: 1px 5px; }
.side .ind { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 36px; border-radius: 8px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); transition: transform .55s var(--pop), height .55s var(--pop); }
.side .foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.dmain { padding: 22px 32px 120px; min-width: 0; }
.dtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.crumb { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.crumb b { color: var(--ink); font-weight: 500; }
.view { animation: view-in .55s var(--soft) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.view > h2 { font-size: 34px; margin-bottom: 4px; }
.view > .muted { margin-bottom: 22px; }
.sec { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s0); padding: 20px 22px; margin-bottom: 14px; }
.sec > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; font-size: 15px; }
.sec > h3 + .muted { font-size: 13px; margin-bottom: 6px; }
.lock { display: inline-flex; align-items: center; gap: 4px; font: 600 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(212,175,55,.35); border-radius: 5px; padding: 1px 6px; }
.lock svg { width: 10px; height: 10px; }

/* tuiles d'options */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 4px; }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--s1); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .45s var(--pop); }
.opt:hover { border-color: var(--line-2); transform: translateY(-1px); }
.opt:active { transform: scale(.97); }
.opt.on { border-color: var(--ink); background: var(--s2); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.opt b { font: 600 13px var(--sans); }
.opt small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.opt .lock { position: absolute; top: 8px; right: 8px; padding: 2px 4px; }
.opt.locked { padding-right: 30px; }
.opt.locked { opacity: .62; }
.opt.locked:hover { opacity: .9; }

/* interrupteurs */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; margin: 0; font: 500 13px var(--sans); color: var(--ink); }
.switch:first-of-type { border-top: 0; }
.switch small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.switch input { appearance: none; position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--s3); cursor: pointer; transition: background .25s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .5s var(--pop); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(16px); background: #000; }

input[type=range] { appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--s3); outline: 0; }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; cursor: pointer; transition: transform .35s var(--pop); }
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.3); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.range { display: grid; grid-template-columns: 1fr 44px; gap: 12px; align-items: center; }
.range output { font: 500 12px var(--mono); color: var(--muted); text-align: right; }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.swatches button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); cursor: pointer; transition: transform .4s var(--pop); }
.swatches button:hover { transform: scale(1.12); }
.swatches button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.swatches input[type=color] { width: 40px; height: 28px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; }

.upload { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); background: rgba(255,255,255,.015); transition: border-color .2s, background .2s; }
.upload.drag { border-color: var(--ink); background: rgba(255,255,255,.05); }
.upload .thumb { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--s2) center / cover; display: grid; place-items: center; color: var(--dim); overflow: hidden; }
.upload .thumb svg { width: 18px; height: 18px; }
.upload .thumb video { width: 100%; height: 100%; object-fit: cover; }
.upload .info { flex: 1; min-width: 0; font-size: 13px; }
.upload .info small { display: block; color: var(--muted); font-size: 11px; }
.upload .acts { display: flex; gap: 6px; }
.progress { height: 3px; border-radius: 2px; background: var(--s3); margin-top: 6px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }

/* barre d'enregistrement */
.savebar { position: fixed; left: 50%; bottom: 20px; z-index: 120; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px;
  border-radius: 14px; background: rgba(18,18,20,.92); border: 1px solid var(--line-2); backdrop-filter: blur(16px); box-shadow: 0 24px 50px -16px #000;
  translate: -50% 0; transition: transform .6s var(--pop), opacity .3s; font-size: 13px; }
.savebar.hide { transform: translateY(140%) scale(.9); opacity: 0; pointer-events: none; }
.savebar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* aperçu en direct */
.pv { position: sticky; top: 0; height: 100vh; padding: 18px 18px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.pv .bar { display: flex; align-items: center; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pv .bar .live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.pv .bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.pv iframe { flex: 1; width: 100%; border: 1px solid var(--line); border-radius: 18px; background: #000; }

/* badges (tableau de bord) */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.bcard { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.bcard .bdg { animation: none; flex: none; width: 36px; height: 36px; }
.bcard b { font: 600 13px var(--sans); display: block; }
.bcard small { font-size: 12px; color: var(--muted); line-height: 1.35; display: block; }
.bcard.off { opacity: .45; }
.bcard.off .bdg { filter: grayscale(1); }

/* premium */
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid rgba(212,175,55,.3); border-radius: 20px; overflow: hidden;
  background: radial-gradient(500px 260px at 0% 0%, rgba(212,175,55,.14), transparent 70%), var(--s0); }
.plan > div { padding: 30px; }
.plan > div + div { border-left: 1px solid var(--line); }
.plan .price { font: 600 52px/1 var(--sans); letter-spacing: -.05em; margin: 14px 0 4px; }
.plan .price small { font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.plan li svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) { .dash.with-preview { grid-template-columns: 236px minmax(0, 1fr); } .pv { display: none; } }
@media (max-width: 860px) {
  .hero, .premium-band, .plan { grid-template-columns: 1fr; }
  .plan > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero > * { min-width: 0; }
  .hero { padding-top: 36px; gap: 40px; }
  .hero .stage { order: -1; }
  .steps, .feat { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav { padding-left: 14px; }
  .nav nav a { padding: 7px 9px; font-size: 12px; }
  .card3d { width: min(290px, 78vw); }
  .card3d.mini { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .profile.l-split { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .profile.l-split .col { align-items: center; }
  .profile.l-split .chips, .profile.l-split .badges { justify-content: center; }
  .dash, .dash.with-preview { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 60; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .logo, .side .grp, .side .foot, .side .ind { display: none; }
  .side .items { flex-direction: row; }
  .side a.item { white-space: nowrap; }
  .side a.item.on { background: rgba(255,255,255,.07); }
  .dmain { padding: 18px 16px 120px; }
  .row3 { grid-template-columns: 1fr; }
  .stats div { padding: 12px 16px; }
}
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .link-row { grid-template-columns: 1fr 1fr auto; } .link-row .grip { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
.profile .col > *, .profile .shell > * { animation: rise .8s var(--pop) both; animation-delay: calc(var(--i, 0) * 80ms); }
