:root {
  --green: #1e5a47;
  --green-ink: #174a3a;
  --cream: #fbf6ee;
  --card: #ffffff;
  --line: #e8e0d3;
  --ink: #1f2a26;
  --muted: #6b746f;
  --mint: #ddefe8;
  --rose: #f6dad3;
  --red: #a3321f;
  --radius: 16px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--cream); color: var(--ink); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.splash {
  position: fixed; inset: 0; background: var(--green); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.splash h1 { font-size: 30px; margin: 0 0 12px; letter-spacing: .2px; }
.splash .tagline { margin: 0 0 28px; opacity: .92; }
.splash .meta { font-size: 13px; opacity: .8; line-height: 1.6; margin: 0; }

.chat { display: flex; flex-direction: column; height: 100dvh; max-width: 560px; margin: 0 auto; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--cream); }
.brand { font-weight: 700; color: var(--green); }
.actions { display: flex; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--mint); color: var(--green-ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.chip.exit { background: #fff; width: 34px; padding: 6px 0; }

.log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: var(--radius); line-height: 1.45; white-space: pre-wrap; font-size: 15px; }
.msg.bot { background: var(--card); border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--green); color: #fff; align-self: flex-end; }

.options { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.options button { border: 1.5px solid var(--green); color: var(--green); background: #fff; border-radius: 12px; padding: 9px 14px; font-weight: 600; font-size: 14px; }
.options button:active { background: var(--green); color: #fff; }
.options.lang button { min-width: 92px; }
.options.lang button:first-child { background: var(--green); color: #fff; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.grid button { text-align: left; min-height: 92px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; display: flex; align-items: flex-start; }
.grid button[data-id="menu:sante"] { background: var(--mint); }
.grid button[data-id="menu:securite"] { background: var(--rose); color: var(--red); border-color: #e9b6a9; }
.grid button[data-id="alert"] { grid-column: 1 / -1; min-height: 56px; background: var(--red); color: #fff; justify-content: center; align-items: center; }

.card { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.place { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.place .kind { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: .6px; text-transform: uppercase; }
.place .name { font-weight: 700; margin: 4px 0; }
.place .hours { font-size: 13px; color: var(--muted); }
.place a { display: block; margin-top: 10px; text-align: center; background: var(--green); color: #fff; text-decoration: none; border-radius: 12px; padding: 11px; font-weight: 600; }
.alert-btn { width: 100%; background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; padding: 14px !important; font-size: 16px !important; }

.composer { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); }
.composer input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; font-size: 16px; background: #fff; }
.mic, .send { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; }
.mic { background: var(--red); color: #fff; }
.mic.listening { box-shadow: 0 0 0 8px rgba(163, 50, 31, .2); }
.send { background: var(--green); color: #fff; font-size: 18px; }

.neutral { max-width: 560px; margin: 0 auto; padding: 24px 16px; font-family: Georgia, serif; }
.neutral h1 { color: #8a5a2b; }
.neutral article { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 16px; border: 1px solid var(--line); }
