/* ================================
   CAST LIST - GROWING PAINS
   ================================ */

/* Import Poppins depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.cast-page {
  font-family: 'Poppins', sans-serif;
  color: #f0f0f0; /* texte clair général */
  max-width: 1150px;
  margin: 40px auto; /* espace autour de la page */
  padding: 30px 20px;
  background: #2c2c2c; /* gris foncé */
  border-radius: 20px; /* arrondi global */
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ================================
   HEADER
   ================================ */

.cast-header {
  text-align: center;
  margin-bottom: 25px;
}

.cast-header h1 {
  font-size: 3em;
  font-weight: 700;
  color: #ffffff; /* titre en blanc */
  margin: 0;
}

/* ================================
   SECTIONS
   ================================ */

.cast-section {
  margin-bottom: 40px;
}

.cast-section h2 {
  font-size: 1.8em;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* ================================
   CAST GRID
   ================================ */

.cast-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; /* espacement compact */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ================================
   CAST CARD
   ================================ */

.cast-list li {
  display: grid;
  grid-template-columns: 1fr;
  background: #ffffff; /* carte blanche */
  border: 1px solid #ddd;
  border-radius: 12px; /* arrondi des cartes */
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  color: #2b2b2b;
  font-weight: 400;
}

/* ================================
   IMAGES — resserrées
   ================================ */

.cast-img,
.cast-img-alt {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: none;
  border-radius: 8px;
  display: block;
  margin-bottom: 2px; /* réduit l’espace sous chaque image */
}

/* espace ultra réduit entre image principale et alternative */
.cast-img + .cast-img-alt {
  margin-top: 1px; /* image secondaire très proche */
  margin-bottom: 4px; /* espace après dernière image */
}

/* ================================
   TITRES ACTEURS
   ================================ */

.cast-actor {
  font-size: 1.6em;
  font-weight: 700;
  color: #000000; /* sur carte blanche */
  text-align: center;
  margin-bottom: 4px;
}

.cast-role {
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
  text-align: center;
}

/* ================================
   BIO & META
   ================================ */

.cast-bio {
  margin-top: 12px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #3a3a3a;
  text-align: left;
}

.cast-meta {
  margin-top: 10px;
  font-size: 0.95em;
  color: #555555;
  padding-left: 15px;
  text-align: left;
  list-style: disc;
}

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

@media (max-width: 780px) {
  .cast-list {
    grid-template-columns: 1fr;
  }

  .cast-header h1 {
    font-size: 2.6em;
  }

  .cast-img,
  .cast-img-alt {
    max-height: 200px;
  }

  .cast-actor {
    font-size: 1.4em;
  }

  .cast-role {
    font-size: 1.1em;
  }
}

@media (max-width: 576px) {
  .cast-page {
    padding: 15px 10px;
  }

  .cast-img,
  .cast-img-alt {
    max-height: 180px;
  }

  .cast-actor {
    font-size: 1.3em;
  }

  .cast-role {
    font-size: 1em;
  }
}
