/* ==========================================================================
   HEADER — barre jaune utilitaire (desktop), barre de navigation, burger et
   menu mobile plein écran.
   ========================================================================== */

/* TOPBAR — bandeau jaune desktop, contient le sélecteur de langue */
#topbar {
    display: none
}

.topbar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    max-width: 1670px;
    width: 100%
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px
}

/* dropdown langue (desktop) */
.langdrop {
    position: relative
}

.langdrop-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: #000;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 2px
}

.langdrop-btn i {
    font-size: 10px;
    transition: transform .2s
}

.langdrop.open .langdrop-btn i {
    transform: rotate(180deg)
}

.langdrop-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000;
    border: 1px solid var(--ligne);
    border-radius: 6px;
    padding: 6px;
    min-width: 90px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: .2s;
    z-index: 10;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4)
}

.langdrop.open .langdrop-menu {
    opacity: 1;
    visibility: visible;
    transform: none
}

.langdrop-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--blanc);
    transition: .15s
}

.langdrop-menu a:hover {
    background: var(--lime);
    color: #000
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 130;
    transition: .35s;
    border-bottom: 1px solid transparent
}

nav.solid {
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(16px);
    border-color: var(--ligne)
}

.navin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1670px
}

.brand img {
    height: 52px
}

.navlinks {
    display: flex;
    gap: 30px
}

.navlinks a {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    opacity: .85;
    transition: .2s;
    position: relative
}

.navlinks a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--lime);
    transition: width .25s
}

.navlinks a:hover,
.navlinks a.active {
    opacity: 1
}

.navlinks a:hover::after,
.navlinks a.active::after {
    width: 100%
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px
}
.navcta {
    background: var(--lime);
    color: #000;
    padding: 11px 20px;
    border-radius: 3px;
    font-weight: 800;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: .2s
}

.navcta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 248, 44, .3)
}

/* burger (icônes Font Awesome fa-bars / fa-xmark) */
.burger {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    z-index: 120;
    width: 40px;
    height: 40px;
    color: var(--blanc);
    font-size: 22px
}

.burger i {
    pointer-events: none
}

.burger .fa-xmark {
    display: none
}

.burger.open .fa-bars {
    display: none
}

.burger.open .fa-xmark {
    display: block
}

/* menu mobile plein écran */
#menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: var(--noir);
    transform: translateY(-100%);
    transition: transform .5s cubic-bezier(.76, 0, .24, 1);
    display: flex;
    flex-direction: column;
    padding: 88px 22px 22px;
    overflow-y: auto
}

#menu.open {
    transform: translateY(0)
}

#menu .mlink {
    font-family: var(--disp);
    font-style: italic;
    font-size: calc(23px * var(--mscale, 1));
    padding: calc(11px * var(--mscale, 1)) 0;
    border-bottom: 1px solid var(--ligne);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    opacity: 0;
    transform: translateX(-20px);
    transition: .4s
}

#menu.open .mlink {
    opacity: 1;
    transform: none
}

#menu .mlink .mtext {
    display: flex;
    flex-direction: column;
    gap: calc(5px * var(--mscale, 1));
    min-width: 0;
    width: 100%
}

#menu .mlink .mtitle {
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

#menu .mlink .mbar {
    display: block;
    width: 32px;
    height: 3px;
    background: var(--lime);
    border-radius: 2px
}

#menu .mlink .mnum {
    font-family: 'Inter';
    font-style: normal;
    font-size: 12px;
    color: var(--lime);
    font-weight: 700;
    flex-shrink: 0
}

#menu .mcta {
    margin-top: auto;
    background: var(--lime);
    color: #000;
    text-align: center;
    padding: calc(14px * var(--mscale, 1));
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: calc(14px * var(--mscale, 1));
    opacity: 0;
    transform: translateX(-20px);
    transition: .4s
}

#menu.open .mcta {
    opacity: 1;
    transform: none
}

#menu .mbottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    opacity: 0;
    transition: .4s
}

#menu.open .mbottom {
    opacity: 1
}

#menu .mlang {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--gris)
}

#menu .mlang a {
    color: var(--gris)
}

#menu .mlang a.active {
    color: var(--lime)
}

#menu .mlang .sep {
    color: var(--ligne)
}

/* réseaux sociaux du menu mobile — icônes Font Awesome en bouton rond */
#menu .msoc {
    display: flex;
    gap: 14px
}

#menu .msoc a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--ligne);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    font-size: 15px;
    transition: .2s
}

#menu .msoc a:hover {
    border-color: var(--lime);
    color: var(--lime)
}

body.menu-open .brand img {
    transition: .3s
}

@media(min-width:901px) {
    #topbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--lime);
        z-index: 131
    }

    nav {
        top: 34px
    }

    body {
        padding-top: 34px
    }

    html {
        scroll-padding-top: 122px
    }
}

@media(max-width:900px) {
    .navin {
        position: relative;
        justify-content: center
    }

    .navlinks,
    .navcta {
        display: none
    }

    .burger {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%)
    }

    .brand img {
        height: 44px
    }

    body.menu-open .brand img {
        height: 60px
    }
}

/* ==========================================================================
   PANIER — icone + badge dans la nav, et drawer (tiroir lateral)
   ========================================================================== */

.navcart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blanc);
    font-size: 19px;
    margin-left: 6px;
    z-index: 120;
}

.navcart:hover {
    color: var(--lime);
}

.navcart-badge {
    position: absolute;
    top: 2px;
    right: 0px;
    background: var(--lime);
    color: #000;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--noir);
}

@media(max-width:900px) {
    .navcart {
        position: absolute;
        right: 46px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Overlay + drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 190;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    background: var(--noir, #050505);
    color: var(--blanc, #F5F5F3);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.76, 0, .24, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, .5);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 16px;
    border-bottom: 1px solid var(--ligne, #1E1E1C);
}

.cart-drawer-head h3 {
    font-family: var(--disp);
    font-style: italic;
    text-transform: uppercase;
    font-size: 22px;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    color: var(--blanc, #F5F5F3);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.cart-close:hover {
    color: var(--lime);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
}

.cart-empty {
    color: var(--gris, #A9A9A6);
    font-size: 15px;
    text-align: center;
    margin-top: 40px;
}

.cart-lines {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-line {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: start;
}

.cart-line-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: #0c0c0b;
    border: 1px solid var(--ligne, #1E1E1C);
}

.cart-line-name {
    font-weight: 800;
    font-size: 14.5px;
    text-transform: uppercase;
}

.cart-line-variant {
    color: var(--gris, #A9A9A6);
    font-size: 13px;
    margin-top: 2px;
}

.cart-line-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 14px;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--ligne, #1E1E1C);
    background: #0c0c0b;
    color: var(--blanc, #F5F5F3);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.cart-line-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-line-price {
    font-weight: 800;
    font-size: 14.5px;
    white-space: nowrap;
}

.cart-line-compare {
    color: var(--gris, #A9A9A6);
    text-decoration: line-through;
    font-size: 12.5px;
    white-space: nowrap;
}

.cart-line-remove {
    background: none;
    border: none;
    color: var(--gris, #A9A9A6);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.cart-line-remove:hover {
    color: #ff8a8a;
}

.cart-drawer-foot {
    border-top: 1px solid var(--ligne, #1E1E1C);
    padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
    margin-bottom: 14px;
}

.cart-total strong {
    font-family: var(--disp);
    font-style: italic;
    font-size: 24px;
}

.cart-checkout {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: var(--lime);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 15px;
    cursor: pointer;
}

.cart-checkout:hover {
    transform: translateY(-1px);
}
