.section__navbar {
    margin: 40px 6%;
    background: var(--glassBackground);
    border: 1px solid var(--borderGlass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadowMd);
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    position: sticky;
    top: 20px;
    z-index: 1000;
    transition: var(--transitionMedium);
}

.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.navbar__brand {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    background: var(--colorMainGradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transitionFast);
}

.navbar__brand:hover {
    opacity: 0.8;
}

.navbar__nav ul {
    display: inline-flex;
    flex-direction: row;
    list-style-type: none;
}

.navbar__href {
    text-decoration: none;
}

.navbar__href .active {
    color: var(--colorDefault);
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.navbar__link {
    margin: 0 16px;
    color: var(--colorText);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: var(--transitionMedium);
    display: inline-flex;
    align-items: center; /* vertical centering */
    padding: 6px 0;      /* breathing room */
}

.navbar__link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 50%;
    bottom: -5px;
    background: var(--colorMainGradient);
    transition: var(--transitionMedium);
}

/* Active state for current page - Red color + underline */
.navbar__link.active {
    color: var(--colorMain);
    font-weight: 600;
}
.navbar__link.active::after {
    width: 70%;
    left: 15%;
    height: 2.5px;
    background: var(--colorMain);
    box-shadow: 0 0 8px var(--colorMainGlow);
}

.navbar__link:hover::after {
    width: 100%;
    left: 0;
}

.navbar__link:hover {
    color: var(--colorHeading);
    transform: translateY(-2px);
}

.navbar__menu {
    display: none;
}

/* Cart link aligned right in header row */
.navbar__header { display:flex; align-items:center; gap:16px; }
.navbar__cart { margin-left:auto; color:#fff; font-weight:600; text-decoration:none; }
.navbar__cart .cart-count{ display:inline-block; min-width:18px; padding:2px 6px; margin-left:4px; background: var(--colorMain); border-radius:10px; font-size:12px; line-height:1; }

@media only screen and (max-width: 1100px) {
    .section__navbar {
        margin: 30px 6%;
    }

    .navbar__header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .navbar {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .navbar__nav {
        display: none;
    }

    .navbar__nav--active {
        z-index: 999;
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        padding: 25px 0;
        transition: all 0.5s ease;
    }

    .navbar__nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .navbar__link {
        margin: 10px 0;
        font-size: 18px;
    }

    .navbar__menu {
        display: block;
        cursor: pointer;
    }

    .navbar__menu-icon {
        width: 30px;
        height: 30px;
        background-color: var(--colorDefault);
        border-radius: 5px;
        position: relative;
    }

    .navbar__menu-icon::before,
    .navbar__menu-icon::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 3px;
        background-color: #9c2f2f;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s ease;
    }

    .navbar__menu-icon::before {
        top: 8px;
    }

    .navbar__menu-icon::after {
        top: 18px;
    }

}.navbar__menu.open .navbar__menu-icon::after {
        transform: translateX(-50%) rotate(-45deg);
        top: 13px;
    }
}

/* ===== Cart + Language (right) ===== */
.navbar__nav ul { width: 100%; align-items: center; }
.navbar__spacer { flex: 1; }

/* Utility pill + boutons */
.navbar__utility{ display:inline-flex; align-items:center; gap:8px; padding:3px 8px; background: var(--glassBackground); border:1px solid var(--borderGlass); border-radius:10px; position:relative; }
.navbar__lang{ background:transparent; border:none; color:#fff; font-weight:800; padding:2px 4px; border-radius:8px; line-height:1; transform: translateY(1px); cursor:pointer; }
.navbar__divider{ width:1px; height:14px; background: rgba(255,255,255,0.15); }
/* Dropdown amélioré */
.lang__menu{ position:absolute; top:calc(100% + 14px); right:0; min-width:170px; background: var(--glassBackground); border:1px solid var(--borderGlass); border-radius:12px; padding:8px; box-shadow:0 18px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.02); display:none; opacity:0; transform:translateY(10px); transition:opacity .18s, transform .18s; z-index:10000; }
.lang__menu::before{ content:""; position:absolute; top:-6px; right:6px; width:10px; height:10px; background:inherit; border-left:1px solid var(--borderGlass); border-top:1px solid var(--borderGlass); transform:rotate(45deg); filter:drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.lang__menu.open{ display:block; opacity:1; transform:translateY(0); }
.lang__item{ display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; color:#fff; background:transparent; border:none; border-radius:10px; cursor:pointer; border:1px solid transparent; }
.lang__item:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.lang__item.selected{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.20); }
.lang__label{ color:#fff; font-weight:700; font-size:13px; }
.lang__check{ margin-left:auto; color: var(--colorMain); font-weight:900; opacity:0; transform:scale(.8); transition: opacity .12s, transform .12s; }
.lang__item.selected .lang__check{ opacity:1; transform:scale(1); }
.flag{ width:18px; height:12px; border-radius:3px; display:block; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

/* Cart link inside the utility pill */
.navbar__cartlink{
    display:inline-flex; align-items:center; gap:6px; padding:3px 6px;
    background: transparent; border:0;
    border-radius:10px; color:#fff; font-weight:600; text-decoration:none;
}
.navbar__cartlink:link, .navbar__cartlink:visited{ color:#fff !important; }
.navbar__cartlink:hover{ transform: translateY(-1px); }
.navbar__cartlink svg{ display:block; }
.navbar__cartlink svg path, .navbar__cartlink svg circle{ stroke:#fff; }
.navbar__cartlink:hover svg path{ stroke: var(--colorMain); }
.navbar__cartlink .badge{ background: var(--colorMain); color:#fff !important; border-radius:12px; padding:2px 6px; font-size:12px; line-height:1; font-weight:800; box-shadow:0 0 10px rgba(255,59,59,.25); }
.navbar__cartlink .badge .cart-count{ color:#fff !important; }

/* Keep old burger animation fix */
    .navbar__menu.open .navbar__menu-icon::after {
        transform: translateX(-50%) rotate(-45deg);
        top: 13px;
    }
}

