/* Maze Bank : blanc & rouge */
:root {
    --red: #C8102E; --red-d: #B30E29; --red-dd: #7E0A1D; --red-bg: #FFF5F6; --red-soft: #FDECEE; --red-line: #F3C2CA;
    --ink: #1B1F27; --muted: #5B6474; --line: #E6E8EC; --line2: #F0F1F4; --field: #CDD2DA; --bg: #F6F7F9; --panel: #FFFFFF;
    --ok: #0F7B45; --ok-bg: #E6F4EC; --warn: #8A4B08; --warn-bg: #FEF3E2;
    --r: 14px; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
body.white { background: #fff; }
a { color: var(--red-d); }
a:hover { color: var(--red-dd); }
h1, h2, h3 { margin: 0; }
.mont { font-family: Montserrat, Inter, sans-serif; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.pos { color: var(--ok); font-weight: 700; }
.neg { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* barres du haut */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar .wrap { min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a.on { color: var(--ink); font-weight: 600; }
.hdr { background: var(--red); color: #fff; }
.hdr .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.hdr .logo img { width: 160px; height: auto; display: block; }
.hdr nav.main { display: flex; flex-wrap: wrap; align-self: stretch; flex: 1 1 auto; font-size: 15px; }
.hdr nav.main a { display: flex; align-items: center; padding: 0 16px; min-height: 72px; color: #FFE3E6; text-decoration: none; font-weight: 500; border-bottom: 4px solid transparent; }
.hdr nav.main a.on { color: #fff; font-weight: 700; border-bottom-color: #fff; }
.hdr nav.main a:hover { color: #fff; }
.hdr .who { display: flex; align-items: center; gap: 12px; }
.hdr .who .id { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; line-height: 1.3; }
.hdr .who .id span { color: #FFE3E6; font-size: 12px; }
.btn-ghost-w { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 6px; border: 1px solid #fff; background: transparent; color: #fff; font: 600 14px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.btn-ghost-w:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-white { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 6px; background: #fff; color: var(--red); font-weight: 700; text-decoration: none; }
.subnav { background: var(--ink); }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; }
.subnav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; color: #C9CED8; text-decoration: none; }
.subnav a.on { color: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 var(--red); }
.subnav a:hover { color: #fff; }
.offline { background: #1B1F27; color: #fff; font-size: 14px; }
.offline .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.offline b { color: #F2A0AB; }

/* page */
main.page { padding-top: 44px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pagehead .crumb { font-size: 13px; color: var(--muted); }
.pagehead h1 { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 30px; margin-top: 4px; letter-spacing: -.01em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; height: 46px; padding: 0 22px; border-radius: 8px; border: 0; background: var(--red); color: #fff; font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-d); color: #fff; }
.btn.outline { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn.outline:hover { background: var(--red-bg); }
.btn.grey { background: #fff; color: var(--ink); border: 1px solid var(--field); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.block { width: 100%; height: 50px; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: 500 13px Inter, sans-serif; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.chip:hover { color: inherit; }
.chip.on:hover { color: #fff; }

/* cartes / blocs */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.box-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 28px 18px; background: #fff; border-bottom: 1px solid var(--line2); }
.box-h h2 { font-family: Montserrat, sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); }
.label-up { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.box-b { padding: 24px 28px 28px; }
.box-f { padding: 16px 28px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cols > .main { flex: 999 1 620px; min-width: 0; }
.cols > .side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpis > div { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.kpis span { font-size: 13px; color: var(--muted); }
.kpis b { font-family: Montserrat, sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.kpis .alert { background: var(--red-bg); border-color: var(--red-line); }
.kpis .alert span, .kpis .alert b { color: var(--red-d); }

/* tableaux */
.tscroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 14px 10px; }
table.t td { padding: 17px 10px; border-top: 1px solid var(--line2); vertical-align: middle; }
table.t th:first-child, table.t td:first-child { padding-left: 28px; }
table.t th:last-child, table.t td:last-child { padding-right: 28px; }
table.t tbody tr:hover td { background: #FAFBFC; }
table.t tr.sel td { background: var(--red-bg); }
table.t tr.sel td:first-child { box-shadow: inset 4px 0 0 var(--red); }
table.t tr.warn td { background: #FFFAFA; }
table.t td .sub { display: block; color: var(--muted); font-size: 13px; }
table.t a.rowlink { color: inherit; text-decoration: none; font-weight: 600; }
table.t a.rowlink:hover { color: var(--red-d); }
.empty { padding: 28px 24px; color: var(--muted); text-align: center; }

/* badges */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-red { background: var(--red-soft); color: var(--red-d); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-grey { background: #E9EBEF; color: #3D4452; }
.b-dark { background: var(--ink); color: #fff; }

/* formulaires */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .hint.ok { color: var(--ok); font-weight: 600; }
.field .hint.bad { color: var(--red-d); font-weight: 600; }
input.in, select.in, textarea.in { height: 48px; border-radius: 8px; border: 1px solid var(--field); background: #fff; color: var(--ink); padding: 0 12px; font: 500 15px Inter, sans-serif; width: 100%; }
textarea.in { height: auto; padding: 10px 12px; }
input.in:focus, select.in:focus, textarea.in:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
input.in[readonly] { background: var(--bg); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 20px; }
.grid2x { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--field); cursor: pointer; }
.radio-card:has(input:checked) { border: 2px solid var(--red); background: var(--red-bg); padding: 11px 13px; }
.radio-card input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.money-in { display: flex; height: 52px; border: 2px solid var(--red); border-radius: 6px; overflow: hidden; }
.money-in input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font: 700 20px Montserrat, sans-serif; color: var(--ink); }
.money-in input:focus { outline: none; }
.money-in span { display: flex; align-items: center; padding: 0 16px; background: var(--bg); color: var(--muted); font-weight: 700; }
.seg { display: flex; height: 46px; border: 1px solid var(--field); border-radius: 6px; overflow: hidden; }
.seg label { flex: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 500; border-left: 1px solid var(--field); }
.seg label:first-child { border-left: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--red); color: #fff; font-weight: 600; }

/* messages */
.flash { border-radius: 8px; padding: 14px 18px; font-size: 15px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.flash.success { background: var(--ok-bg); color: #0B5E35; border: 1px solid #B9DFC9; }
.flash.error { background: var(--red-soft); color: var(--red-dd); border: 1px solid var(--red-line); }
.note { border-left: 3px solid var(--red); background: var(--bg); border-radius: 4px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.note.dark { border-left-color: var(--ink); }

/* accueil */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero .txt { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-d); font-weight: 700; }
.hero h1 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; max-width: 620px; }
.hero p.lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 560px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 6px; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats b { font-family: Montserrat, sans-serif; font-size: 26px; font-weight: 800; color: var(--red); }
.stats span { font-size: 14px; color: var(--muted); }
.login { flex: 1 1 400px; min-width: 0; max-width: 460px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 8px; box-shadow: 0 12px 32px rgba(20,24,33,.08); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.login h2 { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 24px; }
.btn-discord { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 6px; background: #5865F2; color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-discord:hover { background: #4752C4; color: #fff; }
.features { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature { border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.feature .ico { width: 48px; height: 48px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-family: Montserrat, sans-serif; font-size: 19px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); }
.offers-sec { background: var(--bg); border-top: 1px solid var(--line); }
.offers-sec .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.offers-sec h2 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 34px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.offer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.offer-card.best { border: 2px solid var(--red); }
.offer-card .top { padding: 30px 22px; display: flex; justify-content: center; position: relative; background: #E9EBEF; }
.offer-card.best .top { background: var(--red-bg); }
.offer-card.black .top { background: var(--ink); }
.offer-card .tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 8px; border-radius: 4px; background: var(--red); color: #fff; }
.offer-card .bd { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.offer-card .nm { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.offer-card h3 { font-family: Montserrat, sans-serif; font-size: 20px; font-weight: 800; }
.offer-card .price { font-size: 18px; color: var(--red); font-weight: 700; }
.offer-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; font-size: 14px; }
.offer-card li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.offer-card li:last-child { border-bottom: 0; }
.offer-card li span { color: var(--muted); }
footer.ft { background: var(--ink); color: #C9CED8; }
footer.ft .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; }

/* choix du compte */
.acc-list { display: flex; flex-direction: column; gap: 10px; }
.acc-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%; text-align: left; font: inherit; cursor: pointer; }
.acc-item:hover { border-color: var(--red); background: var(--red-bg); }
.acc-item .pro { width: 64px; height: 36px; border-radius: 4px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.acc-item .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-item .t b { font-weight: 600; }
.acc-item .bal { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 18px; }
.acc-item.off { border-style: dashed; border-color: var(--field); background: var(--bg); cursor: not-allowed; color: var(--muted); }
.acc-item.off.justice { border-color: var(--ink); }

/* compte */
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; overflow: hidden; }
.summary .bal { flex: 1 1 320px; padding: 34px 36px; border-left: 4px solid var(--red); display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line2); }
.summary .bal b.big { font-family: Montserrat, sans-serif; font-size: 42px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.summary .off { flex: 2 1 560px; padding: 30px 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.summary .off .d { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; font-size: 13px; }
.tiles div { background: var(--bg); border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.tiles div span { color: var(--muted); }
.tiles div.hl { background: var(--red-bg); }
.tiles div.hl span { color: var(--red-d); }
.promo { background: var(--ink); color: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; }
.promo .pi { flex: 0 0 auto; padding: 18px 0 18px 28px; }
.promo .pt { flex: 999 1 380px; padding: 18px 28px; display: flex; flex-direction: column; gap: 6px; }
.promo .pt .eyebrow { color: #F2A0AB; font-size: 12px; }
.promo .pt b { font-family: Montserrat, sans-serif; font-size: 22px; font-weight: 800; }
.promo .pt span { font-size: 14px; color: #C9CED8; }
.promo .pa { flex: 1 1 220px; padding: 18px 28px; display: flex; justify-content: flex-end; }
.bar { height: 8px; border-radius: 4px; background: var(--line2); }
.bar i { display: block; height: 8px; border-radius: 4px; background: var(--red); }
.bar.thin, .bar.thin i { height: 6px; }
.callout { border: 1px solid var(--red-line); background: var(--red-bg); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pager { display: flex; gap: 6px; align-items: center; }

/* virement */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.steps li { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 4px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.steps li.on { border-bottom-color: var(--red); color: var(--ink); }
.steps li.cur { background: var(--red-bg); }
.steps li i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--field); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 13px; }
.steps li.on i { background: var(--red); border-color: var(--red); color: #fff; }
.fixed-acc { height: 48px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recap { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 600; }
.recap .total dt { color: var(--ink); font-weight: 700; }
.recap .total dd { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 26px; color: var(--red); }
.recap hr { border: 0; height: 1px; background: var(--line2); margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 36px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: 500 13px Inter, sans-serif; cursor: pointer; }
.pill:hover { border-color: var(--red); background: var(--red-bg); color: var(--red-d); }

/* espace banque */
.sheet-h { padding: 18px 24px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-h h2 { font-family: Montserrat, sans-serif; font-size: 18px; font-weight: 700; }
.sheet-sec { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line2); }
.sheet-sec:last-child { border-bottom: 0; }
.sheet-sec.danger { background: #FFFAFA; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--ok); }
.dot.off { background: var(--field); }
.dot.justice { background: var(--ink); }
.offer-edit { background: #fff; border: 1px solid var(--line); border-top-width: 4px; border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.offer-edit .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.offer-edit h2 { font-family: Montserrat, sans-serif; font-size: 20px; font-weight: 800; }
.offer-edit .rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.offer-edit .rates label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.offer-edit .rates label.web { color: var(--red-d); font-weight: 600; }
.offer-edit .rates label.web input { border-color: var(--red); background: var(--red-bg); }
.offer-edit input.in, .offer-edit select.in { height: 40px; font-size: 14px; }
.offer-edit .ft { display: flex; justify-content: space-between; font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line2); }
.loan-form { display: flex; flex-wrap: wrap; }
.loan-form .f { flex: 999 1 640px; min-width: 0; padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 20px; }
.loan-form .s { flex: 1 1 300px; min-width: 0; background: var(--panel); border-left: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.loan-form .s .row { display: flex; justify-content: space-between; font-size: 15px; }
.loan-form .s .row span { color: var(--muted); }
details.manage summary { cursor: pointer; font-weight: 600; color: var(--red-d); list-style: none; }
details.manage summary::-webkit-details-marker { display: none; }
details.manage[open] { min-width: 260px; }
details.manage .mg { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
details.manage .mg form { display: flex; gap: 6px; }
details.manage .mg input.in { height: 36px; font-size: 13px; }
.errbox { max-width: 560px; margin: 80px auto; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.errbox h1 { font-family: Montserrat, sans-serif; font-size: 24px; }

/* ---------- carte bancaire : même rendu qu'en jeu (image entière 800×450, coins 5 % / 8,9 %) ---------- */
.mcard { position: relative; width: 100%; max-width: 360px; aspect-ratio: 800 / 450; border-radius: 5% / 8.9%; background-size: 100% 100%; background-repeat: no-repeat;
    box-shadow: 0 18px 32px -18px rgba(20,24,33,.55); overflow: hidden; container-type: inline-size; flex: none; }
.mcard.c200 { background-image: url(/static/img/card_std.webp); }
.mcard.c201 { background-image: url(/static/img/card_silver.webp); }
.mcard.c202 { background-image: url(/static/img/card_gold.webp); }
.mcard.c203 { background-image: url(/static/img/card_black.webp); }
.mcard .num, .mcard .nm { position: absolute; left: 6%; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.65); white-space: nowrap; }
.mcard .num { bottom: 27%; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 6.4cqw; letter-spacing: .12em; }
.mcard .nm { bottom: 10%; font-size: 3.6cqw; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.mcard.c201 .num, .mcard.c201 .nm, .mcard.c202 .num, .mcard.c202 .nm { color: #1c1c1c; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.mcard.c203 .num, .mcard.c203 .nm { color: #f3d27a; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.mcard.w-sm { width: 120px; } .mcard.w-md { width: 220px; } .mcard.w-lg { width: 300px; }
.mcard.mini { width: 64px; box-shadow: none; }

/* ---------- fiche client (espace banque) ---------- */
.client-hero { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 32px 36px; }
.client-hero .id { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.client-hero .id h1 { font-family: Montserrat, sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.client-hero .id .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; align-items: center; }
.client-hero .bal { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.client-hero .bal b { font-family: Montserrat, sans-serif; font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.acts { display: flex; flex-direction: column; gap: 32px; }
.dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; text-align: right; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.people li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.people li:first-child { border-top: 0; padding-top: 0; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; }
.request-box { max-width: 620px; margin: 72px auto; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--r); box-shadow: var(--shadow); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.request-box h1 { font-family: Montserrat, sans-serif; font-size: 26px; }
table.t th.right { text-align: right; }

/* ---------- choix du compte (bloc de connexion, comme la maquette) ---------- */
.login .acc-list { gap: 10px; }
.acc-group { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.acc-item { padding: 12px 16px; border-radius: 6px; border: 1px solid var(--line); }
.acc-item .chev { color: var(--muted); flex: none; }
.acc-item:hover, .acc-item.sel { border: 2px solid var(--red); background: var(--red-bg); padding: 11px 15px; }
.acc-item:hover .chev, .acc-item.sel .chev { color: var(--red); }
.acc-item .pro { width: 48px; height: 30px; border-radius: 4px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.acc-item.off .pro { background: #E3E6EB; color: var(--muted); }
.acc-item.off.justice .pro { background: var(--ink); color: #fff; }
.acc-item.off { border: 1px dashed var(--field); background: var(--bg); }
.acc-item.off.justice { border-color: var(--ink); }
.acc-item.off:hover { border-width: 1px; padding: 12px 16px; background: var(--bg); }
.acc-item .mcard.mini { width: 48px; border-radius: 4px; }
form.inline { display: inline; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--red-d); cursor: pointer; text-decoration: underline; }
.login .flash { padding: 10px 14px; font-size: 14px; }

/* ---------- fiche client : options en grand ---------- */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 560px) { .opt-grid { grid-template-columns: 1fr; } }
.opt { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.opt .oh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opt .oh h3 { font-family: Montserrat, sans-serif; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.opt .oh h3 .ico { width: 36px; height: 36px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.opt.dark .oh h3 .ico { background: var(--ink); color: #fff; }
.opt p.d { margin: 0; color: var(--muted); font-size: 14px; }
.opt form { display: flex; flex-direction: column; gap: 14px; }
.opt .btn { width: 100%; }
.sec-title { font-family: Montserrat, sans-serif; font-size: 20px; font-weight: 700; margin: 8px 0 -8px; }
