/* EasyPlanning - styles complementaires a Tailwind */
/* Palette ViaSecu : #F58220 orange, #1DA9D9 cyan */

:root {
  --via-orange: #F58220;
  --via-orange-dark: #D86E13;
  --via-cyan: #1DA9D9;
  --via-cyan-dark: #1788AD;
  --alert-red: #DC2626;
  --alert-green: #16A34A;
}

html { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { background: #f8fafc; color: #1f2937; }

/* Boutons primaires (orange ViaSecu) */
.btn-primary {
  background: var(--via-orange);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  transition: background-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:hover { background: var(--via-orange-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--via-cyan);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  transition: background-color 0.15s;
}
.btn-secondary:hover { background: var(--via-cyan-dark); }

.btn-ghost {
  background: transparent;
  color: #4b5563;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
}
.btn-ghost:hover { background: #f3f4f6; }

/* Liens dans nav */
.nav-link {
  color: #4b5563;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  transition: all 0.15s;
}
.nav-link:hover { color: var(--via-cyan); background: #f1f5f9; }
.nav-link.active { color: var(--via-orange); background: #fff7ed; }

/* Inputs */
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--via-cyan);
  box-shadow: 0 0 0 3px rgba(29, 169, 217, 0.15);
}
.form-label { display: block; font-weight: 500; color: #374151; margin-bottom: 0.375rem; font-size: 0.9rem; }

/* Cartes */
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card-body { padding: 1.5rem; }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid #e5e7eb; font-weight: 600; }

/* Flash messages */
.flash { padding: 0.875rem 1.25rem; border-radius: 0.375rem; margin-bottom: 1rem; border-left: 4px solid; }
.flash-success { background: #f0fdf4; border-color: var(--alert-green); color: #14532d; }
.flash-error   { background: #fef2f2; border-color: var(--alert-red); color: #7f1d1d; }
.flash-info    { background: #eff6ff; border-color: var(--via-cyan); color: #1e3a8a; }
.flash-warning { background: #fffbeb; border-color: var(--via-orange); color: #78350f; }

/* Tableaux */
table.table-data { width: 100%; border-collapse: collapse; }
table.table-data th { text-align: left; padding: 0.75rem; background: #f9fafb; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: #6b7280; border-bottom: 1px solid #e5e7eb; }
table.table-data td { padding: 0.75rem; border-bottom: 1px solid #f3f4f6; }
table.table-data tr:hover td { background: #f9fafb; }

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Badges statut */
.badge { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.badge-active   { background: #dcfce7; color: #14532d; }
.badge-invite   { background: #fef3c7; color: #78350f; }
.badge-inactive { background: #fee2e2; color: #7f1d1d; }
.badge-admin    { background: #fed7aa; color: #7c2d12; }
.badge-super    { background: #fce7f3; color: #831843; border: 1px solid #f9a8d4; }
.badge-employe  { background: #d1fae5; color: #065f46; }
.badge-chef     { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
