/* ═══════════════════════════════════════════════
   VIRTUAL KEYBOARD — Styles
   Optimisé pour écran tactile 7 pouces (1024×600)
   Touches larges pour utilisation au doigt
   ═══════════════════════════════════════════════ */

.vk-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.vk-overlay.vk-visible {
    transform: translateY(0);
    pointer-events: all;
}

.vk-keyboard {
    background: linear-gradient(180deg, #1a1a32 0%, #12122a 100%);
    border-top: 1px solid rgba(0,210,255,0.2);
    padding: 6px 12px 10px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}

/* ─── HEADER ─── */
.vk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px 5px;
}
.vk-title {
    color: #555;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vk-close {
    background: rgba(232,65,24,0.15);
    border: 1px solid rgba(232,65,24,0.3);
    color: #ff6b6b;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s;
}
.vk-close:hover { background: rgba(232,65,24,0.3); }

/* ─── ROWS ─── */
.vk-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

/* ─── KEYS ─── */
.vk-key {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
    min-width: 72px;
    height: 48px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.vk-key:hover {
    background: rgba(255,255,255,0.12);
}
.vk-key:active {
    background: rgba(0,210,255,0.25);
    border-color: rgba(0,210,255,0.5);
    color: #fff;
    transform: scale(0.94);
}

/* ─── FUNCTION KEYS ─── */
.vk-key-fn {
    background: rgba(255,255,255,0.04);
    color: #888;
    font-size: 16px;
}

.vk-key-backspace {
    min-width: 90px;
    color: #ff6b6b;
}

.vk-key-shift {
    min-width: 72px;
    color: #a78bfa;
}
.vk-key-shift.vk-key-active {
    background: rgba(167,139,250,0.2);
    border-color: rgba(167,139,250,0.4);
    color: #a78bfa;
}

.vk-key-enter {
    min-width: 90px;
    background: rgba(0,210,255,0.12);
    color: var(--col-cyan, #00d2ff);
    border-color: rgba(0,210,255,0.25);
}
.vk-key-enter:active {
    background: rgba(0,210,255,0.3);
}

.vk-key-space {
    flex: 1;
    max-width: 500px;
    min-width: 280px;
    background: rgba(255,255,255,0.05);
}
.vk-key-space::after {
    content: 'espace';
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.vk-key-at {
    min-width: 60px;
    color: var(--col-cyan, #00d2ff);
}
