/* Import de Google Fonts pour une typographie moderne */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Table des matières */
.table-of-contents {
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 10px;
    background-color: #000000; /* Noir */
    color: #ffffff; /* Texte blanc */
    border: 2px solid #000000; /* Bordure noire */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Ombre pour la profondeur */
    font-family: 'Roboto', sans-serif; /* Typographie moderne */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.table-of-contents:hover {
    background-color: #1a1a1a; /* Léger changement au survol */
    border-color: #333333; /* Changement de bordure au survol */
}

.table-of-contents .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333; /* Ligne de séparation subtile */
    padding-bottom: 10px;
}

.table-of-contents .toc-title {
    font-size: 24px;
    font-weight: 500;
    color: #ffffff; /* Titre blanc */
}

.table-of-contents .toc-toggle {
    cursor: pointer;
    font-size: 20px;
    color: #ffffff; /* Icône blanc */
    transition: transform 0.3s ease, color 0.3s ease;
}

.table-of-contents .toc-toggle:hover {
    transform: rotate(180deg); /* Animation de rotation */
    color: #cccccc; /* Changement de couleur au survol */
}

.table-of-contents ul.toc-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    display: block; /* Assurer que la liste est visible par défaut */
}

.table-of-contents ul.toc-list.hidden {
    display: none; /* Classe pour masquer la liste */
}

.table-of-contents ul.toc-list li {
    margin-bottom: 10px;
}

.table-of-contents ul.toc-list a {
    text-decoration: none;
    font-size: 18px;
    color: #dddddd; /* Gris clair pour les liens */
    transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    position: relative;
}

.table-of-contents ul.toc-list a:hover {
    color: #ffffff; /* Blanc au survol */
    transform: translateX(5px); /* Lien décalé vers la droite */
    background-color: rgba(255, 255, 255, 0.1); /* Légère surbrillance */
    border-radius: 4px; /* Coins arrondis */
}

.table-of-contents ul.toc-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff; /* Ligne blanche */
    transition: width 0.3s ease;
}

.table-of-contents ul.toc-list a:hover::after {
    width: 100%; /* La ligne couvre toute la largeur */
}

.toc-footer {
    display: block;
    text-align: right;
    font-style: italic;
    margin-top: 15px;
    color: #aaaaaa; /* Gris moyen pour le footer */
    transition: color 0.3s ease;
}

.toc-footer:hover {
    color: #ffffff; /* Blanc au survol */
}
