/* Typo geree par Astra, pas de font-family forcee ici */

#bastiat-toc {
    background: #ffffff;
    border: 1px solid #e2ddd6;
    border-radius: 10px;
    padding: 20px 24px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d4b8e8 transparent;
}
#bastiat-toc::-webkit-scrollbar { width: 3px; }
#bastiat-toc::-webkit-scrollbar-track { background: transparent; }
#bastiat-toc::-webkit-scrollbar-thumb { background: #d4b8e8; border-radius: 10px; }

.bastiat-toc-title {
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    color: #1c2b4a;
    margin-bottom: 14px;
    letter-spacing: 0;
    text-transform: none;
}
#bastiat-toc-list,
#bastiat-toc-list ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.bastiat-toc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
#bastiat-toc-list a {
    display: block;
    flex: 1;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 5px;
    transition: all .15s;
    cursor: pointer;
    line-height: 1.4;
}
#bastiat-toc-list a:hover { color: #a07cc5 !important; background: #f0e8f8; }

/* Hierarchie visuelle */
.bastiat-toc-h2 > .bastiat-toc-row a {
    font-size: 13px;
    font-weight: 500;
    color: #1c2b4a;
}
.bastiat-toc-h3 > .bastiat-toc-row a {
    font-size: 12px;
    font-weight: 400;
    color: #6e6e6e;
}
.bastiat-toc-h4 > .bastiat-toc-row a {
    font-size: 12px;
    font-weight: 300;
    color: #999999;
}

/* Indentation enfants */
.bastiat-toc-sub { margin-top: 2px !important; }
.bastiat-toc-h2 > .bastiat-toc-sub { padding-left: 14px !important; }
.bastiat-toc-h3 > .bastiat-toc-sub { padding-left: 14px !important; }

/* Separateur entre H2 */
.bastiat-toc-h2 { margin-bottom: 2px; }
.bastiat-toc-h2 + .bastiat-toc-h2 {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0ebe3;
}

/* Toggle */
.bastiat-toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #d4b8e8;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform .2s, color .15s;
}
.bastiat-toc-toggle.open { transform: rotate(180deg); }
.bastiat-toc-toggle:hover { color: #a07cc5; background: #f0e8f8; }
