/* --- assets/css/style.css --- */

:root {
  /* Palette de couleurs principales */
  --color-fond: #f8fafc;
  --color-texte: #1e293b;
  --color-primaire: #0ea5e9; /* Bleu dynamique */
  --color-succes: #10b981;   /* Vert émeraude */
  
  /* Alertes et erreurs (Strictement sans rouge) */
  --color-erreur: #f59e0b;   /* Orange / Ambre */
  --color-erreur-fond: #fef3c7;
  
  /* Rangs d'évolution (Gamification) */
  --color-debutant: #94a3b8;
  --color-apprenti: #3b82f6;
  --color-confirme: #eab308;
  
  /* Design système */
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-fond);
  color: var(--color-texte);
  line-height: 1.6;
  padding: 20px;
}

/* Conteneur principal pour centrer le contenu (façon application mobile) */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Boutons globaux */
button {
  width: 100%;
  padding: 12px;
  background-color: var(--color-primaire);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.9;
}

/* Formulaires */
input, select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
}

/* Messages d'alerte */
.alerte-erreur {
  background-color: var(--color-erreur-fond);
  color: var(--color-erreur);
  padding: 10px;
  border-left: 4px solid var(--color-erreur);
  border-radius: 4px;
  font-weight: bold;
  margin-top: 10px;
}