#content {
    width: 80vw;
    /* 100vh moins la navbar (70px, #navbarmain) et les marges haut/bas : sinon la page défile toujours */
    min-height: calc(100vh - 110px);
    min-height: calc(100dvh - 110px);
    transition: all 0.3s;
    margin: 20px auto;
}
#subcontent {
    margin: 0 auto;
    width: 900px;
}
@media only screen and (max-width: 692px) {
    #content {
        margin: 0 5%;
        /*width: 550px;*/
        min-height: calc(100vh - 70px);
        min-height: calc(100dvh - 70px);
        transition: all 0.3s;
    }
    #content.content-full {
        margin: 0 5%;
        min-width: 1200px!important;
        min-height: calc(100vh - 70px);
        min-height: calc(100dvh - 70px);
        transition: all 0.3s;
    }
}

#content.content-full {
    margin: 0 3%;
    width: 94%;
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
    transition: all 0.3s;    
}

#sidebarmenu {
    min-width: 250px;
    max-width: 250px;
    transition: all 0.3s;
    margin-left: -15px;
    border-right: 1px solid lightgray;
    background-color: rgb(249 249 249);
    z-index: 10;
}
.wrapper {
    display: flex;
    align-items: stretch;
}
@media only screen and (max-width: 692px) {

    .wrapper {
        display: flex;
        align-items: stretch;
        position: relative;
    }
    
    #sidebarmenu {
        min-width: 250px;
        max-width: 250px;
        transition: all 0.3s;
        margin-left: -15px;
        border-right: 1px solid lightgray;
        background-color: #F7F7F7;
        z-index: 2;
    }
}


#sidebarmenu.active {
   margin-left: -240px;
    text-align: center;
}

#sidebarmenu .btn-rond-side {
    width: 28px;
    height: 28px;
    background-color: white;
    border-radius: 100%;
    border: lightgray 0.5px solid;
    text-align: center;
    padding: 0px 1px!important;
    margin: 0 4px;
    z-index: 500;
}

#sidebarmenu .btn-rond-side:hover {
    width: 28px;
    height: 28px;
    background-color: rgb(202,202,202); /* remplacé par une couleur sans alpha pour masquer ce qui est derrière rgb(204,41,43,0.25);*/
    fill: rgb(204,41,43,1);
    border: rgb(202,202,202) 0.5px solid;
    border-radius: 100%;
    text-align: center;
    padding: 0px 1px!important;
    margin: 0 4px;
    z-index: 500;
}

#sidebarmenubutton {
    position: relative; 
    top:20px; 
    left: 230px;
}

#sidebarmenu .btn-rond-side svg:hover {
    fill: inherit;
}

#sidebarmenu .btn-rond-side svg {
    width: 12px;
    height: 12px;
}


#sidebarmenu li {
    list-style-type: none;
    margin-left: 7px;
}
#sidebarmenu li a {
    margin-left: -5px;
}
#sidebarmenu li ul {
    padding-left: 0;
}

#sidebarmenu .collapse li a{
    margin-left: 0;
}




#sidebarmenu{
    background:#fff;
    border-right:1px solid #e9ecef;
}

.sidebar-link{
    color:#6c757d;
    padding:12px 18px;
    border-radius:12px;
    margin-bottom:6px;
    transition:.2s;
    display:flex;
    align-items:center;
    text-decoration:none;
}

.sidebar-link:hover{
    background:#f8f9fa;
    color:#0d6efd;
}

.sidebar-link.active{
    background:#e8f1ff;
    color:#0d6efd;
    font-weight:600;
}

.sidebar-link i{
    font-size:1.1rem;
}
/* Zone de menu de la sidebar : hauteur de l'écran moins la navbar (70px) et le bouton d'ouverture (28px), sinon la page défile toujours */
.sidebarmenu-scroll {
    height: calc(100vh - 98px);
    height: calc(100dvh - 98px);
}

/* Sidebar figée sous la navbar (sticky-top, 70px) : le bouton d'ouverture et
   le menu restent visibles quand on fait défiler une page longue.
   align-self: flex-start sinon .wrapper (align-items: stretch) l'étire sur
   toute la hauteur de la page et le sticky n'a aucun effet. */
#sidebarmenu {
    position: sticky;
    top: 70px;
    align-self: flex-start;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
}
