.pix-site-header {
    position: relative;
    padding: 0;
}

.pix-wrapper-header {
    position: relative;
    z-index: 1000;
    background: #0B2231;

    /* Taille de référence */
    font-size: 20px;

    display: flex;
    flex-direction: column;
}


.pix-wrapper-header-logo {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.pix-wrapper-header-logo-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}


.pix-wrapper-logo {}

a.pix-logo {
    position: relative;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 10;
    padding: 0.5em 0 0.75em;
    vertical-align: top;
}

a.pix-logo::before {
    content: '';
    position: absolute;
    width: 300%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: radial-gradient(circle at center, #153346 0%, #0B2231 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

a.pix-logo img {
    vertical-align: top;
    width: 9.75em;
}


.pix-header-langues {
    position: absolute;
    top: 1em;
    left: 1em;
}

.pix-header-langues img {
    width: 2em;
    height: 2em;
}

.pix-header-quick-links {
    position: absolute;
    bottom: 1em;
    right: 1.5em;
    gap: 1.5em;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.pix-header-quick-links img {
    width: 1.7em;
    height: 1.7em;
}

.header-cart {
    position: relative;
}

.header-cart-count {
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: 0px 0px 0px 3px #153346;
    background-color: #fcdf96;
    color: #153346;
    font-weight: bold; 
    font-size: 0.7em;
    min-width: 1.3em;
    height: 1.3em;
    display: inline-block;
    line-height: 1.2em;
    border-radius: 50%;
    text-align: center;
    transform: translateY(50%) translateX(20%);
    font-family: "Montserrat", sans-serif;
    padding: 0.25em 0.15em;
    line-height: 0.8;
}

.pix-site-header .pix-burger-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6em;
    position: absolute;
    top: 1em;
    right: 1em;
    padding: 0.45em 0.75em;
    background: #0B2231;
    cursor: pointer;
    z-index: 10000;
    border-radius: 0;
    transition: background 0.2s ease;
    touch-action: manipulation;
}

.pix-burger-label {
    color: #FBDF95;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.pix-burger-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 1.3em;
}

.pix-site-header .pix-burger-btn .line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: #FBDF95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pix-site-header .pix-burger-btn .line:nth-child(2) {
    transform: translateX(-4px);
}

.pix-site-header.open .pix-burger-btn {}

.pix-site-header.open .pix-burger-btn .line:first-child {
    transform: translateY(6px) rotate(45deg);
}

.pix-site-header.open .pix-burger-btn .line:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
}

.pix-site-header.open .pix-burger-btn .line:last-child {
    transform: translateY(-6px) rotate(-45deg);
}





.pix-site-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: block;

    /* background: rgba(0, 0, 0, 0.5); */
    background: radial-gradient(circle at center, #153346 0%, #0B2231 70%);
    opacity: 0;
    transform: translateX(100%);

    font-size: 1.5em;
}

.pix-site-navigation>div {
    height: 100%;
}

.pix-site-navigation ul {
    list-style: none;
}

.pix-wrapper-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    /* background: radial-gradient(circle at center, #153346 0%, #0B2231 70%); */
    width: max-content;
    margin-left: auto;
    padding: 15px 0 15px 0;
    overflow: auto;
    width: 100%;
    margin: 0;
    list-style: none;

    padding: 30px;
}

.pix-site-navigation a,
.pix-site-navigation ul ul a {
    color: #FBDF95;
    text-align: center;
    text-transform: uppercase;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    display: inline-block;
    padding: 0.4em 0.6em 0.4em 0.6em;
    white-space: break-spaces;
    /* width: 100%; */
}

.pix-site-navigation ul>li {
    max-width: calc(100% - 50px);
    text-align: center;
}

.pix-site-navigation ul li ul {
    display: none;
    transform: none;
    padding-left: 10px;
    background: transparent;
    box-shadow: none;
    position: relative;
    top: auto;
    left: auto;
    list-style: none;
    margin: 0;
    margin-top: -1px;
}

.pix-site-navigation ul li:hover>ul {
    display: none;
}

.pix-site-navigation ul li.open>ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pix-site-navigation ul ul a {
    text-align: center;
    font-weight: 300;
    font-size: 0.9em;
}

.menu-arrow-svg {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    vertical-align: -0.05em;

    background-color: var(--pix-color-primary);
    
    -webkit-mask-image: url('i/arrow.svg');
    mask-image: url('i/arrow.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;

    transform: translateX(50%) translateY(-1px) rotate(-90deg);
    margin: 0;
}


.menu-item-has-children.open .menu-arrow-svg {
    transform: translateX(50%) translateY(-1px) rotate(0deg);
}

.pix-site-header .pix-burger-btn {
    display: flex;
}

.pix-site-header.open .pix-site-navigation {
    transform: translateX(0) translateZ(0);
    opacity: 1;
}


.pix-site-header.open .pix-wrapper-menu > li {
    opacity: 0;
    animation: pix-menu-item-fade-in 0.4s ease forwards;
}

.pix-site-header.open .pix-wrapper-menu > li:nth-child(1) { animation-delay: 0.05s; }
.pix-site-header.open .pix-wrapper-menu > li:nth-child(2) { animation-delay: 0.1s; }
.pix-site-header.open .pix-wrapper-menu > li:nth-child(3) { animation-delay: 0.15s; }
.pix-site-header.open .pix-wrapper-menu > li:nth-child(4) { animation-delay: 0.2s; }
.pix-site-header.open .pix-wrapper-menu > li:nth-child(5) { animation-delay: 0.25s; }
.pix-site-header.open .pix-wrapper-menu > li:nth-child(6) { animation-delay: 0.3s; }
.pix-site-header.open .pix-wrapper-menu > li:nth-child(7) { animation-delay: 0.35s; }
.pix-site-header.open .pix-wrapper-menu > li:nth-child(8) { animation-delay: 0.4s; }
.pix-site-header.open .pix-wrapper-menu > li:nth-child(n+9) { animation-delay: 0.45s; }


body.nav-open {
    height: 100dvh;
    overflow-y: hidden;
}


@keyframes pix-menu-item-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pix-site-navigation ul ul li {
    max-width: 100%;
}




@media (max-width: 1400px) {
    .pix-wrapper-header {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .pix-wrapper-header {
        font-size: 16px;
    }
}


@media (max-width: 900px) {
    .pix-wrapper-header {
        font-size: 14px;
    }
}


@media (max-width: 500px) {
    .pix-wrapper-header-logo-inner {
        justify-content: flex-start;
        padding-left: 1em;
    }
    .pix-header-quick-links {
        gap: 1em;
    }
    .pix-header-langues {
        left: auto;
        right: 8.5em;
    }
}
