#clientSection{
    display: none;
}

#ClientButton{
    display: none;
}

.navigation a, .navigation a:visited {
    color: white; 
    text-decoration: none; 
}
@media screen and (min-width: 300px) {


body{
    background-color: rgb(168, 187, 181);
}
    #afficheFilmSection{
        display: none;
    }

h1{
    text-align: center;
}

.navigation{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: royalblue;
    width: 100%;
    margin-bottom: 10px;
    
}

.navigation a:hover{
    color: rgb(3, 42, 84);

}

.navigation a:visited{
    text-decoration: none;
}

  nav{
        width: 100%;
        /* margin: 0 auto; */
        /* display: flex; */
        flex-direction: row;
        justify-content:space-between;
        /* align-items: center; */
         padding-right: 20px;
         padding-left: 20px;
    }


    nav ul{
        
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav ul li{
        margin-right: 40px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        /* align-items: center; */
        font-size: 30px;
        color: white;
    }

    .boutton{
        margin-top: 40px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        gap: 10px;
    }
    .ajoutFilm{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
    }
    form{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
    }

.ajoutFilm{
    display: none;
}
.ajoutClient{
    display: none;
}

.ajoutRealisatrice{
    display: none;
}

.ajoutCategorie{
    display: none;
}
 input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        /* Supprimer les flèches pour les navigateurs Mozilla Firefox */
        input[type="number"] {
            appearance: textfield;
            -moz-appearance: textfield;
        }


.afficheFilm{
    max-width: 120px;
    max-height: 200px;
}

#movie-poster{
    max-width: 120px;
    max-height: 200px;
}



.monCaroussel {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    
}
.monCaroussel img {
    width: 100%;
    height: auto;
    object-fit: cover;
    
}
.slick-prev, .slick-next {
    z-index: 1;
}
.slick-dots {
    text-align: center;
    margin-top: 10px;
}

section h2{
    text-align: center;
    background-color: royalblue;
    color: white;
}

section ul{
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    padding: 0;

}

section li{
    width:fit-content;
}

section li:hover{
    
    background-color: royalblue;
    color: white;
    cursor: pointer;
}

#filmSection{
    border: 1px solid black;
    margin:  20px;
    padding: 0 20px;
}

    .divListInfoFilm{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

#clientSection{
    border: 1px solid black;
    margin:  20px;
    padding: 0 20px
}

    .divListInfoClient{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

#realisatriceSection{
    border: 1px solid black;
    margin:  20px;
    padding: 0 20px
}

    .divListInfoRealisatrice{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

#categorieSection{
    border: 1px solid black;
    margin:  20px;
    padding: 0 20px
}

    .divListInfoCategorie{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }



}


@media screen and (min-width: 1024px) {
    main{
        align-content: center;

    }

    nav{
    
        width: 100%;
        /* margin: 0 auto; */
        /* display: flex; */
        flex-direction: row;
        justify-content:space-between;
        /* align-items: center; */
         padding-right: 300px;
         padding-left: 300px;
    }
    .boutton{
        max-width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding-left: 70px;
        gap : 45px;
    }
    
    .divListInfoRealisatrice{
    display: flex;
    flex-direction: row;
    gap: 30px;
}
    
}

/* Styles pour le caroussel */
#caroussel {
    margin: 20px 0;
    padding: 20px;
}

.monCaroussel {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-slide {
    padding: 10px;
    transition: transform 0.3s ease;
}

.carousel-slide:hover {
    transform: scale(1.05);
}

.carousel-slide img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.carousel-slide img:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Styles pour les détails des films du caroussel */
.film-details-carousel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.film-details-carousel h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-align: center;
}

.film-info-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.film-poster {
    flex-shrink: 0;
}

.film-text-info {
    flex: 1;
}

