@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --surface-0: #060608;
  --surface-1: #0C0C12;
  --surface-2: #111118;
  --surface-3: #171720;
  --surface-4: #1E1E2A;

  --accent:        #6D28D9;
  --accent-light:  #7C3AED;
  --accent-bright: #8B5CF6;
  --accent-dim:    rgba(109,40,217,0.12);
  --accent-glow:   rgba(109,40,217,0.25);

  --pink:       #EC4899;
  --pink-dim:   rgba(236,72,153,0.12);

  --text-1: #EEEDF5;
  --text-2: #9E9DB8;
  --text-3: #807E95;
  --text-4: #7D7B9E;

  --line-1: rgba(255,255,255,0.055);
  --line-2: rgba(255,255,255,0.03);

  --green: #22C55E;
  --red:   #EF4444;
  --amber: #F59E0B;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-1: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-3: 0 12px 40px rgba(0,0,0,0.6);
  --glow:     0 0 40px var(--accent-glow);

  --t-fast: 0.12s ease;
  --t-mid:  0.22s ease;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--surface-0);
  color: var(--text-1);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(6,6,8,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-1);
  transition: background var(--t-mid);
}
.navbar.scrolled {
  background: rgba(6,6,8,0.95);
  box-shadow: 0 1px 0 var(--line-1), var(--shadow-2);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
}
.navbar-brand-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.navbar-nav a {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t-fast);
  letter-spacing: -0.1px;
}
.navbar-nav a:hover { color: var(--text-1); background: var(--surface-3); }
.navbar-nav a.active { color: var(--text-1); }

.navbar-cta { display: flex; gap: 8px; align-items: center; }
.burger { display: none; background: none; border: none; color: var(--text-2); font-size: 20px; cursor: pointer; padding: 4px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t-fast);
  white-space: nowrap;
  letter-spacing: -0.1px;
  font-family: var(--font-body);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(109,40,217,0.4), var(--shadow-1);
}
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 0 0 1px rgba(124,58,237,0.5), var(--glow); }
.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-1);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.1); color: var(--text-1); background: var(--surface-3); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752C4; }
.btn-sm  { padding: 5px 12px; font-size: 12px; }
.btn-lg  { padding: 12px 28px; font-size: 15px; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }
.section-sm { padding: 60px 40px; max-width: 1200px; margin: 0 auto; }
.section-full { padding: 100px 40px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-bright);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-1);
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-title span {
  background: linear-gradient(135deg, var(--accent-bright), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.card:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}
.card-icon { font-size: 28px; margin-bottom: 14px; }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.card-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ── Stat cards ───────────────────────────────────────────────────────────── */
.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  transition: all var(--t-mid);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: rgba(109,40,217,0.2); }
.stat-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.stat-value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }

/* ── Badge ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-online  { background: rgba(34,197,94,0.1);  color: var(--green); }
.badge-offline { background: rgba(85,84,102,0.15); color: var(--text-3); }
.badge-new     { background: var(--accent-dim);    color: var(--accent-bright); }

/* ── Status dot ───────────────────────────────────────────────────────────── */
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.status-dot.online  { background: var(--green); animation: pulse 2s ease infinite; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.status-dot.offline { background: var(--text-4); }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line-1); }

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header {
  padding: 140px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-1);
  margin-bottom: 14px;
  line-height: 1.05;
}
.page-header p { font-size: 16px; color: var(--text-2); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ── Galerie ──────────────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  border: 1px solid var(--line-1);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.1px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: var(--r-md); box-shadow: var(--shadow-3); }
.lightbox-close { position: absolute; top: 20px; right: 24px; font-size: 24px; color: var(--text-2); cursor: pointer; background: var(--surface-3); border: none; border-radius: var(--r-sm); padding: 6px 10px; transition: all var(--t-fast); }
.lightbox-close:hover { color: var(--text-1); background: var(--surface-4); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--text-2); cursor: pointer; background: var(--surface-3); border: none; border-radius: var(--r-sm); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: all var(--t-fast); }
.lightbox-nav:hover { background: var(--surface-4); color: var(--text-1); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption { position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%); color: var(--text-2); font-size: 12px; background: var(--surface-3); padding: 5px 14px; border-radius: var(--r-sm); font-family: var(--font-mono); }

/* Zoom au clic */
#lightbox-img { cursor: zoom-in; transition: transform 0.25s ease; }
#lightbox-img.zoomed { cursor: zoom-out; transform: scale(1.6); }

/* Miniatures en bas */
.lightbox-thumbs {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  max-width: 80vw;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: var(--r-sm);
  cursor: pointer;
  opacity: 0.45;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.lightbox-thumb:hover { opacity: 0.8; }
.lightbox-thumb.active { opacity: 1; border-color: var(--accent-bright); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer { background: var(--surface-1); border-top: 1px solid var(--line-1); padding: 48px 40px 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand-icon {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.footer-desc { font-size: 13px; color: var(--text-3); line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-4); margin-bottom: 14px; }
.footer-col-links { display: flex; flex-direction: column; gap: 9px; }
.footer-col-links a { font-size: 13px; color: var(--text-3); transition: color var(--t-fast); }
.footer-col-links a:hover { color: var(--text-1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line-1); }
.footer-copy { font-size: 12px; color: var(--text-4); font-family: var(--font-mono); }
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn { width: 32px; height: 32px; background: var(--surface-3); border: 1px solid var(--line-1); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all var(--t-fast); }
.footer-social-btn:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ── Reveal ───────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar-cta { display: none; }
  .navbar-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 78vw;
    max-width: 320px;
    background: var(--surface-1);
    border-left: 1px solid var(--line-1);
    padding: 88px 20px 24px;
    gap: 2px;
    z-index: 99;
    box-shadow: -12px 0 32px rgba(0,0,0,0.4);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .navbar-nav.open { transform: translateX(0); }
  .navbar-nav a {
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 15px;
  }
  .navbar-nav a:active { background: var(--surface-3); }
  .burger { display: block; position: relative; z-index: 100; }
  .section, .section-sm, .section-full { padding: 60px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .section-title { letter-spacing: -0.5px; }
  .page-header { padding: 120px 20px 40px; }
  .page-header h1 { letter-spacing: -1px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ── Respect prefers-reduced-motion — desactive/reduit les animations pour
   les utilisateurs qui l'ont demande au niveau OS. Le curseur custom et le
   parallax sont deja geres en JS ; ceci couvre tout le reste (fade, hover,
   transitions de cards, etc). ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card:hover, .stat-card:hover, .feature-item:hover, .gallery-item:hover img { transform: none !important; }
}
