This commit is contained in:
2026-03-03 19:56:57 +01:00
parent 3458aeb1f7
commit bd9fe12c8b
+59 -24
View File
@@ -429,57 +429,92 @@ button.btn-back {
/* --- PANEL DE VICTOIRE --- */
/* Conteneur principal en overlay */
/* --- PANEL DE VICTOIRE --- */
.win-panel {
position: absolute; /* Se place par rapport au table-container */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); /* Centrage parfait */
transform: translate(-50%, -50%);
width: 90%;
max-width: 450px;
background: rgba(20, 20, 20, 0.98); /* Fond très sombre */
border: 4px solid #d4af37; /* Bordure dorée */
max-width: 500px;
background: rgba(18, 18, 18, 0.95); /* Fond sombre semi-transparent */
border: 5px solid #d4af37; /* Bordure dorée */
border-radius: 20px;
padding: 30px;
text-align: center;
z-index: 2000; /* Assure d'être au-dessus de tout */
box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.3);
animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
z-index: 1000; /* Par-dessus tout */
box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
animation: fadeInScale 0.4s ease-out;
}
/* Titre du panel */
.win-panel h2 {
color: #d4af37;
margin-bottom: 20px;
font-size: 1.5rem;
font-size: 1.8rem;
margin-bottom: 25px;
text-transform: uppercase;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
/* Boutons de sélection du gagnant */
/* Boutons de sélection des joueurs (Qui a gagné ?) */
.btn-win {
display: block;
width: 100%;
margin: 10px 0;
display: inline-block;
width: 80%;
margin: 8px 0;
padding: 12px;
background: #1a4a31;
background: linear-gradient(135deg, #1a4a31 0%, #0e5d32 100%);
color: white;
border: 2px solid #d4af37;
border-radius: 8px;
border-radius: 10px;
font-weight: bold;
cursor: pointer;
transition: 0.3s;
transition: all 0.2s;
}
.btn-win:hover {
transform: scale(1.05);
background: #d4af37;
color: #1a4a31;
transform: scale(1.02);
}
/* Animation d'apparition */
@keyframes popIn {
from { opacity: 0; transform: translate(-50%, -60%) scale(0.5); }
to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* Bouton Rejouer / Retour Accueil */
.btn-replay, .btn-back {
margin: 15px 5px;
padding: 12px 25px;
border-radius: 30px;
border: none;
font-weight: bold;
cursor: pointer;
text-transform: uppercase;
transition: transform 0.2s;
}
.btn-replay {
background: linear-gradient(135deg, #d4af37 0%, #f9e27d 100%);
color: #3e2723;
box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-back {
background: #3e2723;
color: #d4af37;
border: 1px solid #d4af37;
}
.btn-replay:hover, .btn-back:hover {
transform: translateY(-3px);
filter: brightness(1.2);
}
/* Petite animation d'entrée */
@keyframes fadeInScale {
from {
opacity: 0;
transform: translate(-50%, -60%) scale(0.8);
}
to {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
}
/* --- ADAPTATION MOBILE --- */