/* Ajoutez ceci dans votre fichier styles.css */


/* Styles pour l'étoile des favoris */
.favorite-star {
    font-size: 1.5em; /* Ajustez la taille selon vos préférences */
    color: #ccc; /* Couleur grise par défaut */
    cursor: pointer;
    margin-left: 10px; /* Ajustez l'espacement si nécessaire */
    transition: color 0.2s ease-in-out; /* Animation de transition */
}

.favorite-star.is-favorite {
    color: #FFD700; /* Couleur jaune lorsque l'étoile est "favorite" */
}

.active, .accordion-mylist:hover {
  background-color: #0e0f14 !important;
}


.accordion-mylist {
  background-color: #0d0e12;
  color: #fff;
  cursor: pointer;
  padding: 18px;
  width: 90.5%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.2rem;
  transition: 0.4s;
  border-radius: 8px;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  margin-left: 3%;
  margin-right: 3% !important;
  border: 2px solid var(--secondary-color);
}

.active,.accordion-mylist:hover {
  background-color: #0d0e12;
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);

}

/* Icône pour indiquer l'état de l'accordéon (ouvert/fermé) */
.accordion-mylist:after {
    content: '+'; /* Icône pour fermé */
    font-size: 1.5rem;
    color: #fff;
    float: right;
    margin-left: 5px;
    transition: transform 0.3s; /* Transition pour l'animation de l'icône */
}

.accordion-mylist.active:after {
    content: '-'; /* Icône pour ouvert */
    transform: rotate(0deg); /* L'icône ne tourne pas si content est '-' */
}

/* Panneau de contenu de l'accordéon */
.panel {
    padding: 0 18px; /* Ajustez le padding */
    background-color: #0d0e12; /* Couleur de fond du panneau */
    max-height: 0; /* Important pour cacher le contenu initiallement */
    overflow: hidden; /* Cache le contenu qui dépasse */
    transition: max-height 0.2s ease-out; /* Transition pour l'ouverture/fermeture */
    width: 88%; /* Ajustez si nécessaire */
    margin-left: 3%;
    margin-right: 3% !important; /* Important pour centrer ou aligner */
}


.read-less-btn:hover{
	background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  cursor: pointer;
}

.read-more-btn:hover{
	background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  cursor: pointer;
}
.youtube-btn {
	margin-top: -33% !important;
    display: inline-block;
    margin-top: 20px; /* Espace au-dessus du bouton */
    background-color: #ff0000; /* Rouge YouTube */
    color: #ffffff; /* Texte blanc */
    border: none;
    border-radius: 5px; /* Bords légèrement arrondis */
    padding: 10px 15px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.youtube-btn:hover {
    background-color: #cc0000; /* Rouge plus foncé au survol */
}
/* Style pour le nouveau conteneur des filtres */
.filters-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espace entre les deux s\u00E9lecteurs */
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Styles pour les s\u00E9lecteurs de genre et de tri */
#genre,
#sort {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1em;
    letter-spacing: 0.5px;
    box-shadow: 0 0 0 transparent;
    backdrop-filter: blur(4px);
    /* Assurez-vous que les lignes ci-dessous ne sont PAS pr\u00E9sentes */
    /* display: block; */
    /* margin-left: auto !important; */
    /* margin-right: auto !important; */
}




.feather.feather-linkedin {
  color: #fcfeff;
}
.category-group h2 {
  font-size: 18px !important;
}

#movies-tab:active {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}


#series-tab:active {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.tab-button.active {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.read-less-btn {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-top: 4%;
  cursor: pointer;
display: block !important;  
	
}
.read-more-btn {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);

  display: block !important;  
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-top: 4%;
  cursor: pointer;
}

.faq {
  margin-left: 3%;
  color: white;
  border-bottom: 2px solid var(--primary-color);
  width: 90%;
}



.read-more-btn:hover {
  text-decoration: none;
}

