/* Réinitialisation de base et configuration globale */
:root {
    --bg-color: #121212;
    --card-bg-color: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #bb86fc;
    --secondary-text-color: #a0a0a0;
    --border-color: #333;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 2rem 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

/* En-tête */
.main-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 1rem 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.main-header .icon {
    font-size: 2rem;
}

.main-header .subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin: 0;
}

/* Sélecteur de langue */
.lang-switcher {
    margin-bottom: 1rem;
    text-align: center;
}

.lang-switcher button {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.lang-switcher button.active {
    color: var(--primary-color);
    font-weight: bold;
}

.lang-switcher span {
    color: var(--border-color);
    margin: 0 0.25rem;
}

/* Contenu principal */
main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
}

/* Section Duel */
.duel-section {
    margin-bottom: 3rem;
    text-align: center;
}

.duel-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.duel-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Grille des statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Cartes de statistiques (style commun) */
.stat-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-card .card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card .card-icon {
    color: var(--secondary-text-color);
}

.stat-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.stat-card .counter {
    font-size: 2.25rem;
    font-weight: 900;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.1;
}

.stat-card .card-label {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin: 0.5rem 0 0;
}

/* Pied de page */
footer {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--secondary-text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Bouton de Partage */
#share-button {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

#share-button:hover {
    background-color: #2a2a2a;
}

#share-button svg {
    margin-bottom: 2px;
}

/* Classe utilitaire pour cacher les éléments */
.hidden {
    display: none;
}

/* Responsive Design */
@media (min-width: 768px) {
    .main-header h1 {
        font-size: 3rem;
    }
    
    .duel-container {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

