/* ========================================
   CARTES STATISTIQUES AMÉLIORÉES
   À ajouter à main.css
======================================== */

/* ========================================
   STATS CARD - STYLE AMÉLIORÉ
======================================== */

.type-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #E0FBFC 100%);
    position: relative;
    overflow: hidden;
}

/* Effet de fond animé */
.type-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(238, 108, 77, 0.1) 0%, transparent 70%);
    animation: statPulse 3s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.stat-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Icône de la stat (si vous utilisez Font Awesome) */
.stat-icon {
    font-size: 2.5rem;
    color: #EE6C4D;
    margin-bottom: 1rem;
    display: block;
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #3D5A80 0%, #98C1D9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
    animation: numberCount 1s ease-out;
}

@keyframes numberCount {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    color: #3D5A80;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Variantes de couleurs pour différentes stats */
.type-stat:nth-child(3n+1) {
    background: linear-gradient(135deg, #ffffff 0%, #E0FBFC 100%);
}

.type-stat:nth-child(3n+1) .stat-number {
    background: linear-gradient(135deg, #3D5A80 0%, #98C1D9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-stat:nth-child(3n+2) {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
}

.type-stat:nth-child(3n+2) .stat-number {
    background: linear-gradient(135deg, #EE6C4D 0%, #ff8b6d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-stat:nth-child(3n+2) .stat-icon {
    color: #EE6C4D;
}

.type-stat:nth-child(3n+3) {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.type-stat:nth-child(3n+3) .stat-number {
    background: linear-gradient(135deg, #98C1D9 0%, #3D5A80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-stat:nth-child(3n+3) .stat-icon {
    color: #98C1D9;
}

/* Effet hover sur les stats */
.type-stat:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(41, 50, 65, 0.2);
}

.type-stat:hover .stat-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-8px);
    }
}

.type-stat:hover .stat-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .stat-content {
        padding: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .stat-content {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* ========================================
   VARIANTE : STATS AVEC BORDURE
======================================== */

.type-stat.bordered {
    border: 3px solid;
    border-image: linear-gradient(135deg, #3D5A80 0%, #98C1D9 100%) 1;
}

/* ========================================
   VARIANTE : STATS DARK
======================================== */

.type-stat.dark {
    background: linear-gradient(135deg, #293241 0%, #3D5A80 100%);
}

.type-stat.dark .stat-number {
    background: linear-gradient(135deg, #E0FBFC 0%, #98C1D9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-stat.dark .stat-label {
    color: #E0FBFC;
}

.type-stat.dark .stat-icon {
    color: #EE6C4D;
}
