/* ================================
   PENDU - Styles spécifiques
   ================================ */

body.page-jeux { background: #faf8f0; }

/* CONTAINER */
.container-pendu {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 15px;
    align-items: start;
    position: relative;
}

/* SCORES */
.scores-pendu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#box-erreurs-pendu { background: #e53935; }
#box-temps-pendu   { background: #4a90d9; }

/* INDICES */
.indices-pendu {
    background: white;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.indice-ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85em;
    margin-bottom: 8px;
}

.indice-label { color: #888; }
.indice-valeur { font-weight: 700; color: #232526; }

.boutons-indices {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-indice-pendu {
    background: #764ba2;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78em;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.btn-indice-pendu:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-indice-pendu.utilise {
    background: #eee;
    color: #999;
    cursor: not-allowed;
}

/* ARDOISE */
.ardoise-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.ardoise-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.pendu-svg {
    position: absolute;
    top: 12%;
    left: 18%;
    width: 55%;
    height: 65%;
}

/* MOT À TROUVER */
.mot-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.lettre-case {
    width: 30px;
    height: 36px;
    background: #232526;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    transition: all 0.3s;
}

.lettre-case.revele {
    background: #5ced8c;
    color: #232526;
    animation: apparition 0.3s ease;
}

.lettre-case.indice {
    background: #764ba2;
    color: white;
}

@keyframes apparition {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

/* CLAVIER */
.clavier-pendu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-top: 6px;
}

.clavier-ligne {
    display: flex;
    gap: 4px;
}

.btn-lettre-pendu {
    width: 32px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: #e0e0e0;
    color: #232526;
    font-size: 0.8em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-lettre-pendu:hover:not(:disabled) {
    background: #bbb;
    transform: translateY(-2px);
}

.btn-lettre-pendu.correcte {
    background: #5ced8c;
    color: #232526;
    cursor: not-allowed;
}

.btn-lettre-pendu.fausse {
    background: #e53935;
    color: white;
    cursor: not-allowed;
}

.btn-lettre-pendu:disabled {
    cursor: not-allowed;
}
.colonne-centrale {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 0;
}