/*
 * Styles pour le site de promotion d'un abonnement cinéma en ligne.
 *
 * La palette de couleurs s'inspire des plateformes de streaming
 * populaires : fond sombre et accent rouge vif pour attirer l'œil.
 * Les textes clairs contrastent fortement sur le fond noir pour
 * assurer une bonne lisibilité. Le layout est responsive et s'adapte
 * aux différents écrans.
 */

:root {
  --primary: #141414;      /* fond principal très sombre */
  --secondary: #1f1f1f;    /* fond secondaire plus clair */
  --accent: #e50914;       /* rouge vif pour les actions et éléments clés */
  --accent-hover: #f6121d; /* couleur de survol pour les boutons */
  --text-light: #ffffff;   /* blanc pour les titres et texte principal */
  --text-muted: #b3b3b3;   /* gris clair pour les textes secondaires */
}

/* Réinitialisation basique */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--primary);
  color: var(--text-light);
  line-height: 1.6;
}

/* Barre de navigation en haut de page */
header {
  background-color: var(--primary);
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav .logo {
  font-size: 26px;
  font-weight: bold;
  color: var(--accent);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: var(--accent);
}

/* Section héroïque */
.hero {
  padding: 100px 20px;
  background: radial-gradient(circle at top left, #330000, var(--primary));
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

/* Conteneur principal pour les sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--text-light);
  text-align: center;
}

/* Grille pour plans / cartes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--secondary);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-top: 0;
  font-size: 20px;
  color: var(--text-light);
}

.card-content p {
  flex-grow: 1;
  margin: 10px 0 20px;
  color: var(--text-muted);
}

.price-tag {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
}

/* Carrousel */
.carousel {
  position: relative;
  max-width: 100%;
  margin-bottom: 40px;
}

.carousel img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.carousel button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel .prev {
  left: 15px;
}

.carousel .next {
  right: 15px;
}

/* Avantages et FAQ listes */
.advantages-list,
.faq-list,
.testimonials {
  margin-top: 20px;
}

.advantages-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.advantages-item img {
  width: 60px;
  height: 60px;
  margin-right: 20px;
  object-fit: cover;
  border-radius: 8px;
}

.advantages-item h4 {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 20px;
}

.advantages-item p {
  margin: 0;
  color: var(--text-muted);
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h4 {
  margin-bottom: 6px;
  font-size: 18px;
  color: var(--accent);
}

.faq-item p {
  color: var(--text-muted);
}

.testimonial {
  background-color: var(--secondary);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.testimonial p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.testimonial .author {
  font-weight: bold;
  color: var(--accent);
}

/* Pied de page */
footer {
  background-color: #0d0d0d;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 18px;
  }
  .carousel img {
    height: 250px;
  }
}