/* Reset minimal */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Cinzel", serif;
  background: 
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(180deg, #dcd2f0, #c8b7e6); /* halo + fond doux */
  background-size: 150% 150%, cover;
  animation: haloPulse 12s ease-in-out infinite;
  color: #fff;
}

/* Animation halo doux */
@keyframes haloPulse {
  0%, 100% {
    background-size: 140% 140%, cover;
    background-position: 50% 35%, center;
  }
  50% {
    background-size: 160% 160%, cover;
    background-position: 50% 38%, center;
  }
}

/* Canvas étoiles */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: transparent;
}

/* Contenu centré (remonté et espacé) */
#intro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  text-align: center;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  padding-top: 15vh;
  gap: 60px;
}

/* Titre */
#intro-logo {
  font-size: 3.2rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow:
    1px 1px 3px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideFadeIn 2s ease forwards 0.5s;
}

/* Sous-titre manuscrit avec effet écriture */
#intro-subtitle {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #7E56E8; /* mauve soutenu */
  /* petit halo pour meilleure lisibilité sans durcir le style */
  text-shadow:
    0 1px 0 rgba(255,255,255,.35),
    0 8px 22px rgba(126,86,232,.28);
  opacity: 0;
  margin-bottom: 40px;
  animation: fadeIn 2s ease forwards 1.5s; /* 2s = durée, 1.5s = délai */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* Bouton raffiné */
#enter-btn {
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  background: #8f7cc5;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeIn 2s ease forwards 2.5s;
}

#enter-btn:hover {
  background: #7a69ad;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 4px 10px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.3);
}

/* Animations fade */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
