/*
 * Shinyflix – feuille de style principale
 *
 * Cette feuille de style définit un design sombre et moderne avec
 * des cartes arrondies, des effets de glassmorphism et une
 * touche de jaune pour rappeler la charte de Shinyflix. Les
 * carrousels se déplacent horizontalement pour mettre en avant
 * les nouveautés et le top 10. Les formulaires sont conçus avec
 * des bords arrondis et des couleurs harmonieuses.
 */

/* Variables globales pour les couleurs et les espacements */
:root {
  --primary-color: #f5c546;       /* jaune doux pour les accents */
  --bg-color: #0d1117;            /* fond sombre */
  --card-bg: rgba(255, 255, 255, 0.08); /* fond semi‑transparent pour l'effet glass */
  --card-blur: 10px;              /* intensité du flou de fond */
  --text-color: #f0f0f0;          /* texte clair */
  --muted-color: #a0a0a0;         /* texte secondaire */
}

/*
 * Styles supplémentaires pour le tableau de bord administrateur
 */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 1rem;
}

.stat-card {
  flex: 1 1 200px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #fff;
}

.stat-card p {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0;
}

/* Modale de confirmation pour les demandes d’inscription */
.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1000;
}
.confirmation-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.confirmation-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  color: #fff;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.confirmation-content .checkmark {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  animation: pop 0.6s ease;
}
@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Réinitialisation de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Barre de navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar a {
  color: var(--text-color);
  text-decoration: none;
  margin-right: 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--primary-color);
}

.navbar .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Section héros */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #0d1117 0%, #151c28 100%);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  color: var(--muted-color);
}

.hero .cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #000;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .cta:hover {
  background-color: #ffdb70;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 3rem 2rem;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Carrousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.card {
  min-width: 180px;
  max-width: 180px;
  background: var(--card-bg);
  border-radius: 15px;
  backdrop-filter: blur(var(--card-blur));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card .poster {
  width: 100%;
  height: 250px;
  background: #2c3e50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-color);
  font-size: 0.9rem;
}

.card-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-info h3 {
  font-size: 1rem;
  color: var(--text-color);
}

.card-info p {
  font-size: 0.8rem;
  color: var(--muted-color);
}

/* Formulaire générique */
.form-container {
  max-width: 420px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-blur));
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.form-container h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted-color);
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-size: 1rem;
}

.form-group input::placeholder {
  color: var(--muted-color);
}

.form-group input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.7rem;
  background-color: var(--primary-color);
  color: #000;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #ffdb70;
}

/* Messages */
.message {
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted-color);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}