body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}
.h1eth2 {
    display : flex;
}
h1 {
    background-color: #ff0000;
    border-radius: 30px;
    padding: 10px 30px 10px 23px;
    color: rgb(255, 255, 255);
    margin-left : 50px;
    margin-top: 20px;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
}

h2 {
    color : #ff0000;
    margin-left : 100px;
    margin-top: 50px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1.5px solid rgb(255, 0, 0);
    border-radius: 30px;
    padding: 17px 12px 0px 15px;
    animation: rotateAnimation 1s infinite alternate linear;
    transform: rotateZ(-4deg);
}

@keyframes rotateAnimation {
    0% {
        transform: rotateZ(-10deg); /* Valeur de départ */
    }
    100% {
        transform: rotateZ(10deg);  /* Valeur d'arrivée */
    }
}


p {
    margin-left : 70px;
    margin-top: -10px;
    color: #ff00008c;
    max-width: 600px;
    font-size: 14px;
}

.grid {
    margin-left : 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.card {
    
    width: 500px;
    height: 400px;
    perspective: 1000px;
    position: relative;
}

.card-inner {
    width: 500px;
    height: 350px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 10px;
    transform-origin: center;
}

.card:hover .card-inner {
    cursor: pointer;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
    transform-origin: center;
}

.card-front, .card-back {
    width: 500px;
    height: 350px;
    position: absolute;
    backface-visibility: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.card-front {
    background: #e0e0e0;
    justify-content: left; 
}

.card-front:hover h3 {
    color: #ff0606;
    animation: colorFadeIn 0.1s ease-out ;
}

.card-front:hover h4 {
    color: #ff0606;
    animation: colorFadeIn 0.3s ease-out ;
}
@keyframes colorFadeIn {
    0% {
        color: #6d6a6a;
    }
    100% {
        color: #ff0606;
    }

}

h3 {
    align-items: flex-end; 
    font-weight:bold;
    color: #6d6a6a;
    font-size: 170px;
    justify-content: left; 
    margin-left: 20px;
    margin-bottom: 10px;
}
h4 {
    position : absolute;
    font-weight:bold;
    color: #6d6a6a;
    font-size: 40px;
    left: 220px;
    top: 236px; 
}
.card-back {
    background: #ffffff;
    transform: rotateY(180deg);
    display : flex;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);

}

.card-back img {
    margin: 1px 1px 18px 18px;
    width: 250px;
    height: auto;
    border-radius: 1px;

}

.image-titre {

    padding-bottom: 30px ;

}

.card-back p {
    margin: 1px 20px 100px 28px;
    font-size: 0.9em;
    color: #686868;
    text-align: left;

}

.cd {
   position: absolute;
   font-size: 70px;
   top : 240px;
   right : 40px;
   animation: rotate 10s infinite linear;
   animation-play-state: paused;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.cd.paused {
    animation: none;
}
.cd.running {
    animation-play-state: running; /* Reprendre l'animation quand actif */
}
.play-button {
    display: flex;
    align-items: center;
    padding-left: 20px;
    font-size: 1em;
    font-weight: bold;
    color: #555;
}

.play-button::before {
    padding-right: 7px;
    content: '▶';
    align-items: center;
    color: #555;
}