

header#masthead {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    background: #fff0;
    color: var(--black);
    font-weight: 500;
    z-index: 999;
    height: calc(var(--header-height));
    transition: color 300ms ease, height 300ms ease, padding 300ms ease, opacity 300ms ease, transform 300ms ease, background-color 300ms ease, backdrop-filter 0ms ease-in-out 0ms, -webkit-backdrop-filter 0ms ease-in-out 0ms;
}


.logo {
    width: 100%;
}
header#masthead .logo a{
    display: flex;
}
header .logo svg,
header .logo img {
    max-width: 100%;
    width: auto;
    height: clamp(40px, calc(100% - (var(--gap) * 2)) , 55px);
    aspect-ratio: 168 / 55;
    margin: auto 0 auto 0;
    transform-origin: center left;
    -webkit-transition: height 300ms ease-out;
    transition: height 300ms ease-out;
}
header .logo svg g#logo-block-font{
    opacity: 1;
}
body.sticky header .logo svg,
body.sticky header .logo img{
    height: clamp(30px, calc(100% - (var(--gap) * 2)) , 40px);
}

.header-row{
    align-items: center;
    justify-content: space-between;
}

/* STICKY */
.sticky header#masthead {
    height: var(--header-height-sticky);
    border-bottom: 1px solid var(--blue-border);
    background: rgba(255, 255, 255, 0.90);
    /* box-shadow: 0px 2px 14px 0px rgba(101, 109, 142, 0.10); */
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    transition: color 300ms ease, height 300ms ease, padding 300ms ease, opacity 300ms ease, transform 300ms ease, background-color 300ms ease, backdrop-filter 100ms ease-in-out 300ms, -webkit-backdrop-filter 100ms ease-in-out 300ms;
}
.sticky #burger-btn span,
.sticky #burger-btn span:before,
.sticky #burger-btn span:after {
    background: var(--black);
}
/* REVERSE */
.reverse-active header#masthead {
    background: var(--black);
    color: var(--white);
}
.reverse-active header#masthead svg *{
    fill: var(--wp--preset--color--primary);
}
.reverse-active #burger-btn span,
.reverse-active #burger-btn span:before,
.reverse-active #burger-btn span:after {
    background: var(--white);
}

.header-margin{
    margin-top: calc(var(--header-height-fixed) * 1);
    transition: margin 300ms ease-in-out;
}

/* MARQEE */
.marquee-active header#masthead{
    transform: translate(0px, var(--marquee-height));
}
.marquee-active.sticky header#masthead{
    transform: translate(0px, 0px);
}
.marquee-container {
    height: var(--marquee-height);
    background: var(--wp--preset--gradient--primary-to-secondary);
    width: 100%;
    overflow: hidden; /* Assure que le texte défilant en dehors des limites n'est pas visible */
    padding: calc(var(--gap) * 0.4) 0;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    transition: transform 300ms ease-in-out 0ms;
    z-index: 9;
}
.marquee {
    height: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    text-align: center;
  }

.sticky .marquee-container {
    transform: translate(0, -100%);
    transition: transform 300ms ease-in-out 0ms;
}

/* BURGER CROSS */

#burger-btn {
    cursor: pointer;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    z-index: 992;
}

#burger-btn span,
#burger-btn span:before,
#burger-btn span:after {
    background: var(--black);
    display: block;
    height: 2px;
    opacity: 1;
    position: absolute;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, width 0.3s ease-in-out;
}
#burger-btn span:before,
#burger-btn span:after {
    content: "";
}
#burger-btn span {
    transform: translate(-50%, -50%) rotate(0deg);
    top: 50%;
    left: 50%;
    width: 100%;
}
#burger-btn span:before {
    right: 0px;
    top: -0.7em;
    width: 70%;
}
#burger-btn span:after {
    right: 0px;
    top: 0.7em;
    width: 70%;
}
#burger-btn:hover span:before,
#burger-btn:hover span:after {
    width: 100%;
    }
.burger-open #burger-btn span {
    width: 100%;
    transform: translate(-50%, -50%) rotate(-45deg);
    top: 50%;
    left: 50%;
    width: 100%;
    background: var(--white);
}
.burger-open #burger-btn span:before {
    top: 0px;
    transform: rotate(90deg);
    width: 100%;
    background: var(--white);
}
.burger-open #burger-btn span:after {
    top: 0px;
    transform: rotate(90deg);
    opacity: 0;
    width: 0;
    background: var(--white);
}

/* Burger botton fixed */

