/* tomb.css - Version Semoa (gris foncé et rouge) */
:root {
    --primary-color: #242729;    /* Gris foncé Semoa */
    --secondary-color: #c0392b;  /* Rouge Semoa */
    --accent-color: #e74c3c;     /* Rouge vif */
    --accent-hover: #e20000;     /* Rouge plus clair */
    --text-color: #fff;
    --wheel-shadow: rgba(0, 0, 0, 0.4);
    --segment-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset et fond principal */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* ANIMATIONS DE FOND */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Cercles animés en fond - Couleurs Semoa */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.1) 0%, transparent 70%);
    animation-duration: 25s;
}

.bg-circle-2 {
    width: 500px;
    height: 500px;
    bottom: -250px;
    right: -250px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.15) 0%, transparent 70%);
    animation-duration: 30s;
    animation-direction: reverse;
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    background: radial-gradient(circle, rgba(160, 29, 14, 0.08) 0%, transparent 70%);
    animation-duration: 15s;
}

/* Étoiles scintillantes */
.star {
    position: absolute;
    background: #daaa28; /* Rouge Semoa */
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

/* Étoiles scintillantes existantes */
.star-1 { top: 20%; left: 10%; width: 3px; height: 3px; animation-delay: 0s; }
.star-2 { top: 60%; right: 15%; width: 2px; height: 2px; animation-delay: 1s; }
.star-3 { bottom: 40%; left: 20%; width: 4px; height: 4px; animation-delay: 2s; }
.star-4 { top: 30%; right: 25%; width: 2px; height: 2px; animation-delay: 3s; }
.star-5 { bottom: 20%; left: 50%; width: 3px; height: 3px; animation-delay: 1.5s; }

/* Nouvelles étoiles supplémentaires */
.star-6 { top: 15%; right: 10%; width: 2px; height: 2px; animation-delay: 0.5s; }
.star-7 { top: 70%; left: 15%; width: 3px; height: 3px; animation-delay: 2.5s; }
.star-8 { bottom: 30%; right: 30%; width: 2px; height: 2px; animation-delay: 1.2s; }
.star-9 { top: 45%; left: 5%; width: 4px; height: 4px; animation-delay: 3.5s; }
.star-10 { bottom: 60%; right: 5%; width: 3px; height: 3px; animation-delay: 0.8s; }
.star-11 { top: 80%; left: 40%; width: 2px; height: 2px; animation-delay: 2.8s; }
.star-12 { bottom: 10%; right: 40%; width: 3px; height: 3px; animation-delay: 1.8s; }
.star-13 { top: 25%; left: 80%; width: 4px; height: 4px; animation-delay: 0.3s; }


/* TICKET TOMBOLA VOLANT - Couleurs Semoa */
.flying-ticket {
    position: fixed;
    top: 50%;
    left: -100px;
    width: 80px;
    height: 40px;
    background: linear-gradient(135deg, #8d2418, #c0392b); /* Dégradé rouge Semoa */
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 100;
    animation: flyTicket 15s infinite ease-in-out;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    color: #fff; /* Texte blanc pour meilleur contraste */
    text-align: center;
    padding: 5px;
    transform-style: preserve-3d;
}

.flying-ticket::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed rgba(255, 255, 255, 0.5); /* Blanc semi-transparent */
    border-radius: 4px;
    opacity: 0.3;
}

.flying-ticket:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6); /* Ombre rouge */
    animation-play-state: paused;
}

.flying-ticket.caught {
    animation: ticketCaught 1s forwards;
}

/* PERSONNAGE QUI COURT - Couleurs Semoa */
.running-character {
    position: fixed;
    bottom: 50px;
    left: -100px;
    width: 60px;
    height: 80px;
    z-index: 99;
    animation: runAfterTicket 18s infinite linear;
    opacity: 0.8;
}

.character-body {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 20px;
    height: 40px;
    background: #2c3e50; /* Gris foncé Semoa */
    border-radius: 10px 10px 0 0;
    animation: characterRun 0.5s infinite alternate;
}

.character-head {
    position: absolute;
    top: 0;
    left: 15px;
    width: 30px;
    height: 30px;
    background: #e74c3c; /* Rouge Semoa */
    border-radius: 50%;
}

