/********************************/
/******** Promo *****/
/********************************/

.promo-banner{
    padding: 0.5rem 0;
    background: #FF8B1F;
    color: #fff;
}


.container-promo{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.text-promo{
    font-family: Roboto;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.8rem;
}

.show-promo{
    color: #FFFFFF;
    font-family: Raleway;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4rem;
    padding-top: 4px;
}

.show-promo i{
    margin-left: 0.6rem;
}



/********************************/
/******** Hero *****/
/********************************/

#hero {
    position: relative;
    height:calc(100vh - 7.75rem);
    width:100%;
    display:flex;
    align-items:center;
    justify-content: center;
}



#hero::after {
    width:100%;
    height:100%;
    content: '';
    position:absolute;
    z-index:1;
    top:0;
    left:0;
    background:rgba(0,0,0,0.5)
}

.texture {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../images/hero-frame1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#hero video {
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
    z-index:1;
    object-fit:cover;
    font-family:'object-fit: cover';
}

#hero .caption {
    width: 60%;
    display:flex;
    flex-direction: column;
    align-items: center;
    position:relative;
    z-index:2;
    text-align:center;
    color:#ffffff;
}

#hero .caption h1 {
    font-family: 'Raleway';
    text-transform: uppercase;
    font-size:4.5em;
    margin-top: 0.5rem;
    margin-bottom:1rem;
    line-height: 5.25rem;
    color: #FFFFFF;
}
#hero .caption .deco-sous-titre{
    width: 5rem;
}
.orange{
    color: #FF9900;
}
.green {
    color: #339933;
}

.caption p{
    margin: 1rem 0 2rem;
}

.btn-cta{
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 3%;
}

.btn-more.white {
    border: 2px solid #fff;
    color: #fff;
}


/********************************/
/******** About *****/
/********************************/



.about {
    background-image: url(../images/background-qsn.png);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position-x: 100%;
    background-color: rgba(211, 211, 211, 0.53);
    padding: 4rem 0 7rem;
}

.about .container{
    width: 62%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-desc{
    width: 45%;
    margin-bottom: 2rem;
}

.about-desc p{
    line-height: 25.6px;
	margin: 1rem 0;
}

.mascotte {
    width: 54%;
    align-self: flex-end;
    transform: translateY(7rem);
}

.bloc-prime{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #25871C;
    border-radius: 16px;
    padding: 1.25rem 2.25rem;
    margin-bottom: -11rem;
    position: relative;
}
.logo-prime{
    width: 43%;
}
.prime-desc{
    width: 46%;
}
.prime-desc p{
    font-style: normal;
    font-weight: 400;
    font-size: 1.1rem;
    color: white;
}
.btn-prime{
    display: block;
    width: fit-content;
    margin: 2rem auto .25rem;
    background-color: #FF8B1F;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    text-transform: uppercase;
    text-align: center;
}


/********************************/
/******** Expertises *****/
/********************************/


#expertises{
    padding: 9rem 0 2rem;
}

#expertises .container{
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: space-between;
}
.bg-house {
    background-image: url('../images/brush-expertise.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 65%;
    display: flex;
    justify-content: center;
    margin-left: -5%;
}

.house{
    position: relative;
    width: 83%;
}

.bg-expertise{
    width: fit-content;
    background-color: #FF8B1F;
    padding: 0.3rem 0.4rem;
    border-radius: 8px;
    z-index: 2;
}

.text-expertise{
    color: white;
    opacity: 0;
    margin-top: 0.25rem;
    font-family: 'Raleway';
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.8rem;
    text-align: center;
    z-index: 2;
    transition: 0.5s;
}

.more-expertise{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.more-expertise i{
    color: #FFF;
    font-size: 1.3rem;
}

.img-expertise{
    z-index: 0;
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-radius: 100%;
    transform: translateY(calc(-50% + 1rem));
    transition: 0.5s;
    filter: brightness(50%);
}

.more-expertise:hover .img-expertise, .more-expertise.more-actif .img-expertise{
    width: 12rem;
    height: 12rem;
    transition: 0.5s;
}

#isolation-thermique:hover  .img-expertise, #isolation-thermique.more-actif .img-expertise{
    width: 14rem;
    height: 14rem;
}


.more-expertise:hover .text-expertise, .more-expertise.more-actif .text-expertise{
    opacity: 1;
    transition: 0.5s;
}

.more-expertise:hover .bg-expertise, .more-expertise.more-actif .bg-expertise{
    background-color: #333333;
}

#toiture {
    top: 17%;
    left: 28%;
}

#isolation-des-combles {
    top: 33%;
    left: 15%;
}

