/** header **
------------------------------------------------------------
------------------------------------------------------------*/
body {
    --header-height: 560px;
    --scroll-top: 0;
    --header-effect: 0;
}
body.home {
    --header-height: 770px;
}
@media only screen and (max-width: 768px) {
    body {
        --header-height: 470px;
    }
    body.home {
        --header-height: 470px;
    }
}
header {
    z-index: 1000;
    background: var(--color-dark);
}
main {
    margin-top: var(--header-height);
}
@media only screen and (max-width: 768px) {
    main {
        margin-top: calc( var(--header-height) - 70px);
    }
}

header .bg-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: .3s;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
}
body.scrolled header .bg-header{
    opacity: calc(1 - var(--header-effect));
}

.menu-bars {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-light);
    margin: 0px 0 9px 0;
}
.style-close {
    color: var(--color-dark);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}
/* Header sticky lorsque le menu mobile est ouvert */
.header-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.header-gauche {
    align-items: center;
}
.header-centre {
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.header-droite {
    align-items: center;
}
.header-variable {
    height: calc( var(--header-height) - var(--scroll-top) - 70px);
    min-height: 120px;
    overflow: hidden;
    position: relative;
    padding: 0;
}

body:not(.home) .header-variable {
    min-height: 0px;
}
body:not(.home) .header-logo {
    -display: none!important;
}
body:not(.home) .cadre-banner {
    opacity: 1!important;
}
body:not(.home).scrolled header .bg-header{
    opacity: 1!important;
}

.header {
    background-size: 100% auto;
    background-position: top center;
}
.header-gauche, .header-droite {
    width: 250px;
}
.header-logo {
    position: absolute;
    display: block;
    padding-bottom: var(--rem-3);
    transition: .3s;
    opacity: 0;
    overflow: hidden;
    top: 18px;
}
body.scrolled .header-logo, .header-logo.header-force-logo {
    opacity: 1;
    padding-bottom: 0;
}

.cadre-banner {
    position: absolute;
    display: block;
    transition: .3s;
    opacity: calc(1 - var(--header-effect) * 3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - 120px);
}
.logo-home {
    width: 100%;
    height: 100%;
    max-width: 520px;
    max-height: 280px;
}

@media only screen and (max-width: 768px) {
    .header-gauche .social {
        display: none;
    }
    .header-gauche, .header-droite {
        width: 30px;
    }
    .header-centre {
        flex-grow: 1;
    }
    .logo-home {
        max-width: 80% !important;
    }
}


.fa-facebook:before {
    content: "\f39e" !important;
}

.header-flex-bar {
    position:relative;
    z-index: 1;
}
.header-flex-bar a.btn-cta-header {
    color: var(--color-light) !important;
    font-size: 16px;
    font-weight: 300;
    margin: 10px;
    overflow: hidden;
    position: relative;
}

.header-gauche .header-menu,
.header-droite .header-menu {
    height: 28px;
}
.header-gauche .desktop-only .menu-float {
    position: absolute;
    text-align: left;
    top: 19px;
}
.header-droite .desktop-only .menu-float {
    position: absolute;
    text-align: right;
    top: 19px;
    width: 400px;
    right: 110px;
}

.menu-account {
    position: relative;
}
header .btn, header .btn-1, header .btn-2, .wpml-ls-legacy-list-horizontal a {
    white-space: nowrap;
    transition: .3s;
}
.header-recherche {
    margin: 0 20px;
}
header svg, header i {
    cursor: pointer;
}

body.no-scroll {
    overflow: hidden;
}

a {
    transition: .3s;
}

img.custom-logo.custom-logo-regular, img.custom-logo.custom-logo-small {
    object-fit: contain;
}

/** LOGO **
------------------------------------------------------------
------------------------------------------------------------*/
img.custom-logo {
    /*max-width: 180px;*/
}
@media only screen and (min-width: 992px) {
    img.custom-logo.custom-logo-small {
        display: none;
    }
    img.custom-logo.custom-logo-regular {
        display: inline-block;
    }
}
@media only screen and (max-width: 991px) {
    img.custom-logo.custom-logo-small {
        display: inline-block;
    }
    img.custom-logo.custom-logo-regular {
        display: none;
    }
}

/** MENU TOP **
------------------------------------------------------------
------------------------------------------------------------*/
.menu-top ul,
.menu-redirect ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-top ul li,
.menu-redirect ul li {
    display: inline-block;
    padding: 0 0 0 20px;
}
.menu-top ul li a,
.menu-redirect ul li a {
    position: relative;
    color: var(--color-light);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 157.143% */
}
.menu-top ul li a i,
.menu-redirect ul li a i {
    margin-right: 5px;
}
.menu-top li a::before,
.menu-redirect li a::before,
.menu-top li a::after,
.menu-redirect li a::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: currentColor;
    top: 20px;
    left: 0;
    pointer-events: none;
}