.character-arm {
    position: absolute;
    top: 15px;
    width: 15px;
    height: 8px;
    background: #34495e; /* Gris plus clair */
    border-radius: 4px;
    animation: characterArm 0.3s infinite alternate;
}

.character-arm.left {
    left: 0;
    transform-origin: right center;
}

.character-arm.right {
    right: 0;
    transform-origin: left center;
    animation-delay: 0.15s;
}

.character-leg {
    position: absolute;
    bottom: -10px;
    width: 8px;
    height: 20px;
    background: #2c3e50; /* Gris foncé Semoa */
    border-radius: 4px;
    animation: characterLeg 0.4s infinite alternate;
}

.character-leg.left {
    left: 10px;
}

.character-leg.right {
    right: 10px;
    animation-delay: 0.2s;
}

/* ANIMATIONS KEYFRAMES */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes flyTicket {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateX(30vw) translateY(-100px) rotate(90deg);
    }
    50% {
        transform: translateX(50vw) translateY(50px) rotate(180deg);
    }
    75% {
        transform: translateX(80vw) translateY(-80px) rotate(270deg);
    }
    100% {
        transform: translateX(110vw) translateY(0) rotate(360deg);
        opacity: 1;
    }
}

@keyframes ticketCaught {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes runAfterTicket {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(120vw);
    }
}

@keyframes characterRun {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

@keyframes characterArm {
    0% {
        transform: rotate(-20deg);
    }
    100% {
        transform: rotate(20deg);
    }
}

@keyframes characterLeg {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-8px) rotate(10deg);
    }
}

/* EFFET DE BRILLANCE GLOBAL - Couleurs Semoa */
@keyframes globalShine {
    0%, 100% {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
    50% {
        background: linear-gradient(135deg, #293b4d, #aa3023); /* Gris plus clair vers rouge */
    }
}

body {
    animation: globalShine 10s infinite alternate;
}

/* CONTENU PRINCIPAL */
#game {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

#wheel {
    border-radius: 50%;
    border: 15px solid white;
    box-shadow: 
        0 0 25px var(--wheel-shadow),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease-out;
    background: white;
}

.wheel-center {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    border: 8px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wheel-center::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* CORRECTION DE LA FLÈCHE - Version pointant vers le bas */
.arrow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    z-index: 5;
}

.arrow::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid var(--accent-color); /* Changé de border-bottom à border-top */
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
}

.arrow::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    top: -5px; /* Ajusté pour la nouvelle position */
    left: 50%;
    transform: translateX(-50%);
}

.input-container {
    margin: 30px 0 20px;
    position: relative;
    display: inline-block;
}

input.code-tombola {
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 50px;
    border: none;
    outline: none;
    text-align: center;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
}

input.code-tombola:focus {
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
    border: 2px solid var(--accent-color);
}

button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Toast notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    padding: 15px 25px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.toast.success {
    background: #27ae60;
}

.toast.info {
    background: #2980b9;
}

.toast.warning {
    background: #f39c12;
    color: #2c3e50;
}

.toast.danger {
    background: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Effet de brillance sur la roue */
@keyframes shine {
    0% { box-shadow: 0 0 25px var(--wheel-shadow); }
    50% { box-shadow: 0 0 35px rgba(231, 76, 60, 0.5); }
    100% { box-shadow: 0 0 25px var(--wheel-shadow); }
}

.wheel-shine {
    animation: shine 3s infinite;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }
    
    #wheel {
        width: 300px !important;
        height: 300px !important;
    }
    
    input.code-tombola {
        width: 250px;
    }
    
    .flying-ticket {
        width: 60px;
        height: 30px;
        font-size: 8px;
    }
    
    .running-character {
        transform: scale(0.8);
    }
}

/* ------------------------------------------------------------------------- */

/* Conteneur principal pour la roue et le socle */
.wheel-with-stand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

/* Réorganisation du socle - Couleurs Semoa */
.wheel-stand {
    position: relative;
    width: 300px;
    height: 180px;
    z-index: 1;
    order: 2;
}

