@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  .btn {
    @apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl px-4 py-2.5 text-sm font-semibold transition focus:outline-none focus-visible:ring-2 focus-visible:ring-bleu-400 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50;
  }
  .btn-primary {
    @apply btn bg-bleu-600 text-white shadow-sm hover:bg-bleu-700;
  }
  .btn-secondary {
    @apply btn border border-line bg-white text-ink hover:bg-paper-dark;
  }
  .btn-danger {
    @apply btn bg-rouge-500 text-white hover:bg-rouge-600;
  }
  .btn-ghost {
    @apply btn text-ink-muted hover:bg-paper-dark hover:text-ink;
  }
  .btn-sm {
    @apply px-3 py-1.5 text-xs;
  }
  .card {
    @apply rounded-2xl border border-line bg-white shadow-card;
  }
  .input {
    @apply block w-full rounded-xl border border-line bg-white px-3.5 py-2.5 text-sm text-ink shadow-sm placeholder:text-ink-subtle focus:border-bleu-400 focus:outline-none focus:ring-2 focus:ring-bleu-100;
  }
  .label {
    @apply mb-1.5 block text-sm font-semibold text-ink;
  }
  .hint {
    @apply mt-1 text-xs text-ink-subtle;
  }
  .badge {
    @apply inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-semibold;
  }
  .page-title {
    @apply font-display text-3xl font-extrabold tracking-tight text-ink sm:text-4xl;
  }
  .section-title {
    @apply font-display text-xl font-bold text-ink;
  }
  .table-head {
    @apply px-4 py-3 text-left text-xs font-semibold uppercase tracking-wide text-ink-subtle;
  }
  .table-cell {
    @apply px-4 py-3 text-sm text-ink;
  }
  .prose-legal h2 {
    @apply mb-3 mt-8 font-display text-xl font-bold text-ink;
  }
  .prose-legal h3 {
    @apply mb-2 mt-5 font-semibold text-ink;
  }
  .prose-legal p, .prose-legal li {
    @apply mb-3 leading-relaxed text-ink-muted;
  }
  .prose-legal ul {
    @apply mb-4 list-disc pl-6;
  }
  .prose-legal a {
    @apply font-medium text-bleu-600 underline hover:no-underline;
  }
}
