/* ============================================
   Scrollbar personnalisée — tout le site
   ============================================ */

/* Chrome, Edge, Safari (WebKit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

::-webkit-scrollbar-corner {
  background: #f1f1f1;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f1f1f1;
}

/* ============================================
   Variante plus fine, pour les zones internes
   (tableaux, modales) — ajoute la classe .thin-scrollbar
   ============================================ */

.thin-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border: none;
}

.thin-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.thin-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}