.section-title {
  margin-top: 40px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.film-card {
  background: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.film-header {
  display: flex;
  align-items: center;
  gap: 15px; /* Espace entre le titre et le bouton */
  white-space: nowrap; /* Évite que le titre passe à la ligne trop vite */
}

.ratings-container {
  display: flex;
  gap: 20px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}

.rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.star {
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s;
}

.star:hover {
  transform: scale(1.2);
}

.star-gold {
  color: #ffcc00;
}

.star-grey {
  color: #ccc;
}

.btn-vu {
  background: #4caf50;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-annuler {
  background: #e74c3c;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-annuler,
.btn-vu {
  font-size: 0.6rem;
}

.date-info {
  font-size: 0.8rem;
  color: #666;
}

.pasvu {
  display: flex;
  gap: 10px;
  flex-direction: column;
  font-size: 0.8rem;
}

.all-film-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center; /* Aligné au centre pour le côté "stylé" */
  padding: 20px 0;
}

.film-card.pasvu {
  width: fit-content;
  min-width: 120px; /* Sécurité pour les titres très courts */
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;

  /* On enlève les marges auto si elles existaient */
  margin: 0;
}

/* Effet de vrac : on incline un peu les cartes différemment */
.film-card.pasvu:nth-child(odd) {
  transform: rotate(-2deg);
}

.film-card.pasvu:nth-child(even) {
  transform: rotate(1.5deg);
}

.film-card.pasvu:nth-child(3n) {
  transform: rotate(2.5deg) translateY(5px);
}

/* Effet au survol : la carte se remet droite et ressort */
.film-card.pasvu:hover {
  transform: rotate(0deg) scale(1.1);
  z-index: 10;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}