.list-btn.category-btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Styles pour la page d'erreur 404 */
.error-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 50px; /* Pour éviter que le contenu ne soit trop collé au haut de la page */
}

.error-content {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    margin: 20px auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color); /* Utilise votre couleur principale */
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.error-message {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #f1c40f; /* Une couleur qui contraste bien */
}

.error-suggestion {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 30px;
}
/*404 */


.hidden {
    display: none !important;
}
.accordion {
  background-color: #2c3e50;
  color: #fff;
  cursor: pointer;
  padding: 18px;
  width: 90.5%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.2rem;
  transition: 0.4s;
  border-radius: 8px;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  margin-left: 3%;
  margin-right: 3% !important;
}

.active, .accordion:hover {
    background-color: #34495e;
}

.accordion:after {
    content: '+';
    font-size: 1.5rem;
    color: #fff;
    float: right;
    margin-left: 5px;
    transition: transform 0.3s;
}

 .accordion.active:after {
    content: '-';
    transform: rotate(0deg);
}

.panel {
    padding: 0 18px;
     background-color: #0d0e12;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
	width: 88%;
  margin-left: 3%;
  margin-right: 3% !important;
}

.description-text {
    color: #fff;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.features-list {
    margin-top: 20px;
}

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

.feature-item h3 {
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.feature-item p {
    font-size: 0.9rem;
     color: #fff;
    font-family: 'Poppins', sans-serif;
}

.modal-poster {
    width: 60%;
    height: 32%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    aspect-ratio: 2 / 3;
}

#series-tab:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

#movies-tab:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}


/* Styles pour le conteneur des liens d'authentification */
.auth-links-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Styles pour les liens d'authentification */
.auth-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.auth-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styles spécifiques pour le bouton "Retour" */
.back-button {
    display: none; /* Cacher par défaut, la logique JS le rendra visible si nécessaire */
}


.personal-rating-container {
  display: flex;
  align-items: center;
  gap: 10px; /* Ajoute un espace entre le texte et les étoiles */
  font-family: sans-serif; /* Rends la police plus moderne */
}

.stars {
  display: flex;
  cursor: pointer;
}

.star {
  font-size: 24px; /* Augmente la taille des étoiles */
  color: #ccc; /* Couleur par défaut des étoiles non remplies */
  transition: color 0.2s ease-in-out; /* Ajoute une transition douce */
}

.star.filled {
  color: #ffc107; /* Couleur des étoiles remplies (jaune) */
}

/* Effet de survol (hover) */
.stars:hover .star {
  color: #ffc107; /* Les étoiles deviennent jaunes au survol */
}

/* Les étoiles à gauche de l'étoile survolée gardent la couleur */
.stars .star:hover ~ .star {
  color: #ccc;
}

.add-to-list-btn-no-connect:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  cursor: pointer;
}



.category-display label {
  font-size: 0.9em;
}

.category-display select {
  appearance: none;
  background-color: var(--card-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 30px 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}


/* Conteneur principal du menu déroulant (la "drop-box") */
.dropdown-container {
    position: relative;
    display: inline-block; /* Permet au conteneur de s'ajuster à la taille de son contenu */
    font-family: 'Poppins', sans-serif;
}

/* Bouton qui ouvre le menu déroulant */
.dropdown-btn {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px; /* Espace entre le texte et l'icône */
    outline: none;
}

.dropdown-btn:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.dropdown-btn.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Icône de flèche pour le bouton */
.dropdown-btn .icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.dropdown-btn.active .icon {
    transform: rotate(180deg); /* Fait pivoter la flèche quand le menu est ouvert */
}

/* Menu déroulant (la "drop-box" elle-même) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px); /* Positionne le menu juste en dessous du bouton */
    left: 0;
    width: 100%; /* S'aligne sur la largeur du bouton */
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    z-index: 50; /* S'assure que le menu est au-dessus du reste du contenu */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Options à l'intérieur du menu déroulant */
.dropdown-option {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-option:hover {
    background-color: rgba(99, 102, 241, 0.2); /* S'inspire de l'effet de survol de `suggestion-item` */
    color: var(--primary-color);
}

.dropdown-option.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Pour les options désactivées ou un simple texte */
.dropdown-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Styles pour une ligne de séparation */
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0;
}


.list-btn.category-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1em;
    letter-spacing: 0.5px;
    box-shadow: 0 0 0 transparent;
    backdrop-filter: blur(4px);
    cursor: pointer; /* Ajout du curseur */
}

