body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  color: #fff;
  position: relative;
  background: url("galaxie.jpg") no-repeat center center fixed;
  background-size: cover;
    filter: saturate(1.3) brightness(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(88, 0, 151, 0.5), rgba(0, 0, 0, 0.35));
  animation: breathingGlow 10s ease-in-out infinite;
  z-index: 0;
}

/* anim voile de couleur */
@keyframes breathingGlow {
  0%, 100% { opacity: 1.8; }
  50% { opacity: 2; }
}

header {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

h1 {
  font-size: 2rem;
  color: #fff;
  letter-spacing: 1px;
}

h3 {
  color: #f0b3ff;
  margin-top: 10px;
}

/* Bouton */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.start-button {
  background: linear-gradient(90deg, #8e2de2, #4a00e0);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 40px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.start-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Animations d’apparition */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in.delay {
  animation-delay: 0.5s;
}

.fade-in.delay2 {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Fond d’étoiles animées ---- */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* les clics passent à travers */
  z-index: 1; /* au-dessus du fond, sous le texte */
}
.page {
  position: relative;
  z-index: 2; /* pour que ton texte reste visible */
}
