/* Styles pour la documentation du projet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* En-tête */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: #3498db;
}

.main-nav a.active {
    background-color: #3498db;
}

/* Structure principale */
.main-container {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-right: 1px solid #ddd;
}

.sidebar h3 {
    color: #2980b9;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #e0e0e0;
}

.sidebar a.active {
    background-color: #3498db;
    color: white;
}

/* Styles pour les groupes pliables */
.folder-group {
    margin-bottom: 0.5rem;
}

.folder-group-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.folder-group-header:hover {
    background-color: #dee2e6;
}

.toggle-icon {
    margin-right: 0.5rem;
    font-size: 0.8rem;
    width: 1rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.folder-group-content {
    margin-left: 1rem;
    padding-left: 0.5rem;
    border-left: 2px solid #dee2e6;
    display: block; /* Par défaut déplié */
}

.folder-group-content li {
    margin-top: 0.5rem;
}

/* Contenu principal */
.content {
    flex: 1;
    padding: 2rem;
}

h1 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

h2 {
    color: #2980b9;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.section {
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Pied de page */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links, .footer-contact, .footer-copyright {
    margin: 1rem;
}

.footer-links a {
    color: #3498db;
    margin: 0 0.5rem;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
