.et_fixed_nav.et_show_nav #page-container.custom-header-mercure-clmnc{
    padding-top: 0;
}

.mercure-clmnc-header {
    position: fixed;
    width: 100%;
    z-index: 9999;
    display: flex;
    padding: 60px 120px 30px 120px ;
    justify-content: space-between;
    transition: all 0.4s ease-in-out;
}

/* Ajustement pour l'admin bar WordPress */

.mercure-clmnc-menu-items {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    width: 100%;
    opacity: 1;
    transition: max-width 0.5s ease-in-out, max-height 0.5s ease-in-out, opacity 0.8s ease 0.4s, padding 0.5s;
    overflow: hidden;
    margin-top: 50px;
    flex-direction: column;
}

.mercure-clmnc-menu-wrapper {
    display: flex;
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    z-index: 9999;
    background: #FFF5F2;
    border-radius: 0 20px 20px 0;
    max-width: 0;

    width: 50%;
    transition: max-width 0.5s ease-in-out, max-height 0.5s ease-in-out, opacity 0.8s ease 0.4s, padding 0.5s;
}
.mercure-clmnc-menu-wrapper:has(.opened) {
    max-width: 500px;
}

.mercure-clmnc-menu-wrapper{
    background-image: url("/wp-content/uploads/fond-menu.svg");
    background-repeat: no-repeat;
    background-position: 55% 120%;
}
.reservation-menu-wrapper{
    background-image: url("/wp-content/uploads/fond-menu.svg");
    background-repeat: no-repeat;
    background-position: 40% 120%;
}

a.open-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
}


ul.mercure-clmnc-menu-list {
    display: flex;
    gap: 5px;
    row-gap: 20px;
    flex-direction: column;
    align-items: flex-start;
}

.opened ul.mercure-clmnc-menu-list {
    animation: towrap 0.1s ease-in-out 0.5s;
    animation-fill-mode: forwards;
}

ul.mercure-clmnc-menu-list li a,
ul.reservation-menu-list li a{

    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: black;
}
ul.mercure-clmnc-menu-list li.current-menu-item a,
ul.reservation-menu-list li.current-menu-item a{
    color: #85221e;
    display: flex;
    align-items: center;
    flex-wrap: wrap;

}
.closed ul.mercure-clmnc-menu-list,
.closed .hrztl-separator,
.closed .close-menu{
    padding: 0;
}

ul.mercure-clmnc-menu-list .menu-item{
    width: max-content;
}
ul.mercure-clmnc-menu-list .menu-item a{
    padding: 0 10px;
    position: relative;
    display: block;
}
ul.mercure-clmnc-menu-list .menu-item a:before,
ul.reservation-menu-list .menu-item a:before{
    background: #CD9E71;
    content: url('data:image/svg+xml,<svg width="10" height="19" viewBox="0 0 10 19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.87L9 9.87L1 17.87" stroke="%23FEFAF6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    display: inline-flex;
    height: 37px;
    padding-top: 3px;
    width: 40px;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.4s ease-in-out;
}

ul.mercure-clmnc-menu-list .menu-item:hover a:before,
ul.mercure-clmnc-menu-list .menu-item.current-menu-item a:before,
ul.reservation-menu-list li.menu-item:hover a:before,
ul.reservation-menu-list li.menu-item.current-menu-item a:before{
    background: #916f4f;
}


.mercure-clmnc-header .close-menu {
    line-height: 0;
    border: none;
    background: none;
}
.hrztl-separator {
    width: 1px;
    height: 20px;
    background: #000;
}
button#menu-reservation-btn {
    position: relative;
    z-index: 999;
    width: 180px;
}


 button.menu-reservation-btn {
     padding: 20px 40px;
    background: #CD9E71;
    color: #272421;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
     border: none;


}
 #mercure-clmnc-menu{
     width: 30%;
     display: flex ;
     gap: 20px;
     align-items: center;
 }

.header-right {
    display: flex
;
    align-items: center;
    gap: 30px;
    width: 30%;
    justify-content: flex-end;
}

a.header-bons-cadeaux {
    display: flex;
    color: #FEFAF6;
    gap: 10px;
    align-items: center;
}
.scrolled a.header-bons-cadeaux {

    color: #272421;
}

.scrolled .header-bons-cadeaux svg path{
    fill: #272421;

}
.header-bons-cadeaux svg path{
    fill: #FEFAF6;
}

a.header-patisseries{
    display: flex;
    color: #FEFAF6;
    gap: 10px;
}
.scrolled a.header-patisseries {

    color: #272421;
}

.scrolled .header-patisseries svg path{
    fill: #272421;

}
.header-patisseries svg path{
    fill: #FEFAF6;
}



.mercure-clmnc-menu-wrapper a {
    color: #000000;
}

.mercure-clmnc-menu-items.closed {
    max-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0;
    opacity: 0;
    transition:opacity 0.3s ease-in-out, max-width 0.5s ease-in-out 0.3s,max-height 0.5s ease-in-out 0.3s, padding 0.5s ease-in-out 0.3s;
}

