/* ==========================================================================
   Centre dentaire Nacre — appli patient (téléphone)
   S'appuie sur nacre.css. Plein écran sur téléphone, cadre de téléphone sur grand écran.
   ========================================================================== */

html, body { height: 100%; }
body.pa { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; overflow: clip; background: var(--pearl); }
.pa .demo-bar { flex: none; }

.stage { flex: 1 1 auto; min-height: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }

/* ---------- Le téléphone ------------------------------------------------------------- */
.app { position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: var(--pearl); overflow: hidden; overflow: clip; }
.sb { display: none; }
.pitch { display: none; }

@media (min-width: 640px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 430px) minmax(0, 1fr); align-items: center; padding: 22px 24px; background: radial-gradient(900px 520px at 50% 115%, rgba(143, 211, 193, .35), transparent 62%), radial-gradient(700px 420px at 12% -8%, rgba(224, 165, 58, .12), transparent 60%), var(--pearl); }
  .app { grid-column: 2; height: min(100%, 880px); border: 10px solid #0b1b20; border-radius: 54px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 0 0 5px rgba(255, 255, 255, .6), 0 50px 90px -40px rgba(12, 59, 68, .6), 0 22px 40px -24px rgba(15, 29, 36, .4); }
  .sb { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 30px 0 34px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; z-index: 6; }
  .sb__island { position: absolute; left: 50%; top: 9px; width: 104px; height: 29px; margin-left: -52px; border-radius: 999px; background: #0b1b20; }
  .sb__icons { display: flex; align-items: center; gap: 6px; }
  .sb__icons svg { height: 12px; width: auto; fill: currentColor; }
  .has-call .sb { color: #fff; }
}
@media (min-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr) 430px minmax(0, .6fr); gap: 56px; padding: 22px 48px; }
  .pitch { grid-column: 1; justify-self: end; display: flex; flex-direction: column; gap: 22px; max-width: 440px; }
}
.pitch__t { font-size: clamp(38px, 3.6vw, 56px); line-height: .95; }
.pitch__t em { display: block; font-style: normal; font-weight: 300; font-stretch: 100%; color: var(--lagoon); }
.pitch__pts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pitch__pts li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.pitch__pts .i { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--mint-soft); color: var(--lagoon); }
.pitch__pts b { display: block; color: var(--ink); font-size: 15px; }
.pitch__k { margin-bottom: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pitch__personas { display: flex; flex-wrap: wrap; gap: 6px; }
.pitch__personas button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 700; text-align: left; }
.pitch__personas button small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.pitch__personas button[aria-pressed="true"] { border-color: var(--lagoon); box-shadow: inset 0 0 0 1px var(--lagoon); }
.pitch__personas .av { width: 32px; height: 32px; font-size: 12px; border-radius: 50%; }
.pitch__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 700; }
.pitch__links a { color: var(--lagoon); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.pitch__links a:hover { text-decoration: underline; }

/* Intégré dans une autre page (?embed) : seulement l'appli */
.is-embed .stage { display: flex; padding: 0; background: var(--pearl); }
.is-embed .pitch, .is-embed .sb { display: none; }
.is-embed .app { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }

/* ---------- En-tête ------------------------------------------------------------------- */
.ah { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 18px 8px; }
.is-embed .ah, .stage .app .sb + .ah { padding-top: 8px; }
.ah__brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.ah__brand svg { width: 32px; height: 32px; }
.ah__brand span { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 23px; line-height: 1; letter-spacing: -.04em; }
.ah__brand small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 9.5px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ah__me { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ah__me span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.ah__me .av { width: 36px; height: 36px; border-radius: 50%; font-size: 13px; }

/* ---------- Écran ---------------------------------------------------------------------- */
.screen { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen:focus { outline: none; }
.view { display: grid; gap: 14px; padding: 6px 16px 24px; }
.view > * { min-width: 0; }
.h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.h h2 { font-size: 30px; }
.h small { font-size: 12.5px; color: var(--ink-3); }
.sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 8px 2px -4px; }
.pcard { padding: 16px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.muted { color: var(--ink-3); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--sand); font-size: 13px; color: var(--ink-2); }
.note .i { width: 18px; height: 18px; color: var(--lagoon); margin-top: 1px; }
.note--warn { background: var(--amber-soft); color: var(--amber-ink); }
.note--warn .i { color: var(--amber-ink); }
.note--ok { background: var(--ok-soft); color: #1f6b50; }
.note--ok .i { color: var(--ok); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 30px 20px; text-align: center; color: var(--ink-2); font-size: 14.5px; }
.empty .i { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--mint-soft); color: var(--lagoon); }
.empty b { font-size: 17px; color: var(--ink); }

/* ---------- Ticket ----------------------------------------------------------------------- */
.tkt { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 16px 20px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); text-align: center; overflow: hidden; }
.tkt__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tkt__ring { position: relative; width: min(78vw, 290px); max-width: 100%; margin: 6px 0 4px; }
.tkt__ring .rings__c { border-width: 2px; }
.tkt__ring .rings__c:nth-child(4) { background: var(--nacre); border: 0; box-shadow: var(--shadow-lg), inset 0 0 0 1px #fff; }
.tkt__ring .rings__c.is-on:not(:nth-child(4)) { border-color: var(--lagoon); }
.tkt__core { position: relative; z-index: 1; display: grid; justify-items: center; }
.tkt__core small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tkt__num { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 112px; line-height: .8; letter-spacing: -.025em; color: var(--lagoon-d); }
.tkt__pos { font-family: var(--display); font-weight: 750; font-stretch: 82%; font-size: 26px; letter-spacing: -.02em; line-height: 1.05; }
.tkt__eta { font-size: 15px; font-weight: 700; color: var(--lagoon); }
.tkt__bar { position: relative; width: 100%; height: 6px; margin-top: 12px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.tkt__bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--lagoon)); transition: width .9s var(--ease); }
.tkt.is-bump .tkt__num { animation: bump .7s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }

