/* =========================================
   1. IMPORTS & CONFIGURATION
   ========================================= */
/* Import de la police style "Cinéma" pour les titres */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

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

:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --accent-color: #333333;
  --hover-color: #b0b0b0;
  --tiktok-color: #00f2ea;
  --youtube-red: #ff0000;
  --netflix-red: #e50914;
}

body {
  font-family: "Manrope", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

/* =========================================
   2. NAVIGATION & HEADER (Site Principal)
   ========================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  gap: 40px;
}
nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}
nav a:hover {
  color: var(--hover-color);
}

/* Bouton spécial LUCHOFLIX dans le menu */
.nav-flix {
  color: var(--netflix-red) !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}
.nav-flix:hover {
  color: #ff3d47 !important;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
  transform: scale(1.1);
}

.btn-reserver-nav {
  border: 1px solid #fff;
  padding: 10px 25px;
  border-radius: 50px;
}
.btn-reserver-nav:hover {
  background: #fff;
  color: #000;
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   3. HERO SECTION (VIDEO ACCUEIL)
   ========================================= */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* Correction iPhone */
.video-bg::-webkit-media-controls {
  display: none !important;
}
.video-bg::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}
.hero-content h1 {
  font-size: 4rem;
  font-weight: 200;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-content h1 span {
  font-weight: 700;
  display: block;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #ccc;
  font-weight: 200;
}

.btn-main {
  background-color: #fff;
  color: #000;
  padding: 15px 40px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-block;
}
.btn-main:hover {
  background-color: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

/* =========================================
   4. SECTION TUTO (STYLE NETFLIX - POSTER)
   ========================================= */
#netflix-hero-section {
  position: relative;
  padding: 100px 5%;
  background-color: #000;
  border-bottom: 8px solid #222;
  overflow: hidden;
}

.netflix-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

/* --- COLONNE GAUCHE (TEXTE) --- */
.netflix-content {
  flex: 1;
  z-index: 10;
  max-width: 600px;
}

.series-logo {
  font-weight: 700;
  letter-spacing: 2px;
  color: #a3a3a3;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.n-symbol {
  color: #e50914;
  font-size: 1.5rem;
  font-family: "Bebas Neue", sans-serif;
}

.episode-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  line-height: 0.9;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.meta-data {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 500;
}
.match-score {
  color: #46d369;
  font-weight: bold;
}
.maturity-rating {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0 5px;
  font-size: 0.8rem;
}

.episode-desc {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.netflix-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.btn-play-hero {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s;
}
.btn-play-hero:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-info-hero {
  background-color: rgba(109, 109, 110, 0.7);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.btn-info-hero:hover {
  background-color: rgba(109, 109, 110, 0.4);
}

/* TEASER "COMING SOON" */
.luchoflix-teaser {
  background: linear-gradient(90deg, #1a1a1a 0%, #000 100%);
  border-left: 4px solid #e50914;
  padding: 15px 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: pulseTeaser 3s infinite;
}
.teaser-icon {
  font-size: 1.5rem;
  color: #e50914;
}
.teaser-text {
  display: flex;
  flex-direction: column;
}
.teaser-text strong {
  color: #fff;
  font-size: 1rem;
}
.teaser-text span {
  color: #888;
  font-size: 0.8rem;
}

@keyframes pulseTeaser {
  0% {
    box-shadow: 0 0 0 rgba(229, 9, 20, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
  }
  100% {
    box-shadow: 0 0 0 rgba(229, 9, 20, 0);
  }
}

/* --- COLONNE DROITE (CARD IMAGE) --- */
.netflix-card-wrapper {
  flex: 0 0 350px; /* Largeur fixe pour le poster */
  position: relative;
  z-index: 5;
  perspective: 1000px;
}

.card-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-poster {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Effets au survol */
.card-link:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 30px 80px rgba(229, 9, 20, 0.3);
  border-color: #fff;
}

.card-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-25deg);
  transition: 0.5s;
  pointer-events: none;
}
.card-link:hover .card-glow {
  left: 150%;
  transition: 0.7s ease-in-out;
}

/* Responsive de la section Netflix Hero */
@media (max-width: 900px) {
  .netflix-container {
    flex-direction: column;
    gap: 40px;
  }
  .netflix-card-wrapper {
    flex: 1;
    width: 70%;
    max-width: 300px;
  }
  .netflix-content {
    text-align: center;
    margin-bottom: 20px;
  }
  .netflix-buttons,
  .series-logo,
  .meta-data {
    justify-content: center;
  }
  .luchoflix-teaser {
    text-align: left;
  }
}

/* =========================================
   5. SECTIONS SERVICES & INFO
   ========================================= */
section {
  padding: 100px 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 200;
}

.services-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 0;
}
.service-card {
  flex: 1 1 300px;
  max-width: 400px;
  width: 100%;
  background: linear-gradient(145deg, #0a0a0a, #111);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.service-icon {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  opacity: 0.8;
}
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}
.service-price {
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
}
.service-desc {
  font-size: 0.9rem;
  color: #edebeb;
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 300;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9b9999;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  margin-top: auto;
}
.service-card.featured {
  background: linear-gradient(145deg, #1a1a1a, #000);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tag-popular {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  color: #000;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 1px;
}

/* Info Section */
.info-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 80px 50px;
  border-top: 1px solid #333;
}
.info-text {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
}
.info-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 200;
}
.info-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}
.info-item i {
  font-size: 1.2rem;
}

.salon-partner {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.partner-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 10px;
}
.salon-logo {
  max-height: 80px;
  width: auto;
  transition: 0.3s;
  filter: grayscale(100%) brightness(1000%);
  opacity: 0.9;
}
.salon-logo:hover {
  filter: none;
  opacity: 1;
}

.map-container {
  flex: 1;
  min-width: 300px;
  height: 400px;
  background: #222;
  position: relative;
}
.map-frame {
  width: 100%;
  height: 100%;
  filter: grayscale(100%) invert(92%) contrast(83%);
  border: 0;
}

/* =========================================
   6. WIDGETS (Music, Social, Footer)
   ========================================= */
.social-sidebar {
  position: fixed;
  left: 40px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  z-index: 1000;
  animation: slideUp 1s ease-out forwards;
}
.social-sidebar::after {
  content: "";
  display: block;
  width: 1px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.3);
  margin-top: 10px;
}
.social-link {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}
.social-link:hover {
  color: #fff;
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.social-link.tiktok:hover {
  text-shadow:
    2px 2px 0px #ff0050,
    -2px -2px 0px #00f2ea;
}
.social-link.insta:hover {
  color: #e1306c;
}

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

.music-controller {
  position: fixed;
  bottom: 30px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  outline: none;
}
.music-controller:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.music-controller.playing {
  border-color: #fff;
  animation: pulse-music 2s infinite;
}
@keyframes pulse-music {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid #222;
  font-size: 0.8rem;
  color: #666;
}
.footer-socials {
  display: none;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}
.footer-social-link {
  font-size: 1.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}
.footer-social-link:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

/* =========================================
   7. PAGE LUCHOFLIX (SPECIFIQUE)
   ========================================= */
.netflix-body {
  background-color: #141414;
  color: #fff;
  font-family: "Manrope", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* Nav spécifique Luchoflix */
.netflix-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  z-index: 9999 !important;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 10%,
    rgba(0, 0, 0, 0)
  );
  transition: background 0.5s;
}
.netflix-nav.black-nav {
  background: #141414;
}

