/*
================================================================================
Fichier : assets/css/3-content/table-of-contents.css
Description : Fichier CSS pour la mise en forme des tables des matières
================================================================================
Version 1.0
Auteur : Emile SNYERS 
Date : 2025-06-10
/* LICENCE ET CONDITIONS D'UTILISATION
----------------------------------------

Emile SNYERS - Tous droits réservés - 2025

📢Toute utilisation nécessite une autorisation préalable du propriétaire (Emile SNYERS).
🚨Usage non commercial uniquement.

Type d'utilisation autorisée: 
- Utilisation pour des projets éducatifs ou associatifs.
- Ne pas redistribuer sans autorisation.

Critères d'attribution d'une autorisation: 
- Contribution à des projets éducatifs ou associatifs.
- L'entraide et le partage du savoir.
- Contribue à la promotion de l'éducation et de la culture.
----------------------------------------
 */

/*
/*
==================================================================================
File: assets/css/3-content/table-of-contents.css
Description: CSS file for formatting tables of contents
========================================================================================
Version 1.0
Author: Emile SNYERS
Date: 2025-06-10
/* LICENSE AND TERMS OF USE
----------------------------------------

Emile SNYERS - All rights reserved - 2025

📢Any use requires prior authorization from the owner (Emile SNYERS).
🚨Non-commercial use only.

Type of authorized use:
- Use for educational or community projects.
- Do not redistribute without authorization.

Permission granting criteria:
- Contribution to educational or community projects.
- Mutual assistance and knowledge sharing.
- Contributes to the promotion of education and culture.
----------------------------------------
*/

/*

/* ==================================================================== TABLES DES MATIÈRES
        TABLES DES MATIÈRES 
    ==================================================================== */

    .table-of-contents {
        background-color: var(--theme-tertiary);
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 30px;
        box-shadow: var(--theme-section-shadow);
    }

    .table-of-contents h3 {
        margin-top: 0;
        border-bottom: 2px solid var(--theme-primary);
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .table-of-contents ol {
        margin: 0;
        padding-left: 25px;
        counter-reset: item;
        list-style-type: none;
    }

    .table-of-contents li {
        margin-bottom: 10px;
        position: relative;
        padding-left: 10px;
    }
    
    .table-of-contents li:before {
        content: counter(item) ".";
        counter-increment: item;
        position: absolute;
        left: -20px;
        color: var(--theme-primary);
        font-weight: bold;
    }

    .table-of-contents a {
        text-decoration: none;
        color: var(--theme-text);
        transition: color 0.3s ease, transform 0.2s ease;
        display: inline-block;
    }

    .table-of-contents a:hover {
        color: var(--theme-accent);
        transform: translateX(3px);
    }
    
    .table-of-contents ol ol {
        margin-top: 5px;
        margin-bottom: 5px;
        counter-reset: subitem;
    }
    
    .table-of-contents ol ol li:before {
        content: counter(item) "." counter(subitem);
        counter-increment: subitem;
        font-size: 0.9em;
    }
    
    /* Table des matières responsive */
    @media (max-width: 768px) {
        .table-of-contents {
            padding: var(--spacing-md);
        }

        .table-of-contents h3 {
            font-size: var(--font-size-lg);
        }

        .table-of-contents ol {
            padding-left: 20px;
        }

        .table-of-contents li {
            margin-bottom: var(--spacing-sm);
        }
    }
/* ====================================================================
   TABLES DES MATIÈRES SPÉCIFIQUES AUX CHAPITRES
==================================================================== */
.table-of-contents-chapitre {
    background-color: var(--theme-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--theme-section-shadow);
}
.table-of-contents-chapitre h3 {
    color: var(--theme-text-titre);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}
.table-of-contents-chapitre ol {
    padding-left: var(--spacing-lg);
}
.table-of-contents-chapitre li {
    margin-bottom: var(--spacing-md);
}
.table-of-contents-chapitre a {
    color: var(--theme-text);
    font-weight: bold;
    transition: color var(--transition-speed);
}
.table-of-contents-chapitre a:hover {
    color: var(--theme-accent);
}

.table-of-contents-chapitre ol ol {
    padding-left: var(--spacing-md);
}