Final push (i hope)

This commit is contained in:
2026-03-20 01:39:04 +01:00
parent ff67c541bc
commit edc065ca0c
14 changed files with 2192 additions and 794 deletions
+129 -155
View File
@@ -1,23 +1,20 @@
/* config.css */
/* config.css - Version Poker PAF Harmonisé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;
--danger: #b71c1c;
}
label.info {
font-size: 0.8rem;
color: rgb(141, 141, 141);
margin-left: 10px;
}
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;
@@ -26,23 +23,49 @@ body {
padding: 20px;
}
/* --- LE CONTENEUR (Exactement comme l'accueil) --- */
.container {
background-color: var(--poker-green);
padding: 30px 50px;
border-radius: 60px;
border: 12px solid var(--wood);
box-shadow: 0 0 50px rgba(0,0,0,0.9), inset 0 0 20px rgba(0,0,0,0.5);
background: var(--table-green);
padding: 40px 50px;
border-radius: 40px; /* Carré arrondi comme l'accueil */
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);
width: 100%;
max-width: 500px;
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-align: center;
text-transform: uppercase;
font-size: 1.8rem;
margin-bottom: 30px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
text-align: center;
letter-spacing: 1px;
text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
position: relative;
z-index: 2;
}
/* --- FORMULAIRE ET INPUTS --- */
form {
position: relative;
z-index: 2;
}
label {
@@ -50,6 +73,15 @@ label {
color: var(--gold);
font-weight: bold;
margin-bottom: 8px;
text-transform: uppercase;
font-size: 0.9rem;
}
label.info {
text-transform: none;
font-size: 0.8rem;
color: rgba(255,255,255,0.5);
margin-bottom: 15px;
}
input[type="number"],
@@ -57,14 +89,21 @@ input[type="text"] {
width: 100%;
padding: 12px;
margin-bottom: 20px;
border: 2px solid var(--gold);
border-radius: 8px;
background: rgba(255, 255, 255, 0.9);
box-sizing: border-box; /* Pour que le padding ne dépasse pas */
border: 2px solid rgba(212, 175, 55, 0.5);
border-radius: 10px;
background: rgba(0, 0, 0, 0.3);
color: white;
font-size: 1rem;
transition: border-color 0.3s;
}
/* Style spécifique pour la ligne joueur */
input:focus {
outline: none;
border-color: var(--gold);
background: rgba(0, 0, 0, 0.5);
}
/* --- LIGNES JOUEURS --- */
.player-row {
display: flex;
gap: 10px;
@@ -72,163 +111,98 @@ input[type="text"] {
align-items: center;
}
.player-row input {
margin-bottom: 0; /* On annule la marge pour l'alignement */
}
/* Boutons */
button, input[type="submit"] {
cursor: pointer;
font-weight: bold;
transition: all 0.2s;
border: none;
}
button[type="button"] {
background-color: var(--wood);
.player-row p {
color: var(--gold);
border: 1px solid var(--gold);
padding: 10px 15px;
border-radius: 5px;
margin-bottom: 10px;
font-weight: bold;
margin: 0;
min-width: 20px;
}
button[type="button"]:hover {
background-color: #4e342e;
}
/* Bouton Poubelle */
.player-row button {
background-color: var(--danger);
color: white;
border: none;
.player-row input {
margin-bottom: 0;
}
/* Bouton Démarrer (le gros bouton doré) */
/* --- BOUTONS --- */
button, input[type="submit"] {
cursor: pointer;
font-weight: bold;
transition: all 0.3s;
border: none;
}
/* Ajouter un joueur */
button[type="button"] {
background-color: rgba(0,0,0,0.4);
color: var(--white);
border: 1px solid rgba(255,255,255,0.2);
padding: 10px 15px;
border-radius: 8px;
margin: 10px 0 20px 0;
width: 100%;
}
button[type="button"]:hover {
background-color: rgba(255,255,255,0.1);
border-color: var(--white);
}
/* Poubelle */
.player-row button {
background-color: var(--danger);
color: white;
padding: 10px;
border-radius: 8px;
width: auto;
margin: 0;
}
/* Bouton Démarrer (Gros bouton doré comme l'accueil) */
input[type="submit"] {
width: 100%;
background: linear-gradient(135deg, #d4af37 0%, #f9e27d 50%, #d4af37 100%);
color: var(--wood);
padding: 15px;
background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
color: var(--wood-dark);
padding: 18px;
font-size: 1.2rem;
border-radius: 30px;
margin-top: 20px;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
border-radius: 50px;
margin-top: 10px;
box-shadow: 0 8px 0px #927521, 0 15px 20px rgba(0,0,0,0.4);
text-transform: uppercase;
}
input[type="submit"]:hover {
transform: scale(1.02);
filter: brightness(1.1);
}
/* Bouton Debug discret en bas */
.btn-debug {
background: transparent !important;
color: rgba(255,255,255,0.3) !important;
border: 1px dashed rgba(255,255,255,0.3) !important;
width: 100%;
margin-top: 30px;
font-size: 0.8rem;
transform: translateY(-2px);
box-shadow: 0 10px 0px #927521, 0 20px 25px rgba(0,0,0,0.5);
}
/* Bouton Retour */
.btn-back {
position: absolute;
top: 25px; /* Ajuste selon tes goûts */
left: 35px; /* Aligné avec le bord du cadre */
top: 25px;
left: 30px;
color: var(--gold);
text-decoration: none;
font-weight: bold;
font-size: 0.9rem;
opacity: 0.7;
transition: opacity 0.3s, transform 0.2s;
width: 20px;
font-size: 0.8rem;
background: none !important;
border: none !important;
padding: 0 !important;
z-index: 10;
opacity: 0.8;
}
.btn-back:hover {
opacity: 1;
transform: translateX(-5px); /* Petit effet de glissement vers la gauche */
transform: translateX(-3px);
}
/* --- Mode Mobile ---*/
/* --- ADAPTATION MOBILE POUR LA CONFIGURATION --- */
/* --- ADAPTATION MOBILE --- */
@media (max-width: 600px) {
body {
padding: 10px; /* On réduit la marge extérieure */
align-items: flex-start; /* On aligne en haut pour que le scroll soit naturel */
}
body { align-items: flex-start; }
.container {
padding: 20px; /* On réduit le padding interne (30px 50px -> 20px) */
border-width: 8px; /* Bordure bois plus fine */
border-radius: 30px; /* Moins arrondi pour gagner de la place */
width: 100%;
box-sizing: border-box;
}
h1 {
font-size: 1.4rem;
margin-bottom: 20px;
}
/* Le bouton "Retour" */
.btn-back {
position: relative; /* On le sort de l'absolute pour qu'il ne chevauche pas le titre */
top: 0;
left: 0;
display: block;
margin-bottom: 15px;
width: auto;
}
/* 1. Ligne joueur : Le plus important ! */
.player-row {
flex-direction: column; /* On empile Nom et Poubelle verticalement */
align-items: stretch;
background: rgba(0,0,0,0.1);
padding: 10px;
border-radius: 8px;
border: 1px solid rgba(212, 175, 55, 0.3);
}
.player-row input {
width: 100%; /* Le champ de nom prend toute la largeur */
}
.player-row button {
width: 100%; /* Le bouton supprimer devient une large barre rouge */
padding: 12px;
margin-top: 5px;
}
/* 2. Inputs plus gros pour le tactile */
input[type="number"],
input[type="text"] {
padding: 15px;
font-size: 1.1rem; /* Évite le zoom auto sur iPhone */
}
/* 3. Boutons d'action */
button[type="button"] {
width: 100%; /* "Ajouter un joueur" prend toute la largeur */
padding: 15px;
font-size: 1rem;
}
input[type="submit"] {
padding: 18px;
font-size: 1.1rem;
border-radius: 15px; /* Un peu moins arrondi pour le look mobile */
}
/* Infos de mise (les petits labels gris) */
label.info {
margin-left: 0;
margin-top: -15px;
margin-bottom: 15px;
display: block;
padding: 30px 20px;
border-width: 10px;
border-radius: 30px;
}
.container::before { top: 7px; left: 7px; right: 7px; bottom: 7px; }
.btn-back { position: relative; top: 0; left: 0; margin-bottom: 20px; }
}