:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg: #F3F4F6;
    --card: #FFFFFF;
    --text: #1F2937;
    --text-muted: #6B7280;
    --error: #EF4444;
    --success: #10B981;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background: var(--bg); color: var(--text); display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 1rem; }

.container { width: 100%; max-width: 400px; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
header h2 { font-size: 1.2rem; font-weight: 600; color: var(--primary); }
#langToggle { background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--text-muted); }

.card { background: var(--card); padding: 24px; border-radius: var(--radius); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); margin-bottom: 1rem; animation: fadeIn 0.3s ease; }

h3 { margin-bottom: 16px; font-size: 1.1rem; }

.input-group, form input, form select { width: 100%; margin-bottom: 12px; }
input, select { width: 100%; padding: 12px; border: 1px solid #D1D5DB; border-radius: 8px; font-size: 1rem; outline: none; transition: border 0.2s; }
input:focus, select:focus { border-color: var(--primary); }

.btn { width: 100%; padding: 12px; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.msg { margin-top: 12px; font-size: 0.9rem; text-align: center; }
.msg.error { color: var(--error); }
.msg.success { color: var(--success); }
.msg.warning { color: #F59E0B; }

/* Loader */
.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.spinner { width: 40px; height: 40px; border: 4px solid #E5E7EB; border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* Style spécifique pour le champ téléphone avec indicatif */
.phone-group {
    display: flex;
    gap: 8px; /* Espace entre le select et l'input */
}

.country-select {
    width: 50%; /* Prend 35% de la largeur */
    padding: 12px 8px; /* Un peu moins de padding latéral pour les petits écrans */
    background-color: #f9fafb;
    cursor: pointer;
}
