/* =========================================
   M2 HERO CARDS - 0% 3D / 100% FIABLE
   ========================================= */

.m2fc-section {
    padding: 80px 0;
    width: 100%;
    background-color: transparent;
}

.m2fc-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 10px;
    padding: 0 20px;
}

.m2fc-card {
    flex: 1;
    min-width: 300px;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.m2fc-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.m2fc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: background 0.5s ease;
}

.m2fc-content {
    position: relative;
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.15); /* Légèrement blanc transparent */
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 40px 20px;
    width: 80%;
    max-width: 300px;
    text-align: center;
    color: #ffffff;
    transition: all 0.5s ease;
}

.m2fc-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 20px 0;
    font-weight: 300;
    line-height: 1.4;
}

.m2fc-btn-fake {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px solid transparent;
    padding-bottom: 5px;
    transition: all 0.3s;
}

/* =========================================
   ANIMATIONS AU SURVOL (LA MAGIE)
   ========================================= */

.m2fc-card:hover .m2fc-card-bg {
    transform: scale(1.08);
}

.m2fc-card:hover .m2fc-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.m2fc-card:hover .m2fc-content {
    background-color: rgba(0, 0, 0, 0.15);
}

.m2fc-card:hover .m2fc-btn-fake {
    border-bottom-color: #ffffff;
}

/* =========================================
   RESPONSIVE MOBILE
   ========================================= */
@media screen and (max-width: 900px) {
    .m2fc-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .m2fc-card {
        flex: 0 1 100%;
        width: 100%;
        max-width: 380px;
        
        height: auto;
        aspect-ratio: 4 / 5;
        margin: 0 auto;
    }

    .m2fc-content {
        width: 85%;
        padding: 30px 20px;
    }

    .m2fc-content h2 {
        font-size: 1.2rem;
    }
}