.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.stats .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stat-icon ion-icon {
    font-size: 2.5rem;
    color: #2563eb;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon ion-icon {
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* Animation pour les nombres */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 1s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .stats {
        padding: 60px 0;
    }

    .stats .container {
        padding: 0 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 25px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-icon ion-icon {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .stats {
        padding: 50px 0;
        text-align: center;
    }

    .stats .container {
        padding: 0 15px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        padding: 0 10px;
    }

    .stat-card {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 140px;
    }

    .stat-icon {
        margin-bottom: 15px;
    }

    .stat-icon ion-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 0.95rem;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .stats {
        padding: 40px 0;
    }

    .stats .container {
        padding: 0 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
        margin: 0 auto;
        width: 100%;
        padding: 0 20px;
    }

    .stat-card {
        padding: 25px 20px;
        min-height: 150px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .stat-icon {
        margin-bottom: 20px;
    }

    .stat-icon ion-icon {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .stat-label {
        font-size: 1rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .stats {
        padding: 35px 0;
    }

    .stats-grid {
        max-width: 280px;
        gap: 15px;
        padding: 0 15px;
    }

    .stat-card {
        padding: 20px 15px;
        min-height: 130px;
    }

    .stat-icon ion-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
} 