/* Nouveau style pour aligner les boutons */
.category-controls {
	margin-top: 3%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Ajoute un espace entre les boutons */
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur de petits écrans */
}

.list-btn.category-btn.active {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Styles pour les icônes */
.list-btn.category-btn i {
    margin-right: 8px; /* Espace entre l'icône et le texte */
}


.add-to-list-btn-no-connect {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
  font-size: 1em;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 transparent;
  backdrop-filter: blur(4px);
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-top: 2%;
}
/* Nouveau CSS pour la modale de connexion */
.modal-add-to-list-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.modal-add-to-list-container .add-to-list-btn {
    background-color: #f7b403;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-add-to-list-container .add-to-list-btn:hover {
    background-color: #e0a502;
}

.modal-add-message {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}
.add-to-list-btn.added {
    background-color: #28a745; /* Un vert pour indiquer le succès */
    border-color: #28a745;
    color: white;
    cursor: default; /* Changez le curseur pour montrer qu'il n'est plus cliquable */
}

/* Vous pouvez aussi ajouter une transition pour un effet plus fluide */
.add-to-list-btn,
.remove-from-list-btn {
    transition: all 0.3s ease-in-out;
}
/* Dans votre fichier styles.css */

.add-to-list-btn,
.remove-from-list-btn {
    /* Styles de base pour les boutons */
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.add-to-list-btn {
    background-color: #007bff; /* Bleu par défaut */
    color: white;
}

.remove-from-list-btn {
    background-color: #dc3545; /* Rouge par défaut */
    color: white;
}

/* Nouvelle classe pour l'état "ajouté" */
.added-to-list {
    background-color: #28a745; /* Vert */
    color: white;
}




@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');
.auth-links-container {
    position: absolute;
    top: 20px; /* Ajustez cette valeur pour l'alignement vertical */
    right: 20px; /* Ajustez cette valeur pour l'alignement horizontal */
    display: flex;
    gap: 10px; /* Espace entre les boutons */
}

.provider-banner {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrer le contenu horizontalement */
  gap: 15px; /* Ajoute un espace entre l'image et le texte */
  padding: 15px 20px;

  background-color: #f8f8f8; 
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.provider-banner .site-logo-2 {
  height: 35px; 
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.provider-banner .site-logo-2:hover {
  opacity: 1;
}

.provider-banner .pok-message {
  font-size: 0.95em;
  color: var(--text-color, #555);
  margin: 0;
  line-height: 1.4;
}

.provider-banner .pok-message strong {
  color: #222;
  font-weight: 600;
}
.provider-list{
	  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alignement à gauche */
  padding: 15px 25px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Ombre plus prononcée pour un effet de flottement */
  margin-top: 20px; /* Espace au-dessus de la bannière */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.banner-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alignement à gauche */
  padding: 15px 25px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Ombre plus prononcée pour un effet de flottement */
  margin-top: 20px; /* Espace au-dessus de la bannière */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.banner-container:hover {
  transform: translateY(-3px); /* Petit effet de soulèvement au survol */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12); /* Ombre agrandie */
}

.site-logo-2 {
  height: 40px; /* Taille du logo */
  width: auto;
  margin-right: 20px; /* Espace entre le logo et le texte */
  opacity: 0.8;
  filter: grayscale(80%);
  transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.site-logo-2:hover {
  opacity: 1;
  filter: none; /* Le logo retrouve ses couleurs au survol */
}

.banner-text {
  font-size: 1em;
  color: #555; /* Couleur de texte plus foncée */
  line-height: 1.5;
  margin: 0;
}

.banner-text strong {
  color: #333;
}

.site-logo {
  width: 10%;
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}
.personal-rating-container {
    margin-top: 15px;
}

.personal-rating-text {
    color: #eab308;
}

/* Conteneur des étoiles dans la modale */
.stars {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #555;
    cursor: pointer;
}

.stars .star {
    transition: color 0.2s;
    user-select: none;
}

/* Règle pour les étoiles remplies (jaunes) */
.stars .star.filled {
    color: #c0940b;
}

/* Style des étoiles dans les cartes */
.stars-display {
    font-size: 1.2em;
    color: #555;
    display: inline-block;
}

.stars-display .star-display.filled {
    color: #c0940b;
}

.stars .star:hover ~ .star {
    color: #555;
}

/* Style des étoiles dans les cartes */
.stars-display {
    font-size: 1.2em;
    color: #555;
    display: inline-block;
}

.stars-display .star-display.filled {
    color: #c0940b;
}
/* Style pour le titre des plateformes */
.platform-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.auth-link {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;
    font-size: 1em;
    letter-spacing: 0.5px;
    box-shadow: 0 0 0 transparent;
    backdrop-filter: blur(4px);
	display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  margin-top: 4%;
}

.auth-link:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}


/* Styles de la barre de recherche */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-container {
    position: relative;
    flex-grow: 1;
}

#searchInput {
    width: 100%;
    padding-right: 30px; /* Ajoute un espace pour la croix */
}

#clearSearchBtn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 1.2em;
    display: none;
    z-index: 10;
}
.search-bar {
    position: relative;
}

#clearSearchBtn {
    position: absolute;
    right: 20%; /* Positionnement à droite du champ de recherche */
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    display: none; /* Reste caché par défaut */
    z-index: 10;
}

/* Ajustez la marge pour que l'input et le bouton ne se chevauchent pas */
#searchInput {
    padding-right: 30px; 
}
.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.search-bar input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-background);
    color: var(--primary-color);
    font-size: 1em;
    transition: var(--transition);
}

