#sidemenu {
    position: relative;
    --sidemenu-color: white;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    width: 300px;
    height: 95%;
    padding: 0;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
    white-space: nowrap;
    /* Empêcher le texte de se réajuster à la nouvelle largeur */
    min-height: 200px;
    margin-right: 1rem;
}


#topcontainer {
    width: 100%;
    display: flex;
    color: var(--sidemenu-color);
    align-items: center;
    justify-content: flex-start;
    /* Aligne le contenu à gauche */
    height: vh;
    margin-bottom: 10px;
    white-space: nowrap;
    /* Empêcher le texte de se réajuster à la nouvelle largeur */
    flex-direction: row;
    padding-bottom: 0;
    margin-top: 10px;
}

#topcontainer_title {
    color: var(--sidemenu-color);
    font-size: calc(var(--font-size) * 1.2);
    /* Utilisation de la variable CSS */
    display: flex;
    align-items: flex-end;
    /* Aligne le texte en bas */
    width: 100%;
    /* Utilisez auto pour permettre au contenu de définir la largeur */
    text-align: left;
    white-space: nowrap;
    /* Empêcher le texte de se réajuster à la nouvelle largeur */
    flex-shrink: 0;
    /* Empêche le titre de rétrécir */
    flex-grow: 0;
    /* Empêche le titre de grandir */
    padding-left: 3px;
}

#extendButton {
    background-color: transparent;
    color: var(--sidemenu-color);
    margin-right: 10px;
    /* Ajoute un espace entre le bouton et le titre */
    margin-left: 1px;
    font-size: var(--font-size);
    border-radius: 6px;
    padding: 0px 7px;
    font-family: carnas, sans-serif;
    font-weight: bolder;
}

#extendButton i {
    color: white;
}




#toolsList_container {
    margin: 10px;
    margin-right: 0;
}

#toolsList {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.toolsButton {
    background-color: transparent;
    border: none;
    text-align: left;
    color: var(--sidemenu-color);
    padding-bottom: 0;
    display: flex;
    flex-direction: row;
    /* Aligne les éléments en ligne */
    justify-content: flex-start;
    /* Aligne le contenu à gauche */
    align-items: center;
    /* Aligne les éléments au centre verticalement */
    white-space: nowrap;
    /* Empêcher le texte de se réajuster à la nouvelle largeur */
    padding-top: 5px;
    padding-left: 0;
    width: 100%;
    /* Assure que le bouton occupe toute la largeur disponible */
    box-sizing: border-box;
    /* Inclut le padding et la bordure dans la largeur totale */
    cursor: pointer;
    /* Change le curseur pour indiquer que c'est cliquable */
    overflow: visible;
}

.toolsButton img {
    margin-right: 10px;
    width: 30px;
    /* Largeur de l'image */
    height: 30px;
    /* Hauteur de l'image */
    filter: brightness(0) invert(1);
    /* Inverser les couleurs de l'image */
}

/* Icon font styling to match previous image sizing */
.toolsButton i {
    margin-right: 10px;
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.toolsButton span {
    color: var(--sidemenu-color);
    font-size: var(--font-size);
}

.toolsButton:hover {
    background-color: rgba(128, 128, 128, 0.281);
}

#logoutButton {
    position: absolute;
    /* Remplace absolute par relative */
    bottom: 0;
    display: flex;
    margin-bottom: 3%;
    width: 100%;
    /* S'assure que le bouton occupe toute la largeur disponible */
}

#logoutButton img {
    width: 20px;
    /* Largeur de l'image */
    height: 20px;
    /* Hauteur de l'image */
    filter: brightness(0) invert(1);
    /* Inverser les couleurs de l'image */
    margin-left: 7px;
    margin-right: 12px;
}



@media screen and (max-width: 768px) and (max-height: 1024px) {
    #sidemenu {
        position: fixed;
        z-index: 99999;
        height: 50px;
        width: 100%;
        bottom: 0px;
        min-height: 0px;
        border-radius: 0;
        background-color: var(--background-color-mobil);

    }

    #sidemenu #toolsList_container {
        padding: 10px;
        margin: 0;
        align-items: center;
        height: 50px;
    }

    #sidemenu #toolsList_container #toolsList .toolsButton span,
    #extendButton {
        display: none;
    }

    #toolsList_container,
    #toolsList {
        display: flex;
        flex-direction: row;
    }

    #logoutButton {
        position: relative;
        margin-bottom: 0;
    }

    #logoutButton img {
        padding-top: 0px;
        margin-left: 12px;
    }

    #chatbot_redirect img {
        padding-bottom: 2px;
    }

    #topcontainer {
        margin-bottom: 5px;
        width: 60%
    }





}