.slider{
    margin-top: 1rem;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    height: 55rem;
}

.container{
    position: absolute;
    margin-top: 25rem;
    padding-top: 6rem;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 89%;
    height: 630px;
    background: #f5f5f5;
    box-shadow: 0 30px 50px #dbdbdb;
}

.container .slide .item{
    width: 150px;
    height: 250px;
    position: absolute;
    top: 60%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.slide .item:nth-child(3){
    left: 50%;
}
.slide .item:nth-child(4){
    left: calc(50% + 220px);
}
.slide .item:nth-child(5){
    left: calc(50% + 440px);
}

/* here n = 0, 1, 2, 3,... */
.slide .item:nth-child(n + 6){
    left: calc(50% + 660px);
    opacity: 0;
}

.content{
    background-color: color-mix(in srgb, white ,transparent 70%);
    backdrop-filter: blur (3px);
}

.item .content{
    position: relative;
    margin-top: 27rem;
    padding: 10px;
    left: 6.25rem;
    width: 18.75rem;
    text-align: left;
    color: #a1a1a1;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: rgb(17, 15, 15);
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
    
}
.item .content .des{
    color: #000;

}
    .content button:hover {
        color: #FFFFFF; /* White */
        background-color: #FF8C00; /* Dark orange */
        
    }

.slide .item:nth-child(2) .content{
    display: block;
}

.slider .name{
    
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.slider .des{
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content button{
    margin-left: 6rem;
    margin-bottom: 1rem;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
    
    
}



@keyframes animate {
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.button{
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.button button{
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button button:hover{
    background: #ababab;
    color: #fff;
}


 
/*slider responsive*/
.swiper-container {
    width: 100%;
    margin: 2rem auto;
    display: none;
}
.swiper-slide { position: relative; text-align: center; top: 50%;}
.image-resp img { width: 100%; border-radius: 10px; }
.overlay {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}
.overlay a { color: #f5f4f0; text-decoration: none; }

@media (max-width: 1000px) {
    .swiper-container {
        display: block;
    }
    .slider-container {
        margin: 0;
    }

    .slider-container{
        width: 100%;
        display: block;
        height: auto;

    }

    .slider{
        display: none;
    }
    .description .expertise{
        display: none;
    }



}

/*slider2*/
.slider-container {
   justify-content: center;
    
}

.slider2 {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide2 {
    min-width: 100%;
    position: relative;
}

.slide2 {
    width: 70%;
    height: auto;
    display: block;
}


/*description*/

.description {
    width: 100%;
    height: 45rem;
    padding-top: 3rem;
    margin: 0 0 4rem 4rem;
    padding-bottom: 15rem;
    
} 

.description img{
    width: 90%;
    height: auto;
    opacity: 90%;
    z-index: 1;
    position: absolute;   
    margin-left: 2rem;
    margin-right: 2rem;
    left: 0;
    right: 0;
    box-shadow: 0 30px 60px #505050;
    
}
.description .expertise{
    position: relative;
    width: 25%;
    height: auto;
    color: #f3efef;
    background-color: color-mix(in srgb, rgba(99, 88, 88, 0.798) ,transparent 10%);
    backdrop-filter: blur (4px);
    text-align: justify;
    font-size: 1.2rem; 
    text-align: left;
     margin-top: 30rem;
    left:55% ;
    transform: translate(-50%, -50);
    z-index: 1;
    text-align: justify;
    padding: 10px 10px 10px 10px;
    
}

    .description .expertise{
        right: 10%;
        width: 25%;
        height: auto;
    }

    @media (max-width: 800px){
    .description {
            justify-content: center;
            width: 100%;
            height: auto;
            margin-top: 0;
            margin-bottom: 1rem;
            margin-left: 0;
            margin-right: 0;

           
           
        }
    .description img{
        padding: 0;
       
    }

}


 
    /*avis*/
   .carrousel-avis {
    width: auto;
    display: flex;
    justify-content: center;
    margin-top: 17rem;
    height: 17rem;
    text-align: center;
    
  }
  .avis {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .avis h3 {
    margin: 0;
    font-size: 1.5em;
  }
  .etoiles {
    color: #ffd700;
    font-size: 1.2em;
    margin: 10px 0;
  }
  .commentaire {
    font-size: 1em;
    color: #555;
  }
  .temps-ecoule {
    font-size: 14px;
    color: gray;
    margin-top: 10px;
}

@media (max-width: 1000px) {
    .carrousel-avis {
        margin: 1rem 0 4rem 0;
       
    }

}
 
 /*a propos responsive*/
    .apropos{
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1rem;
        margin: 5rem 2rem 4rem 2rem ;
        text-align: justify;
        display: none;}
    
        @media (max-width: 1000px) {
            .apropos {
                display: block;
            }
            .description{
                height: 30rem;
            }
        }