/* ===================================================================================================================================================
															KETE 10000 - Fichier de styles principal (/css/KE_styles.css)
===================================================================================================================================================*/
/* Reset de base & Typographie */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #121212; color: #e0e0e0; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
/* En-tête principal */
h1 { text-align: center; background-color: #1e1e1e; color: #ffcc00; padding: 15px; font-size: 24px; border-bottom: 2px solid #333; letter-spacing: 1px; }
/* Conteneur global (Sidebar + Plateau de jeu / Salons) */
.container { display: flex; flex: 1; padding: 15px; gap: 15px; min-height: calc(100vh - 65px); }
/* ==========================================================================
SIDEBAR (Panneau latéral : gestion des joueurs, commandes, règles)
========================================================================== */
.sidebar { width: 320px; min-width: 320px; background-color: #1e1e1e; border-radius: 8px; padding: 15px; display: flex; flex-direction: column; overflow-y: auto; border: 1px solid #333; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); }
.sidebar h3 { font-size: 15px; color: #fff; }
.sidebar button, .sidebar input[type="text"], .sidebar select { width: 100%; padding: 8px 10px; margin-bottom: 8px; border-radius: 4px; border: 1px solid #444; background-color: #2a2a2a; color: #fff; font-size: 13px; }
.sidebar button { background-color: #333; cursor: pointer; font-weight: bold; transition: background 0.2s ease; }
.sidebar button:hover { background-color: #444; }
/* ==========================================================================
MAIN CONTENT (Zone de jeu, choix du mode et salles d'attente)
========================================================================== */
.main-content { flex: 1; display: flex; flex-direction: column; gap: 15px; overflow: hidden; }
.game-area, .stats-area, .menu-card { background-color: #1e1e1e; border: 1px solid #333; border-radius: 8px; padding: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); }
.game-area { flex: 2; display: flex; flex-direction: column; overflow-y: auto; }
.stats-area { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
/* Cartes de sélection du mode (Local / Connecté) */
.mode-selection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.mode-card { background: #252525; border: 2px solid #444; border-radius: 8px; padding: 25px; text-align: center; transition: transform 0.2s, border-color 0.2s; }
.mode-card:hover { transform: translateY(-3px); border-color: #ffcc00; }
.mode-card h3 { color: #ffcc00; margin-bottom: 10px; font-size: 18px; }
.mode-card p { font-size: 13px; color: #aaa; margin-bottom: 20px; line-height: 1.4; }
/* Boutons d'action généraux */
button { padding: 10px 15px; border: none; border-radius: 4px; font-size: 14px; font-weight: bold; cursor: pointer; transition: opacity 0.2s ease; }
button:hover { opacity: 0.9; }
button:disabled { background-color: #444 !important; color: #888 !important; cursor: not-allowed; opacity: 1; }
/* Styles spécifiques aux dés et composants graphiques */
.dice-container { display: flex; gap: 12px; margin: 10px 0; min-height: 70px; border: 1px solid #555; padding: 12px; border-radius: 6px; align-items: center; background: #111; flex-wrap: wrap; }
.die { width: 55px; height: 55px; background: #fff; color: #000; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 6px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); user-select: none; box-sizing: border-box; }
.dot { background: transparent; border-radius: 50%; width: 10px; height: 10px; justify-self: center; align-self: center; }
.dot.visible { background: #111; }
.combos-panel { background: #000; padding: 10px; margin: 10px 0; border: 1px solid #444; border-radius: 4px; color: #fff; }
.notification-banner { background: #331100; border: 1px solid #ff9900; color: #ffcc00; padding: 8px; border-radius: 4px; margin-bottom: 10px; font-size: 13px; text-align: center; display: none; }
@keyframes shake { 0% { transform: translate(1px, 1px) rotate(0deg); } 20% { transform: translate(-3px, 0px) rotate(1deg); } 40% { transform: translate(1px, -1px) rotate(1deg); } 60% { transform: translate(-3px, 1px) rotate(0deg); } 80% { transform: translate(-1px, -1px) rotate(1deg); } 100% { transform: translate(1px, -2px) rotate(-1deg); } }
.die.rolling { animation: shake 0.5s; }

/* ==========================================================================
FORMULAIRES DE CONNEXION ET D'AUTHENTIFICATION (/login.php)
========================================================================== */
.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: #121212; }
.login-container { width: 100%; max-width: 400px; padding: 20px; box-sizing: border-box; }
.form-box { background-color: #1e1e1e; padding: 30px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); border: 1px solid #2d2d2d; }
.form-box h2 { margin-top: 0; margin-bottom: 20px; text-align: center; color: #ffcc00; font-size: 24px; }
.form-box input[type="text"], .form-box input[type="password"] { width: 100%; padding: 12px 15px; margin-bottom: 15px; background-color: #2a2a2a; border: 1px solid #444; border-radius: 6px; color: #fff; font-size: 14px; box-sizing: border-box; transition: border-color 0.3s; }
.form-box input:focus { outline: none; border-color: #ffcc00; }
.form-box button[type="submit"] { width: 100%; padding: 12px; background-color: #ffcc00; border: none; border-radius: 6px; color: #121212; font-weight: bold; font-size: 16px; cursor: pointer; transition: background-color 0.3s; }
.form-box button[type="submit"]:hover { background-color: #e6b800; }
.error-message { background-color: rgba(255, 68, 68, 0.15); color: #ff6b6b; padding: 10px; border-radius: 6px; margin-bottom: 15px; font-size: 13px; text-align: center; border: 1px solid rgba(255, 68, 68, 0.3); }

/* ==========================================================================
RESPONSIVE DESIGN (Media Queries pour tablettes et mobiles)
========================================================================== */
@media (max-width: 900px) {
	body { height: auto; overflow: auto; }
	.container { flex-direction: column; height: auto; overflow: visible; }
	.sidebar { width: 100%; min-width: 100%; max-height: none; }
	.main-content { overflow: visible; }
}

/* Scrollbars personnalisées */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #121212; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }