/* ===============================
   BASE
================================ */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: #eee;
  background: linear-gradient(135deg, #111, #222);
}

/* ===============================
   HEADER (glassmorphism stable)
================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;

  background-color: rgba(30, 30, 30, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 55px;
}

/* ===============================
   MENU (toujours transparent)
================================ */
header nav {
  background-color: rgba(20, 20, 20, 0.35); /* TRANSPARENT DÈS LE TOP */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  padding: 8px 18px;
  border-radius: 10px;

  position: relative;
  z-index: 101;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.menu a {
  color: #6cb6ff;
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover {
  text-decoration: underline;
}

/* ===============================
   HERO (visible dès le top)
================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  background: url("images/hero-bg.png") center / cover no-repeat;
  color: white;
}

/* Overlay sombre */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  background: #1e90ff;
  color: white;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
}

.btn:hover {
  background: #005bb5;
}

/* ===============================
   SECTIONS
================================ */
section {
  padding: 60px 20px;
}

h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* ===============================
   GRILLES & CARTES
================================ */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  width: 200px;
  background: rgba(35,35,35,0.85);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card a {
  color: #63b3ed;
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

.card a {
  display: block;
  height: 100%;
  padding: 20px;
}


/* ===============================
   FICHE FILM
================================ */
.film-info h2 {
  margin-bottom: 10px;
}

.film-info h3 {
  margin-bottom: 10px;
}

.film-info ul {
  margin-top: 2px;
}

.film-info a {
  color: #63b3ed;
  font-weight: bold;
}

.film-info p {
  margin-bottom: 120px;
}

.film-anecdote p {
  margin-bottom: 20px;
}

/* ===== LECTEUR VIDEO ===== */
.film-player {
  text-align: center;
  margin: 60px auto;
  padding: 0 20px;
}

/* Conteneur responsive */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1100px; /* largeur max du lecteur */
  margin: 30px auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Iframe plein écran dans le conteneur */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* ===============================
   FICHE ACTEUR / RÉALISATEUR
================================ */
.acteur-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.acteur-photo {
  width: 200px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.acteur-dates {
  text-align: center;
}

.acteur-info a {
  color: #63b3ed;
  font-weight: bold;
}

/* ===============================
   FOOTER
================================ */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(20,20,20,0.95);
}

/* ===== TITRE DU FILM ===== */
.film-title {
  text-align: center;
  margin: 50px 20px 30px;
}

.film-title h1 {
  font-size: 2.8rem;
  margin: 0;
  color: #ffffff;
}

/* ===== LAYOUT FILM (texte + affiche) ===== */
.film-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 20px;
}

/* Affiche */
.film-poster img {
  width: 260px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Responsive (mobile) */
@media (max-width: 900px) {
  .film-layout {
    flex-direction: column;
    align-items: center;
  }

  .film-poster img {
    width: 220px;
  }
}

/* ===== LIEN RETOUR AU CATALOGUE ===== */
.back-link {
  text-align: center;
  margin: 50px 0;
}

.back-link a {
  color: #63b3ed; /* même ton que acteurs/réalisateurs */
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Texte secondaire du titre (italique) */
header h1 em {
  font-size: 0.55em;   /* réduit la taille */
  font-style: italic;
  font-weight: normal;
  opacity: 0.8;       /* plus discret */
}


/* Navigation film overlay corrigée */
.film-nav {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 200;
}

/* Flèche gauche */
.film-nav .prev-film {
  position: fixed;
  left: 20px;        /* toujours visible, pas trop à gauche */
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  color: rgba(99,179,237,0.8);
  font-size: 3rem;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 15px;
  background: rgba(30,30,30,0.35);
  border-radius: 50%;
  transition: all 0.3s;
}

/* Flèche droite */
.film-nav .next-film {
  position: fixed;
  right: 20px;       /* toujours visible, pas trop à droite */
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  color: rgba(99,179,237,0.8);
  font-size: 3rem;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 15px;
  background: rgba(30,30,30,0.35);
  border-radius: 50%;
  transition: all 0.3s;
}

/* Hover commun */
.film-nav a:hover {
  color: #ffffff;
  background: rgba(30,30,30,0.7);
  transform: scale(1.2);
}

/* ===== BARRE DE RECHERCHE ===== */
.search-section {
  text-align: center;
  margin: 40px 0 20px;
}

#searchInput {
  width: 60%;
  max-width: 500px;
  padding: 14px 14px;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  backdrop-filter: blur(6px);
}

#searchInput::placeholder {
  color: #aaa;
}

#noResults {
  font-style: italic;
  font-size: 1.1rem;
  color: #aaa;
}
/* MENU DÉROULANT CATÉGORIES */
.menu li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  padding: 10px 0;
  min-width: 200px;
  z-index: 1000;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #222;
}

/* Affichage au survol */
.dropdown:hover .dropdown-menu {
  display: block;
}

.categories-films .card img {
  width: 100%;
  height: 250px;          /* hauteur fixe */
  object-fit: cover;      /* coupe l'image sans la déformer */
  border-radius: 6px;
}

.categories-films .grid {
   display: flex;
  flex-wrap: wrap;
  justify-content: center; /*CENTRAGE AUTOMATIQUE */
  gap: 30px;
}

.categories-films {
  padding: 60px 20px;
}

.category-nav a {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4);
  padding: 12px 16px;
  border-radius: 50%;
  z-index: 1000;
  transition: background 0.3s, color 0.3s;
}

.category-nav a:hover {
  background: rgba(0,0,0,0.7);
  color: #fff;
}

.prev-category {
  left: 20px;
}

.next-category {
  right: 20px;
}