.where { display: grid; gap: 8px; }
.where__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.where__opts button { display: grid; justify-items: center; gap: 4px; min-height: 64px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.where__opts button[aria-pressed="true"] { border-color: var(--lagoon); background: #eef8f5; color: var(--lagoon-d); box-shadow: inset 0 0 0 1px var(--lagoon); }

.chairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.chairs div { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--pearl); box-shadow: inset 0 0 0 1px var(--line); }
.chairs b { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 30px; line-height: 1; color: var(--lagoon-d); }
.chairs small { font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.chairs .is-new { animation: chairflash 2s var(--ease); }
@keyframes chairflash { 0%, 30% { box-shadow: inset 0 0 0 2px var(--coral); background: var(--coral-soft); } }
.queue-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.queue-line span { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 10px; background: var(--pearl); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.queue-line span.is-me { background: var(--lagoon); color: #fff; box-shadow: none; }
.queue-line span.is-off { opacity: .5; text-decoration: line-through; }
.demo-hint { text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-3); }

.state { display: grid; justify-items: center; gap: 8px; padding: 26px 18px; border-radius: 26px; text-align: center; }
.state--chair { background: var(--nacre-dark); color: #fff; }
.state--chair .state__big { color: var(--mint); }
.state--done { background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.state__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.state .state__big { font-family: var(--display); font-weight: 800; font-stretch: 76%; font-size: 54px; line-height: .9; letter-spacing: -.035em; }
.state p { font-size: 14.5px; opacity: .85; }
.form { display: grid; gap: 10px; }

/* ---------- « C'est à vous » : plein écran corail ---------------------------------------------- */
.call { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 60px 22px calc(28px + env(safe-area-inset-bottom)); background: radial-gradient(120% 80% at 50% 30%, #ef6e62, var(--coral) 55%, #c63f35); color: #fff; text-align: center; overflow: hidden; animation: call-in .55s var(--ease); }
@keyframes call-in { from { opacity: 0; transform: scale(1.04); } }
.call__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.call__rings i { position: absolute; width: 240px; height: 240px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); animation: callring 2.4s ease-out infinite; }
.call__rings i:nth-child(2) { animation-delay: .8s; }
.call__rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes callring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.call__in { position: relative; display: grid; justify-items: center; gap: 8px; width: 100%; }
.call__k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.call__t { font-size: clamp(58px, 17vw, 76px); font-weight: 800; font-stretch: 75%; line-height: .86; letter-spacing: -.045em; }
.call__chair { margin-top: 8px; padding: 10px 22px; border-radius: 999px; background: #fff; color: var(--coral-d); font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.call__who { font-size: 16px; font-weight: 600; opacity: .92; }
.call__msg { max-width: 30ch; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .16); font-size: 14.5px; font-weight: 600; }
.call__btns { display: grid; gap: 10px; width: 100%; margin-top: 22px; }
.call__btns .btn { width: 100%; border: 0; }
.call__route { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.call__here { background: #fff; color: var(--coral-d); }

/* ---------- Rendez-vous ----------------------------------------------------------------------- */
.remind { position: relative; display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--nacre); box-shadow: var(--shadow), inset 0 0 0 1px rgba(15, 110, 122, .22); overflow: hidden; }
.remind__k { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lagoon); }
.remind__k .i { width: 16px; height: 16px; }
.remind__when { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 40px; line-height: .92; letter-spacing: -.035em; }
.remind__who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.remind__who b { display: block; color: var(--ink); }
.remind__btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.remind.is-ok { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--ok); }
.appt { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.appt__d { display: grid; justify-items: center; padding: 6px 0; border-radius: 12px; background: var(--mint-soft); color: var(--lagoon-d); }
.appt__d small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.appt__d b { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 24px; line-height: 1; }
.appt__t b { display: block; font-size: 14.5px; }
.appt__t small { font-size: 12.5px; color: var(--ink-3); }

/* Sélecteur de créneaux (feuille) */
.pick-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.pick-days::-webkit-scrollbar { display: none; }
.pick-days button { flex: none; display: grid; justify-items: center; width: 62px; min-height: 64px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.pick-days button small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.pick-days button b { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 22px; line-height: 1.05; }
.pick-days button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick-days button[aria-pressed="true"] small { color: var(--mint); }
.pick-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pick-slots button { height: 44px; border: 1px solid rgba(15, 110, 122, .35); border-radius: 11px; background: var(--paper); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--lagoon-d); }
.pick-slots button:disabled { border-color: transparent; background: repeating-linear-gradient(135deg, #ebe5db 0 4px, #f4f0e9 4px 8px); color: #aaa49a; text-decoration: line-through; }
.pick-slots button[aria-pressed="true"] { background: var(--lagoon); color: #fff; border-color: var(--lagoon); }
.pick-none { grid-column: 1 / -1; padding: 14px; border-radius: 12px; background: var(--sand); font-size: 13.5px; text-align: center; }

/* ---------- Plan de traitement ---------------------------------------------------------------- */
.plan-head { display: grid; gap: 10px; padding: 18px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.plan-head__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.plan-head h2 { font-size: 26px; }
.plan-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.plan-total b { font-family: var(--display); font-weight: 800; font-stretch: 76%; font-size: 52px; line-height: .9; letter-spacing: -.04em; color: var(--lagoon-d); white-space: nowrap; }
.plan-total small { font-size: 13.5px; color: var(--ink-2); }
.plan-arch { padding: 6px 10px 2px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.plan-arch .arch { max-width: 250px; margin: 0 auto; }
.plan-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 4px 0 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.plan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lines { display: grid; margin: 0; padding: 4px 16px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); list-style: none; }
.lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lines li:last-child { border-bottom: 0; }
.lines li .num { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.lines li b { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.tranches { display: grid; gap: 0; margin: 0; padding: 4px 16px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); list-style: none; }
.tranches li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 13px 0; }
.tranches li + li { border-top: 1px dashed var(--line); }
.tranches i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mint-soft); color: var(--lagoon-d); font: 700 12px var(--mono); font-style: normal; }
.tranches li.is-paid i { background: var(--ok); color: #fff; }
.tranches span b { display: block; font-size: 14.5px; }
.tranches span small { font-size: 12.5px; color: var(--ink-3); }
.tranches .amt { text-align: right; font-family: var(--mono); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.tranches .amt small { display: block; font-family: var(--text); font-size: 11.5px; font-weight: 700; color: var(--ok); }
.free-line { display: flex; flex-wrap: wrap; gap: 6px; }
.accept { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px -24px; padding: 12px 16px calc(14px); background: linear-gradient(180deg, rgba(247, 245, 242, 0), var(--pearl) 30%); }
.accept .btn { width: 100%; }
.stamp { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--ok-soft); color: #1f6b50; font-weight: 700; font-size: 14.5px; }
.stamp .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--ok); color: #fff; }
.stamp small { display: block; font-weight: 600; opacity: .8; font-size: 12.5px; }
.stamp.is-new { animation: stampin .8s var(--ease); }
@keyframes stampin { 0% { transform: scale(1.12) rotate(-2deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- Paiements ------------------------------------------------------------------------ */
.due { display: grid; gap: 8px; padding: 20px 18px; border-radius: 24px; background: var(--nacre-dark); color: #fff; }
.due__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.due .due__v { font-family: var(--display); font-weight: 800; font-stretch: 76%; font-size: 52px; line-height: .9; letter-spacing: -.04em; white-space: nowrap; }
.due__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.due__bar i { display: block; height: 100%; border-radius: inherit; background: var(--mint); transition: width .9s var(--ease); }
.due p { font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.next-pay { display: grid; gap: 12px; }
.next-pay__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.next-pay__row b { font-family: var(--mono); font-size: 16px; white-space: nowrap; }
.receipts { display: grid; margin: 0; padding: 4px 16px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); list-style: none; }
.receipts li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.receipts li:last-child { border-bottom: 0; }
.receipts .i { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.receipts b { display: block; font-size: 14px; }
.receipts small { font-size: 12px; color: var(--ink-3); }
.receipts .amt { font-family: var(--mono); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.modes { display: grid; gap: 8px; }
.modes button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; min-height: 60px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: left; }
.modes button .i { width: 22px; height: 22px; color: var(--lagoon); }
.modes button b { display: block; font-size: 14.5px; }
.modes button small { font-size: 12.5px; color: var(--ink-3); }
.modes button[aria-pressed="true"] { border-color: var(--lagoon); box-shadow: inset 0 0 0 1px var(--lagoon); background: #f1faf7; }

/* ---------- Barre d'onglets --------------------------------------------------------------------- */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 254, 251, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.is-embed .tabbar, .app .sb ~ .tabbar { padding-bottom: 10px; }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 54px; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--lagoon); }
.tabbar a[aria-current="page"] .tabbar__ico { background: var(--mint-soft); }
.tabbar__ico { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background-color .25s; }
.tabbar .badge { position: absolute; top: -3px; right: 6px; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--paper); }

/* ---------- Notifications « push » en haut de l'appli ---------------------------------------------- */
.pushes { position: absolute; left: 10px; right: 10px; top: calc(8px + env(safe-area-inset-top)); z-index: 40; display: grid; gap: 8px; pointer-events: none; }
.app .sb ~ .pushes { top: 50px; }
.push { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 20px; background: rgba(255, 254, 251, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 40px -18px rgba(12, 59, 68, .55), inset 0 0 0 1px var(--line); pointer-events: auto; animation: push-in .55s var(--ease); }
.push svg.logo { width: 34px; height: 34px; }
.push b { display: block; font-size: 13.5px; }
.push small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.push .mono { font-size: 9.5px; color: var(--ink-3); }
.push .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.push.is-out { opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .3s; }
@keyframes push-in { from { opacity: 0; transform: translateY(-16px) scale(.98); } }

/* ---------- Feuille du bas ------------------------------------------------------------------------- */
.sheet { position: absolute; inset: 0; z-index: 50; visibility: hidden; overflow: hidden; transition: visibility 0s .4s; }
.sheet.is-open { visibility: visible; transition: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(15, 29, 36, .4); opacity: 0; transition: opacity .3s; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--pearl); transform: translateY(100%); transition: transform .45s var(--ease); }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__panel:focus { outline: none; }
.sheet__grip { align-self: center; width: 40px; height: 5px; margin-bottom: 10px; border-radius: 99px; background: var(--sand-2); }
.sheet__content { display: grid; gap: 12px; overflow-y: auto; min-height: 0; }
.sheet__content h3 { font-size: 26px; }
.sheet__content p { font-size: 14px; color: var(--ink-2); }

.toast-stack { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); align-items: stretch; position: absolute; z-index: 45; }
.app .sb ~ .toast-stack { bottom: 80px; }
.toast { max-width: none; }
.tkt__ring .rings__c.is-gone { transform: scale(.94); opacity: .35; border-style: dashed; }
