/* =====================================================================
   KÛNGO — styles de l'appli (mobile d'abord)
   ===================================================================== */
:root {
  --night: #1B1033; --night2: #2E2150; --night3: #4A3D6B;
  --cream: #F5EFE6; --paper: #FFFFFF; --sand: #EDE5D6; --line: #E4DCCD; --line2: #CFC6B5;
  --ink: #1B1033; --muted: #5F5675; --soft: #CFC6E0;
  --coral: #FF6B4A; --gold: #FFC145; --teal: #3FC1B0; --lilac: #C9B8F0; --mint: #A7E3DB;
  --pro: #0E3B36; --pro2: #134A44; --pro-soft: #A9D6CF;
  --good: #0E5A52; --good-bg: #DDF3EF; --warn-bg: #FFF1CC; --bad: #A3361E; --bad-bg: #FBE0D8;
  --radius: 18px; --radius-s: 12px;
  --display: 'Syne', 'Trebuchet MS', sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --tabbar-h: 68px;
  color-scheme: only light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 15px/1.5 var(--body); }
img, video { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--night3); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
code { background: var(--sand); padding: 1px 6px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- utilitaires ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.bold { font-weight: 800; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.ic { flex-shrink: 0; }
.fill-gold path { fill: var(--gold); stroke: var(--gold); }
.nowrap { white-space: nowrap; }
.flip { transform: scaleX(-1); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font-weight: 800; font-size: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: rgba(27, 16, 51, .06); color: var(--ink); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn.primary:hover { background: #ff835f; }
.btn.dark { background: var(--night); border-color: var(--night); color: var(--cream); }
.btn.dark:hover { background: var(--night2); color: var(--cream); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.ghost { border-color: var(--line2); background: var(--paper); font-weight: 700; }
.btn.light { border-color: var(--cream); color: var(--cream); }
.btn.danger { border-color: var(--bad); color: var(--bad); background: var(--paper); }
.btn.big { min-height: 54px; font-size: 16px; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"]::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.iconbtn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); text-decoration: none; flex-shrink: 0; }

/* ---------- formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea, .input {
  min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line2);
  background: var(--paper); font-size: 15px; font-weight: 600; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(255, 107, 74, .35); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--night); flex-shrink: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); padding: 0; margin-bottom: 8px; text-transform: uppercase; }
.choice2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; height: 100%; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--paper); }
.choice b { display: block; font-size: 15px; }
.choice small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 3px; }
.choice input:checked + span { border-color: var(--ink); background: #FFF8E6; }
.choice input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.form-error { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- puces / filtres ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--sand); color: var(--ink); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--night); color: var(--cream); }
.chip.white { background: var(--paper); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.badge.gold { background: var(--gold); color: var(--ink); }
.badge.grey { background: var(--sand); color: var(--ink); }
.badge.teal { background: var(--mint); color: var(--ink); }
.chip-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; background: var(--sand); }
.chip-status.warn { background: var(--warn-bg); }
.chip-status.good { background: var(--good-bg); color: var(--good); }
.chip-status.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- cartes ---------- */
.card { background: var(--paper); border-radius: var(--radius); padding: 14px; }
.card.dark { background: var(--night); color: var(--cream); }
.card.dark .muted { color: var(--soft); }
.card.pro { background: var(--pro); color: var(--cream); }
.card.outline { border: 2px solid var(--gold); }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { box-shadow: 0 0 0 2px var(--line2); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: #E9E2F7; font-size: 13px; line-height: 1.45; }
.notice.warn { background: var(--warn-bg); }
.notice.good { background: var(--good-bg); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.empty { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--muted); }
.empty b { color: var(--ink); font-family: var(--display); font-size: 17px; }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 48px 16px; color: var(--muted); font-weight: 700; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--coral); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.av { border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; color: var(--ink); object-fit: cover; flex-shrink: 0; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.bigicon { width: 84px; height: 84px; border-radius: 999px; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font: 800 24px/1.1 var(--display); margin-top: 4px; }
.stat span { font-size: 13px; font-weight: 700; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--paper); text-decoration: none; color: inherit; }
a.list-item:hover { box-shadow: 0 0 0 2px var(--line2); color: inherit; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.section-title a { font-size: 13px; font-weight: 700; }
.tabs { display: flex; background: var(--paper); border-radius: 14px; padding: 4px; gap: 4px; overflow-x: auto; }
.tabs button, .tabs a { flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: transparent; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; padding: 0 10px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.tabs [aria-selected="true"], .tabs .on { background: var(--night); color: var(--cream); }
.progress { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--coral); }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .04em; color: var(--muted); font-weight: 800; padding: 8px 6px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.table td { padding: 10px 6px; border-bottom: 1px solid #EFE8DB; vertical-align: middle; }
.cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--night); display: block; }

/* ---------- coque client ---------- */
.shell.client { min-height: 100vh; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--night); color: var(--cream); }
.brand { display: inline-flex; align-items: center; }
.topbtn { min-width: 44px; height: 44px; border-radius: 999px; background: var(--night2); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 13px; }
.topbtn:hover { color: var(--cream); background: var(--night3); }
.topbtn.pill { padding: 0 14px; }
.topbtn.light { background: var(--cream); color: var(--ink); }
#main { outline: none; }
.shell.client #main { max-width: 720px; margin: 0 auto; padding: 16px 16px 24px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; }
.tabbar .tabic { width: 52px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on .tabic { background: var(--gold); }
@media (min-width: 900px) {
  .tabbar { max-width: 720px; margin: 0 auto; border-radius: 22px 22px 0 0; border: 1px solid var(--line); }
}

/* ---------- coque partenaire / admin ---------- */
.shell.side { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sidebar { flex: 1 1 260px; max-width: 100%; background: var(--night); color: var(--cream); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.shell.pro .sidebar { background: var(--pro); }
.side-head { display: flex; flex-direction: column; gap: 8px; }
.side-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--soft); }
.shell.pro .side-label { color: var(--pro-soft); }
.side-me { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--night2); }
.shell.pro .side-me { background: var(--pro2); }
.side-me b { display: block; font-size: 14px; }
.side-me div > span { display: block; font-size: 12px; color: var(--soft); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { min-height: 44px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 14px; }
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--cream); }
.side-nav a.on { background: var(--gold); color: var(--ink); }
.side-main { flex: 999 1 560px; min-width: 0; padding: 24px; display: block; }
.side-main > * + * { margin-top: 18px; }
@media (max-width: 860px) {
  .sidebar { flex-basis: 100%; padding: 12px; gap: 10px; }
  .side-me { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .side-nav a { white-space: nowrap; background: rgba(255, 255, 255, .08); min-height: 40px; font-size: 13px; }
  .side-main { padding: 16px; }
}

/* ---------- coque connexion ---------- */
.shell.auth { min-height: 100vh; background: var(--night); display: flex; flex-direction: column; align-items: center; padding: 28px 16px; gap: 18px; }
.auth-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.auth-card { width: 100%; max-width: 460px; background: var(--cream); color: var(--ink); border-radius: 26px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 24px; }

/* ---------- fil d'actualité ---------- */
.post { background: var(--paper); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head b { font-size: 14px; }
.post-body { font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.post-media { border-radius: 16px; overflow: hidden; background: var(--night); }
.post-media img, .post-media video { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.post.national { border: 2px solid var(--gold); }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.emoji-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 9px; border-radius: 999px; border: 2px solid transparent; background: var(--cream); font-weight: 700; font-size: 12px; cursor: pointer; }
.emoji-btn span { font-size: 16px; line-height: 1; }
.emoji-btn[aria-pressed="true"] { background: #FFF4DA; border-color: var(--ink); }
.emoji-tray { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding: 8px; border-radius: 16px; background: var(--cream); }
.emoji-tray button { height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 22px; cursor: pointer; }
.emoji-tray button:hover { background: var(--paper); }
.comments { border-top: 1px solid #EFE8DB; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.comment { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { flex: 1; min-height: 42px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--cream); }

/* ---------- événements / billets ---------- */
.event-hero { background: var(--night); color: var(--cream); border-radius: 22px; padding: 16px; position: relative; overflow: hidden; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-decoration: none; }
.event-hero:hover { color: var(--cream); }
.event-hero .wave { position: absolute; right: -50px; top: -10px; opacity: .95; }
.event-hero > *:not(.wave) { position: relative; }
.event-hero .kicker { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--gold); }
.event-hero h2, .event-hero h1 { font-size: 24px; font-weight: 800; }
.event-hero.has-cover { background-size: cover; background-position: center; }
.event-hero.has-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 16, 51, .15), rgba(27, 16, 51, .9)); }
.date-tile { width: 64px; min-height: 68px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; background: var(--gold); }
.date-tile b { font: 800 22px/1 var(--display); }
.date-tile span { font-size: 11px; font-weight: 800; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--paper); font-size: 20px; font-weight: 700; cursor: pointer; }
.qty button.plus { background: var(--night); color: var(--cream); border-color: var(--night); }
.qty output { min-width: 22px; text-align: center; font-weight: 800; font-size: 16px; }
.sticky-bar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: var(--paper); border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 -2px 0 var(--line); }
.ticket { background: var(--cream); color: var(--ink); border-radius: 24px; overflow: hidden; }
.ticket-top { background: var(--gold); padding: 16px; }
.ticket-cut { border-top: 2px dashed var(--line2); margin: 0 16px; }
.qr { display: flex; justify-content: center; }
.qr svg { border-radius: 12px; }
.ticket-code { font-weight: 800; letter-spacing: .18em; text-align: center; font-size: 16px; }
.provider { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; }
.provider input { width: 22px; height: 22px; accent-color: var(--night); margin: 0; }
.provider:has(input:checked) { border-color: var(--ink); }
.provider .logo { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }

/* ---------- profils / services ---------- */
.profile-hero { background: var(--night); color: var(--cream); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.profile-hero .muted { color: var(--soft); }
.profile-hero .tag { background: var(--night2); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.premium-card { background: var(--night); color: var(--cream); border-radius: 20px; padding: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-width: 210px; }
.premium-card:hover { color: var(--cream); box-shadow: 0 0 0 3px var(--gold); }
.premium-card .muted { color: var(--soft); }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; padding: 8px 4px; border-radius: 16px; border: 2px solid transparent; background: var(--paper); font-size: 11px; font-weight: 700; text-align: center; line-height: 1.2; cursor: pointer; text-decoration: none; color: var(--ink); }
.cat[aria-pressed="true"], .cat.on { border-color: var(--ink); }
.cat .dot { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.video-grid video { width: 100%; aspect-ratio: 9 / 16; max-height: 300px; object-fit: cover; border-radius: 16px; background: var(--night); }

/* ---------- contrats / discussion ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps div { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 700; }
.steps i { height: 5px; border-radius: 999px; background: var(--line); }
.steps .done i { background: var(--night); }
.steps .ok i { background: var(--teal); }
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 85%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.bubble.me { align-self: flex-end; background: var(--night); color: var(--cream); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 4px; }
.bubble .who { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; opacity: .75; margin-bottom: 2px; }
.bubble .amount { font: 800 22px var(--display); }
.bubble.offer.them { border: 2px solid var(--gold); }
.bubble time { display: block; font-size: 11px; opacity: .65; margin-top: 3px; }
.amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.amount-grid button { min-height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--cream); font-weight: 800; font-size: 13px; cursor: pointer; }
.amount-grid button[aria-pressed="true"] { background: var(--night); color: var(--cream); border-color: var(--night); }
.contacts { background: var(--good); color: var(--cream); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.contacts .line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #0B4A43; font-weight: 700; flex-wrap: wrap; }
.contacts a { color: var(--cream); }
.star-input { display: flex; gap: 6px; }
.star-input button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--sand); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.star-input button[aria-pressed="true"] path { fill: var(--gold); stroke: #C98A00; }

/* ---------- messages éphémères ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 18px); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--night); color: var(--cream); padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: 0 6px 20px rgba(27, 16, 51, .25); transition: opacity .4s, transform .4s; }
.toast.good { background: var(--good); }
.toast.bad { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(8px); }
body.is-offline::before { content: 'Hors connexion : certaines actions sont indisponibles. Vos billets restent consultables.'; position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--gold); color: var(--ink); text-align: center; font-size: 12px; font-weight: 800; padding: 6px 12px; }

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