.stand-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 25px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 15px 15px 8px 8px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.stand-pillar {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 120px;
    background: linear-gradient(90deg, #2c3e50, #34495e, #2c3e50);
    border-radius: 8px 8px 0 0;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(231, 76, 60, 0.2);
}

.stand-neck {
    position: absolute;
    bottom: 145px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    background: linear-gradient(90deg, #2c3e50, #34495e, #2c3e50);
    border-radius: 5px 5px 0 0;
}

.stand-top {
    position: absolute;
    bottom: 170px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 8px 8px 2px 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* La roue doit être positionnée au-dessus du socle */
.wheel-container {
    position: relative;
    order: 1;
    margin-bottom: -80px;
    z-index: 2;
}

/* Ajustement de la flèche pour la nouvelle position */
.wheel-container .arrow {
    top: -15px;
}

/* Décoration du socle - Couleurs Semoa */
.stand-decoration {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 8px;
    background: linear-gradient(90deg, #e74c3c, #c0392b, #e74c3c);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

.stand-screw {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.stand-screw:nth-child(1) {
    top: 20px;
    left: 25%;
}

.stand-screw:nth-child(2) {
    top: 20px;
    right: 25%;
}

/* Effets de lumière sur le socle */
.stand-pillar::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 5px;
    right: 5px;
    bottom: 10px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(231, 76, 60, 0.2) 50%, 
        transparent 100%);
    border-radius: 4px;
}

/* Animation subtile du socle */
@keyframes standGlow {
    0%, 100% { 
        box-shadow: 
            0 10px 25px rgba(0, 0, 0, 0.4),
            inset 0 2px 5px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 10px 25px rgba(0, 0, 0, 0.4),
            inset 0 2px 5px rgba(255, 255, 255, 0.1),
            0 0 20px rgba(231, 76, 60, 0.4);
    }
}

.wheel-stand:hover .stand-base {
    animation: standGlow 2s ease-in-out;
}

/* Version alternative avec socle plus visible */
.wheel-stand.enhanced {
    height: 200px;
}

.wheel-stand.enhanced .stand-base {
    width: 300px;
    height: 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.wheel-stand.enhanced .stand-pillar {
    height: 140px;
    background: linear-gradient(90deg, #2c3e50, #34495e, #2c3e50);
}

.wheel-stand.enhanced .stand-top {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    width: 80px;
}

/* NOUVEAUX STYLES POUR LE LAYOUT AMÉLIORÉ */

/* Header controls */
.header-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    color: white;
    text-decoration: none;
}

/* Section input en haut */
.input-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.input-container {
    flex: 0 1 400px;
}

.code-tombola {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 3px solid #3498db;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.code-tombola:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.spin-btn-top {
    padding: 15px 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    min-width: 180px;
}

.spin-btn-top:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

.spin-btn-top:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .input-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-container {
        flex: 1 1 100%;
        max-width: 300px;
    }
    
    .header-controls {
        top: 10px;
        right: 10px;
    }
    
    .btn-logout {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Styles pour KioskBoard */
.kioskboard-container {
    z-index: 10010 !important;
    font-family: 'Arial', sans-serif !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.kioskboard-key {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    margin: 4px !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease !important;
    font-weight: bold !important;
}

.kioskboard-key:hover {
    background: linear-gradient(135deg, #2980b9, #21618c) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3) !important;
}

.kioskboard-key-active {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    transform: scale(0.95) !important;
}

.kioskboard-key-special {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

.kioskboard-key-special:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

/* Style pour les inputs avec clavier virtuel */
.kioskboard-input {
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #3498db !important;
}

.kioskboard-input:focus {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5) !important;
    outline: none !important;
}

/* Header du clavier */
.kioskboard-header {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    color: white !important;
    border-radius: 15px 15px 0 0 !important;
}

.kioskboard-keys-wrapper {
    padding: 10px !important;
}

/* Clavier virtuel simple */
.simple-keyboard {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e5e4e4, #e4e4e4);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10010;
    backdrop-filter: blur(10px);
    min-width: 400px;
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-size: 1.1rem;
}

.keyboard-close {
    background: #e74c3c;
    border: none;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keyboard-keys {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.keyboard-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.keyboard-row button {
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    border: none;
    border-radius: 8px;
    color: rgb(0, 0, 0);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    min-width: 60px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    flex: 1;
}

.keyboard-row button:hover {
    background: linear-gradient(135deg, #a8a8a8, #bdbdbd);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.key-special {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    flex: 2 !important;
}

.key-special:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

/* Champ téléphone en lecture seule pour forcer le clavier virtuel */
.phone-field[readonly] {
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.phone-field[readonly]:focus {
    outline: none;
    border-color: #2ecc71;
}