#isolation-thermique {
    top: 56%;
    left: 16%;
}

#interieur {
    top: 54%;
    left: 3.4%;
}

#facade {
    top: 38%;
    left: 32.5%;
}


.all-expertises{
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 24%;
    background-color: #FF8B1F;
    color: #fff;
    border-radius: 8px;
    transition: 0.5s;
}

.expertise.desc-actif{
    height: 100%;
    background-color: #121212E5;
    transition: 0.5s;
}

.expertise.desc-actif .title-expertise{
    /* margin: 1.4rem 0; */
    top:13%;
    transition: 0.5s;
}



.title-expertise{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.5s;
}


.desc-expertise{
    height: 0;
    opacity: 0;
    transition: 0.2s;
}


.expertise.desc-actif .desc-expertise{
    opacity: 1;
    height: auto;
    transition: 0.2s 0.3s;
}

.expertise.desc-actif .desc-expertise:last-child{
    text-align: center;
}

.desc-expertise ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2rem;
    margin-top: 2rem;
    font-size: 12px;
}
.desc-expertise li{
    list-style-type: disc;
}

.desc-expertise .link-expertise{
    display: block;
    text-transform: uppercase;
    color: white;
    padding: 0.5rem;
    border: 1px solid white;
    border-radius: 10px;
    margin: 0 auto;
    margin-top: 1rem;
    width: 9rem;
}

.desc-expertise .link-expertise i{
    margin-left: 0.6rem;
}

.title-expertise{
    display: flex;
    align-items: center;
}
.logo-expertise{
    width: 2rem;
    margin-right: 1.1rem;
}

.name-expertise{
    text-transform: uppercase;
    font-weight: 700;
}


/********************************/
/******** Realisations *****/
/********************************/

.lasts-realisations{
    padding: 8rem 0;
    background-image: url(../images/maison-background.svg);
    background-repeat: no-repeat;
    background-size: cover;
}

.lasts-realisations .container{
    width: 80%;
}

.show-real.container.left {
    display: flex;
    justify-content: flex-end;
    margin-top: -6.2rem;
    margin-bottom: 5rem;
    align-items: center;
}

.titre-section{
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 4.5rem;
}

.lasts-realisations .more{
    display: none;
}


/********************************/
/******** Events *****/
/********************************/
.events{
    background-image: url(../images/logo_renovathome_big_opacity10.png);
    background-repeat: no-repeat;
    background-size: auto 90%;
    background-position-y: 50%;
    background-position-x: 5%;
    background-color: #25871C;
    padding: 11rem 0;
}
.events .container{
    display: flex;
    flex-wrap: wrap;
    column-gap: 5%;
    row-gap: 3rem;
}
.events-desc{
    color: #fff;
    width: 30%;
}

.events-desc p{
    font-family: Roboto;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.81rem;
    letter-spacing: 0;

}
.events-desc .show-real{
    display: block;
    margin-top: 2rem;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5rem;
    color: #fff;
    text-transform: uppercase;
}
.show-real i{
    margin-left: .6rem;
}
.events-carousel{
    width: 65%;
}


.custom-slider {
    position: relative;
    width: 33%; 
}

.slide-container {
    /*display: -webkit-box;*/
    width: 100%;
    column-gap: 3%;
    /*max-width: 800px;*/
    position: relative;
    margin: auto;
}
.ec__holder{
    width: calc(100vw - 82%);
}
.events .ec .ec__nav {
    cursor: pointer;
    position: absolute;
    top: -25%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #25871C;
    font-size: 30px;
    background-color: white;
}

.events .ec .ec__nav--next:before{
    font-family: "Font Awesome 5 Free";
    font-weight: bold;
    content: '\f061';

}

.events .ec .ec__nav--prev:before{
    font-family: "Font Awesome 5 Free";
    font-weight: bold;
    content: '\f060';

}


.events .ec .ec__nav--prev{ right: 85px; }
.events .ec .ec__nav--next { right: 15px; }
.events .ec .ec__nav:hover {
    background-color: rgba(0,0,0,0.5);
}

.slide-img{
    width: 95%;
    border-radius: 8px;
    height: 23.75rem;
    object-fit: cover;
    object-position: center;
}
  
.infos-event{
    display: flex;
    gap: 12px;
    width: 95%;
    height: 100%;
    position: absolute;
    top: 0%;
    left: 0%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 153, 0, 0.6) 77.08%, #FF9900 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.00892857) 0%, rgba(0, 0, 0, 0) 57.29%, rgba(0, 0, 0, 0.5) 63.54%);
    color: #FFF;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 8px;
    transition: 0.5s;
    text-align: center;
    align-items: center;
}

