/* Reset et styles de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: #2f2b40;
    color: #837676;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
        margin: 0;
}
/* Contenu principal (nav + article) */
.main-content {
    flex: 1; /* Prend tout l'espace disponible entre nav et footer */
    display: flex;
    flex-direction: column;
}
hr.solid {
    color: #bbb;
    border: none;
    height: 1px;
    background-color: #bbb;
    margin: 10px 0;
}
/* Navigation - Version mobile */
nav {
    background-color: #bdb2d5;
    padding: 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    order: 1;
    flex: 1;
}
nav h2, nav h3 {
    margin: 5px 0;
    font-size: 1.2em;
    color: #333;
    text-align: center;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}
nav ul.show {
    display: block;
}
nav a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #0066cc;
}
nav a.active {
    font-weight: bold;
    color: #000;
}
nav .subchapter {
    padding-left: 30px;
}
/* Bouton menu hamburger */
.menu-toggle {
    display: block;
    background: #555;
    color: white;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    width: 100%;
}
/* Contenu principal */
article {
    flex-grow: 1;
    padding: 20px;
    order: 2;
}
section {
    display: none;
}
section.active {
    display: block;
}
section {
    margin-bottom: 20px;
    padding: 0 10px;
    color: white;
}

section h1, section h2, section h3 {
    color: #ddd;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

section h1 {
    font-size: 1.8em;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

section h2 {
    font-size: 1.5em;
    margin-top: 25px;
}

section h3 {
    font-size: 1.3em;
    margin-top: 20px;
}

section p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #ddd;
    line-height: 1.6;
    text-align: justify;
}

section ul {
    margin-bottom: 15px;
    margin-left: 20px;
}

section li {
    margin-bottom: 8px;
    line-height: 1.5;
}
ul {
    color: white;
}
section li ul {
    color: white;
    margin-top: 5px;
    margin-left: 20px;
}
/* Footer */
footer {
    z-index: 1;
    background-color: #bdb2d5;
    padding: 10px;
    text-align: center;
    margin-top: auto; /* Pousse le footer en bas */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-title {
    font-size: 1.5rem;
    color: #333;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.modal-body p {
    margin-bottom: 1rem;
}



.modal-content {
    background: white;
    padding: 20px;
    max-width: 600px;
    margin: 5% auto;
}

a {
    cursor: pointer;
    color: #645c5c;
}

/* Version desktop */
@media (min-width: 968px) {
    nav {
        width: 230px;
        height: 100vh;
        position: fixed;
        overflow-y: auto;
        order: 0;
    }
    nav ul {
        display: block;
    }
    .menu-toggle {
        display: none;
    }
    article {
        margin-left: 250px;
    }
}


