/* =========================
   HEADER B2C - FULL CSS
========================= */

.header-b2c {
    width: 100%;
    background-color: #fff;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 40px; /* sous top-navbar */
    z-index: 999;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Logo */
.header-b2c .logo img {
    height: 80px;
    transition: height 0.3s ease;
}

/* Navigation */
.header-b2c .main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.header-b2c .main-nav ul li  {
       align-content: center;
}
.header-b2c .main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.header-b2c .main-nav ul li a:hover {
    color: #f39200;
}

/* Header button */
.header-b2c .header-btn .btn-filtro {
    padding: 10px 20px;
    background-color: #f39200;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.header-b2c .header-btn .btn-filtro:hover {
    background-color: #d87a00;
}

/* =========================
   BURGER MENU MOBILE
========================= */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* Nav et bouton */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 998;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .header-btn {
        margin-top: 20px;
    }

    .burger {
        display: flex;
    }

    .header-b2c .logo img {
        height: 60px;
    }
}

@media (max-width: 576px) {
    .header-b2c .logo img {
        height: 50px;
    }

    .main-nav ul li a {
        font-size: 1rem;
    }

    .header-b2c .header-btn .btn-filtro {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
/* Bouton X pour fermer le menu */
.main-nav .nav-close {
    position: absolute;
    top: 40px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    display: none;
}

@media (max-width: 992px) {
    .main-nav .nav-close {
        display: block;
    }
}
