body {
    margin: 0;

}

*{
    transform-style: preserve-3d;
}

.anim {
    display: flex;
    justify-content: space-around;
    perspective: 1000px;
    transform: scale(0.7);



}


.phone {
    width: 377px;
    height: 671px;
    transform: rotateX(60deg) rotateY(0deg) translateZ(30px);
    animation: bouge 2s infinite;
    animation-timing-function: ease-in;

}


.phone::after {
    position: absolute;

    background-color: rgba(0, 0, 0, 0.475);
    box-shadow: 0px 0px 25px rgb(0, 0, 0);
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateZ(-50px);
    animation: bougeOmbre 2s infinite;
    animation-timing-function: ease-in;

   filter: blur(20px);



}

#un {
    background: url(1.png);
    position: relative;

    
}

#deux {
    background: url(2.png);
    position: relative;
}

#trois {
    background: url(3.png);
}


@keyframes bouge {
    0% {
        transform: rotateX(60deg) rotateY(0deg) translateZ(30px);
    }
    50% {
        transform: rotateX(60deg) rotateY(0deg) translateZ(50px);
    }
    100% {
        transform: rotateX(60deg) rotateY(0deg) translateZ(30px);
    }
}

@keyframes bougeOmbre {
    0% {
        transform: translateZ(-50px) scale(1);
        filter: blur(2px);
    }
    50% {
        transform: translateZ(-70px) scale(1.02);
        filter: blur(10px);
    }
    100% {
        transform: translateZ(-50px) scale(1);
        filter: blur(2px);
    }
}