/* Importation des polices */
/* Pour le titre futuriste, nous utilisons Orbitron ici (vous pouvez remplacer par Star Jedi si souhaité) */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

body,
.subtitle,
.description,
.contact,
p,
li {
  font-family: 'Exo 2', sans-serif;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: white;
  text-align: center;
  overflow: hidden;
}

/* Overlay de démarrage */
.overlay {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.overlay .play-button {
  font-size: 5rem;
  margin: 0;
}

/* Fond dynamique */
#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

/* Chaque image de fond */
.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Texte statique (Introduction & Conclusion) dans un encadré */
.content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 800px;
  margin: 20px auto 10px auto;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
}

.content ul {
  list-style-position: inside;
  padding-left: 0;
  text-align: left;
  margin: -10px auto 0 auto;
  display: inline-block;
}

.title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.contact-btn {
  display: inline-block;
  background-color: #444;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 5px;
}
.contact-btn:hover {
  background-color: #666;
}

/* Zone pour le texte défilant (Pitch) */
.scrolling-text-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 100vh;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
}

#dynamic-text p {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  color: #ffcc00;
  text-shadow: 2px 2px 8px rgba(255,255,0,0.8);
  margin: 0 auto;
  width: 80%;
  text-align: center;
  transform-origin: center bottom;
  transform: perspective(1000px) rotateX(25deg) translateY(80vh) scale(1);
  opacity: 0;
}

@keyframes starWarsScroll {
  0% {
    transform: perspective(1000px) rotateX(25deg) translateY(80vh) scale(1);
    opacity: 1;
  }
  100% {
    transform: perspective(1000px) rotateX(25deg) translateY(0vh) scale(0.6);
    opacity: 1;
  }
}
