Final push (i hope)
This commit is contained in:
+193
-216
@@ -1,16 +1,19 @@
|
||||
/* index.css */
|
||||
/* index.css - Version Poker PAF Harmonisée & Aérée */
|
||||
:root {
|
||||
--poker-green: #0e5d32;
|
||||
--table-green: radial-gradient(circle, #277d46 0%, #1a5e33 100%);
|
||||
--poker-border: #2c1b18;
|
||||
--gold: #d4af37;
|
||||
--wood: #3e2723;
|
||||
--gold-light: #f9e27d;
|
||||
--dark-bg: #0a0a0a;
|
||||
--white: #ffffff;
|
||||
--wood-dark: #1a0f0d;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #121212;
|
||||
background-image: radial-gradient(circle, #1a1a1a 0%, #000000 100%);
|
||||
background-color: var(--dark-bg);
|
||||
background-image: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
|
||||
color: var(--white);
|
||||
font-family: 'Segoe UI', sans-serif;
|
||||
font-family: 'Segoe UI', Roboto, sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@@ -18,245 +21,219 @@ body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* --- LE CONTENEUR (Exactement comme la table de l'image 2) --- */
|
||||
.welcome-container {
|
||||
background-color: var(--poker-green);
|
||||
padding: 50px;
|
||||
border-radius: 80px;
|
||||
border: 15px solid var(--wood);
|
||||
box-shadow: 0 0 60px rgba(0,0,0,0.9), inset 0 0 30px rgba(0,0,0,0.5);
|
||||
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: 450px;
|
||||
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.2rem;
|
||||
margin-bottom: 40px;
|
||||
text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 30px;
|
||||
letter-spacing: 2px;
|
||||
text-shadow: 3px 3px 0px rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
/* Style pour le lien "Démarrer une partie" */
|
||||
.btn-start {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, #d4af37 0%, #f9e27d 50%, #d4af37 100%);
|
||||
color: var(--wood);
|
||||
text-decoration: none;
|
||||
padding: 15px 30px;
|
||||
font-weight: bold;
|
||||
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: 40px;
|
||||
margin-bottom: 40px;
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
box-shadow: 0 5px 15px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
.btn-start:hover {
|
||||
transform: scale(1.05);
|
||||
box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
|
||||
}
|
||||
|
||||
/* Section rejoindre */
|
||||
.join-section {
|
||||
border-top: 1px solid rgba(255,255,255,0.2);
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
color: var(--gold);
|
||||
margin-bottom: 15px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 2px solid var(--gold);
|
||||
border-radius: 5px;
|
||||
padding: 12px;
|
||||
width: 60%;
|
||||
font-size: 1rem;
|
||||
margin-bottom: 15px;
|
||||
outline: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: var(--wood);
|
||||
color: var(--gold);
|
||||
border: 2px solid var(--gold);
|
||||
padding: 10px 20px;
|
||||
font-weight: bold;
|
||||
border-radius: 5px;
|
||||
border-radius: 50px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #5d3a3a;
|
||||
}
|
||||
|
||||
.btn-join-list{
|
||||
background-color: transparent;
|
||||
color: var(--gold);
|
||||
padding-left: 12px;
|
||||
border: 1px solid var(--gold);
|
||||
padding: 8px 12px;
|
||||
border-radius: 5px;
|
||||
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;
|
||||
}
|
||||
|
||||
.btn-join-list:hover {
|
||||
background-color: var(--gold);
|
||||
color: var(--wood);
|
||||
.welcome-container > button:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 0px #927521, 0 20px 25px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
/* --- LISTE DES PARTIES --- */
|
||||
#games_list ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 25px 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* --- Mode Mobile --- */
|
||||
/* --- ADAPTATION MOBILE POUR L'ACCUEIL --- */
|
||||
@media (max-width: 600px) {
|
||||
|
||||
body {
|
||||
/* On permet le scroll si le contenu est plus haut que l'écran */
|
||||
height: auto;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.welcome-container {
|
||||
/* On réduit les bordures massives et le padding */
|
||||
padding: 30px 20px;
|
||||
border-width: 8px; /* Bordure en bois moins épaisse */
|
||||
border-radius: 40px; /* Moins arrondi pour gagner de la place */
|
||||
width: 85%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.6rem; /* Titre plus petit */
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
/* Le bouton principal doit être bien large pour le pouce */
|
||||
.btn-start {
|
||||
width: 100%;
|
||||
box-sizing: border-box; /* Pour que le padding n'agrandisse pas la largeur */
|
||||
padding: 18px 20px;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
/* Section rejoindre */
|
||||
input[type="text"] {
|
||||
width: 100%; /* L'input prend toute la largeur */
|
||||
box-sizing: border-box;
|
||||
padding: 15px;
|
||||
font-size: 1.1rem; /* Évite le zoom auto de l'iPhone sur les inputs */
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%; /* Les boutons de validation passent en pleine largeur */
|
||||
padding: 15px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Pour la liste des parties */
|
||||
li {
|
||||
flex-direction: column; /* On empile le nom et le bouton */
|
||||
gap: 10px;
|
||||
background: rgba(0,0,0,0.2);
|
||||
padding: 15px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.btn-join-list {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
#games_list li {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* Conteneur principal */
|
||||
/* --- L'ACCORDÉON (Design des slots joueurs) --- */
|
||||
.mon-accordeon {
|
||||
max-width: 600px;
|
||||
width: 100%;
|
||||
margin: 20px auto;
|
||||
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
||||
background-color: #1a1a1a; /* Noir anthracite */
|
||||
border-radius: 8px;
|
||||
background-color: rgba(0,0,0,0.4); /* Fond sombre comme les slots */
|
||||
border-radius: 15px;
|
||||
border: 2px solid #333;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
|
||||
border: 1px solid #333;
|
||||
}
|
||||
|
||||
.container-parent {
|
||||
display: flex;
|
||||
justify-content: space-between; /* Pousse les éléments aux extrémités */
|
||||
align-items: center; /* Aligne verticalement au centre (optionnel) */
|
||||
width: 100%; /* S'assure que le container prend toute la largeur */
|
||||
text-align: left;
|
||||
transition: border-color 0.3s;
|
||||
}
|
||||
|
||||
/* L'élément details */
|
||||
details {
|
||||
border-bottom: 1px solid #333;
|
||||
}
|
||||
|
||||
details:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* Le titre (Summary) */
|
||||
summary {
|
||||
padding: 15px 20px;
|
||||
background-color: #1a1a1a;
|
||||
color: #d4af37; /* Doré sobre */
|
||||
|
||||
details[open].mon-accordeon {
|
||||
border-color: var(--gold);
|
||||
}
|
||||
|
||||
summary {
|
||||
padding: 18px 25px;
|
||||
color: var(--gold);
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
list-style: none; /* Cache la flèche par défaut sur certains navigateurs */
|
||||
transition: background 0.3s ease;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Style de survol */
|
||||
summary:hover {
|
||||
background-color: #252525;
|
||||
color: #f0c644;
|
||||
}
|
||||
|
||||
/* Flèche personnalisée à droite */
|
||||
summary::after {
|
||||
content: '♣'; /* Trèfle discret */
|
||||
outline: none;
|
||||
}
|
||||
|
||||
summary::-webkit-details-marker { display: none; }
|
||||
|
||||
summary::after {
|
||||
content: '♣';
|
||||
font-size: 1.2rem;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
/* Rotation du trèfle quand c'est ouvert */
|
||||
details[open] summary::after {
|
||||
transition: transform 0.4s ease;
|
||||
}
|
||||
|
||||
details[open] summary::after {
|
||||
transform: rotate(180deg);
|
||||
color: #2e7d32; /* Vert poker au clic */
|
||||
}
|
||||
|
||||
/* Contenu de l'accordéon */
|
||||
.contenu {
|
||||
padding: 15px 20px;
|
||||
background-color: #0d3b2e; /* Vert tapis de table sombre */
|
||||
color: #e0e0e0;
|
||||
line-height: 1.6;
|
||||
border-top: 1px solid #1a1a1a;
|
||||
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;
|
||||
}
|
||||
|
||||
/* Petit effet de bordure gauche pour marquer l'ouverture */
|
||||
details[open] {
|
||||
border-left: 4px solid #2e7d32;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user