From 8a0dbe9ba4d2dd98d57522244a9fc812f7613a65 Mon Sep 17 00:00:00 2001 From: Whykioh Date: Thu, 19 Mar 2026 14:17:51 +0100 Subject: [PATCH] sdfgbhn --- poker-paf/Css/Game.css | 336 ++++++++++++++++++++++++----------------- 1 file changed, 195 insertions(+), 141 deletions(-) diff --git a/poker-paf/Css/Game.css b/poker-paf/Css/Game.css index a366537..e0c8884 100644 --- a/poker-paf/Css/Game.css +++ b/poker-paf/Css/Game.css @@ -1,73 +1,75 @@ +/* --- CONFIGURATION DES COULEURS & VARIABLES --- */ :root { - --poker-green: #1a5e33; - --poker-border: #3e2723; + --table-green: radial-gradient(circle, #277d46 0%, #1a5e33 100%); + --poker-border: #2c1b18; /* Marron cuir très sombre */ --gold: #d4af37; --gold-light: #f9e27d; - --dark-bg: #0a0a0a; + --dark-bg: #0f0f0f; --panel-bg: #1a1a1a; --white: #ffffff; - --table-width: 800px; - --table-height: 400px; + --shadow: 0 10px 30px rgba(0,0,0,0.8); } -/* --- Base & Reset --- */ -* { box-sizing: border-box; } - +/* --- RESET & BASE --- */ body { background-color: var(--dark-bg); + background-image: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%); color: var(--white); - font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; + font-family: 'Segoe UI', Roboto, sans-serif; margin: 0; height: 100vh; display: flex; flex-direction: column; - overflow-x: hidden; + overflow: hidden; } -.game-container { - display: flex; - flex-direction: column; - height: 100%; -} - -/* --- 1. Stats Bar --- */ +/* --- STATS BAR (TOP) --- */ .stats-bar { - background: rgba(0, 0, 0, 0.9); - padding: 10px 20px; + background: rgba(0, 0, 0, 0.8); + backdrop-filter: blur(10px); + padding: 12px 25px; display: flex; - justify-content: space-around; + justify-content: space-between; align-items: center; - border-bottom: 2px solid var(--poker-border); + border-bottom: 1px solid rgba(212, 175, 55, 0.3); z-index: 100; } -.stat-item { - font-size: 1.1rem; - color: var(--gold); - font-weight: bold; -} - -/* --- 2. Table Area --- */ +/* --- TABLE DE JEU --- */ .table-container { - flex: 1; + flex-grow: 1; display: flex; justify-content: center; align-items: center; - position: relative; - padding: 80px 20px; /* Espace crucial pour les avatars */ + perspective: 1000px; /* Petit effet de profondeur */ + padding: 40px; } .poker-table { - width: 100%; - max-width: var(--table-width); - height: var(--table-height); - background-color: var(--poker-green); - border: 12px solid var(--poker-border); - border-radius: 200px; + width: 900px; + height: 450px; + background: var(--table-green); + border: 18px solid var(--poker-border); + border-radius: 250px; position: relative; - box-shadow: inset 0 0 80px rgba(0,0,0,0.6), 0 20px 50px rgba(0,0,0,0.5); + /* Ombre interne pour l'effet rebords et ombre externe pour la profondeur */ + box-shadow: + inset 0 0 60px rgba(0,0,0,0.7), + 0 25px 50px rgba(0,0,0,0.9), + 0 0 0 4px #3d2b27; } +/* Ligne blanche de démarcation sur la table */ +.poker-table::after { + content: ''; + position: absolute; + top: 25px; left: 25px; right: 25px; bottom: 25px; + border: 2px solid rgba(255,255,255,0.1); + border-radius: 230px; + pointer-events: none; +} + +/* --- ZONE CENTRALE (POT) --- */ .pot-area { position: absolute; top: 50%; @@ -78,157 +80,209 @@ body { } .total-pot { - font-size: clamp(1.5rem, 5vw, 2.5rem); - font-weight: 800; - text-shadow: 2px 2px 4px rgba(0,0,0,0.8); + font-size: 3.5rem; + font-weight: 900; + color: var(--white); + text-shadow: 0 4px 10px rgba(0,0,0,0.5); + letter-spacing: -1px; } -/* --- 3. Players Slots --- */ +.total-pot::before { + content: 'POT: '; + font-size: 0.9rem; + display: block; + color: var(--gold); + letter-spacing: 2px; +} + +.current-bet-display { + font-size: 1rem; + text-transform: uppercase; + color: rgba(255,255,255,0.6); + margin-top: -5px; +} + +/* --- JOUEURS --- */ .player-slot { position: absolute; - width: 120px; + width: 150px; z-index: 10; - transition: all 0.3s ease; + transition: transform 0.3s ease; } .player-info { - background: rgba(10, 10, 10, 0.95); - border: 2px solid var(--poker-border); - border-radius: 10px; - padding: 8px; + background: linear-gradient(145deg, #1e1e1e, #111); + border: 2px solid #333; + border-radius: 15px; + padding: 10px; text-align: center; - box-shadow: 0 4px 10px rgba(0,0,0,0.5); + box-shadow: var(--shadow); } +/* Joueur actif : Effet brillant or */ .player-info.active { border-color: var(--gold); - box-shadow: 0 0 15px var(--gold); - transform: scale(1.05); + box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); + transform: scale(1.08); + background: linear-gradient(145deg, #2a2a2a, #111); } -.player-name { color: var(--gold); font-weight: bold; font-size: 0.85rem; } -.player-money { font-size: 1rem; display: block; margin: 2px 0; } -.player-bet { font-size: 0.75rem; color: #aaa; } +.player-name { + display: block; + color: var(--gold); + font-weight: 700; + font-size: 0.9rem; + margin-bottom: 4px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} -/* Positionnement Responsive des slots */ -.slot-0 { top: -65px; left: 50%; transform: translateX(-50%); } -.slot-1 { top: 10%; right: -60px; } -.slot-2 { top: 50%; right: -90px; transform: translateY(-50%); } -.slot-3 { bottom: 10%; right: -60px; } -.slot-4 { bottom: -65px; left: 50%; transform: translateX(-50%); } -.slot-5 { bottom: 10%; left: -60px; } -.slot-6 { top: 50%; left: -90px; transform: translateY(-50%); } -.slot-7 { top: 10%; left: -60px; } +.player-money { + font-size: 1.2rem; + font-weight: bold; + color: #fff; +} -/* --- 4. Action Panel --- */ +.player-bet { + font-size: 0.8rem; + color: #888; + background: rgba(0,0,0,0.3); + border-radius: 20px; + padding: 2px 8px; + display: inline-block; + margin-top: 5px; +} + +/* Dealer Badge */ +.dealer-badge { + position: absolute; + top: -12px; + right: -12px; + background: #fff; + color: #000; + width: 28px; + height: 28px; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-weight: 900; + box-shadow: 0 2px 5px rgba(0,0,0,0.5); + border: 2px solid var(--poker-border); +} + +/* --- POSITIONNEMENT DES SLOTS (AUTO-ADAPTATIF) --- */ +.slot-0 { top: -75px; left: 50%; transform: translateX(-50%); } +.slot-1 { top: 10%; right: -130px; } +.slot-2 { top: 50%; right: -160px; transform: translateY(-50%); } +.slot-3 { bottom: 10%; right: -130px; } +.slot-4 { bottom: -75px; left: 50%; transform: translateX(-50%); } +.slot-5 { bottom: 10%; left: -130px; } +.slot-6 { top: 50%; left: -160px; transform: translateY(-50%); } +.slot-7 { top: 10%; left: -130px; } + +/* --- PANNEAU D'ACTION --- */ .action-panel { background: var(--panel-bg); - border-top: 3px solid var(--gold); - padding: 15px; - z-index: 200; + border-top: 2px solid var(--gold); + padding: 25px; + box-shadow: 0 -10px 30px rgba(0,0,0,0.5); +} + +.turn-info { + text-align: center; + margin-bottom: 20px; + font-size: 1.1rem; } .action-buttons { display: flex; justify-content: center; + gap: 15px; align-items: center; - gap: 10px; - max-width: 1000px; - margin: 0 auto; } +/* Boutons de base */ .btn { - padding: 12px 20px; - border-radius: 6px; + padding: 14px 28px; + border-radius: 10px; border: none; - font-weight: bold; + font-weight: 800; cursor: pointer; text-transform: uppercase; - transition: 0.2s; + transition: all 0.2s; font-size: 0.9rem; } -.btn-fold { background: #333; color: #eee; } -.btn-call { background: var(--poker-green); color: white; border: 1px solid var(--gold); } -.btn-raise { background: #1e88e5; color: white; } -.btn-allin { background: linear-gradient(to bottom, var(--gold), #b8860b); color: #000; } +.btn-fold { background: #333; color: #999; } +.btn-fold:hover { background: #444; color: #fff; } -/* Raise Group Input */ +.btn-call { + background: transparent; + color: #fff; + border: 2px solid var(--gold); +} +.btn-call:hover { background: var(--gold); color: #000; } + +.btn-allin { + background: linear-gradient(45deg, #8b0000, #e60000); + color: white; + box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3); +} +.btn-allin:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(230, 0, 0, 0.5); } + +/* Groupe Relance Spécial */ .raise-group { display: flex; + background: #000; border: 2px solid var(--gold); - border-radius: 6px; + border-radius: 10px; overflow: hidden; } #raise-amount { - width: 70px; - background: #000; - color: #fff; + width: 90px; + background: transparent; border: none; - padding: 5px; + color: white; + padding: 10px; text-align: center; + font-weight: bold; + outline: none; } -.btn-validate { background: var(--gold); border: none; padding: 0 10px; cursor: pointer; font-weight: bold; } - -/* --- 5. Mobile Adjustments --- */ -@media (max-width: 900px) { - :root { - --table-height: 300px; - } - - .table-container { - padding: 60px 40px; - } - - .player-slot { width: 90px; } - - /* On resserre les positions pour mobile */ - .slot-1 { right: -20px; } - .slot-2 { right: -30px; } - .slot-3 { right: -20px; } - .slot-5 { left: -20px; } - .slot-6 { left: -30px; } - .slot-7 { left: -20px; } - - .action-buttons { - display: grid; - grid-template-columns: 1fr 1fr; - } - - .raise-group, .btn-allin { - grid-column: span 2; - } -} - -/* --- Win Panel & Overlays --- */ -.win-overlay { - position: fixed; - inset: 0; - background: rgba(0,0,0,0.85); - backdrop-filter: blur(5px); - display: flex; - justify-content: center; - align-items: center; - z-index: 1000; -} - -.win-panel { - background: #1a1a1a; - padding: 30px; - border: 3px solid var(--gold); - border-radius: 15px; - text-align: center; - max-width: 90%; -} - -.btn-win { +.btn-validate { background: var(--gold); - padding: 10px 20px; - margin: 5px; border: none; - border-radius: 5px; + padding: 0 20px; + color: #000; font-weight: bold; cursor: pointer; +} + +/* Boutons utilitaires du haut */ +.btn-spaction, .btn-back, .btn-money { + background: rgba(255,255,255,0.05); + border: 1px solid rgba(212, 175, 55, 0.5); + color: var(--gold); + padding: 8px 15px; + border-radius: 5px; + cursor: pointer; + text-decoration: none; + font-size: 0.8rem; + transition: 0.3s; + margin-left: 5px; +} + +.btn-spaction:hover, .btn-back:hover { + background: var(--gold); + color: #000; +} + +/* Suppression des flèches du type "number" */ +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; } \ No newline at end of file