:root {
    --max-width: 1340px;
    --min-margin: 3rem;
    --dynamic-width: min(var(--max-width), calc(100% -(2* var(--min-margin))));
    --dynamic-margin: max(calc(50% - 0.5* var(--max-width)), var(--min-margin));
} 

/*
 *
 * INITIALISATION 
 *
 */

html, body{
    width : 100%;
    overflow: hidden;
    overflow-y: auto;
}

header .elementor-widget-image a img[src$=".svg"]{
    width: auto;
}

footer .elementor-widget-image a img[src$=".svg"]{
    width: auto;
}


/* DISPLAY NONE */
.d-none{
    display: none!important;
}

@media screen and (min-width:768px){
    .d-sm-only{
        display: none!important;
    }
}

@media screen and (max-width:767px){
    .d-sm-none{
        display: none!important;
    }
}

@media screen and (min-width:1024px){
    .d-md-only{
        display: none!important;
    }
}

@media screen and (max-width:1023px){
    .d-md-none{
        display: none!important;
    }
}

@media screen and (min-width:1200px){
    .d-lg-only{
        display: none!important;
    }
}

@media screen and (max-width:1199px){
    .d-lg-none{
        display: none!important;
    }
}

/* RECAPTCHA */
.grecaptcha-badge{
	display : none!important;
	opacity : 0;
	z-index : -99999;
}

/*
 *
 * GENERAL 
 *
 */


/* Full height */
.full-height{
    height: 100%!important;
}

/* Offset left wrapper */
@media screen and (min-width:768px){
    .offset-left-wrapper{
        position: relative;
        padding-left: var(--dynamic-margin);
    }
}

/* Offset left wrapper */
@media screen and (min-width:768px){
    .offset-right-wrapper{
        position: relative;
        padding-right: var(--dynamic-margin);
    }
}

/* Background image & squared background image */
.background-img, .squared-img{
    position: relative;
}

.background-img:before, .squared-img:before{
    z-index: 2;
}

.squared-img{
    aspect-ratio: 1 / 1;
}

.squared-img > div, .background-img > div{
    position: static;
}

.squared-img img, .background-img img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-family: 'object-fit: cover;';
    object-position: center;
    min-height: 100%;
}

.squared-img .elementor-widget-image, .background-img .elementor-widget-image{
    height: 100%;
}

.squared-img.top img, .background-img.top img{
    object-position: center top;
}

.squared-img.bottom img, .background-img.bottom img{
    object-position: center bottom;
}

@media screen and (max-width:767px){
    .background-img.full-height, .squared-img.full-height{
        height: auto!important;
    }
}


/* Not clickable */
.not-clickable{
    pointer-events: none;
}


/* RBM Button */
.elementor-button-link {
    background-color: transparent;
    color: var(--e-global-color-accent);
    border: 2px solid var(--e-global-color-accent);
    position: relative;
    z-index: 1;
}

.elementor-button-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--e-global-color-accent);
    transition: width 0.3s ease;
    z-index: -1;
}

.elementor-button-link:hover:after {
    width: 100%;
}

.elementor-button-link:hover {
    color: white;
}

.elementor-button-link svg{
    transition: all .3s ease;
}

.elementor-button-link:hover svg{
    fill: white!important;
}

.white-button .elementor-button-link {
    color: #ffffff;
    border: 2px solid #ffffff;
}

.white-button .elementor-button-link:after {
    background-color: #ffffff;
}

.white-button .elementor-button-link:hover {
    color: var(--e-global-color-accent)!important;
}

.white-button .elementor-button-link:hover svg{
    fill: var(--e-global-color-accent)!important;
}


/* Framed border wrapper */
.framed-border{
    position: relative;
}

.framed-border:before{
    content:"";
    position: absolute;
    border-width : 1.5rem;
    border-style: solid;
    top: 2rem;
    left: 4rem;
    right: 4rem;
    bottom: 2rem;
    width: calc(100% - 8rem);
    height: calc(100% - 4rem);
}

.framed-border.white:before{
    border-color: white;
}

