/* Ensure Lucide icons are properly styled */
/* .lucide-icon {
  width: 1.25rem;
  height: 1.25rem;
}  */

html {
  scroll-behavior: smooth;
}

/* Hide scrollbar completely but allow scrolling */
.scrollbar-hidden::-webkit-scrollbar {
  display: none;
  /* Hides scrollbar in Webkit-based browsers */
}

.scrollbar-hidden {
  -ms-overflow-style: none;
  /* Hides scrollbar in IE */
  scrollbar-width: none;
  /* Hides scrollbar in Firefox */
}

/* Custom scrollbar styling */

.scrollbar-custom {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.6) transparent;
  /* gray-400 semi-transparent */
}

/* Webkit (Chrome, Edge, Safari) */
.scrollbar-custom::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  /* ✅ aussi pour le scroll horizontal */
}

.scrollbar-custom::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.5);
  /* gray-400 */
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
  /* ✅ crée un joli padding autour du pouce */
  transition: background-color 0.2s ease;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
  background-color: rgba(107, 114, 128, 0.7);
  /* gray-500 au survol */
}

.scrollbar-custom::-webkit-scrollbar-button {
  display: none;
}

/* ============================================
   Composants réutilisables (CSS pur + nesting)
   ============================================ */

/* --- Zone de texte (commentaires, contexte global) --- */
.textarea-field {
  width: 100%;
  background-color: #fff;
  border: 1px solid #d1d5db;
  /* gray-300 */
  border-radius: 0.5rem;
  /* rounded-lg */
  box-sizing: border-box;
  padding: 0.75rem;
  /* p-3 */
  font-size: 0.875rem;
  /* text-sm */
  resize: vertical;
  /* resize-y */
  transition: all 0.15s ease;

  &:focus {
    outline: none;
    border-color: #6366f1;
    /* indigo-500 */
    box-shadow: 0 0 0 2px #c7d2fe;
    /* ring-2 ring-indigo-200 */
  }
}

/* --- Panneau blanc (score, maturité, etc.) --- */
.panel-card {
  background-color: #fff;
  border: 1px solid #d1d5db;
  /* gray-300 */
  border-radius: 0.5rem;
  /* rounded-lg */
  padding: 1rem;
  /* p-4 */
}

/* --- Bouton de choix d'assertion --- */

.choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;                      /* w-8 */
  height: 2rem;                     /* h-8 */
  border: none;
  cursor: pointer;
  /* ❌ On RETIRE background-color: #fff  → laissé à Tailwind (bg-white dans le JS) */

  &:disabled {
    cursor: not-allowed;
    /* ❌ On RETIRE aussi bg/color du disabled → laissés à Tailwind */
  }
}


/* --- Badge de métadonnée (niveau, poids) --- */
.meta-badge {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  /* text-xs */
  color: #9ca3af;
  /* gray-400 */
  background-color: #fff;
  border: 1px solid #d1d5db;
  /* gray-300 */
  border-radius: 0.125rem;
  /* rounded-sm */
  padding: 0.25rem;
  /* p-1 */
}