body.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.app-main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 22px 20px 110px; }
.app-main section { padding: 0; display: flex; flex-direction: column; gap: 14px; }
.app-main .field { flex: 0 0 auto; }
.lien { font: inherit; font-size: 14px; background: none; border: none; color: var(--bronze); cursor: pointer; padding: 10px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); }
.tabbar button { flex: 1; font: inherit; font-size: 13px; font-weight: 500; min-height: 52px; background: none; border: none; color: #6B665E; cursor: pointer; }
.tabbar button.on { color: var(--ink); font-weight: 600; }
.carte { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.carte .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.carte .compteur { font-family: var(--wide); font-weight: 700; font-stretch: 115%; font-size: 26px; }
.cases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.case { aspect-ratio: 1; border-radius: 999px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.05; padding: 2px; border: 1.5px solid #D6D0C6; color: #6B665E; }
.case.done { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.case.prime { background: #F6E7D3; border: 1.5px dashed var(--bronze); color: #7A4A12; font-size: 10px; }
.msg { padding: 12px 14px; border-radius: 10px; background: #F6E7D3; color: #7A4A12; font-weight: 600; }
.qr { display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid #E6E2DA; }
.qr svg { width: 104px; height: 104px; background: #fff; }
.qr b { font-family: var(--wide); font-weight: 700; font-stretch: 115%; font-size: 18px; letter-spacing: 2px; }
.rdv { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.rdv .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #E3EEDF; color: #2F5A2A; white-space: nowrap; }
.badge.past { background: #ECEAE5; color: #4A4640; }
.badge.cancel { background: #EDE7E4; color: #6B3A2C; }
.next { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.next .eyebrow { color: var(--bronze-light); }
