:root {
  --primary-color: #0ff;
  --secondary-color: #00cccc;
  --background-color: #000010;
  --font-family: 'Orbitron', sans-serif;
}

/* Reset */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}
body, html {
  height: 100%;
  background: var(--background-color);
  overflow: hidden;
  font-family: var(--font-family);
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Fond animé étoiles et vaisseaux */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, #001022, var(--background-color) 70%);
  z-index: -3;
}
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://example.com/star-wars-ships.png') repeat;
  animation: moveShips 20s linear infinite;
  opacity: 0.2;
  z-index: -2;
}
@keyframes moveShips {
  from { background-position: 0 0; }
  to { background-position: -1000px 1000px; }
}

/* Container */
.container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Titre néon avec animation */
h1 {
  font-size: 4rem;
  color: var(--primary-color);
  text-shadow:
    0 0 5px var(--primary-color),
    0 0 10px var(--primary-color),
    0 0 20px var(--primary-color),
    0 0 40px rgba(0, 255, 255, 0.8),
    0 0 80px rgba(0, 255, 255, 0.5);
  animation: pulseTitle 3s infinite;
  transition: transform 0.3s ease;
}
h1:hover {
  transform: scale(1.1);
}
@keyframes pulseTitle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Logo République clignotant */
.logo {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 5px var(--primary-color));
  animation: neonBlink 2.5s infinite;
  user-select: none;
}
@keyframes neonBlink {
  0%, 100% {
    filter: drop-shadow(0 0 5px var(--primary-color)) drop-shadow(0 0 15px var(--primary-color));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 2px var(--primary-color));
    opacity: 0.6;
  }
}

/* Barre de chargement */
.loading-bar-container {
  width: 90%;
  max-width: 600px;
  height: 15px;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  margin: 0 auto 30px auto;
  overflow: hidden;
  box-shadow:
    0 0 10px var(--primary-color),
    inset 0 0 10px var(--primary-color);
}
.loading-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  animation: loadingAnim 4s linear infinite;
  border-radius: 10px 0 0 10px;
}
@keyframes loadingAnim {
  0% { width: 0; }
  50% { width: 100%; border-radius: 10px; }
  100% { width: 0; border-radius: 10px 0 0 10px; }
}

/* Citation Clone Wars avec effet de texte */
.quote {
  text-align: center;
  margin-top: 20px;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
  animation: fadeIn 5s infinite alternate;
}
@keyframes fadeIn {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 2.5rem;
  }
  .logo {
    width: 70px;
    height: 70px;
  }
  .loading-bar-container {
    height: 10px;
    margin-bottom: 20px;
  }
}