:root {
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, .1);
    --on-accent: #fff;
  --notice: #ff3b30;
  --ice: #d1d1d6;
    --ice-ink: rgba(60, 60, 67, .6);
  --bg: #f2f2f7;
  --card: #fff;
  --fill: rgba(118, 118, 128, .12);
  --label: #000;
  --label-2: rgba(60, 60, 67, .64);
  --label-3: rgba(60, 60, 67, .36);
  --sep: rgba(60, 60, 67, .14);
  --green: #1f9d4d;
  --red: #e0352b;
  --bar: rgba(249, 249, 249, .78);
  --tile: linear-gradient(160deg, #f5f5f7, #f5f5f7);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --tab-h: 54px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, .2);
    --ice: #48484a;
    --ice-ink: rgba(235, 235, 245, .6);
  --bg: #000;
  --card: #1c1c1e;
  --fill: rgba(118, 118, 128, .24);
  --label: #fff;
  --label-2: rgba(235, 235, 245, .64);
  --label-3: rgba(235, 235, 245, .32);
  --sep: rgba(84, 84, 88, .55);
  --green: #3ddc73;
  --red: #ff6961;
  --bar: rgba(29, 29, 31, .78);
  --tile: linear-gradient(160deg, #2c2c2e, #2c2c2e);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--label);
  font: 400 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

body.locked { overflow: hidden; }

button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { user-select: text; -webkit-user-select: text; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Layout */
.view {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 16px calc(var(--tab-h) + var(--safe-b) + 28px);
}

.enter { animation: rise .34s var(--ease) backwards; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--label-2); }
h1 { font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }

.section-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 26px 2px 10px; }
.caption { font-size: 13px; color: var(--label-2); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fill); color: var(--accent); flex: none;
  transition: transform .2s var(--ease), opacity .2s;
}
.icon-btn:active { transform: scale(.9); opacity: .7; }
.icon-btn svg { width: 20px; height: 20px; }

/* Tab bar */
.tabbar {
  position: fixed; inset: auto 0 0; z-index: 10;
  display: flex; justify-content: center;
  padding-bottom: var(--safe-b);
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-top: .5px solid var(--sep);
}

.tab {
  position: relative; flex: 1; max-width: 124px; height: var(--tab-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--label-2); font-size: 10px; font-weight: 500; letter-spacing: 0;
  white-space: nowrap; transition: color .2s;
}
.tab svg { width: 25px; height: 25px; transition: transform .3s var(--ease); }
.tab:active svg { transform: scale(.86); }
.tab[aria-current="page"] { color: var(--accent); }

.badge {
  position: absolute; top: 4px; left: calc(50% + 7px);
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--notice); color: #fff;
  font-size: 11px; line-height: 17px; font-weight: 600; text-align: center;
  animation: pop .36s var(--ease);
}

@keyframes pop { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } }

/* Search and chips */
.search {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px;
  border-radius: 11px; background: var(--fill); color: var(--label-2);
}
.search svg { width: 17px; height: 17px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; color: var(--label); }
.search input::placeholder { color: var(--label-2); }

.chips { display: flex; gap: 7px; overflow-x: auto; margin: 12px -16px 14px; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 14px; border-radius: 16px;
  background: var(--card); color: var(--label); font-size: 14px; font-weight: 500;
  transition: background .22s, color .22s, transform .2s var(--ease);
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* Products */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.product {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--card); border-radius: 18px; padding: 10px 10px 12px; overflow: hidden; cursor: pointer;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
  animation: rise .34s var(--ease) backwards;
}
.product:active { transform: scale(.99); }

.tile { display: grid; place-items: center; background: var(--tile); border-radius: 12px; }
.product .tile { aspect-ratio: 1.18; font-size: 54px; margin-bottom: 10px; }
.product h3 {
  font-size: 15px; line-height: 1.25; font-weight: 600; min-height: 37.5px; padding: 0 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-left: 2px; min-height: 30px; }
