/* --- Style pour la grille (conserve votre existant) --- */
.grid-container.mode-3 {
  display: grid;
  margin: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 992px;
}

.grid-container.mode-2 {
  display: grid;
  margin: auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 992px;
}

.grid-container.mode-1 {
  display: grid;
  margin: auto;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  max-width: 692px;
}

.grid-item {
  text-align: center;
}

/* --- Style pour les miniatures cliquables --- */
.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* Ratio 16:9 */
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover {
  transform: scale(1.05);
}

.video-thumbnail:hover .play-button-overlay {
  opacity: 1;
}

/* --- Style pour la popup (modale) --- */
.video-modal {
  display: none;
  /* Caché par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.video-player-container {
  position: relative;
  padding-top: 56.25%;
  /* Ratio 16:9 */
  height: 0;
}

.video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.person-info {
  text-align: center;
  padding-top: 1rem;
}

.person-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0.5rem 0 0 0;
  letter-spacing: -1px;
  background-color: #bf953f;
  background-image: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-decoration-color: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
}

.person-job,
.person-desc {
  font-size: 14px;
  color: #cccccc;
  margin: 0;
  font-weight: 300;
}

.person-desc {
  margin-top: 10px;
}

#episode2 {
  margin-bottom: 50px;
  margin-top: 50px;
}

/* --- Responsive pour mobile --- */
@media (max-width: 768px) {
  .grid-container.mode-3 {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
    /* 2 colonnes sur tablette */
  }
}

@media (max-width: 480px) {
  .grid-container.mode-3,
  .grid-container.mode-2 {
    max-width: 100%;
    grid-template-columns: 1fr;
    /* 1 colonne sur mobile */
  }
}
