.container-real{
    width: 75%;
    margin: 1rem auto;
}
.container-real-show{
    width: 75%;
    margin: 5rem auto;
}
.label-real{
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;

}
.category-real{
    /*width: 50%;*/
    margin: 3rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.category{
    margin-left: 1rem;
    margin-bottom: 1.2rem;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #339933;
    border-radius: 59px;
    color: #339933;
    text-transform: uppercase;
    cursor: pointer;
}

.category:hover {
    background: #339933;
    color: #fff;
}

.actif{
    background: #339933;
    color: #fff;
}

.last-real{
    display: flex;
    column-gap: 5.5%;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.slider {
    width: 50%;
    position: relative;
    /* height: 500px; */
    padding-bottom: 36.866667%;
    /* margin-top: 24px; */
    /* margin-bottom: 24px; */
}

.img-place-holder{
    width: 50%;
    border-radius: 8px;
}

.slider__after {
    position:absolute;
    top:0px;
    left:0px;
    z-index:1;
    width:100%;
    height:100%;
    background-size:cover;
    pointer-events: none;
    border-radius: 8px;
    background-position: 50%;
}

.slider__before {
    position:absolute;
    top:0px;
    left:0px;
    z-index:2;
    width:50%;
    height:100%;
    background-size:cover;
    pointer-events: none;
    overflow:hidden;
    border-radius: 8px 0 0 8px;
}

.slider__before:before {
    content:'Avant';
    position:absolute;
    left:8px;
    top:8px;
}

.slider__after:before {
    content:'Après';
    position:absolute;
    right:8px;
    top:8px;
}

.slider__separator {
    position:absolute;
    left:50%;
    width:2px;
    top:0px;
    bottom:0px;
    box-shadow: 0 5px 10px 0px rgba(0,0,0,0.5);
    cursor:ew-resize;
    z-index:2;
    transform:translateX(-50%);
    display: flex;
    flex-direction: column;
}

.bar__separator{
    width: 100%;
    background-color: rgba(255,255,255,0.7);
    height: calc(50% - 16px);
}

.btn__separator{
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    transform: translateX(calc(-50% + 1px));
}

.btn__separator_left_arrow{
    border: 6px inset transparent;
    position: absolute;
    top: 50%;
    margin-top: -6px;
    border-right: 6px solid #fff;
    left: 0;
}

.btn__separator_right_arrow{
    border: 6px inset transparent;
    position: absolute;
    top: 50%;
    margin-top: -6px;
    border-left: 6px solid #fff;
    right: 0%;
}

.slider__range {
    position:absolute;
    width:100%;
    bottom:0px;
    z-index: 3;
    appearance: none;
    background:rgba(255,255,255,0.3);
    outline:none;
    margin:0px;
    display:none;
}

.slider__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width:12px;
    height:16px;
    background:white;
}

.slider__range::-moz-slider-thumb {
    -moz-appearance: none;
    width:12px;
    height:16px;
    background:white;
}


.slider__before:before,
.slider__after:before {
    top:5%;
    transform:translateY(-50%);
    background:rgba(255,255,255,0.5);
    padding:8px 16px;
    border-radius:8px;
    margin-left:8px;
    margin-right:8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase ;
}

.desc-real{
    width: 44.5%;
}
.desc-real p{
    margin-top: 2rem;
    font-size: 18px;
    line-height: 1.8rem;
}

.desc-real ul{
    list-style: disc;
    margin-left: 1rem;
}

.titre-real, .titre-other-real{
    font-size: 2rem;
    line-height: 2.35rem;
    padding: 0;
    margin: 0.5rem 0;
}
.titre-other-real{
    text-transform: uppercase;
    margin-bottom: 2.25rem;
}
.show-real{
    display: block;
    margin-top: 2rem;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5rem;
    color: #25871C;
    text-transform: uppercase;
}
.show-real i{
    margin-left: .6rem;
}
.all-real, .other-real{
    display: flex;
    flex-wrap: wrap;
    column-gap: 2.33%;
}

.card-real{
    width: 23%;
}
.card-real img{
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}
.card-real-category{
    display: block;
    position: absolute;
    margin-top: -1.1rem;
    margin-left: 1.1rem;
    z-index: 2;
    color: white;
    font-size: .75rem;
    line-height: 1.05rem;
    text-transform: uppercase;
    padding: 8px 16px;
    background: #FF9900;
    border-radius: 50px;
}
.card-real-title{
    margin-left: 1.1rem;
    font-size: 1.5rem;
    line-height: 1.75rem;
}
.more{
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
    margin-bottom: 6.5rem;
}
.btn-more{
    cursor: pointer;
    width: fit-content;
    border: 2px solid #25871C;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    color: #25871C;
    text-transform: uppercase;
}

.btn-more:hover{
    background: #339933;
    color: #fff;
    border: 2px solid #25871C;
}


.galerie-real{
    margin: 6rem auto;
}

.photo-real {
    display: flex;
    column-gap: 1.35%;
    row-gap: 2rem;
    /* justify-content: space-between; */
    flex-wrap: wrap;
    margin-top: 2rem;
}

.item-galerie {
    width: 23.9%;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 18rem;
    overflow: hidden;
}

.photo-galerie{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.item-galerie:hover .photo-galerie {
    transform:  scale(1.1);
    transition: all 0.2s ease;
    box-shadow: 0px 4px 10px 7px rgb(0 0 0 / 5%);
}


#popup-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3;
    justify-content: center;
    align-items: center;
  }
  
  #popup-bg.active {
    display: flex;
    gap: 3rem;
  }
  
  #popup-content {
    /* min-width: 65%; */
    max-width: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  #popup-img {
    max-height: 90vh;
    max-width: 100%;
  }
  
  #popup-content::after {
    font-family: "Font Awesome 5 Free";
    font-weight: bold;
    content: '\f00d';
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  #popup-close:hover {
    background-color: #FF9900;
  }

  span#next, span#previous {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}




