#commandesListes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: 25%;
}

#tableOfContentsCommands,
#tableOfContentsFunctions {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: #202020;
    padding: 10px;
    z-index: 999;
    max-height: 100%;
    height: 100%;
    overflow-y: auto;
    width: 150px;
    border-radius: 5px;
    scrollbar-width: thin;
    scrollbar-color: #da6334 #333;
    display: none; /* Caché par défaut */
}

#tableOfContentsCommands button,
#tableOfContentsFunctions button {
    display: block;
    margin-bottom: 10px;
    background-color: transparent;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Styles pour personnaliser les barres de défilement */
#tableOfContentsCommands::-webkit-scrollbar,
#tableOfContentsFunctions::-webkit-scrollbar {
    width: 10px;
}

#tableOfContentsCommands::-webkit-scrollbar-thumb,
#tableOfContentsFunctions::-webkit-scrollbar-thumb {
    background-color: #da6334;
    border-radius: 5px;
}

#tableOfContentsCommands::-webkit-scrollbar-track,
#tableOfContentsFunctions::-webkit-scrollbar-track {
    background-color: #333;
}

#tableOfContentsCommands::-moz-scrollbar-thumb,
#tableOfContentsFunctions::-moz-scrollbar-thumb {
    background-color: #da6334;
    border-radius: 5px;
    border: none;
}

#tableOfContentsCommands::-moz-scrollbar,
#tableOfContentsFunctions::-moz-scrollbar {
    width: 10px;
}

#tableOfContentsCommands::-moz-scrollbar-track,
#tableOfContentsFunctions::-moz-scrollbar-track {
    background-color: #333;
}


.commandesBtn {
    display: block;
    margin-bottom: 10px;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    height: 80px;
}

.subBtnCommandes {
    display: block;
    margin-left: 10px;
    background-color: #555;
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 20px;
    text-align: left;
}

/* Reste du CSS inchangé */


@keyframes highlight {
    from {
        background-color: rgb(138, 138, 138);
    }
    to {
        background-color: transparent;
    }
}

.highlight {
    animation: highlight 1s ease;
}

#moderation,
#fun,
#utilitaire,
#fonctionsSection {
    flex: 1;
}

#commandesListes h2,
#fonctionTitle {
    color: #da6334;
}

#multitaskCatImage {
    max-width: 1600px; /* Ajustez la largeur selon vos préférences */
    max-height: 600px;
    margin-bottom: 20px;
    margin-top: 5%;
    margin-left: 8%;

}

#commandesPouetBtn{
    margin-left: 46.5%;
    margin-top: 8%;
    height: 35px;
    width: 35px;
    cursor: pointer;
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 30px; /* Ajustez la taille de la flèche ici */
    border: none;
    outline: none;
    background-color: rgba(81, 81, 81, 0.653);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    width: 70px;
}
#topBtn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}



/* Style pour le texte du bouton */
#topBtn::before {
    display: none;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

#topBtn:hover::before {
    display: block;
}

/* Style des boutons */
.button {
    background-color: #da6334;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
}


/* Centrer les boutons */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1vh;
}

/* Style des sections */
.section {
    background-color: #2c2c2c;
    border-radius: 8px;
    display: none;
    margin-left: 20%; /* Réglez la marge gauche selon vos besoins */
    width: 60%; /* Définissez la largeur de la section */
}


/* Section active (lorsqu'elle est affichée) */
.section.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: 20%;
}
.active {
    background-color: rgb(48, 48, 48) !important;
    color: white !important;
}


/* Centrez les boutons */
.center {
    text-align: center;
}

/*fonctions listes*/
#fonctionsSection{
    flex-wrap: wrap;
    width: 60%;
    justify-content: space-between;
    margin-left: 24%;
    background-color: rgb(48, 48, 48);
    border-radius: 8px;
}

.sidebar-hidden {
    display: none;
}

#sidebarToggleBtn {
    margin-left: -10px; /* Modifier cette valeur pour rapprocher le bouton */
    position: fixed;
    font-size: 30px;
    border: none;
    outline: none;
    background-color: #202020;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    width: 70px;
    height: 40px;
    top: 4%;
    z-index: 1000;
    display: none;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 150px;
    height: 90%;
    background-color: transparent;
    transition: transform 0.3s;
}

.collapsed {
    transform: translateX(-100%);
}

/* Styles pour les appareils mobiles */
@media screen and (max-width: 799px) {
    #sidebarToggleBtn {
        display: block; /* Afficher uniquement lorsque l'écran est inférieur à 600px */
        margin-left: 0;
    }

    #sidebar {
        display: none; /* Cacher la side barre uniquement lorsque l'écran est inférieur à 600px */
    }

    #multitaskCatImage{
        position: relative;
        max-width: 90%;
        margin-left: 5%;
        height: auto;
    }

    #commandesPouetBtn{
        margin-left: 36%;
        height: 10%;
        width: 5%;
        margin-top: 5%;
    }

    #commandesListes{
        max-width: 500px;
    }

    #fonctionsSection{
        flex-wrap: wrap;
        width: 98%;
        justify-content: space-between;
        margin-left: -6%;
        background-color: rgb(48, 48, 48);
        border-radius: 8px;
    }

    #commandesListes {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-left: 7.5%;
        width: 85%;
    }
} 

@media screen and (min-width: 1000px) and (max-width: 1024px) {
    #sidebarToggleBtn {
        display: block; /* Afficher uniquement lorsque l'écran est inférieur à 600px */
        margin-left: 0;
    }

    #sidebar {
        display: none; /* Cacher la side barre uniquement lorsque l'écran est inférieur à 600px */
    }

    #multitaskCatImage{
        position: relative;
        max-width: 90%;
        margin-left: 5%;
        height: auto;
    }

    #commandesPouetBtn{
        margin-left: 36%;
        height: 10%;
        width: 5%;
        margin-top: 5%;
    }

    #commandesListes{
        max-width: 500px;
    }

    #fonctionsSection{
        flex-wrap: wrap;
        width: 75%;
        justify-content: space-between;
        margin-left: 11%;
        background-color: rgb(48, 48, 48);
        border-radius: 8px;
    }

    #commandesListes {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-left: 25%;
        width: 100%;
    }
} 