body {
    background: #050505;
    color: #d0d0d0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 2rem;
    margin: 0;
}

/* --- Styles pour le Header et le Logo --- */
.site-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement le contenu du header */
    justify-content: center;
    margin-bottom: 2rem; /* Espace sous le logo avant le jeu */
    padding-top: 1rem;
}

.site-logo {
    max-width: 300px; /* Taille maximale du logo (ajuste selon tes besoins) */
    height: auto; /* Garde les proportions */
    display: block; /* Évite les espaces indésirables sous l'image */
    
    /* Optionnel : Une petite lueur rouge pour l'ambiance */
    filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

/* Petit effet au survol */
.site-logo:hover {
    transform: scale(1.03);
}

/* Pour masquer le titre H1 tout en le gardant pour les lecteurs d'écran */
.hidden-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Mise en page globale */
.main-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Colonne Historique à gauche */
.history-area {
    flex: 0 0 200px; /* Largeur fixe pour l'historique */
    border-right: 1px solid #444;
    padding-right: 20px;
    height: fit-content;
    position: sticky;
    top: 5px;
}

/* Colonne Jeu à droite */
.game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Aligne tout au centre de la colonne */
}

/* Centrage spécifique pour stats et input */
.centered-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

#stats-container {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.input-area {
    width: 100%;
    display: flex;
    justify-content: center;
}

input {
    background: #1a1a1a;
    border: 2px solid #444;
    color: white;
    padding: 12px 20px;
    width: 300px; /* Légèrement plus large pour le confort */
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #8B0000;
}

/* Zone de texte */
#text-container {
    white-space: pre-wrap;
    line-height: 1.8;
    text-align: justify;
    width: 100%; /* Prend toute la largeur de la colonne jeu */
}

#title-container {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Victoire */
#victory-box {
    border: 2px solid #8B0000;
    padding: 20px;
    background: #1a0000;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

/* Mots */
.word {
    display: inline-block;
    margin: 0 2px;
    min-width: 15px;
}

.hidden {
    color: transparent;
    background: #222;
}

.revealed {
    color: #f0f0f0;
    border-bottom: 2px solid #8B0000;
}