.search-bar input::placeholder {
    color: var(--text-color);
}

.search-bar button {
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-bar button:hover {
    background-color: #5254e0;
}


:root {
    --primary-color: #f0f0f0; /* Blanc cassé pour le texte principal */
    --secondary-color: #6366f1; /* Bleu-violet pour les accents */
    --background-color: #0d0e12; /* Noir très foncé pour l'arrière-plan */
    --card-background: #17181c; /* Gris foncé pour les cartes */
    --text-color: #b0b0b5; /* Gris clair pour le texte secondaire */
    --accent-color: #eab308; /* Jaune pour les notes et étoiles */
    --border-color: #333;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: 2px;
    font-weight: 700;
	margin-top: 0%;
}

.header p {
    font-size: 1.1em;
    color: var(--text-color);
}

/* Styles de la barre de recherche */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
    position: relative; /* Important pour positionner les suggestions */
}

.search-bar input[type="text"] {
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background-color: var(--card-background);
    color: var(--primary-color);
    font-size: 1em;
    width: clamp(250px, 50%, 500px);
    outline: none;
    transition: var(--transition);
}

.search-bar input[type="text"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.search-bar button {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.search-bar button:hover {
    background-color: #4f52d9;
    transform: translateY(-2px);
}



#back-to-trending:hover {
    background-color: var(--card-background);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* Styles des onglets (Tabs) */
.tabs {
	margin-top: 2%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    justify-content: center;
}

#provider-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-behavior: smooth;
    justify-content: flex-start;
    padding: 10px 10px;
}

/* Styles pour le carrousel des providers */
.provider-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    width: 100%;
    max-width: 800px;
}

.provider-carousel .tabs {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espace entre les icônes */
    overflow: hidden; /* Cache les éléments qui dépassent */
    white-space: nowrap;
    transition: transform 0.3s ease-in-out;
}