.price { font-size: 15px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.owned { font-size: 13px; color: var(--label-2); }
.stock-note { font-size: 12px; font-weight: 600; color: var(--notice); margin-top: 3px; }

.add {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  transition: transform .24s var(--ease), background .24s, color .24s;
}
.add:active { transform: scale(.85); }
.add.on { background: var(--accent); color: var(--on-accent); }
.add svg { width: 17px; height: 17px; }

/* Grouped lists */
.group { background: var(--card); border-radius: 14px; overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 14px;
  text-align: left; position: relative; transition: background .16s;
}
button.row:active { background: var(--fill); }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 62px; border-top: .5px solid var(--sep); }
.row.plain + .row.plain::before { left: 14px; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; flex: none; }
.row-end.muted { color: var(--label-2); font-weight: 400; }
.row-end.pos { color: var(--green); }
.row .chev { width: 14px; height: 14px; color: var(--label-3); flex: none; }
.row .tile { width: 38px; height: 38px; font-size: 21px; border-radius: 9px; flex: none; }
.row .remove { width: 32px; height: 32px; display: grid; place-items: center; color: var(--label-2); border-radius: 50%; flex: none; }
.row .remove:active { background: var(--fill); }
.row .remove svg { width: 18px; height: 18px; }

/* Buttons */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; min-height: 50px; padding: 0 18px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  transition: transform .22s var(--ease), opacity .2s, background .25s;
}
.cta:active { transform: scale(.98); opacity: .86; }
.cta:disabled { opacity: .45; }
.cta.soft { background: var(--accent-soft); color: var(--accent); }
.cta.danger { background: none; color: var(--red); font-weight: 500; }
.cta svg { width: 19px; height: 19px; }
.mt { margin-top: 14px; }
.mt-s { margin-top: 8px; }

/* Empty states */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 76px 28px; }
.empty-icon { width: 66px; height: 66px; border-radius: 50%; background: var(--fill); color: var(--label-2); display: grid; place-items: center; margin-bottom: 14px; }
.empty-icon svg { width: 32px; height: 32px; }
.empty h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.empty p { font-size: 15px; color: var(--label-2); margin: 4px 0 18px; }
.empty .cta { width: auto; min-height: 42px; }

