
*{
    
}

#img-utilisateur{
    height: 70px;
    width: 70px;
    border-radius: 8px;
}
.info-utilisateur{
    width: 100%;
    border-style: solid;
    border-color: black;
    border-width: 2px;
    border-radius: 15px;
    padding: 5px;

}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: row; /* Important pour la disposition horizontale */
    min-height: 100vh; /* Assure que le conteneur occupe au moins la hauteur de la fenêtre */
}

.sidebar {
    background-color: #f0f0f0;
    padding: 15px;
    flex-shrink: 0; /* Empêche la sidebar de rétrécir */
    height: 100vh;
    overflow: hidden;
}

.main-content {
    flex-grow: 1; /* Prend l'espace restant */
    padding: 20px;
}

#info-utilisateur{
    display: flex;
    flex-direction: row;
}
#info-utilisateur p{
    margin: auto;
}

.derouler{
    position: absolute;
    height: 0px;
    overflow-y: hidden;
    background-color: black;
    width: 100%;
    bottom: 0px;
    left: 0px;
    opacity: 0;
}

/*modifier l'opaciter a zero, laisser pour debug*/
.deroulerFerme{
    opacity: 0.1;
}

#Perso-raccourci{
    overflow-y: scroll;
    max-height: calc(100vh - 180px);
    padding: 2px;
    align-items: center;
}

#recherche{
    height: auto;
    width: 100%;
    background-color: #e3e3e3;
    padding: 5px;
    border-radius: 15px;
    border-style: solid;
    border-color: #575757;
    margin-bottom: 10px;
    align-items: center;
}

#btnRecherche{
    border-radius: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    border-style: solid;
    border-color: #575757;
    height: 35px;
    display: inline-block;
    vertical-align: middle;
}

h1{
    text-align: center;
    margin: auto;
    margin-bottom: 10px;
}

label{
    margin: 0;
    background-color: #e3e3e3;
    border-style: solid;
    border-color: #575757;
}

select, label{
    display: inline-block;
    vertical-align: middle;
    margin: auto;
    padding: 5px;
    border-radius: 10px;
    height: 35px;
}

.image-container{
    position: relative;
    height: 160px;
    width: 200px;
    overflow: hidden;
    
}
.image-container img{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
     /* Couvre tout en gardant le ratio */
    /*margin-left: calc((100% - var(--element-width))/2);*/
    
}
#img-utilisateur{
    object-fit: cover;
}
.nomPerso {
    text-align: center;
    font-weight: bold;
    padding: 5px;
    height: 40px;
    background-color: #f0f0f0;
    vertical-align: middle;
}
.splachArt{
    z-index: 1;
    object-fit: contain;
}
.splachArt-background{
    filter: blur(5px);
    opacity: 1;
    object-fit: cover;
    z-index: 0;
   
}
.cube{
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 200px;
    background-color: white;
    border-style: solid;
    border-color: black;
    border-width: 4px;
    overflow: hidden;
    z-index: 3;
    margin: -2px;
    margin-bottom: 10px;
}



#info-tri p, #info-tri button{
    color: black;
    padding: 10px;
    margin: 0;
    user-select: none;      /* Empêche la sélection de texte */
    border-style: none;
}
#info-tri p:hover , #info-tri button:hover{
    cursor: pointer; 
    color: rgb(91, 91, 91);
    background-color: #a4a4a4;
}

#info-tri hr{ 
    border-top: 2px solid rgba(0, 0, 0, .5);
    margin: 0;
}

#info-tri{
    padding-top: 10px;
}

#installBtn{
    display: none;
    margin-top: 50px;
    width: 100%;
}

h2{
    text-align: center;
    margin-top: 10px;
}


/* Responsive Design (Media Queries) */
@media (max-width: 768px) {
    .splachArt-background{
        opacity: 1;
    }
    .splachArt-background, .splachArt{
        width: 100%;
        height: auto;
    }
    
    .derouler{
        height: 115px;
        opacity: 0.4;
    }

    .deroulerFerme{
        opacity: 0.1;
    }

    .deroulerFerme, .sidebarClosed{
        height: 115px;
    }
    #Perso-raccourci{
        overflow-y: visible;
        height: auto;
    }


    .container {
        flex-direction: column; /* Change en colonne sur les petits écrans */
    }
    .sidebar{
        overflow-y: hidden;
        width: 100vw; /* Prend toute la largeur */
        margin-bottom: 20px; /* Ajoute de l'espace entre les sidebars */
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 1000;
    }

    #main{
        padding-top: 115px;
    }

    .cube{
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
    }
    .image-container{
        height: calc(100% - 40px);
        width: 100%;
        
    }
    #btnRecherche{
        border-radius: 10px;
        margin-top: 30px;
        width: 100%;
        height: 50px;
    }
    #recherche{
        display: flex;
        flex-direction: column;
    }

    #recherche label {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    #recherche select {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

}

.raccourci-container{
    padding-left: 35px;
    height: 0px;
    transition: height 0.2s ease-in-out;
    overflow: hidden;
}

.container-open{
    height: auto;
}