/* ============================
   GROWING PAINS – THE MOVIE
   ============================ */

.movie-growing-pains {
  max-width: 1000px;
  margin: 40px auto;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #2b2b2b;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

/* ============================
   HEADER
   ============================ */
.movie-header {
  display: flex;
  gap: 25px;
  padding: 25px;
  background: linear-gradient(135deg, #3b6ea5, #6fa3d9);
  color: #fff;
  align-items: flex-start;
}

/* IMAGE DU HEADER */
.movie-header .photo-block img {
  width: 100%;        /* responsive */
  max-width: 400px;   /* taille maximale de l'image */
  height: auto;       /* garde les proportions */
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  margin-bottom: 15px; /* espace sous l'image */
  display: block;
}

/* TITRE DU FILM */
.movie-title h2 {
  margin: 0;
  font-size: 2em;
  line-height: 1.2;
}

.movie-title .year {
  font-weight: normal;
  opacity: 0.85;
}

/* MÉTA-INFOS */
.movie-meta {
  margin-top: 15px;
  font-size: 0.95em;
  line-height: 1.6;
}

.movie-meta p {
  margin: 5px 0;
}

/* ============================
   SECTIONS
   ============================ */
.movie-section {
  padding: 25px;
  border-top: 1px solid #ddd;
}

.movie-section h2 {
  margin-top: 0;
  color: #3b6ea5;
  border-bottom: 2px solid #3b6ea5;
  padding-bottom: 6px;
  font-size: 1.4em;
}

/* SYNOPSIS */
.movie-synopsis {
  font-size: 1em;
  line-height: 1.7;
}

/* CAST */
.cast-list-movie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 30px;
}

.cast-list-movie li {
  list-style: none;
  padding: 6px 0;
  border-bottom: 1px dotted #ccc;
}

.cast-actor-movie {
  font-weight: bold;
  font-size: 0.95em;
}

.cast-role-movie {
  color: #555;
  font-style: italic;
  font-size: 0.85em;
}

/* FOOTER INFO */
.movie-footer {
  background: #eee;
  padding: 15px 25px;
  font-size: 0.9em;
  color: #555;
}

/* ============================
   RESPONSIVE
   ============================ */

/* TABLETTE ET MOBILE */
@media (max-width: 780px) {
  .movie-header {
    flex-direction: column;  /* image au-dessus, texte en dessous */
    align-items: center;     /* centré */
    text-align: center;
  }

  .movie-header .photo-block img {
    max-width: 70%; /* largeur responsive */
    margin-bottom: 20px;
  }

  .movie-title h2 {
    font-size: 1.5em;
  }

  .movie-meta p {
    font-size: 0.9em;
  }
}

/* MOBILE PETIT ÉCRAN */
@media (max-width: 576px) {
  .movie-header {
    padding: 15px;
  }

  .movie-header .photo-block img {
    max-width: 90%; /* prend presque toute la largeur */
    margin-bottom: 20px;
  }

  .movie-title h2 {
    font-size: 1.3em;
  }

  .movie-meta p {
    font-size: 0.85em;
  }
}