@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* --- MODERN CARD CONTAINER --- */
.ifag-card-wrapper {
    width: 100%;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 24px; /* Modern soft corners */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); /* Deep soft shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy smooth hover */
    background-color: #161616; /* Deep dark background */
    position: relative;
}

.ifag-card-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(210, 30, 49, 0.12); /* Subtle red tinted shadow on hover */
}

/* --- IMAGE & OVERLAY DEGRADE --- */
.ifag-card-media {
    position: relative;
    height: 400px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px;
    z-index: 1;
}

/* Advanced gradient seamlessly blending into the bottom action bar */
.ifag-card-media::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        180deg, 
        rgba(0,0,0,0.6) 0%, 
        rgba(0,0,0,0.0) 35%, 
        rgba(0,0,0,0.3) 65%, 
        rgba(22,22,22,1) 100% 
    );
    z-index: 1;
}

/* --- TEXTS --- */
.ifag-card-top-content {
    position: relative;
    z-index: 2;
}

.ifag-card-subtitle {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    margin: 0 !important;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Modern animated divider */
.ifag-card-divider {
    width: 40px;
    height: 4px;
    background-color: #FFC900;
    margin: 14px 0 0 0;
    border: none;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.ifag-card-wrapper:hover .ifag-card-divider {
    width: 80px; /* Ligne s'allonge au survol */
}

.ifag-card-title {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin: 0 0 -15px 0 !important; /* Ties the title into the bottom section */
    font-family: 'Inter', sans-serif;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

/* --- BOTTOM ACTION BAR --- */
.ifag-card-action {
    background-color: #161616; /* Same as deepest point of gradient */
    padding: 30px 30px 40px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* --- PREMIUM RED BUTTON --- */
.ifag-btn {
    background: linear-gradient(135deg, #E62A3F 0%, #C31527 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    padding: 16px 20px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.08); /* Subtile glass edge border */
    box-shadow: 0 8px 25px rgba(210, 30, 49, 0.25);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Shine sweeping animation element */
.ifag-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

/* Button Hover State */
.ifag-btn:hover {
    background: linear-gradient(135deg, #F0344A 0%, #A91020 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(210, 30, 49, 0.4); /* Glow intensifies */
    color: #ffffff !important;
}

/* Shine sweeps across on hover */
.ifag-btn:hover::after {
    left: 200%;
}

/* Icon */
.ifag-btn-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

/* Arrow translates right on hover */
.ifag-btn:hover .ifag-btn-icon {
    transform: translateX(5px);
}
