/* =========================================
   🎬 NETVOD — STYLE FINAL
   ========================================= */

/* ---------- BASE ---------- */
body {
  background-color: #0e0e0e;
  color: #f5f5f5;
  font-family: "Oxanium", sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: #ffffff;
  margin-left: 40px;
  font-weight: 600;
}

/* ---------- NAVBAR ---------- */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: linear-gradient(90deg, #0d0d0d 0%, #1a1a1a 100%);
  padding: 15px 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid #222;
}

.navbar .btn {
  gap: 15px;
}

/* ---------- BOUTONS ---------- */
.btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* ⬅️ au lieu de center */
  gap: 10px;
  margin: 20px 0;
}


.btn a,
.btn button {
  background: #e50914;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

.btn a:hover,
.btn button:hover {
  background: #ff0f1c;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
  transform: translateY(-2px);
}

.btn-right {
  justify-content: flex-end;
}



/* ---------- CATALOGUE ---------- */
.catalogue {
  display: flex;
  /* autoriser le retour à la ligne des éléments lorsqu'il y en a trop */
  flex-wrap: wrap;
  /* laisser le conteneur gérer l'affichage verticalement si nécessaire */
  padding: 30px 50px;
  gap: 25px;
  scroll-behavior: smooth;
  align-content: flex-start;
}

.catalogue::-webkit-scrollbar {
  height: 8px;
}

.catalogue::-webkit-scrollbar-thumb {
  background: #e50914;
  border-radius: 10px;
}

/* ---------- CARTES SÉRIES ---------- */
.serie-compact {
  flex: 0 0 220px;
  background: #181818;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.serie-compact:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.serie-compact img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid #e50914;
}

.serie-compact h3 {
  color: #fff;
  font-size: 16px;
  margin: 12px;
  text-align: center;
}

.serie-compact a {
  text-decoration: none;
  color: inherit;
}

/* ---------- PAGE SÉRIE ---------- */
.serie-long {
  margin: 40px auto;
  background: #181818;
  border-radius: 12px;
  padding: 40px;
  max-width: 1000px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.serie-long h1 {
  font-size: 28px;
  color: #fff;
}

.serie-long h2, .serie-long h3 {
  color: #ccc;
  font-weight: 400;
}

.serie-long img {
  width: 400px;
  border-radius: 12px;
  margin-top: 20px;
}

/* ---------- LISTE DES ÉPISODES ---------- */
.episodes-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 25px 0;
}

.episode-compact {
  flex: 0 0 200px;
  background: #202020;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.episode-compact:hover {
  transform: scale(1.05);
}

.episode-compact img {
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.episode-compact h4 {
  text-align: center;
  color: #fff;
  font-size: 14px;
  margin: 10px;
}

/* ---------- MESSAGES / FORMULAIRES ---------- */
.info-message {
  background: #181818;
  color: #f5f5f5;
  border-radius: 10px;
  padding: 20px;
  margin: 40px auto;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.info-message p {
  margin-bottom: 20px;
}
/* =========================================
   💬 AVIS / COMMENTAIRES
   ========================================= */

.avis-section {
  background: #181818;
  border-radius: 12px;
  padding: 30px 40px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.avis-section h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 25px;
  border-left: 4px solid #e50914;
  padding-left: 10px;
}

/* Chaque avis individuel */
.avis-card {
  background: #202020;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.avis-card:hover {
  transform: scale(1.02);
}

.avis-card .avis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.avis-card .avis-user {
  font-weight: 600;
  color: #e50914;
  font-size: 16px;
}

.avis-card .avis-note {
  font-weight: bold;
  color: #ffb400; /* couleur or pour les étoiles ou la note */
  font-size: 15px;
}

.avis-card .avis-commentaire {
  color: #e0e0e0;
  line-height: 1.5;
  margin-top: 10px;
}

/* Champ de saisie pour ajouter un avis */
.avis-form {
  background: #202020;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.avis-form h3 {
  color: #fff;
  margin-bottom: 15px;
}

.avis-form textarea {
  width: 100%;
  height: 100px;
  background: #121212;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  resize: none;
  transition: border-color 0.3s;
}

.avis-form textarea:focus {
  border-color: #e50914;
  outline: none;
}

.avis-form input[type="submit"] {
  margin-top: 15px;
  background: #e50914;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.avis-form input[type="submit"]:hover {
  background: #ff0f1c;
  transform: translateY(-2px);
}
/* =========================================
   📝 FORMULAIRE D'AVIS (Action_noter)
   ========================================= */

form {
  background: #181818;
  color: #f5f5f5;
  border-radius: 12px;
  padding: 25px 30px;
  margin: 40px auto;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #ffffff;
}

form input[type="number"],
form input[type="text"] {
  background: #121212;
  border: 1px solid #333;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

form input[type="number"]:focus,
form input[type="text"]:focus {
  border-color: #e50914;
  outline: none;
}

form button {
  background: #e50914;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-end;
}

form button:hover {
  background: #ff0f1c;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}

form + p {
  text-align: center;
  color: #ff5555;
  font-weight: 600;
  margin-top: 15px;
}
/* =========================================
   🎥 PAGE ÉPISODE (DisplayEpisodeAction)
   ========================================= */

.episode-page {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px;
  background: #181818;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  color: #f5f5f5;
  font-family: "Oxanium", sans-serif;
}

.episode-page h1 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #ffffff;
}

.episode-page h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ccc;
}

.episode-page video {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.episode-page p {
  line-height: 1.6;
  font-size: 16px;
  color: #ddd;
}

.episode-page p strong {
  color: #e50914;
}

/* ---------- Boutons retour ---------- */
.episode-actions {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 25px;
}

.episode-actions a {
  background: #e50914;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: 0.25s;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

.episode-actions a:hover {
  background: #ff0f1c;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
  transform: translateY(-2px);
}
/* =========================================
   🔑 RÉINITIALISATION DE MOT DE PASSE
   ========================================= */

.reset-message {
  background: #181818;
  color: #f5f5f5;
  border-radius: 12px;
  padding: 25px 30px;
  margin: 40px auto;
  max-width: 700px;
  text-align: center;
  font-family: "Oxanium", sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.reset-message p {
  margin: 15px 0;
  font-size: 16px;
  color: #ccc;
}

.reset-message a {
  display: inline-block;
  background: #e50914;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

.reset-message a:hover {
  background: #ff0f1c;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
  transform: translateY(-2px);
}

/* ---------- SEARCH FORM (discreet inline) ---------- */
.search-form {
  display: flex;
  gap: 8px;
  margin: 12px 40px;
}

.search-form input[type="text"],
.search-form select {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  padding: 6px 8px;
  font-size: 13px;
  min-height: 50px;
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.search-form input[type="text"] {
  flex: 1 1 20px;
  max-width: 150px;
  font-size: 16px;
}

.search-form select {
  flex: 0 0 15px;
  background: rgba(255,255,255,0.02);
  color: #fff;
  padding-right: 24px;
}

.search-form select option {
  background: #141414;
  color: #fff;
}

.search-form input[type="text"]::placeholder {
  color: rgba(230,230,230,0.5);
}

.search-form input[type="text"]:focus,
.search-form select:focus {
  outline: none;
  border-color: rgba(229,9,20,0.9);
  box-shadow: 0 2px 8px rgba(229,9,20,0.06);
  background: rgba(255,255,255,0.03);
}

.search-form input[type="submit"] {
  background: transparent;
  color: #e50914;
  border: 1px solid rgba(229,9,20,0.9);
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}

.search-form input[type="submit"]:hover {
  background: rgba(229,9,20,0.9);
  color: #fff;
}

@media (max-width: 700px) {
  .search-form { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-form input[type="text"], .search-form select { width: 100%; }
  .search-form input[type="submit"] { align-self: flex-end; }
}
