.projet-card {
    display: flex;
    align-items: center; /* Center items vertically */
    background: white; /* Background color for the card */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Soft shadow for depth */
    border-radius: 5px; /* Rounded corners for aesthetics */
    overflow: hidden; /* Ensures no overflow from the child elements */
    width: 70vw;
    border-radius: 10px;
}

.projet-card img {
    flex-shrink: 0; /* Prevents the image from shrinking */
    
    height: 500px; /* Maintains aspect ratio */
    width: auto; /* Adjusts the width of the image to 40% of the card */
    object-fit: cover; 
    max-width: 30vw;/* Ensures the image covers the area */
}

.projet-info {
    padding: 20px; /* Padding inside the text container */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    overflow-y: scroll; /* Allows the text container to fill the rest of the space */
}

.swiper {
    width: 100%;
    height: 500px;
    background: transparent;
    margin: 50px;
    display: flex;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    background: transparent;
    display: flex;
    justify-content: center;
}

#projet-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-top: 20px;
    margin-bottom: -30px;
    display: block;
    text-align: center;
}

.swiper-button-next:after {
    color: #fff;
    font-size: 5rem;
    font-weight: bolder;
    transform: translateX(-50px);
    transition: all 0.3s ease-in-out;
}

.swiper-button-next:hover:after {
    color: #ad1254;
    transform: translateX(-40px) scale(1.2);
    transition: all 0.3s ease-in-out;
}

.swiper-button-prev:after {
    color: #fff;
    font-size: 5rem;
    font-weight: bolder;
    transform: translateX(50px);
    transition: all 0.3s ease-in-out;
}

.swiper-button-prev:hover:after {
    color: #ad1254;
    transform: translateX(40px) scale(1.2);
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
    #projet-title {
        font-size: 1.2rem;
    }
    .swiper-button-prev:after{
        display: none;
    }
    .swiper-button-next:after{
        display: none;
    }
    .swiper{
        height: 85vh;
    }
    .projet-card {
        flex-direction: column;
        width: 90vw;
        height: 85vh; /* Stacks the image and text vertically */
    }
    
    .projet-card img {
        max-width: 100%;
        height: 80vw; /* Adjusts the height of the image */
        width: 90vw; /* Adjusts the width of the image */
    }
    
}