/* ---------------------------------------------------------------------------------------------------------------------- */

/* START HEADER */

/* ---------------------------------------------------------------------------------------------------------------------- */

/* Header */
header.apear {
    will-change: transform, opacity;
    animation: apearHeaderCookieBannerCitationDomLoaded 300ms ease both;
}
@keyframes apearHeaderCookieBannerCitationDomLoaded {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}
/* resposive */
@media (max-width: 1024px) {
    header {
        width: calc(100% - 24px);
    }
}

header.header-desapear-on-scroll {
    transform: translateY(-100%);
}
body.light header div.header-logo-container, header nav.header-nav-menu ul , header div.header-cta-container {
    background: rgba(8, 0, 26, 0.7);
    border: 1px solid rgba(246, 236, 246, 0.5);
}
/* darkmode theme */
body.dark header div.header-logo-container, body.dark header nav.header-nav-menu ul, body.dark header div.header-cta-container {
    background: var(--grey-bg);
    border: 1px solid var(--white-color);
}

header .header-logo-container {
    height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 3px 28px;
    border-radius: 32px 0px 32px 32px;
}
header .header-logo-container .logo {
    width: 70px;
    height: 30px;
    background-position-y: 8px;
    background-repeat: no-repeat;
    background-size: contain;
}
header .header-logo-container .text-link-visibility-none {
    display: none;
}
/* darkmode */
body.light header .header-logo-container .logo {
    background-image: url('../../assets/images/logo-theo-ransay-light.png'), url('../../assets/images/logo-theo-ransay-light.webp');
}
body.dark header .header-logo-container .logo {
    background-image: url('../../assets/images/logo-theo-ransay-dark.png'), url('../../assets/images/logo-theo-ransay-dark.webp');
}
header .header-nav-menu ul {
    padding: 14px 32px;
    border-radius: 32px 32px 32px 32px;
}
header .header-cta-container {
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 0px 32px 32px 32px;
}

header > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 152px;
    max-width: 1424px;
    height: 48px;
    margin: 0 auto;
}

#header-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 178px;
}

header #header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
}

header #header-logo img {
    height: 18px;
    width: auto;
    margin-bottom: -4px;
    transition: 300ms ease-in-out;
    will-change: transform;
}
/* link header logo */
header #header-logo:hover img {
    transform: scale(0.9);
}

header nav.header-nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
header nav.header-nav-menu ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}
header nav.header-nav-menu a {
    color: var(--white-color);
    transition: 300ms;
    will-change: color;
}
header nav.header-nav-menu a:hover {
    transition: 300ms;
}
/* darkmode theme header nav hover effect */
body.light header nav.header-nav-menu a:hover {
    color: var(--primary-color);
}
body.dark header nav.header-nav-menu a:hover {
    color: var(--primary-darkmode-color);
}
/* darkmode theme header nav page indicator */
body.light header nav.header-nav-menu a.active {
    color: var(--primary-color);
}
body.dark header nav.header-nav-menu a.active {
    color: var(--primary-darkmode-color);
}

/* darkmode buttons */
header #sun-button, header #moon-button {
    width: 14px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--white-color);
    border-radius: 40px;
    background: transparent;
    cursor: pointer;
}
header #sun-button svg, header #moon-button svg {
    width: inherit;
    height: auto;
    fill: var(--white-color);
}
header #moon-button svg path {
    fill: var(--white-color);
}
/* darkmode buttons active indicator */
body.light #sun-button {
    background: rgba(255, 255, 255, 0.3);
}
body.dark #moon-button {
    background: rgba(255, 255, 255, 0.3);
}
/* darkmode buttons hover effect */
#sun-button, #moon-button {
    transition: 300ms ease-in-out;
    will-change: background;
}
body.light #moon-button:hover, #sun-button:hover {
    background: rgba(239, 0, 215, 0.3)!important;
}
body.dark #moon-button:hover, #sun-button:hover {
    background: rgba(255, 172, 238, 0.3)!important;
}
#moon-button > svg, #sun-button > svg {
    transition: 300ms ease-in-out;
    will-change: transform;
}
#moon-button:hover > svg, #sun-button:hover > svg {
    transform: scale(0.8);
}

/* header call button */
header #header-call-button a {
    width: 14px;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 32px;
    transition: 300ms ease-in-out;
    will-change: transform;
}
/* darkmode theme */
body.light header #header-call-button a {
    background: linear-gradient(to right, var(--secondary-color) -78.12%, var(--primary-color) 68.67%);
}
body.dark header #header-call-button a {
    background: var(--primary-darkmode-color);
}

header #header-call-button {
    display: flex;
    align-items: center;
    justify-content: center;
}
header #header-call-button svg {
    width: inherit;
    transition: 300ms ease-in-out;
    will-change: transform;
}
header #header-call-button .text-link-visibility-none {
    display: none;
}
/* darkmode theme */
body.light header #header-call-button svg {
    fill: var(--white-color);
}
body.dark header #header-call-button svg {
    fill: var(--bg-darkness-element);
}
/* call button hover effect */
header #header-call-button:hover svg {
    transform: scale(0.8);
}
/* button nav mobile */
header #header-mobile-callback-button a {
    width: 14px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 32px;
    color: var(--white-color);
    transition: 300ms ease-in-out;
    will-change: transform;
}
body.light header #header-mobile-callback-button a {
    background: linear-gradient(to right, var(--secondary-color) -78.12%, var(--primary-color) 68.67%);
}
body.dark header #header-mobile-callback-button a {
    background: var(--primary-darkmode-color);
}
header #header-mobile-callback-button div {
    position: initial;
    transform-origin: center;
    width: 14px;
    height: 2px;
    background: var(--white-color);
    transform: rotate(0deg);
    transition: 150ms ease-in-out;
    will-change: transform;
}
/* close menu indicator */
header #header-mobile-callback-button.open div:first-child {
    position: absolute;
    transform: rotate(45deg);
}
header #header-mobile-callback-button.open div:last-child {
    position: absolute;
    transform: rotate(-45deg);

}

/* header nav mobile */
nav#header-nav-mobile-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: 300ms ease-in-out;
    transform: translateY(-100%);
    will-change: transform;
}
body.light nav#header-nav-mobile-menu {
    background: var(--dark-color);
}
body.dark nav#header-nav-mobile-menu {
    background: #33233d;
}
nav#header-nav-mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    font-size: calc(48.83 * var(--res));
    line-height: calc(48.83 * var(--res));
}
nav#header-nav-mobile-menu ul li a {
    color: var(--white-color);
}
nav#header-nav-mobile-menu ul li a:hover, header nav.header-nav-mobile-menu ul li:hover a {
    color: var(--primary-color);
}
/* darkmode theme header mobile page indicator */
body.light nav#header-nav-mobile-menu a.active {
    color: var(--primary-color);
}
body.dark nav#header-nav-mobile-menu a.active {
    color: var(--primary-darkmode-color);
}
body.dark nav#header-nav-mobile-menu li:hover a {
    color: var(--primary-darkmode-color);
}

/* open mobile menu */
nav#header-nav-mobile-menu.open {
    transform: translateY(0);
}

/* responsiv */
/* mobile */
@media (max-width: 768px) {

    header > div {
        padding: 8px 16px;
    }

}
/* tablette */
@media (min-width: 769px) and (max-width: 1024px) {

    header > div {
        padding: 16px 56px;
    }

}

/* ---------------------------------------------------------------------------------------------------------------------- */

/* END HEADER */

/* ---------------------------------------------------------------------------------------------------------------------- */