/* ============================================================
   KEYBOARD — ANDROID BLEU ASSYRIEN (PRO V8)
   Version propre, stable, sans conflit
============================================================ */

/* Conteneur principal du clavier */
#soureth-keyboard {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    padding: 16px !important;
    box-sizing: border-box !important;

    background: #001a3d;
    border-radius: 22px;
    border: 1px solid rgba(0, 162, 255, 0.35);
    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

/* Chaque rangée */
.keyboard-line {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;

    width: 100% !important;
    box-sizing: border-box !important;
}

/* Touches */
.key-btn {
    position: relative;
    overflow: hidden;

    background: #0033a0;
    border: 1px solid rgba(0, 162, 255, 0.35);
    border-radius: 12px;

    width: 42px !important;
    height: 42px !important;

    font-size: 22px !important;
    color: #ffffff;
    font-family: "Nohadra", "Assyrian", sans-serif;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    box-shadow: 0 2px 5px rgba(0,0,0,0.45);
    transition: background 0.15s ease, transform 0.15s ease;
}

/* Hover */
.key-btn:hover {
    background: #0047c2;
    transform: translateY(-2px);
}

/* Press */
.key-btn:active {
    transform: scale(0.92);
}

/* Ripple effect */
.key-btn::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;

    background: rgba(0, 162, 255, 0.45);
    border-radius: 50%;

    transform: scale(0);
    opacity: 0;

    pointer-events: none;

    transition: transform 0.35s ease, opacity 0.45s ease;
}

.key-btn:active::after {
    transform: scale(16);
    opacity: 1;
}

/* Touches spéciales */
.key-btn.space {
    width: 120px !important;
}

.key-btn.delete {
    background: #d40000;
    border-color: #ff6666;
}

.key-btn.enter {
    background: #00a2ff;
    border-color: #33c6ff;
}

/* Mobile */
@media (max-width: 600px) {
    #soureth-keyboard {
        max-width: 360px !important;
        padding: 12px !important;
    }

    .key-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 20px !important;
    }

    .key-btn.space {
        width: 100px !important;
    }
}

/* ============================================================
   FIX PAGE D'ACCUEIL — empêcher le clavier de devenir vertical
============================================================ */

.keyboard-wrapper {
    display: block !important;
}
.keyboard-card {
    display: block !important;
}