/* ------------------ MEDIA QUERIES ------------------ */
@media (min-width: 576px) {}
@media (min-width: 768px) {}
@media (min-width: 992px) {}
@media (min-width: 1200px) {}

/* ------------------ TYPO ------------------ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&family=Palanquin&family=Oxygen&family=Poppins:wght@400;600&display=swap');

p {
  font-family: 'Palanquin', sans-serif;
}

p.special_letter:first-letter {
  font-size: x-large;
  font-weight: bold;
  color: #ff0000;
}

/* ------------------ STRUCTURE ------------------ */
.container {
  padding-top: 10px;
}

body {
  padding-top: 20px; /* espace sous la navbar fixe */
}

/* ------------------ IMAGES ------------------ */
img {
  height: 300px;
}

.site-logo {
  max-width: 650px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ------------------ NAVBAR CINÃ‰MA ------------------ */
.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 */
}

.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);
}

/* Liens navigation (Poppins + taille rÃ©duite) */
.navbar-nav .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 14px; /* ðŸ‘‰ rÃ©duit */
  letter-spacing: 1px; /* ðŸ‘‰ plus discret */
  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);
}

/* neutralisation anciennes rÃ¨gles nav */
.nav-item {
  font-family: inherit;
  font-size: inherit;
}
.navbar-nav {
  margin-left: auto;
  align-items: center;
}

/* ------------------ CARDS ------------------ */
.card-body {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.card-text {
  font-family: 'Oxygen', sans-serif;
  font-size: 16px;
}

/* ------------------ BLOCKQUOTE ------------------ */
blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

/* ------------------ SECTIONS FILMS ------------------ */
/* DÃ©calage du contenu principal sous la navbar fixe */
.movie-section {
  padding: 2rem;
  background-color: #2e2e2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 120px; /* espace sous la navbar */
}

@media (max-width: 768px) {
  .movie-section {
    margin-top: 90px; /* navbar plus basse sur mobile */
  }
}

.movie-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
}

.movie-card {
  background-color: #3a3a3a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.movie-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.movie-card-content {
  padding: 1rem;
  color: #fff;
}
.movie-card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}
.movie-card-description {
  font-size: 0.95rem;
  color: #c9c9c9;
  margin-top: 0.5rem;
}
.movie-card-credit-inline {
  font-size: 0.7rem;
  color: #888;
  margin: 0.3rem 0 0.5rem 0;
  text-align: center;
}
.movie-card-credit-inline a {
  color: #888;
  text-decoration: underline;
}

/* ------------------ MODALE ------------------ */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 5px;
  width: 80%;
  max-width: 600px;
}
.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close-button:hover,
.close-button:focus {
  color: black;
  cursor: pointer;
}

/* ------------------ LIENS "VOIR TOUS" ------------------ */
.view-all-title {
  display: block;
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 0;
  text-decoration: none;
  color: #333;
  position: relative;
  transition: color 0.3s ease;
}
.view-all-title:hover {
  color: #0056b3;
}
.view-all-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #0056b3;
  margin: 8px auto 0;
  transition: width 0.3s ease;
}
.view-all-title:hover::after {
  width: 100px;
}

/* ------------------ 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);
}

/* ------------------ TITRES ------------------ */
h3 {
  letter-spacing: .5rem;
  padding-bottom: 5px;
  padding-top: 20px;
}
h3.fw-light {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #000;
}