/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    background-color: #f7f9fc;
    display: flex;
    min-height: 100vh;
    color: #222;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    background-color: #004c8c;
    color: white;
    position: fixed;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease;
    z-index: 10;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.sidebar h1 {
    font-size: 1em;
    line-height: 1.3;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav li {
    margin-bottom: 10px;
}

.sidebar nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background-color: #0073e6;
}

/* --- MAIN CONTENT --- */
.content {
    margin-left: 260px;
    padding: 40px;
    max-width: 900px;
}

.content h2 {
    color: #004c8c;
    margin-top: 25px;
    margin-bottom: 10px;
}

.content p {
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

/* --- HEADER (mobile only) --- */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    background-color: #004c8c;
    color: white;
    padding: 10px 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
}

.image-article {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    .mobile-header {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        height: 100%;
        width: 240px;
        z-index: 30;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 120px 20px 20px; /* ✅ Augmenté pour que le H1 ne soit plus caché */
    }

    .sidebar h1 {
        font-size: 0.9em;
    }
}

