/**
 * MP Vision - Time Savings Visual Styles
 * Version compacte et visuellement attrayante
 */

/* Particles.js background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.3;
}

.hero-workflow {
    position: relative;
    overflow: hidden;
}

.hero-workflow .container {
    position: relative;
    z-index: 1;
}

/* Hero header spacing */
.hero-header {
    padding-top: 6rem;
}

/* Container principal */
.time-savings-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.time-savings-header {
    margin-bottom: 2rem;
}

.time-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid des cards */
.time-savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Card individuelle */
.time-saving-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--dark-bg-3);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.time-saving-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.time-saving-card:hover {
    border-color: var(--card-color);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

/* Icône de la card */
.time-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--card-color), var(--card-color));
    opacity: 0.9;
    color: white;
    flex-shrink: 0;
}

/* Contenu de la card */
.time-card-content {
    flex: 1;
    min-width: 0;
}

.time-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Valeurs avant/après */
.time-card-values {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-before,
.time-after {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.time-before .time-value {
    color: #EF4444;
}

.time-after .time-value {
    color: #10B981;
}

.time-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.time-arrow {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.6;
}

/* Badge de gain */
.time-card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-accent);
    color: var(--dark-bg);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    white-space: nowrap;
}

/* Animations */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .time-savings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-header {
        padding-top: 4rem;
    }

    .time-savings-wrapper {
        padding: 1rem 0.5rem;
    }

    .time-saving-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .time-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .time-card-title {
        font-size: 0.85rem;
    }

    .time-value {
        font-size: 1rem;
    }

    .time-card-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .time-card-values {
        gap: 0.5rem;
    }

    .time-value {
        font-size: 0.95rem;
    }

    .time-sublabel {
        font-size: 0.65rem;
    }

    .time-arrow {
        font-size: 0.85rem;
    }
}
