/* ===== PAGE STATS ===== */

body {
    background-color: #0e0e0e;
    color: #f1f1f1;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== TITRE PRINCIPAL ===== */

.stats-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* ===== GRILLE DES STATS ===== */

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* ===== CARTES ===== */

.stat-card {
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    width: 330px;
    min-height: 250px;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* ===== EN-TÊTE DE LA CARTE ===== */

.stat-header {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6a00;
    margin-bottom: 10px;
}

/* ===== CORPS DE LA CARTE ===== */

.stat-body {
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-sub {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.stat-sep {
    width: 50%;
    height: 1px;
    background-color: #303030;
    margin: 12px auto;
}

/* ===== LIGNE TOP SÉRIE ===== */

.stat-top-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.stat-top-title {
    color: #a8a8a8;
}

.stat-top-pct {
    color: #ffb347;
    font-weight: 600;
}

/* ===== NOM DE LA SÉRIE ===== */

.stat-top-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #ffffff;
}

/* ===== BARRE DE PROGRESSION ===== */

.stat-progress {
    background-color: #2c2c2c;
    border-radius: 10px;
    overflow: hidden;
    height: 6px;
    margin: 6px 0 10px;
}

.stat-progress-bar {
    background: linear-gradient(90deg, #ff8c00, #ffcc33);
    height: 100%;
    width: 0;
    transition: width 0.8s ease;
}

/* ===== TEMPS DE LA SÉRIE ===== */

.stat-top-time {
    font-size: 0.9rem;
    color: #bbbbbb;
    margin-top: 2px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1000px) {
    .stat-card {
        width: 300px;
    }
}

@media (max-width: 700px) {
    .stats-grid {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 90%;
        max-width: 400px;
    }
}

/* ====================== BLOC 2 ======================*/

.totaux-wrapper {
    margin-top: 70px;
    text-align: center;
}

.totaux-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.totaux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px 35px;
    justify-items: center;
    margin: 0 auto;
    max-width: 1100px;
}

.totaux-item {
    background: #181818;
    border-radius: 16px;
    padding: 22px 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 320px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.totaux-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.totaux-item span {
    display: block;
    color: #b3b3b3;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.totaux-item strong {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ====================== BLOC 3 ======================*/


.streaks-wrapper {
    margin-top: 70px;
    text-align: center;
}

.streaks-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.streaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px 35px;
    justify-items: center;
    margin: 0 auto;
    max-width: 1100px;
}

.streak-item {
    background: #181818;
    border-radius: 16px;
    padding: 22px 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 320px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.streak-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.streak-item span {
    display: block;
    color: #b3b3b3;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.streak-item strong {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
}

.streak-item small {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Bordures colorées */
.streak-item.green   { border-top: 3px solid #00d26a; }
.streak-item.gold    { border-top: 3px solid #f5c542; }
.streak-item.blue    { border-top: 3px solid #3ba6ff; }
.streak-item.red     { border-top: 3px solid #ff4b4b; }
.streak-item.orange  { border-top: 3px solid #ffa23b; }
.streak-item.violet  { border-top: 3px solid #b66bff; }
.streak-item.yellow  { border-top: 3px solid #ffe44b; }
.streak-item.cyan    { border-top: 3px solid #42f5e0; }
.streak-item.gray    { border-top: 3px solid #bbb; }

.record-etiquette {
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #2b2b2b;
    color: #a9ff9f;
    font-size: 0.85rem;
    font-style: italic;
}
