.toc-bouton {
    background-color: transparent;
    margin-right: 10px;
    padding: 0;
    color: #fff;
    font-variant: small-caps;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
    overflow-wrap: normal;
    hyphens: none;
}

.afficher {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.toc-bouton:hover {
    opacity: 0.7;
}

.toc-bouton img {
    width: 32px;
}

.toc-bouton::after {
    font-family: font1, serif;
    content: 'Sommaire';
    margin-right: 20px;
}

@media screen and (max-width: 768px) {
    .toc-bouton::after {
        display: none;
    }
}

.toc-overlay,
.toc-wrapper {
    visibility: hidden;
    position: fixed;
    opacity: 0;
    display: none;
    transition: all 0.25s ease;
}

.toc-overlay {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
}

.toc-wrapper {
    padding: 0 0 2.5% 0;
    margin: 0 auto;
    top: 10%;
    left: 0;
    right: 0;
    background: #ffffff;
    max-width: 600px;
    max-height: 85vh;
    min-width: 250px;
    width: 90%;
    border-radius: 10px;
    overflow-y: auto;
    color: #000;
    font-size: 1rem;
    z-index: 2500;
}

.toc-wrapper-header {
    display: flex;
    justify-content: space-between;
    padding: 30px 4% 10px 4%;
    flex-flow: row;
    align-items: center;
    /* position: sticky;
    top: 0; */
    background: #fff;
    border-bottom: solid 1px #ddd;
    box-shadow: 0px 4px 4px 0px #898989;
}

#toc-burger.burger-menu {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin-right: 20px;
}

/* si indépendant */
.uptoc.toc-solo {
    display: block;
    float: right;
    border: 1px solid #c1c1c1;
    border-radius: 6px;
    background-color: #ececec;
    padding: 1rem;
    margin: 0 0 1.2rem 1.2rem;
    position: relative;
}

.uptoc.toc-module {
    padding: 5% 3% 1% 8%;
}

.ui-slideouttab-panel .uptoc {
    margin: 0;
    float: none;
    background-color: transparent;
    border: none;
}

.uptoc li {
    list-style-type: none;
    color: #000;
    margin: 0 0 0 .5rem !important;
    font-size: 98%;
}

.ui-slideouttab-panel .uptoc li {
    list-style-type: none;
}

.uptoc li a {
    color: #000;
}

li.toc-level-1>a {
    font-weight: bold;
    color: var(--couleur1);
}

li.toc-level-2>a {
    font-weight: normal;
    font-size: 90%;
}

li.toc-level-3>a {
    font-weight: normal;
    font-size: 90%;
}

li.toc-level-4>a {
    font-weight: normal;
    font-size: 90%;
}

li.toc-level-5>a {
    font-weight: normal;
    font-size: 90%;
}

li.toc-level-6>a {
    font-weight: normal;
    font-size: 90%;
}

#toc-fermer {
    display: block;
    float: right;
    margin: 0 0 10px 10px;
    width: 32px;
    height: auto;
}

#toc-fermer:hover {
    opacity: 0.7;
}

/* Remove the gutter of the scrollbar */
::-webkit-scrollbar {
    width: 12px;
    /* Adjust the width as needed */
}

::-webkit-scrollbar-track {
    background: transparent;
    /* Set the track background to transparent */
}

::-webkit-scrollbar-thumb {
    background: #888;
    /* Style the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Style the thumb on hover */
}

/* Style the scrollbar in Firefox */
/* Note that this won't affect the gutter */
/* Track (the background of the scrollbar) */
* {
    scrollbar-width: thin;
    /* "auto" or "thin" to show the scrollbar, "none" to hide it */
}

/* Thumb (the draggable scrolling handle) */
* {
    scrollbar-color: #888 #555;
    /* thumb color and track color */
}