.main-header {
    padding: 20px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.logo {
    font-weight: bold;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    white-space: nowrap;
    z-index: 10;
    flex: 1;
}

.nav-content {
    display: flex;
    align-items: center;
    flex: 2;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: start;
    flex: 1;
}

.header-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.text-green { color: var(--color-primary); }

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #383838;
    font-size: 0.9rem;
    white-space: nowrap;
}


.navbar-search-form {
    display: flex;
    align-items: center;
    background: #F8F8F8;
    border: 1px solid #F5F5F5;
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    gap: 10px;
}

.search-field {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
}

.btn-search {
    background-color: #8D50FF;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 20px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 20px;
}

.search-divider {
    width: 1px;
    height: 20px;
    background-color: #eee;
}

.burger-menu, .close-menu, #menu-toggle { display: none; }

@media (max-width: 992px) {
    .logo { flex: none; }

    .navbar {
        display: flex;
        align-items: center;
        position: relative;
        padding: 20px 24px;
    }

    .burger-menu {
        display: flex;
        z-index: 20;
        flex-direction: column;
        gap: 5px;
        margin-right: 15px;
        cursor: pointer;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        flex: none;
        text-align: center;
        width: auto;
        font-size: 1rem;
    }

    .burger-menu span {
        height: 2px;
        background: #333;
        width: 20px;
    }


    .nav-content {
        position: fixed;
        top: 0;
        left: -150%;
        width: 88%;
        max-width: 400px;
        background: white;
        z-index: 1000;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px;
        transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #menu-toggle:checked ~ .nav-content {
        left: 0;
    }

    /* FIX : On remet les blocs en colonne sur mobile */
    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-bottom: 30px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        flex: none;
    }

    .header-search {
        width: 100%;
        flex: none;
    }

    .navbar-search-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        width: 100%;
    }

    .search-input-group {
        background: #f5f5f5;
        width: 100%;
        border-radius: 30px;
        padding: 10px;
    }

    .search-field { width: 100%; text-align: center; }
    .search-divider { display: none; }
    .btn-search { width: 100%; }

    .close-menu {
        display: block;
        position: absolute;
        top: 20px; right: 20px;
        font-size: 1.5rem;
    }
}