/* ================= Base ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    color: #1e293b;
}

/* ================= Navbar ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;
    background: #030056;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 999;
}

.navbar h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.navbar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.navbar a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.6rem;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

.navbar a:hover {
    background: #3c3998;
    color: #fff;
}

/* ================= Content ================= */
.content {
    flex: 1;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow-y: auto;
    margin-left: 220px;
    transition: margin-left 0.3s ease;
}

.row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.row img {
    width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.row p {
    flex: 1;
    line-height: 1.6;
    font-size: 1.1rem;
}

.row.reverse {
    flex-direction: row-reverse;
}

/* ================= Toggle Button ================= */
.toggle-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: #030056;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: #3c3998;
}

.navbar.hidden {
    transform: translateX(-100%);
}

.navbar.hidden ~ .content {
    margin-left: 0;
}

/* ================= Hero ================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: relative;
    color: white;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.hero-overlay h1 {
    font-size: 4rem;
    font-weight: bold;
}

/* ================= Media Queries ================= */

/* Tablette (≤1024px) */
@media (max-width: 1024px) {
    .content {
        padding: 1.5rem 2rem;
        margin-left: 180px;
    }

    .row img {
        width: 180px;
    }

    .hero-overlay h1 {
        font-size: 3rem;
    }

    .navbar {
        width: 180px;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    body {
        flex-direction: column;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 0.5rem 1rem;
        justify-content: space-between;
        align-items: center;
    }

    .navbar h2 {
        font-size: 1.2rem;
        margin: 0;
    }

    .navbar nav {
        flex-direction: column;
        gap: 0.3rem;
        position: absolute;
        top: 3rem;
        left: 0;
        width: 100%;
        background: #030056;
        display: none;
        padding: 0.5rem 0;
    }

    .navbar.nav-open nav {
        display: flex;
    }

    .content {
        margin-left: 0;
        padding: 1rem;
    }

    .row {
        flex-direction: column;
    }

    .row.reverse {
        flex-direction: column;
    }

    .row img {
        width: 90%;
        max-width: 300px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }
}
