#lettres {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    margin: 40px auto;
}

.lettre:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.lettre {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 8%;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
				border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Ajustement spécifique police manuscrite */
.lettre.manuscrit {
    font-size: clamp(1.3rem, 3.5vw, 1.1rem);
    line-height: 1.3;
    padding: 10%;
}

.trouve {
    background-color: #c8f7c5;
    border: 2px solid #2ecc71;
}
.faux {
    background-color: lightcoral;
    animation: tremblement 0.3s ease-in-out;
}

.disabled {
    opacity: 0.5;
    cursor: default;
}
#scoreDisplay span {
    display: inline-block;
    min-width: 1.5em;
    text-align: center;
}
@keyframes tremblement {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
@media (max-width: 600px) {
    #lettres {
        gap: 6px;
    }
}