.menu-top li a::before,
.menu-redirect li a::before {
    content: '';
}
.menu-top li a::before,
.menu-redirect li a::before {
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s;
}

.menu-top li a:hover::before,
.menu-redirect li a:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

/** BOUTONS HEADERTOP **
------------------------------------------------------------
------------------------------------------------------------*/
.header-btn, .header-btn-mobile, .header-close {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 22px;
    cursor: pointer;
    transition: .3s;
}
.header-btn-mobile, .header-close {
    width: 30px;
    height: 30px;
    line-height: 48px;
}
.header-btn-search button {
    color: var(--color-dark);
    padding: 0;
    font-size: 22px;
}
@media (max-width: 600px) {
    .header i.fa-regular.fa-eye-low-vision {
        font-size: 19px;
    }
}
.offcanvas-header {
    position: absolute;
    right: 20px;
    top: 20px;
}
.offcanvas-header .btn-close {
    filter: invert(1);
    font-size: 25px;
    opacity: 1;
}

.header-close {
    font-size: 36px;
}
.header-btn-mobile a, .header-btn a {
    color: var(--color-light);
}
.header-btn:hover, .header-btn:hover a {
    color: var(--color-dark);
}
.header-btn-fa,
.slick-prev::before, .slick-next::before {
    font-family: var(--font-fa) !important;
    font-weight: 600;
}
.header-btn-fa {
    white-space: nowrap;
}


/** MENU PRINCIPAL DESKTOP **
------------------------------------------------------------
------------------------------------------------------------*/
@-webkit-keyframes fadeInRight {
    0% {
        opacity: 0;
        left: 20%;
    }
    100% {
        opacity: 1;
        left: 0;
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        left: 20%;
    }
    100% {
        opacity: 1;
        left: 0;
    }
}

/* langue */
.header-langue {
    top: -7px;
    position: relative;
}
#menu-menu_langue {
    padding-left: 0;
}
.header-langue .header-menu ul ul,
.header-langue .header-menu ul .menu-wrapper {
    min-width: 40px;
}
.header-menu .menu-langue ul {
    display: flex;
    margin-top: 4px;
}
@media (max-width: 768px) {
    .header-menu .menu-langue ul {
        margin-top: 0px;
    }
}
/* ====================================================================================================
	MENU CSS
==================================================================================================== */

.menu-principal {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-menu:has(.menu-principal) {
    background: var(--color-light);
    border-bottom: 1px solid var(--color-dark);
}

.header-menu-principal {
    display: block;
}
#menu-menu-principal {
    width: 100% ;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#mobile-menu {
    display: none;
}
.mobile-menu.header-menu {
    background: var(--color-1);
    color: var(--color-light);
}
.header-menu {
    position: relative;
    display: block;
    text-decoration: none;
    text-align: center;
}
.header-menu .bt- {
    cursor: pointer;
}
.header-menu h3 {
    font-weight: normal;
}
.header-centre .header-menu {
    padding-bottom: 10px;
}
.header-menu a {
    border: 0;
    border-bottom: 1px solid transparent;
}

.header-menu ul,
.header-menu ul li,
.header-menu ul li a {
    position: relative;
}

.header-menu ul {
    z-index: 1;
    margin-bottom: 0;
}

.header-menu * {

}
.sub-menu {
    transition: .3s;
}
.header-menu ul li {
    margin: 0;
}
.header-menu .menu-principal ul:not(.sub-menu) > li {
    margin: 0 0rem;
}
.header-menu .menu-langue ul:not(.sub-menu) > li {
    margin: 0 .5rem;
}

.header-menu .menu-principal ul li a {
    font-family: var(--font-1), serif;
    display: block;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    color: var(--color-dark);
    padding: 0;
    letter-spacing: 0.36px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
}
.header-menu .menu-langue ul li a {
    font-family: var(--font-1), serif;
    display: block;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 16px;
    color: var(--color-light);
    padding: 0;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
}

