body, html {
    height: 100%;
    margin: 0;
}

section{
    padding: 80px;

}

.container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 100%;
    margin-top: 50px;
}

.card {
    position: relative;
    width: 100%; 
    height: 400px; 
    transform-style: preserve-3d;
    transition: transform 1s;
}

.card:hover {
    transform: rotateY(180deg); 
}

.front1, .front2, .front3,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.front1 {
    background-image: url('services.jpg'); /* Image recto */
    background-size: cover;
}

.front2 {
    background-image: url('creation.webp'); 
    background-size: cover;
}



.back {
    transform: rotateY(180deg); 
    background-color: #f0f0f0; 
    display: flex;
    justify-content: center;
    align-items: center;
}

li {
    position: relative;
    padding-left: 25px; 
    font-size: 30px;
    
}




@media screen and (max-width: 768px) {
    body, html {
        height: 50%; 

    }

    section{
        padding: 5px;

    }
    .container{
        margin-top: 60px;
        margin-bottom: 60px;
    }


    li {
      font-size: 18px;
    }
}

