body {
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: rgb(8, 8, 8);
    margin: 0;
}
header {
    text-align: center;
    padding: 5px;
    background-color: rgb(63, 62, 62);
    border-radius: 6px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#menu-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.home-btn {
  position: absolute;
  left: 15px;
}

.home-btn img {
  width: 64px;
  height: 64px; 
  transition: transform 0.2s ease;
}


.home-btn img:hover {
  transform: scale(1.1);
}

#btn {
    display: inline-block;       /* pour pouvoir mettre du padding */
  padding: 10px 20px;
  background-color: skyblue;   /* couleur de fond */
  color: #111;                 /* couleur du texte */
  border-radius: 8px;          /* coins arrondis */
  text-decoration: none;       /* enlève le soulignement */
  font-weight: bold;
}

#biblio {
      padding: 20px;
    text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 17px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery img {
  display: block;   /* très important pour éviter des comportements bizarres */
  width: 100%;      /* elles remplissent leur “case” */
  height: auto;     /* pas de déformation, pas de recadrage */
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease;
}

.gallery img:hover {
    transform: scale(1.08);
}



.review-card {
  display: flex;                  /* met texte et image sur la même ligne */
  gap: 20px;                      /* espace entre texte et image */
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;               /* largeur max de la carte */
  border-radius: 10px;
  background-color: #1a1a1a;      /* fond sombre de la carte */
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12); /* halo léger sur fond noir */
}

/* Bloc texte à gauche */
.review-text {
  flex: 2;                        /* prend plus de place que l'image */
  border: 1px solid #444;         /* encadré */
  border-radius: 8px;
  padding: 15px;
}

/* Titre + meta + texte */
.review-text h2 {
  margin-top: 0;
  margin-bottom: 5px;
}

.review-meta {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #b0b0b0;
}

/* étoiles */
.review-rating {
  font-size: 1.2rem;
  color: #f8d210;                 /* jaune “note” */
  margin-bottom: 10px;
}

/* texte de la review */
.review-body {
  margin: 0;
  line-height: 1.6;
}

/* Bloc poster à droite */
.review-poster {
  flex: 1;                        /* moins large que le texte */
  display: flex;
  align-items: center;            /* centre l’image verticalement */
  justify-content: center;
}

.review-poster img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); /* halo blanc/gris */
}

@media (max-width: 700px) {
  .review-card {
    flex-direction: column;   /* texte au-dessus, image en dessous */
  }

  .review-poster {
    order: -1;                /* ou l’inverse : poster au-dessus du texte */
  }
}

.back-btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(90deg, #555, #333);
  border: 1px solid #888;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  position: absolute;
  left: 100px;
}

.back-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.intro-card {
  background-color: #151515;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
  text-align: left;
  color: #dcdcdc;
}

.intro-card h2 {
  text-align: center;
  margin-top: 0;
  color: white;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.intro-card p {
  line-height: 1.6;
  margin-top: 10px;
}


/* === BOUTON === */
.btn-container {
  text-align: center;
  margin-top: 30px;
}

.primary-btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: skyblue;
  color: #111;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.primary-btn:hover {
  background-color: deepskyblue;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

/* ======================
   SECTION RÉALISATEURS
====================== */
#directors {
  padding: 40px;
  color: white;
  text-align: center;
}

.directors-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.director-card {
  display: block;
  background-color: rgb(25, 25, 25);
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.director-card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.director-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;   /* garde le cadrage portrait */
  border-radius: 8px;
  margin-bottom: 8px;
}

.director-name {
  font-size: 1rem;
  font-weight: bold;
  color: #f2f2f2;
  margin: 0;
  text-align: center;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.director-card:hover .director-name {
  color: #7dff66;  /* met en valeur le nom au survol */
}



/* -------------------
section profil real
-------------------*/
.director-profile {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #151515;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 20px;
}

.director-photo-block {
  text-align: center;
}

.director-photo {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.director-dates {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ccc;
}

.director-text h2 {
  margin-top: 0;
}

.director-bio {
  line-height: 1.6;
  margin-bottom: 15px;
}

.director-films {
  list-style: none;
  padding-left: 0;
}

.director-films li {
  margin-bottom: 5px;
}
    
@media (max-width: 700px) {
  .director-profile {
    grid-template-columns: 1fr;
  }
}

/*-------------------------------
      generator
------------------------------*/



#generator {
  margin: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/*anim*/
#film-card {
  text-align: center;
  max-width: 400px;
}

#film-poster {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#film-title {
  margin-top: 10px;
  font-size: 1.4em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#film-desc {
  font-size: 0.9em;
  color: #ccc;
  transition: opacity 0.25s ease;
}

.fade {
  opacity: 0;
  transform: scale(0.95);
}

#generate-btn {
  margin-top: 25px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #1e90ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.3s;
}

#generate-btn:hover {
  background-color: #3aa2ff;
}

#generate-btn:active {
  transform: scale(0.95);
}

/* ------------------------------------
catalogue
------------------------------------*/

#film-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 40px;
  justify-items: center;
}

.film-card {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-card img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.film-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.film-card h3 {
  margin-top: 10px;
  font-size: 1rem;
  color: #ddd;
}