/* Styles des boutons de navigation du carrousel */
.carousel-button {
    background-color: transparent;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    opacity: 0.8;
}

.carousel-button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    opacity: 1;
}

.carousel-button:disabled {
    color: #555;
    cursor: not-allowed;
    opacity: 0.5;
	display: none;
}

/* Styles des logos des providers */
.provider-carousel .tab-button {
    background: #2b2b2b; /* Fond légèrement sombre pour les icônes */
    border: 1px solid #444;
    border-radius: 12px; /* Bords arrondis pour un look moderne */
    padding: 8px;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.provider-carousel .tab-button:hover,
.provider-carousel .tab-button.active {
    transform: translateY(-5px) scale(1.05); /* Effet de survol 3D subtil */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color); /* Bordure accentuée */
}

/* Styles de l'image du logo */
.provider-carousel .tab-button img {
    height: 100%; /* S'assure que le logo remplit le bouton */
    width: 100%;
    object-fit: contain; /* Redimensionne le logo sans le déformer */
}

/* On cache le nom du provider pour ne laisser que le logo */
.provider-carousel .tab-button span {
    display: none;
}

/* Styles pour les petits logos dans les cartes de film */
.provider-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.provider-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 10px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: 50px;
    margin: 0 5px;
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--primary-color);
    background-color: var(--card-background);
}

.provider-logo-small {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

/* Nouveaux styles pour les suggestions de recherche */
#suggestions-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(250px, 50%, 500px);
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 15px 15px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(99, 102, 241, 0.2);
}

.suggestion-poster {
    width: 50px;
    height: 75px;
    border-radius: 5px;
    margin-right: 15px;
    object-fit: cover;
}

.suggestion-info {
    flex-grow: 1;
}

.suggestion-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.suggestion-overview {
    font-size: 0.8em;
    color: var(--text-color);
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Styles des cartes (Cards) */
.movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    border: 1px solid transparent;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.movie-poster {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 2 / 3;
}

.movie-info {
    padding: 15px;
    flex-grow: 1;
}

.movie-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: 400;
    color: var(--accent-color);
}

.rating-star {
    margin-right: 5px;
    font-size: 1.1em;
}

/* Styles pour l'icône du fournisseur */
.provider-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.provider-icon:hover {
    transform: scale(1.1);
}

.provider-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-list {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    justify-content: center;
}

.provider-list img {
    max-height: 40px; /* Définit une taille maximale pour éviter qu'elles ne soient trop grandes */
    width: auto;
    border-radius: 8px; /* Ajoute des coins arrondis */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ajoute une légère ombre */
}

/* Styles de la modale */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}


.modal-content {
  background-color: #f7f7f7;
  margin: 40px 20px auto !important;
    
  padding: 30px;
  border-radius: 15px;
  max-width: 900px;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: var(--text-color);
  font-size: 15px;
 
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    
    }
}

.modal-poster {
    width: 100%
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    aspect-ratio: 2 / 3;
}

.modal-details {
    flex-grow: 1;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    font-size: 2.5em;
    margin-top: 0;
    line-height: 1.2;
}



.modal-overview {
    max-height: 130px;
    overflow-y: auto;
    padding-right: 15px;
}

.modal-release-date {
    font-size: 0.9em;
    color: var(--text-color);
    font-weight: 300;
}

/* Styles pour rendre le lecteur vidéo responsive */
#trailer-container {
    margin-top: 20px;
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    border-radius: 10px;
    overflow: hidden;
}

#trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.trailer-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-color);
}

.close-button {
  color: var(--text-color);
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  background-color: transparent;
  border: 2px solid red;
  border-radius: 50%;
  padding: 5px;
    padding-left: 5px;
  left: 93%;

  padding-left: 1.3%;
}

/* Add a hover effect to change the background color */
.close-button:hover {
  background-color: red; /* Change background to red on hover */
  color: white; /* Change the text color to white for better contrast */
}

