.cadrage {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    left: 25%;
    height: 50%;
    width: 75%;
    top: 0;
}


.apercu {
    position: fixed;
    left: 25%;
    height: 50%;
    width: 75%;
    top: 0;
    right: 0;
    filter: brightness(0.4);
    background-image: url("assets/image0.webp");
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    background-size: cover;

    box-shadow: 2px 2px 5px black;
}

.big_title {
    position: fixed;
    top: 5%;
    font-size: 65px;
    color: white;
    display: inline-block;
    background: linear-gradient(to left, rgb(50, 50, 225), rgb(37, 18, 160));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

body {
    background-color: rgba(17, 28, 61, 0.991);
}


.list_rech {
    display: flex;
    justify-content: center;
    margin-top: 45%;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    transition: 0.2s ease-in-out;
    width: 100%;
}

.grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, 180px);
    gap: 40px;
    margin: auto;
    justify-content: center;
    height: 50%;
    width: 100%;
    align-items: center;
    transition: 0.2s ease-in-out;
}

.boximg {
    width: 180px;
    /* fixe la largeur de l’image */
    
    display: block;
    object-fit: cover;
    transition: 0.2s ease-in-out;
    border-radius: 5px;
}

.boximg:hover {
    transform: scale(1.1);
    cursor: pointer;
}


/*---------------------------------------------------------- Barre latérale de navigation -----------------------------------------------------------*/


a {
    text-decoration: none;
}

ul.latbar {
    background-color: rgba(17, 28, 61, 0.991);
    list-style-type: none;
    margin: 0;
    padding: 0;
    left: 0;
    top: 0;
    width: 25%;
    height: 100%;
    /* Hauteur totale */
    position: fixed;
    /* Fixe la barre de navigation */
    overflow: auto;
    /* Permet le défilement si la barre de navigation est trop longue */
    box-shadow: 5px 5px 4px black;
}

li.latbar {
    text-align: left;
    padding: 10px;
}

li.latbar:last-child {
    border-bottom: none;
}

.latbar_title {
    text-align: center;
    padding-top: 15px;
    padding-bottom: 50px;
}

.mini_title {
    text-decoration: none;
    font-size: 35px;
    color: rgb(15, 15, 225);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    /* ou 700 pour plus épais */
}

a.nav-item {
    text-decoration: none;
    color: grey;
    font-size: 24px;

}

.connexion{
    text-decoration: none;
    color: grey;
    font-size: 24px;
}

.anime_plus {
    /*display: none;*/
    padding: 10px;
    animation: 2s ease-in-out;
}

.perso_plus {
    display: none;
}

.doublage_plus {
    display: none;
}

.opening_plus {
    display: none;
}

.option {
    padding-left: 35px;
    color: rgb(95, 91, 91);
}


/* Masquer tous les sous-menus par défaut */
.submenu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 20px;
}

/* Montrer un sous-menu actif */
.submenu.active {
    display: block;
    max-height: 200px;
    /* suffisant pour quelques items */
}

.con {
    margin-top: 50px;
}


/*--------------------------------------- Hover ---------------------------------------*/

.option:hover {
    color: white;
}

/* Hover sur tous les liens */
a.nav-item:hover,
.option:hover {
    color: white;
    cursor: pointer;
}

a.connexion:hover {
    color: white;
    cursor: pointer;
}


/* ---------------------------------- RECHERCHE DYNAMIQUE ---------------------------------- */

.search-container {
    padding-left: 30px;
}

#searchContainer {
    margin-left: 25px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(17, 28, 61, 0.95);
    /* même ton que la sidebar */
    color: white;
    font-family: 'Poppins', sans-serif;
    padding-left: 25px;
}

#searchContainer h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: rgb(15, 15, 225);
}

#searchContainer input[type="text"] {
    width: 80%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1c1c3c;
    color: white;
    outline: none;
}

#searchContainer input[type="text"]::placeholder {
    color: #aaa;
}

.cadre_res {
    display: block;
    text-align: center;
    align-items: center;
    width: max-content;

    padding: 25px;
    background-color: #02061a;
}

.resultats {
    display: block;
    color: white;
    border-radius: 8px;
    width: 80%;
}

.back_to_list {
    color: black;
    background-color: rgb(71, 71, 221);
    border-radius: 5px;
}

.go {
    width: auto;
    background-color: skyblue;
    color: black;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

@media (max-width: 1200px) {
    .grille{
        padding-top: 5%;
    }
}

@media (max-width: 1100px) {
    .grille{
        padding-top: 10%;
    }
}


@media (max-width: 1000px) {
    .grille{
        padding-top: 25%;
    }

    #searchContainer h3 {
        font-size: 11px;
        
    }

    .go {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .grille{
        padding-top: 40%;
    }
}


@media (max-width: 800px) {
    .grille{
        padding-top: 50%;
    }
}

@media (max-width: 700px) {
    .grille {
        padding-top: 75%;
    }
    .mini_title {
        font-size: 25px;
    }

    a.nav-item {
        font-size: 20px;
    }

    a.connexion {
        font-size: 20px;
    }

    .option {
        font-size: 15px;
        padding-left: 10px;
    }

    #searchContainer {
        padding-left: 10px;
        margin-left: 10px;
    }
}


/*------------------------------------------------------------- cadre de connexion --------------------------------------------------------------------------------*/


.login-container {
    width: 300px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    color: white;
    font-family: sans-serif;
}
.login-container input {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: none;
}
.login-container button {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: linear-gradient(45deg, #ff4e50, #f9d423);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}
.login-container button:hover {
    opacity: 0.5;
}

.ins {
    color: red;
    transition: all 0.3s ease;
}

.ins:hover {
    color: lightcoral;
    text-decoration: underline;
}

.alignement {
    display: flex;
    justify-content: center;
    align-items: center;
}

.box {
    background-color: black;
    border-radius: 20px;
    padding: 20px;
    width: auto;
    color: white;
}