/* Vipluck Club — Design Tokens */
:root {
  /* Palette — sombre premium */
  --bg-0: #07080B;          /* fond principal */
  --bg-1: #0C0E13;          /* carte / section alt */
  --bg-2: #12151C;          /* surface élevée */
  --bg-3: #191D26;          /* surface interactive */
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);

  --ink-0: #F5F6FA;         /* texte principal */
  --ink-1: #C3C7D1;         /* texte secondaire */
  --ink-2: #8B90A0;         /* texte tertiaire */
  --ink-3: #5A5F6E;         /* muted */

  /* Accent — bleu électrique par défaut (tweakable) */
  --accent-h: 220;
  --accent-s: 100%;
  --accent-l: 62%;
  --accent: oklch(0.72 0.19 250);
  --accent-soft: oklch(0.72 0.19 250 / 0.14);
  --accent-line: oklch(0.72 0.19 250 / 0.35);
  --accent-ink: #0A0C12;

  /* Typo */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Echelle */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-glow: 0 0 0 1px var(--accent-line), 0 20px 60px -20px oklch(0.72 0.19 250 / 0.45);

  /* Container */
  --max-w: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
main, section, .container { overflow-x: hidden; }
html, body { background: var(--bg-0); color: var(--ink-0); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
html { overflow-x: hidden; }
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink-0); }
h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.5vw, 58px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; }
p { color: var(--ink-1); line-height: 1.55; font-size: 16px; }
.lede { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-1); line-height: 1.5; max-width: 58ch; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 500; font-size: 14px; letter-spacing: -0.005em; transition: all .25s cubic-bezier(.2,.8,.2,1); border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink-0); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-1); background: rgba(255,255,255,0.03); }
.btn-link { padding: 0; color: var(--ink-0); border-radius: 0; gap: 8px; }
.btn-link:hover { color: var(--accent); }
.btn .arrow { display: inline-block; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Chip */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-1); background: rgba(255,255,255,0.02); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* Grid placeholder pattern */
.ph-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Noise overlay */
.noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Utility */
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); width: 100%; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase; }

/* Section spacing */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }

/* Cards */
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: border-color .3s, background .3s, transform .3s; }
.card:hover { border-color: var(--line-strong); }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
