/* ==========================================================================
   STATS - Sections de statistiques et métriques
   ========================================================================== */

/* Grille de statistiques générale */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

/* Carte de statistique de base */
.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

/* Valeur numérique principale */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 10px;
    display: block;
}

/* Label de la statistique */
.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: inherit;
}

/* Variantes de couleurs pour les stats */
.stat-card.primary .stat-number {
    color: var(--primary, #1a73e8);
}

.stat-card.success .stat-number {
    color: var(--secondary, #34a853);
}

.stat-card.warning .stat-number {
    color: var(--accent, #fbbc05);
}

.stat-card.danger .stat-number {
    color: var(--warning, #ff3b30);
}

/* Stats de performance spécifiques */
.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.performance-card {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #00ffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
}

.performance-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.performance-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Stats de puissance */
.power-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.power-stat {
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
}

.power-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fbbc05;
    margin-bottom: 8px;
}

/* Stats avec icônes */
.stat-with-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: var(--primary, #1a73e8);
}

.stat-icon.success {
    background: var(--secondary, #34a853);
}

.stat-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
}

.stat-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Stats blog */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.blog-stats .stat-item {
    text-align: center;
}

.blog-stats .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #fbbc05;
}

.blog-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Stats compactes en ligne */
.inline-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin: 30px 0;
}

.inline-stat {
    text-align: center;
    min-width: 80px;
}

.inline-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a73e8;
    display: block;
}

.inline-stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* Compteur animé */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-counter {
    animation: countUp 0.8s ease-out;
}

/* Stats techniques pour spécifications */
.tech-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.tech-stat {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid #1a73e8;
}

.tech-stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 5px;
}

.tech-stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* Stats de développement */
.development-stats {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.status-item {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.status-percentage {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid,
    .performance-stats,
    .power-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .inline-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-with-icon {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stat-number,
    .performance-value,
    .power-stat-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid,
    .performance-stats,
    .power-stats,
    .tech-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number,
    .performance-value {
        font-size: 1.5rem;
    }
    
    .stat-card,
    .performance-card {
        padding: 15px;
    }
}