/* ============================================================
   CINEMATIQUE D'INTRODUCTION
   ============================================================ */

#ecran-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

#ecran-intro.cache-doux {
  opacity: 0;
  pointer-events: none;
}

/* ================== PARTICULES ================== */
.intro-particules {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(229, 9, 20, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(42, 207, 214, 0.1) 0%, transparent 40%);
  opacity: 0;
  animation: particules-fade 3s ease-in-out forwards;
}

.intro-poussiere {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  animation: rotation-lente 60s linear infinite;
  opacity: 0.6;
  mix-blend-mode: screen;
}

/* ================== LOGO MF ================== */
.intro-logo-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: intro-container-zoom 3.4s cubic-bezier(0.8, 0, 0.4, 1) forwards;
  will-change: transform, opacity, filter;
  transform: translateZ(0);
}

.intro-mf {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 140px;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(135deg, #ff3d47, #e50914, #8b0000);
  background-clip: text;
  -webkit-background-clip: text;
  opacity: 0;
  transform: scale(0.8) translateZ(0);
  animation: intro-logo-pop 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  position: relative;
  letter-spacing: -6px;
  line-height: 1;
}

.intro-mf::after {
  content: 'MF';
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(135deg, #ff3d47, #e50914);
  background-clip: text;
  -webkit-background-clip: text;
  filter: blur(24px);
  opacity: 0;
  z-index: -1;
  animation: intro-logo-glow 3s ease-in-out forwards;
}

/* ================== TEXTE MES FILMS ================== */
.intro-texte {
  margin-top: 16px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: intro-texte-fade 2s ease-out 0.8s forwards;
  position: relative;
  overflow: hidden;
}

.intro-texte::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  animation: intro-balayage 1.5s ease-in-out 1.2s forwards;
}

/* ================== ANIMATIONS ================== */
@keyframes intro-container-zoom {
  0% { transform: scale(1) translateZ(0); opacity: 1; filter: blur(0); }
  75% { transform: scale(1.05) translateZ(0); opacity: 1; filter: blur(0); }
  100% { transform: scale(12) translateZ(0); opacity: 0; filter: blur(8px); }
}

@keyframes intro-logo-pop {
  0% {
    opacity: 0;
    transform: scale(0.7) translateZ(0);
    filter: blur(10px);
  }
  30% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: blur(0px);
  }
}

@keyframes intro-logo-glow {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.1); }
  100% { opacity: 0.4; transform: scale(1.05); }
}

@keyframes intro-texte-fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 4px;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 12px;
  }
}

@keyframes intro-balayage {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes particules-fade {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes rotation-lente {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  .intro-mf { font-size: 100px; letter-spacing: -4px; }
  .intro-texte { font-size: 16px; letter-spacing: 8px; margin-left: 8px; }
  @keyframes intro-texte-fade {
    0% { opacity: 0; transform: translateY(20px); letter-spacing: 2px; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 8px; }
  }
}
