/* ═══════════════════════════════════════════════
   killashtag.eu — shared design system
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:ital,wght@0,300;0,400;0,700;1,300&display=swap');

:root {
  --bg:      #0d0d0d;
  --surface: #161616;
  --surface2:#1f1f1f;
  --border:  #2e2e2e;
  --text:    #f0ebe3;
  --muted:   #a09890;
  --dim:     #6a6260;
  --accent:  #ff6535;
  --accent2: #ff8255;
  --green:   #3ecf6e;
  --yellow:  #f5c842;
  --red:     #ff4444;
  --mono:    'JetBrains Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --radius:  2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* GRAIN */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 998; opacity: 0.7;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(14px);
}
.nav-brand {
  font-family: var(--display);
  font-size: 22px; letter-spacing: 2px;
  color: var(--text); text-decoration: none;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.2s; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

.btn-toggle {
  background: none; border: 1px solid var(--border);
  color: var(--muted); font-family: var(--mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 14px; cursor: pointer; transition: all 0.2s;
}
.btn-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE DRAWER */
.mobile-menu {
  display: none; position: fixed;
  top: 57px; left: 0; right: 0; z-index: 199;
  background: rgba(13,13,13,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  flex-direction: column; padding: 20px; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn-toggle { margin-top: 12px; align-self: flex-start; }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 28px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--accent);
  color: var(--accent); transition: all 0.2s;
  position: relative; overflow: hidden; cursor: pointer;
  background: none;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent); transform: translateX(-100%);
  transition: transform 0.25s ease; z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateX(0); }
.btn-ghost { border-color: var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-ghost::before { background: var(--surface); }

/* ── POPUP (light mode troll) ────────────────── */
.popup-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.8); z-index: 500;
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.popup-overlay.visible { display: flex; }
.popup {
  background: var(--surface); border: 1px solid var(--accent);
  padding: 48px 40px; max-width: 440px; width: 90%;
  text-align: center; animation: fadeUp 0.3s ease;
}
.popup-icon { font-size: 40px; margin-bottom: 20px; }
.popup h3 { font-family: var(--display); font-size: 32px; letter-spacing: 1px; color: var(--text); margin-bottom: 16px; }
.popup p { font-size: 12px; color: var(--muted); line-height: 2.1; margin-bottom: 28px; }
.popup p strong { color: var(--accent); font-weight: 400; }
.popup-close {
  display: inline-block; padding: 12px 28px;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; background: none; transition: all 0.2s;
}
.popup-close:hover { background: var(--accent); color: var(--bg); }

/* ── SECTION LABELS ──────────────────────────── */
.section-label {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 28px 48px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--dim); font-size: 11px; letter-spacing: 1px;
}
footer a { color: var(--accent); text-decoration: none; }

/* ── TICKER ──────────────────────────────────── */
.ticker { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 11px 0; background: var(--surface); }
.ticker-inner { display: flex; gap: 64px; animation: scroll 32s linear infinite; white-space: nowrap; }
.ticker-item { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.ticker-item span { color: var(--accent); margin-right: 8px; }

/* ── STATUS DOTS ─────────────────────────────── */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse-green 2.5s ease-in-out infinite; }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.dot.red { background: var(--red); }

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 4px var(--green); opacity: 1; }
  50%      { box-shadow: 0 0 10px var(--green); opacity: 0.7; }
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  footer { padding: 20px; flex-direction: column; gap: 8px; text-align: center; font-size: 10px; }
}

/* ═══════════════════════════════════════════════
   THÈME PERIWINKLE — Dark slate #7878a8
   Activé via body.theme-periwinkle
   ═══════════════════════════════════════════════ */

body.theme-periwinkle {
  --bg:      #0e0e14;
  --surface: #14141f;
  --surface2:#1a1a28;
  --border:  #2a2a3e;
  --text:    #e8e6f0;
  --muted:   #9896a8;
  --dim:     #5a5870;
  --accent:  #7878a8;
  --accent2: #9898c0;
  --green:   #3ecf6e;
  --yellow:  #f5c842;
  --red:     #ff4444;
}

/* Grain légèrement teinté en periwinkle */
body.theme-periwinkle::before {
  opacity: 0.5;
}

/* Radial hero adapté */
body.theme-periwinkle .hero::after {
  background: radial-gradient(circle, rgba(120,120,168,0.08) 0%, transparent 70%);
}

/* Transition douce au changement de thème */
body {
  transition: background 0.4s ease, color 0.4s ease;
}