.header-menu .menu-principal ul li:not(:has(.sub-menu)) a:hover,
.header-menu .menu-langue ul li a:hover,
.header-menu .menu-langue ul li a[aria-current="page"] {
    border-bottom-color: var(--color-light);
}

.header-menu-button {
    display: none;
}

.header-menu.pos-fixed {
    position: fixed;
    top: -2px;
    left: -2px;
    right: -2px;
    z-index: 9999;
}

.header-menu a {
    white-space: nowrap;
}
.header-menu .sub-menu {
    cursor: pointer;
    padding: 1.5rem;
}
.header-menu > ul {
    padding: 0 5px;
}

.header-menu ul li {
    display: inline-block;
    transition: .3s;
}

/*** submenu ***/
.header-menu ul.sub-menu, .header-menu ul .menu-wrapper {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    background-color: var(--color-dark);
    border-radius: 0;
    padding: 20px;
    min-width: 250px;
    left: 0;
    top: 100%;
    transition: 0.3s;
    z-index: 100;
}
.header-menu ul.sub-menu li a {
    font-size: 16px;
    font-weight: 400;
    border: 1px solid transparent;
    padding: 0 !important;
    color: var(--color-light) !important;
    display: block;
    position: relative;
    transition: 0.3s;
    text-align: left;
    border-bottom: 0 !important;
}
.header-menu ul.sub-menu li:hover {
    -color: var(--color-dark) !important;
    background-color: #fff5;
}

.header-menu ul li:hover > ul, .header-menu ul li:hover > .menu-wrapper {
    visibility: visible;
    opacity: 1;
    max-height: 1000px;
    z-index: 100;
}

.header-menu ul.sub-menu li {
    display: block;
    overflow: hidden;
    height: auto;
    padding: 10px;
    transition: 0.3s;
}
.header-menu ul.sub-menu li:hover {
    color: var(--color-dark);
}
.header-menu ul li:hover ul li {
    overflow: visible;
}
.menu-header-principal {
    flex: 1 1 auto;
}
.menu-header-principal .header-menu .sub-menu .menu-item-has-children::after {
    content: "\f054"!important;
    font-family: var(--font-fa) !important;
    font-size: 16px;
    line-height: 1;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    right: 15px;
    top: 15px;
    position: absolute;
    font-weight: 400;
    cursor: pointer;
    color: var(--color-light);
}

.header-menu ul ul ul {
    width: 100%;
    left: 100%;
    top: -2px;
    padding: 0 !important;
    margin-top: 2px;
}

.header-menu ul .menu-wrapper {
    position: absolute;
    left: -1px;
    top: 100%;
    margin-top: -5px;
    width: 100%;
}

.header-menu ul .menu-wrapper a {
    white-space: inherit;
}

.header-menu ul .menu-wrapper .menu-col {
    position: relative;
    float: left;
    width: 23%;
    margin: 0 1%;
}

.header-menu ul .menu-wrapper h3 {
    margin: 20px 15px;
    font-size: 18px;
    line-height: 22px;
    color: var(--color-dark);
}

.header-menu ul .menu-wrapper ul {
    position: relative;
    visibility: hidden;
    height: 100%;
    border: 0;
    opacity: 1;
    background: transparent;
}

.header-menu ul li:hover > .menu-wrapper ul {
    visibility: visible;
}

.header-menu ul .menu-wrapper ul li {
    padding: 0 10px;
}

.header-menu .show-submenu {
    display: none;
}
.header-recherche {
    margin-left: 0;
}
#menu-menu-langue li:last-child {
    margin-right: 0;
}

