/* config.css */ :root { --poker-green: #0e5d32; --gold: #d4af37; --wood: #3e2723; --white: #ffffff; --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%); color: var(--white); font-family: 'Segoe UI', sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 20px; } .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); width: 100%; max-width: 500px; } 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); } label { display: block; color: var(--gold); font-weight: bold; margin-bottom: 8px; } input[type="number"], 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 */ font-size: 1rem; } /* Style spécifique pour la ligne joueur */ .player-row { display: flex; gap: 10px; margin-bottom: 10px; 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); color: var(--gold); border: 1px solid var(--gold); padding: 10px 15px; border-radius: 5px; margin-bottom: 10px; } button[type="button"]:hover { background-color: #4e342e; } /* Bouton Poubelle */ .player-row button { background-color: var(--danger); color: white; border: none; margin-bottom: 0; } /* Bouton Démarrer (le gros bouton doré) */ input[type="submit"] { width: 100%; background: linear-gradient(135deg, #d4af37 0%, #f9e27d 50%, #d4af37 100%); color: var(--wood); padding: 15px; font-size: 1.2rem; border-radius: 30px; margin-top: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); } 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; } .btn-back { position: absolute; top: 25px; /* Ajuste selon tes goûts */ left: 35px; /* Aligné avec le bord du cadre */ 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; } .btn-back:hover { opacity: 1; transform: translateX(-5px); /* Petit effet de glissement vers la gauche */ } /* --- Mode Mobile ---*/ /* --- ADAPTATION MOBILE POUR LA CONFIGURATION --- */ @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 */ } .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; } }