div#menu-mobile-bottom{
    width: fit-content;
    border-radius: 50px;
    z-index: 99999;
    position: fixed;
    bottom: calc(var(--gap)*2);
    left: 50%;
    transform: translateX(-50%);
}
.row-menu-header-mobile, .item-menu-mobile > a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
.item-menu-mobile {
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid rgba(0,0,83,.05);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}
.item-menu-mobile.btn-search {
    background-color: var(--white);
    padding: 0px var(--gap) 0px calc(var(--gap) / 2);
    border-radius: 40px 0 0 40px;
    margin-right: -15px;
}
#item-menu-mobile-burger{
    z-index: 1;
    background-color: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
}
#mobile-open {
    display: block;
    width: 25px;
    height: 40px;
    position: relative;
    cursor: pointer;
}
#mobile-open span {
    width: inherit;
    height: 2px;
    background-color: var(--dark);
    font-size: 0;
    top: 20px;
    position: absolute;
    -webkit-transition: background-color .3 ease;
    transition: background-color .3 ease;
}
.menu-mobile-active #mobile-open span {
    background-color: transparent;
}
#mobile-open span:before {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
}
.menu-mobile-active #mobile-open span:before {
    -webkit-transform: translateY(0) rotate(45deg);
    transform: translateY(0) rotate(45deg);
}
#mobile-open span:after {
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
}
.menu-mobile-active #mobile-open span:after {
    -webkit-transform: translateY(0) rotate(-45deg);
    transform: translateY(0) rotate(-45deg);
}
#mobile-open span:before, #mobile-open span:after {
    content: "";
    position: absolute;
    width: 25px;
    height: 100%;
    left: 0;
    background-color: var(--dark);
    -webkit-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}
#item-account-mobile {
    background-color: var(--white);
    padding:  0px calc(var(--gap) / 2) 0px var(--gap);
    border-radius: 0 40px 40px 0;
    margin-left: -15px;
}

/* Menu mobile opened */
#menu-mobile-opened{
    position: fixed;
    display: table;
    height: 100vh;
    width: 100%;
    bottom: 0px;
    left: 0px;
    transform: scale(0);
    z-index: 9999;
}
#menu-mobile-opened.mobile-open{
    transform: scale(1);
}
#menu-mobile-opened.mobile-open .menu-mobile-bkg{
    background-color: rgba(0, 0, 0, 0);
    animation: fadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, opacity;
}
#menu-mobile-opened.mobile-open .menu-mobile-content{
    opacity: 0;
    animation: scaleUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, opacity;
}
#menu-mobile-opened.mobile-open + main{
    animation: scaleBack 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, border-radius;
    transform-origin: center top;
}
#menu-mobile-opened.mobile-open.out {
    animation: quickScaleDown 0s 0.5s linear forwards;
    will-change: transform, opacity;
}
#menu-mobile-opened.mobile-open.out .menu-mobile-bkg {
    animation: fadeOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, opacity;
}
#menu-mobile-opened.mobile-open.out .menu-mobile-bkg .menu-mobile-content {
    animation: scaleDown 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, opacity;
}
#menu-mobile-opened.mobile-open.out + main {
    animation: scaleForward 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, border-radius;
    transform-origin: center top;
}
.menu-mobile-bkg{
    display: table-cell;
    vertical-align: middle;
}
.menu-mobile-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #FFFFFF;
    padding: 30px 30px 10px;
    border-radius: 15px;
    position: absolute;
    bottom: 110px;
    left: 20px;
    overflow: hidden;
    height: auto;
    width: calc(100% - 40px);
    gap: calc(var(--gap)*5);
}
.menu-mobile-content ul{
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap)*1.5);
}
.menu-mobile-content ul li{
    display: flex;
    justify-content: flex-start;
    color: var(--black);
    font-weight: 500;
    font-size: var(--regulard-font);
}
.menu-mobile-content ul li:not(.btn-action){
font-size: var(--x-large-font);
}
#menu-mobile-secondary{
    border-top: solid 1px var(--blue-border);
    padding-top: calc(var(--gap));
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.menu-mobile-content section.social-widget ul{
    display: flex;
    flex-direction: row;
}
.menu-mobile-content section.social-widget ul.wp-block-social-links .wp-social-link svg{
    height: 0.85em;
    width: 0.85em;
}
.menu-menu-langues-container ul li{
    gap: var(--gap);
}
.menu-menu-langues-container .wpml-ls-menu-item .wpml-ls-flag {
    height: 24px;
    border-radius: 100%;
    object-fit: cover;
    width: 24px;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-button);
}
/*******************/
  /* RESPONSIVE */
/*******************/


@media (max-width: 1440px) {
}
@media (max-width: 1200px) {
    .logo{
        max-width: 180px;
    }
}
@media (max-width: 992px) {
}
@media (max-width: 768px) {
}
@media (max-width: 576px) {

    nav#login-navigation ul li:first-of-type{
        display: none;
    }
}
