
.toc-toggle {
    background: none;
    border: none;
    color:#0A246A;
    width: 100%;
    text-align: left;
    padding: 10px 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    position: relative;
    border-bottom: 1px solid #e0e0e0; /* séparateur gris clair */
}

/* Flèche à droite */
.toc-toggle::after {
    content: "▸"; /* flèche droite */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg); /* par défaut vers le bas */
    transition: transform 0.2s ease;
}

/* Quand le toggle est actif (accordéon ouvert), la flèche revient à droite */
.toc-toggle.active::after {
    transform: translateY(-50%) rotate(0deg); /* flèche vers la droite */
}
/* Hover léger pour le toggle */
.toc-sub{
    list-style: none;
}
.toc-toggle:hover,
.toc-toggle:focus{
    background: #fff;
    border: none;
    color:#0A246A;
}
/* Container principal */
.doc-navigator-container {
    display: flex;
    gap: 75px;
    align-items: flex-start;
}

/* Sidebar / Sommaire */
.doc-sidebar{
    flex: 0 0 320px;
    max-height: 75vh;
    min-height: 75vh;
    overflow-y: auto;
    position: sticky;
    top: 20px;
    padding: 15px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.doc-toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-toc li {
    margin-bottom: 10px;
}

.doc-sub-toc {
    list-style: none;
    margin: 5px 0 0 15px;
    padding: 0;
}

/* Contenu principal */
.doc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Gap entre les cards */
}

/* Card section */
.doc-section *{
    color: #0A246A;
}
.doc-section{
    margin-top: 50px;
}
.doc-section:first-child{
    margin-top: 0;
}
.doc-sidebar{
    padding: 20px;
}
.doc-section{
    padding: 75px;
}
.doc-section,.doc-sidebar{
    background: #ffffff;

    box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.doc-section:hover, .doc-sub-section:hover {
    transform: translateY(-2px);
}

/* Titres */
.doc-section h3, .doc-sub-section h5 {
    margin-top: 0;
}

/* Texte */
.doc-text {
    margin-top: 10px;
}

/* Images dans le contenu */
.doc-text img {
    max-width: 100%;
    display: block;
    margin: 15px 0;
}
.doc-navigator-container {
    background: #fcfcfd;
    padding: 50px 25px 50px 0;
}
/* Scroll smooth pour liens internes */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .doc-navigator-container {
        flex-direction: column;
    }
    .doc-sidebar {
        flex: 1 1 auto;
        max-height: none;
        position: relative;
        margin-bottom: 20px;
    }
}