@media screen and (max-width: 1366px){
    .framed-border:before{
        left: 2rem;
        right: 2rem;
        width: calc(100% - 4rem);
        height: calc(100% - 4rem);
    }
}

@media screen and (max-width: 768px){
    .framed-border:before{
        left: 0;
        right: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
}

/* Triple section */
.triple-section{
    position: relative;
}

.triple-section:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, transparent, transparent calc(100% / 5.3), rgba(0,0,0,0.25) calc((100% / 5.3) + 1px), transparent calc((100% / 5.3) + 1px)), linear-gradient(90deg, transparent, transparent calc((100% / 2.47 * 2) - 1px), rgba(0,0,0,0.25) calc(100% / 2.47 * 2), transparent calc(100% / 2.47 * 2));
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    z-index: 0; 
}

@media screen and (max-width:1024px) { 
    .triple-section:before{
        background-image: linear-gradient(90deg, transparent, transparent calc(100% / 5.3), rgba(0,0,0,0.25) calc((100% / 5.3) + 1px), transparent calc((100% / 5.3) + 1px)), linear-gradient(90deg, transparent, transparent calc((100% / 2.47 * 2) - 1px), rgba(0,0,0,0.25) calc(100% / 2.47 * 2), transparent calc(100% / 2.47 * 2));
    }
}

/* Swiper pagination */
.swiper-pagination .swiper-pagination-bullet{
    border-radius: 0;
    width: 2rem!important;
}

.swiper-slide:not(.swiper-slide-active) .gamme-slide-image{
    transform: scale(0.7);
    transition: transform .3s ease;
    opacity : .3;
}

/*
 *
 * HEADER 
 *
 */

#main-header{
    position: fixed;
    transition: all .3s ease;
    z-index: 10;
}

#main-header .elementor-widget-theme-site-logo{
    transition: all .3s ease;
}

/* STICKED */
#main-header .elementor-widget-image {
	z-index: 3;
}

#main-header.sticked{
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 5;
    padding-top : 0!important;
	transform : translateY(-100%);
	transition : transform .3s ease;
}

#main-header.sticked .elementor-widget-theme-site-logo{
    transform: scale(.8);
}

#main-header.sticked.active{
	transform : translateY(0);
}

#main-header li a span.d-sm-none{
    padding-right : 0.3rem;
}

/* Main menu */
#main-menu .menu-item.emphasized{
    position: relative;
    background-color: var(--e-global-color-accent);
}

#main-menu .menu-item.emphasized:before{
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--e-global-color-secondary);
    transition: width 0.3s ease;
}


#main-menu .menu-item.emphasized a{
    color : #ffffff;
}

#main-menu .menu-item.emphasized:hover:before,
#main-menu .menu-item.emphasized:focus:before{
    width: 100%;
}

@media screen and (min-width:880px) {
    /* Main menu */
    #main-menu > nav, #main-menu > nav > ul, #main-menu > nav > ul > li{
        position: static;
    }

    #main-menu > nav > ul > li > ul{
        /*display: flex;*/
        width: 100%!important;
        max-width: none!important;
        right: 0;
        right: 0px;
        justify-content: stretch;
    }

    #main-menu .sub-menu{
        display: flex!important;
    }

    #main-menu .sub-menu[aria-hidden="true"]{
        display: none!important;
    }

    #main-menu > nav > ul > li > ul > li{
        flex-grow: 1;
    }

    #main-menu > nav > ul > li > ul > li:not(:last-child){
        border-right : 1px solid var(--e-global-color-accent);
    }

    #main-menu > nav > ul > li > ul > li > a{
        padding: 1.6rem;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
}


.tab-section .e-n-tabs-heading{
    align-items: flex-start;
}

.tab-section .e-n-tab-title{
    transition: padding .3s ease;
}

.tab-section .e-n-tab-title[aria-selected="true"],
.tab-section .e-n-tab-title:hover,
.tab-section .e-n-tab-title:focus{
    padding: 2rem 2.1875rem;
}