/* ==========================================================================
   INTRO SCREEN - Animation d'entrée
   ========================================================================== */

.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.intro-screen.active {
  opacity: 1;
  visibility: visible;
}

.intro-screen.exit {
  animation: slideUpOut 1s ease-in-out forwards;
}

.intro-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* LOGO ANIMÉ */
.intro-logo {
  margin-bottom: 2rem;
  animation: scaleIn 1s ease-out 0.5s backwards;
}

.logo-video {
  max-width: 150px;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 8px 24px rgba(0, 50, 255, 0.15));
  animation: fadeInScale 0.8s ease-out 0.5s backwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* TITRE */
.intro-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: #000;
  margin: 1rem 0;
  line-height: 1.2;
}

.intro-word {
  display: block;
  overflow: hidden;
  height: auto;
}

.intro-word:nth-child(1) {
  animation: slideInDown 0.8s ease-out 1.2s backwards;
}

.intro-word:nth-child(2) {
  animation: slideInDown 0.8s ease-out 1.4s backwards;
  color: #0032FF;
}

@keyframes slideInDown {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* SOUS-TITRE */
.intro-subtitle {
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #666;
  font-weight: 300;
  margin: 0;
  animation: fadeInUp 0.8s ease-out 1.6s backwards;
}

/* DESCRIPTION */
.intro-description {
  max-width: 400px;
  font-size: 1rem;
  color: #888;
  line-height: 1.6;
  margin: 0;
  animation: fadeInUp 0.8s ease-out 1.8s backwards;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease-out 2s backwards;
}

.scroll-text {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: #0032FF;
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite 2.5s both;
}

.scroll-arrow {
  color: #0032FF;
  animation: bounce 2s ease-in-out infinite 2.5s both;
}

.scroll-arrow svg {
  display: block;
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
  }
  70% {
    opacity: 0.5;
    transform: translateY(-30px) scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%) scale(0.9);
    visibility: hidden;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .intro-logo {
    margin-bottom: 1.5rem;
  }

  .logo-video {
    max-width: 120px;
  }

  .intro-title {
    font-size: clamp(2rem, 6vw, 4rem);
  }

  .intro-subtitle {
    font-size: 1rem;
  }

  .intro-description {
    font-size: 0.95rem;
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .intro-screen {
    padding: 2rem;
  }

  .intro-container {
    gap: 1.5rem;
    padding: 2rem;
  }

  .intro-logo {
    margin-bottom: 1rem;
  }

  .logo-video {
    max-width: 100px;
  }

  .intro-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .intro-word {
    line-height: 1.1;
  }

  .intro-subtitle {
    font-size: 0.95rem;
  }

  .intro-description {
    font-size: 0.9rem;
    max-width: 280px;
  }

  .scroll-indicator {
    margin-top: 1.5rem;
  }

  .scroll-text {
    font-size: 0.8rem;
  }

  .scroll-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .intro-screen {
    padding: 1rem;
  }

  .intro-container {
    gap: 1.2rem;
    padding: 1.5rem;
  }

  .intro-logo {
    margin-bottom: 0.8rem;
  }

  .logo-video {
    max-width: 80px;
  }

  .intro-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  .intro-subtitle {
    font-size: 0.9rem;
  }

  .intro-description {
    font-size: 0.85rem;
    max-width: 100%;
  }

  .scroll-indicator {
    margin-top: 1rem;
  }

  .scroll-text {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
}
