:root {
  --primary-color: #2C030B;
  --secondary-color: #2C030B;
  --third-color: #FB6A7C;
  --text-color: #ffffff;
}



/* Header */
.testimonials-header{
    background: linear-gradient(rgba(33, 33, 33, 0.9), rgba(33, 33, 33, 0.7)), url(images/testimonials-bg.webp) 50% 40% no-repeat;
   
}
/* End Of Header */

/* Testimonials */
.testimonials-section{
    width: 100%;
    height: 100rem;
    background-color: var(--primary-color);
    position: relative;
}

.testimonials-top{
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonials-top h3 {
    font-size: 2rem;
    font-weight: 300;
    color: #ccc;
}

.testimonials-top h1 {
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    margin: 2rem 0;
}

.testimonials-top i{
    font-size: 1.6rem;
    color: var(--third-color);
    margin: 0 0.5rem;
}

.testimonials-wrapper{
    width: 55%;
    height: 50rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.slider{
    width: 500%;
    height: 100%;
    display: flex;
    transition: all 0.8s cubic-bezier(1, 0, 0, 1);
}

.slide {
    width: 20%;
    position: relative;
}

.slide-bg{
    width: 70%;
    height: 65%;
    background-color: #8C4552;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateZ(-6deg);
    border-radius: 2rem;
    opacity: 0.7;
}

.slide-content{
    width: 70%;
    height: 65%;
    background-color: #eee;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    
}

.slide i{
    font-size: 12rem;
    color: var(--third-color);
    position: absolute;
}

.slide i:nth-child(1){
    top: -20%;
    left: 10%;
}
.slide i:nth-child(2){
    bottom: -20%;
    right: 10%;
}
.slide-img{
    width:35%;
    height: 16rem;
    margin-right: 3rem;
    position: relative;
}

.slide-img::after,
.slide-img::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    border: 0.2rem solid rgba(0, 0, 0, 0.4);
    border-radius: 3rem 0 3rem 0 ;
    z-index: -1;

}

.slide-img::after{
    top: -1rem;
    left: -0.5rem;
}
.slide-img::before{
    bottom: -1rem;
    right: -0.5rem;
}



.slide-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3rem 0 3rem 0;
    filter: grayscale(100%);
    cursor: pointer;
    transition: filter 1s;
}

.slide-img img:hover{
    filter: grayscale(0);
}

.slide-text{
    width: 65%;
}



.slide-text h3{
    font-size: 2.5rem;
    font-weight: 300;
    color: #111;
    margin-bottom: 1rem;
}

.slide-text p{
    font-size: 1.6rem;
    font-weight: 300;
    color: #020d14;
    line-height: 1.6rem;
    margin-bottom: 3rem;
    width: 150%;
    text-align: center;
}

.slide-text .client{
    font-size: 1.8rem;
    color: #072c35;
    text-align: center;
}

.controls i {
    width: 5rem;
    height: 5rem;
    background-color: #5E6661;
    border-radius: 50%;
    opacity: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #3A3D3D;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}


/* Flèche active */
.controls i.active {
  background-color: var(--third-color);
  color: white;
}

/* Flèche désactivée */
.controls i.disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* Position des flèches */
.controls i:nth-child(1) {
  left: 5%;
}

.controls i:nth-child(2) {
  right: 5%;
}

.controls i:hover {
  background-color: #32b0ce;
  color: white;
  transform: translateY(-50%) scale(1.2);
}


.controls i:nth-child(1){
    left: 15%;
}

.controls i:nth-child(2){
    right: 15%;
}

.dots{
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}
.dots span {
    width: 1rem;
    height: 1rem;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
}

.dots span.active {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #fff;
}
/* End Of Testimonials */


/* Responsive */

@media (max-width: 1366px) {

  .slide-text p {
    width: 150%;
  }
}
@media (max-width: 1280px) {
    .slide-bg {
      width: 80%;
    }
  
    .slide-content {
      width: 80%;
    }
    .slide-text p {
      width: 150%;
      
    }
  }

  @media (max-width: 1180px) {

  .slide-text p {
    width: 150%;
    
  }
}
  @media (max-width: 1024px) {
    .slide-bg {
      width: 90%;
    }
  
    .slide-content {
      width: 90%;
    }

    .slide-text p {
      width: 150%;
      margin-left: 0rem;
    }
  
    .controls i:nth-child(1) {
      left: 10%;
    }
  
    .controls i:nth-child(2) {
      right: 10%;
    }
  }

  @media (max-width: 932px) {

    .slide-text p {
      width: 150%;
    }
  }
  
  @media (max-width: 912px) {

    .slide-text p {
      width: 150%;
    }
  }

  @media (max-width: 853px) {
    .slide-text p{
width: 150%;

    }  
  }





  @media (max-width: 820px) {
    .testimonials-section {
      height: 100rem;
    }
  
    .slide-bg {
      width: 95%;
    }
  
    .slide-content {
      width: 95%;
    }
  
  
    .controls i:nth-child(1) {
      left: 5%;
    }
  
    .controls i:nth-child(2) {
      right: 5%;
    }


    .slide-content{

      padding: 0 4rem;
  }

  .slide-text p{
    width: 150%;
  }

  @media (max-width: 768px) {

    .slide-text p {
      width: 150%;
    }
  }

  

  @media (max-width: 740px) {

    .slide-text p {
      width: 150%;
    }
  }

  @media (max-width: 667px) {
    .slide-text p{
width: 150%;

    }  
  }




  @media (max-width: 540px){

    .testimonials-section {
      height: 107rem;
    }
    .testimonials-wrapper {
      width: 60%;
      height: 60rem;
    }

    .testimonials-top {
      position: relative;
      
    }
  
    .slide-bg {
      width: 80%;
      height: 90%;
    }
  
    

    .slide-content {
      width: 80%;
      height: 90%;
      flex-direction: column;
      justify-content: space-evenly;
    }
  
    .slide i {
      font-size: 7rem;
    }
  
    .slide i:nth-child(1) {
      top: -5%;
    }
  
    .slide i:nth-child(2) {
      bottom: -5%;
    }
  
    .slide-img {
      width: 75%;
      height: 16rem;
      margin-right: 0;
    }
  
    .slide-text {
      width: 100%;
    }
  
    .slide-text p {
      width: 105%;
    }
  }
  
  @media (max-width: 430px) {
    .testimonials-wrapper {
      width: 60%;
      height: 60rem;
    }
  
    .slide-bg {
      width: 80%;
      height: 90%;
    }
  
    .slide-content {
      width: 80%;
      height: 90%;
      flex-direction: column;
      justify-content: space-evenly;
    }
  
    .slide i {
      font-size: 7rem;
    }
  
    .slide i:nth-child(1) {
      top: -5%;
    }
  
    .slide i:nth-child(2) {
      bottom: -5%;
    }
  
    .slide-img {
      width: 75%;
      height: 16rem;
      margin-right: 0;
    }
  
    .slide-text {
      width: 100%;
    }
  
    .slide-text p {
      width: 100%;
      margin-left: 0rem;
      
    }

   
  }

  @media (max-width: 390px){

    .slide-text p {
      width: 100%;
    
  }
}
  
  @media (max-width: 375px) {
    .testimonials-section {
      height: 116rem;
    }

    .slide-text p {
      margin-left:0rem;
    }
  }
    

  }
  /* End of Responsive */