.netflix-logo {
  color: #e50914;
  font-family: "Bebas Neue", cursive;
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.btn-back-home {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}
.btn-back-home:hover {
  opacity: 1;
}

/* Billboard (Affiche Géante) */
.billboard {
  position: relative;
  height: 85vh;
  width: 100%;
  margin-bottom: 20px;
}
.billboard-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.billboard-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.billboard-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to top, #141414 5%, transparent 60%),
    linear-gradient(to right, #141414 0%, transparent 50%);
}
.billboard-content {
  position: absolute;
  top: 35%;
  left: 4%;
  width: 40%;
  z-index: 10;
}
.billboard-badge {
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa;
  font-size: 0.9rem;
}
.billboard-badge::before {
  content: "TOP 10";
  background: #e50914;
  color: #fff;
  font-weight: bold;
  padding: 2px 5px;
  font-size: 0.7rem;
  border-radius: 2px;
}
.billboard-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.billboard-desc {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.billboard-buttons {
  display: flex;
  gap: 15px;
}
.btn-play {
  background: #fff;
  color: #000;
  padding: 10px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}
.btn-play:hover {
  background: rgba(255, 255, 255, 0.7);
}
.btn-info {
  background: rgba(109, 109, 110, 0.7);
  color: #fff;
  padding: 10px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}
.btn-info:hover {
  background: rgba(109, 109, 110, 0.4);
}

/* Rows & Cards (Pour la page LuchoFlix) */
.netflix-rows-container {
  padding-bottom: 50px;
  position: relative;
  z-index: 20;
  margin-top: -100px;
}
.row-header {
  margin-left: 4%;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #e5e5e5;
}
.row-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4% 50px 4%;
}
.row-scroller::-webkit-scrollbar {
  display: none;
}
.row-content {
  display: flex;
  gap: 10px;
}

.n-card {
  flex: 0 0 250px;
  aspect-ratio: 16/9;
  background: #333;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.n-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.n-card:hover {
  transform: scale(1.4);
  z-index: 100;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

.n-card-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #181818;
  padding: 10px;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 0.7rem;
  pointer-events: none;
}
.n-card:hover .n-card-overlay {
  opacity: 1;
}

.n-card-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.btn-circle {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
}
.btn-circle:first-child {
  background: #fff;
  border: none;
  color: #000;
}
.n-card-meta {
  margin-bottom: 5px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.match {
  color: #46d369;
  font-weight: bold;
}
.age {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0 4px;
}
.n-card-genres {
  color: #fff;
}

/* Player Overlay (Popup) */
.player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
.player-overlay.active {
  display: flex;
}
.player-wrapper {
  width: 90%;
  max-width: 1200px;
  position: relative;
}
.video-container-netflix {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}
.video-container-netflix iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.close-player {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* =========================================
   8. TRANSITION D'ENTRÉE LUCHOFLIX (L'EFFET WOW)
   ========================================= */
#flix-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#flix-transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.transition-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 8rem;
  color: #e50914;
  letter-spacing: 4px;
  opacity: 0;
  transform: scale(3);
}

#flix-transition-overlay.active .transition-logo {
  animation: netflixZoomIntro 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes netflixZoomIntro {
  0% {
    opacity: 0;
    transform: scale(3);
    letter-spacing: 50px;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    letter-spacing: 4px;
  }
}

/* =========================================
   9. RESPONSIVE GLOBAL
   ========================================= */
/* --- FIX HEADER MOBILE --- */
@media (max-width: 768px) {
  /* 1. On nettoie le Header */
  header {
    padding: 15px 20px; /* Moins de padding pour gagner de la place */
    justify-content: space-between; /* Ecarte Logo et Burger au max */
    background: #000 !important; /* Fond noir opaque pour éviter les soucis de transparence */
  }

  /* 2. On réduit le logo qui est trop imposant sur GSM */
  .logo img {
    height: 50px; /* On passe de 80px à 50px */
    width: auto;
  }

  /* 3. CORRECTION CRITIQUE : On cache absolument les liens textes */
  nav {
    display: none; /* CACHÉ par défaut */
    position: absolute;
    top: 100%; /* Se colle juste sous le header */
    left: 0;
    width: 100%;
    background: #000; /* Fond noir pour le menu déroulant */
    flex-direction: column;
    padding: 30px;
    border-bottom: 1px solid #333;
    z-index: 999;
  }

  /* Ce n'est que quand on ajoute la classe .active (via JS) qu'il apparait */
  nav.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  /* On aligne bien les liens du menu déroulant */
  nav ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    width: 100%;
  }

  nav a {
    font-size: 1.2rem; /* Texte plus gros pour les doigts */
  }

  /* 4. On affiche le bouton Burger */
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    margin-right: 10px; /* Petite marge à droite */
  }

  /* Animation d'ouverture du menu */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* =========================================
   RESPONSIVE MOBILE : STYLE NETFLIX APP
   ========================================= */

