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

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

/* ------------------------ */
/* LOADER ANIMATION */
/* ------------------------ */

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 1s ease-out 3.2s forwards;
}

.loader-logo {
  width: 120px;
  opacity: 0;
  transform: scale(0.5);
  animation: logoPop 3s ease-in-out forwards;
}

@keyframes logoPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  80% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ------------------------ */
/* SLIDER DE FOND */
/* ------------------------ */

.slider-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  filter: blur(2px) brightness(0.6);
}

.slide.active {
  opacity: 1;
}

/* ------------------------ */
/* OVERLAY DÉGRADÉ NETFLIX */
/* ------------------------ */

.overlay-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.3), rgba(0,0,0,0));
  z-index: -2;
}

/* ------------------------ */
/* TEXTE AU CENTRE */
/* ------------------------ */

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding-left: 80px;
  color: white;
  max-width: 700px;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

p {
  font-size: 1.5rem;
  opacity: 0.9;
  max-width: 90%;
}

/* ------------------------ */
/* APPARITION DU CONTENU */
/* ------------------------ */

.hidden {
  opacity: 0;
  pointer-events: none;
}

#main-content {
  transition: opacity 1s ease;
}

#main-content.visible {
  opacity: 1;
  pointer-events: auto;
}