#loading {
    text-align: center;
    font-size: 1.5em;
    color: var(--primary-color);
    padding: 50px;
}

.loader {
    border: 8px solid var(--secondary-color);
    border-top: 8px solid var(--accent-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Styles de la pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination-button {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.pagination-button:disabled {
    cursor: not-allowed;
    background-color: var(--card-background);
    opacity: 0.5;
    transform: none;
}

.pagination-button.active {
    background-color: var(--secondary-color);
    font-weight: bold;
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

/* Styles pour le bouton + */
.add-to-list-btn {
    /* Styles existants pour le bouton */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color); 
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

/* Nouvelle classe pour le bouton "ajouté avec succès" */
.add-to-list-btn.added {
    background-color: #4CAF50 !important; /* Vert */
    color: white;
    pointer-events: none;
}

/* Nouvelle classe pour les films déjà dans la liste */
.add-to-list-btn.already-added {
    background-color: #FFA500; /* Orange */
    color: white;
    pointer-events: none;
}

/* Conteneur pour les boutons */
.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.movie-card:hover .card-actions {
    opacity: 1;
}

/* Style de base pour les boutons d'action */
.add-to-list-btn, .remove-from-list-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.remove-from-list-btn {
 background-color: rgba(255, 0, 0, 0.7);
 border-color: red;
 position: absolute;
 top: 10px;
 left: 10px;
}

.remove-from-list-btn:hover {
    background-color: red;
}



/* Début des nouveaux styles pour le tri et la liste */
/* Styles pour le conteneur de tri */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

.sort-controls label {
    margin-right: 10px;
    font-weight: 500;
}

/* Styles pour le menu déroulant de tri */
#sort-by {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--card-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 30px 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#sort-by:hover {
    border-color: var(--primary-color);
}

#sort-by:focus {
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.5);
}

/* Ajoute une flèche personnalisée pour le menu déroulant */
.sort-controls select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 50px;
}

/* Amélioration de l'apparence de la grille de films */
.movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Amélioration de l'apparence des cartes de films */
.movie-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.movie-card .movie-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.movie-card .movie-title {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

.movie-card .movie-rating {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #ffc107; /* Couleur jaune pour l'étoile */
    margin-bottom: 5px;
}

.movie-card .personal-rating-display {
    margin-top: auto; /* Pousse la note personnelle vers le bas */
    font-size: 0.9em;
    color: var(--text-color);
}

.movie-card .personal-rating-display p {
    margin: 0;
    font-weight: 500;
}

.movie-card .personal-rating-text .rating-star {
    color: #ffc107; /* Couleur jaune pour l'étoile */
}

/* Styles pour les boutons "Ajouter" et "Supprimer" */
.add-to-list-btn, .remove-from-list-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.add-to-list-btn:hover, .remove-from-list-btn:hover {
    background-color: var(--primary-color);
}

.remove-from-list-btn {
    right: 50px;
    background-color: rgba(220, 53, 69, 0.6); /* Rouge pour la suppression */
}

.remove-from-list-btn:hover {
    background-color: #dc3545; /* Rouge vif au survol */
}

.add-to-list-btn.added {
    background-color: rgba(40, 167, 69, 0.6); /* Vert pour déjà ajouté */
    cursor: default;
}

.add-to-list-btn.added:hover {
    background-color: rgba(40, 167, 69, 0.6);
}

.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h2, .footer-section h3 {
    color: #00b4e4;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p, .footer-section ul {
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00e0ff;
}

.social-links a img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    filter: invert(1);
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    filter: invert(0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: 30px;
    font-size: 0.8em;
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }
}



/**** MEDIA QUERY **/

