/** header **
------------------------------------------------------------
------------------------------------------------------------*/
header {
    position: relative;
    z-index: 1;
    transition: .3s;
}

/* Header sticky lorsque le menu mobile est ouvert */
.header-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Ajustement pour la barre d'administration WordPress */
.admin-bar .header-sticky {
    top: 32px; /* Hauteur standard de la barre d'admin WP */
}

@media screen and (max-width: 782px) {
    .admin-bar .header-sticky {
        top: 0; /* Hauteur de la barre d'admin WP sur mobile */
    }
}
.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;
}

/** 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: block;
    }
}
@media only screen and (max-width: 991px) {
    img.custom-logo.custom-logo-small {
        display: 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-dark);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    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;
    color: var(--color-dark);
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 22px;
    cursor: pointer;
    transition: .3s;
}
.header-close {
    width: 60px;
}
.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-3);
}
.header-btn-fa,
.slick-prev::before, .slick-next::before {
    font-family: "Font Awesome 6 Pro" !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;
    }
}


/* ====================================================================================================
	MENU CSS
==================================================================================================== */
.header-menu-principal {
    display: block;
}
#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-menu a {
    border-color: transparent;
}

.header-menu a:hover {
    color: var(--color-3);
}

.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 > ul > li > a {
    border: 1px solid transparent;
    color: var(--color-light);
}
.header-menu *, .sub-menu {
    transition: .3s;
}

.header-menu ul li a {
    display: block;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-dark);
    padding: 16px 25px 60px 25px;
}
.header-menu ul.menu > li > a:hover,
.header-menu ul.menu > li:hover > a {
    background: linear-gradient(to bottom, var(--color-tertiare) 53px, white calc(53px + 1px));
    color: var(--color-light);
    position: relative;
    z-index: 2;
}
.header.bg--color-pastel .header-menu ul.menu > li > a:hover,
.header.bg--color-pastel .header-menu ul.menu > li:hover > a {
    background: linear-gradient(to bottom, var(--color-tertiare) 53px, var(--color-pastel) calc(53px + 1px));
}

/* Flèche pour les éléments du premier niveau qui ont des sous-menus */
.header-menu ul.menu > li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: "Font Awesome 6 Pro";
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    color: var(--color-dark);
    font-weight: 400;
}

.header-menu ul.menu > li.menu-item-has-children:hover > a::after {
    content: '\f106';
    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;
}
.header-menu > ul {
    padding: 0 5px;
}

.header-menu ul li {
    display: inline-block;
    transition: .3s;
    flex: 1 1 min-content !important;
}

/*** submenu ***/
.header-menu ul ul, .header-menu ul .menu-wrapper {

    transition: 0.3s;
}
.header-menu ul ul li a {
    font-size: 16px;
    border: 1px solid transparent;
    padding: 10px!important;
}

.header-menu ul li:hover > ul, .header-menu ul li:hover > .menu-wrapper {
    visibility: visible;
    opacity: 1;
    max-height: 1000px;
    z-index: 1;
}

.header-menu ul ul li {
    display: block;
    overflow: hidden;
    height: auto;
    padding: 10px;
    transition: 0.3s;
}
.header-menu ul.sub-menu li {
    padding: 0 65px 0 5px;
}
.header-menu ul.sub-menu li:hover {
    color: var(--color-accent);
}

.header-menu ul ul li:hover > a,
.header-menu ul ul li.current-menu-item > a {
    border-style: solid;
    border-width: 1px;
    color: var(--color-accent);
}

.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: "Font Awesome 6 Pro"  !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);
}

.menu-header-principal .header-menu .sub-menu .menu-item:hover::before {
    content: '';
    height: 1px;
    width: 15px;
    opacity: 1;
    left: 0;
    top: 21px;
    position: absolute;
    cursor: pointer;
    background: var(--color-accent);
}

.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;
}


/* RESPONSIVE
================================================== */
@media only screen and (max-width: 991px) {
    .menu-header-principal .header-menu {
        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: "Font Awesome 6 Pro";
        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 li a {
        font-size: 16px;
        padding-left: 40px;
    }

    .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;
        background: var(--color-dark);
    }

    .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: 'FontAwesome';
        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 #menu-menu_principal > li > a, .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;
    }
    #menu-menu_principal {
        display: flex;
        padding-right: 2rem;
    }
}

@-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;
}

@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: var(--menu-top-position, var(--header-height)); /* Utilise la position qui inclut la barre admin si présente */
    height: calc(100vh - var(--menu-top-position, var(--header-height))); /* Hauteur = écran moins (header + barre admin) */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: .3s;
}

.menu-header-mobile.active {
    max-height: calc(100vh - var(--menu-top-position, var(--header-height))); /* Hauteur max = écran moins (header + barre admin) */
    opacity: 1;
    background: var(--color-grey);
}
.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: 0; /* Plus besoin de marge car déjà positionné sous le header */
    background: var(--color-grey);
}
.menu-header-mobile ul {
    padding: 0rem;
    border-top: 1px solid var(--color-dark);
}
.menu-header-mobile li {
    min-height: 62px;
    border-bottom: 1px solid var(--color-dark);
    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: '\f054';
    font-family: "Font Awesome 6 Pro";
    font-size: 22px;
    right: var(--rem-1);
    font-weight: 300;
    line-height: 62px;
}

.menu-header-mobile a {
    color: var(--color-dark);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    margin-left: var(--rem-2);
    display: flex;
    position: relative;
    height: 62px;
    align-items: center;
    min-width: 30%;
}
@media (max-width: 768px) {
    .menu-header-mobile a {
        margin-left: var(--rem-1);
    }
    .menu-header-mobile li:has(.sub-menu)::after {
        right: 0;
    }
}
.menu-header-mobile li a::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: currentColor;
    top: 100%;
    left: 0;
    pointer-events: none;
}
.menu-header-mobile li a::after {
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s;
    content: '';
}
.menu-header-mobile li a:hover::after {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}
.menu-header-mobile .sub-menu {
    position: absolute;
    height: calc(100vh - var(--header-height));
    top: 0;
    right: -110%;
    z-index: 1;
    width: 100%;
    background: var(--color-grey);
    overflow: hidden;
    transition: .3s;
    box-shadow: 0 0 10px #aaa;
}
.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 .retour {
    background: var(--color-dark);
    color: var(--color-light);
    padding-left: 1rem;
    border: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
}
.menu-header-mobile .parent-title {
    padding-left: 1rem;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
}
.menu-header-mobile .retour::before {
    position: relative;
    width: 34px;
    height: 42px;
    content: '\f053';
    font-family: "Font Awesome 6 Pro";
    font-size: 22px;
    font-weight: 300;
    line-height: 42px;
}



.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;
    }
}

