/* ********* */
/* APP STYLE */
/* ********* */

/* *** COLORS *** */
/*
First :     #233C70;
Second :    #233C70;
Third :     #DA662C;
*/

h1,h2,h3,p,span,a {
    font-family: "Montserrat", Sans-serif;
}

.elementor-image-box-description {
    max-width: 89% !important;
}

.btn-bleu {
    background-color: #233C70;
}

.btn-orange {
    background-color: #DA662C;
}

.btn-clair {
    background-color: #83B9B6;
}

#backtohome {
    position: fixed;
    right: -5em;
    font-weight: bold;
    background-color: #da662c;
    border: 2px solid #da662c;
    width: 250px;
    height: auto;
    text-align: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    box-shadow: 2px 2px 5px 0px #0000008c;
    transition: all .2s ease-in-out;
}

#backtohome span {
    position: absolute;
    left: .8em;
    color: #fff;
    cursor: pointer;
}

#backtohome a {
    color: #fff;
}

.backhomevisible {
    opacity: 1 !important;
    transition: all .2s ease-in-out;
    right: 1em !important;
    visibility: visible !important;
    animation: tadam 1s ease-in-out both reverse;
}

.toggled {
    right: -14.3em !important;
}

.rotate {
    transform: rotate(180deg) !important;
}

#btnVideoComplete a {
    position: absolute;
    top: 4rem;
    right: 4rem;
}

#btnVideoComplete a span .elementor-button-content-wrapper {
    margin-top: .3rem;
}

#btnVideoComplete a span i {
    font-size: 2rem;
    line-height: 15px;
}

/* BREADCRUMB */
.drimm-breadcrumb,
.drimm-breadcrumb a {
    color: #00000058;
}

.drimm-breadcrumb strong {
    color: #0E7579;
}

/* DRIMM MAP */
.popup-vimeo figure {
    position: relative;
    transition: all .2s ease-in-out;
}

.popup-vimeo figure a img {
    visibility: hidden;
}

.popup-vimeo figure figcaption {
    z-index: -1;
    position: absolute;
    top: -15px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #233C70;
    font-size: 20px;
    font-weight: bold !important;
    border: 4px solid #233C70;
    border-radius: 100%;
    width: 45px;
    height: 45px;
    background: #fff;
}

.popup-vimeo figure:hover figcaption {
    animation: grow 1.5s infinite;
    transform: scale(1.8);
}

.drimm_map-after-button {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.drimm_map-after-button a {
    color: #fff;
    font-weight: bold;
    border-radius: 26px;
    padding: .5em 1em;
    transition: all .2s ease-in-out;
    margin: 0 1.5em 1.5em 0;
}

.drimm_map-after-button a:last-child{
    margin-right: 0px;
}

.drimm_map-after-button a:hover {
    transform: scale(1.05);
}

/* OWL CAROUSEL */
#carrousel-drimm .owl-stage {
    min-width: 850px;
}

#carrousel-drimm a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .2s ease-in-out;
}

#carrousel-drimm a:hover {
    /* transform: scale(1.05); */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#carrousel-drimm a h2 {
    position: absolute;
    left: 1em;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    max-width: 90%;
}

#carrousel-drimm .desc {
    color: #233C70;
    text-align: center;
    font-weight: 500;
    font-family: 'Montserrat';
    font-size: 12px;
    margin-top: .5em;
}

.second-line {
    margin-top: 2em;
}

.owl-theme .owl-nav [class*='owl-'] {
    transition: all .2s ease-in-out;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: none;
    color: none;
    text-decoration: none;
    transform: scale(1.05);
}

.owl-prev {
    position: absolute;
    top: 7.8em;
    left: -9.5%;
    width: 8%;
    z-index: 9999;
}

.owl-next {
    position: absolute;
    top: 7.8em;
    right: -9%;
    width: 8%;
    z-index: 9999;
}

/* PHOTOTHEQUE */

.mfp-img {
    max-height: 600px !important;
}

.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
    right: -40px !important;
    font-size: 45px !important;
}

.mfp-title {
    position: absolute;
    bottom: 50px;
    color: #233C70 !important;
    background-color: #ffffffd9;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    text-align: center !important;
    padding: .5em 0 !important;
}