@media (max-width: 600px) {
  /* Réduire la taille de la police pour les titres */
  h1 {
    font-size: 2em;
  }
  
  /* Ajuster le conteneur principal */
  .container {
    padding: 15px; /* Réduire l'espacement */
  }

  /* Rendre le menu de navigation vertical */
  .auth-links-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Adapter l'image du logo */
  .site-logo {
    width: 80px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  /* Ajustements pour les tablettes */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-section {
    min-width: 100%;
  }
}


@media (max-width: 600px) {
  #provider-tabs.tabs {
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne */
    justify-content: center; /* Centre les boutons sur l'écran */
    gap: 10px; /* Ajoute de l'espace entre les boutons */
    padding: 10px;
  }
  
  .tab-button {
    flex-basis: 45%; /* Donne une largeur de base pour avoir deux boutons par ligne */
    max-width: 150px;
    padding: 8px; /* Réduit le padding pour économiser de l'espace */
    font-size: 14px; /* Réduit la taille de la police */
  }

  .provider-logo-small {
    width: 30px; /* Réduit la taille des logos */
  }
}

@media (max-width: 600px) {
  #provider-tabs.tabs {
    flex-wrap: nowrap; /* Empêche les boutons de passer à la ligne */
    overflow-x: auto; /* Active le défilement horizontal si nécessaire */
    -webkit-overflow-scrolling: touch; /* Améliore le défilement sur iOS */
    justify-content: flex-start; /* Aligne les boutons au début de la ligne */
    padding: 10px;
  }
  .panel {
width: 82% !important;}

  /* Cache la barre de défilement pour un look plus propre */
  #provider-tabs.tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex-shrink: 0; /* Empêche les boutons de rétrécir */
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .movie-poster {
   width: 100%;
    height: 100%;
  }

  /* Si les images sont dans un conteneur qui les fait dépasser */
  .movie-card {
    max-width: 150px; /* Par exemple, si l'image est dans une carte de film */
  }
}


@media (max-width: 600px) {
 
  
  /* Pour cibler chaque film dans la liste */
  .movie-list .movie-card {
    width: calc(100% - 10px); /* Donne une largeur de près de 50% pour 2 colonnes */
    max-width: 180px; /* Optionnel : pour éviter qu'ils ne soient trop grands sur des tablettes */
  }
  
  .header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em !important;
  color: var(--primary-color);
  margin-bottom: 5px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 0%;
}

 .search-bar {
    flex-direction: column;
    align-items: stretch; /* Pour que les éléments remplissent toute la largeur */
    gap: 10px; /* Ajustez l'espace entre les éléments */
  }
  
  .search-bar input[type="text"] {

  width: 100%;
}
 .movie-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Ajustez l'écart si nécessaire */
  }

.movie-card {

  margin-left: auto !important;
  margin-right: auto !important;
}
}

/* Media Queries for better responsiveness */
@media screen and (max-width: 768px) {
     .modal-content {
    width: 90%;
    max-width: none;
    margin: 12% auto;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 0px 0px auto;
  }
  
  .modal-poster {
  width: 37%;
  height: 32%;

  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
}

.close-button {
left: 87%;
    padding-left: 2.4%;

.close-button {
  right: 15% !important;
}

    .modal-header h2 {
        font-size: 1.5em;
    }

    .close-modal {
        font-size: 2em;
    }
	
	
}

@media screen and (max-width: 450px) {
  .close-button {
   left: 81%;
      padding-left: 3.4%;
  }
}

@media (max-width: 600px) {
  .site-logo {
    width: 80px;
    margin-top: 24%;
  }
  .auth-links-container {
    flex-direction: inherit;
    align-items: center;
    gap: 10px;
	      font-size: 12px;
  }
}

/* Style de base pour la pagination sur les grands écrans */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
}

/* Style de base pour les boutons de pagination */
.page-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.page-btn.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

/* Requête média pour les tablettes (jusqu'à 900px) */
@media (max-width: 900px) {
    .pagination {
        margin-top: 15px;
    }
    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Requête média pour les téléphones (jusqu'à 600px) */
@media (max-width: 600px) {
    .page-btn {
        padding: 12px 18px;
        font-size: 16px;
        margin: 5px 2px;
    }
}


