: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;
}

/*
 *
 * HEADER 
 *
 */

@media screen and (max-width:767px){
    .logo-header{
        position: relative!important;
    }
}


#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;
    }
}

/* Texte défilant */
.messagedefilant {
    display: block;
    padding: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 60px;
}

.messagedefilant div {
    position: absolute;
    min-width: 100%; /* au minimum la largeur du conteneur */
    color: #ffffff;
    font-family: 'Raleway';
    font-weight: 800;
}

.messagedefilant div span, 
.messagedefilant div:after {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    white-space: nowrap;
    top:0;
    padding-left : .5rem;
}

.messagedefilant div span {
    animation: defilement 15s infinite linear;
    /*background: #cde;*/
}

.messagedefilant div:after {
    position: absolute;
    top:0; left:0;
    content:attr(data-text);
    animation: defilement2 15s infinite linear;
    /*background: #edc;*/
}

@keyframes defilement {
    0% { margin-left: 0; }
    100% { margin-left: -100%; }
}

@keyframes defilement2 {
    0% { margin-left: 100%; }
    100% { margin-left: 0%; }
}

@media screen and (max-width: 768px){
    .messagedefilant {
        height: 40px;
    }
    
    .messagedefilant div span, 
    .messagedefilant div:after {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 575px){
    .messagedefilant {
        height: 30px;
    }

    .messagedefilant div span, 
    .messagedefilant div:after {
        font-size: 1.2rem;
    }
}