/* Misu · carte membre (site public). Reprend les couleurs et polices du site. */

/* Panneau dans « Mon compte » */
.mz-panel { display: flex; flex-direction: column; gap: 18px; color: var(--ink); scroll-margin-top: calc(var(--nav-h, 72px) + 16px); }
.mz-panel:focus { outline: none; }
.mz-head { display: flex; flex-direction: column; gap: 10px; }
.mz-head .acc-h { margin-bottom: 0; }
.mz-lead { color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }
.mz-lead b { color: var(--ink); overflow-wrap: anywhere; }
.mz-fine { color: var(--muted); font-size: var(--t-xs); line-height: 1.5; }
.mz-count { font-weight: 600; font-size: var(--t-sm); }
.loy-sec .mz-count { color: var(--caramel); }

.mz-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand); }
.mz-tab { border: 0; border-radius: 999px; padding: 11px 10px; background: none; font: 600 var(--t-sm)/1.2 var(--f-body); color: var(--muted); }
.mz-tab[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgb(58 33 27 / .12); }

.mz-form { gap: 16px; }
.mz-form .btn { align-self: stretch; }
.mz-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--t-sm); line-height: 1.5; }
.mz-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--choc); }
.mz-check a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: 3px; }
.mz-otp { font: 500 1.75rem/1 var(--f-mono) !important; letter-spacing: .35em; text-align: center; }
.mz-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.mz-row .link-btn:disabled { opacity: .55; }
.mz-msg { font-size: var(--t-sm); font-weight: 600; padding: 10px 14px; border-radius: 12px; background: var(--sand-hi); }
.mz-msg.is-err { color: var(--bordeaux); background: color-mix(in srgb, var(--bordeaux) 9%, var(--paper)); }
.mz-msg.is-ok { color: #3f5228; background: color-mix(in srgb, var(--pistache) 16%, var(--paper)); }
.mz-note { font-size: var(--t-sm); font-weight: 600; }
.mz-out { align-self: flex-start; }

/* La carte avec le QR */
.mz-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 20px 18px 22px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 18px 40px rgb(58 33 27 / .12);
}
.mz-card-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; }
.mz-card-top img { width: 40px; height: 40px; border-radius: 50%; background: var(--choc); padding: 6px; }
.mz-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mz-who .caps { color: var(--muted); font-size: .625rem; }
.mz-who b { font: 400 1.35rem/1.1 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-tier { font: italic 400 1rem/1 var(--f-display); color: var(--choc); background: var(--sand); padding: 6px 10px; border-radius: 999px; }
.mz-qr { border: 0; padding: 0; background: none; width: min(100%, 240px); aspect-ratio: 1; border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 1px var(--line); }
.mz-qr svg { display: block; width: 100%; height: 100%; }
.mz-code { display: flex; flex-direction: column; gap: 4px; }
.mz-code .caps { color: var(--muted); font-size: .625rem; }
.mz-code b { font: 500 clamp(1.6rem, 6vw, 2rem)/1 var(--f-mono); letter-spacing: .14em; }
.mz-pts { color: var(--muted); font-size: var(--t-sm); }
.mz-pts b { font: 400 1.6rem/1 var(--f-display); color: var(--choc); margin-right: 4px; }
.mz-hint { color: var(--muted); font-size: var(--t-xs); max-width: 30ch; }
.mz-actions:empty { display: none; }
.mz-actions .btn { width: 100%; }

.mz-more { border-top: 1px solid var(--line); padding-top: 14px; }
.mz-more summary { cursor: pointer; font-weight: 600; font-size: var(--t-sm); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mz-more summary::-webkit-details-marker { display: none; }
.mz-more summary::after { content: "+"; font: 400 1.4rem/1 var(--f-body); color: var(--caramel); }
.mz-more[open] summary::after { content: "−"; }
.mz-more-in { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.mz-hist, .mz-info { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.mz-info { margin: 0; }
.mz-hist li, .mz-info li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--t-sm); }
.mz-info li b { font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.mz-hist li.is-undone { opacity: .5; text-decoration: line-through; }
.mz-hist .is-plus { color: #4c6331; }
.mz-hist .is-minus { color: var(--bordeaux); }
.mz-del { align-self: flex-start; }
.mz-del-box { border: 1px solid color-mix(in srgb, var(--bordeaux) 35%, transparent); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; font-size: var(--t-sm); background: color-mix(in srgb, var(--bordeaux) 6%, var(--paper)); }

/* QR plein écran */
dialog.mz-big {
  border: 0; margin: auto; padding: 24px; width: min(92vw, 520px); background: #FFFDF6; color: #1E100C; border-radius: 22px;
  display: none; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
dialog.mz-big[open] { display: flex; }
dialog.mz-big::backdrop { background: rgb(20 10 8 / .78); }
dialog.mz-big svg { width: 100%; height: auto; display: block; }
.mz-big-code { font: 500 2rem/1 var(--f-mono); letter-spacing: .16em; }

/* Mode d'emploi iPhone */
dialog.mz-sheet {
  border: 0; padding: 26px 24px calc(22px + env(safe-area-inset-bottom, 0px)); width: 100%; max-width: 480px; margin: auto auto 0;
  background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgb(0 0 0 / .3);
}
@media (min-width: 620px) { dialog.mz-sheet { margin: auto; border-radius: 22px; } }
dialog.mz-sheet::backdrop { background: rgb(42 24 19 / .55); }
dialog.mz-sheet[open] { display: flex; flex-direction: column; gap: 16px; }
.mz-sheet-t { font: 400 1.75rem/1.1 var(--f-display); }
.mz-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.mz-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; counter-increment: s; font-size: var(--t-sm); }
.mz-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--caramel); color: var(--choc); font-weight: 700; }
.mz-steps b { font-weight: 600; }
.mz-steps span { color: var(--muted); }
.mz-btn { width: 100%; border: 0; border-radius: 999px; padding: 15px; background: var(--choc); color: var(--cream); font: 700 var(--t-sm)/1 var(--f-body); }

/* Bandeau d'installation */
.mz-install { background: var(--caramel); color: var(--choc); }
.mz-install-in { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.mz-install p { flex: 1; min-width: 0; font-size: var(--t-sm); line-height: 1.35; }
.mz-install p b { font-weight: 700; }
.mz-install-go { border: 0; border-radius: 999px; padding: 10px 16px; background: var(--choc); color: var(--cream); font: 700 var(--t-xs)/1 var(--f-body); letter-spacing: .06em; white-space: nowrap; }
.mz-install-x { border: 0; background: none; color: var(--choc); width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; flex: none; }
@media (max-width: 420px) { .mz-install p span { display: none; } }

.mz-foot-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