/* Wallet */
.wallet {
  background: #1c1c1e; color: #fff; border-radius: 22px; padding: 22px;
  position: relative; overflow: hidden;
}
:root[data-theme="dark"] .wallet { background: #2c2c2e; }
.wallet-flake { position: absolute; right: -36px; top: -36px; width: 170px; height: 170px; opacity: .12; }
.wallet-label { font-size: 14px; font-weight: 500; opacity: .85; }
.wallet-amount { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wallet .cta { background: rgba(255, 255, 255, .18); color: #fff; margin-top: 18px; min-height: 44px; }
.pending { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; opacity: .92; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--notice); animation: pulse 1.8s infinite; }

@keyframes pulse { 50% { opacity: .35; } }

.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount { height: 56px; border-radius: 13px; background: var(--card); font-weight: 600; font-variant-numeric: tabular-nums; transition: background .2s, color .2s, transform .2s var(--ease); }
.amount:active { transform: scale(.95); }
.amount[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* Ticket */
.ticket-card {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px 18px 20px; text-align: center;
  background: linear-gradient(150deg, #1c1c1e, #2c2c2e); color: #fff;
}
.ticket-card > :not(.snow) { position: relative; }
.ticket-label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.ticket-steps { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0 6px; }
.ticket-points { font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-unit { display: block; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.ticket-total { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.step {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); color: #fff;
  transition: transform .2s var(--ease), opacity .2s, background .2s;
}
.step svg { width: 22px; height: 22px; }
.step:active { transform: scale(.9); }
.step:disabled { opacity: .3; }

.amounts + .cta { margin-top: 12px; }
.amount.out { color: var(--notice); opacity: .75; }
.amount.out[aria-pressed="true"] { background: var(--notice); color: #fff; opacity: 1; }
.stock-alert {
  margin-top: 12px; padding: 11px 14px; border-radius: 13px;
  background: color-mix(in srgb, var(--notice) 14%, var(--card));
  color: var(--notice); font-size: 14px; font-weight: 600;
}
.stock-alert[hidden] { display: none; }


/* Sheets */
.layer { position: fixed; inset: 0; z-index: 20; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .36); opacity: 0; transition: opacity .34s; }
.layer.in .backdrop { opacity: 1; }

.sheet {
  position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 620px; max-height: 92dvh;
  display: flex; flex-direction: column; background: var(--bg); border-radius: 18px 18px 0 0;
  transform: translate(-50%, 100%); transition: transform .42s var(--ease);
}
.layer.in .sheet { transform: translate(-50%, 0); }
:root[data-theme="dark"] .sheet { background: #1c1c1e; --card: #2c2c2e; }
.sheet.full { height: 92dvh; }
.sheet.drag { transition: none; }

.grab { flex: none; padding: 8px 0 6px; touch-action: none; cursor: grab; }
.grab span { display: block; width: 36px; height: 5px; border-radius: 3px; margin: 0 auto; background: var(--label-3); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 16px calc(var(--safe-b) + 18px); overscroll-behavior: contain; }

.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

.detail { text-align: center; }
.detail .tile { height: 112px; font-size: 56px; border-radius: 16px; margin-bottom: 14px; background: var(--card); }
.detail h2 { font-size: 24px; line-height: 1.18; font-weight: 700; letter-spacing: -.022em; }
.detail .desc { font-size: 15px; color: var(--label-2); margin-top: 6px; }
.detail .big-price { font-size: 20px; font-weight: 600; color: var(--accent); margin-top: 10px; font-variant-numeric: tabular-nums; }
.note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--label-2); margin-top: 12px; }
.note svg { width: 15px; height: 15px; }

.content-card { background: var(--card); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.content-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.content-head .tile { width: 34px; height: 34px; font-size: 19px; border-radius: 9px; flex: none; }
.content-head b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.copy { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 14px; font-weight: 500; flex: none; }
.copy svg { width: 15px; height: 15px; }
.content-text { font-size: 15px; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }

.success { text-align: center; padding: 8px 0 4px; }
.check { width: 72px; height: 72px; margin: 6px auto 12px; color: var(--green); }
.check circle, .check path { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 166; stroke-dashoffset: 166; animation: draw .6s var(--ease) forwards; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .34s var(--ease) .4s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.success h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.success p { font-size: 15px; color: var(--label-2); margin-top: 4px; }

/* Forms */
.segmented { display: flex; position: relative; padding: 2px; border-radius: 9px; background: var(--fill); margin-bottom: 14px; }
.segmented button { flex: 1; height: 30px; border-radius: 7px; font-size: 13px; font-weight: 500; transition: background .24s, box-shadow .24s; }
.segmented button[aria-pressed="true"] { background: var(--card); font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }

.field { display: block; padding: 9px 14px; position: relative; }
.field + .field::before, .field + .toggle::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: .5px solid var(--sep); }
.field > span { display: block; font-size: 12px; color: var(--label-2); margin-bottom: 1px; }
.field input, .field textarea { width: 100%; border: 0; outline: 0; background: none; resize: none; display: block; font-size: 16px; }
.field textarea { min-height: 62px; }
.field textarea.long { min-height: 190px; }
.hint { font-size: 13px; color: var(--label-2); margin: 7px 14px 14px; }

.toggle { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; position: relative; font-size: 16px; width: 100%; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--fill); position: relative; transition: background .26s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .28s var(--ease); }
.toggle[aria-checked="true"] .switch { background: var(--green); }
.toggle[aria-checked="true"] .switch::after { transform: translateX(20px); }

.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--fill); color: var(--label-2); margin-left: 6px; vertical-align: 1px; }

/* Toast */
.toast {
  position: fixed; z-index: 40; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px);
  max-width: min(86vw, 420px); padding: 10px 16px; border-radius: 13px;
  background: rgba(30, 30, 32, .92); color: #fff; font-size: 14px; font-weight: 500; text-align: center;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  transition: transform .34s var(--ease), opacity .24s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Skeleton */
.skel { border-radius: 14px; background: var(--fill); animation: pulse 1.4s infinite; }

.notice { min-height: 80dvh; display: grid; place-items: center; }

/* Animations */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }

.emoji { display: inline-block; transition: transform .5s var(--spring); }

@keyframes spin { to { rotate: 360deg; } }
@keyframes hop { 40% { transform: translateY(-4px) scale(1.12); } }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes snow {
  10% { opacity: .55; }
  85% { opacity: .35; }
  to { transform: translate(16px, 200px); opacity: 0; }
}

.tab-pill {
  position: absolute; top: 5px; left: 0; width: 48px; height: 30px; border-radius: 15px;
  background: var(--accent-soft); pointer-events: none; transition: transform .44s var(--ease);
}
.tab[aria-current="page"] svg { animation: hop .46s var(--spring); }

.enter .row { animation: rise .36s var(--ease) backwards; }
.enter .row:nth-child(2) { animation-delay: 30ms; }
.enter .row:nth-child(3) { animation-delay: 60ms; }
.enter .row:nth-child(4) { animation-delay: 90ms; }
.enter .row:nth-child(n+5) { animation-delay: 120ms; }

.wallet > :not(.snow, .wallet-flake) { position: relative; }
.wallet-flake { animation: spin 38s linear infinite; }

.snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: #fff; }
.snow i { position: absolute; top: -8px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0; animation: snow 7s linear infinite; }
.snow i:nth-child(1) { left: 8%; }
.snow i:nth-child(2) { left: 22%; animation-delay: 2.4s; width: 3px; height: 3px; }
.snow i:nth-child(3) { left: 37%; animation-delay: 4.6s; }
.snow i:nth-child(4) { left: 49%; animation-delay: 1.2s; width: 4px; height: 4px; }
.snow i:nth-child(5) { left: 63%; animation-delay: 3.5s; width: 3px; height: 3px; }
.snow i:nth-child(6) { left: 74%; animation-delay: 5.8s; }
.snow i:nth-child(7) { left: 86%; animation-delay: .7s; width: 4px; height: 4px; }
.snow i:nth-child(8) { left: 95%; animation-delay: 4s; width: 3px; height: 3px; }

.cta { position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%);
}

/* Clé d'accès */
.key-box {
  padding: 18px 14px; border-radius: 14px; background: var(--card); text-align: center;
  font: 600 17px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em;
  user-select: all; -webkit-user-select: all; overflow-wrap: anywhere;
}
.key-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.key-actions .cta { min-height: 44px; font-size: 15px; }
.warning-box { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(255, 59, 48, .1); }
.warning-box h3 { font-size: 16px; font-weight: 600; color: var(--red); margin-bottom: 4px; }
.warning-box p { font-size: 14px; line-height: 1.4; }
.warning-box p + p { margin-top: 6px; font-weight: 600; }
.key-confirm { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 2px; font-size: 15px; font-weight: 500; cursor: pointer; }
.key-confirm input { width: 21px; height: 21px; accent-color: var(--accent); flex: none; }
.auth-divider { font-size: 13px; color: var(--label-2); text-align: center; margin: 20px 0 8px; }

.coin-check { width: 20px; height: 20px; color: var(--accent); flex: none; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--card); }
.pay-main { flex: 1; min-width: 0; }
.pay-label { display: block; font-size: 13px; color: var(--label-2); margin-bottom: 2px; }
.pay-value {
  display: block; font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere; user-select: all; -webkit-user-select: all;
}
.pay-form { margin-top: 14px; }

