/* Muvimu — application (app.muvimu.com). Complète muvimu.css. */
html, body { height: 100%; }
body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
.app { max-width: 560px; margin: 0 auto; min-height: 100%; padding: calc(8px + var(--safe-t)) 16px calc(88px + var(--safe-b)); }
.app .planner > .seg[role="tablist"] { display: none; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 8px; }
.bar__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.bar__brand svg { width: 14px; height: 23px; fill: var(--accent); }
.bar__btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.bar__btn[data-n]::after { content: attr(data-n); position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--neg); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.title { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; margin: 4px 0 16px; }
.screen { display: grid; gap: 16px; }
.screen[hidden] { display: none; }
.sect-t { font-size: 13px; line-height: 20px; color: var(--text-3); padding: 0 4px; margin-bottom: -8px; }

.tabs { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 560px; margin: 0 auto; padding: 6px 8px calc(6px + var(--safe-b)); background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 6px 0 2px; border-radius: 12px; font-size: 11px; line-height: 16px; color: var(--text-3); transition: color 150ms var(--ease); }
.tabs a .ic { width: 22px; height: 22px; }
.tabs a[aria-current="page"] { color: var(--accent); font-weight: 500; }

/* Liste de démarrage */
.check { padding: 16px; }
.check__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.check__t { font-weight: 500; }
.check__bar { height: 4px; margin: 12px 0 4px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.check__bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: transform 300ms var(--ease); transform-origin: left; }
.check__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px 0; font-size: 15px; }
.check__box { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; }
.check__item.done .check__box { background: var(--accent); box-shadow: none; color: #fff; }
.check__item.done span:last-of-type { color: var(--text-3); text-decoration: line-through; }
.check__item .ic--go { margin-left: auto; color: var(--text-3); }
.check__box .ic { width: 14px; height: 14px; stroke-width: 2.5; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .chip { flex: none; }
.rowbtn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 16px; text-align: left; transition: background-color 150ms var(--ease); }
.rowbtn:hover { background: var(--raised); }
.rowbtn .ic:first-child { color: var(--text-3); }
.rowbtn__v { margin-left: auto; color: var(--text-3); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.switch { position: relative; flex: none; width: 50px; height: 30px; margin-left: auto; border-radius: 15px; background: var(--line-strong); transition: background-color 150ms var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 150ms var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.quiet { display: block; margin: 8px auto 0; padding: 12px; font-size: 13px; color: var(--text-3); }

/* Premier lancement */
.who { padding: 16px; display: grid; gap: 12px; }
.who__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.who__opt { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-m); background: var(--raised); font-size: 14px; line-height: 18px; text-align: left; }
.who__opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* Trajet en cours */
.live { position: fixed; inset: 0; z-index: 70; overflow: auto; background: var(--bg); padding: calc(8px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
.live__in { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; }
.live__now { padding: 20px; }
.live__k { font-size: 13px; line-height: 20px; color: var(--text-3); }
.live__big { margin-top: 4px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.live__sub { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--text-2); }
.live__eta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live__eta > div { padding: 16px; }
.live__n { font-size: 24px; line-height: 28px; font-weight: 600; }
.live .route__leg.past { opacity: 0.4; }
.live .route__leg.cur .route__stop { color: var(--accent-ink); }

/* Mode conducteur */
.drv { position: fixed; inset: 0; z-index: 75; overflow: auto; background: #111; color: #fff; padding: calc(12px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
.drv__in { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.drv__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drv__t { font-size: 20px; line-height: 28px; font-weight: 600; }
.drv__s { font-size: 14px; color: #a1a1a6; }
.drv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drv__b { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 116px; padding: 12px; border-radius: var(--r-xl); background: #232325; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); font-size: 18px; line-height: 24px; font-weight: 500; text-align: center; transition: transform 150ms var(--ease), background-color 150ms var(--ease); }
.drv__b:active { transform: scale(0.98); background: #2e2e31; }
.drv__b .ic { width: 30px; height: 30px; }
.drv__b--ok { background: #1f6f54; }
.drv__b--warn { background: #8a4b08; }
.drv__b--stop { grid-column: 1 / -1; min-height: 64px; background: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.24); font-size: 16px; }
.drv .input, .drv .select { background: #232325; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); height: 56px; font-size: 18px; }
.drv .notice { background: #232325; color: #d4d4d8; }
.drv .notice .ic { color: #a1a1a6; }
.drv__live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #4cc38a; }
.drv__live i { width: 8px; height: 8px; border-radius: 50%; background: #4cc38a; }