@media (max-width: 900px) {
  /* 1. CONFIGURATION DE LA SECTION HERO SUR MOBILE */
  #netflix-hero-section {
    position: relative;
    /* On réduit les marges internes */
    padding: 0 0 40px 0;
    /* Hauteur minimum pour que l'image respire */
    min-height: 85vh;
    display: flex;
    align-items: flex-end; /* On pousse le texte vers le bas */
    justify-content: center;
    border-bottom: 1px solid #333;

    /* L'IMAGE EN FOND (IMMERSION TOTALE) */
    background-image: url("images/episode1lucho.jpg");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
  }

  /* 2. LE DÉGRADÉ MAGIQUE (VIGNETTE) */
  /* Cela permet de lire le texte blanc sur l'image colorée */
  #netflix-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dégradé : Transparent en haut -> Noir progressif -> Noir total en bas */
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.4) 40%,
      rgba(0, 0, 0, 0.9) 70%,
      #000 100%
    );
    z-index: 1;
  }

  .netflix-container {
    width: 100%;
    padding: 0 20px;
    z-index: 2; /* Le contenu passe au-dessus du dégradé */
    flex-direction: column;
    gap: 0;
  }

  /* 3. ON CACHE LA CARTE QUI ÉTAIT À DROITE */
  /* Sur mobile, l'image est maintenant en fond, donc on cache la "boite" */
  .netflix-card-wrapper {
    display: none;
  }

  /* 4. STYLISATION DU CONTENU TEXTE */
  .netflix-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-top: 40vh; /* On laisse voir l'image sur la moitié haute de l'écran */
  }

  /* Le logo "N Série Originale" */
  .series-logo {
    justify-content: center;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  }

  /* Le Titre : Immense et serré comme sur l'app */
  .episode-title {
    font-size: 3.5rem; /* Très gros */
    line-height: 0.9;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.9);
  }

  /* Métadonnées (TP, Année...) */
  .meta-data {
    justify-content: center;
    font-size: 0.8rem;
    margin-bottom: 15px;
    opacity: 0.9;
  }

  /* Description : On la cache ou on la réduit sur mobile pour gagner de la place */
  /* Netflix mobile n'affiche souvent pas la description sur l'écran d'accueil */
  .episode-desc {
    display: none; /* Je te conseille de la cacher pour un look plus épuré */
  }

  /* 5. LES BOUTONS : PLEINE LARGEUR */
  .netflix-buttons {
    flex-direction: row; /* Boutons côte à côte */
    gap: 10px;
    margin-bottom: 30px;
    width: 100%;
  }

  .btn-play-hero,
  .btn-info-hero {
    flex: 1; /* Ils prennent chacun 50% de la largeur */
    justify-content: center;
    padding: 12px 10px; /* Plus haut pour le doigt */
    font-size: 1rem;
  }

  .btn-play-hero {
    background: #fff;
    color: #000;
  }

  .btn-info-hero {
    background: rgba(255, 255, 255, 0.2); /* Fond semi-transparent */
    backdrop-filter: blur(10px);
    color: #fff;
  }

  /* 6. LE TEASER LUCHOFLIX */
  .luchoflix-teaser {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }
}

/* --- MODAL INFO (POPUP) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Fond sombre derrière */
  z-index: 20000; /* Très haut, au dessus de tout */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

/* Quand la modale est ouverte */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #181818; /* Gris très foncé Netflix */
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #333;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #000;
  color: #fff;
  border: 1px solid #333;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.close-modal-btn:hover {
  background: #fff;
  color: #000;
}

.modal-content {
  padding: 40px 30px;
  text-align: center;
}

.modal-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.badge-coming {
  background: #e50914;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 10px;
}

.modal-text {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 30px;
}

.modal-text strong {
  color: #fff;
}

.modal-footer {
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-style: italic;
}
