/* Styles pour les cards films (movie-card) pour éviter l'étirement sur petits écrans */
/* Responsive movie-card */
.movie-card {
  display: flex;
  flex-direction: column;
  height: 18rem;
  max-height: 80vh;
  min-width: 0;
}
.movie-card img {
  flex-shrink: 0;
  height: 15rem;
  object-fit: cover;
}
.movie-card > .p-4, .movie-card .p-4 {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .movie-card {
    height: 25rem;
  }
  .movie-card img {
    height: 22rem;
  }
}
@media (min-width: 1024px) {
  .movie-card {
    height: 25rem;
  }
  .movie-card img {
    height: 22rem;
  }
}
@media (min-width: 1536px) {
  .movie-card {
    height: 28rem;
  }
  .movie-card img {
    height: 25rem;
  }
}

/* Scrollbar globale personnalisée pour tout le site, couleur dynamique via --pColor */
/* Définir la couleur principale sur :root pour qu'elle soit accessible globalement */
:root {
  --pColor: #8b5cf6;
}
html::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: var(--pColor, #8b5cf6);
  border-radius: 8px;
}
html::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--pColor, #8b5cf6) 80%, #000 20%);
}
html {
  scrollbar-color: var(--pColor, #8b5cf6) transparent;
  scrollbar-width: thin;
}