/********************************/
/******** temoignage *****/
/********************************/

.testimonial-real{
    font-family: Raleway, Roboto;
    width: 76.4%;
    margin: 1rem auto 7rem;
    /* background-image:url('../images/brush_square_green.png'); */
    background-color: #25871C;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 3rem 0;
    border-radius: 8px;
}

.title-testimonial{
    text-align: center;
}

.title-testimonial span{
    font-weight: 700;
    font-size: 2rem;
    line-height: 3rem;
}
.title-testimonial .deco-sous-titre{
    margin: 1rem auto;
}
.img-rounded{
    margin: 1rem auto;
    width: 7rem;
    border-radius: 50%;
}
.name-client{
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.75rem;
    margin-bottom: 2rem;
}
.commentaire, .commentaire-video{
    position: relative;
    width: 80%;
    font-size: 1.5rem;
    line-height: 2.25rem;
    text-align: center;
}
.commentaire::before{
    content: '';
    background-image: url('../images/punctuation-before.svg');
    background-size: 100% 100%;
    position: absolute;
    width: 3.5rem;
    height: 5rem;
    top: 10%;
    left: -10%;
}

.commentaire::after{
    content: '';
    background-image: url('../images/punctuation-after.svg');
    background-size: 100% 100%;
    position: absolute;
    width: 4.5rem;
    height: 5rem;
    bottom: 10%;
    right: -10%;
}

iframe{
    height: calc(45.84vw / 1.8095);
    border-radius: 8px;
}


/********************************/
/******** Hover et Overlay *****/
/********************************/


.card-real:hover .card-real-title{
    transition: 0.5s;
    margin-top: 0.5rem;
    padding-bottom: 1rem;

}

.card-real:hover .card-real-category{
    transition: 0.5s;
    margin-top: -2.8rem;
}

.layer{
    position: relative;
    display: flex;
    height: 20rem;
}
.lasts-realisations .layer{
    height: 25rem;
}
.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    border-radius: 8px;

}

.layer:hover .overlay {
    opacity: 1;
}

.text {
    width: 100%;
    color: white;
    opacity: 1;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

.text span{
    padding: 0.625rem 1.25rem;
    border: 1px solid white;
    border-radius: 8px;
    font-size: .9rem;
}

.text span i{
    margin-left: 0.6rem;
}



/********************************/
/******** Responsive *****/
/********************************/

@media (max-width: 1440px){
    .container-real {
        width: 87%;
    }

    .container-real-show {
        width: 87%;
    }

    .testimonial-real{
        width: 100%;
    }
    iframe{
        height: calc(69.6vw / 1.8095);
    }

}

@media (max-width: 1250px){
    .other-real, .all-real {
        column-gap: 5%;
    }

    .card-real{
        width: 47.5%;
    }

    .layer {
        height: calc(87vw * 0.39);
    }

}

@media (max-width: 1000px){
    .last-real {
        flex-direction: column;
        row-gap: 2.5rem;
    }

    .slider{
        width: 100%;
        padding-bottom: 66.866667%;
        order: 2;
    }
    .img-place-holder{
        width: 100%;
    }

    .desc-real{
        width: 100%;
        order: 1;
    }
    
    .item-galerie{
        width: 32%;
    }
}

@media (max-width: 767px) {
    .commentaire::before,.commentaire::after{
        display: none;
    }
}

@media(max-width: 650px){
    .card-real {
        width: 100%;
    }
    .item-galerie{
        width: 48%;
    }
}

@media (max-width: 500px) {
    .text span {
        padding: 0.5rem 0.7rem;
        font-size: 0.6rem;
    }
    .layer {
        height: 9.4rem;
    }
}

@media (max-width: 425px){
    .container-real, .container-real-show {
        width: 89%;
    }
    .container-real-show.full{
        width: 100%;
    }
    .item-galerie{
        width: 100%;
    }
}

