/* FactuPay — espace freelance
   Téléphone : bloc bleu nuit en tête (solde), cartes claires, onglets flottants.
   Ordinateur : cadre blanc, barre latérale bleu nuit, tableaux et cartes fines.
   Satoshi (400 à 900), bleu FactuPay, icônes Phosphor au trait. Pas de dégradé ni de lueur ;
   le verre reste réservé aux notifications. */

.app {
  --a-bg: #eeeff1;
  --a-card: #fff;
  --a-soft: #f2f3f5;
  --a-soft-2: #e7e9eb;
  --a-ink: #0b1220;
  --a-ink-2: #5f636a;
  --a-ink-3: #9a9da4;
  --a-line: #e8eaec;
  --a-line-2: #dddfe3;
  --a-deep: #002991;
  --a-deep-2: #1a3b8e;
  --a-green: #0066f5;
  --a-green-2: #0052c4;
  --a-mint: #60cdff;
  --a-ok: #123393;
  --a-late: #d1343b;
  --a-seen: #c27c0e;
  --a-accent: var(--a-deep);
  --a-blue: var(--a-green);
  --a-ease: cubic-bezier(.22, 1, .36, 1);
  --a-spring: cubic-bezier(.32, .72, 0, 1);
  --a-lift: 0 1px 2px rgba(20, 28, 60, .04);
}
.app, .app * { box-sizing: border-box; }
body.app {
  margin: 0; min-height: 100vh; background: var(--a-bg); color: var(--a-ink);
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; letter-spacing: -.01em; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
:where(.app) a { color: inherit; text-decoration: none; }
:where(.app) button { font: inherit; color: inherit; letter-spacing: inherit; -webkit-tap-highlight-color: transparent; }
:where(.app) :is(h1, h2, h3, p) { margin: 0; }
.app :focus-visible { outline: 2px solid var(--a-green); outline-offset: 2px; border-radius: 10px; }
.app ::selection { background: #cfe0ff; }
.i { display: block; flex: none; fill: currentColor; }
.muted { color: var(--a-ink-2); }
.faint { color: var(--a-ink-3); }
.d { color: var(--a-ink-3); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.cur { margin-left: .28em; font-size: .46em; font-weight: 700; letter-spacing: 0; color: var(--a-ink-3); }
.desk-only { display: none; }
.desk .desk-only { display: block; }
.desk .mob-only { display: none !important; }

/* =====================================================================
   Briques communes
   ===================================================================== */

/* Statut en point + texte (lignes de téléphone) */
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--a-ink-2); flex: none; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a-ink-3); }
.st-ok::before { background: var(--a-ok); }
.st-late { color: var(--a-late); }
.st-late::before { background: var(--a-late); }
.st-seen::before { background: var(--a-seen); }
.st-draft::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--a-ink-3); }

