/* CSS for 3D Flip Cards - DCM Digital */

.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 100%;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Click Indicator on Back */
.flip-card-back::after {
    content: "CLIQUEZ POUR OUVRIR LE MODULE \f105";
    font-family: "Inter", "Font Awesome 6 Free", sans-serif;
    font-weight: 700;
    position: absolute;
    bottom: 25px;
    right: 35px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    transition: color 0.3s;
}

.flip-card:hover .flip-card-back::after {
    color: white;
}

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

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 35px;
}

.flip-card-front {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.flip-card-back {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 1));
    color: white;
    transform: rotateY(180deg);
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Specific Card Styles from pro.html and enterprise.html */
.feature-card .flip-card-front,
.corp-card .flip-card-front,
.path-card .flip-card-front {
    position: relative;
    /* Overriding absolute for initial layout */
    height: auto;
}

/* Adjusting the grid to support fixed height for flip logic */
.feature-grid,
.corp-grid,
.learning-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.flip-card-container {
    height: 380px;
    /* Fixed height for flip smoothness */
}