239 lines
5.6 KiB
CSS
239 lines
5.6 KiB
CSS
/* index.css - Version Poker PAF Harmonisée & Aérée */
|
|
: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;
|
|
}
|
|
|
|
/* --- LE CONTENEUR (Exactement comme la table de l'image 2) --- */
|
|
.welcome-container {
|
|
background: var(--table-green);
|
|
padding: 40px;
|
|
border-radius: 40px; /* Moins ovale, plus "carré arrondi" */
|
|
border: 15px solid var(--poker-border); /* Bordure épaisse cuir/bois */
|
|
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: 90%;
|
|
max-width: 600px;
|
|
position: relative;
|
|
/* Petit liseré de finition */
|
|
outline: 2px solid #3d2b27;
|
|
}
|
|
|
|
/* --- LE LISERÉ BLANC (AJOUTÉ ICI) --- */
|
|
.welcome-container::before {
|
|
content: '';
|
|
position: absolute;
|
|
/* On le décale de 10px vers l'intérieur par rapport à la bordure marron */
|
|
top: 10px;
|
|
left: 10px;
|
|
right: 10px;
|
|
bottom: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.15); /* Blanc très subtil et transparent */
|
|
border-radius: 30px; /* Un peu moins que le parent pour suivre la courbe */
|
|
pointer-events: none; /* Pour ne pas gêner les clics sur les boutons */
|
|
z-index: 1;
|
|
}
|
|
|
|
h1 {
|
|
color: var(--gold);
|
|
text-transform: uppercase;
|
|
font-size: 2.5rem;
|
|
margin-bottom: 30px;
|
|
letter-spacing: 2px;
|
|
text-shadow: 3px 3px 0px rgba(0,0,0,0.8);
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.1rem;
|
|
color: rgba(255,255,255,0.6);
|
|
text-transform: uppercase;
|
|
margin-top: 25px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* --- BOUTON PRINCIPAL CRÉER --- */
|
|
.welcome-container > button {
|
|
background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
|
|
color: var(--wood-dark);
|
|
padding: 18px 40px;
|
|
font-weight: 900;
|
|
font-size: 1.2rem;
|
|
border-radius: 50px;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
box-shadow: 0 8px 0px #927521, 0 15px 20px rgba(0,0,0,0.4);
|
|
text-transform: uppercase;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.welcome-container > button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 0px #927521, 0 20px 25px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
/* --- LISTE DES PARTIES --- */
|
|
#games_list ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 25px 0;
|
|
}
|
|
|
|
#games_list li {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* --- L'ACCORDÉON (Design des slots joueurs) --- */
|
|
.mon-accordeon {
|
|
background-color: rgba(0,0,0,0.4); /* Fond sombre comme les slots */
|
|
border-radius: 15px;
|
|
border: 2px solid #333;
|
|
overflow: hidden;
|
|
text-align: left;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
details[open].mon-accordeon {
|
|
border-color: var(--gold);
|
|
}
|
|
|
|
summary {
|
|
padding: 18px 25px;
|
|
color: var(--gold);
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
outline: none;
|
|
}
|
|
|
|
summary::-webkit-details-marker { display: none; }
|
|
|
|
summary::after {
|
|
content: '♣';
|
|
font-size: 1.2rem;
|
|
transition: transform 0.4s ease;
|
|
}
|
|
|
|
details[open] summary::after {
|
|
transform: rotate(180deg);
|
|
color: #4dbf4d;
|
|
}
|
|
|
|
/* --- CONTENU DÉPLOYÉ (Aération améliorée) --- */
|
|
.container-parent {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 30px; /* Plus d'espace entre les boutons et les noms */
|
|
padding: 0 25px;
|
|
max-height: 0;
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
|
|
background: rgba(0,0,0,0.2);
|
|
}
|
|
|
|
details[open] .container-parent {
|
|
max-height: 600px;
|
|
opacity: 1;
|
|
padding: 25px; /* On redonne du souffle ici */
|
|
}
|
|
|
|
/* Zone des noms (Left) */
|
|
.left {
|
|
flex: 1.2;
|
|
border-left: 2px solid rgba(212, 175, 55, 0.2);
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.left p {
|
|
margin: 5px 0;
|
|
font-size: 0.95rem;
|
|
color: #eee;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Zone des boutons (Right) */
|
|
.right {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.right p {
|
|
font-size: 0.85rem;
|
|
color: var(--gold);
|
|
margin-bottom: 15px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* Boutons Rejoindre */
|
|
.btn-join-list, .btn-admin-join-list {
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--gold);
|
|
background: transparent;
|
|
color: var(--gold);
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
font-size: 0.75rem;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.btn-join-list:hover {
|
|
background: var(--gold);
|
|
color: black;
|
|
}
|
|
|
|
.btn-admin-join-list {
|
|
border-color: rgba(255,255,255,0.3);
|
|
color: rgba(255,255,255,0.5);
|
|
}
|
|
|
|
.btn-admin-join-list:hover {
|
|
border-color: white;
|
|
color: white;
|
|
background: rgba(255,255,255,0.1);
|
|
}
|
|
|
|
/* --- RESPONSIVE MOBILE --- */
|
|
@media (max-width: 600px) {
|
|
.container-parent {
|
|
flex-direction: column-reverse; /* Boutons en haut ou en bas selon préférence */
|
|
gap: 20px;
|
|
}
|
|
.welcome-container {
|
|
padding: 20px;
|
|
border-width: 10px;
|
|
}
|
|
.left {
|
|
border-left: none;
|
|
border-top: 1px solid rgba(212, 175, 55, 0.2);
|
|
padding-left: 0;
|
|
padding-top: 15px;
|
|
}
|
|
} |