/* Container des lettres */
#word-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 5px;
}

/* Inputs lettres */
.letter-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #1E90FF;
    border-radius: 10px;
    background-color: #1F1F1F;
    color: #FFF;
    outline: none;
    transition: all 0.2s;
}
.letter-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 5px #FFD700;
}
.letter-input:disabled {
    background-color: #555;
    cursor: default;
}

/* Div messages */
#cluedo-result-ok {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    color: #FFD700; /* Jaune pour succès / indice */
}
#cluedo-result-no {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    color: #FF6347; /* Rouge pour erreurs / échec */
}

/* Compteur erreurs */
#mots-error-counter {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    color: #FF4500;
}

/* Boutons */
.bouton {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px;
}
.bouton:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

/* Couleurs boutons */
.bouton-vertclair { background: #32CD32; color: #fff; }
.bouton-jaune { background: #FFA500; color: #fff; }
.bouton-noir { background: #333; color: #fff; }
.bouton-rose { background: #FF4500; color: #fff; }
.bouton-vert { background: #1E90FF; color: #fff; }
.bouton-bleu { background: #1E90FF; color: #fff; }

/* Responsive mobile */
@media(max-width:600px){
    .letter-input { width: 40px; height: 40px; font-size: 22px; }
    #word-grid { gap: 3px; }
}