/* RESPONSIVE
================================================== */
@media only screen and (max-width: 991px) {
    .menu-header-principal .header-menu, .menu-principal {
        display: none;
    }
    input.header-menu-button {
        display: none;
    }

    label.header-menu-button {
        display: inline-block;
        text-transform: uppercase;
        background: var(--color-light);
        color: var(--color-dark);
        cursor: pointer;
        height: 80px;
        font-size: 0;
        width: 90px;
        padding: 30px 0 0 30px;
        /*border-left: 1px solid #000000;*/
    }

    label.header-menu-button:before {
        position: absolute;
        content: '\f0c9';
        font-family: var(--font-fa);
        font-size: 40px;
        z-index: 1;
    }

    .header-menu ul {
        margin: 0;
        padding: 0;
    }

    .header-menu li, .header-menu a {
        display: block;
    }

    .header-menu li {
        position: initial !important;
    }

    .header-menu ul > li {
        padding-bottom: 0;
    }

    .header-menu > ul > li:hover > a,
    .header-menu > ul > li.current > a {
        border-left: 1px solid transparent;
        border-right: 1px solid transparent;
    }

    .header-menu ul ul ul a {
        padding-left: 55px;
    }

    .header-menu ul ul ul ul a {
        padding-left: 70px;
    }

    .header-menu ul ul ul a {
        font-size: 16px;
        padding-left: 60px;
    }

    .header-menu ul li.menu-item-has-children > a:before,
    .header-menu ul li.menu-item-has-children > a:after {
        top: 50%;
        left: auto;
        right: 12px;
    }

    .header-menu ul li.menu-item-has-children > a:before {
        margin-top: -6px;
    }

    .header-menu ul li.menu-item-has-children > a:after {
        margin-top: 6px;
    }


    .header-menu .show-submenu {
        position: absolute;
        display: block !important;
        right: 0;
        margin: 0 21px;
        -webkit-appearance: none;
    }

    .header-menu .show-submenu:before {
        content: "\f078";
        font-family: var(--font-fa);
        font-size: 20px;
        color: var(--color-light);
        display: block;
        position: relative;
        top: -20px;
    }

    .header-menu .show-submenu + ul,
    .header-menu .show-submenu + .menu-wrapper {
        display: none;
        visibility: hidden;
    }

    .header-menu .show-submenu:checked + ul,
    .header-menu .show-submenu:checked + .menu-wrapper {
        display: block;
        visibility: visible;
        top: 1px;
    }

    .btn-header {
        display: none;
    }
    .header-recherche {
        margin-right: 0;
    }


    @-webkit-keyframes slide-left {
        0% {
            left: 100%;
        }
        100% {
            left: 0%;
        }
    }
    @keyframes slide-left {
        0% {
            left: 100%;
        }
        100% {
            left: 0%;
        }
    }

}

@media (max-width: 1200px) {
    header .header-site .col-10 {
        padding-left: 100px!important;
    }
    .header-menu .sub-menu .sub-menu {
        max-width: 250px;
        width: 100%;
    }
    .header-menu .sub-menu .sub-menu a {
        white-space: normal;
    }
    .header-menu ul.sub-menu ul li {
        -padding: 15px 20px 15px 20px;
    }
    .header-btn {
        width: 46px;
    }
}

@-webkit-keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/*------------------- menu mobile -------------------*/
.message_top .btclose {
    position: absolute;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    border-radius: 50px;
    right: 10px;
    top: 20px;
    padding: 0;
    margin: 0;
    transition: .3s;
}

.message_top .btn-close {
    opacity: 1;
    cursor: pointer;
    color: var(--color-dark);
}
.message_top .btclose:hover {
    background: #fff8;
}
.acf-block-preview .message_top .btclose {
    display: none;
}
.header-logo-menu-mobile {
    text-align: center;
    margin-top: 18px;
}

@media (max-width: 768px)  {
    .message_top {
        height: auto!important;
    }
    .message_top .text-center {
        text-align: center !important;
        line-height: initial;
        padding: 10px 30px 10px 0;
    }
    .offcanvas-body .w-75 {
        width: 100% !important;
    }
    .offcanvas-body h1.style-titre-deco::after {
        margin-left: 2px!important;
    }
}


/*------------------- menu mobile -------------------*/
.menu-header-mobile {
    position: fixed;
    width: 100%;
    z-index: 999;
    left: 0;
    right: 0;
    top: 100px; /* Commence en haut de l'écran */
    height: calc(100vh - 100px); /* Prend 100% de la hauteur de la fenêtre */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: .3s;
}

.menu-header-mobile.active,
.menu-header-mobile:has(#mobile-menu-checkbox:checked) {
    max-height: 100vh; /* Hauteur maximale = 100% de la hauteur de la fenêtre */
    opacity: 1;
    background: var(--color-dark);
}

