/* =====================
   Base
===================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #212529;
}

a {
    color: rgb(26.52,65.96,154.36);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: #d99c2b;
        text-decoration: none;
    }

/* =====================
   Layout
===================== */

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* =====================
   Sidebar
===================== */

#sidebar {
    position: fixed;
    min-width: 200px;
    max-width: 200px;
    background: #d9e3e4;
    color: black;
    top:0;
    bottom:0;
}

    #title_site {
        padding: 20px;
        font-size: 20px;
        text-align: center;
    }

/* Menu */
#sidebar ul {
    padding: 0;
    margin: 0;
    margin-left: 10px
}

        #sidebar ul li {
            list-style: none;
            font-size: 16px;
        }

            #sidebar ul li > ul {
                margin-left: 10px;
            }

                #sidebar ul li > ul li {
                    font-size: 14px;
                }

            #sidebar ul li a {
                display: block;
                color: black;
                transition: color 0.3s ease, background 0.3s ease;
            }

                #sidebar ul li a:hover {
                    color: black;
                }

            #sidebar ul li.active > a {
                color: rgb(26.52,65.96,154.36);
            }

    /* Footer */

    #sidebar .footer {
        text-align: center;
        font-size: 13px;
        color: gray;
        /*margin-top: 40px;*/
        position:fixed;
        bottom: 0;
    }

/* =====================
   Content
===================== */

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s ease;
    margin-left:220px;
}

.figure {
    width: 100%;
}

.img-fluid {
    max-width: 90%;
    height: auto;
}

/* =====================
   Button
===================== */
#sidebarCollapse {
    background: #d9e3e4;
    border: none;
    color: #000;
    padding: 8px 12px;
    width: 30px;
    height: 30px;
    transition: background 0.3s ease;
    display: none;
}

    #sidebarCollapse:hover {
        background: rgb(26.52,65.96,154.36);
    }



/* Sous-menu */

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .submenu.open {
        max-height: 500px;
    }

/* Icône flèche */

.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .submenu-toggle .arrow {
        width: 8px;
        height: 8px;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    /* Rotation quand ouvert */

    .submenu-toggle.open .arrow {
        transform: rotate(-135deg);
    }


/* Liste à cocher */


ul.listCheckbox {
    list-style: none;
    padding: 2px;
}


    ul.listCheckbox li {
        display: inline;
    }

        ul.listCheckbox li label {
            display: inline-block;
            border: 1px solid gray;
            color: gray;
            border-radius: 5px;
            margin: 3px 0px;
        }

        ul.listCheckbox li label {
            padding: 3px 3px;
            margin:5px;
            cursor: pointer;
        }

        ul.listCheckbox li input[type="checkbox"]:checked + label {
            border: 1px solid #3F48CC;
            background-color: #00A2E8;
            color: #fff;
            transition: all 0.5s;
        }

        ul.listCheckbox li input[type="checkbox"] {
            position: absolute;
            opacity: 0;
        }
