This commit is contained in:
2026-03-19 14:28:21 +01:00
parent 80e5a0f17d
commit ff67c541bc
+53 -116
View File
@@ -1,4 +1,4 @@
/* --- CONFIGURATION & VARIABLES --- */ /* --- CONFIGURATION --- */
:root { :root {
--table-green: radial-gradient(circle, #277d46 0%, #1a5e33 100%); --table-green: radial-gradient(circle, #277d46 0%, #1a5e33 100%);
--poker-border: #2c1b18; --poker-border: #2c1b18;
@@ -6,111 +6,77 @@
--dark-bg: #0a0a0a; --dark-bg: #0a0a0a;
--panel-bg: #151515; --panel-bg: #151515;
--white: #ffffff; --white: #ffffff;
--shadow: 0 10px 30px rgba(0,0,0,0.8);
} }
/* --- STRUCTURE PRINCIPALE --- */ /* --- STRUCTURE FIXE --- */
body { body, html {
margin: 0;
padding: 0;
height: 100%;
background-color: var(--dark-bg); background-color: var(--dark-bg);
color: var(--white); color: var(--white);
font-family: 'Segoe UI', sans-serif; font-family: 'Segoe UI', sans-serif;
margin: 0;
height: 100vh;
display: flex;
overflow: hidden; overflow: hidden;
} }
.game-container { .game-container {
display: flex; display: flex; /* Force l'alignement horizontal : Table à gauche, Panel à droite */
width: 100%; width: 100vw;
height: 100%; height: 100vh;
} }
/* --- TABLE DE JEU (GAUCHE) --- */ /* --- TABLE (ZONE GAUCHE) --- */
.table-container { .table-container {
flex: 1; /* Prend tout l'espace restant */ flex: 1; /* Prend tout l'espace restant */
position: relative;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 20px; background: radial-gradient(circle, #1a1a1a 0%, #050505 100%);
background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
} }
.poker-table { .poker-table {
width: 800px; width: 750px;
height: 400px; height: 380px;
background: var(--table-green); background: var(--table-green);
border: 15px solid var(--poker-border); border: 15px solid var(--poker-border);
border-radius: 200px; border-radius: 200px;
position: relative; position: relative; /* Important pour le placement des joueurs */
box-shadow: inset 0 0 50px rgba(0,0,0,0.7), 0 20px 40px rgba(0,0,0,0.8); box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 20px 40px rgba(0,0,0,0.8);
} }
/* --- PANNEAU D'ACTION (DROITE) --- */ /* --- PANEL D'ACTION (ZONE DROITE) --- */
.action-panel { .action-panel {
width: 300px; width: 320px;
background: var(--panel-bg); background: var(--panel-bg);
border-left: 2px solid #222; border-left: 2px solid var(--gold);
padding: 30px 20px; padding: 20px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; box-sizing: border-box;
box-shadow: -10px 0 30px rgba(0,0,0,0.5);
z-index: 100;
}
.turn-info {
text-align: center;
margin-bottom: 30px;
font-size: 1.2rem;
border-bottom: 1px solid #333;
padding-bottom: 20px;
} }
.action-buttons { .action-buttons {
display: flex; display: flex;
flex-direction: column; /* Boutons empilés à droite */ flex-direction: column;
gap: 15px; gap: 12px;
} }
/* --- BOUTONS --- */ /* --- BOUTONS --- */
.btn { .btn {
width: 100%; width: 100%;
padding: 16px; padding: 15px;
border-radius: 8px; border-radius: 8px;
border: none; border: none;
font-weight: 800; font-weight: 800;
cursor: pointer;
text-transform: uppercase; text-transform: uppercase;
transition: 0.2s; cursor: pointer;
} }
.btn-fold { background: #2a2a2a; color: #777; } .btn-call { background: #ffffff !important; color: #000 !important; }
.btn-fold:hover { background: #333; color: #fff; } .btn-fold { background: #333; color: #999; }
.btn-allin { background: #8b0000; color: #fff; }
/* Suivre en Blanc */
.btn-call {
background: #ffffff;
color: #000;
box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}
.btn-call:hover { background: #eeeeee; transform: scale(1.02); }
.btn-allin {
background: #8b0000;
color: white;
}
.btn-allin:hover { background: #b00; }
.btn-back {
text-align: center;
text-decoration: none;
color: #555;
font-size: 0.9rem;
margin-top: 20px;
}
/* Relance */
.raise-group { .raise-group {
display: flex; display: flex;
border: 2px solid var(--gold); border: 2px solid var(--gold);
@@ -120,70 +86,41 @@ body {
#raise-amount { #raise-amount {
flex: 1; flex: 1;
background: #000; background: #000;
color: #fff;
border: none; border: none;
color: white; padding: 10px;
padding: 12px;
text-align: center; text-align: center;
font-size: 1.1rem;
} }
.btn-validate { .btn-validate { background: var(--gold); border: none; padding: 0 15px; cursor: pointer; font-weight: bold; }
background: var(--gold);
border: none; /* --- PLACEMENT DES JOUEURS (ABSOLU PAR RAPPORT A LA TABLE) --- */
padding: 0 20px; .player-slot {
font-weight: bold; position: absolute;
cursor: pointer; width: 140px;
z-index: 10;
} }
/* --- EFFETS JOUEURS COUCHÉS (BLUR / PIXEL) --- */
/* Effet de base : Flou */
.blur-effect, .All-in-Blur {
filter: blur(4px) grayscale(0.8);
opacity: 0.6;
pointer-events: none;
}
/* Simulation de "1 chance sur 4" de pixeliser au lieu de flouter */
/* On cible arbitrairement certains IDs pour l'effet pixel */
.player-slot[data-id$="2"],
.player-slot[data-id$="5"],
.player-slot[data-id$="8"] {
/* Si la classe blur est active sur ces IDs, on applique l'effet pixel */
image-rendering: pixelated;
}
.player-slot[data-id$="2"].blur-effect,
.player-slot[data-id$="5"].blur-effect {
filter: contrast(2) brightness(0.5) opacity(0.7); /* Effet "glitch" visuel */
}
/* --- POSITIONNEMENT JOUEURS --- */
.player-info { .player-info {
background: #1e1e1e; background: #1e1e1e;
border: 2px solid #333; border: 2px solid #333;
border-radius: 12px; border-radius: 10px;
padding: 8px; padding: 8px;
text-align: center; text-align: center;
min-width: 120px;
}
.player-info.active {
border-color: var(--gold);
box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
} }
.slot-0 { top: -60px; left: 50%; transform: translateX(-50%); } .player-info.active { border-color: var(--gold); box-shadow: 0 0 15px var(--gold); }
.slot-1 { top: 10%; right: -110px; }
.slot-2 { top: 50%; right: -130px; transform: translateY(-50%); }
.slot-3 { bottom: 10%; right: -110px; }
.slot-4 { bottom: -60px; left: 50%; transform: translateX(-50%); }
.slot-5 { bottom: 10%; left: -110px; }
.slot-6 { top: 50%; left: -130px; transform: translateY(-50%); }
.slot-7 { top: 10%; left: -110px; }
/* --- POT --- */ /* Positions autour de l'ovale */
.pot-area { .slot-0 { top: -40px; left: 50%; transform: translateX(-50%); }
position: absolute; .slot-1 { top: 15%; right: -70px; }
top: 50%; left: 50%; .slot-2 { top: 50%; right: -90px; transform: translateY(-50%); }
transform: translate(-50%, -50%); .slot-3 { bottom: 15%; right: -70px; }
text-align: center; .slot-4 { bottom: -40px; left: 50%; transform: translateX(-50%); }
} .slot-5 { bottom: 15%; left: -70px; }
.total-pot { font-size: 3rem; font-weight: 900; } .slot-6 { top: 50%; left: -90px; transform: translateY(-50%); }
.total-pot::before { content: 'POT'; font-size: 0.8rem; color: var(--gold); display: block; } .slot-7 { top: 15%; left: -70px; }
/* --- EFFETS --- */
.blur-effect, .All-in-Blur { filter: blur(3px) grayscale(1); opacity: 0.5; }
.pot-area { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.total-pot { font-size: 3rem; font-weight: bold; }