/* Bouton de fermeture du menu mobile */
.close-menu-mobile {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: transparent;
    border: none;
    color: var(--color-light);
    font-size: 18px;
    cursor: pointer;
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
.close-menu-mobile .fa-xmark-large {
    color: var(--color-dark);
    font-size: 12px;
}
.menu-header-mobile.active .close-menu-mobile {
    opacity: 1;
}
.menu-header-mobile nav.menu-mobile {
    position: relative;
    padding: 0rem;
    overflow: auto;
    overflow-x: hidden;
    width: 100vw;
    height: 100%; /* Utilise toute la hauteur disponible */
    margin-top: 22px;
    background: var(--color-light);
}
@media (min-width: 768px) {
    .menu-header-mobile,
    .menu-header-mobile nav.menu-mobile {
        width: 650px;
    }
    .menu-burger {
        display: none;
    }
}

.menu-header-mobile ul {
    margin-top: 20px;
    padding: 0rem;
}
.menu-header-mobile li {
    min-height: 62px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.menu-header-mobile .menu-menu_top-container ul,
.menu-header-mobile .menu-menu_top-container li {
    border-top: none;
    border-bottom: none;
}
.menu-header-mobile .menu-menu_top-container li i {
    margin-right: 10px;
}
.menu-header-mobile li:has(.sub-menu)::after {
    position: absolute;
    width: 34px;
    height: 62px;
    content: '\f061';
    font-family: var(--font-fa);
    font-size: 20px;
    right: var(--rem-1);
    font-weight: 300;
    line-height: 62px;
    color: var(--color-dark);
    transition: all 0.3s ease;
}
.menu-header-mobile li:has(.sub-menu):hover::after {
    transform: translateX(5px);
}
.menu-header-mobile li a {
    color: var(--color-dark);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 150% */
    letter-spacing: 3.2px;
    text-transform: uppercase;
    margin-left: var(--rem-2);
    display: flex;
    position: relative;
    height: 62px;
    align-items: center;
    min-width: 30%;
    transition: all 0.3s ease;
}
.menu-header-mobile li li a {
    color: var(--color-light);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px; /* 175% */
    letter-spacing: 2.56px;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .menu-header-mobile li a {
        margin-left: var(--rem-1);
    }
    .menu-header-mobile li:has(.sub-menu)::after {
        right: 25px;
    }
}
.menu-header-mobile li a:hover {
    color: var(--color-dark);
    transform: translateX(10px);
}
.menu-header-mobile .sub-menu {
    position: absolute;
    height: calc(90px);
    top: 0;
    right: -110%;
    z-index: 1;
    width: 100%;
    background: var(--color-dark);
    overflow: hidden;
    transition: right 0.3s ease-in-out;
    box-shadow: 0 0 10px #aaa;
    will-change: right;
}
.menu-header-mobile .sub-menu .sub-menu {
    z-index: 2;
}
.menu-header-mobile .sub-menu .sub-menu .sub-menu {
    z-index: 3;
}
.menu-header-mobile .sub-menu .sub-menu .sub-menu .sub-menu {
    z-index: 4;
}
.menu-header-mobile .sub-menu.opened {
    right: 0;
}
.menu-header-mobile .menu-parent {
    display: inline-block;
    width: 70%;
    vertical-align: middle;
    padding-left: 10px;
    min-height: 65px;
}

.menu-header-mobile .retour {
    display: inline-block;
    width: 30%;
    text-align: right;
    padding-right: 25px;
    vertical-align: middle;
    min-height: 65px;
    cursor: pointer;
    color: var(--color-dark);
    border: 0;
    user-select: none;
    top: -5px;
    position: relative;
}

.menu-header-mobile .retour::before {
    content: "\f053"; /* Icône flèche gauche FA */
    font-family: var(--font-fa);
    font-weight: 900;
    margin-right: 10px;
    display: inline-block;
}

.menu-header-mobile .parent-title {
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 150% */
    letter-spacing: 3.2px;
    text-transform: uppercase;
    color: var(--color-dark);
}
.menu-header-mobile .retour::before {
    position: relative;
    width: 34px;
    height: 42px;
    content: '\f060';
    font-family: var(--font-fa);
    font-size: 22px;
    font-weight: 300;
    line-height: 42px;
    transition: all 0.3s ease;
}
.menu-header-mobile .retour:hover::before {
    transform: translateX(-5px);
}


.menu-header-mobile:has(input#mobile-menu:checked) {
    max-height: 100vh;
    opacity: 1;
}
@media only screen and (max-width: 768px) {
    body:has(input#mobile-menu:checked) {
        overflow: hidden;
    }
}

