/* Charte Sourire d'Enfance pour les écrans staff et patient (spec 007). La TV a sa propre échelle (signage.html). */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;600;700;800&display=swap");

:root {
  --cream: #fff8dc;      /* fond du logo */
  --card: #ffffff;
  --navy: #26324f;       /* texte, et couleur réservée aux constantes */
  --muted: #6b7591;
  --line: #f1e7c2;       /* séparateurs décoratifs uniquement */
  --edge: #7f88a1;       /* contour d'un élément cliquable : ≥ 3 : 1 sur blanc et sur crème */
  /* Couleurs du logo, assombries pour porter du texte blanc ; même ordre que les médecins sur la TV. */
  --cyan: #1487b3; --magenta: #d81b7f; --green: #4f9a2a; --orange: #e3641a;
  --violet: #8a5ac4; --teal: #0d8a84; --blue: #3a56c4; --gold: #8a6a00;
  --ok: #3f7d22; --warn: #b45309; --danger: #c0262d;
  --display: "Fredoka", "Nunito", "Segoe UI", sans-serif;
  --body: "Nunito", "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(38, 50, 79, .07);
  --touch: 48px;         /* cible tactile minimale */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--navy); font: 500 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

.btn {
  font: 800 17px/1 var(--body); min-height: var(--touch); padding: 0 20px; border: 0; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--cyan); color: #fff; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .4; cursor: default; filter: none; }
.btn.call { background: var(--navy); }
.btn.ghost { background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 2px var(--edge); }
.btn.ghost:hover { filter: none; background: #f3f6fb; box-shadow: inset 0 0 0 2px var(--navy); }
.btn.danger { background: var(--danger); }

input, select, textarea {
  font: 600 17px/1.3 var(--body); color: var(--navy); min-height: var(--touch); padding: 10px 14px; width: 100%;
  border: 2px solid var(--edge); border-radius: 12px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); }
label { font: 700 15px/1.3 var(--body); color: var(--muted); }

.chip { font: 800 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.chip.vitals { background: var(--navy); color: #fff; }

.status { border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.status.ok { background: #eaf5e1; color: var(--ok); }
.status.warn { background: #fdf0dc; color: var(--warn); }
.status.error { background: #fbe6e6; color: var(--danger); }
.status.info { background: #e3f3fa; color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
