/* Style général */

@font-face { /** Import **/
    font-family: 'JetBrains Mono';
    src: url('JetBrainsMono-ExtraBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face { /** Import **/
    font-family: 'JetBrains MonoNormal';
    src: url('JetBrainsMono-Light.woff2') format('woff2');
    font-style: normal;
}

.card{
    display: flex;
    margin-bottom: 10vw;
}

/* Conteneur de la carte */
.flip-card {
    display: flex;
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: transparent;
    width: 50vw;
    height: 70vw;
    perspective: 1000px; /* Profondeur */
}

/* Partie intérieure de la carte */
.flip-card-inner {
    position: relative;
    width: 70%;
    height: 70%;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d; /* Permet la rotation en 3D */
}

/* Action de survol */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Faces de la carte */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Cache l'autre face */
    backface-visibility: hidden;
    border: 1px solid white;
    border-radius: 1rem;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.2); /* Effet d'ombre */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Face avant */
.flip-card-front {
    background: #CB9F73 50%;
    color: white;
    text-align: center;
}

/* Face arrière */
.flip-card-back {
    color: white;
    transform: rotateY(180deg); /* Retourne la face arrière */
    text-align: center;
}

/* Titre */
.title {
    font-size: 7vw;
    font-weight: 900;
    margin: 0;
    font-family: "JetBrains Mono";
}

.title2 {
    font-size: 5vw;
    font-weight: 900;
    margin: 0;
    font-family: "JetBrains MonoNormal";
}

/* Image sur la face arrière */
.flip-card-back img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