a#open-menu {
    visibility: visible;
    width: fit-content;
    padding: 20px;
    transition: all 0.5s ease-in-out;
    background: #cd9e71;
    position: relative;
}
a#open-menu.opened {
    visibility: hidden;
}
#close-menu {
    cursor: pointer;
    display: flex;
    background: none;
    border: none;
    gap: 10px;
    font-size: 16px;
    color: #777B80;
    align-items: center;
    justify-content: flex-end;
}

#open-menu svg .line-1,
#open-menu svg .line-3{
    transition: all 0.2s ease-in-out;
}
#open-menu:hover svg .line-1 {
    transform: translateY(-3px);
}
#open-menu:hover svg .line-3 {
    transform: translateY(3px);
}







/*bouton reservation content*/
.reservation-menu-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    max-width: 0;
    height: 100%;
    z-index: 9999;
    background-color: #FFF5F2  ;
    padding: 0 0;
    opacity: 0;
    overflow: auto;
    border-radius: 20px 0 0 20px;
}
.reservation-menu-wrapper.opened {
    width: 20%;
    padding: 0 40px;
    max-width: 500px;
    height: 100vh;
    opacity:1;
    transition: max-width 0.5s ease-in-out, max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}
.reservation-menu-wrapper.closed {
    padding: 0 0;
    opacity: 0;
    max-width: 0px;
    transition: max-width 0.5s ease-in-out 0.3s,max-height 0.5s ease-in-out 0.3s, padding 0.5s ease-in-out, opacity 0.3s ease-in-out;

}


.reservation-menu-wrapper.opened .reservation-menu-container {
    width: 100%;
    max-width: 500px;
    opacity:1;
    transition: max-width 0.5s ease-in-out, max-height 0.5s ease-in-out, padding 0.5s ease-in-out 0.5s , opacity 0.8s ease 0.5s;
}
.reservation-menu-wrapper .reservation-menu-container {
    opacity: 0;
    max-width: 0px;
    transition: opacity 0.3s ease-in-out, max-width 0.5s ease-in-out 0.3s,max-height 0.5s ease-in-out 0.3s, padding 0.5s ease-in-out 0.3s;

}

.reservation-menu{
    margin-top: 50px;
}

ul.reservation-menu-list {
    display: flex;
    gap: 5px;
    row-gap: 20px;
    flex-direction: column;
    align-items: flex-start;
}
ul.reservation-menu-list li:last-of-type {
    border-bottom: none;
}

.logo-reservation-menu{
    display: block;
    margin: auto;
    width: 100%;
    max-width: 50vw;
}

#overlay-menu-reservation {
    visibility: hidden  ;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    background: #0000003d;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}
#overlay-menu-reservation.opened {
    visibility: visible;
    opacity: 1;
}

#close-reservation-menu{
    cursor: pointer;
    width: max-content;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    gap: 10px;
    font-size: 16px;
    color: #777B80;
    margin: auto 0 auto auto;
}

.mercure-clmnc-header.scrolled{
    background-color: rgba(255, 250, 246, 0.8);
    border-bottom: 1px solid #FEFAF6;
    backdrop-filter: blur(10px);

    padding: 20px 120px 20px 120px ;

}
.mercure-clmnc-header.not-home{
    background-color: rgba(255, 250, 246, 0.8);
    border-bottom: 1px solid #FEFAF6;
    backdrop-filter: blur(10px);

    padding: 20px 120px 20px 120px ;

}

.logo-header-wrapper {
    display: flex;
    align-items: center;
}
#logo-header path{
    transition: all 0.4s ease-in-out;
}
#logo-header.scrolled path {
    fill: grey;
}

.not-home #logo-header path {
    fill: grey;
}


.mercure-clmnc-lang-wrapper,
.mercure-clmnc-lang-wrapper a
{
    color: white;
}

@media screen and (max-width: 1300px) {
    .header-patisseries p, .header-bons-cadeaux p{
        display: none;
    }
}

@media screen and (max-width: 960px) {
    .mercure-clmnc-header {
        max-width: 100vw;
        transition: all 0.5s ease-in-out;
        padding: 0;
    }

    .mercure-clmnc-menu-wrapper:has(#open-menu.opened) {

        flex-direction: column;
    }
    ul.mercure-clmnc-menu-list {
        flex-direction: column;
    }
    .mercure-clmnc-menu-items {
        padding: 20px;
    }
    .hrztl-separator{
        width: 70px;
        height: 1px;
    }
    .mercure-clmnc-header.not-home,
    .mercure-clmnc-header.scrolled{
        padding: 0;
    }
    .logo-header-wrapper
    {
        display: none;
    }
    .scrolled .mercure-clmnc-lang-wrapper,
    .scrolled  .mercure-clmnc-lang-wrapper a {
        color: black;
    }
    .mercure-clmnc-menu-wrapper,
    .reservation-menu-wrapper.opened{
        width: 100%;
    }
}

@media screen and (max-width: 782px) {
    #engagement-cards .et_pb_module_inner {
        align-items: normal;
        flex-direction: column;
    }
    #engagement-cards .dsm_card_carousel_child_image_wrapper{
        padding: 20px;
    }
}


@keyframes towrap {
    from {
        flex-wrap: nowrap;
    }
    to {
        flex-wrap: wrap;
    }
}
