/* ================================
   FLIP CARD — CONTAINER
================================ */
.flip-card {
    width: 100%;
    height: 320px;
    perspective: 1200px;
}

/* ================================
   FLIP CARD — INNER WRAPPER
================================ */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    border-radius: 15px;
}

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

/* ================================
   FACES
================================ */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 40px;
    padding: 20px;
    transform-style: preserve-3d;
}

/* ================================
   FACE AVANT
================================ */
.flip-card-front {
    background-color: #8eafb8;
    color: #333;
    transform: translateZ(35px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.flip-card-front * {
    transform: translateZ(30px);
}

/* ================================
   FACE ARRIÈRE
================================ */
.flip-card-back {
    background-color: #f9fbfd;
    color: rgb(102, 5, 5);
    transform: rotateY(180deg);
    font-size: 13px;
}

/* ================================
   IMAGE
================================ */
.flip-card-back img {
    max-width: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 10px;
}

/* ================================
   BADGE
================================ */
.lesson-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    transform: translateZ(40px);
}
