/* Grammaire visuelle commune (maquettes "Assistant patient" et "Espace
   praticien") : blanc dominant, teal et menthe en touches, jaune pour le 15,
   crème pour la transmission, aucune carte, sections séparées par l'air et
   des filets d'un pixel. */
:root {
  --teal: #0D4C5D;
  --mint: #4FCFA3;
  --mint-ink: #12996F;
  --yellow: #F9F9A0;
  --sky: #A9E9FC;
  --cream: #F8E8D1;
  --cream-ink: #6B5B3C;
  --ink: #0F2E36;
  --muted: #5E7379;
  --placeholder: #9AA8AC;
  --white: #FFFFFF;
  --neutral: #F2F4F4;
  --hairline: #E6EAEA;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

/* ---------- marque ---------- */
.mark { display: flex; align-items: center; gap: 9px; }
.heart { width: 22px; height: 22px; flex: 0 0 auto; }
.brandname { font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: var(--teal); }

/* ---------- formes décoratives ---------- */
.sh { position: absolute; z-index: 0; pointer-events: none; }
.sh-circle { border-radius: 50%; }
.sh-quarter-tr { border-radius: 0 0 0 100%; }

/* ---------- typographie ---------- */
.display { font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em;
           color: var(--teal); margin: 18px 0 0; text-wrap: balance; }
.display em { font-style: normal; color: var(--mint); }
.para { font-size: 15.5px; line-height: 1.62; color: var(--muted); margin: 14px 0 0; }
.para strong { color: var(--ink); font-weight: 600; }
.step { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
        color: var(--muted); margin: 14px 0 0; }
.tel { color: var(--teal); font-weight: 600; white-space: nowrap; }

/* ---------- boutons ---------- */
.cta { display: block; width: 100%; margin-top: 26px; padding: 17px 22px; background: var(--teal);
       color: var(--white); border: 0; border-radius: 999px; font-size: 15.5px; font-weight: 700;
       letter-spacing: -.01em; cursor: pointer; text-align: center; }
.cta:disabled { opacity: .35; cursor: default; }
.cta.ghost { background: var(--white); color: var(--teal); border: 1.5px solid var(--hairline); }
.cta:focus-visible, .circle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.quiet { display: inline-block; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--teal);
         background: none; border: 0; padding: 0 0 1px; border-bottom: 2px solid var(--mint); cursor: pointer; }
.linkline { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted); background: none;
            border: 0; padding: 0; border-bottom: 1.5px solid var(--hairline); cursor: pointer; }
.chip { border: 1.5px solid var(--hairline); background: var(--white); color: var(--ink); border-radius: 999px;
        padding: 10px 15px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip.on { background: var(--teal); border-color: var(--teal); color: var(--white); }
.chip:focus-visible, .pickrow:focus-visible, .rrow:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

/* ---------- 15 ---------- */
.pill { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700;
        padding: 1px 9px; border-radius: 999px; }
.ligne15 { flex: 0 0 auto; padding: 14px 24px calc(16px + env(safe-area-inset-bottom, 0px));
           background: var(--white); border-top: 1px solid var(--hairline); font-size: 14.5px;
           line-height: 1.4; color: var(--ink); }

/* ---------- panneau de test (phase de dev) ---------- */
.devbox { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--neutral);
          font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px;
          line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.devbox .devlab { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10.5px;
                  font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--teal);
                  margin-bottom: 4px; }
.devbox b { color: var(--ink); font-weight: 700; }
.devbox .warn { color: #8A5A00; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600;
          color: var(--muted); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--hairline);
                position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px;
                       border-radius: 50%; background: var(--white); transition: transform .15s; }
.switch input:checked { background: var(--teal); }
.switch input:checked::after { transform: translateX(14px); }
.switch input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.no-test .devbox, .no-test .devonly { display: none !important; }
.not-admin [data-admin-only] { display: none !important; }
