/* ============================================================
   BUCK ROGERS — SITE OFFICIEL DU DOMAINE PUBLIC
   CSS GLOBAL HYPERRÉALISTE & CINÉMATOGRAPHIQUE
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #C85A00;
  --color-amber: #D4820A;
  --color-steel: #2E4057;
  --color-cyan: #00A8CC;
  --color-bg: #050505;
  --color-bg-night: #0A0E1A;
  --color-gold: #FFD700;
  --color-silver: #E8E8E8;
  --color-purple: #2D1B69;
  --color-red-cosmic: #8B0000;
  --font-main: 'Orbitron', 'Rajdhani', system-ui, -apple-system, sans-serif;
  --font-body: 'Rajdhani', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-silver);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3" fill="%23C85A00" stroke="%23FFD700" stroke-width="1.5"/></svg>') 12 12, crosshair;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 { font-size: 4.5rem; line-height: 1.1; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }

.gold-text { color: var(--color-gold); }
.rust-text { color: var(--color-primary); }
.cyan-text { color: var(--color-cyan); }

/* === BACKGROUND & SPACE THEME === */
.space-bg {
  background: 
    radial-gradient(circle at 20% 30%, rgba(45, 27, 105, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #050505 0%, #0A0E1A 100%);
  position: relative;
}

/* === SCANLINES === */
.scanlines {
  position: relative;
}

.scanlines::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 168, 204, 0.03) 3px,
    rgba(0, 168, 204, 0.03) 6px
  );
  pointer-events: none;
  z-index: 2;
  animation: scanline-move 4s linear infinite;
}

@keyframes scanline-move {
  0% { background-position: 0 0; }
  100% { background-position: 0 300px; }
}

/* === NAVIGATION HOLOGRAPHIQUE === */
.nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background: rgba(5, 5, 5, 0.96);
  border-right: 1px solid #2E4057;
  z-index: 1000;
  padding: 2.5rem 1.75rem;
  backdrop-filter: blur(24px);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 4px 0 30px rgba(0,0,0,0.6);
}

.nav-sidebar.open {
  transform: translateX(0);
}

.nav-sidebar .logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.1rem;
  color: #FFD700;
  margin-bottom: 3.5rem;
  letter-spacing: 5px;
}

.nav-sidebar a {
  display: block;
  padding: 0.85rem 1.1rem;
  color: #E8E8E8;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 0.35rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-sidebar a:hover,
.nav-sidebar a.active {
  color: #C85A00;
  border-left-color: #C85A00;
  background: rgba(200, 90, 0, 0.08);
  padding-left: 1.5rem;
}

.nav-holo .logo {
  font-family: var(--font-main);
  font-size: 1.8rem;
  color: var(--color-gold);
  margin-bottom: 3rem;
  letter-spacing: 4px;
}

.nav-holo ul {
  list-style: none;
}

.nav-holo li {
  margin-bottom: 0.75rem;
}

.nav-holo a {
  display: block;
  color: var(--color-silver);
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-holo a:hover,
.nav-holo a.active {
  color: var(--color-gold);
  border-left-color: var(--color-primary);
  background: rgba(200, 90, 0, 0.08);
  transform: translateX(8px);
}

/* Mobile nav toggle */
.nav-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1001;
  background: var(--color-steel);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: var(--color-primary);
  color: white;
}

/* === BUTTONS === */
.cta-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-amber));
  color: white;
  font-family: var(--font-main);
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transform: skewX(25deg);
  transition: all 0.6s;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(200, 90, 0, 0.4);
}

.cta-btn:hover::after {
  left: 150%;
}

.cta-btn.glitch {
  animation: glitch 1.5s infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, 1px); }
}

/* === CARDS & COMPONENTS === */
.card {
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid var(--color-steel);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

/* === IMAGE STYLES === */
img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hyperreal-img {
  border: 1px solid var(--color-steel);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  filter: contrast(1.05) saturate(1.1);
}

.hyperreal-img:hover {
  transform: scale(1.015);
}

/* === FOOTER === */
footer {
  background: #020202;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--color-steel);
  font-size: 0.85rem;
  color: #888;
}

.footer-coords {
  font-family: var(--font-main);
  color: var(--color-cyan);
  letter-spacing: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  .nav-holo { width: 100%; }
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* === UTILITIES === */
.glass {
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.text-glow {
  text-shadow: 0 0 20px rgba(200, 90, 0, 0.5);
}