/* CSS pour la page de statistiques */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-section {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.stats-table th,
.stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.stats-table th {
    background-color: rgba(236, 240, 241, 0.5);
    font-weight: bold;
    color: var(--dark-color);
    position: sticky;
    top: 0;
}

.stats-table tr:hover {
    background-color: rgba(236, 240, 241, 0.3);
}

.btn-replay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-replay:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.global-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.stat-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 150px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-table {
        display: block;
        overflow-x: auto;
    }
    
    .stat-item {
        width: 100%;
    }
}
