.widget_toc .widget-title>span {
    position: relative;
    z-index: 30;
}

.widget_toc .btn-sommaire {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: unset;
    color: inherit!important;
    border: unset;
    cursor: pointer;
    outline: 0 !important;
    z-index: 1000
}

.widget-toc-body {
    position: relative;
    overflow-y: auto;
    background-color: #fff;
    z-index: 1;
}

#widget-toc li {
    display: block;
    border-bottom: none !important;
}

#widget-toc a {
    display: block;
    padding: 5px 10px 5px 12px;
    border-left: 3px solid transparent;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 14px;
    color: var(--primary);
    /*border-bottom: 1px solid var(--border);*/
}

#widget-toc a.active,
#widget-toc a:hover {
    color: #44331E !important;
    border-left-color: var(--primary);
    background-color: transparent !important;
}

#widget-toc a.visible,
#widget-toc a:hover {
    font-weight: 600;
	letter-spacing:-.01em
}

#widget-toc .depth-1>li>a {
    padding: 5px 10px 5px 17px;
}

#widget-toc .depth-2>li>a {
    padding: 5px 10px 5px 22px;
}

.widget-toc .widget-toc-body {
    position: relative;
    list-style-type: none;
    overflow-y: hidden;
    max-height: 0;
    transition: .3s;
}
/*
@media(max-width:991px) {
    .widget_toc {
        position: fixed !important;
        top: 100px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        transform: translate(calc(100% - 10px));
        transition: transform .5s .5s, max-height .5s;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
        z-index: 999;
        overflow: hidden;
    }
    .widget_toc.open {
        transform: translateX(0);
        transition: max-height .5s .5s, transform .5s;
    }
    .widget_toc .widget-title {
        margin-bottom: 0;
    }
    .widget_toc .widget-title>span {
        position: relative;
        display: block !important;
        padding: 10px 15px !important;
        line-height: 16px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        text-align: center;
        z-index: 30;
    }
    .widget_toc.open .widget-title>span {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
	
	.widget_toc.open .widget-title>span:after {
		content : none!important;
	}
	
	
    .btn-sommaire {
        left: -15px;
        padding-left: 25px;
        padding-right: 25px;
		max-width: 20px;
    }
	
	.btn-sommaire {
		
	}
	
    .btn-sommaire i {
        transform: rotate(0);
        transition: .5s .5s;
    }
    .widget_toc.open .btn-sommaire i {
        transform: rotate(180deg);
    }
    .widget_toc .widget-toc-body {
        position: relative;
        list-style-type: none;
        overflow-y: hidden;
        max-height: 0;
        transition: .3s;
    }
    .widget_toc.open .widget-toc-body {
        max-height: 70vh;
        transition: .5s .5s;
    }
    .widget_toc .widget-toc-body ul {
        max-height: calc(70vh - 1rem);
        overflow: auto;
        transform-origin: top center;
        transform: translateY(-100%);
        transition: .3s;
    }
    .widget_toc.open .widget-toc-body ul {
        overflow-y: auto;
        transform: translateY(0);
        transition: .5s .5s;
    }
}

@media(min-width:992px) {*/
    .widget_toc .widget-title>span {
        padding-right: 30px !important
    }
	
    .btn-sommaire {
        background-color: transparent;
        right: 5px;
        top: 0;
    }
    .btn-sommaire i {
        transform: rotate(270deg);
        transition: .5s;
    }
    .widget_toc .widget-title {
        text-align: left !important
    }
    .widget_toc.open .btn-sommaire i {
        transform: rotate(90deg);
    }
	
    .widget_toc .widget-toc-body {
        overflow-y: auto;
        max-height: 116px;
        transition: max-height .3s;
        background-image: linear-gradient(to top, rgba(255, 255, 255, 0), var(--bg-light) 70%), linear-gradient(to top, var(--bg-light) 30%, rgba(255, 255, 255, 0)), radial-gradient(farthest-side at 50% 0%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0));
        background-repeat: no-repeat;
        background-color: var(--bg-light);
        background-size: 100% 40px, 100% 40px, 100% 10px, 100% 10px;
        background-position: 0 0, 100% 100%, 50% 0, 50% 100%;
        background-attachment: local, local, scroll, scroll;
        scrollbar-width: thin;
        scrollbar-color: #49868C #aaa;
        scroll-snap-type: x mandatory;
        touch-action: pan-x;
    }
	
    .widget_toc.open .widget-toc-body {
        background: var(--bg-light);
        max-height: 100vh;
        transition: max-height .5s;
    }
    .widget-toc-body::-webkit-scrollbar {
        width: 5px;
        height: 8px;
        background-color: #aaa;
    }
    .widget-toc-body::-webkit-scrollbar-thumb {
        background: var(--primary);
    }
    .widget_toc .widget-title {
        /*margin-bottom : 0;*/
    }
    .content-wrapper .widget_toc .widget-title span {
        display: block;
    }
    .widget_toc .widget-toc-body {
        /*border-left: 1px solid var(--border);
        border-bottom: 1px solid var(--border);*/
        width: 100%;
    }
    .content-wrapper .widget_toc.open .widget-toc-body {
        /*border-right: 1px solid var(--border);*/
    }
/*}*/

@media(max-width:991px) {
	.content-wrapper .widget_toc{
		padding-top: 1em;
		margin-bottom: 1.5rem!important
	}
	
	.content-wrapper .widget_toc .widget-title span{
		margin-bottom: .6rem;
	}
	
	

}