/* Reset et variables */
:root {
    --menu-width: 20%;
    --contenu-width: 80%;
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #333;
    --link-color: #2980b9;
    --link-hover: #1a5276;
    --bg-color: #f8f9fa;
    --section-bg: #ffffff;
}

/* Police */
body {
    font-family: 'EB Garamond', 'Apple Garamond Light', 'Times', serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

/* Bandeau */
header.bandeau {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
}

header.bandeau h1 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

header.bandeau p {
    margin: 10px 0 0 0;
    font-size: 18px;
    font-style: italic;
    opacity: 0.9;
}

/* Container principal */
.container {
    display: flex;
    min-height: calc(100vh - 120px);
    padding: 0 20px;
    gap: 20px;
}

/* Menu gauche */
.menu-gauche {
    width: var(--menu-width);
    background-color: var(--section-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-gauche ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-gauche li {
    margin-bottom: 12px;
}

.menu-gauche a {
    display: block;
    padding: 10px 15px;
    color: var(--link-color);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-gauche a:hover, .menu-gauche a.active {
    background-color: rgba(41, 128, 185, 0.1);
    color: var(--link-hover);
}

.menu-gauche a.active {
    font-weight: bold;
    background-color: rgba(41, 128, 185, 0.2);
}

/* Contenu droit */
.contenu-droit {
    width: var(--contenu-width);
    background-color: var(--section-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.contenu-droit h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 0;
}

/* Sections cliquables */
section.collapsible {
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

section.collapsible h3 {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section.collapsible h3:hover {
    background-color: var(--secondary-color);
}

section.collapsible h3::after {
    content: '+ ';
    transition: transform 0.3s ease;
}

section.collapsible.active h3::after {
    content: '- ';
}

section.collapsible .content {
    padding: 20px;
    display: none;
    background-color: #f9f9f9;
}

section.collapsible.active .content {
    display: block;
}

/* Introduction */
.introduction p {
    margin-bottom: 16px;
    text-align: justify;
}

.introduction p:first-child {
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .menu-gauche {
        width: 100%;
    }
    
    .contenu-droit {
        width: 100%;
    }
}

/* Impression */
@media print {
    .menu-gauche {
        display: none;
    }
    
    .contenu-droit {
        width: 100%;
        padding: 0;
    }
}