h1{
    font-size: 2.5rem;
        font-family: 'Poppins', sans-serif;
        font-weight: bold;
        font-style: italic;
        text-transform: uppercase;
        text-align: center;
        margin-top: 150px;
        padding: 5px;
}

.formations-list{
    display: flex;
    height: 600px;
    width: 100%;
    margin-top: 50px;
}

.formation{
    overflow: hidden;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    transition: 0.5s;
    width: 33%;
    position: relative;
    z-index: 5;
}

.image{
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    transition: 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
        font-weight: bold;
        font-style: italic;
        color: white;
        text-align: center;
        padding: 5px;

        text-shadow: rgb(200, 200, 200) 1px 0px 0px, rgb(200, 200, 200) 0.540302px 0.841471px 0px, rgb(200, 200, 200) -0.416147px 0.909297px 0px, rgb(200, 200, 200) -0.989992px 0.14112px 0px, rgb(200, 200, 200) -0.653644px -0.756802px 0px, rgb(200, 200, 200) 0.283662px -0.958924px 0px, rgb(200, 200, 200) 0.96017px -0.279415px 0px;

}

.text-contain{
    width: 0%;
}

.formation:hover{
    width: 100%;
    transition: 0.5s;


   box-shadow: 3px 1px 21px -8px rgba(0,0,0,0.57);
-webkit-box-shadow: 3px 1px 21px -8px rgba(0,0,0,0.57);
-moz-box-shadow: 3px 1px 21px -8px rgba(0,0,0,0.57);
z-index: 10;

}

.image-small{
    width: 10%;
}

.text-contain {
    height: 100%;
    transition: 0.5s;
    border: solid #e6e6e6 0px;
    
}


.formation:hover .image{
    width: 30%;
    transition: 0.5s;
    
}

.formation .text-contain div{
    opacity: 0;
    transition: .1s;
}
.formation:hover .text-contain div{
    opacity: 1;
    transition: .5s;
    transition-delay: .4s;
}
.formation:hover .text-contain p{
margin: 20px 0 50px 0;
font-size: 1.2rem;

}
.formation:hover .text-contain{
    width: 70%;
    transition: 0.5s;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow-y: scroll;
}


h2{
    text-align: center;
    font-size: 2rem;
        font-family: 'Poppins', sans-serif;
        font-weight: bold;
        font-style: italic;
        text-transform: uppercase;

}

.gradient-button{
    /* margin-bottom: 50px; */
}

.img-voiture{
    width: 25vw;
    position: relative;
    z-index: 20;
    margin-left: 40%;
}

.img-voiture img{
    transform: rotate(3deg);

}

.details-voiture{
    position: relative;
    z-index: -1;
    border-radius: 15px;
    /* background-color: rgb(221, 221, 221); */
    background-color: #272727;
    height: 50vh;
    margin-top: -80px;
}


@media screen and (max-width: 1200px) {

.formations-list{
    flex-direction: column;
    height: auto;
    align-items: center;
    gap: 100px;
}

.formation{
    width: 100%;
    flex-direction: column;
    height: auto;
    box-shadow: 3px 1px 21px -8px rgba(0,0,0,0.57);
-webkit-box-shadow: 3px 1px 21px -8px rgba(0,0,0,0.57);
-moz-box-shadow: 3px 1px 21px -8px rgba(0,0,0,0.57);
}

.formation .image{
    height: 200px;
}
.formation:hover .image{
    width: 100%;
    transition: 0.5s;
}

.image {
    font-size: 3rem;
}

.text-contain
{
    width: 100%;
    height: auto;
}

.formation .text-contain div{
    opacity: 1;
}

.formation .text-contain p{
    margin: 20px 0 50px 0;
    font-size: 1.2rem;
    
    }

    .formation:hover .text-contain{
        width: 100%;
    }
    .formation .text-contain{
        padding: 50px 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        overflow-y: scroll;
    }


}