/* Card contenant le formulaire */
.block-generale-galerie .card {
    border-radius: 15px;
    margin: 20px auto;
}

/* Sélecteurs */
.block-generale-galerie select {
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
}

/* Labels */
.block-generale-galerie label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}


.card {
    background: #1f1f1f;
    max-width: 600px;
}

h2,h3{text-align:center}

button{
width:100%;
padding:12px;
margin:8px 0;
border:none;
border-radius:10px;
background:#1E90FF;
color:#fff;
font-size:15px;
cursor:pointer;
}

button:hover{background:#1c7ed6}

.tension-bar {
    width: 100%;
    height: 25px;
    background-color: #333;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.tension-fill {
    height: 100%;
    width: 0%;
    background-color: #ff0000; /* couleur par défaut */
    border-radius: 12px 0 0 12px;
    transition: width 0.5s ease, background-color 0.5s ease;
}

button.selected{
    background:#ff3366 !important;
    box-shadow:0 0 12px rgba(255,51,102,.7);
}

button:disabled{
    opacity:.6;
    cursor:not-allowed;
}

.poker-result-ok, .poker-result-no {
    margin:10px 0;
    padding:10px;
    border-radius:10px;
}
.poker-result-ok { border: dashed lightgreen; color: white; max-width: 600px; margin: 10px auto 0 auto; }
.poker-result-no { border: dashed lightcoral; color: white; max-width: 600px; margin: 10px auto 0 auto; }

.scenario-description {
    background-color: #2a2a2a;  /* fond légèrement différent */
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.scenario-description h3 {
    margin-bottom: 10px;
    color: #ffcc00;
}

.scenario-description p {
    font-size: 1em;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

.regles-overlay { display: none; position: fixed; z-index: 99999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.80); align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; } 
.regles-overlay.active { display: flex; }
.regles-popup { position: relative; width: 100%; max-width: 740px; max-height: 90vh; overflow-y: auto; background: #111; border: 1px solid gold; border-radius: 15px; padding: 20px; box-sizing: border-box; box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 25px rgba(255,215,0,0.15); } 
.regles-close { position: absolute; top: 10px; right: 10px; width: 35px; height: 35px; border: none; border-radius: 50%; background: #333; color: white; font-size: 20px; font-weight: bold; cursor: pointer; z-index: 2; } 
.regles-close:hover { background: #ff4444; } 

@media (max-width: 600px) { 
.regles-overlay { padding: 10px; } 
.regles-popup { max-height: 92vh; padding: 10px; } 
.tournoi-info { padding: 15px !important; } 
}

