/* css/styles_Global.css */
:root {
--primary-color: #2c3e50;
--accent-color: #3498db;
--bg-color: #efebe9; /* Un peu plus chaud pour l'ambiance bâtiment */
--cancel-color: #95a5a6;
--validate-color: #27ae60;
--text-dark: #3e2723;
--radius: 25px; 
}

body, html { margin: 0; padding: 0; min-height: 100%; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-color); color: var(--text-dark); }

/* --- Layouts Utilitaires --- */
.flex-center-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; box-sizing: border-box; }
#footer-actions { position: fixed; bottom: 0; width: 100%; height: 80px; background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); display: flex; align-items: center; z-index: 100; }
.container-footer { display: flex; justify-content: space-between; align-items: center; width: 95%; margin: 0 auto; }

/* --- Composants de Formulaire --- */
.form-container-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; max-width: 450px; margin: 40px auto; }
.form-header { border-bottom: 2px solid #f1c40f; margin-bottom: 20px; padding-bottom: 10px; }
.form-header h1, .form-header h2 { margin: 0; color: var(--text-dark); font-size: 1.5rem; }
.form-header p { font-size: 0.85rem; color: #8d6e63; margin: 5px 0 0 0; }

.main-form .form-group { margin-bottom: 15px; display: flex; flex-direction: column; text-align: left; }
.main-form label { font-size: 0.8rem; font-weight: bold; margin-bottom: 6px; color: #5d4037; }
.main-form input, .main-form select { padding: 12px; border: 1px solid #d7ccc8; border-radius: 10px; font-size: 1rem; transition: border-color 0.3s; }
.main-form input:focus { border-color: var(--accent-color); outline: none; }

/* --- Boutons --- */
.btn-group-space { display: flex; justify-content: space-between; gap: 15px; margin-top: 25px; }
.btn { padding: 12px 25px; border: none; cursor: pointer; font-weight: bold; text-decoration: none; text-align: center; transition: all 0.3s; font-size: 0.9rem; display: inline-block; }

/* Variantes spécifiques */
.btn-validate { background: var(--validate-color); color: white; border-radius: var(--radius); }
.btn-validate:hover { background: #219150; transform: translateY(-2px); }

.btn-cancel { background: var(--cancel-color); color: white; border-radius: var(--radius); }
.btn-cancel:hover { background: #7f8c8d; }

/* Boutons Outlined (Contour) */
.btn-outline-round { background: transparent; color: var(--cancel-color); border: 2px solid var(--cancel-color); border-radius: var(--radius); }
.btn-outline-round:hover { background: var(--cancel-color); color: white; }

/* --- Grille de sélection d'emojis --- */
.emoji-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; padding: 10px; background: #f9f9f9; border-radius: 10px; border: 1px solid #d7ccc8; }
.emoji-option { font-size: 2.4rem !important; display: flex; justify-content: center; align-items: center; padding: 0; height: 50px; background: white; border: 2px solid transparent; border-radius: 8px; cursor: pointer; transition: transform 0.2s; overflow: hidden; }
.emoji-option:hover { background: #efebe9; transform: scale(1.1); }
.emoji-option.selected { border-color: var(--accent-color); background: #e3f2fd; box-shadow: 0 0 10px rgba(52, 152, 219, 0.2); }
.emoji-option input { display: none; }

/* --- Conteneur horizontal pour les positions --- */
.pos-selector { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pos-label { flex: 1; cursor: pointer; } 
.pos-btn { display: flex; justify-content: center; align-items: center; height: 50px; background: white; border: 2px solid #d7ccc8; border-radius: 8px; font-weight: bold; transition: all 0.3s ease; color: #5d4037; }
.pos-label:hover .pos-btn:not(.occupied) { background: rgba(139, 90, 43, 0.1); border-color: var(--accent-color); }
.pos-btn.selected { background: var(--accent-color) !important; color: white !important; border-color: var(--accent-color); }
.pos-btn.occupied { opacity: 0.3; background: #e0e0e0; border-style: dashed; cursor: not-allowed; color: #9e9e9e; }
.pos-label input[type="radio"] { display: none; }