/* =========================================================
   BASE — variables de charte, reset, fond de page, scrollbar
   Rives de Moselle — charte graphique
   ========================================================= */

/* ---------------------------------------------------------
   0. VARIABLES DE COULEUR
   Toutes les couleurs de la charte graphique, centralisées ici.
   Les autres fichiers CSS les réutilisent via var(--nom) plutôt
   que de réécrire les codes couleur en dur — un seul endroit à
   changer si la charte évolue.
   Les variantes "-rgb" (triplet R, G, B sans parenthèses) servent
   à construire des couleurs semi-transparentes : rgba(var(--bleu-fonce-rgb), .5)
   --------------------------------------------------------- */
:root {
  --bleu-fonce: #006eb7;
  --bleu-fonce-rgb: 0, 110, 183;
  --bleu-clair: #27aae1;
  --bleu-clair-rgb: 39, 170, 225;
  --vert: #95c93d;
  --vert-rgb: 149, 201, 61;
  --vert-texte: #5f8d11;
  --orange: #faa41a;
  --turquoise: #00b7d1;
  --mauve: #aa5da5;
  --jaune: #ffcb05;
  --noir: #3a393a;

  /* Rouge : actions destructives (supprimer, retirer, déconnexion) */
  --rouge: #b91c1c;
  --rouge-fond: #fee2e2;
  --rouge-fond-hover: #fecaca;
}


/* ---------------------------------------------------------
   1. RESET / BASE
   Réglages globaux appliqués à toute la page.
   --------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main {
  background-image: url("../img/fond-rdm.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100%;
}

body {
  background-color: #f7f8fc;
  font-family: 'Inter', sans-serif;
  color: var(--noir);
}

/* Empêche le scroll : le dashboard doit tenir dans la hauteur d'écran */
html,
body {
  height: 100%;
  overflow: hidden;
  overflow-x: hidden;
}




.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #f7f8fc;
}



/* ---------------------------------------------------------
   3. SCROLLBAR PERSONNALISÉE
   (pour les zones qui scrollent quand même, ex. listes longues plus tard)
   Le bleu du survol est légèrement différent de --bleu-clair (choix
   visuel d'origine, pas une variable de charte) — laissé en dur.
   --------------------------------------------------------- */
::-webkit-scrollbar {
  width: 15px;
  height: 2px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #f2f5f8;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2778ea;
}


/* ---------------------------------------------------------
   10. UTILITAIRES TEXTE
   Tronque un texte sur N lignes avec "..." (ex: sous-titre de commission
   trop long qui ne doit pas casser la mise en page).
   --------------------------------------------------------- */
.clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}