/* Site : grand écran */
.site-brand { display: none; }
.view { max-width: 720px; }

@media (min-width: 900px) {
  html { scrollbar-gutter: stable; }
  .view { padding-top: 92px; padding-bottom: 56px; }
  .view[data-tab="shop"] { max-width: 1120px; }
  .view[data-tab="shop"] .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

  .tabbar {
    inset: 0 0 auto; height: 64px; padding: 0 28px; gap: 4px; align-items: center;
    border-top: 0; border-bottom: .5px solid var(--sep);
  }
  .site-brand {
    display: flex; align-items: center; gap: 8px; margin-right: auto;
    font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--label); text-decoration: none;
  }
  .site-brand svg { width: 24px; height: 24px; color: var(--accent); }
  .tab { flex: none; max-width: none; width: 122px; height: 40px; flex-direction: row; gap: 6px; font-size: 14px; border-radius: 20px; }
  .tab:focus-visible { outline-offset: -2px; }
  .tab svg { width: 20px; height: 20px; }
  .tab-pill { top: 12px; width: 122px; height: 40px; border-radius: 20px; }
  .badge { top: 1px; left: auto; right: 6px; }
  .toast { bottom: 28px; }

  .sheet {
    top: 50%; bottom: auto; max-width: 520px; max-height: 84vh; border-radius: 20px; opacity: 0;
    transform: translate(-50%, -48%); transition: transform .26s var(--ease), opacity .2s;
  }
  .layer.in .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.full { height: 84vh; }
  .sheet-body { padding-top: 20px; }
  .grab { display: none; }
}

