/* ===================== SECTION STATISTIQUES ===================== */
.stats-section {
    background: transparent;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

/* Conteneur avec max-width comme une bottom app */
.stats-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Animation d'entrée au scroll */
.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
    
    /* État initial pour l'animation */
    opacity: 0;
    transform: translateY(30px);
}

/* Classe ajoutée quand l'élément devient visible */
.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délai d'animation pour chaque card */
.stat-item:nth-child(1) { transition-delay: 0.1s; }
.stat-item:nth-child(2) { transition-delay: 0.2s; }
.stat-item:nth-child(3) { transition-delay: 0.3s; }
.stat-item:nth-child(4) { transition-delay: 0.4s; }

.stat-item.visible:nth-child(1) { transition-delay: 0.1s; }
.stat-item.visible:nth-child(2) { transition-delay: 0.2s; }
.stat-item.visible:nth-child(3) { transition-delay: 0.3s; }
.stat-item.visible:nth-child(4) { transition-delay: 0.4s; }

/* Hover avec background jaune et texte noir */
.stat-item:hover {
    background: #F29200;
    border-color: #F29200;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 214, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wrapper pour le nombre et le suffixe sur la même ligne */
.stat-value-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

/* Animation du nombre */
.stat-number {
    font-family: 'Aldrich', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #000000;
    line-height: 1;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover .stat-number {
    color: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-suffix {
    font-family: 'Aldrich', sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: #F29200;
    display: inline-block;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Le suffixe devient noir au survol */
.stat-item:hover .stat-suffix {
    color: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: #000000;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover .stat-label {
    color: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .stats-container {
        max-width: 600px;
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 18px 12px;
        min-height: 90px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-suffix {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        margin-top: 6px;
    }
    
    /* Réinitialiser les délais pour mobile */
    .stat-item:nth-child(1),
    .stat-item:nth-child(2),
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        transition-delay: 0.1s;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 15px 0;
    }
    
    .stats-container {
        max-width: 100%;
        padding: 0 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px 10px;
        min-height: 80px;
        border-radius: 6px;
    }
    
    .stat-value-wrapper {
        gap: 1px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-suffix {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        margin-top: 5px;
    }
}

@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-item {
        padding: 12px 8px;
        min-height: 70px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-suffix {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}