/* Container général */
.uno-game-container {
    margin: 20px auto;
    padding: 15px;
    background: #1F1F1F;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 800px;
}

/* Session info */
.info-session {
    margin-bottom: 15px;
    color: #ddd;
    font-weight: bold;
}

/* Messages */
.poker-result-ok {
    background: #4CAF50;
    color: #fff;
    padding: 10px;
    margin: 10px auto;
    border-radius: 5px;
	width: 90%;
}
.poker-result-no {
    background: #f44336;
    color: #fff;
    padding: 10px;
    margin: 10px auto;
    border-radius: 5px;
	width: 90%;	
}

/* Plateau Uno */
#uno-board {
    margin: 20px auto 0 auto;
    padding: 15px;
    background: #2A2A2A;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	width: 95%;
}

.uno-board-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #eee;
}

/* Cartes */
#player-cards span, #center-card span {
    display: inline-block;
    min-width: 50px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    margin: 5px;
    border-radius: 8px;
    font-weight: bold;
    color: #fff;
    font-family: monospace;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}
#player-cards span:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Couleurs cartes */
#player-cards span.R, #center-card span.R { background: #e74c3c; }
#player-cards span.G, #center-card span.G { background: #27ae60; }
#player-cards span.B, #center-card span.B { background: #3498db; }
#player-cards span.Y, #center-card span.Y { background: #f1c40f; color:#000; }

/* Boutons actions */
.btn-type-action {
    margin: 5px;
    padding: 10px 16px;
    background: #1E90FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}
.btn-type-action:hover { background: #187bcd; }

/* Carte UNO classique */
.uno-card {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 100px;
    margin: 5px;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,.4);
    transition: .2s;
}
.uno-card:hover { transform: translateY(-5px) scale(1.05); }

/* Couleurs classiques */
.R { background: #e74c3c; }
.G { background: #2ecc71; }
.B { background: #3498db; }
.Y { background: #f1c40f; color: #000; }


.wild-box {
	width: fit-content;
	margin: auto;
}

#wild-choice {
    display: none; /* 🔹 Masqué par défaut */
    gap: 10px;
}

/* Wild multi-couleur flashy */
.Wild, .Wild\+4 {
    /* Fond multicolore */
    background: linear-gradient(45deg, #e74c3c, #3498db, #2ecc71, #f1c40f, #9b59b6);
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s, filter 0.2s;
}

/* Effet sur hover pour Wild */
.Wild:hover, .Wild\+4:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.2);
}

/* Pour que le texte du Wild montre bien le dégradé si tu veux style "arc-en-ciel" sur le texte */
.Wild.text-gradient, .Wild\+4.text-gradient {
    background: linear-gradient(45deg, #e74c3c, #3498db, #2ecc71, #f1c40f, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.uno-draw-anim {
    animation: drawCardAnim 0.4s ease-out;
}

@keyframes drawCardAnim {
    from {
        transform: translateY(-20px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.money-anim {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD700; /* doré pour l’argent */
    top: 50px;      /* à ajuster selon ton layout */
    right: 20px;
    opacity: 1;
    animation: moneyAnim 1s ease-out forwards;
    z-index: 1000;
}

@keyframes moneyAnim {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-60px) scale(1); opacity: 0; }
}

.formulaire-input-cat-roulette {
    display: inline-flex;
    position: relative;
    width: fit-content;
	vertical-align: middle;
}

.formulaire-input-cat-roulette label {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: bold;
    color: rgb(169, 169, 173);
    margin-top: 6px;
    background: none;
}

.formulaire-input-cat-roulette span {
    margin: 8px 0px 0px 10px;
}

.form-input-form-mbr-cat-roulette {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgb(255, 255, 255);
    font-size: 12px;
    padding: 10px 10px 10px 40px;
    width: fit-content;
    outline: none;
    background: rgb(26, 26, 26);
    border-radius: 8px;
    height: 38px;
	display: inline-block;
}

/* Responsive mobile */
@media screen and (max-width: 600px){
    .uno-board-section { flex-direction: column; align-items: flex-start; }
    #player-cards span, #center-card span { min-width: 40px; height: 60px; line-height: 60px; font-size: 0.85rem; }
    .btn-type-action { padding: 8px 12px; font-size: 0.9rem; }
}
