* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* ================== VIDÉO EN ARRIÈRE-PLAN ================== */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

.video-background video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.7);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* ================== HEADER ================== */
header {
  background-image: url("../images/marvel.jpg");
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

header h1 {
  color: white;
  text-align: center;
  padding: 30px;
  margin: 0;
  font-family: 'Audiowide', cursive;
  font-size: 2rem;
  letter-spacing: 1rem;
}

.encadrer {
  padding: 7px;
  color: white;
  font-family: 'Audiowide', cursive;
}

/* ================== ICÔNE UTILISATEUR ================== */
.user-icon-container {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 20;
}

.user-icon-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.user-icon-link:hover {
  background: rgba(213, 2, 65, 0.3);
  border-color: #D50241;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 2, 65, 0.5);
}

.user-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #D50241, #ff1744);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.3s ease;
}

.user-icon-link:hover .user-icon {
  transform: rotate(360deg);
}

/* ================== NAVIGATION ================== */
.menu {
  height: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-top: #D50241 6px solid;
  border-bottom: #D50241 6px solid;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

ul {
  display: flex;
  justify-content: center;
  padding: 10px;
  gap: 70px;
  list-style: none;
}

a {
  text-decoration: none;
  color: black;
  font-family: 'Space Mono', sans-serif;
  transition: all 0.3s ease;
}

.livre:hover,
#musique:hover,
#films:hover,
#jeux:hover {
  border-bottom: 2px solid #0890E4;
}

/* ================== BARRE DE RECHERCHE ================== */
.searchBox {
  margin: 40px auto;
  display: flex;
  max-width: 660px;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 30px;
  position: relative;
  padding-right: 50px;
}

.searchInput {
  border: none;
  background: none;
  outline: none;
  color: black;
  font-size: 15px;
  padding: 14px 26px;
  flex: 1;
}

.searchButton {
  color: white;
  position: absolute;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(90deg, #D50241 0%, black 100%);
  border: 0;
  cursor: pointer;
  transition: all 300ms ease;
}

.searchButton:hover {
  background: linear-gradient(90deg, black 0%, #D50241 100%);
  transform: scale(1.1);
}

/* ================== CONTENU ================== */
.content {
  text-align: center;
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.content h1 {
  color: white;
  margin-bottom: 20px;
  font-size: 2.2em;
  font-family: 'Audiowide', cursive;
}

.content h2 {
  color: #D50241;
  margin: 30px 0;
  font-size: 1.5em;
  font-family: 'Audiowide', cursive;
}

.content p {
  color: white;
  line-height: 1.6;
  margin: 15px 0;
  font-size: 1.1em;
  font-family: 'Space Mono', sans-serif;
}

/* ================== CARTES FILMS ================== */
.films {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 40px;
}

.box-1,
.box-2,
.box-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 280px;
  max-width: 280px;
}

.box-1 h1,
.box-2 h1,
.box-3 h1 {
  color: white;
  font-family: 'Audiowide', cursive;
  font-size: 1.5em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.box-1 img,
.box-2 img,
.box-3 img {
  width: 280px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-1 img:hover,
.box-2 img:hover,
.box-3 img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.films button {
  background: linear-gradient(45deg, #D50241, #ff1744);
  border: 2px solid white;
  border-radius: 25px;
  margin-top: 40px;
  height: 45px;
  width: 150px;
  color: white;
  font-family: 'Space Mono', sans-serif;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.films button:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(213, 2, 65, 0.4);
  background: linear-gradient(45deg, #ff1744, #D50241);
}

/* ================== SLIDER ================== */
.banner-slider-section {
  margin: 80px auto 50px;
  max-width: 1200px;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.banner-slider-section h2 {
  color: #D50241;
  font-family: 'Audiowide', cursive;
  font-size: 1.8em;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 450px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.banner-slide:hover img {
  filter: brightness(1);
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 10;
}

.banner-slider:hover .banner-nav {
  opacity: 0.8;
}

.banner-nav:hover {
  opacity: 1;
  background: rgba(213, 2, 65, 0.3);
  border-color: rgba(213, 2, 65, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

.banner-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.active {
  background: #D50241;
  box-shadow: 0 0 10px rgba(213, 2, 65, 0.6);
  transform: scale(1.2);
}

.banner-dot:hover {
  background: rgba(213, 2, 65, 0.7);
  transform: scale(1.1);
}

/* ================== ABONNEMENT ================== */
.abonnement {
  margin-top: 50px;
}

.abonnement h2 {
  text-align: center;
  color: #ff1744;
  font-family: 'Audiowide', cursive;
  padding: 10px;
}

.forfaits {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.forfait-card {
  flex: 1;
  background-color: white;
  opacity: 0.9;
  border: 2px solid #ff1744;
  border-radius: 7%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forfait-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 23, 68, 0.15);
}

.forfait-card h2 {
  font-family: 'Audiowide', cursive;
  color: #ff1744;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.forfait-card .features {
  flex-grow: 1;
}

.forfait-card p {
  padding: 10px 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.9em;
  line-height: 1.5;
  color: #333;
  margin: 8px 0;
}

.forfait-card .price {
  font-family: 'Space Mono', monospace;
  color: #ff1744;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  margin: 20px 0;
}

.forfait-card button {
  background: linear-gradient(45deg, #D50241, #ff1744);
  border: none;
  border-radius: 25px;
  height: 45px;
  width: 150px;
  color: white;
  font-family: 'Space Mono', monospace;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.9;
  align-self: center;
  margin-top: auto;
}

.forfait-card button:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(213, 2, 65, 0.4);
  background: linear-gradient(45deg, #ff1744, #D50241);
}

.forfait-premium {
  position: relative;
  border-color: #D50241;
  box-shadow: 0 5px 20px rgba(213, 2, 65, 0.2);
}

.forfait-premium::before {
  content: "POPULAIRE";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, #D50241, #ff1744);
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7em;
  font-weight: bold;
}

/* ================== FOOTER ================== */
footer {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 50px;
}

.footer-container {
  position: relative;
  width: 100%;
  height: 120px;
}

.foot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 15px;
}

.footer-text h2 {
  color: #ff1744;
  font-family: 'Audiowide', cursive;
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.footer-text p {
  font-family: 'Space Mono', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 600px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.footer-text p.footer-links {
  margin-top: 10px;
  font-size: 0.85rem;
  font-family: 'Space Mono', sans-serif;
}

.footer-text .footer-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0 8px;
}

.footer-text .footer-links a:hover {
  color: #D50241;
  text-shadow: 0 0 10px rgba(213, 2, 65, 0.8);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  .user-icon-container {
    right: 15px;
    top: 20px;
  }
  
  .user-icon-link span {
    display: none;
  }
  
  .user-icon-link {
    padding: 10px;
    border-radius: 50%;
  }

  header h1 {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    padding: 20px 60px 20px 20px;
  }

  ul {
    gap: 20px;
    flex-wrap: wrap;
  }

  .films {
    flex-direction: column;
    align-items: center;
  }

  .forfaits {
    flex-direction: column;
  }

    .footer-text .footer-links {
    font-size: 0.75rem;
  }
}