/* Fichier: style/stats.css */

.page-title { margin: 15px 0 5px; font-size: 28px; font-weight: 900; color: white; letter-spacing: -1px; }
.page-subtitle { margin: 0 0 20px; font-size: 14px; color: var(--text-muted); opacity: 0.7; }

/* --- 1. JAUGES CIRCULAIRES --- */
.gauges-container {
    display: flex; 
    justify-content: space-between; /* Espace équitablement */
    align-items: flex-end; /* Alignement en bas */
    padding: 20px 10px; 
    margin-bottom: 20px;
    gap: 5px; /* Petit espace entre chaque */
}

.gauge-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    flex: 1; /* Chaque item prend la même largeur */
}

/* Le Cercle Standard (plus petit pour en caser 5) */
.circle-progress {
    width: 45px; height: 45px; /* Réduit pour mobile */
    border-radius: 50%;
    background: radial-gradient(closest-side, #1a1a1f 79%, transparent 80% 100%),
                conic-gradient(var(--c-color) calc(var(--p) * 1%), rgba(255,255,255,0.05) 0);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    position: relative;
}

/* Texte au centre */
.circle-progress span { font-weight: bold; font-size: 11px; color: white; }

/* Mapping Couleurs */
.circle-progress.low { --c-color: var(--c-low); }   /* Hypo < 70 */
.circle-progress.warn { --c-color: var(--c-warn); } /* Bas 70-80 */
.circle-progress.target { --c-color: var(--c-good); } /* Cible */
.circle-progress.high { --c-color: var(--c-high); } /* Haut 180-250 */
.circle-progress.very { --c-color: var(--c-very); } /* Hyper > 250 */

/* La jauge centrale (Cible) est mise en valeur */
.main-gauge .circle-progress {
    width: 65px; height: 65px;
    box-shadow: 0 0 20px rgba(55,200,91,0.2);
}
.main-gauge .big-percent { font-size: 16px; font-weight: 800; text-shadow: 0 0 10px rgba(55,200,91,0.4); }

/* Labels sous les jauges */
.gauge-label { 
    font-size: 9px; /* Plus petit pour tenir */
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap; /* Empêche le retour à la ligne moche */
}


/* --- 2. KPI GRID --- */
.kpi-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 0 15px 20px;
}
.kpi-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 15px 5px; margin: 0; 
    height: 90px;
}
.kpi-icon { font-size: 20px; margin-bottom: 5px; opacity: 0.8; }
.kpi-val { font-size: 20px; font-weight: 800; color: white; }
.kpi-val small { font-size: 11px; font-weight: normal; color: var(--text-muted); }
.kpi-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; text-align: center; }


/* --- 3. GRAPHIQUES --- */
.graph-master-card { padding: 0; overflow: hidden; margin-bottom: 15px; }
.card-header { 
    padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: left;
    background: rgba(255,255,255,0.02);
}
.card-header h3 { margin: 0; font-size: 15px; color: var(--text-main); font-weight: 700; }

.graph-wrapper { padding: 10px; height: 280px; position: relative; }