/**
 * Constantes métier partagées entre l'API et le SPA.
 * Une seule source de vérité — pas de duplication.
 */

/** 1 rubis = 10 minutes libérées (cf. CLAUDE.md, glossaire) */
export const MINUTES_PER_RUBIS = 10;

/** Statuts possibles d'une facture (cf. architecture.md §5) */
export const INVOICE_STATUSES = [
  "pending",
  "awaiting_user_confirmation",
  "in_relance",
  "paid",
  "litigation",
  "cancelled",
] as const;

/** Tonalité d'un email de relance — du plus doux au plus ferme. */
export const RELANCE_TONES = ["amical", "courtois", "ferme", "mise_en_demeure"] as const;

/** Plans pré-fournis par défaut (cf. produit.md) */
export const DEFAULT_PLAN_SLUGS = [
  "standard-30j",
  "rapide-15j",
  "patient-60j",
  "ferme-7j",
] as const;

/** Volumes mensuels de facturation pour l'onboarding (chips) */
export const MONTHLY_VOLUME_BUCKETS = [
  "moins-10",
  "10-50",
  "50-100",
  "100-200",
  "plus-200",
] as const;

/** Formats de fichier acceptés à l'import */
export const ACCEPTED_INVOICE_MIME_TYPES = [
  "application/pdf",
  "image/png",
  "image/jpeg",
] as const;

export const MAX_INVOICE_FILE_SIZE_BYTES = 10 * 1024 * 1024; // 10 Mo
