/* --- Variables globales & Couleurs --- */
:root {
  --primary: #0284c7;       /* Bleu professionnel et rassurant */
  --primary-hover: #0369a1;
  --bg-color: #f8fafc;      /* Fond très légèrement gris/clair reposant */
  --card-bg: #ffffff;       /* Fond des blocs */
  --text-main: #1e293b;     /* Texte principal bien foncé pour la lisibilité */
  --text-muted: #64748b;    /* Texte secondaire */
  --border-color: #cbd5e1;  /* Bordures nettes */
  --success: #16a34a;
  --radius: 6px;            /* Coins légèrement arrondis mais structurés */
}

/* --- Reset & Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.4;
  padding: 8px;
}

/* --- En-tête (Header) --- */
header {
  background-color: var(--card-bg);
  border-bottom: 2px solid var(--border-color);
  padding: 8px 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius);
}

h1, h2, h3 {
  color: var(--text-main);
  font-weight: 600;
}

h1 { font-size: 1.25rem; }
h2 { font-size: 1.1rem; }

/* --- Conteneurs / Cartes compactes --- */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* --- Boutons clairs et lisibles --- */
button, .btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-block;
  text-align: center;
}

button:hover, .btn:hover {
  background-color: var(--primary-hover);
}

/* --- Formulaires compacts --- */
input, select, textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 4px;
  margin-bottom: 8px;
  background-color: #fff;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* --- Utilitaires --- */
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.d-flex { display: flex; gap: 8px; align-items: center; }
.justify-between { justify-content: space-between; }

/* --- Barre de Navigation épurée et douce --- */
.navbar {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-icon {
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-icon:hover, .nav-icon.active {
  color: var(--primary);
  background-color: #f0f9ff;
}

/* --- Page de Login --- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: var(--bg-color);
}

.login-container {
  width: 100%;
  max-width: 360px;
  padding: 12px;
}

/* --- Pied de page (Footer) --- */
.site-footer {
  position: fixed;
  bottom: 6px;
  right: 10px;
  text-align: right;
  z-index: 100;
  pointer-events: none;
}

.site-footer span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: rgba(248, 250, 252, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
}