* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    
    background: #f4f4f4;
}

.header {
    width: 100%;
    background: #1c78b8;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

.logo {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    line-height: 1;
    position: relative;
    z-index: 1100;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 24px 18px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.3s;
}

.nav-item > a:hover {
    background: rgba(255,255,255,0.08);
}

/* Sous-menu */
.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.submenu li a {
    display: block;
    padding: 14px 18px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: #f5f5f5;
}

/* Grand écran = survol */
@media (min-width: 992px) {
    .has-submenu:hover .submenu {
        display: block;
    }
}

/* Petit écran */
@media (max-width: 991px) {
    .navbar {
        justify-content: space-between;
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    .logo {
        display: block;
        color: white;
        font-size: 20px;
        font-weight: bold;
    }

    .menu-toggle {
        display: block !important;
        flex: 0 0 auto;
    }

    .nav-menu {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 12px;
        background: #6f93c9;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .nav-item > a {
        padding: 16px 14px;
        width: 100%;
    }

    .submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: white;
    }

    .has-submenu.open .submenu {
        display: block;
    }

    .submenu li a {
        padding: 14px 22px;
        color: black;
        background: white;
    }

    .submenu li a:hover {
        background: #ececec;
    }
}
