/* ---- GLOBAL ---- */
body {
  padding-top: 120px; /* desktop */
  font-family: 'Quicksand', sans-serif;
  background: #faf6f0;
  color: #2c2c2c;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  body {
    padding-top: 100px; /* tablette */
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 90px; /* smartphone */
  }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---- TITRES ---- */
.card-title { 
  font-size: 1.5rem;     /* ~25px */
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif; /* Police élégante cinéma */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h5 { 
  font-size: 1.2rem;     /* ~19px */
  font-weight: 500;
  margin: 0.5rem 0;
}

.card h6 {
  font-size: 1rem;       /* ~16px */
  font-weight: 400;
  color: #555;
  margin: 0.3rem 0 1rem;
}

/* ---- PARAGRAPHES ---- */
.card p {
  font-size: 1.05rem;    /* ~17px */
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 1rem;
}

/* ---- PETITES INFOS ---- */
.card small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* ---- TAGS ---- */
.tags {
  margin: 0.8rem 0;
}
.tags span {
  display: inline-block;
  background: #f5e1b9;
  color: #2c2c2c;
  padding: 0.2rem 0.6rem;
  margin: 0.2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}
.tags span:hover {
  background: #b22222;
  color: #fff;
}

/* ---- BARRE DE RECHERCHE ET FILTRES ---- */
.filter-bar {
  max-width: 900px;
  margin: 2rem auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.filter-bar input,
.filter-bar select {
  padding: .6rem 1rem;
  border: 2px solid #b22222;
  border-radius: 8px;
  font-size: 1rem;
  flex: 1;
  max-width: 300px;
}

/* ---- CARDS ---- */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 2rem auto;
  padding: 1.5rem;
  max-width: 900px;
}

.card .badge {
  background: #b22222;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- NOTES (ÉTOILES) ---- */
.rating {
  font-size: 1rem;
  color: #28a745; /* vert comme tes étoiles */
}

/* ---- BLOC INTRO LABEL (Résumé :, Critique :) ---- */
.intro-label {
  color: #b22222;        /* rouge cinéma */
  font-weight: 600;      /* marqué mais pas gras complet */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

/* ---- IFRAME (bande-annonce) ---- */
iframe {
  width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
  border: none;
}

/* ---- RESPONSIVE ---- */
@media (min-width: 768px) {
  .card-title { font-size: 1.8rem; }
  .card p { font-size: 1.1rem; }
}

@media (min-width: 1200px) {
  .card-title { font-size: 2rem; }
  .card p { font-size: 1.15rem; }
}

/* -------------------- NAVBAR -------------------- */
.navbar-cinema {
  background: linear-gradient(90deg, #000 0%, #2b0000 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
  border-bottom: 4px double #b22222;
  padding: 0.8rem 1.5rem;
  z-index: 1030;
  font-family: 'Poppins', sans-serif; /* 👉 cohérence avec tes autres CSS */
}

/* Logo */
.navbar-brand img {
  max-height: 110px;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 80px; /* tablette */
  }
}

@media (max-width: 480px) {
  .navbar-brand img {
    max-height: 60px; /* smartphone */
  }
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 14px; /* 👉 réduit */
  letter-spacing: 1px;
  margin: 0 12px;
  color: #f8f8f8 !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #ffcc00 !important;
  text-shadow: 0 0 8px rgba(255,204,0,0.6);
}

/* Centrer les items de la navbar en mode mobile */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;        /* centre le texte */
    margin: 0 auto;            /* centre le bloc */
  }
  .navbar-nav .nav-item {
    display: block;            /* chaque item prend toute la largeur */
  }
}

/* -------------------- BOUTON RETOUR HAUT -------------------- */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: radial-gradient(circle at 30% 30%, #b22222, #7a0e0e);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  display: none;
  transition: transform 0.2s ease, background 0.3s ease;
}
#backToTop:hover {
  background: radial-gradient(circle at 30% 30%, #ff4444, #a31212);
  transform: scale(1.1);
}