.border-info-event{
    width: 90%;
    height: 50%;
    border-top: 0.4px solid white;
    display: flex;
    gap: 12px;
    color: #FFF;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.5s;
    text-align: center;
    align-items: center;
    padding-top: 12px;
}

.nom-event{
    font-family: Raleway;
    font-weight: 700;
    font-size: 1.5rem;
}

.date-event{
    margin-bottom: 2rem;
}

.infos-event span{
    width: 80%;
}

.infos-event hr{
    width: calc(95% * 0.8);
}

.infos-event i{
    margin-right: 1rem;
}


.fade {
    animation-name: fade;
    animation-duration: 1s;
}
@keyframes fade {
    from {opacity: 0}
    to {opacity: 1}
}





/********************************/
/******** Responsive *****/
/********************************/

@media screen and (max-width: 1440px){
    .about .container{
        width: 75%;
    }

    #expertises .container, .lasts-realisations .container, .events .container{
        width: 87%;
    }

    .lasts-realisations .layer {
        height: 23rem;
    }
    
    .ec__holder{
        width: calc(100vw - 68%);
    }
}

@media screen and (max-width: 1250px){
    .lasts-realisations .more{
        display: flex;
    }
    .show-real.container.left {
        display: none;
    }
}
@media screen and (max-width: 1100px){

    #expertises .container{
        width: 91%;
    }

    .more-expertise:hover .img-expertise, .more-expertise.more-actif .img-expertise{
        width: 9rem;
        height: 9rem;
    }
    .text-expertise{
        font-size: 1rem;
        line-height: 1.3rem;
    }

    .expertise{
        font-size: 13px;
    }

    .expertise.desc-actif{
        height: 90%;
        text-align: center;
    }
    .name-expertise{
        font-size: 14px;
    }

    #isolation-desc .desc-expertise ul{
        margin-top: 4rem;
    }

    .events{
        padding: 2.75rem 0 3.75rem;
        background-size: auto 40%;
        background-position-y: 10%;
        background-position-x: 85%;
    }

    .events-desc{
        width: 80%;
    }

    .events-carousel {
        width: 100%;
    }

    .ec__holder {
        width: 107%;
    }

    .events .ec .ec__nav{
        top: -15%;
    }
}

@media (max-width: 1024px){
    #hero .caption {
        width: 66%;
    }

}

@media (max-width: 1000px){
    .layer {
        height: calc(87vw * 0.39) !important;
    }

}

@media screen and (max-width: 950px){
    #expertises .container{
        gap: 2%;
    }
    .all-expertises{
        width: 43%;
    }
}

@media screen and (max-width: 850px){
    .text-promo{
        font-size: 0.8rem;
    }
    .show-promo{
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px){
    
    #hero .caption{
        width: 90%;
    }

    .about .container{
        width: 90%;
    }

    #expertises .container, .lasts-realisations .container, .events .container{
        width: 90%;
    }

    .ec__holder {
        width: 105%;
    }

    #expertises .container{
        width: 83%;
    }

    .house{
        display: none;
    }
    .more-expertise{
        display: none;
    }
    .all-expertises{
        width: 100%;
        height: 44rem;
    }
    .expertise.desc-actif{
        height: 50%;
    }
    

}





@media screen and (max-width: 650px){
    .promo-banner, .mascotte{
        display: none;
    }
    
    #hero video {
        display:none;
        
    }

    #hero .caption {
        width: 100%;
    }

    #hero .caption h1{
        font-size: 2.5rem;
        line-height: 2.9rem;
    }
    
    .caption p{
        font-size: 0.875rem;
    }

    .about-desc {
        width: 100%;
    }

    .bloc-prime{
        padding-bottom: 0;
        flex-direction: column;
    }
    .logo-prime{
        width: 65%;
    }
    .prime-desc{
        width: 100%
    }
    .prime-desc p{
        font-size: 0.9rem;
    }
    .btn-prime{
        margin-bottom: -1rem;
    }

}

@media (max-width: 500px) {
    .layer {
        height: 9.4rem !important;
    }

    .slide-container {
        width: 90%;
    }

    .ec__holder {
        width: 111%;
    }

}

@media (max-width:425px){
    #expertises .container{
        width: 91%;
    }
    .desc-expertise ul{
        margin-left: 3rem;
        align-items: flex-start;
    }
    .expertise.desc-actif{
        text-align: left;
    }
    
    .events .container{
        row-gap: 8rem;
    }
    
    .events .ec .ec__nav--prev {
        right: 50%;
        transform: translate(-7px, -50%);
    }
    
    .events .ec .ec__nav--next {
        left: 50%;
        transform: translate(7px, -50%);
    }
}