/* ============================================================
   EMSERGENCY SERVICES — Design System
   Palette chaleureuse, accessible, non-corporate.
   Signature : le "pulse de présence" — un anneau qui bat
   doucement autour de tout point de contact humain/IA,
   symbolisant "quelqu'un est là, en train d'écouter".
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Couleurs */
  --coral: #FF6B4A;
  --coral-dark: #E5501F;
  --amber: #FFB84C;
  --teal-deep: #1B4B43;
  --teal-soft: #3A7167;
  --plum: #7A5980;
  --cream: #FFF8F0;
  --cream-dim: #FBEFE2;
  --ink: #2B2320;
  --ink-soft: #5C5148;
  --white: #FFFFFF;
  --success: #3A8f6f;
  --danger: #E5501F;
  --warn: #FFB84C;

  /* Typographie */
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  /* Rayons & ombres — arrondis généreux = accessible, chaleureux */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 8px 24px rgba(43, 35, 32, 0.08);
  --shadow-lift: 0 14px 40px rgba(43, 35, 32, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--teal-deep);
  margin: 0 0 0.4em 0;
  line-height: 1.15;
}

a { color: var(--coral-dark); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover { box-shadow: var(--shadow-lift); background: var(--coral-dark); }
.btn-outline { background: transparent; color: var(--teal-deep); border: 2px solid var(--teal-deep); }
.btn-ghost { background: var(--cream-dim); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Cartes ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

/* ---------- Badges de statut ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
}
.badge-open { background: #FFE3D9; color: var(--coral-dark); }
.badge-pending { background: #FFF1D6; color: #B9790A; }
.badge-answered { background: #DDEFE8; color: var(--success); }
.badge-closed { background: #EDEAE5; color: var(--ink-soft); }
.badge-priority-high { background: #FFE3D9; color: var(--coral-dark); }
.badge-priority-urgent { background: var(--coral-dark); color: var(--white); }
.badge-priority-normal { background: #EAF1EF; color: var(--teal-soft); }
.badge-priority-low { background: #F1EDF2; color: var(--plum); }

/* ---------- Le "pulse de présence" — signature visuelle ---------- */
.pulse-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-ring 2s ease-out infinite;
}
.pulse-dot.away { background: var(--amber); }
.pulse-dot.away::after { background: var(--amber); }

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after { animation: none; }
}

/* ---------- Formulaires ---------- */
label { font-weight: 600; font-size: 0.9rem; color: var(--ink); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 2px solid #EDE4D8;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--coral);
}
.field { margin-bottom: 18px; }

/* ---------- Utilitaires ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.text-muted { color: var(--ink-soft); }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
