/* =========================
   SAISONS
========================= */
.season {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  border-radius: 12px;
}

/* Couleurs par saison */
.season-1 { background-color: #66cc33; }
.season-2 { background-color: #cc3333; }
.season-3 { background-color: #6633ff; }
.season-4 { background-color: #ffcc00; }
.season-5 { background-color: #66ccff; }
.season-6 { background-color: #66ff99; }
.season-7 { background-color: #999999; }

/* Couleur des titres selon la saison */
.season-1 h2 { color: #fff; }
.season-2 h2 { color: #fff; }
.season-3 h2 { color: #fff; }
.season-4 h2 { color: #000; }
.season-5 h2 { color: #000; }
.season-6 h2 { color: #000; }
.season-7 h2 { color: #fff; }

/* =========================
   EPISODES
========================= */
.episode {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  align-items: flex-start;
  background-color: #fff; /* couleur des cartes épisode */
}

/* IMAGE */
.episode-media {
  width: 200px;
  height: 149px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ddd; /* couleur si image manquante */
}

.episode-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recadrage parfait sur desktop */
  display: block;
}

/* TITRE */
.episode-content h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* PARAGRAPHES */
.episode-content p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* SYNOPSIS PLUS AÉRÉ */
.episode-content .synopsis {
  margin-top: 1rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .episode {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    align-items: center; /* centre l'image et le contenu horizontalement */
  }

  .episode-media {
    width: 200px;   /* conserve la taille d'origine */
    height: 149px;  /* conserve la taille d'origine */
  }

  .episode-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* recadrage comme sur desktop */
  }
}