/* couleurs */
:root {
    --jaune: #FAB430;
    --jaune-clair: #FCD68D;
    --bleu: #1E3B70;
    --bleu-clair: #A3B7CF;
    --footer: #CCC;
    --gris: rgba(0,55,122,0.36);
    --blanc: #FFF;
    --noir: #000;
}

/* test images */
.home-images .elementor-widget-image{
    filter: blur(0);
    transition: 0.5s -webkit-filter linear;
}
.home-images .elementor-widget-image.blur{
    filter: blur(30px);
}

.home-images img{
    margin: auto;
}

.home-images #home-image-1 img{
    width: 389px;
    height: auto;
}
.home-images #home-image-2 img{
    width: 451px;
    height: auto;
}

.home-images #home-image-1, .home-images #home-image-2{
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* sous-menu desktop > affichage */
.sousmenu-container {
    display: none;
    position: absolute;
    top: 132px;
    padding: 0 !important;
    z-index: 1;
}
/* sous-menu desktop > puces */
.sousmenu .elementor-nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.sousmenu .elementor-nav-menu > li {
    display: flex;
    align-items: center;
}

.sousmenu .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li:not(:last-child)::after,
.sousmenu .elementor-nav-menu > li:not(:last-child)::after {
    content: "" !important;
    display: block !important;
    width: 4px !important;
    height: 4px !important;
    border: none !important;
    border-left: none !important;
    background-image: url('../img/ellipse.png') !important;
    background-size: 4px 4px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin: 0 12px !important;
    flex-shrink: 0 !important;
    align-self: center !important;
}

.sousmenu .elementor-nav-menu--layout-horizontal .elementor-nav-menu > li.is-last-in-row::after,
.sousmenu .elementor-nav-menu > li.is-last-in-row::after {
    display: none !important;
}

/* menu mobile */
nav.elementor-nav-menu--dropdown{
    top: 45px !important;
}
/* home bouton */
.home-hero{
    position: relative;
    height: 336px;
}
.home-hero-bouton{
    position: absolute;
    left: calc((100% - 180px)/2);
    bottom: -20px;
}
.home-hero-bouton a{
    width: 180px;
    cursor: pointer;
}
#elementor-popup-modal-138 .dialog-widget-content{
    box-shadow: none;
}

/* footer > carte */
.bg-carte a{
    width: 100%;
}

/* footer > boutons */
.footer-bouton .elementor-button-icon svg{
    width: 1.5em;
}
#footer-bouton-3 .elementor-button-icon svg{
    width: 2.5em;
}
.footer-bouton span.elementor-button-content-wrapper{
    line-height: 27px;
    position: relative;
}
.footer-bouton span.elementor-button-content-wrapper .elementor-button-text{
    position: absolute;
    bottom: 0;
    left: 35px;
    width: 185px;
    text-align: left;
    transition: all 0.5s ease;
}
#footer-bouton-3 span.elementor-button-content-wrapper .elementor-button-text{
    left: 55px;
}
.footer-bouton:hover span.elementor-button-content-wrapper .elementor-button-text{
    border-bottom: solid 1px var(--blanc);
    bottom: 10px;
}


/* liste actualites */
.actualites-item{
    display: block;
    width: 100%;
    height: 435px;
    margin-bottom: 50px;
    background-color: var(--jaune-clair);
    position: relative;
    border-radius: 16px;
    z-index: 1;
}
.actualites-item .texte{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 50px;
    border-radius: 16px 16px 0 0 ;
    z-index: 4;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.5s ease;
}
.actualites-item .texte div, .actualites-item h3{
    color: var(--blanc);
    font-family: "Spotka", sans-serif;
    font-size: 16px;
    font-weight: 400;
    z-index: 5;
}
.actualites-item .texte .categorie{
    color: var(--noir);
    font-size: 20px;
    transition: all 0.5s ease;
}
.actualites-item .texte h3{
    font-size: 25px;
}
.actualites-item .texte, .actualites-item .img{
    width: 100%;
    height: 50%;
}
.actualites-item .img,
.actualites-item .img-hover{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.actualites-item .img{
    border-radius: 0 0 16px 16px;
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 0;
}
.actualites-item .img:before{
    content: '';
    width: 33px;
    height: 33px;
    background-image: url('../img/actu-fleche.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 30px;
    top: -16px;

}
.actualites-item .img-hover{
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.5s ease;
    border-radius: 16px;
    z-index: 3;
}
.actualites-item:hover .img-hover{
    opacity: 1;
}
.actualites-item:hover .texte{
    top: 50%;
    background-color: transparent;
    border-radius: 16px;
}
.actualites-item:hover .texte .categorie{
    color: var(--blanc)
}
.actualites-item:hover .img:before{
    display: none;
}

/* pages de texte > introduction */
.page-introduction{
    color: var(--jaune-clair);
    padding-bottom: 25px;
    max-width: 800px !important;
    border-radius: 16px;
    margin: 25px auto;
}
.page-contenu h2{
    font-family: "Spotka";
    font-size: 30px;
    color: var(--noir);
    font-weight: 400;
    margin: 30px 0 20px 0;
}

/* contact */
form.wpcf7-form input[type="text"],
form.wpcf7-form input[type="email"],
form.wpcf7-form textarea{
    border-color: #ccc;
}
form.wpcf7-form input[type="submit"]{
    border: none !important;
}

/* bouton */
p.bg-bouton {
    margin-top: 50px;
    margin-bottom: 50px;
}
.bg-bouton a, a.bg-bouton {
    background-color: var(--bleu);
    border: solid 1px var(--bleu);
    color: var(--blanc);
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 35px;
    transition: all 0.5s ease;
}
.bg-bouton a:hover, a.bg-bouton:hover {
    background-color: var(--blanc);
    color: var(--bleu);
}
/* trombi */
.trombi-liste{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.trombi-item{
    width: 50%;
    margin: 10px 10px 25px 10px;
    text-align: center;
}
.trombi-item h3{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0;
}

/* menu breton au survol */
@media (hover: hover) and (pointer: fine) {
    .elementor-nav-menu .elementor-item[data-br] {
        position: relative;
        display: inline-block;
        transition: background 0.5s ease, color 0.5s ease;
    }

    .elementor-nav-menu .elementor-item[data-br]::after {
        background-color: var(--blanc) !important;
        color: var(--bleu) !important;
        content: attr(data-br);
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        color: var(--jaune) !important;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
        text-align: center !important;
    }

    .elementor-nav-menu .elementor-item[data-br]:hover {
        background: var(--blanc) !important;
        color: transparent !important;
    }

    .elementor-nav-menu .elementor-item[data-br]:hover::after {
        opacity: 1;
    }
}

@media screen and (min-width: 768px){
    /* general */
    .relative{
        position: relative;
    }
    body{
        overflow-x: hidden;
    }
    .overflow-y{
        overflow-y: hidden;
    }
    /* actualites */
    .actualites-liste{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .actualites-item{
        width: 30%;
    }
    /* trombi */
    .trombi-item{
        width: 20%;
    }
    
}