/* Pastilles de statut (tableaux, fiches) */
.pillx { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; letter-spacing: -.005em; }
.p-ok { background: #e1e9f5; color: #0e317a; }
.p-late { background: #fde8e9; color: #c22830; }
.p-seen { background: #fff1d4; color: #875900; }
.p-due { background: #edf0f2; color: #464a51; }
.p-draft { background: #fff; color: var(--a-ink-2); box-shadow: inset 0 0 0 1px var(--a-line-2); }

/* Interrupteur */
.switch { position: relative; width: 46px; height: 28px; border-radius: 14px; border: 0; background: #d3d6da; cursor: pointer; transition: background-color .3s var(--a-ease); flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .4s var(--a-spring); }
.switch[aria-checked="true"] { background: var(--a-green); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

/* Pastilles de filtre */
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px; margin: 0 -2px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--a-card); color: var(--a-ink-2); font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .3s var(--a-ease), color .3s var(--a-ease); }
.pill:hover { color: var(--a-ink); }
.pill[aria-pressed="true"] { background: var(--a-deep); color: #fff; }
.pills.soft .pill { background: var(--a-soft); }
.pills.soft .pill[aria-pressed="true"] { background: var(--a-deep); }

/* Boutons du téléphone : pilules */
.btn-a {
  height: 54px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--a-deep); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  transition: background-color .3s var(--a-ease), transform .3s var(--a-spring);
}
.btn-a:hover { background: var(--a-deep-2); }
.btn-a:active { transform: scale(.98); }
.btn-a.soft { background: var(--a-soft); color: var(--a-ink); font-weight: 500; }
.btn-a.soft:hover { background: var(--a-soft-2); }
.btn-a.wa { background: #25d366; color: #0b0b0c; }
.btn-a.wa:hover { background: #20bf5b; }
.btn-a.sm { height: 42px; font-size: 14.5px; width: auto; padding: 0 18px; }
.btn-a[disabled] { opacity: .5; cursor: default; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Boutons de l'ordinateur : angles doux, comme les champs */
.btn-d {
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--a-line-2); background: #fff; color: var(--a-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; white-space: nowrap;
  font-size: 14.5px; font-weight: 500; letter-spacing: -.01em;
  transition: background-color .25s var(--a-ease), border-color .25s var(--a-ease), transform .25s var(--a-spring);
}
.btn-d:hover { background: #f6f7f8; }
.btn-d:active { transform: scale(.98); }
.btn-d.primary { background: var(--a-green); border-color: var(--a-green); color: #fff; font-weight: 700; }
.btn-d.primary:hover { background: var(--a-green-2); border-color: var(--a-green-2); }
.btn-d.dark { background: var(--a-deep); border-color: var(--a-deep); color: #fff; font-weight: 700; }
.btn-d.dark:hover { background: var(--a-deep-2); }
.btn-d.big { height: 46px; padding: 0 20px; font-size: 15.5px; }
.btn-d.full { width: 100%; }
.btn-d[disabled] { opacity: .5; cursor: default; }
.link-caps { background: none; border: 0; padding: 0; cursor: pointer; color: var(--a-green); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.link-caps.gray { color: var(--a-ink-3); }
.link-caps:hover { color: var(--a-green-2); }
.link-caps.gray:hover { color: var(--a-ink-2); }

/* Chargement */
.loading { color: transparent !important; pointer-events: none; position: relative; }
.loading .i { opacity: 0; }
.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .9s linear infinite; }
.btn-a.soft.loading::after, .btn-d:not(.primary):not(.dark).loading::after { border-color: rgba(0, 0, 0, .12); border-top-color: var(--a-ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Champs (formulaires du téléphone et de l'ordinateur) */
.f { display: grid; gap: 7px; margin-bottom: 14px; }
.f > span:first-child { font-size: 13.5px; font-weight: 500; color: var(--a-ink-2); padding-left: 2px; }
.f input, .f select, .f textarea {
  width: 100%; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; border: 0; outline: none; appearance: none; -webkit-appearance: none;
  background: var(--a-soft); color: var(--a-ink); font: inherit; font-size: 16px; font-weight: 500; letter-spacing: -.01em;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s var(--a-ease), background-color .25s var(--a-ease);
}
.f textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.f select { padding-right: 44px; cursor: pointer; }
.f .sel { position: relative; }
.f .sel .i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--a-ink-3); }
.f input::placeholder, .f textarea::placeholder { color: var(--a-ink-3); font-weight: 400; }
.f input:hover, .f select:hover, .f textarea:hover { background: var(--a-soft-2); }
.f input:focus, .f select:focus, .f textarea:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--a-green), 0 0 0 4px rgba(0, 102, 245, .1); }
.f.err input, .f.err select, .f.err textarea { box-shadow: inset 0 0 0 1.5px var(--a-late), 0 0 0 4px rgba(209, 52, 59, .08); background: #fff; }
.f .msg { display: none; font-size: 13px; font-weight: 500; color: var(--a-late); padding-left: 2px; }
.f.err .msg { display: block; animation: fade-up .3s var(--a-ease) both; }
.f .ico-in { position: relative; }
.f .ico-in .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--a-ink-3); pointer-events: none; }
.f .ico-in input { padding-left: 42px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid2 > * { min-width: 0; }
.grid2 .full { grid-column: 1 / -1; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--a-ink-2); cursor: pointer; line-height: 1.45; }
.check-row input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--a-green); flex: none; cursor: pointer; }
.upload-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--a-soft); cursor: pointer; transition: background-color .3s var(--a-ease); }
.upload-row:hover { background: var(--a-soft-2); }
.upload-row input { display: none; }
.upload-row .thumb { width: 50px; height: 50px; border-radius: 12px; background: #fff center/cover no-repeat; display: grid; place-items: center; flex: none; }
.upload-row b { display: block; font-weight: 700; font-size: 15px; }
.upload-row span span { font-size: 13px; color: var(--a-ink-2); }

/* Récapitulatif chiffré */
.sum { display: grid; gap: 11px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum div span:last-child { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; text-align: right; font-weight: 500; }
.sum .muted-row { color: var(--a-ink-2); font-size: 14px; }
.sum .muted-row span:last-child { font-weight: 400; }
.sum .total { border-top: 1px solid var(--a-line); padding-top: 13px; font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; }
.sum .total span:last-child { font-weight: 900; color: var(--a-ink); }
.note { font-size: 12.5px; color: var(--a-ink-3); line-height: 1.5; }

/* Encadré d'information ambre */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #fff7e4; color: #5d4712; font-size: 14px; line-height: 1.5; }
.notice .i { color: #c98a06; margin-top: 1px; }
.notice.green { background: #e9eef7; color: #16294d; }
.notice.green .i { color: var(--a-green); }

/* Liste de réglages */
.list { background: var(--a-card); border-radius: 24px; padding: 6px; }
.list .item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; transition: background-color .3s var(--a-ease); }
.list .item + .item::before { content: ""; position: absolute; top: 0; left: 68px; right: 14px; height: 1px; background: var(--a-line); }
.list .item:hover { background: var(--a-soft); }
.list .item:hover::before, .list .item:hover + .item::before { opacity: 0; }
.list .item .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--a-soft); color: var(--a-deep); }
.list .item:hover .ico { background: var(--a-card); }
.list .item b { display: block; font-weight: 500; font-size: 15.5px; letter-spacing: -.015em; }
.list .item span span { font-size: 13px; color: var(--a-ink-2); }
.list .item .end { display: flex; align-items: center; gap: 6px; color: var(--a-ink-3); font-size: 14px; font-weight: 500; }
.list .item.danger b { color: var(--a-late); }
.list .item.danger .ico { background: #fdecee; color: var(--a-late); }

/* Document : aperçu de facture et reçu */
.doc { background: var(--a-card); border-radius: 22px; padding: 28px; font-size: 14.5px; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.doc-logo { width: 50px; height: 50px; border-radius: 14px; background: var(--a-soft) center/cover no-repeat; display: grid; place-items: center; font-weight: 700; }
.doc .meta-r { text-align: right; color: var(--a-ink-2); font-size: 13px; line-height: 1.55; }
.doc h3 { font-size: 26px; font-weight: 900; letter-spacing: -.035em; margin: 22px 0 16px; }
.doc .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; line-height: 1.5; }
.doc .parties small { display: block; color: var(--a-ink-3); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.doc .items { display: grid; border-top: 1px solid var(--a-line); }
.doc .items div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--a-line); }
.doc .items div span:last-child { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-weight: 500; }
.doc .items em { font-style: normal; color: var(--a-ink-3); }
.doc .doc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.doc .doc-total b { font-size: 30px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.doc .msg-box { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--a-soft); color: var(--a-ink-2); }

/* États (succès, attente, vide) */
.state { text-align: center; padding: 36px 22px; }
.state .s-ico { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--a-soft); color: var(--a-deep); }
.state .s-ico.ok { background: #e1e9f5; color: var(--a-ok); animation: pop .5s var(--a-spring) both; }
.state h2 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.state p { color: var(--a-ink-2); max-width: 360px; margin: 0 auto 22px; }
.state .btn-a, .state .btn-d { width: auto; min-width: 220px; }
.empty { text-align: center; color: var(--a-ink-2); padding: 32px 12px; }

/* Vérification d'identité */
.steps-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 2px 0 22px; }
.steps-bar i { height: 4px; border-radius: 2px; background: var(--a-soft-2); transition: background-color .4s var(--a-ease); }
.steps-bar i.on { background: var(--a-green); }
.kstep { display: none; }
.kstep.on { display: block; animation: fade-up .4s var(--a-ease) both; }
.kstep h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.drop { position: relative; display: grid; place-items: center; align-content: center; gap: 10px; min-height: 156px; border-radius: 18px; background: var(--a-soft) center/cover no-repeat; cursor: pointer; text-align: center; font-size: 14px; font-weight: 500; color: var(--a-ink-2); transition: background-color .3s var(--a-ease); border: 1px dashed var(--a-line-2); }
.drop:hover { background-color: var(--a-soft-2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--a-deep); }
.drop.filled { color: transparent; border-style: solid; }
.drop.filled .ico { opacity: 0; }
.drop.selfie { width: 190px; height: 190px; min-height: 0; border-radius: 50%; margin: 12px auto 0; }

/* Profil */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--a-soft); font-size: 13px; font-weight: 500; }

/* =====================================================================
   Téléphone (moins de 1024 px)
   ===================================================================== */

/* En-tête */
.top { position: sticky; top: 0; z-index: 40; background: rgba(238, 239, 241, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top-in { max-width: 560px; margin: 0 auto; height: 72px; padding: 0 20px; display: flex; align-items: center; gap: 12px; }
.circle-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; flex: none;
  display: grid; place-items: center; background: var(--a-card); color: var(--a-ink);
  transition: background-color .3s var(--a-ease), transform .3s var(--a-ease);
}
.circle-btn:hover { background: #f8f9fa; }
.circle-btn:active { transform: scale(.94); }
.circle-btn.soft { background: var(--a-soft); }
.circle-btn .dot, .icon-btn .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--a-late); box-shadow: 0 0 0 2px var(--a-card); }
.avatar-btn { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--a-mint); color: var(--a-deep); font-weight: 700; font-size: 15px; flex: none; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.top-title.greet { font-weight: 500; font-size: 16px; }
.top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; position: relative; }
.top-pill { height: 40px; padding: 0 16px 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; background: var(--a-deep); color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap; }

/* En-tête intégré au bloc sombre (accueil, factures, retraits) */
.mob.has-hero .top { position: relative; background: var(--a-deep); color: #fff; width: calc(100% - 16px); max-width: 544px; margin: 8px auto 0; border-radius: 30px 30px 0 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mob.has-hero .top-in { height: 72px; padding: 0 14px 0 14px; }
.mob.has-hero .circle-btn { background: rgba(255, 255, 255, .1); color: #fff; }
.mob.has-hero .circle-btn:hover { background: rgba(255, 255, 255, .16); }
.mob.has-hero .circle-btn .dot { box-shadow: 0 0 0 2px var(--a-deep); }
.mob.has-hero .top-pill { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.mob.has-hero .page { padding-top: 0; }

/* Barre d'onglets flottante */
.tabbar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 28, 60, .06), 0 10px 30px -10px rgba(20, 28, 60, .22);
}
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 72px; height: 54px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--a-ink-3); transition: background-color .3s var(--a-ease), color .3s var(--a-ease); }
.tabbar a .on { display: none; }
.tabbar a[aria-current="page"] { background: var(--a-deep); color: #fff; font-weight: 700; }
.tabbar a[aria-current="page"] .off { display: none; }
.tabbar a[aria-current="page"] .on { display: block; }

/* Page */
.page { max-width: 560px; margin: 0 auto; padding: 4px 20px 128px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.page-title { font-size: 30px; font-weight: 900; letter-spacing: -.035em; line-height: 1.1; margin: 10px 0 6px; }
.page-sub { color: var(--a-ink-2); font-size: 15px; margin-bottom: 16px; }
.card { background: var(--a-card); border-radius: 24px; padding: 22px; }
.card h2 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 14px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 6px; }
.sec-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.see-all { font-size: 14px; font-weight: 500; color: var(--a-green); }
.month { font-size: 13px; font-weight: 500; color: var(--a-ink-2); margin: 20px 4px 2px; text-transform: capitalize; }

/* Bloc sombre : solde, actions, deux chiffres */
.hero { background: var(--a-deep); color: #fff; margin: 0 -12px; border-radius: 0 0 30px 30px; padding: 10px 14px 14px; }
.hb { text-align: center; padding: 10px 0 0; }
.hb-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .62); }
.hb-eye { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.hb-eye:hover { background: rgba(255, 255, 255, .14); }
.hb-amount { font-size: clamp(42px, 12.6vw, 58px); font-weight: 900; letter-spacing: -.05em; line-height: 1.05; margin: 6px 0 0; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; white-space: nowrap; }
.hb-amount .cur { color: rgba(255, 255, 255, .42); font-size: .4em; margin-left: .3em; }
.hb-sub { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip.late { color: #ffb4b7; }
.chip-link { cursor: pointer; border: 0; }
.chip-link:hover { background: rgba(255, 255, 255, .13); }
.hero-actions { display: flex; justify-content: center; gap: 22px; margin: 22px 0 22px; }
.h-act { display: grid; justify-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; min-width: 56px; }
.h-act .disc { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .3s var(--a-ease), transform .35s var(--a-spring); }
.h-act:hover .disc { background: rgba(255, 255, 255, .16); }
.h-act:active .disc { transform: scale(.92); }
.h-act.primary .disc { background: #fff; color: var(--a-deep); }
.h-act.primary:hover .disc { background: #eef1f5; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: grid; gap: 14px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: #fff; min-width: 0; }
a.tile:hover { background: rgba(255, 255, 255, .1); }
.t-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .7); line-height: 1.25; }
.t-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; color: #fff; }
.t-ico.in { color: #fff; }
.tile b { font-size: clamp(17px, 5vw, 21px); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; overflow: hidden; text-overflow: ellipsis; }
.tile b .cur { color: rgba(255, 255, 255, .45); font-size: .6em; margin-left: .25em; }

/* Carte de retrait (dans le bloc sombre) */
.pcard { position: relative; padding: 18px 18px 16px; border-radius: 22px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); display: grid; gap: 4px; margin-top: 4px; min-height: 148px; }
.pcard .pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pcard .pc-top svg { width: 30px; height: 30px; }
.pcard .pc-kind { font-size: 12.5px; color: rgba(255, 255, 255, .55); font-weight: 500; }
.pcard .pc-name { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pcard .pc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pcard .pc-num { font-size: 14px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pcard .pc-op { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.dotc { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

/* Bandeau d'identité */
.line-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px 14px 14px; background: var(--a-card); border-radius: 20px; margin-top: 14px; transition: background-color .3s var(--a-ease); }
.line-card:hover { background: #fcfdfd; }
.line-card .ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff3d9; color: #9a6400; }
.line-card b { display: block; font-weight: 700; font-size: 15px; letter-spacing: -.015em; }
.line-card span span { font-size: 13px; color: var(--a-ink-2); }

/* Lignes façon « transactions » */
.txs { display: grid; }
.tx { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 6px; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; border-radius: 16px; transition: background-color .25s var(--a-ease); }
.tx:hover { background: rgba(0, 41, 145, .04); }
.mono { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--a-deep); font-weight: 700; font-size: 14px; letter-spacing: .02em; flex: none; }
.mono.out { color: var(--a-ink); }
.tx-main { min-width: 0; }
.tx-main b { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-main span { display: block; font-size: 13px; color: var(--a-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-amt { text-align: right; display: grid; justify-items: end; }
.tx-amt b { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.tx-amt .st { font-size: 12.5px; }

/* Retrait : montant à saisir et moyens */
.amount-big { text-align: center; padding: 26px 20px 20px; }
.amount-big label { display: block; color: var(--a-ink-2); font-size: 15px; font-weight: 500; }
.amount-big .in { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin: 6px 0 16px; }
.amount-big input { width: 100%; max-width: 280px; border: 0; outline: none; background: none; text-align: right; font: inherit; font-size: 48px; font-weight: 900; letter-spacing: -.05em; color: var(--a-ink); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; caret-color: var(--a-green); }
.amount-big input::placeholder { color: #c9ccd0; }
.amount-big .cur { font-size: 20px; flex: none; margin: 0; }
.amount-big .pills { justify-content: center; }
.amount-big .err { min-height: 20px; font-size: 13px; font-weight: 500; color: var(--a-late); margin-top: 10px; }
.method .item .end .i { color: var(--a-green); transition: opacity .25s var(--a-ease), transform .35s var(--a-spring); }
.method .item[aria-pressed="false"] .end .i { opacity: 0; transform: scale(.6); }

/* Profil (téléphone) */
.profile { background: var(--a-deep); color: #fff; border-radius: 26px; text-align: center; padding: 30px 22px 24px; }
.profile .av { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin: 0 auto 14px; background: var(--a-mint); color: var(--a-deep); font-size: 26px; font-weight: 700; box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }
.profile .av img { width: 100%; height: 100%; object-fit: cover; }
.profile h2 { font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.profile p { font-size: 14.5px; margin-top: 2px; color: rgba(255, 255, 255, .65); }
.profile .badge { background: rgba(255, 255, 255, .1); color: #fff; margin-top: 14px; }

/* Feuille (bas d'écran) */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; visibility: hidden; }
.sheet-wrap .scrim { position: absolute; inset: 0; background: rgba(8, 12, 30, .38); opacity: 0; transition: opacity .4s var(--a-ease); }
.sheet { position: relative; background: var(--a-card); border-radius: 28px 28px 0 0; padding: 10px 22px calc(24px + env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; transform: translateY(100%); transition: transform .55s var(--a-spring); width: 100%; max-width: 560px; margin: 0 auto; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--a-soft-2); margin: 0 auto 16px; }
.sheet-wrap.open { visibility: visible; }
.sheet-wrap.open .scrim { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet .s-head { text-align: center; margin: 4px 0 20px; }
.sheet .s-head .big { font-size: 40px; font-weight: 900; letter-spacing: -.045em; margin: 6px 0 8px; line-height: 1.1; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sheet .s-head .st { justify-content: center; }
.sheet .s-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px; background: var(--a-soft); }
.sheet .s-ico.ok { background: #e1e9f5; color: var(--a-ok); }
.sheet .s-actions { display: grid; gap: 10px; margin-top: 22px; }
.sheet .link-row { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--a-soft); }
.sheet .link-row span { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet .link-row .circle-btn { width: 40px; height: 40px; }
.timeline { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--a-line); }
.timeline div { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.timeline .k { width: 48px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--a-soft); color: var(--a-ink-2); flex: none; }
.timeline .done .k { background: var(--a-deep); color: #fff; }

/* =====================================================================
   Ordinateur (1024 px et plus)
   ===================================================================== */
body.desk { background: #e7e9eb; height: 100vh; overflow: hidden; }
.d-frame { height: calc(100vh - 32px); width: calc(100% - 32px); max-width: 1520px; margin: 16px auto; padding: 10px; border-radius: 28px; background: #fff; display: grid; grid-template-columns: 248px minmax(0, 1fr); position: relative; box-shadow: 0 1px 2px rgba(20, 28, 60, .05); }
.desk .page { max-width: none; margin: 0; padding: 0; }

/* Barre latérale */
.d-side { background: var(--a-deep); border-radius: 20px; padding: 18px 14px 14px; display: flex; flex-direction: column; color: rgba(255, 255, 255, .72); min-height: 0; overflow: auto; scrollbar-width: none; }
.d-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 20px; color: #fff; font-weight: 900; font-size: 20px; letter-spacing: -.035em; }
.d-brand svg { width: 34px; height: 34px; }
.d-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .5); cursor: text; transition: background-color .25s var(--a-ease); }
.d-search:focus-within { background: rgba(255, 255, 255, .11); color: rgba(255, 255, 255, .8); }
.d-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: #fff; font: inherit; font-size: 14px; }
.d-search input::placeholder { color: rgba(255, 255, 255, .45); }
.d-search input::-webkit-search-cancel-button { display: none; }
.d-nav { display: grid; gap: 2px; margin-top: 18px; }
.d-nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .72); transition: background-color .25s var(--a-ease), color .25s var(--a-ease); }
.d-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.d-nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; }
.d-nav a .i { opacity: .85; }
.d-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); transition: background-color .25s var(--a-ease); }
.d-user:hover { background: rgba(255, 255, 255, .05); }
.d-user .av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--a-mint); color: var(--a-deep); font-weight: 700; font-size: 14px; }
.d-user .av img { width: 100%; height: 100%; object-fit: cover; }
.d-user .who { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.d-user b { color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-user small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Zone principale */
.d-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.d-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px 14px 30px; min-height: 70px; border-bottom: 1px solid var(--a-line); }
.d-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.d-head-r { display: flex; align-items: center; gap: 10px; }
.bell-wrap { position: relative; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--a-line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--a-ink); padding: 0; transition: background-color .25s var(--a-ease); }
.icon-btn:hover { background: #f6f7f8; }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 9px; }
.icon-btn.ghost { border-color: transparent; color: var(--a-ink-3); background: none; }
.icon-btn.ghost:hover { background: var(--a-soft); color: var(--a-ink); }
.icon-btn .dot { top: 8px; right: 9px; box-shadow: 0 0 0 2px #fff; }
.d-select { position: relative; display: inline-flex; align-items: center; }
.d-select select { height: 40px; padding: 0 36px 0 14px; border-radius: 10px; border: 1px solid var(--a-line-2); background: #fff; color: var(--a-ink); font: inherit; font-size: 14.5px; font-weight: 500; appearance: none; -webkit-appearance: none; cursor: pointer; outline: none; }
.d-select select:hover { background: #f6f7f8; }
.d-select .i { position: absolute; right: 12px; pointer-events: none; color: var(--a-ink-2); }
.d-scroll { flex: 1; min-height: 0; overflow: auto; padding: 22px 26px 30px 30px; scrollbar-width: thin; scrollbar-color: #d5d7db transparent; }
.d-grid { display: grid; gap: 18px; }

/* Cartes */
.dc { background: #fff; border: 1px solid var(--a-line); border-radius: 14px; padding: 20px 22px; min-width: 0; }
.dc-head { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.dc-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.dc-head .info { color: var(--a-ink-3); display: inline-grid; cursor: help; }
.dc-head .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dc-sub { font-size: 13.5px; color: var(--a-ink-2); margin-top: 2px; }

/* Bandeau d'identité (ordinateur) */
.d-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #fff7e4; color: #5d4712; font-size: 14.5px; }
.d-banner .i { color: #c98a06; }
.d-banner b { font-weight: 700; }
.d-banner a { margin-left: auto; font-weight: 700; color: #6b4f00; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.d-banner a:hover { color: #3f2f00; }

/* Indicateurs */
.kpi-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 0; }
.kpi { padding: 0 22px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--a-line); }
.kpi-top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--a-ink-2); }
.kchip { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.kchip.mint { background: #e1e9f5; color: var(--a-green); }
.kchip.green { background: var(--a-green); color: #fff; border-radius: 50%; }
.kchip.amber { background: #fff1d4; color: #b77900; border-radius: 50%; }
.kpi-val { font-size: clamp(24px, 2.1vw, 31px); font-weight: 900; letter-spacing: -.045em; line-height: 1.1; margin: 16px 0 8px; white-space: nowrap; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.kpi-val .cur { font-size: .45em; }
.kpi-meta { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--a-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-meta .up { color: var(--a-ok); display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.kpi-meta .down { color: var(--a-late); display: inline-flex; align-items: center; gap: 3px; font-weight: 500; }
.kpi-meta a { color: var(--a-green); font-weight: 700; }

.recv { padding: 0; display: flex; flex-direction: column; }
.recv .dc-top { padding: 18px 22px 16px; }
.recv .bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--a-soft-2); margin-top: 14px; gap: 2px; }
.recv .bar i { display: block; height: 100%; border-radius: 4px; transition: width .9s var(--a-ease); }
.recv .bar .ontime { background: var(--a-green); }
.recv .bar .lateb { background: #f2a9ac; }
.recv-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--a-line); margin-top: auto; }
.recv-cols > div { padding: 12px 22px 14px; }
.recv-cols > div + div { border-left: 1px solid var(--a-line); }
.recv-cols small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--a-green); }
.recv-cols > div + div small { color: var(--a-late); }
.recv-cols b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recv-cols b .cur { font-size: .7em; }

/* Courbe des encaissements */
.flow-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 26px; margin-top: 10px; align-items: stretch; }
.chart { position: relative; height: 270px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: #edeef0; stroke-dasharray: 3 4; }
.chart .ylab, .chart .xlab { font-size: 12px; fill: var(--a-ink-3); font-family: inherit; }
.chart .area { fill: rgba(0, 102, 245, .07); }
.chart .line { fill: none; stroke: var(--a-green); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .hover-line { stroke: var(--a-line-2); stroke-width: 1; }
.chart .hover-dot { fill: #fff; stroke: var(--a-green); stroke-width: 2.5; }
.chart .hv { opacity: 0; transition: opacity .15s; }
.chart.on .hv { opacity: 1; }
.chart-tip { position: absolute; top: 0; pointer-events: none; background: var(--a-ink); color: #fff; padding: 8px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; }
.chart-tip b { display: block; font-size: 14px; font-weight: 700; }
.chart.on .chart-tip { opacity: 1; }
.legend { display: grid; align-content: center; gap: 18px; padding-left: 4px; }
.legend small { display: block; font-size: 13.5px; font-weight: 500; color: var(--a-green); }
.legend .lg-out small { color: var(--a-late); }
.legend .lg-in small { color: var(--a-ok); }
.legend b { display: block; font-size: 27px; font-weight: 900; letter-spacing: -.045em; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.legend b .cur { font-size: .45em; }

/* Tableau des factures */
.tbl-card { padding: 0; }
.tbl-card > .dc-head { padding: 16px 22px 14px; }
.tbl-tools { display: flex; align-items: center; gap: 8px; padding: 0 22px 14px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--a-soft); }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--a-ink-2); display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s var(--a-ease), color .2s var(--a-ease); }
.seg button:hover { color: var(--a-ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--a-ink); font-weight: 700; box-shadow: 0 1px 2px rgba(20, 28, 60, .08); }
.seg button em { font-style: normal; font-size: 12px; color: var(--a-ink-3); font-weight: 500; }
.tbl-wrap { overflow-x: auto; padding: 0 22px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 13px; font-weight: 500; color: var(--a-ink-2); background: #f6f7f8; padding: 11px 14px; white-space: nowrap; }
.tbl th:first-child { border-radius: 10px 0 0 10px; }
.tbl th:last-child { border-radius: 0 10px 10px 0; }
.tbl td { padding: 14px 14px; border-bottom: 1px solid #eeeff1; white-space: nowrap; vertical-align: middle; }
.tbl tbody tr { cursor: pointer; transition: background-color .2s var(--a-ease); }
.tbl tbody tr:hover td { background: #fafbfb; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .c-chk { width: 36px; padding-right: 0; }
.tbl input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: var(--a-green); cursor: pointer; display: block; }
.tbl .c-id { color: var(--a-green); font-weight: 500; font-variant-numeric: tabular-nums; }
.tbl .c-client b { font-weight: 500; display: block; }
.tbl .c-client small { color: var(--a-ink-3); font-size: 12.5px; }
.tbl .c-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.tbl .c-amt { font-weight: 700; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.tbl .c-amt .d { font-weight: 500; }
.tbl .c-xof { color: var(--a-ink-2); font-variant-numeric: tabular-nums; }
.tbl .c-act { width: 1%; }
.tbl .acts { display: flex; gap: 2px; }
.tbl .acts .icon-btn { width: 32px; height: 32px; border-radius: 8px; }
.tbl-empty { padding: 40px 12px; text-align: center; color: var(--a-ink-2); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--a-line); }
.pager .pages { display: flex; gap: 4px; }
.pager .pages button { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--a-ink-2); }
.pager .pages button:hover { background: var(--a-soft); color: var(--a-ink); }
.pager .pages button[aria-current="true"] { background: var(--a-green); color: #fff; font-weight: 700; }
.pager .btn-d { height: 36px; padding: 0 12px; font-size: 14px; }
.pager .btn-d[disabled] { opacity: .4; }
.sel-bar { display: none; align-items: center; gap: 10px; font-size: 14px; color: var(--a-ink-2); }
.sel-bar.on { display: flex; }

/* Retraits (ordinateur) */
.w-cols { display: grid; grid-template-columns: minmax(380px, .85fr) minmax(0, 1.3fr); gap: 18px; align-items: start; }
.w-bal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.w-bal .kpi-val { font-size: 38px; margin: 10px 0 6px; }
.w-card { width: 290px; aspect-ratio: 1.6; border-radius: 16px; background: var(--a-deep); color: #fff; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.w-card .pc-top { display: flex; justify-content: space-between; align-items: center; }
.w-card .pc-top svg { width: 30px; height: 30px; }
.w-card .pc-kind { font-size: 12px; color: rgba(255, 255, 255, .55); font-weight: 500; }
.w-card .pc-name { font-size: 14.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.w-card .pc-row { display: flex; justify-content: space-between; align-items: center; }
.w-card .pc-num { font-size: 13.5px; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.w-card .pc-op { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.fd { display: grid; gap: 6px; margin-top: 14px; }
.fd > label, .fd > span { font-size: 13.5px; font-weight: 500; color: var(--a-ink-2); }
.fd input, .fd select, .fd textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--a-line-2); background: #fff; color: var(--a-ink);
  font: inherit; font-size: 15px; font-weight: 500; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .2s var(--a-ease), box-shadow .2s var(--a-ease);
}
.fd textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.fd input::placeholder, .fd textarea::placeholder { color: var(--a-ink-3); font-weight: 400; }
.fd input:hover, .fd select:hover, .fd textarea:hover { border-color: #c9ccd1; }
.fd input:focus, .fd select:focus, .fd textarea:focus { border-color: var(--a-green); box-shadow: 0 0 0 3px rgba(0, 102, 245, .12); }
.fd.err input, .fd.err select { border-color: var(--a-late); box-shadow: 0 0 0 3px rgba(209, 52, 59, .1); }
.fd .msg { display: none; font-size: 12.5px; font-weight: 500; color: var(--a-late); }
.fd.err .msg { display: block; }
.fd .ico-in { position: relative; }
.fd .ico-in > .i { position: absolute; z-index: 1; left: 13px; top: 50%; transform: translateY(-50%); color: var(--a-ink-2); pointer-events: none; }
.fd .ico-in input { padding-left: 40px; }
.fd .ico-in .after { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 700; color: var(--a-ink-3); pointer-events: none; }
.fd .sel { position: relative; }
.fd .sel .i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--a-ink-2); }
.fd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fd-row > * { min-width: 0; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mcard { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--a-line-2); background: #fff; cursor: pointer; text-align: left; font-size: 14.5px; font-weight: 500; transition: border-color .2s var(--a-ease), background-color .2s var(--a-ease); }
.mcard:hover { background: #fafbfb; }
.mcard .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c5c8cc; flex: none; display: grid; place-items: center; }
.mcard[aria-pressed="true"] { border-color: var(--a-green); box-shadow: 0 0 0 1px var(--a-green) inset; }
.mcard[aria-pressed="true"] .radio { border-color: var(--a-green); }
.mcard[aria-pressed="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--a-green); }
.mcard .end { margin-left: auto; display: inline-flex; align-items: center; color: var(--a-ink-3); }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--a-line-2); background: #fff; font-size: 13px; font-weight: 500; color: var(--a-ink-2); cursor: pointer; }
.quick button:hover { color: var(--a-ink); background: #f6f7f8; }
.w-err { min-height: 18px; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--a-late); }

/* Réglages (ordinateur) */
.set-cols { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.prof-d { text-align: center; padding: 28px 22px 22px; }
.prof-d .av { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin: 0 auto 14px; background: var(--a-mint); color: var(--a-deep); font-size: 26px; font-weight: 700; }
.prof-d .av img { width: 100%; height: 100%; object-fit: cover; }
.prof-d h2 { font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.prof-d p { color: var(--a-ink-2); font-size: 14.5px; }
.prof-d .badge { margin-top: 12px; }
.prof-facts { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--a-line); text-align: left; font-size: 14px; }
.prof-facts div { display: flex; justify-content: space-between; gap: 10px; }
.prof-facts span:first-child { color: var(--a-ink-2); }
.prof-facts span:last-child { font-weight: 500; text-align: right; }
.rows-d { display: grid; }
.row-d { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--a-line); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; cursor: pointer; font: inherit; }
.row-d:last-child { border-bottom: 0; }
.row-d .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--a-soft); color: var(--a-deep); }
.row-d b { display: block; font-size: 15px; font-weight: 500; }
.row-d small { display: block; font-size: 13px; color: var(--a-ink-2); }
.row-d .end { display: flex; align-items: center; gap: 8px; color: var(--a-ink-3); font-size: 14px; font-weight: 500; }
.row-d.danger b { color: var(--a-late); }
.row-d.danger .ico { background: #fdecee; color: var(--a-late); }
.row-d.static { cursor: default; }

/* Vérification (ordinateur) */
.kyc-d { max-width: 680px; }

/* Panneau latéral : nouvelle facture */
.d-scrim { position: absolute; inset: 10px; border-radius: 20px; z-index: 60; background: rgba(10, 16, 36, .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s var(--a-ease), visibility .35s; }
.d-scrim.open { opacity: 1; visibility: visible; }
.drawer { position: absolute; top: 10px; right: 10px; bottom: 10px; z-index: 61; width: min(580px, calc(100% - 300px)); background: #fff; border-radius: 0 20px 20px 0; display: flex; flex-direction: column; transform: translateX(calc(100% + 20px)); transition: transform .5s var(--a-spring); box-shadow: -24px 0 60px -36px rgba(10, 16, 36, .45); }
.drawer.open { transform: none; }
.dr-close { position: absolute; left: -14px; top: 22px; width: 28px; height: 28px; border-radius: 8px; border: 0; display: grid; place-items: center; background: var(--a-green); color: #fff; cursor: pointer; padding: 0; }
.dr-close:hover { background: var(--a-green-2); }
.dr-head { padding: 18px 28px 16px; border-bottom: 1px solid var(--a-line); }
.dr-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.dr-body { flex: 1; min-height: 0; overflow: auto; padding: 20px 28px 26px; scrollbar-width: thin; scrollbar-color: #d5d7db transparent; }
.dr-foot { display: flex; align-items: center; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--a-line); }
.dr-foot .link-caps { margin-right: auto; }
.inv-no { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.inv-no h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.inv-no h3 span, .m-head h2 span { color: var(--a-green); }
.box-gray { background: #f5f6f7; border-radius: 12px; padding: 14px 16px 16px; margin-top: 14px; }
.box-gray > .fd:first-child { margin-top: 0; }
.box-gray .fd > span { color: var(--a-ink); font-weight: 700; font-size: 14px; }
.sec-t { font-size: 16px; font-weight: 700; letter-spacing: -.015em; margin: 22px 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seg.mini button { height: 28px; padding: 0 10px; font-size: 13px; }
.it-head, .it-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px 104px 28px; gap: 10px; align-items: center; }
.it-head { font-size: 13.5px; color: var(--a-ink-2); font-weight: 500; margin: 12px 0 6px; }
.it-row { margin-bottom: 8px; }
.it-row .fd { margin: 0; }
.it-row .tot { height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--a-line); color: var(--a-ink-2); font-weight: 500; font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; }
.it-row .icon-btn { width: 28px; height: 28px; border: 0; color: var(--a-ink-3); background: none; }
.it-row .icon-btn:hover { color: var(--a-late); background: #fdecee; }
.it-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.add-line { background: none; border: 0; padding: 0; cursor: pointer; color: var(--a-green); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.add-line:hover { color: var(--a-green-2); }
.it-total { display: flex; align-items: baseline; gap: 18px; font-size: 15px; color: var(--a-ink-2); }
.it-total b { font-size: 22px; font-weight: 900; letter-spacing: -.04em; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.fees { margin-top: 18px; padding: 16px; border-radius: 12px; border: 1px solid var(--a-line); }
.fees .sum { font-size: 14.5px; }

/* Fenêtre : fiche et aperçu de facture */
.modal-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; visibility: hidden; }
.modal-wrap .scrim { position: absolute; inset: 0; background: rgba(10, 16, 36, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--a-ease); }
.modal { position: relative; width: min(660px, 100%); max-height: calc(100vh - 48px); background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s var(--a-ease), transform .45s var(--a-spring); box-shadow: 0 30px 80px -24px rgba(10, 16, 36, .4); }
.modal-wrap.open { visibility: visible; }
.modal-wrap.open .scrim { opacity: 1; }
.modal-wrap.open .modal { opacity: 1; transform: none; }
.m-head { position: relative; padding: 22px 28px 16px; border-bottom: 1px solid var(--a-line); }
.m-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; padding-right: 44px; }
.m-head .sub { margin-top: 4px; font-size: 12.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--a-ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m-head .sub i { width: 1px; height: 12px; background: var(--a-line-2); }
.m-head .icon-btn { position: absolute; top: 20px; right: 22px; width: 32px; height: 32px; border-radius: 8px; }
.m-body { padding: 20px 28px 22px; overflow: auto; }
.m-foot { display: flex; align-items: center; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--a-line); }
.m-foot .sp { margin-left: auto; }
.bill { display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr 1fr; gap: 16px; align-items: start; }
.bill small { display: block; font-size: 13.5px; color: var(--a-ink-2); margin-bottom: 6px; }
.bill b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.bill .addr { color: var(--a-ink-2); font-size: 14.5px; line-height: 1.5; margin-top: 4px; }
.bill .dt { padding-top: 24px; }
.bill .dt b { font-size: 15px; font-weight: 500; }
.m-sec { font-size: 16px; font-weight: 700; letter-spacing: -.015em; margin: 22px 0 10px; }
.lines { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--a-line); border-radius: 12px; overflow: hidden; }
.lines th { text-align: left; font-size: 13.5px; font-weight: 500; color: var(--a-ink-2); background: #f6f7f8; padding: 12px 16px; }
.lines td { padding: 15px 16px; border-top: 1px solid var(--a-line); font-variant-numeric: tabular-nums; }
.lines .r { text-align: right; }
.m-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; margin-top: 16px; }
.m-total p { font-size: 13.5px; color: var(--a-ink-2); line-height: 1.55; }
.m-total .tt { display: flex; align-items: baseline; gap: 22px; color: var(--a-ink-2); font-size: 15px; white-space: nowrap; }
.m-total .tt b { font-size: 24px; font-weight: 900; letter-spacing: -.04em; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.m-total .xof { font-size: 13px; color: var(--a-ink-3); text-align: right; margin-top: 2px; }
.m-body .notice { margin-top: 18px; }
.m-body .timeline { margin-top: 18px; }
.m-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }

/* =====================================================================
   Page de paiement du client et reçu
   ===================================================================== */
.demo { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 13px; font-weight: 500; padding: 8px 16px; }
.pay-top { max-width: 1120px; margin: 0 auto; height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.top-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: -.035em; }
.top-logo svg { width: 32px; height: 32px; }
.secure { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--a-line-2); background: #fff; font-size: 14px; font-weight: 500; color: var(--a-ink-2); }
.payer { max-width: 600px; margin: 0 auto; padding: 4px 20px 56px; }
.pay-card { background: #fff; border-radius: 16px; border: 1px solid var(--a-line); overflow: hidden; animation: fade-up .5s var(--a-ease) both; }
.pay-card + .pay-card { margin-top: 14px; }
.pc-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--a-line); }
.pc-amt { font-size: 40px; font-weight: 900; letter-spacing: -.05em; line-height: 1.05; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.pc-due { margin-top: 4px; font-size: 14.5px; color: var(--a-ink-2); }
.pc-body { padding: 20px 26px 22px; }
.kv { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 14px; font-size: 15.5px; }
.kv dt { color: var(--a-ink-2); font-size: 14.5px; }
.kv dd { margin: 0; font-weight: 500; }
.kv .verified { display: inline-flex; align-items: center; gap: 4px; color: var(--a-ok); font-size: 13.5px; font-weight: 500; margin-left: 8px; vertical-align: 1px; }
.more { display: flex; justify-content: center; margin: 18px 0 2px; }
.more button { background: none; border: 0; cursor: pointer; color: var(--a-green); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 5px; }
.more button .i { transition: transform .3s var(--a-ease); }
.more button[aria-expanded="true"] .i { transform: rotate(180deg); }
.details { display: none; margin-top: 14px; }
.details.on { display: block; animation: fade-up .35s var(--a-ease) both; }
.pay-sec { padding: 20px 26px 4px; border-top: 1px solid var(--a-line); }
.pay-sec h2 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; }
.card-box { background: #f5f6f7; border-radius: 12px; padding: 16px 16px 18px; margin-top: 12px; }
.card-box h3 { font-size: 15.5px; font-weight: 700; }
.card-box > .fd:first-of-type { margin-top: 10px; }
.pay-sum { padding: 16px 26px 4px; }
.pay-foot { display: flex; align-items: center; gap: 10px; padding: 16px 26px 20px; }
.pay-foot .btn-d.primary { margin-left: auto; min-width: 200px; }
.pay-note { text-align: center; margin-top: 14px; }
.card-brands { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; pointer-events: none; color: var(--a-ink-3); }
.done-card { text-align: center; padding: 34px 26px 30px; }
.done-card .s-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: #e1e9f5; color: var(--a-ok); animation: pop .5s var(--a-spring) both; }
.done-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.done-card p { color: var(--a-ink-2); margin: 6px auto 20px; max-width: 380px; }
.rc-bar { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 14px; }
.recu .doc { border: 1px solid var(--a-line); border-radius: 16px; }

/* Notifications (verre, via glass.css) */
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; width: min(380px, calc(100vw - 32px));
  max-height: 70vh; overflow: auto; padding: 8px; border-radius: 22px; color: var(--a-ink);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; pointer-events: none;
  transition: opacity .3s var(--a-ease), transform .45s var(--a-spring);
}
.notif-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.notif-panel h3 { font-size: 15px; font-weight: 700; padding: 10px 12px 6px; }
.n-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; }
.n-row .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .8); color: var(--a-deep); flex: none; }
.n-row b { display: block; font-size: 14.5px; font-weight: 700; }
.n-row span span { font-size: 13px; color: rgba(0, 0, 0, .58); }
.n-row.unread b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--a-green); vertical-align: middle; }

/* Toast (verre sombre via glass.css) */
.toast {
  position: fixed; left: 50%; top: 18px; z-index: 100; max-width: min(92vw, 420px);
  padding: 13px 18px; border-radius: 16px; color: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.35;
  transform: translate(-50%, -2rem); opacity: 0; visibility: hidden;
}
.toast.show { animation: toast-in .45s var(--a-spring) forwards; }
.toast.hide { animation: toast-out .3s var(--a-ease) forwards; }
@keyframes toast-in { from { transform: translate(-50%, -2rem); opacity: 0; visibility: visible; } to { transform: translate(-50%, 0); opacity: 1; visibility: visible; } }
@keyframes toast-out { from { transform: translate(-50%, 0); opacity: 1; visibility: visible; } to { transform: translate(-50%, -2rem); opacity: 0; visibility: hidden; } }

/* Apparition des blocs */
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.8); } to { transform: none; } }
.rise { animation: fade-up .55s var(--a-ease) both; }
.rise:nth-child(2) { animation-delay: .05s; }
.rise:nth-child(3) { animation-delay: .1s; }
.rise:nth-child(4) { animation-delay: .15s; }
.rise:nth-child(n+5) { animation-delay: .2s; }
.txs > .tx { animation: fade-up .5s var(--a-ease) both; }
.txs > .tx:nth-child(2) { animation-delay: .04s; }
.txs > .tx:nth-child(3) { animation-delay: .08s; }
.txs > .tx:nth-child(4) { animation-delay: .12s; }
.txs > .tx:nth-child(n+5) { animation-delay: .16s; }

/* Impression du reçu */
@media print {
  body.app, body.desk { background: #fff; height: auto; overflow: visible; }
  .no-print, .toast, .top, .tabbar, .demo, .pay-top { display: none !important; }
  .payer { padding: 0; max-width: none; }
  .recu .doc { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .app *, .app *::before, .app *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Compléments ---------- */
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kchip.red { background: #fde8e9; color: var(--a-late); border-radius: 50%; }
@media (max-width: 1279px) { .tbl .md-hide { display: none; } .kpis.four .kpi { padding: 0 16px; } }
.menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 250px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--a-line); box-shadow: 0 16px 40px -16px rgba(20, 28, 60, .25); display: none; }
.menu.open { display: grid; animation: fade-up .25s var(--a-ease) both; }
.menu button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--a-ink); text-align: left; white-space: nowrap; }
.menu button:hover { background: var(--a-soft); }
.menu button .i { color: var(--a-ink-2); }
.q-x { border: 0; background: none; padding: 0 0 0 4px; cursor: pointer; color: inherit; display: inline-grid; }
.fd .suffix { position: relative; display: block; }
.fd .suffix input { padding-right: 70px; }
.fd .suffix .after { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 700; color: var(--a-ink-3); pointer-events: none; }
.fd.big-amt input { height: 58px; font-size: 26px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fd input[type=date] { position: relative; }
.fd input[type=date]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.m-head .sub .pillx { text-transform: none; letter-spacing: -.005em; margin-left: 4px; }
.m-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 44px; gap: 0 8px; align-items: end; padding-bottom: 6px; }
.m-line > .f:first-child { grid-column: 1 / -1; }
.m-line + .m-line { border-top: 1px solid var(--a-line); padding-top: 12px; }
.m-line > * { min-width: 0; }
.m-line .f { margin-bottom: 10px; }
.m-line .circle-btn { margin-bottom: 14px; width: 44px; height: 44px; }
.desk .page > .d-grid > .rise:nth-child(1) { animation-delay: 0s; }
.w-cols > .d-grid { min-width: 0; }
.pay-card .methods .mcard { cursor: default; }

.tbl .c-to b { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tbl .c-to small { display: block; color: var(--a-ink-3); font-size: 12.5px; padding-left: 20px; }
.card.state h2 { font-size: 22px; margin-bottom: 8px; }

/* Icônes sur fond sombre : toujours blanches */
.chip .i, .hb-eye { color: #fff; }

/* ---------- Virement bancaire ---------- */
.p-wire { background: #fff; color: #0e317a; box-shadow: inset 0 0 0 1px #9fb5dc; }
.st-wire::before { background: #fff; box-shadow: inset 0 0 0 2px var(--a-ok); }
.methods.one { grid-template-columns: 1fr; }
@media (max-width: 480px) { .methods { grid-template-columns: 1fr; } }
.wire-box h3 { margin-bottom: 6px; }
.wire-lead { font-size: 14px; color: var(--a-ink-2); line-height: 1.5; margin-bottom: 12px; }
.wire-lead b { color: var(--a-ink); }
.wire-kv { margin: 0 0 12px; background: #fff; border: 1px solid var(--a-line); border-radius: 12px; overflow: hidden; }
.wire-kv > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px 10px 14px; }
.wire-kv > div + div { border-top: 1px solid var(--a-line); }
.wire-kv dt { font-size: 13.5px; color: var(--a-ink-2); }
.wire-kv dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; font-weight: 500; }
.wire-kv dd > span { min-width: 0; overflow-wrap: anywhere; }
.wire-v { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: .01em; }
.wire-kv .ref { background: #f0f4fa; }
.wire-kv .ref .wire-v { font-weight: 900; color: var(--a-deep); letter-spacing: .02em; }
.copy-x { flex: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--a-line-2); background: #fff; color: var(--a-ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .2s var(--a-ease), color .2s var(--a-ease); }
.copy-x:hover { background: #f6f7f8; color: var(--a-ink); }
.done-card .s-ico.wait { background: #fff1d4; color: #b77900; }
@media (max-width: 480px) { .wire-kv > div { grid-template-columns: 1fr; gap: 2px; } }
