/* =============================================
   SWAKS — style.css
   Thème : espace sombre, étoiles, astronaute
   Réutilisable sur toutes les pages du site
   ============================================= */

/* --- Reset & base ----------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  background: #050510;
  color: #e8e8ff;
  cursor: default;
  user-select: none;
}

/* --- Canvas étoiles --------------------------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* --- Logo SWAKS -------------------------------- */
#logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-shadow:
    0 0 40px rgba(120, 100, 255, 0.7),
    0 0 80px rgba(80, 60, 200, 0.4),
    0 0 160px rgba(60, 40, 180, 0.2);
  pointer-events: none;
}

/* --- Astronaute -------------------------------- */
#astronaut-wrap {
  position: fixed;
  z-index: 20;
  cursor: pointer;
  width: 80px;
  height: 80px;
}

#astronaut-wrap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(160, 140, 255, 0.5));
  transition: filter 0.2s;
}

#astronaut-wrap:hover svg {
  filter: drop-shadow(0 0 16px rgba(160, 140, 255, 0.9));
}

/* --- Menu déroulant --------------------------- */
#menu {
  position: fixed;
  z-index: 30;
  background: rgba(10, 8, 30, 0.85);
  border: 1px solid rgba(120, 100, 255, 0.35);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#menu.open {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

#menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #c8c0ff;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
}

#menu a:hover {
  color: #ffffff;
  background: rgba(120, 100, 255, 0.18);
}

#menu a + a {
  border-top: 1px solid rgba(120, 100, 255, 0.15);
}

/* --- Nébuleuse décorative --------------------- */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
}

.nebula-1 {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, #4b2fff, transparent 70%);
  top: 10%;
  left: -10%;
}

.nebula-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, #ff2f7a, transparent 70%);
  bottom: 5%;
  right: -8%;
}