.film-text-info p {
    margin: 10px 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.film-text-info strong {
    color: #34495e;
}

/* Responsive pour les détails des films */
@media (max-width: 768px) {
    .film-info-content {
        flex-direction: column;
        text-align: center;
    }
    
    .film-poster img {
        max-width: 150px !important;
    }
}

/* Styles pour les photos des réalisateurs */
.realisateur-container {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    min-height: 320px; /* Hauteur minimale fixe pour éviter les sauts */
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.realisateur-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    padding: 15px;
    text-align: center;
    background-color: #e9ecef;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}

.realisateur-content {
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
    flex: 1;
}

.realisateur-photo-container {
    flex: 0 0 200px; /* Largeur fixe */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.realisateur-photo {
    width: 100%;
    max-width: 200px;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #ffffff;
    object-fit: cover;
}

.realisateur-info {
    flex: 1;
    padding: 0 10px;
    line-height: 1.6;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.realisateur-details p {
    margin: 10px 0;
}

.realisateur-info strong {
    color: #34495e;
    font-weight: 600;
}

.realisateur-films {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive design pour petit écran */
@media (max-width: 768px) {
    .realisateur-content, .film-content {
        flex-direction: column;
        align-items: center;
    }
    
    .realisateur-photo-container, .film-poster-container {
        margin-bottom: 15px;
    }
}

/* Styles pour les informations des films */
.film-container {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    min-height: 320px; /* Hauteur minimale fixe pour éviter les sauts */
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.film-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    padding: 15px;
    text-align: center;
    background-color: #e9ecef;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}

.film-content {
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
    flex: 1;
}

.film-poster-container {
    flex: 0 0 200px; /* Largeur fixe */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.film-poster {
    width: 100%;
    max-width: 200px;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #ffffff;
    object-fit: cover;
}

.film-info {
    flex: 1;
    padding: 0 10px;
    line-height: 1.6;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.film-details p {
    margin: 10px 0;
}

.film-info strong {
    color: #34495e;
    font-weight: 600;
}

.film-categories {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* ==========================================================================
   Styles pour la section Réalisateur (Responsive)
   ========================================================================== */

/* Conteneur principal qui englobe la liste ET le panneau d'informations */
.divListInfoRealisatrice {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur petits écrans */
    gap: 2em;        /* Espace entre la liste et le panneau d'infos */
}

.divListRealisatrice {
    flex: 1 1 250px; /* La liste prend 1 part, avec une base de 250px */
}

.infoRealisatrice {
    flex: 2 1 400px; /* Le panneau d'info prend 2 parts, avec une base de 400px */
    padding: 20px;
    /* background-color: #f8f9fa; */
    /* border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
    transition: all 0.3s ease-in-out;
}

/* --- Styles pour le contenu du panneau d'informations --- */

.realisateur-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.realisateur-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Le conteneur qui contient la photo et le texte */
.realisateur-content {
    display: flex;
    gap: 25px;
    align-items: flex-start; /* Aligne le haut de la photo avec le haut du texte */
}

.realisateur-photo-container {
    flex-shrink: 0; /* Empêche l'image de se réduire de manière disproportionnée */
    width: 200px;
}

.realisateur-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

.realisateur-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.realisateur-info p {
    margin: 0;
    line-height: 1.6;
}

.realisateur-info strong {
    color: #555;
}

/* ==========================================================================
   Media Queries pour la responsivité
   ========================================================================== */

/* Pour les téléphones mobiles et écrans de taille similaire */
@media (max-width: 768px) {
    .realisateur-content {
        flex-direction: column; /* Affiche la photo AU-DESSUS du texte */
        align-items: center;    /* Centre la photo horizontalement */
        text-align: center;     /* Centre le texte */
    }

    .realisateur-photo-container {
        width: 70%;          /* La photo prend plus de largeur sur mobile */
        max-width: 250px;    /* Mais pas plus de 250px */
    }

    .realisateur-name {
        text-align: center;
    }

    /* ==========================================================================
   Styles pour la section Film (Responsive)
   ========================================================================== */

/* Conteneur principal qui englobe la liste ET le panneau d'informations */
.divListInfoFilm {
    display: flex;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur petits écrans */
    gap: 2em;        /* Espace entre la liste et le panneau d'infos */
}

.divListFilm {
    flex: 1 1 250px; /* La liste prend 1 part, avec une base de 250px */
}

.infoFilm {
    flex: 2 1 400px; /* Le panneau d'info prend 2 parts, avec une base de 400px */
    display: block;   /* Caché par défaut */
}
.film-content{
    display: flex;
    flex-direction: column;
    gap: 15px;

}
}

  