/* Survol au curseur */
@media (hover: hover) and (pointer: fine) {
  .product:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .1); }
  .product:hover:active { transform: scale(.99); }
  .product:hover .emoji { transform: scale(1.06); }
  .add:hover { transform: scale(1.06); background: var(--accent); color: var(--on-accent); }
  .add.on:hover { transform: scale(1.12); }
  .add:hover:active { transform: scale(.85); }

  .tab:hover { color: var(--accent); }
  .tab:hover svg { transform: translateY(-2px) scale(1.12); }
  .tab:hover:active svg { transform: scale(.86); }

  .chip:hover { transform: translateY(-2px); box-shadow: 0 5px 13px rgba(0, 0, 0, .13); }
  .icon-btn:hover { transform: rotate(90deg) scale(1.08); background: var(--accent-soft); }
  .search { transition: box-shadow .22s; }
  .search:hover { box-shadow: 0 0 0 1.5px var(--accent-soft); }

  .cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
  .cta:hover::after { transform: translateX(120%); transition: transform .75s var(--ease); }
  .cta:active { transform: scale(.98); }
  .cta.soft:hover, .cta.danger:hover { box-shadow: none; }
  .cta.danger::after { display: none; }

  button.row:hover { background: var(--fill); }
  .row .emoji, .row .chev { transition: transform .34s var(--spring), color .2s; }
  button.row:hover .emoji, .row:hover .emoji { transform: scale(1.18) rotate(-7deg); }
  button.row:hover .chev { transform: translateX(4px); color: var(--accent); }
  .row .remove { transition: color .2s, background .2s, transform .3s var(--spring); }
  .row .remove:hover { color: var(--red); background: var(--fill); transform: scale(1.12); }

  .wallet { transition: transform .34s var(--ease), box-shadow .34s var(--ease); }
  .wallet:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .22); }
  .content-card { transition: box-shadow .3s; }
  .content-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .1); }
  .copy { transition: transform .3s var(--spring); }
  .copy:hover { transform: scale(1.07); }
  .amount:hover { transform: translateY(-2px); box-shadow: 0 7px 16px rgba(0, 0, 0, .14); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