.container-phototheque {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.container-phototheque a {
    max-width: 20em;
    position: relative;
    margin-top: 3.5em;
    transition: all .2s ease-in-out;
    height: 12em;
    overflow: hidden;
}

.container-phototheque a:hover {
    /* transform: scale(1.02); */
    /* z-index: 9999; */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.container-phototheque a img {
    width: 100%;
}

.container-phototheque a span {
    color: #233C70;
    background-color: #ffffffd9;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    padding: .3em 0;
    display: block;
    position: absolute;
    bottom: 10%;
}
/* Couleur pour Stockage déchets */
.container-phototheque .post-1736 span {
    color: #66bbd4;
}
/* Couleur pour Valorisation énergétique */
.container-phototheque .post-1301 span {
    color: #DA662C;
}
/* Couleur pour Valorisation matière */
.container-phototheque .post-1197 span {
    color: #233C70;
}

.container-phototheque .hidden {
    display: none;
}

.container-loadmore, .loadmore-text {
    box-sizing: border-box;
    position:relative;
    text-align: center;
    background-image: url('/wp-content/uploads/2021/08/separator.png');
    background-repeat: no-repeat;
    background-size: 3%;
    background-position: center center;
    font-size:0;
    height: 100px;
    cursor: pointer;
    transition: all .5s ease-in-out;
}

.loadmore-text {
    box-shadow: 0px -15px 20px 16px #fff;
}

.text-hidden {
    display: none;
    opacity: 0;
}

.text-visible {
    display: block;
    opacity: 1;
}

.container-loadmore::before, .container-loadmore::after, .loadmore-text::before, .loadmore-text::after {
    box-sizing: border-box;
    width: 40%;
    height: 1px;
    border-top: 1px solid #DA662C;
    display: inline-block;
    content: '';
    margin-left: 1.5%;
    margin-right: 1.5%;
    position: relative;
    top: 50%;
    -moz-transform: translatey(-50%);
    -ms-transform: translatey(-50%);
    -o-transform: translatey(-50%);
    -webkit-transform: translatey(-50%);
    transform: translatey(-50%);
    z-index: -1;
}

.open {
    transform: rotate3d(1, 0, 0, 180deg);
}

/* POPUP */
.container-popup {
    background-color: #fff;
    padding: 3em;
    margin: 0 28%;
    border-radius: 28px;
}

.container-popup .mfp-close {
    right: 25% !important;
    top: -5% !important;
    font-size: 70px !important;
    color: #fff !important;
}

/* POPUP VIDEO */
.mfp-iframe-scaler iframe {
    border-radius: 28px;
}

.mfp-iframe-scaler .mfp-close {
    top: -40px;
    right: -5% !important;
    font-size: 70px !important;
    color: #fff !important;
}

/* LIENS UTILES */
.container-liens-utiles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.container-liens-utiles .post-link {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 25em;
    flex-wrap: wrap;
}

.container-liens-utiles .post-link img {
    width: 100%;
}

.container-liens-utiles .post-link h2 {
    width: 100%;
    color: #233C70;
    font-weight: bold;
    margin-top: .5em;
    font-size: 18px;
}

.container-liens-utiles .post-link p {
    width: 100%;
    color: rgb(67, 60, 60);
    font-size: 14px;
}

.container-liens-utiles .post-link a {
    width: 100%;
    margin-top: -2em;
    color: #DA662C;
    font-weight: bold;
    font-size: 14px;
    background: linear-gradient( to top, #DA662C 0%, #DA662C 10%, transparent 10.01% ) no-repeat left bottom / 0 90%;
    height: 1.6em;
    transition: background .3s ease-in-out;
}

.container-liens-utiles .post-link:hover a {
    background-size: 15% 90%;
}

.title-liens-utiles{
    color: #1E447799;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 800;
    /* margin-top: 1.5em; */
}

.container-liste-liens-utiles {
    margin-top: 0em;
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
}

.container-liste-liens-utiles ul {
    margin: 0;
    padding: 0;
}

.container-liste-liens-utiles ul:first-child {
    width: 35%;
}

.container-liste-liens-utiles ul .link-list {
    list-style: none;
}

.container-liste-liens-utiles ul .link-list a {
    position: relative;
    font-size: 20px;
    color: #000;
}

/* .container-liste-liens-utiles ul .link-list a::before {
    content: "\f04b";
    font-size: 20px;
    margin-right: .5em;
    color: #D0D0D0;
} */

.container-liste-liens-utiles ul .link-list a i {
    color: #9c9c9c;
    font-size: 25px;
}

.container-liste-liens-utiles ul .link-list a:hover {
    color: #000;
    font-weight: bold;
}
.container-liste-liens-utiles ul .link-list a:hover i {
   color: #DA662C;
}

.container-liens-utiles .hidden{
    display: none;
}

/* CONTACT */
.form-container {
    display: flex;
    flex-wrap: wrap;
}

.form-container .form-group {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
}

.form-container .form-group span {
    width: 100%;
    max-width: 250px;
    min-width: 250px;
    margin-bottom: 1em;
}

/* .wpcf7 .wpcf7-form-control-wrap {
    width: 100%;
    max-width: 250px;
    min-width: 250px;
    margin-bottom: 1em;
} */
.form-container .form-group:nth-child(4) span,
.form-container .form-group:nth-child(5) span  {
    max-width: 93%;
}

/* RESPONSIVE */
@media screen and (max-width: 600px) {

    .elementor-image-box-description {
        max-width: 100% !important;
    }

    #backtohome {
        bottom: 2em;
    }

    .toggled {
        right: -15em !important;
    }

    .container-popup {
        margin: 0 5%;
    }

    .container-popup .mfp-close {
        right: 5% !important;
    }

    .container-phototheque,
    .container-liens-utiles {
        justify-content: center;
    }

    .mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
        right: 0px !important;
    }

    .mfp-title {
        bottom: 15px;
        font-size: 16px;
        padding: .4em 0 !important;
    }

    .container-loadmore, .loadmore-text {
        background-size: 10% !important;
    }

    .container-loadmore::before, .container-loadmore::after, .loadmore-text::before, .loadmore-text::after {
        margin-left: 5.5% !important;
        margin-right: 4.5% !important;
    }

    .container-liste-liens-utiles ul {
        width: 100% !important;
    }

    #carrousel-drimm .owl-item .item{
        display: none;
    }

    #carrousel-drimm .active .item {
        display: block !important;
    }

    .owl-prev {
        position: relative;
        top: 0;
        left: 0;
        width: 15%;
        z-index: 9999;
    }
    
    .owl-next {
        position: relative;
        top: 0;
        right: 0;
        width: 15%;
        z-index: 9999;
    }

    .container-phototheque .owl-item {
        height:250px;
        width:100%;
    }

    .container-phototheque .owl-item span {
        top: 14em !important;
        bottom: unset !important;
        width: 27.5em !important;
    }

    .form-container .form-group span {
        max-width: 100%;
    }

    .form-container .form-group:nth-child(4) span, .form-container .form-group:nth-child(5) span {
        max-width: 100%;
    }

    .lien-seche {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* ANNIMATION */
@keyframes grow {
    0% {
        -webkit-transform: scale( 1 );
        -moz-transform: scale( 1 );
        -o-transform: scale( 1 );
        -ms-transform: scale( 1 );
        transform: scale( 1 );
    }
    
    50% {
        -webkit-transform: scale( 0.8 );
        -moz-transform: scale( 0.8 )
        ;-o-transform: scale( 0.8 );
        -ms-transform: scale( 0.8 );
        transform: scale( 0.8 );
    }
    
    100% {
        -webkit-transform: scale( 1 );
        -moz-transform: scale( 1 );
        -o-transform: scale( 1 );
        -ms-transform: scale( 1 );
        transform: scale( 1 );
    }
}

@keyframes tadam {
    0% {
        -webkit-transform: scale( 1 );
        -moz-transform: scale( 1 );
        -o-transform: scale( 1 );
        -ms-transform: scale( 1 );
        transform: scale( 1 );
    }
    
    50% {
        -webkit-transform: scale( 1.1 );
        -moz-transform: scale( 1.1 )
        ;-o-transform: scale( 1.1 );
        -ms-transform: scale( 1.1 );
        transform: scale( 1.1 );
    }
    
    100% {
        -webkit-transform: scale( 1 );
        -moz-transform: scale( 1 );
        -o-transform: scale( 1 );
        -ms-transform: scale( 1 );
        transform: scale( 1 );
    }
}

@keyframes showtop {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}
@-webkit-keyframes showtop {
    from {
        top: -100px;
    }
    to {
        top: 0;
    }
}

span.circle{
    width: 10px;
    height: 10px;
    border: 4px #233c70 solid;
    border-radius: 15px;
    padding: 10px;
    display: inline-block;
    margin-left: 5px;
    margin-bottom: -5px;
}