Files
main-website/poker-paf/Css/playerSelector.css
T
2026-04-27 06:52:16 +00:00

163 lines
3.6 KiB
CSS

/* main.css - Sélection du Joueur Poker PAF */
:root {
--table-green: radial-gradient(circle, #277d46 0%, #1a5e33 100%);
--poker-border: #2c1b18;
--gold: #d4af37;
--gold-light: #f9e27d;
--dark-bg: #0a0a0a;
--white: #ffffff;
--wood-dark: #1a0f0d;
}
body {
background-color: var(--dark-bg);
background-image: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
color: var(--white);
font-family: 'Segoe UI', Roboto, sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 20px;
}
/* --- LE CONTENEUR TABLE --- */
.container {
background: var(--table-green);
padding: 40px;
border-radius: 40px;
border: 15px solid var(--poker-border);
box-shadow: 0 25px 50px rgba(0,0,0,0.9), inset 0 0 40px rgba(0,0,0,0.6);
text-align: center;
width: 95%;
max-width: 700px;
position: relative;
outline: 2px solid #3d2b27;
}
/* --- LE LISERÉ BLANC --- */
.container::before {
content: '';
position: absolute;
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 30px;
pointer-events: none;
z-index: 1;
}
h1 {
color: var(--gold);
text-transform: uppercase;
font-size: 1.6rem;
margin-bottom: 10px;
position: relative;
z-index: 2;
text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}
h2 {
font-size: 1.1rem;
color: var(--white);
margin-bottom: 5px;
position: relative;
z-index: 2;
}
p {
color: rgba(255,255,255,0.7);
font-size: 0.9rem;
margin-bottom: 30px;
position: relative;
z-index: 2;
}
/* --- GRILLE DE SÉLECTION DES JOUEURS --- */
.player-selection {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 15px;
position: relative;
z-index: 2;
}
.join-player-btn {
background: rgba(0, 0, 0, 0.4);
color: var(--gold);
border: 2px solid rgba(212, 175, 55, 0.3);
padding: 20px 10px;
border-radius: 12px;
cursor: pointer;
font-weight: bold;
font-size: 1rem;
transition: all 0.2s ease;
display: flex;
justify-content: center;
align-items: center;
min-height: 80px;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.join-player-btn:hover {
background: var(--gold);
color: var(--wood-dark);
transform: translateY(-3px);
border-color: var(--gold-light);
box-shadow: 0 8px 15px rgba(0,0,0,0.5);
}
/* Effet au clic */
.join-player-btn:active {
transform: translateY(0);
}
.back-btn {
position: absolute;
top: 25px;
left: 30px;
color: var(--gold);
background: none !important;
border: none !important;
font-weight: bold;
font-size: 0.8rem;
cursor: pointer;
z-index: 10;
opacity: 0.8;
transition: opacity 0.3s, transform 0.2s;
text-transform: uppercase;
display: flex;
align-items: center;
gap: 5px;
}
.back-btn:hover {
opacity: 1;
transform: translateX(-3px);
}
/* --- MOBILE --- */
@media (max-width: 600px) {
.container {
padding: 25px 15px;
border-width: 10px;
}
.player-selection {
grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
gap: 10px;
}
.back-btn {
position: relative;
top: 0;
left: 0;
margin-bottom: 20px;
justify-content: flex-start;
}
.join-player-btn {
padding: 15px 5px;
font-size: 0.9rem;
}
}