.thotis-summary-wrap {
    padding: 10px 0;
    position: sticky;
    top: 40px;
    transition: top 0.3s ease;
}

.thotis-summary-wrap.nav-is-fixed {
    top: 152px;
}

.thotis-summary-title {
    color: #2F347E;
    font-size: 16px;
    font-weight: 600;
    font-style: italic;
}

.thotis-summary-separator {
    margin-top: 12px;
    margin-bottom: 12px;
    border: 0;
    border-top: 0.5px solid var(--wp--preset--color--accent-1);
    width: 100%;
}

.thotis-summary {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 12px;
}

.thotis-summary ul {
  padding: 0;
}

.thotis-summary-item {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 2;
    font-style: italic;
    transition: color 0.25s ease;
    a {
      color: var(--wp--preset--color--contrast)!important;
    }
}

.thotis-summary-item:hover,
.thotis-summary-item.active {

    a {
        color: var(--wp--preset--color--accent-1)!important;
        font-weight: 700;
        transition-duration: .3s;
    }
}

.thotis-summary-item.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 4px;
    height: 100%;
    transform: translateY(-50%);
    background-color: var(--wp--preset--color--accent-1);
    border-radius: 2px;
}

.thotis-summary-item:hover {
    color: #101a5c;
}

.thotis-summary-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: #101a5c;
    transition: height 0.2s ease;
}

.thotis-summary-item.active,
.thotis-summary-item.completed {
    color: #101a5c;
}

.thotis-summary-item.active .thotis-summary-dot,
.thotis-summary-item.completed .thotis-summary-dot {
    background: #101a5c;
}

#sidebar.sidebar.dt-sticky-sidebar {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

@media screen and (min-width: 990px) {
    .sidebar-divider-vertical.sidebar-left .sidebar .sidebar-content {
        padding-right: 15px !important;
    }
}

.thotis-summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.thotis-summary-toggle-icon {
    position: relative;
    width: 12px;
    height: 12px;
}

.thotis-summary-toggle-icon::before,
.thotis-summary-toggle-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background: #101a5c;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.thotis-summary-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.thotis-summary-toggle[aria-expanded="true"]
.thotis-summary-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.thotis-summary-count {
    display: none;
}

@media screen and (max-width: 768px) {

    .thotis-summary-wrap {
    /*position: relative;*/
    /* top: auto !important; */
        padding: 10px 0;
    }

    .thotis-summary-separator {
        margin-top: 12px;
        margin-bottom: 0;
    }

    /*
     * NAV FERMÉ
     */
    .thotis-summary {
        position: relative;
        max-height: 0;
        overflow: hidden;
        padding-left: 12px;
        padding-top: 0;
        opacity: 0;
        visibility: hidden;
        transition:
            max-height 0.3s ease,
            opacity 0.2s ease,
            padding-top 0.3s ease,
            visibility 0s linear 0.3s;
    }

    /*
     * NAV OUVERT
     */
    .thotis-summary-wrap.is-open .thotis-summary {
        max-height: 1000px;
        padding-top: 12px;
        opacity: 1;
        visibility: visible;
        transition:
            max-height 0.3s ease,
            opacity 0.2s ease,
            padding-top 0.3s ease,
            visibility 0s linear 0s;
    }

    /*
     * IMPORTANT :
     * Le UL ne doit pas avoir de hauteur imposée
     */
    .thotis-summary ul {
        margin-top: 0;
        margin-bottom: 0;
    }

    .thotis-summary-separator {
        border-top: 3px solid var(--wp--preset--color--accent-1);
    }

    .thotis-summary-title {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .thotis-summary-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        border-radius: 10px;
        line-height: 1;
        font-style: italic;
        font-weight: 700;
        font-size: 16px;
        color: #2F347E;
    }

    .thotis-summary-colon {
      display: none;
    }
}

@media screen and (min-width: 769px) {
    .thotis-summary-toggle {
        cursor: default;
    }

    .thotis-summary-toggle-icon {
        display: none;
    }
}
