/* 
MOBILE
*/
#header-mobile {
    right: var(--size);
    top: 0;
    left: var(--size);
    z-index: 100;
}
#header-mobile[data-status="open"] {
    /* Update on JS */
    background: rgba(245, 245, 245, .7);
    backdrop-filter: blur(10px);
}
#header-mobile[data-status="close"][data-color="white"] .header_m-modal--icon {fill: var(--c-white);}
#header-mobile[data-status="close"][data-color="grey"] .header_m-modal--icon {fill: var(--c-grey);}




/* MENU & LANGS */
.header_m-list {z-index: 5;}
.header_m-list[data-status="close"] {height: 0;}
.header_m-list--container {
    padding-top: var(--size_s);
    row-gap: var(--size_s);
}



/* MODAL */
#header_m-modal {
    width: 100%;
    z-index: 10;
}

#header_m-modal--logo {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#header_m-modal--logo .header_m-modal--icon {height: 1.25rem;}

#header_m-modal button,
.header_m-modal--icon {
    height: var(--size);
    width: auto;
}

.header_m-modal--icon.--active {rotate: 45deg;}
.header_m-modal--icon {transition: fill 500ms, rotate 500ms;}
#header-mobile[data-status="close"] .header_m-modal--icon {fill: var(--c-white);}
#header-mobile[data-status="open"] .header_m-modal--icon {fill: var(--c-grey);}



/* GRADIENT */
#header_m-gradient {
    top: -6rem;
    right: -9rem;
    left: -9rem;
    width: calc(100vw + 18rem);
    height: 12rem;
    mask: radial-gradient(closest-side, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 75%);
    backdrop-filter: blur(20px);
    z-index: 0;
}
#header-mobile[data-status="open"] #header_m-gradient {visibility: hidden;}




/* 
GRADIENT
*/
#header-desktop {
    top: 0;
    right: 0;
    left: 0;
    padding: .75rem 1.5rem;
    column-gap: 12rem;
    z-index: 100;
}

.header_d--icon {transition: fill 500ms, rotate 500ms;}
.header_d--text {transition: color 500ms;}

#header-desktop[data-color="white"] .header_d--icon {fill: var(--c-white);}
#header-desktop[data-color="grey"] .header_d--icon {fill: var(--c-grey);}
#header-desktop[data-color="white"] .header_d--text {color: var(--c-white);}
#header-desktop[data-color="grey"] .header_d--text {color: var(--c-grey);}


/* MENU */
.header_d-list {
    position: relative;
    width: 100%;
    column-gap: 1.2rem;
    z-index: 20;
}


/* LOGO */
#header_d--logo {z-index: 5;}
#header_d--logo svg {
    height: 1.3rem;
    width: auto;
}


#header_d-anchor {
    position: absolute;
    top: 1.3rem;
    left: 50vw;
    width: fit-content;
    transform: translateX(-50%);
}


/* LANGS */
#header_d-langs {
    column-gap: 1rem;
    height: fit-content;
    padding: 10px 12px;
    overflow: hidden;
    transition: background 500ms;
    z-index: 50;
}
#header_d-langs[data-status="close"] {width: calc(1.2rem + 24px);}
#header_d-langs[data-status="open"] {
    background: rgba(245, 245, 245, .7);
    backdrop-filter: blur(10px);
}

#header_d-langs button {
    min-width: 1.2rem;
    max-width: 1.2rem;
    min-height: 1.2rem;
    max-height: 1.2rem;
}
#header_d-langs[data-status="open"] .header_d--icon {fill: var(--c-grey);}
#header_d-langs button * {width: 100%; height: 100%;}

#header_d-gradient {
    top: 0;
    right: 0;
    bottom: -4rem;
    left: 0;
    mask: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 75%);
    backdrop-filter: blur(20px);
    z-index: 0;
}

@media only screen and (min-width: 1096px) {
    #header-desktop {column-gap: 12rem;}
    .header_d-list {column-gap: 2.25rem;}
}




@media (hover: hover) {
    #header_d--logo,
    .header_d-list li,
    #header_d-langs button,
    #header_d-langs a {transition: opacity 500ms;}

    #header-desktop:hover #header_d--logo,
    #header-desktop:hover .header_d-list li,
    #header-desktop:hover #header_d-langs button,
    #header_d-langs:hover a {opacity: .5;}

    #header_d--logo:hover,
    .header_d-list li:hover,
    #header_d-langs:hover button,
    #header_d-langs a:hover {opacity: 1 !important;}
}