body:has(.cave-jc-slide-menu-wrapper.opened){
    overflow: hidden;
    height: 100vh;
    width: 100vw    ;
    padding-right: 15px;
}

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

.cave-jc-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 999;
    background: transparent;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    padding: 1vh 5vw 1vh 5vw;
}

.header-scrolled .cave-jc-header {
    background: #ffffff99;
    backdrop-filter: blur(10px);
}

/* Ajustement pour l'admin bar WordPress */
.admin-bar .cave-jc-header {
    top: 32px;
}

.logo-cave-jc-wrapper{
    grid-column: 1;
    grid-row: 1;
    img{
        max-width: 70px;
    }
}
nav#cave-jc-menu{

    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    .cave-menu-list{
        display: flex;
        gap: 20px;
        align-items: center;
        row-gap: 20px;
        justify-content: center;
        .menu-item{
            width: max-content;
            a{
                padding: 0 10px;
                position: relative;
                display: block;
                text-transform: uppercase;
                font-family: 'Inria sans', sans-serif;
                font-weight: 400;
                color: #2E2E2E;
                font-size: 16px;
            }

        }
        .current_page_item a{
            color: #C18B52;
            font-weight: 700;
        }
         a:after{
            opacity: 0;
             content: "";
             display: block;
             position: absolute;
             bottom: -4px;
             width: 33px;
             height: 6px;
             transition: opacity 0.3s ease-in-out;
        }
         a:hover:after{
             opacity: 1;
            background: #C18B52;
        }
        .current_page_item a:after{
            opacity: 1;
            background: #C18B52;
        }
    }
}




.cave-jc-menu-wrapper {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10%;
    a {
        color: #000000;
    }

    .right-elements-header{
        display: flex;
        gap: 50px;
        align-items: center;
        margin-top: 5px;
        .lang-switcher li a{
            text-transform: uppercase;
            color: #2E2E2E;
            font-size: 16px !important;

            border-color: #333;
            border-style: solid;
            border-bottom: 4px solid #2E2E2E;
        }

        a.btn-boutique.header{
            border-radius: 20px;
            border: 1px solid #2E2E2E;
            padding: 0 10px;
            display: flex;
            gap: 6px;
            align-items: center;
            text-align: center;
        }
    }



    button#menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-transform: uppercase;
        font-weight: bold;
        font-family: 'Inria Sans', sans-serif;
        gap: 3px;
        border: none;
        background: none;
        cursor: pointer;
    }
}

.lang-switcher.mobile{
    display:none;
}



@media screen and (max-width: 1100px) {
    .cave-jc-header {
        transition: all 0.5s ease-in-out;
    }
    .cave-jc-header:has(#open-menu.opened) {
        top: 20px;
        right: 10%;
        transform: translateX(10%);
        max-width: 90vw;
    }
    .cave-jc-menu-wrapper:has(#open-menu.opened) {

        flex-direction: column;
    }
    ul.cave-jc-menu-list {
        flex-direction: column;
    }
    .cave-jc-menu-items {
        flex-direction: column-reverse;
        padding: 20px;
    }
    .hrztl-separator{
        width: 70px;
        height: 1px;
    }

    .cave-jc-menu-wrapper .right-elements-header{
       display: none;
    }

    .lang-switcher.mobile{
        display:block;
        margin: 50px auto;
        max-width: 80%;
        a{
            text-transform: uppercase;
            color: #2E2E2E;
            font-size: 16px !important;

            border-color: #333;
            border-style: solid;
            border-bottom: 4px solid #2E2E2E;
        }

    }

}

@media screen and (max-width: 782px) {
    .admin-bar .cave-jc-header,
    .admin-bar .cave-jc-header:has(#open-menu.opened)
    {
        top: 56px;
    }
    nav#cave-jc-menu{
        display: none;
    }
}

/*bouton reservation content*/
.cave-jc-slide-menu-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    max-width: 0;
    height: 100%;
    z-index: 9999;
    background-color: #C18B52  ;
    padding: 0;
    transition: max-width  0.5s ease-in-out, padding 0.5s ease-in-out;
    overflow: auto;

    .cave-jc-slide-menu{
        margin-bottom: 50px;
    }


    ul.cave-slide-menu-list{
        display: flex;
        flex-direction: column;
        margin: 50px auto;
        max-width: 80%;

        li:after {
            content: "";
            display: block;
            width: 40px;
            height: 1px;
            background: #2E2E2E;
            transition: width 0.3s ease-in-out;
        }
        li:hover:after {
            width: 100%;
        }
        li.current_page_item:after {
            width: 100%;
        }
        li a {
            padding: 25px 0;
            font-family: 'Inria Sans', sans-serif;
            font-weight: 400;
            position: relative;
            text-transform: uppercase;
            display: flex;

            font-size: 25px;
            color: #2E2E2E;
        }
    }

    .logo-slide-menu{
        display: block;
        margin: auto;
        width: 100%;
        max-width: 200px;
    }

    .slide-menu-btn-boutique{
        max-width: 80%;
        margin: auto;
        .btn-boutique {
            display: block;
            font-size: 20px;
            text-align: center;
            letter-spacing: 2px;
            font-family: 'Roboto', sans-serif;
            text-transform: uppercase;
            color: #000000;
            background-color: #FFFFFF;
            border: none;
            cursor: pointer;
            padding: 9px 25px;
            transition: all 0.4s ease-in-out;
            font-weight: 400;
        }
    }

    #close-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;
    }
}
.cave-jc-slide-menu-wrapper.opened {
    width: fit-content;
    padding: 10vh 8%;
    max-width: 690px;
}




#overlay-menu {
    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.opened {
    visibility: visible;
    opacity: 1;
}

#cta-wrapper {
    position:fixed;
    z-index: 99;
    bottom: 35px;
    right: 35px;
    width: fit-content;
    display: flex;
    border: 1px solid #363E45;
}

.cta-img img{
    width: 34px;
    height: 34px;
}

.cta-img{
    padding: 15px;
    background: #363E45;
    display: flex;
    align-items: center;
}

.cta-txt{
    padding: 0;
    background: #FFF5F2;
    display: flex;
    align-items: center;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    white-space: nowrap;
}

#cta-wrapper:hover .cta-txt {
    padding: 15px;
    opacity: 1;
    max-width: 200px;
    overflow: visible;
}




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