/* Conteneur du sommaire accordéon */
.sommaire-accordion {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #2c5f8d;
    border-radius: 6px;
    margin: 0 0 30px; 
    overflow: hidden;
    width: fit-content;
    min-width: 300px;
}
.sommaire-header {
    background: #fff;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1em;
    color: #2c5f8d;
    transition: background 0.3s ease;
    white-space: nowrap;
}
.sommaire-header:hover {
    background: #f8f9fa;
}
.sommaire-chevron {
    transition: transform 0.3s ease;
    font-size: 0.8em;
    margin-left: 15px;
}
.sommaire-header.active .sommaire-chevron {
    transform: rotate(180deg);
}
.sommaire-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #fff;
    width: auto;
}
.sommaire-content.active {
    max-height: 1200px;
    padding: 6px 22px 14px; 
}
.sommaire-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.sommaire-list li {
    margin: 0.5em !important; 
    padding: 0 !important;
    list-style: none !important;
    position: relative;
    line-height: 1.4;
}
/* Réinitialiser tous les styles de liste */
.sommaire-list li::before {
    content: none !important;
}
/* Liens H2 */
.sommaire-list a.h2-link {
    color: #2c5f8d;
    font-weight: 600;
    display: block;
    padding: 1px 0 1px 20px !important;
    position: relative;
    transition: none;
    text-decoration: none !important; /* Pas de soulignement par défaut */
}
/* Soulignement au survol pour H2 */
.sommaire-list a.h2-link:hover {
    text-decoration: underline !important;
}
/* Puce pour H2 */
.sommaire-list a.h2-link::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c5f8d;
    font-weight: bold;
}
/* Liens H3 */
.sommaire-list a.h3-link {
    color: #555;
    font-weight: 400;
    display: block;
    padding: 1px 0 1px 40px !important;
    font-size: 0.95em;
    position: relative;
    transition: none;
    text-decoration: none !important; /* Pas de soulignement par défaut */
}
/* Soulignement au survol pour H3 */
.sommaire-list a.h3-link:hover {
    text-decoration: underline !important;
}
/* Puce pour H3 */
.sommaire-list a.h3-link::before {
    content: "◦";
    position: absolute;
    left: 20px;
    color: #555;
}
@media (max-width: 1023px) {
    .sommaire-accordion {
        width: 100%;
        min-width: auto;
    }
    
    .sommaire-header {
        font-size: 1em;
    }
    
    .sommaire-list a.h2-link {
        font-size: 0.95em;
    }
    
    .sommaire-list a.h3-link {
        font-size: 0.9em;
        padding: 1px 0 1px 35px !important;
    }
    
    .sommaire-list a.h3-link::before {
        left: 15px;
    }
}