/* ============================================================
   Best Cash — banque en ligne
   Même langage visuel que le site vitrine : blanc, marron clair, noir.
   ============================================================ */

body.app, body.public {
  background: var(--paper);
  min-height: 100vh;
}

.i { flex: none; display: block; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-50); }
.small { font-size: 0.82rem; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--sand-100);
  padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------- En-tête public ---------------- */
.public-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 251, 248, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.public-header__inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.public-header__nav { display: flex; align-items: center; gap: 20px; }
.public-header__nav > a:not(.btn) { font-size: 0.86rem; color: var(--ink-70); font-weight: 500; }
.public-header__nav > a:not(.btn):hover { color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 0.82rem; }
.btn--sand { background: var(--sand-100); color: var(--ink); box-shadow: none; }
.btn--sand:hover { background: var(--sand-200); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(150deg, var(--brown-500), var(--ink));
  color: var(--sand-100); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.03em; line-height: 1.05;
}
.brand__name span {
  display: block; font-family: var(--font-sans); font-size: 0.54rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-50); margin-top: 3px;
}
.brand--light { color: var(--sand-100); }
.brand--light .brand__name span { color: rgba(244, 236, 225, 0.55); }

.public-footer { border-top: 1px solid var(--line-soft); padding: 28px 24px; margin-top: 40px; }
.public-footer__inner {
  max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; color: var(--ink-50); font-size: 0.8rem;
}
.public-footer a { color: var(--ink-70); }

/* ---------------- Authentification ---------------- */
.auth {
  min-height: calc(100vh - 140px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}
.auth__visual, .auth__panel, .auth__card { min-width: 0; }
.auth__visual {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #2a211a 0%, #140f0c 45%, #0b0907 100%);
  color: var(--sand-100); padding: clamp(32px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(244, 236, 225, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 236, 225, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 20%, #000 20%, transparent 75%);
}
.auth__eyebrow {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brown-300); display: inline-flex; align-items: center; gap: 12px;
}
.auth__eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brown-400); }
.auth__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.02; margin: 18px 0 14px;
}
.auth__title em { font-style: normal; color: var(--brown-300); }
.auth__lead { color: rgba(244, 236, 225, 0.66); max-width: 42ch; font-size: 0.96rem; }
.auth__points { display: grid; gap: 12px; margin-top: 26px; padding: 0; list-style: none; }
.auth__points li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: rgba(244, 236, 225, 0.78); }
.auth__points .i { color: var(--brown-300); }
.auth__panel {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 5vw, 56px);
}
.auth__card {
  width: min(430px, 100%);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-m);
}
.auth__card h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em; margin: 0 0 6px; }
.auth__card .lede { color: var(--ink-50); font-size: 0.88rem; margin: 0 0 22px; }
.auth__aside { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.auth__aside a { font-size: 0.82rem; color: var(--brown-600); font-weight: 600; }
.auth__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 0.84rem; color: var(--ink-50); }

/* ---------------- Champs ---------------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 7px; color: var(--ink-70); }
.input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 0.92rem;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--ink-30); }
.input:focus { outline: none; border-color: var(--brown-400); box-shadow: 0 0 0 4px rgba(168, 129, 90, 0.14); }
select.input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8079' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
textarea.input { min-height: 108px; resize: vertical; }
.checkbox { width: 17px; height: 17px; accent-color: var(--ink); margin-right: 8px; vertical-align: -3px; }
.field--check { display: flex; align-items: flex-start; gap: 4px; font-size: 0.84rem; color: var(--ink-70); }
.field--check label { display: inline; font-weight: 500; font-size: 0.84rem; color: var(--ink-70); }
.helptext { display: block; font-size: 0.75rem; color: var(--ink-50); margin-top: 5px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; font-size: 0.78rem; color: #b4472b; }

/* ---- Toggle « afficher le mot de passe » ---- */
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; background: transparent;
  color: var(--ink-30); cursor: pointer; border-radius: 8px;
  transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--ink); background: rgba(168, 129, 90, 0.12); }
.pw-toggle:focus-visible { outline: 2px solid var(--brown-400); outline-offset: 1px; }
.pw-toggle .i { display: block; }
.pw-toggle__eye-off { display: none; }
.pw-toggle.is-active .pw-toggle__eye { display: none; }
.pw-toggle.is-active .pw-toggle__eye-off { display: block; }

.field.has-error .input { border-color: #d9a08c; background: #fdf7f4; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row > div { flex: 1 1 200px; }
.radio-row label {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  font-size: 0.87rem; cursor: pointer; transition: border-color .2s, background .2s;
}
.radio-row input { accent-color: var(--ink); }
.radio-row label:has(input:checked) { border-color: var(--brown-400); background: var(--sand-50); }

/* ---------------- Messages ---------------- */
.flash-wrap { max-width: 1180px; margin: 18px auto 0; padding: 0 24px; display: grid; gap: 8px; }
.flash-wrap--app { max-width: none; padding: 16px 32px 0; }
.flash {
  padding: 12px 16px; border-radius: 12px; font-size: 0.86rem;
  border: 1px solid var(--sand-200); background: var(--sand-50); color: var(--ink-70);
}
.flash--success { border-color: #c9dcc4; background: #f2f8ef; color: #33502c; }
.flash--error { border-color: #e2c3b8; background: #fdf3ef; color: #8c3a22; }
.flash--info { border-color: var(--sand-200); }

/* ---------------- Coquille application ---------------- */
.app-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }

.side {
  position: sticky; top: 0; align-self: start;
  height: 100vh; display: flex; flex-direction: column; gap: 18px;
  padding: 22px 18px; background: var(--ink); color: var(--sand-100);
  overflow-y: auto;
}
.side__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.side__close { display: none; background: none; border: 0; color: var(--sand-200); cursor: pointer; }
.side__nav { display: grid; gap: 3px; }
.side__link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 0.88rem; font-weight: 500; color: rgba(244, 236, 225, 0.66);
  text-decoration: none; transition: background .2s, color .2s;
}
.side__link:hover { background: rgba(244, 236, 225, 0.07); color: var(--sand-100); }
.side__link.is-active {
  background: linear-gradient(120deg, rgba(194, 161, 124, 0.24), rgba(194, 161, 124, 0.08));
  color: var(--sand-100); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(194, 161, 124, 0.28);
}
.side__promo {
  margin-top: auto; padding: 16px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(194, 161, 124, 0.18), rgba(244, 236, 225, 0.04));
  border: 1px solid rgba(194, 161, 124, 0.22);
}
.side__promo-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin: 0 0 4px; }
.side__promo-text { font-size: 0.76rem; color: rgba(244, 236, 225, 0.6); margin: 0 0 12px; line-height: 1.5; }
.side__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(244, 236, 225, 0.12); }
.side__user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side__user-name { font-size: 0.82rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.side__user-name small { display: block; font-weight: 400; font-size: 0.7rem; color: rgba(244, 236, 225, 0.5); overflow: hidden; text-overflow: ellipsis; }
.side__logout { color: rgba(244, 236, 225, 0.6); padding: 8px; border-radius: 10px; }
.side__logout:hover { background: rgba(244, 236, 225, 0.1); color: var(--sand-100); }

.avatar {
  width: 36px; height: 36px; flex: none; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700; font-size: 0.78rem;
  background: var(--sand-100); color: var(--brown-700);
  font-family: var(--font-display);
}
.avatar--sm { width: 34px; height: 34px; font-size: 0.74rem; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 32px; background: rgba(253, 251, 248, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__burger { display: none; background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 9px; cursor: pointer; }
.topbar__title { min-width: 0; }
.topbar__eyebrow {
  display: block; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brown-500); font-weight: 600;
}
.topbar h1 { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.03em; margin: 2px 0 0; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar__icon {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-70);
  transition: border-color .2s, color .2s;
}
.topbar__icon:hover { border-color: var(--sand-300); color: var(--ink); }
.dot-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--brown-600); color: #fff;
  font-size: 0.62rem; font-weight: 700; display: grid; place-items: center;
}
.topbar__cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--sand-100);
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease), background .2s;
}
.topbar__cta:hover { transform: translateY(-1px); background: #1b1611; }

.page { padding: 26px 32px 40px; display: grid; gap: 22px; }
.app-foot {
  margin-top: auto; padding: 18px 32px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.76rem; color: var(--ink-50);
}

/* ---------------- Blocs ---------------- */
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 22px;
}
.panel--flush { padding: 0; overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel__head h2 { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -0.02em; margin: 0; }
.panel__head a { font-size: 0.8rem; font-weight: 600; color: var(--brown-600); }
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 20px; }
.stack > .bank-card { align-self: start; }

/* Carte solde */
.balance-hero {
  position: relative; overflow: hidden; color: var(--sand-100);
  background: radial-gradient(120% 120% at 15% 0%, #2b221b 0%, #15100c 48%, #0b0907 100%);
  border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 30px);
}
.balance-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(244, 236, 225, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 236, 225, 0.045) 1px, transparent 1px);
  background-size: 52px 52px; pointer-events: none;
  mask-image: radial-gradient(circle at 80% 10%, #000 10%, transparent 70%);
}
.balance-hero__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 236, 225, 0.55); }
.balance-hero__amount {
  font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; margin: 6px 0 4px;
}
.balance-hero__amount small { font-size: 0.42em; font-weight: 600; opacity: 0.5; margin-left: 4px; }
.balance-hero__meta { font-size: 0.8rem; color: rgba(244, 236, 225, 0.6); display: flex; gap: 14px; flex-wrap: wrap; }
.balance-hero__meta strong { color: var(--sand-100); font-weight: 600; }
.balance-hero__actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.balance-hero .btn { padding: 10px 16px; font-size: 0.82rem; }

/* Statistiques */
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; }
.stat__label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-50); }
.stat__value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; }
.stat__hint { font-size: 0.76rem; color: var(--ink-50); margin-top: 2px; }
.stat--in .stat__value { color: #3f6b35; }
.stat--out .stat__value { color: var(--brown-600); }

/* Comptes */
.account-card {
  position: relative; overflow: hidden; display: grid; gap: 10px;
  padding: 20px; border-radius: var(--radius-l); text-decoration: none;
  background: var(--white); border: 1px solid var(--line); color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
}
.account-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--sand-300); }
.account-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-card__kind { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown-500); font-weight: 600; }
.account-card__label { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.account-card__balance { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; }
.account-card__iban { font-size: 0.76rem; color: var(--ink-50); letter-spacing: 0.04em; }
.account-card--main { background: linear-gradient(160deg, #fff, var(--sand-50)); }
.account-card--savings { background: linear-gradient(160deg, #fff, #f6f3ed); }

/* Carte bancaire (visuel) */
.bank-card {
  position: relative; overflow: hidden; aspect-ratio: 1.586;
  border-radius: 20px; padding: clamp(16px, 2.4vw, 22px);
  color: var(--sand-100); display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 120% at 20% 0%, #34291f 0%, #1a1410 45%, #0c0a08 100%);
  box-shadow: var(--shadow-l);
}
.bank-card--frozen { filter: grayscale(0.55) brightness(0.9); }
.bank-card--inactive { filter: grayscale(0.85) brightness(0.82); opacity: 0.92; }
.bank-card__lock { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #f4ece1; opacity: 0.85; }
.card-notice { border: 1px solid var(--sand-300); background: var(--sand-50); border-radius: var(--radius-m); padding: 13px 15px; font-size: 0.82rem; line-height: 1.55; color: var(--ink-70); }
.card-notice strong { color: var(--ink); }
.card-notice .btn { display: inline-flex; }
.bank-card--virtual { background: radial-gradient(120% 120% at 20% 0%, #4a3a2b 0%, #241b14 45%, #100c09 100%); }
.bank-card::after {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -12%; top: -30%;
  background: radial-gradient(circle, rgba(194, 161, 124, 0.4), transparent 62%);
  filter: blur(6px);
}
.bank-card__top { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.bank-card__brand { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.bank-card__brand span { display: block; font-family: var(--font-sans); font-size: 0.48rem; letter-spacing: 0.2em; opacity: 0.6; margin-top: 2px; }
.bank-card__chip {
  width: 34px; height: 26px; border-radius: 6px; margin-top: 10px;
  background: linear-gradient(135deg, #d8bd93, #a8815a 60%, #c2a17c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.bank-card__number { font-family: var(--font-display); font-size: clamp(0.95rem, 1.8vw, 1.15rem); letter-spacing: 0.14em; position: relative; z-index: 1; }
.bank-card__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.bank-card__holder, .bank-card__exp { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.62; }
.bank-card__holder strong, .bank-card__exp strong { display: block; font-size: 0.8rem; letter-spacing: 0.06em; opacity: 1; margin-top: 3px; }
.bank-card__logo { font-weight: 800; font-size: 0.9rem; letter-spacing: -0.02em; }

/* Opérations */
.tx-list { display: grid; }
.tx {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit;
}
.tx:last-child { border-bottom: 0; }
.tx:hover { background: var(--paper); }
.tx__icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sand-100); color: var(--brown-600);
}
.tx--in .tx__icon { background: #eef4ea; color: #3f6b35; }
.tx__label { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx__meta { font-size: 0.76rem; color: var(--ink-50); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx__amount { font-weight: 700; font-size: 0.92rem; text-align: right; font-variant-numeric: tabular-nums; }
.tx--in .tx__amount { color: #3f6b35; }
.tx__balance { font-size: 0.72rem; color: var(--ink-30); text-align: right; }

/* Pastilles */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: var(--sand-100); color: var(--brown-700);
}
.pill--ok { background: #eef4ea; color: #3f6b35; }
.pill--warn { background: #fdf3e6; color: #8a5b1e; }
.pill--off { background: #f2efeb; color: var(--ink-50); }
.pill--ink { background: var(--ink); color: var(--sand-100); }

/* Graphique en barres */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 148px; padding-top: 8px; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.chart__bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; width: 100%; justify-content: center; }
.chart__bar { width: 9px; border-radius: 4px 4px 2px 2px; min-height: 3px; transition: height .6s var(--ease); }
.chart__bar--in { background: linear-gradient(180deg, var(--brown-300), var(--brown-500)); }
.chart__bar--out { background: var(--sand-300); }
.chart__label { font-size: 0.68rem; color: var(--ink-50); text-transform: capitalize; }
.chart__legend { display: flex; gap: 14px; font-size: 0.74rem; color: var(--ink-50); margin-top: 10px; }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__dot { width: 8px; height: 8px; border-radius: 3px; }
.chart__dot--in { background: var(--brown-400); }
.chart__dot--out { background: var(--sand-300); }

/* Dépenses par catégorie */
.cat { display: grid; gap: 6px; margin-bottom: 14px; }
.cat:last-child { margin-bottom: 0; }
.cat__head { display: flex; justify-content: space-between; font-size: 0.82rem; }
.cat__head strong { font-weight: 600; }
.cat__track { height: 7px; border-radius: 999px; background: var(--sand-100); overflow: hidden; }
.cat__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brown-300), var(--brown-500)); }

/* Filtres */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.filters .input { width: auto; min-width: 150px; padding: 9px 12px; font-size: 0.84rem; }
.filters .grow { flex: 1 1 220px; }
.filters .btn { padding: 9px 15px; font-size: 0.82rem; }

/* Tableau */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-50); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.table tfoot td { font-weight: 700; border-top: 1px solid var(--line); }

/* Vides */
.empty { padding: 34px 20px; text-align: center; color: var(--ink-50); }
.empty__icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
  display: grid; place-items: center; background: var(--sand-100); color: var(--brown-500);
}
.empty h3 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin: 0 0 4px; }
.empty p { font-size: 0.84rem; margin: 0 auto; max-width: 42ch; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.84rem; border: 1px solid var(--line); background: var(--white); color: var(--ink-70);
}
.pager .is-current { background: var(--ink); color: var(--sand-100); border-color: var(--ink); }

/* Actions rapides */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick a {
  display: grid; gap: 8px; padding: 16px; border-radius: var(--radius-m);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.quick a:hover { transform: translateY(-2px); border-color: var(--sand-300); box-shadow: var(--shadow-s); }
.quick__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--sand-100); }
.quick span { font-size: 0.84rem; font-weight: 600; }
.quick small { color: var(--ink-50); font-size: 0.74rem; }

/* Détail virement */
.receipt { max-width: 620px; }
.receipt__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.receipt__check { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: #eef4ea; color: #3f6b35; }
.receipt__amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; margin: 18px 0 6px; }
.receipt__rows { display: grid; gap: 0; margin-top: 18px; }
.receipt__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.86rem; }
.receipt__row span { color: var(--ink-50); }
.receipt__row strong { text-align: right; font-weight: 600; }

/* Profil */
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-head .avatar { width: 58px; height: 58px; font-size: 1.1rem; }
.profile-head h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; letter-spacing: -0.02em; }
.kv { display: grid; gap: 0; }
.kv__row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.85rem; }
.kv__row span { color: var(--ink-50); }
.kv__row strong { font-weight: 600; text-align: right; }

/* Liste de messages */
.msg { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.msg:last-child { border-bottom: 0; }
.msg__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.msg__head strong { font-size: 0.9rem; }
.msg__body { font-size: 0.85rem; color: var(--ink-70); margin: 6px 0 0; }
.msg__answer { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sand-50); border: 1px solid var(--sand-200); font-size: 0.85rem; }
.msg__answer b { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-500); margin-bottom: 4px; }

.overlay {
  position: fixed; inset: 0; background: rgba(13, 11, 9, 0.5);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 45;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: 0 auto 0 0; width: 282px; z-index: 50;
    transform: translateX(-102%); transition: transform .3s var(--ease);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  }
  .side.is-open { transform: none; }
  .side__close { display: block; }
  .topbar { padding: 14px 18px; }
  .topbar__burger { display: grid; place-items: center; }
  .page { padding: 20px 18px 34px; }
  .app-foot { padding: 16px 18px; }
  .flash-wrap--app { padding: 14px 18px 0; }
  .auth { grid-template-columns: 1fr; }
  .auth__visual { padding: 34px 24px; }
  .auth__points { display: none; }
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar__cta span { display: none; }
  .topbar__cta { padding: 10px 12px; }
  .topbar h1 { font-size: 1.05rem; }
  .public-header__nav > a:not(.btn) { display: none; }
  .panel { padding: 18px; }
  .tx { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .tx__icon { width: 34px; height: 34px; border-radius: 10px; }
  .chart { height: 120px; gap: 8px; }
}
@media (max-width: 460px) {
  .quick { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick a { padding: 13px; }
  .grid-4 { grid-template-columns: 1fr; }
  .filters .input { width: 100%; }
  .balance-hero__amount { font-size: 1.9rem; }
}

/* ---------- Correctifs de mise en page ---------- */

/* La barre latérale sombre couvre toute la hauteur de la page, même quand le
   contenu est plus long qu'un écran (le panneau, lui, reste collé en haut). */
@media (min-width: 1025px) {
  .app-shell {
    background-image: linear-gradient(90deg, var(--ink) 0 268px, transparent 268px);
    background-repeat: no-repeat;
  }
}

/* La carte bancaire des écrans d'authentification garde ses proportions. */
.auth__visual .bank-card {
  flex: none;
  align-self: flex-start;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1.62;
}

/* Barres du graphique un peu plus lisibles */
.chart__bar { width: 11px; }

/* ---------- Lisibilité des lignes d'opération ---------- */
.tx__body { min-width: 0; display: block; }
.tx__label, .tx__meta { display: block; }
.tx__label { line-height: 1.35; }

/* ---------- Barre supérieure : le titre ne pousse plus les actions ---------- */
.topbar__title { min-width: 0; flex: 1 1 auto; }
.topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { flex: 0 0 auto; }
@media (max-width: 900px) {
  .topbar__icon[href$="/messages/"] { display: none; }
  .topbar { gap: 10px; padding: 12px 14px; }
  .page { padding: 16px 14px 30px; }
}
@media (max-width: 720px) {
  .topbar__eyebrow { font-size: 0.6rem; letter-spacing: 0.12em; }
  .topbar h1 { font-size: 1rem; }
  .avatar--sm { display: none; }
}

/* Sur mobile, la ligne secondaire passe à la ligne plutôt que d'être coupée. */
.tx__body { overflow: hidden; }
@media (max-width: 720px) {
  .tx__meta { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
  .tx__amount { font-size: 0.88rem; }
}

/* ============================================================
   PAGES PUBLIQUES (accueil, tarifs, sécurité, contact, légales)
   ============================================================ */

/* --- En-tête public à trois zones --- */
.public-header__inner {
  max-width: 1240px;
  gap: 24px;
}
.public-header__nav { margin-left: auto; }
.public-header__nav a.is-current { color: var(--ink); font-weight: 600; }
.public-header__nav a.is-current::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--brown-400); margin-top: 4px;
}
.public-header__actions { display: flex; align-items: center; gap: 8px; }
.public-header__burger {
  display: none; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white);
  place-items: center; cursor: pointer; color: var(--ink);
}
.public-nav-mobile { display: none; }

/* --- Héros de la page d'accueil --- */
.pub-hero {
  position: relative;
  padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(194, 161, 124, 0.16), transparent 62%),
    radial-gradient(70% 60% at 0% 20%, rgba(233, 220, 203, 0.5), transparent 60%),
    var(--paper);
  overflow: clip;
}
.pub-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.pub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 18px 0 20px;
}
.pub-hero h1 em { font-style: normal; color: var(--brown-400); }
.pub-hero__lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ink-70); max-width: 50ch; margin: 0 0 26px; }
.pub-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pub-hero__points {
  display: flex; gap: 20px; flex-wrap: wrap; margin: 24px 0 0; padding: 0; list-style: none;
  font-size: 0.82rem; color: var(--ink-50);
}
.pub-hero__points li { display: inline-flex; align-items: center; gap: 7px; }
.pub-hero__points .i { color: var(--brown-500); }

.pub-hero__visual { position: relative; padding-bottom: 34px; }
.pub-hero__mock { border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.pub-hero__mock .balance-hero__amount { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.pub-hero__tx { margin-top: 18px; display: grid; gap: 0; }
.pub-hero__tx .tx { border-bottom: 1px solid rgba(244, 236, 225, 0.12); padding: 10px 0; }
.pub-hero__tx .tx:last-child { border-bottom: 0; }
.pub-hero__tx .tx__label { color: var(--sand-100); font-size: 0.85rem; }
.pub-hero__tx .tx__meta { color: rgba(244, 236, 225, 0.5); }
.pub-hero__tx .tx__icon { background: rgba(244, 236, 225, 0.1); color: var(--sand-200); }
.pub-hero__tx .tx__amount { color: var(--sand-100); font-size: 0.86rem; }
.pub-hero__tx .tx--in .tx__amount { color: #b8d8a8; }
.pub-hero__card {
  position: absolute; right: -10px; bottom: -18px;
  width: min(62%, 260px);
  transform: rotate(-7deg);
  box-shadow: 0 30px 60px -24px rgba(13, 11, 9, 0.55);
}

/* --- Bandeau de chiffres --- */
.pub-strip { background: var(--ink); color: var(--sand-100); }
.pub-strip__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 26px 24px;
}
.pub-strip__inner div { display: grid; gap: 2px; }
.pub-strip__inner strong {
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em;
}
.pub-strip__inner span { font-size: 0.78rem; color: rgba(244, 236, 225, 0.55); }

/* --- Blocs de contenu --- */
.pub-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pub-feature {
  padding: 24px; border-radius: var(--radius-l); background: var(--white);
  border: 1px solid var(--line); display: grid; gap: 10px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
}
.pub-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--sand-300); }
.pub-feature h3 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.02em; margin: 0; }
.pub-feature p { margin: 0; color: var(--ink-70); font-size: 0.9rem; }
.pub-feature a { font-size: 0.82rem; font-weight: 600; color: var(--brown-600); }
.pub-feature__icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--ink); color: var(--sand-100);
}

.pub-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pub-step {
  padding: 24px; border-radius: var(--radius-l); background: var(--white);
  border: 1px solid var(--line);
}
.pub-step__num {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  color: var(--brown-400); letter-spacing: 0.06em;
}
.pub-step h3 { font-family: var(--font-display); font-size: 1.02rem; margin: 10px 0 8px; letter-spacing: -0.02em; }
.pub-step p { margin: 0; color: var(--ink-70); font-size: 0.9rem; }

.pub-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.pub-split__text h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.035em; margin: 14px 0 12px; }
.pub-split__text p { color: var(--ink-70); margin: 0 0 14px; }
.pub-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pub-check li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-70); }
.pub-check .i { color: var(--brown-500); margin-top: 2px; }
.pub-check strong { display: block; color: var(--ink); font-size: 0.9rem; }
.pub-check--sm li { font-size: 0.85rem; }

/* --- En-tête de page interne --- */
.pub-page-head {
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, var(--sand-50), var(--paper));
  border-bottom: 1px solid var(--line-soft);
}
.pub-page-head h1 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.04em; line-height: 1.05; margin: 14px 0 12px;
}
.pub-page-head__lead { color: var(--ink-70); max-width: 58ch; margin: 0; font-size: 1rem; }

/* --- Offres / tarifs --- */
.pub-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pub-offer {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: var(--radius-l);
  background: var(--white); border: 1px solid var(--line);
}
.pub-offer--featured { background: var(--ink); color: var(--sand-100); border-color: var(--ink); box-shadow: var(--shadow-l); }
.pub-offer--featured h2, .pub-offer--featured .pub-offer__price { color: var(--sand-100); }
.pub-offer--featured .pub-check li { color: rgba(244, 236, 225, 0.72); }
.pub-offer--featured .pub-check .i { color: var(--brown-300); }
.pub-offer__tag {
  align-self: flex-start; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--sand-100); color: var(--brown-700); font-weight: 600;
}
.pub-offer__tag--dark { background: rgba(244, 236, 225, 0.14); color: var(--sand-200); }
.pub-offer h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 0; letter-spacing: -0.02em; }
.pub-offer__price {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; letter-spacing: -0.04em;
  margin: 0; line-height: 1;
}
.pub-offer__price small { font-family: var(--font-sans); font-size: 0.3em; font-weight: 500; letter-spacing: 0; color: var(--ink-50); margin-left: 6px; }
.pub-offer .pub-check { flex: 1; }
.pub-offer--featured .btn { background: var(--sand-100); color: var(--ink); }

/* --- Sécurité --- */
.pub-security { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pub-security__item {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--radius-l);
  background: var(--white); border: 1px solid var(--line);
}
.pub-security__item h2 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.pub-security__item p { margin: 0; color: var(--ink-70); font-size: 0.9rem; }

/* --- Contact --- */
.pub-contact { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; align-items: start; }

/* --- Mentions légales --- */
.pub-legal { display: grid; gap: 26px; max-width: 780px; }
.pub-legal h2 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.pub-legal p { color: var(--ink-70); margin: 0 0 8px; }

/* --- Pied de page public --- */
.public-footer { background: var(--ink); color: rgba(244, 236, 225, 0.7); margin-top: 0; padding: 48px 24px 26px; }
.public-footer__grid {
  max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
}
.public-footer__brand .brand { color: var(--sand-100); margin-bottom: 12px; }
.public-footer__brand p { font-size: 0.85rem; margin: 0 0 10px; max-width: 34ch; }
.public-footer__brand a { color: var(--sand-200); }
.public-footer__col { display: grid; gap: 8px; align-content: start; }
.public-footer__col h3 {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244, 236, 225, 0.45); margin: 0 0 4px; font-weight: 600;
}
.public-footer__col a { font-size: 0.85rem; color: rgba(244, 236, 225, 0.78); }
.public-footer__col a:hover { color: var(--sand-100); }
.public-footer__legal {
  max-width: 1180px; margin: 32px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(244, 236, 225, 0.14);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.75rem; color: rgba(244, 236, 225, 0.45);
}
.public-footer__legal a { color: rgba(244, 236, 225, 0.65); }

/* --- Responsive des pages publiques --- */
@media (max-width: 1100px) {
  .pub-hero__grid { grid-template-columns: 1fr; }
  .pub-hero__visual { order: -1; }
  .pub-hero__card { width: min(48%, 220px); right: 4px; bottom: -6px; }
  .pub-features, .pub-security { grid-template-columns: 1fr 1fr; }
  .pub-offers { grid-template-columns: 1fr; }
  .pub-strip__inner { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
}
/* Le menu public tient jusqu'à 900 px : quatre entrées courtes + deux boutons. */
@media (max-width: 900px) {
  .public-header__nav { display: none; }
  .public-header__burger { display: grid; }
  .public-nav-mobile {
    display: none; padding: 10px 24px 20px; border-top: 1px solid var(--line-soft);
    background: var(--paper); gap: 0;
  }
  .public-nav-mobile.is-open { display: grid; }
  .public-nav-mobile a { padding: 12px 2px; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
}
@media (max-width: 860px) {
  .pub-split, .pub-contact { grid-template-columns: 1fr; }
  .pub-steps { grid-template-columns: 1fr; }
  .public-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .public-header__inner { padding: 12px 18px; gap: 12px; }
  .public-header__actions .btn--ghost { display: none; }
}
@media (max-width: 620px) {
  .pub-features, .pub-security { grid-template-columns: 1fr; }
  .pub-hero { padding-top: 26px; }
  .pub-hero__card { width: 52%; right: -4px; }
  .pub-hero__points { gap: 10px 16px; font-size: 0.78rem; }
  .public-footer__grid { grid-template-columns: 1fr; }
  .public-footer { padding: 36px 18px 22px; }
  .pub-offer__price { font-size: 2rem; }
  .pub-strip__inner { grid-template-columns: 1fr; }
}

/* ---------- Barre de chargement de page ---------- */
.page-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 3px;
  z-index: 4000; pointer-events: none; opacity: 0;
  transition: opacity 0.25s ease;
}
.page-progress.is-active { opacity: 1; }
.page-progress span {
  display: block; height: 100%; width: 0; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--brown-600), #c2a17c 60%, var(--brown-500));
  box-shadow: 0 0 14px rgba(138, 101, 68, 0.75);
  transition: width 0.16s ease-out;
}
.page-progress.is-done { opacity: 0; transition: opacity 0.32s ease 0.08s; }
.page-loading {
  position: fixed; left: 50%; bottom: 26px; z-index: 4000;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(13, 11, 9, 0.93); color: var(--sand-100);
  font-size: 0.78rem; letter-spacing: 0.01em;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.65);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.page-loading.is-visible { opacity: 1; transform: translate(-50%, 0); }
.page-loading__spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(244, 236, 225, 0.25); border-top-color: var(--sand-100);
  animation: pageSpin 0.7s linear infinite;
}
@keyframes pageSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .page-loading__spin { animation-duration: 2.4s; }
  .page-progress span { transition: none; }
}

/* ==========================================================================
   ACCUEIL PUBLIC — refonte premium (v2)
   Typographie plus ample, profondeur, micro-interactions, grilles fluides.
   Tout est préfixé par .home ou .hp- pour ne pas toucher aux autres pages.
   ========================================================================== */

.home {
  --hp-radius: 28px;
  --hp-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--paper);
}

/* Rythme vertical et titres plus affirmés */
.home .section { padding: clamp(64px, 7.5vw, 116px) 0; }
.home .section--tight { padding: clamp(48px, 5.5vw, 76px) 0; }
.home .section--sand {
  background: linear-gradient(180deg, var(--sand-50) 0%, #f8f2ea 100%);
}
.home .section-head { max-width: 680px; margin-bottom: clamp(34px, 4vw, 58px); }
.home .section-head h2 {
  font-size: clamp(1.95rem, 3.3vw, 3rem);
  line-height: 1.03; letter-spacing: -0.032em; margin-bottom: 14px;
}
.home .section-head p { font-size: clamp(0.95rem, 1.05vw, 1.04rem); line-height: 1.6; }
.home .eyebrow { letter-spacing: 0.16em; }

.btn--light {
  --bg: var(--sand-100); --fg: var(--ink);
  background: var(--sand-100); color: var(--ink);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.55);
}
.btn--light:hover { background: #fff; color: var(--ink); }
.eyebrow--light { color: rgba(244, 236, 225, 0.52); }
.eyebrow--light::before { background: rgba(244, 236, 225, 0.32); }

/* Entrée en scène discrète */
@keyframes hpIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hpFade { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   HÉROS
   -------------------------------------------------------------------------- */
.hp-hero {
  position: relative; isolation: isolate;
  padding: clamp(36px, 4.6vw, 76px) 0 clamp(56px, 6.6vw, 104px);
  background:
    radial-gradient(58% 62% at 88% -6%, rgba(194, 161, 124, 0.26) 0%, rgba(253, 251, 248, 0) 62%),
    radial-gradient(48% 58% at 4% 12%, rgba(233, 220, 203, 0.6) 0%, rgba(253, 251, 248, 0) 66%),
    var(--paper);
}
.hp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 11, 9, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 11, 9, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%);
}
.hp-hero__grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 4.6vw, 72px); align-items: center;
}
.hp-hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.1rem); line-height: 0.99;
  letter-spacing: -0.042em; margin: 16px 0 20px; max-width: 14ch;
  animation: hpIn 0.8s var(--hp-ease) both;
}
.hp-hero h1 em { font-style: normal; color: var(--brown-500); }
.hp-hero__lead {
  font-size: clamp(0.98rem, 1.15vw, 1.1rem); line-height: 1.65;
  color: var(--ink-70); max-width: 46ch; margin: 0 0 28px;
  animation: hpIn 0.8s var(--hp-ease) 0.06s both;
}
.hp-hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  animation: hpIn 0.8s var(--hp-ease) 0.12s both;
}
.hp-hero__points {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 0.84rem; color: var(--ink-70);
}
.hp-hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hp-hero__points .i { color: var(--brown-500); flex: none; }
.hp-hero__proof {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 0.8rem; color: var(--ink-50); line-height: 1.45;
}
.hp-hero__proof strong { color: var(--ink); }
.hp-hero__stars { color: var(--brown-500); letter-spacing: 0.16em; font-size: 0.8rem; }
.hp-hero__faces { display: inline-flex; }
.hp-hero__faces img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--paper); margin-left: -10px; background: var(--sand-100);
}
.hp-hero__faces img:first-child { margin-left: 0; }

.hp-hero__visual { position: relative; padding-bottom: 22px; }
.hp-hero__photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--hp-radius);
  box-shadow: 0 50px 100px -60px rgba(13, 11, 9, 0.6), 0 2px 6px rgba(13, 11, 9, 0.04);
  background: var(--sand-100);
  animation: hpFade 1s var(--hp-ease) both;
}
.hp-hero__photo img {
  display: block; width: 100%; height: clamp(400px, 46vw, 580px);
  object-fit: cover; object-position: 50% 18%;
}
.hp-hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0) 50%, rgba(13, 11, 9, 0.38) 100%);
}
.hp-hero__panel {
  position: absolute; left: -20px; bottom: 0; width: min(86%, 348px);
  padding: 20px 22px 16px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(38, 29, 22, 0.97) 0%, rgba(15, 12, 10, 0.98) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--sand-100);
  border: 1px solid rgba(244, 236, 225, 0.13);
  box-shadow: 0 40px 80px -36px rgba(13, 11, 9, 0.85);
}
.hp-hero__panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(244, 236, 225, 0.5);
}
.hp-hero__panel-amount {
  margin: 10px 0 2px; font-family: var(--font-display);
  font-size: 1.95rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02;
  font-variant-numeric: tabular-nums;
}
.hp-hero__panel-amount small { font-size: 0.85rem; opacity: 0.55; margin-left: 5px; }
.hp-hero__panel-iban {
  margin: 0 0 14px; font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem; color: rgba(244, 236, 225, 0.42); letter-spacing: 0.02em;
}
.hp-hero__panel-tx {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid rgba(244, 236, 225, 0.09);
  font-size: 0.78rem;
}
.hp-hero__panel-tx > div { display: grid; gap: 1px; min-width: 0; }
.hp-hero__panel-label {
  color: var(--sand-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hp-hero__panel-meta { color: rgba(244, 236, 225, 0.4); font-size: 0.66rem; }
.hp-hero__panel-tx strong { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp-hero__panel-tx strong.is-in { color: #b9dcaa; }
.hp-hero__badge {
  position: absolute; right: 12px; top: 20px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 14px; border-radius: 999px;
  background: rgba(253, 251, 248, 0.9); backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 44px -26px rgba(13, 11, 9, 0.55);
  font-size: 0.72rem; line-height: 1.25;
  animation: hpIn 0.9s var(--hp-ease) 0.2s both;
}
.hp-hero__badge strong { display: block; font-size: 0.78rem; }
.hp-hero__badge small { color: var(--ink-50); font-size: 0.68rem; }
.hp-hero__badge-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #4c8a4e; flex: none;
  box-shadow: 0 0 0 4px rgba(76, 138, 78, 0.16);
}

/* --------------------------------------------------------------------------
   BANDEAU DE CHIFFRES
   -------------------------------------------------------------------------- */
.hp-stats {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #17120e 0%, #0d0b09 55%, #16110d 100%);
  color: var(--sand-100);
}
.hp-stats::before {
  content: ""; position: absolute; inset: 0; opacity: 0.05;
  background-image: var(--hp-grain); pointer-events: none;
}
.hp-stats__inner {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: clamp(28px, 3.2vw, 42px) 24px;
}
.hp-stats__inner div {
  display: grid; gap: 6px; padding: 0 26px;
  border-left: 1px solid rgba(244, 236, 225, 0.12);
}
.hp-stats__inner div:first-child { border-left: 0; padding-left: 0; }
.hp-stats__inner strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 600;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.hp-stats__inner span {
  font-size: 0.74rem; letter-spacing: 0.02em;
  color: rgba(244, 236, 225, 0.52); line-height: 1.45;
}

/* --------------------------------------------------------------------------
   APPLICATION
   -------------------------------------------------------------------------- */
.hp-app__grid {
  display: grid; grid-template-columns: 0.8fr 1fr;
  gap: clamp(32px, 4.8vw, 76px); align-items: center;
}
.hp-app__media { position: relative; margin: 0; }
.hp-app__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: var(--hp-radius);
  box-shadow: 0 50px 100px -64px rgba(13, 11, 9, 0.55);
}
.hp-app__float {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 18px; border-radius: 16px;
  background: rgba(253, 251, 248, 0.92); backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 48px -26px rgba(13, 11, 9, 0.55);
  animation: hpIn 0.9s var(--hp-ease) 0.2s both;
}
.hp-app__float-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #4c8a4e;
  box-shadow: 0 0 0 4px rgba(76, 138, 78, 0.15); flex: none;
}
.hp-app__float strong { display: block; font-size: 0.8rem; }
.hp-app__float small { font-size: 0.7rem; color: var(--ink-50); }
.hp-app__text h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem); line-height: 1.05;
  letter-spacing: -0.034em; margin: 14px 0 16px;
}
.hp-app__lead {
  color: var(--ink-70); font-size: 0.98rem; line-height: 1.68;
  max-width: 46ch; margin: 0 0 26px;
}
.hp-app__features {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px;
}
.hp-app__features li { display: flex; gap: 12px; align-items: flex-start; }
.hp-app__features .i {
  color: var(--brown-600); flex: none;
  width: 34px; height: 34px; padding: 8px; box-sizing: border-box;
  border-radius: 11px; background: var(--sand-50);
  border: 1px solid var(--line-soft);
}
.hp-app__features div { display: grid; gap: 3px; }
.hp-app__features strong { font-size: 0.89rem; letter-spacing: -0.005em; }
.hp-app__features span { font-size: 0.82rem; color: var(--ink-70); line-height: 1.5; }
.hp-app__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hp-app__note { font-size: 0.74rem; color: var(--ink-50); }

/* --------------------------------------------------------------------------
   PRODUITS
   -------------------------------------------------------------------------- */
.hp-head-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 4vw, 64px); align-items: end;
  max-width: none; margin-bottom: clamp(30px, 3.6vw, 52px);
}
.hp-head-split h2 { margin-bottom: 0; }
.hp-head-split > p {
  margin: 0 0 8px; color: var(--ink-70); font-size: 0.95rem;
  line-height: 1.65; max-width: 44ch;
}

.hp-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hp-product {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--hp-radius);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(13, 11, 9, 0.03);
  transition: transform 0.45s var(--hp-ease), box-shadow 0.45s var(--hp-ease), border-color 0.35s ease;
  animation: hpIn 0.7s var(--hp-ease) both;
}
.hp-product:nth-child(2) { animation-delay: 0.08s; }
.hp-product:nth-child(3) { animation-delay: 0.16s; }
.hp-product:hover {
  transform: translateY(-6px); border-color: var(--sand-300);
  box-shadow: 0 44px 80px -52px rgba(13, 11, 9, 0.5);
}
.hp-product__media { position: relative; margin: 0; overflow: hidden; background: var(--sand-100); }
.hp-product__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 11;
  object-fit: cover; transition: transform 0.8s var(--hp-ease);
}
.hp-product__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.16) 0%, rgba(13, 11, 9, 0) 34%);
  pointer-events: none;
}
.hp-product:hover .hp-product__media img { transform: scale(1.055); }
.hp-product__tag {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(253, 251, 248, 0.9); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--brown-700); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.hp-product__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; flex: 1; }
.hp-product__body h3 { font-size: 1.16rem; margin: 0; letter-spacing: -0.02em; }
.hp-product__body p { margin: 0; font-size: 0.88rem; line-height: 1.62; color: var(--ink-70); flex: 1; }
.hp-product__body a {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-size: 0.84rem; font-weight: 600; color: var(--brown-600);
}
.hp-product__body a .i { transition: transform 0.3s var(--hp-ease); }
.hp-product__body a:hover .i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   LA CARTE
   -------------------------------------------------------------------------- */
.hp-cardband {
  position: relative; overflow: hidden; color: var(--sand-100);
  padding: clamp(56px, 6.6vw, 104px) 0;
  background:
    radial-gradient(62% 108% at 84% 4%, rgba(138, 101, 68, 0.55) 0%, rgba(13, 11, 9, 0) 62%),
    linear-gradient(155deg, #241b14 0%, #0e0b09 64%);
}
.hp-cardband::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.055;
  background-image: var(--hp-grain);
}
.hp-cardband::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 236, 225, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 236, 225, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(60% 70% at 78% 40%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(60% 70% at 78% 40%, #000 0%, transparent 76%);
}
.hp-cardband__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 0.94fr;
  gap: clamp(34px, 5vw, 76px); align-items: center;
}
.hp-cardband h2 {
  color: var(--white); font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.06; letter-spacing: -0.032em; margin: 16px 0 18px;
}
.hp-cardband__text p {
  color: rgba(244, 236, 225, 0.66); font-size: 0.97rem; line-height: 1.68;
  max-width: 46ch; margin: 0 0 22px;
}
.hp-cardband__list {
  list-style: none; padding: 0; margin: 0 0 30px;
  display: grid; gap: 12px; font-size: 0.88rem; color: rgba(244, 236, 225, 0.86);
}
.hp-cardband__list li { display: flex; align-items: center; gap: 11px; }
.hp-cardband__list .i { color: var(--brown-300); flex: none; }
.hp-cardband__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hp-cardband__note { font-size: 0.75rem; color: rgba(244, 236, 225, 0.42); }
.hp-cardband__visual { position: relative; display: grid; place-items: center; }
.hp-cardband__photo {
  margin: 0; border-radius: 24px; overflow: hidden;
  transform: rotate(-2.5deg);
  border: 1px solid rgba(244, 236, 225, 0.16);
  box-shadow: 0 60px 110px -46px rgba(0, 0, 0, 0.95);
  transition: transform 0.6s var(--hp-ease);
}
.hp-cardband__visual:hover .hp-cardband__photo { transform: rotate(-1deg) translateY(-4px); }
.hp-cardband__photo img { display: block; width: 100%; height: auto; }
.hp-cardband__price {
  position: absolute; right: -8px; bottom: -20px;
  display: flex; align-items: baseline; gap: 9px;
  padding: 14px 20px; border-radius: 18px;
  background: rgba(253, 251, 248, 0.96); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}
.hp-cardband__price strong {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.03em;
}
.hp-cardband__price span { font-size: 0.67rem; line-height: 1.25; color: var(--ink-50); }
.hp-cardband__glow {
  position: absolute; inset: auto 0 -14% 0; height: 54%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(194, 161, 124, 0.32), transparent 70%);
  filter: blur(26px); pointer-events: none;
}

/* --------------------------------------------------------------------------
   ÉTAPES
   -------------------------------------------------------------------------- */
.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-step {
  position: relative; padding: 28px 26px 30px; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--hp-radius);
  background: var(--white);
  transition: transform 0.4s var(--hp-ease), box-shadow 0.4s var(--hp-ease), border-color 0.3s;
  animation: hpIn 0.7s var(--hp-ease) both;
}
.hp-step:nth-child(2) { animation-delay: 0.08s; }
.hp-step:nth-child(3) { animation-delay: 0.16s; }
.hp-step:hover {
  transform: translateY(-4px); border-color: var(--sand-300);
  box-shadow: 0 34px 60px -46px rgba(13, 11, 9, 0.45);
}
.hp-step__num {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 2.4rem; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--sand-300);
  margin-bottom: 16px;
}
.hp-step h3 { font-size: 1.06rem; margin: 0 0 8px; letter-spacing: -0.015em; }
.hp-step p { margin: 0; font-size: 0.87rem; line-height: 1.62; color: var(--ink-70); }

/* --------------------------------------------------------------------------
   CE QUI EST INCLUS
   -------------------------------------------------------------------------- */
.hp-included {
  display: grid; grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(26px, 3.6vw, 52px); align-items: start;
}
.hp-included__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line-soft);
}
.hp-included__list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 22px 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.hp-included__list li:nth-child(odd) { padding-right: 26px; }
.hp-included__list .i {
  color: var(--brown-600); flex: none; margin-top: 2px;
  width: 24px; height: 24px; padding: 5px; box-sizing: border-box;
  border-radius: 8px; background: var(--sand-50);
}
.hp-included__list span { display: grid; gap: 3px; font-size: 0.82rem; color: var(--ink-70); line-height: 1.5; }
.hp-included__list strong { font-size: 0.88rem; color: var(--ink); letter-spacing: -0.01em; }
.hp-fees {
  padding: 26px 26px 22px; border-radius: 24px;
  border: 1px solid var(--line); background: var(--white);
  box-shadow: 0 40px 70px -54px rgba(13, 11, 9, 0.55);
}
.hp-fees h3 {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-50); margin: 0 0 16px; font-weight: 600;
}
.hp-fees table { width: 100%; border-collapse: collapse; }
.hp-fees tr { border-bottom: 1px solid var(--line-soft); }
.hp-fees tr:last-child { border-bottom: 0; }
.hp-fees th, .hp-fees td { padding: 11px 0; text-align: left; font-weight: 500; font-size: 0.84rem; }
.hp-fees th { color: var(--ink-70); }
.hp-fees td {
  text-align: right; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hp-fees td small { font-weight: 400; color: var(--ink-50); font-size: 0.72rem; }
.hp-fees__link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-size: 0.82rem; font-weight: 600; color: var(--brown-600);
}
.hp-fees__link .i { transition: transform 0.3s var(--hp-ease); }
.hp-fees__link:hover .i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   SÉCURITÉ & PAIEMENTS
   -------------------------------------------------------------------------- */
.hp-safe {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4.6vw, 72px); align-items: center;
}
.hp-safe__media { margin: 0; }
.hp-safe__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: var(--hp-radius);
  box-shadow: 0 50px 100px -62px rgba(13, 11, 9, 0.5);
}
.hp-safe__media figcaption {
  margin-top: 14px; font-size: 0.75rem; color: var(--ink-50);
  display: flex; align-items: center; gap: 9px;
}
.hp-safe__media figcaption::before {
  content: ""; width: 26px; height: 1px; background: var(--sand-300);
}
.hp-safe__text h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.4rem); line-height: 1.07;
  letter-spacing: -0.032em; margin: 14px 0 16px;
}
.hp-safe__text > p {
  color: var(--ink-70); font-size: 0.97rem; line-height: 1.68;
  max-width: 46ch; margin: 0 0 24px;
}
.hp-safe__text .hp-check { margin-bottom: 26px; }
.hp-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hp-check li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--line-soft); background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--hp-ease);
}
.hp-check li:hover {
  border-color: var(--sand-300); transform: translateY(-2px);
  box-shadow: 0 26px 44px -38px rgba(13, 11, 9, 0.5);
}
.hp-check .i {
  color: var(--brown-600); flex: none;
  width: 32px; height: 32px; padding: 7px; box-sizing: border-box;
  border-radius: 10px; background: var(--sand-50); border: 1px solid var(--line-soft);
}
.hp-check span { display: grid; gap: 3px; font-size: 0.84rem; color: var(--ink-70); line-height: 1.5; }
.hp-check strong { font-size: 0.89rem; color: var(--ink); letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------
   SERVICE CLIENT
   -------------------------------------------------------------------------- */
.hp-support {
  display: grid; grid-template-columns: 1fr 0.95fr;
  gap: clamp(32px, 4.8vw, 72px); align-items: center;
}
.hp-support__text h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem); line-height: 1.05;
  letter-spacing: -0.034em; margin: 14px 0 16px;
}
.hp-support__text > p {
  color: var(--ink-70); font-size: 0.97rem; line-height: 1.68;
  max-width: 46ch; margin: 0 0 26px;
}
.hp-support__cards { display: grid; gap: 10px; }
.hp-support__card {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 20px; border-radius: 18px;
  border: 1px solid var(--line-soft); background: var(--white);
  color: var(--ink);
  transition: border-color 0.3s, transform 0.3s var(--hp-ease), box-shadow 0.3s;
}
.hp-support__card:hover {
  border-color: var(--sand-300); transform: translateY(-2px);
  box-shadow: 0 28px 48px -38px rgba(13, 11, 9, 0.5);
}
.hp-support__card .i {
  color: var(--brown-600); flex: none;
  width: 36px; height: 36px; padding: 8px; box-sizing: border-box;
  border-radius: 11px; background: var(--sand-50); border: 1px solid var(--line-soft);
}
.hp-support__card span { display: grid; gap: 3px; }
.hp-support__card strong { font-size: 0.9rem; letter-spacing: -0.01em; }
.hp-support__card small { font-size: 0.76rem; color: var(--ink-50); }
.hp-support__media { position: relative; margin: 0; }
.hp-support__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: var(--hp-radius);
  box-shadow: 0 50px 100px -60px rgba(13, 11, 9, 0.52);
}
.hp-support__badge {
  position: absolute; left: -16px; bottom: 24px;
  padding: 14px 20px; border-radius: 18px;
  background: linear-gradient(160deg, #241b14, #0f0c0a); color: var(--sand-100);
  border: 1px solid rgba(244, 236, 225, 0.14);
  box-shadow: 0 34px 60px -34px rgba(13, 11, 9, 0.9);
}
.hp-support__badge strong {
  display: block; font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: -0.02em;
}
.hp-support__badge span { font-size: 0.66rem; color: rgba(244, 236, 225, 0.55); }

/* --------------------------------------------------------------------------
   TÉMOIGNAGES
   -------------------------------------------------------------------------- */
.hp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-quote {
  position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0;
  padding: 30px 26px 26px; border-radius: var(--hp-radius);
  border: 1px solid var(--line-soft); background: var(--white);
  transition: transform 0.4s var(--hp-ease), box-shadow 0.4s var(--hp-ease), border-color 0.3s;
  animation: hpIn 0.7s var(--hp-ease) both;
}
.hp-quote:nth-child(2) { animation-delay: 0.08s; }
.hp-quote:nth-child(3) { animation-delay: 0.16s; }
.hp-quote:hover {
  transform: translateY(-4px); border-color: var(--sand-300);
  box-shadow: 0 40px 70px -54px rgba(13, 11, 9, 0.5);
}
.hp-quote::before {
  content: "“"; position: absolute; top: 6px; right: 22px;
  font-family: Georgia, serif; font-size: 4.4rem; line-height: 1;
  color: var(--sand-200); pointer-events: none;
}
.hp-quote__stars { color: var(--brown-500); letter-spacing: 0.18em; font-size: 0.76rem; }
.hp-quote blockquote {
  margin: 0; font-size: 0.95rem; line-height: 1.66; color: var(--ink);
  flex: 1; text-wrap: pretty;
}
.hp-quote figcaption {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.hp-quote figcaption img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--sand-100); border: 2px solid var(--white);
  box-shadow: 0 8px 18px -10px rgba(13, 11, 9, 0.4);
}
.hp-quote figcaption span { display: grid; gap: 1px; font-size: 0.74rem; color: var(--ink-50); }
.hp-quote figcaption strong { font-size: 0.86rem; color: var(--ink); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.hp-faq {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(30px, 4.6vw, 72px); align-items: start;
}
.hp-faqhead h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin: 14px 0 14px;
  line-height: 1.07; letter-spacing: -0.032em;
}
.hp-faqhead p { color: var(--ink-70); font-size: 0.93rem; margin: 0 0 22px; max-width: 32ch; }
.hp-faq .faq { max-width: none; margin: 0; }
.hp-faq .faq details {
  border-radius: 18px; border: 1px solid transparent;
  padding: 2px 18px; margin-bottom: 8px;
  transition: background 0.3s, border-color 0.3s;
}
.hp-faq .faq details[open] { background: var(--white); border-color: var(--line-soft); }
.hp-faq .faq summary {
  padding: 18px 34px 18px 0; font-size: 0.97rem; font-weight: 600;
  letter-spacing: -0.01em; text-wrap: pretty;
}
.hp-faq .faq details p { padding: 0 0 18px; margin: 0; font-size: 0.9rem; line-height: 1.65; }

/* --------------------------------------------------------------------------
   APPEL À L'ACTION
   -------------------------------------------------------------------------- */
.home .cta-band {
  position: relative; overflow: hidden;
  border-radius: 30px;
  padding: clamp(38px, 5vw, 64px);
  background:
    radial-gradient(60% 120% at 88% 10%, rgba(138, 101, 68, 0.55) 0%, rgba(13, 11, 9, 0) 62%),
    linear-gradient(140deg, #241b14 0%, #0d0b09 70%);
}
.home .cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: var(--hp-grain);
}
.home .cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.06;
  letter-spacing: -0.032em; margin: 12px 0 10px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hp-stats__inner div { padding: 0 20px; }
  .home .cta-band { border-radius: 26px; }
}

@media (max-width: 1080px) {
  .hp-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hp-hero__text { max-width: 640px; }
  .hp-hero h1 { max-width: 18ch; }
  .hp-hero__visual { max-width: 620px; width: 100%; }
  .hp-hero__photo img { height: clamp(380px, 56vw, 520px); }
  .hp-hero__panel { left: 0; }
  .hp-cardband__grid { grid-template-columns: 1fr; }
  .hp-cardband__visual { order: -1; max-width: 560px; }
  .hp-app__grid, .hp-safe, .hp-support { grid-template-columns: 1fr; gap: 36px; }
  .hp-app__media, .hp-support__media { max-width: 540px; }
  .hp-support__media { order: -1; }
  .hp-support__badge { left: auto; right: 14px; bottom: 14px; }
  .hp-included { grid-template-columns: 1fr; }
  .hp-fees { max-width: 520px; }
  .hp-faq { grid-template-columns: 1fr; }
  .hp-head-split { grid-template-columns: 1fr; align-items: start; }
  .hp-head-split > p { max-width: 56ch; }
}

@media (max-width: 940px) {
  .hp-products { grid-template-columns: 1fr 1fr; }
  .hp-products .hp-product:last-child { grid-column: 1 / -1; }
  .hp-products .hp-product:last-child .hp-product__media img { aspect-ratio: 21 / 9; }
  .hp-quotes { grid-template-columns: 1fr 1fr; }
  .hp-quotes .hp-quote:last-child { grid-column: 1 / -1; }
  .hp-steps { grid-template-columns: 1fr 1fr; }
  .hp-steps .hp-step:last-child { grid-column: 1 / -1; }
  .hp-app__features { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hp-stats__inner { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .hp-stats__inner div { padding: 0 18px; }
  .hp-stats__inner div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hp-stats__inner div:nth-child(n + 3) { padding-top: 20px; border-top: 1px solid rgba(244, 236, 225, 0.12); }
  .hp-hero__panel { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -22px; }
  .hp-hero__visual { padding-bottom: 0; }
  .hp-hero__badge { top: 14px; right: 14px; padding: 9px 13px; }
  .hp-hero__badge small { display: none; }
  .home .cta-band { flex-direction: column; align-items: flex-start; gap: 22px; text-align: left; }
  .home .cta-band .btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .home .section { padding: 54px 0; }
  .home .section-head { margin-bottom: 30px; }
  .hp-hero { padding-top: 24px; }
  .hp-hero h1 { font-size: clamp(2.3rem, 9vw, 2.7rem); max-width: none; }
  .hp-hero__lead { font-size: 0.95rem; }
  .hp-hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .hp-hero__points { gap: 9px 16px; font-size: 0.8rem; }
  .hp-hero__photo img { height: 68vw; min-height: 300px; object-position: 50% 12%; }
  .hp-products, .hp-quotes, .hp-steps { grid-template-columns: 1fr; }
  .hp-products .hp-product:last-child { grid-column: auto; }
  .hp-products .hp-product:last-child .hp-product__media img { aspect-ratio: 16 / 11; }
  .hp-quotes .hp-quote:last-child, .hp-steps .hp-step:last-child { grid-column: auto; }
  .hp-included__list { grid-template-columns: 1fr; }
  .hp-included__list li { padding: 16px 0; }
  .hp-cardband__price { right: 6px; bottom: -14px; padding: 11px 15px; }
  .hp-cardband__photo { transform: rotate(-1.5deg); }
  .hp-app__media img, .hp-support__media img, .hp-safe__media img { border-radius: 22px; }
  .hp-app__float { left: 12px; bottom: 12px; padding: 10px 14px; }
  .hp-quote { padding: 26px 22px 22px; }
  .hp-faq .faq summary { font-size: 0.93rem; padding: 16px 30px 16px 0; }
}

@media (max-width: 400px) {
  .hp-hero__proof { gap: 8px; font-size: 0.76rem; }
  .hp-hero__faces img { width: 26px; height: 26px; }
  .hp-support__card { padding: 14px 16px; gap: 12px; }
  .hp-support__card strong { font-size: 0.84rem; }
  .hp-stats__inner strong { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero h1, .hp-hero__lead, .hp-hero__cta, .hp-hero__badge,
  .hp-app__float, .hp-product, .hp-step, .hp-quote, .hp-hero__photo {
    animation: none !important;
  }
  .hp-product, .hp-step, .hp-quote, .hp-check li, .hp-support__card,
  .hp-cardband__photo, .hp-product__media img { transition: none !important; }
}

/* ---------- Ajustements premium (v3) ---------- */
/* Les grands titres de section restent lisibles : 3 lignes maximum. */
.home .section-head h2 { text-wrap: balance; max-width: 22ch; }
.home .hp-head-split h2 { max-width: 18ch; }
.home .hp-app__text h2,
.home .hp-safe__text h2,
.home .hp-support__text h2,
.home .hp-faqhead h2 { text-wrap: balance; max-width: 20ch; }
.home .hp-faq .faq summary { text-wrap: balance; }
.home .hp-cardband h2 { text-wrap: balance; max-width: 20ch; }

@media (min-width: 1081px) {
  /* Un léger décalage alterné casse la monotonie des colonnes photo/texte. */
  .hp-safe__media { transform: translateY(-14px); }
  .hp-support__media { transform: translateY(14px); }
}
@media (max-width: 1080px) {
  .hp-safe__media, .hp-support__media { transform: none; }
}

/* En-tête public : très petits écrans (≤ 380 px) — le bouton d'ouverture de
   compte peut déborder à droite du burger. On resserre les actions. */
@media (max-width: 380px) {
  .public-header__inner { padding: 10px 14px; gap: 10px; }
  .public-header__actions { gap: 6px; }
  .public-header__actions .btn { padding: 8px 12px; font-size: 0.78rem; }
  .public-header__burger { width: 36px; height: 36px; }
  .brand__name { font-size: 0.95rem; }
  .brand__mark { width: 34px; height: 34px; }
}

/* En version empilée (tablette), les visuels se centrent au lieu de coller à
   gauche et de laisser un grand vide à droite. */
@media (max-width: 1080px) {
  .hp-hero__visual, .hp-app__media, .hp-support__media { margin-left: auto; margin-right: auto; }
  .hp-cardband__visual { margin-left: auto; margin-right: auto; width: 100%; }
}

/* ==========================================================================
   HÉROS SUR IMAGE DE FOND + SÉLECTEUR DE LANGUE
   ========================================================================== */

/* ---- Image de fond pleine largeur avec dégradé crème pour la lisibilité ---- */
.hp-hero {
  background-image:
    linear-gradient(94deg,
      var(--paper) 0%,
      var(--paper) 38%,
      rgba(253, 251, 248, 0.94) 48%,
      rgba(253, 251, 248, 0.62) 62%,
      rgba(253, 251, 248, 0.22) 78%,
      rgba(253, 251, 248, 0.05) 100%),
    url("../img/home/hero-bg.jpg");
  background-size: cover, cover;
  background-position: center, 62% 42%;
  background-repeat: no-repeat, no-repeat;
  background-color: var(--paper);
}
.hp-hero::before { opacity: 0.55; } /* la trame reste, plus discrète sur la photo */

/* Le visuel devient un panneau flottant directement posé sur la photo */
.hp-hero__visual {
  position: relative; min-height: clamp(420px, 40vw, 520px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
}
.hp-hero__panel {
  position: relative; left: auto; bottom: auto;
  width: min(100%, 372px);
  background: linear-gradient(160deg, rgba(38, 29, 22, 0.93) 0%, rgba(15, 12, 10, 0.95) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 50px 90px -40px rgba(13, 11, 9, 0.8);
  animation: hpIn 0.9s var(--hp-ease) 0.1s both;
}
.hp-hero__badge { top: 6px; right: 6px; }

/* Petite citation en pied de visuel */
.hp-hero__quote {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 0;
  align-self: flex-end; max-width: 340px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(253, 251, 248, 0.88); backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 22px 44px -30px rgba(13, 11, 9, 0.55);
  font-size: 0.78rem; line-height: 1.35; color: var(--ink-70);
  animation: hpIn 0.9s var(--hp-ease) 0.3s both;
}
.hp-hero__quote img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--white);
}
.hp-hero__quote figcaption { display: grid; gap: 1px; }
.hp-hero__quote figcaption span { font-size: 0.7rem; color: var(--ink-50); }

@media (max-width: 1080px) {
  .hp-hero { background-position: center, 66% 40%; }
  .hp-hero__visual { min-height: 0; align-items: stretch; }
  .hp-hero__panel { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
  .hp-hero__badge { top: -10px; right: 8px; }
  .hp-hero__quote { align-self: center; margin-top: 14px; }
}
@media (max-width: 640px) {
  .hp-hero {
    background-image:
      linear-gradient(180deg,
        rgba(253, 251, 248, 0.97) 0%,
        rgba(253, 251, 248, 0.9) 46%,
        rgba(253, 251, 248, 0.72) 100%),
      url("../img/home/hero-bg.jpg");
    background-position: center, 60% 30%;
  }
  .hp-hero__quote { max-width: none; width: 100%; }
}

/* ---- Sélecteur de langue (24 langues de l'UE, drapeaux) ---- */
.lang { position: relative; }
.lang__trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px 9px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; box-shadow: 0 1px 2px rgba(13, 11, 9, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--hp-ease, ease);
}
.lang__trigger:hover {
  border-color: var(--brown-300);
  box-shadow: 0 8px 22px -12px rgba(138, 101, 68, 0.55);
  transform: translateY(-1px);
}
.lang__globe { width: 16px; height: 16px; stroke: var(--brown-500); fill: none; stroke-width: 1.5; }
.lang__flag { font-size: 1rem; line-height: 1; }
.lang__code {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-70);
}
.lang__chev {
  width: 10px; height: 10px; stroke: var(--ink-30); fill: none; stroke-width: 2;
  transition: transform 0.3s var(--hp-ease, ease);
}
.lang[data-open="true"] .lang__chev { transform: rotate(180deg); }

.lang__panel {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: min(430px, calc(100vw - 28px));
  background: var(--white); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: 0 40px 80px -40px rgba(13, 11, 9, 0.45);
  padding: 18px; z-index: 900;
  /* `display:none` quand le panneau est fermé : un panneau en `visibility:hidden`
     reste compté dans le `scrollWidth` et provoquait un débordement mobile. */
  display: none; transform-origin: top right;
}
.lang[data-open="true"] .lang__panel { display: block; animation: lang-pop 0.24s var(--hp-ease, ease) both; }
@keyframes lang-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lang[data-open="true"] .lang__panel { animation: none; }
}

.lang__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 2px 4px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px;
}
.lang__title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.lang__count {
  font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-30); font-weight: 600;
}
.lang__search { position: relative; margin-bottom: 12px; }
.lang__search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; stroke: var(--ink-30); fill: none; stroke-width: 1.8;
}
.lang__search input {
  width: 100%; padding: 11px 14px 11px 38px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--sand-50); font-family: var(--font-sans); font-size: 0.86rem;
  color: var(--ink); outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lang__search input:focus {
  border-color: var(--brown-300); background: var(--white);
  box-shadow: 0 0 0 4px rgba(194, 161, 124, 0.16);
}
.lang__search input::placeholder { color: var(--ink-30); }
.lang__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  max-height: 320px; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: var(--sand-300) transparent;
}
.lang__list::-webkit-scrollbar { width: 5px; }
.lang__list::-webkit-scrollbar-thumb { background: var(--sand-300); border-radius: 99px; }
.lang__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-size: 0.84rem; text-align: left;
  cursor: pointer; transition: background 0.18s, color 0.18s, transform 0.18s;
}
.lang__item:hover { background: var(--sand-100); transform: translateX(2px); }
.lang__item[aria-current="true"] { background: var(--ink); color: var(--sand-100); }
.lang__item[aria-current="true"] .lang__item-code { color: var(--brown-300); }
.lang__item[hidden] { display: none; }
.lang__item-flag { font-size: 1.04rem; line-height: 1; }
.lang__item-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang__item-code {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-30);
}
.lang__empty { grid-column: 1 / -1; padding: 22px 8px; text-align: center; font-size: 0.85rem; color: var(--ink-50); }
.lang__empty[hidden] { display: none; }
.lang__fallback { display: none; }

.public-nav-mobile__lang { padding: 14px 2px 6px; }

/* Barre supérieure de l'espace client */
.topbar .lang__trigger { padding: 8px 11px; }
.topbar .lang__code { display: none; }
.topbar .lang__panel { right: 0; }

@media (max-width: 640px) {
  .public-header__actions .lang__globe { display: none; }
  .public-header__actions .lang__trigger { padding: 9px 11px; gap: 6px; }
  .lang__panel { right: -8px; padding: 14px; }
  .lang__list { grid-template-columns: 1fr; max-height: 300px; }
}
@media (max-width: 430px) {
  .public-header__actions .lang__code { display: none; }
}

/* Drapeaux SVG */
.flag {
  display: inline-flex; overflow: hidden; border-radius: 3px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(13, 11, 9, 0.12);
  background: var(--sand-100);
}
.flag svg { width: 100%; height: 100%; display: block; }
.lang__item .flag { border-radius: 2px; }


/* ── En-tête + panneau de langue : ajustements mobiles (≤ 640 px) ─────── */
@media (max-width: 640px) {
  /* le panneau devient une feuille fixe : plus de débordement horizontal */
  .public-header__actions .lang__panel,
  .topbar .lang__panel {
    position: fixed;
    top: 66px; left: 12px; right: 12px;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    transform-origin: top center;
  }
}

@media (max-width: 430px) {
  .public-header__inner { gap: 6px; padding-inline: 12px; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand__name {
    font-size: 0.86rem;
    min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .brand__name span { display: none; }
  .public-header__actions { gap: 5px; flex-shrink: 0; }
  .public-header__actions .btn--sm { padding: 8px 10px; font-size: 0.78rem; }
  .public-header__actions .lang__trigger { padding: 7px 8px; }
  .public-header__actions .lang__chev { display: none; }
  .public-header__burger { width: 34px; height: 34px; }
}

@media (max-width: 380px) {
  .brand__name { max-width: 74px; }
  .public-header__actions .btn--sm { padding: 8px 8px; font-size: 0.74rem; }
  .public-brand .brand__mark, .brand__mark { width: 32px; height: 32px; }
}


/* ── Espace client : pas de débordement horizontal sur petit écran ─────── */
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 > *, .grid-3 > *, .grid-4 > *, .panel, .table-wrap, .account-card { min-width: 0; max-width: 100%; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .account-card__head { flex-wrap: wrap; gap: 8px; }
}

/* ============================================================
   BARRE DE NAVIGATION (v3)
   Verre dépoli, navigation en pilules, tiroir plein écran mobile.
   Cette section est volontairement placée en fin de fichier : elle
   supersède les règles d'en-tête des versions précédentes.
   ============================================================ */

:root { --ph-h: 74px; }

.public-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 251, 248, 0.72);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.public-header.is-scrolled {
  background: rgba(253, 251, 248, 0.93);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 22px 44px -38px rgba(13, 11, 9, 0.65);
}
.public-header__inner {
  max-width: 1240px; margin-inline: auto;
  min-height: var(--ph-h);
  padding: 10px clamp(14px, 3.2vw, 32px);
  display: flex; align-items: center; gap: clamp(10px, 1.8vw, 24px);
  transition: min-height 0.3s ease, padding 0.3s ease;
}
.public-header.is-scrolled .public-header__inner { min-height: 62px; padding-block: 6px; }

/* --- marque --- */
.public-header .brand { border-radius: 14px; transition: transform 0.25s ease; }
.public-header .brand:hover { transform: translateY(-1px); }
.public-header .brand__mark { transition: box-shadow 0.3s ease; }
.public-header .brand:hover .brand__mark { box-shadow: 0 0 0 4px rgba(138, 101, 68, 0.14); }

/* --- navigation en pilules --- */
.public-header__nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto; margin-right: auto;
  padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.public-header__nav a {
  position: relative; display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.87rem; font-weight: 550; letter-spacing: -0.01em;
  color: var(--ink-70); text-decoration: none; white-space: nowrap;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.public-header__nav a::after { content: none; }
.public-header__nav a:hover { color: var(--ink); background: var(--sand-100); }
.public-header__nav a.is-current {
  color: var(--sand-100); background: var(--ink); font-weight: 600;
  box-shadow: 0 12px 24px -16px rgba(13, 11, 9, 0.95);
}
.public-header__nav a:focus-visible,
.public-header__login:focus-visible,
.public-header__phone:focus-visible,
.public-header__burger:focus-visible,
.public-header__cta:focus-visible {
  outline: 2px solid var(--brown-400); outline-offset: 3px;
}

/* --- actions --- */
.public-header__actions { display: flex; align-items: center; gap: 8px; }
.public-header__phone,
.public-header__login {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.83rem; font-weight: 550; color: var(--ink-70);
  white-space: nowrap; text-decoration: none;
  transition: color 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}
.public-header__phone {
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.6);
}
.public-header__phone svg { color: var(--brown-500); }
.public-header__phone:hover { color: var(--ink); background: var(--white); border-color: var(--line); }
.public-header__login { position: relative; padding: 10px 4px; }
.public-header__login::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.28s ease;
}
.public-header__login:hover { color: var(--ink); }
.public-header__login:hover::after { transform: scaleX(1); }

.public-header__cta {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; white-space: nowrap;
  box-shadow: 0 16px 30px -22px rgba(13, 11, 9, 0.9);
  transition: transform 0.22s ease, box-shadow 0.28s ease, background 0.25s ease;
}
.public-header__cta svg { transition: transform 0.28s ease; }
.public-header__cta:hover { transform: translateY(-1px); box-shadow: 0 20px 34px -22px rgba(13, 11, 9, 0.95); }
.public-header__cta:hover svg { transform: translateX(3px); }
.public-header__cta .label-short { display: none; }

/* --- bouton burger (deux traits qui deviennent une croix) --- */
.public-header__burger {
  display: none; width: 44px; height: 44px; flex: none;
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7); cursor: pointer;
  place-items: center; gap: 5px; padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.public-header__burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
}
.public-header__burger[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); }
.public-header__burger[aria-expanded="true"] span { background: var(--sand-100); }
.public-header__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.public-header__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* --- tiroir mobile plein écran --- */
.public-sheet {
  display: none;
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper);
  padding: calc(var(--ph-h) + 14px) clamp(18px, 5vw, 34px) 32px;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.26s;
}
.public-sheet.is-open { opacity: 1; visibility: visible; transform: none; }
body.has-sheet { overflow: hidden; }

.public-sheet__inner { max-width: 560px; margin-inline: auto; display: grid; gap: 22px; }
.public-sheet__nav { display: grid; }
.public-sheet__link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 58px; padding: 15px 2px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  letter-spacing: -0.025em; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
.public-sheet__link svg { color: var(--brown-400); flex: none; transition: transform 0.25s ease; }
.public-sheet__link:hover { color: var(--brown-600); }
.public-sheet__link:hover svg { transform: translateX(4px); }
.public-sheet.is-open .public-sheet__link { opacity: 1; transform: none; }
.public-sheet.is-open .public-sheet__link:nth-child(1) { transition-delay: 0.05s; }
.public-sheet.is-open .public-sheet__link:nth-child(2) { transition-delay: 0.1s; }
.public-sheet.is-open .public-sheet__link:nth-child(3) { transition-delay: 0.15s; }
.public-sheet.is-open .public-sheet__link:nth-child(4) { transition-delay: 0.2s; }

.public-sheet__lang {
  padding: 14px; border-radius: 20px;
  background: var(--sand-50); border: 1px solid var(--line-soft);
}
.public-sheet__lang .lang { display: flex; }
.public-sheet__lang .lang__trigger { width: 100%; justify-content: flex-start; gap: 10px; }
.public-sheet__lang .lang__code { display: inline; }
.public-sheet__lang .lang__chev { margin-left: auto; }
.public-sheet__lang .lang__panel { position: static; width: 100%; box-shadow: none; border-radius: 16px; }
.public-sheet__lang .lang__panel { margin-top: 12px; }

.public-sheet__actions { display: grid; gap: 10px; }
.public-sheet__actions .btn { width: 100%; justify-content: center; border-radius: 999px; padding: 15px 18px; }

.public-sheet__foot {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 6px; border-top: 1px solid var(--line-soft);
}
.public-sheet__eyebrow {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-50);
}
.public-sheet__phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.public-sheet__phone svg { color: var(--brown-500); }

/* --- adaptation progressive --- */
@media (max-width: 1119px) {
  .public-header__phone { display: none; }
}
@media (max-width: 999px) {
  .public-header__login { display: none; }
}
@media (max-width: 959px) {
  .public-header__nav { display: none; }
  .public-header__burger { display: grid; }
  .public-sheet { display: block; }
  .public-header__actions { margin-left: auto; }
  .public-header__cta .label-long { display: inline; }
}
@media (max-width: 620px) {
  :root { --ph-h: 64px; }
  .public-header .brand__name span { display: none; }
  .public-header .brand__mark { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
  .public-header .brand__name { font-size: 0.95rem; }
  .public-header__actions { gap: 6px; }
  .public-header__cta { padding: 10px 14px; font-size: 0.79rem; }
  .public-header__cta svg { display: none; }
  .public-sheet { padding-top: calc(var(--ph-h) + 18px); }
  .public-sheet__link { font-size: 1.18rem; min-height: 54px; }
}
@media (max-width: 430px) {
  .public-header__cta .label-long { display: none; }
  .public-header__cta .label-short { display: inline; }
  .public-header .brand__name { font-size: 0.9rem; max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .public-header__burger { width: 40px; height: 40px; border-radius: 12px; }
  .public-header__inner { padding-inline: 12px; gap: 6px; }
}
@media (max-width: 360px) {
  .public-header .brand__name { max-width: 74px; font-size: 0.84rem; }
  .public-header .brand__mark { width: 30px; height: 30px; }
  .public-header__cta { padding: 9px 11px; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .public-sheet, .public-sheet__link, .public-header, .public-header__burger span, .public-header__cta {
    transition: none !important;
  }
}

/* Compléments du tiroir : contact et mention de pied */
.public-sheet__mail {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.86rem; color: var(--ink-70); text-decoration: none;
}
.public-sheet__mail svg { color: var(--brown-500); }
.public-sheet__mail:hover { color: var(--ink); }
.public-sheet__legal {
  font-size: 0.72rem; color: var(--ink-50); letter-spacing: 0.01em;
  margin: 4px 0 0;
}

/* ============================================================
   SÉPARATEURS « WAVE » + ANIMATIONS SVG (accueil)
   Chaque séparateur prolonge la couleur de la section précédente
   (--wave-bg) et dessine la suivante (--wave-fill) : aucune couture.
   ============================================================ */

.wave {
  position: relative;
  line-height: 0;
  background: var(--wave-bg, var(--paper));
  overflow: hidden;
}
.wave svg {
  display: block;
  width: 100%;
  height: clamp(58px, 7vw, 116px);
}
.wave__path { fill: var(--wave-fill, var(--ink)); }
.wave__path--back {
  /* Couche arrière volontairement très discrète : une simple lèvre de
     profondeur sous la crête, jamais une bande grise visible. */
  fill: var(--wave-fill, var(--ink));
  opacity: 0.1;
}

/* Dérive horizontale sans couture : le tracé est présent deux fois côte à côte. */
.wave__drift {
  animation: waveDrift var(--wave-speed, 26s) linear infinite;
  will-change: transform;
}
.wave__drift--slow { animation-duration: calc(var(--wave-speed, 26s) * 1.6); }
@keyframes waveDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-1440px, 0, 0); }
}

/* Petites étincelles posées sur la crête, en flottement. */
.wave__sparks circle {
  fill: var(--wave-fill, var(--ink));
  opacity: 0.28;
  animation: waveSpark 7s ease-in-out infinite alternate;
}
.wave__sparks circle:nth-child(2) { animation-delay: -1.6s; animation-duration: 8.5s; }
.wave__sparks circle:nth-child(3) { animation-delay: -3.1s; animation-duration: 6.4s; }
.wave__sparks circle:nth-child(4) { animation-delay: -4.4s; animation-duration: 9.2s; }
@keyframes waveSpark {
  from { transform: translateY(-4px); opacity: 0.16; }
  to   { transform: translateY(6px); opacity: 0.42; }
}

/* Variantes : léger décalage de rythme pour éviter un mouvement uniforme. */
.wave--b .wave__drift { animation-duration: 32s; }
.wave--c .wave__drift { animation-duration: 40s; }
.wave--d .wave__drift { animation-duration: 24s; }
.wave--e .wave__drift { animation-duration: 36s; }
.wave--c .wave__drift { direction: reverse; }
.wave--d .wave__drift { direction: reverse; }

/* --- Vague posée sur la photo du héros ------------------------------- */
.hp-hero { padding-bottom: clamp(88px, 9vw, 150px); }
.hp-hero > .wrap { position: relative; z-index: 2; }
.wave-hero {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  pointer-events: none;
}
.wave-hero .wave { background: transparent; }
.wave-hero .wave svg { height: clamp(54px, 7.5vw, 126px); }

/* --- Bandes sombres : bords uniformes pour un raccord parfait --------- */
.hp-stats {
  background: linear-gradient(180deg, #16110d 0%, #0d0b09 58%, #17120e 100%);
}
.hp-cardband {
  background:
    radial-gradient(52% 66% at 84% 42%, rgba(138, 101, 68, 0.5) 0%, rgba(13, 11, 9, 0) 62%),
    linear-gradient(180deg, #241b14 0%, #0e0b09 74%);
}

/* Sur mobile, les vagues restent fines pour ne pas manger le contenu. */
@media (max-width: 620px) {
  .wave svg { height: clamp(44px, 9vw, 64px); }
  .wave__sparks { display: none; }
  .hp-hero { padding-bottom: clamp(70px, 13vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  .wave__drift, .wave__sparks circle { animation: none !important; }
}

/* ============================================================
   PAGES PUBLIQUES v2 — en-têtes partagés, dossier client, FAQ,
   sommaire légal, simulateur tarifs
   ============================================================ */

/* --- En-tête de page avec colonne latérale --------------------------- */
.pub-page-head--split { padding-bottom: clamp(28px, 4vw, 52px); }
.pub-page-head__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(22px, 4vw, 54px); align-items: start;
}
.pub-page-head__points {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; gap: 9px; font-size: 0.88rem; color: var(--ink-70);
}
.pub-page-head__points li { display: flex; align-items: flex-start; gap: 9px; }
.pub-page-head__points .i { color: var(--brown-500); flex: 0 0 auto; margin-top: 2px; }

/* --- Colonne « dossier » de l'inscription ---------------------------- */
.reg-summary {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 22px;
  box-shadow: var(--shadow-s);
}
.reg-summary__label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brown-500); font-weight: 600; margin: 0 0 14px;
}
.reg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.reg-steps li {
  display: flex; align-items: center; gap: 11px;
  font-size: 0.86rem; color: var(--ink-70);
}
.reg-steps li span {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 600;
  background: var(--sand-100); color: var(--brown-600);
}
.reg-summary__foot {
  display: flex; gap: 9px; align-items: flex-start;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 0.76rem; line-height: 1.5; color: var(--ink-50);
}
.reg-summary__foot .i { color: var(--brown-500); flex: 0 0 auto; margin-top: 1px; }

/* --- Page d'inscription --------------------------------------------- */
.reg-page {
  display: grid; grid-template-columns: minmax(0, 1fr) 336px;
  gap: clamp(20px, 3vw, 40px); align-items: start;
}
.reg-form { display: grid; gap: 16px; min-width: 0; }
.reg-section { padding: 24px; }
.reg-section__head {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft);
}
.reg-section__head h2 {
  font-family: var(--font-display); font-size: 1.16rem; letter-spacing: -0.025em; margin: 0;
}
.reg-section__head p { margin: 5px 0 0; font-size: 0.84rem; color: var(--ink-50); line-height: 1.5; }
.reg-section__num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; font-size: 0.82rem; font-weight: 600;
  background: var(--ink); color: var(--sand-100);
}
.reg-alert { display: grid; gap: 2px; }
.reg-alert strong { font-size: 0.88rem; }
.reg-alert span { font-size: 0.82rem; opacity: 0.85; }
.reg-submit { margin-top: 18px; }
.reg-legal { margin: 10px 0 0; text-align: center; }

/* Civilité en boutons radio */
.reg-form .field > ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.reg-form .field > ul > li { flex: 1 1 140px; }
.reg-form .field > ul label {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  font-size: 0.86rem; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.reg-form .field > ul input { accent-color: var(--ink); }
.reg-form .field > ul label:has(input:checked) {
  border-color: var(--brown-400); background: var(--sand-50); color: var(--brown-600);
}

/* Jauge de mot de passe */
.pw-meter { margin-top: 6px; display: flex; align-items: center; gap: 12px; }
.pw-meter[hidden] { display: none; }
.pw-meter__bars { display: flex; gap: 4px; flex: 0 0 120px; }
.pw-meter__bars span {
  height: 5px; flex: 1; border-radius: 999px; background: var(--line);
  transition: background 0.25s;
}
.pw-meter--1 .pw-meter__bars span:nth-child(1) { background: #c8663f; }
.pw-meter--2 .pw-meter__bars span:nth-child(-n + 2) { background: #c99a3f; }
.pw-meter--3 .pw-meter__bars span:nth-child(-n + 3) { background: #8a9a45; }
.pw-meter--4 .pw-meter__bars span { background: #55803f; }
.pw-meter__label { margin: 0; font-size: 0.76rem; color: var(--ink-50); }

/* Colonne latérale */
.reg-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--ph-h) + 18px); }
.reg-aside__card { padding: 20px; display: grid; gap: 12px; }
.reg-aside__card .pub-check { margin: 0; }
.reg-aside__card .pub-check li { font-size: 0.82rem; }
.reg-aside__label {
  margin: 0; font-size: 0.71rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--brown-500);
}
.reg-aside__card--dark {
  background: linear-gradient(160deg, #241b14, #0d0b09); border-color: #241b14;
  color: var(--sand-100);
}
.reg-aside__card--dark .reg-aside__label { color: var(--brown-300); }
.reg-aside__card--dark .reg-aside__note { color: rgba(244, 236, 225, 0.66); }
.reg-aside__price {
  font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.04em;
  margin: 0; display: flex; align-items: baseline; gap: 8px;
}
.reg-aside__price small { font-family: var(--font-body); font-size: 0.74rem; opacity: 0.7; letter-spacing: 0; }
.reg-aside__note { margin: 0; font-size: 0.81rem; line-height: 1.6; color: var(--ink-70); }
.reg-aside__card--sand { background: var(--sand-50); border-color: var(--sand-200); }
.reg-aside__wa { margin-top: 8px; }

/* --- Bande de chiffres (page publique) ------------------------------ */
.pub-figures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; padding: 26px 0;
}
.pub-figures__item strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em; color: var(--sand-100); line-height: 1;
}
.pub-figures__item span { display: block; margin-top: 6px; font-size: 0.76rem; color: rgba(244, 236, 225, 0.58); }

/* --- Bloc questions fréquentes (2 colonnes) ------------------------- */
.pub-faq {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 4vw, 56px); align-items: start;
}
.pub-faq__aside h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  letter-spacing: -0.035em; line-height: 1.08; margin: 10px 0 12px; text-wrap: balance;
}
.pub-faq__aside p { color: var(--ink-70); font-size: 0.92rem; margin: 0 0 18px; max-width: 34ch; }

/* --- Sommaire du document légal ------------------------------------- */
.legal-page {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 46px); align-items: start;
}
.legal-toc {
  position: sticky; top: calc(var(--ph-h) + 18px);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--white); padding: 18px; box-shadow: var(--shadow-s);
}
.legal-toc p {
  margin: 0 0 12px; font-size: 0.71rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; color: var(--brown-500);
}
.legal-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.legal-toc a { font-size: 0.84rem; color: var(--ink-70); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal-toc__meta {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 0.74rem; color: var(--ink-50); line-height: 1.5;
}

/* --- Simulateur de la page tarifs ----------------------------------- */
.sim {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 40px); align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-s);
}
.sim__field { display: grid; gap: 8px; margin-bottom: 16px; }
.sim__field label { font-size: 0.8rem; font-weight: 600; color: var(--ink-70); }
.sim input[type="range"] { width: 100%; accent-color: var(--brown-500); }
.sim__out { background: var(--sand-50); border-radius: var(--radius-m); padding: 22px; }
.sim__out p { margin: 0; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown-500); font-weight: 600; }
.sim__out strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.04em; line-height: 1.05; margin: 8px 0 4px;
}
.sim__out small { font-size: 0.78rem; color: var(--ink-50); }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 1080px) {
  .reg-page { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 999px) {
  .pub-page-head__grid, .pub-faq, .sim { grid-template-columns: 1fr; }
  .legal-page { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .reg-page { grid-template-columns: 1fr; }
  .reg-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-aside__card--dark { grid-column: auto; }
  .pub-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .reg-section { padding: 18px; }
  .reg-section__head { gap: 11px; }
  .reg-section__head h2 { font-size: 1.04rem; }
  .reg-aside { grid-template-columns: 1fr; }
  .reg-form .field > ul > li { flex: 1 1 100%; }
  .pub-figures { gap: 14px 18px; }
  .sim__out { padding: 18px; }
  .pub-page-head__points { font-size: 0.84rem; }
}

/* --- Compléments pages publiques v2 --------------------------------- */
.pub-offer h2, .pub-offer h3 {
  font-family: var(--font-display); font-size: 1.1rem; margin: 0; letter-spacing: -0.02em;
}
.pub-offer--featured h3 { color: var(--sand-100); }
.pub-security__item h2, .pub-security__item h3 {
  font-family: var(--font-display); font-size: 1rem; margin: 0 0 8px; letter-spacing: -0.02em;
}
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  letter-spacing: -0.035em; line-height: 1.08; margin: 10px 0 10px; text-wrap: balance;
}
.section-head p { color: var(--ink-70); font-size: 0.94rem; margin: 0; max-width: 62ch; }

/* --- Connexion : bloc démo + réassurance ---------------------------- */
.auth__demo {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-m);
  background: var(--sand-50); border: 1px dashed var(--sand-300);
}
.auth__demo-title {
  margin: 0 0 8px; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; color: var(--brown-500);
}
.auth__demo .kv { gap: 0; }
.auth__demo .kv__row { padding: 5px 0; font-size: 0.82rem; flex-wrap: wrap; }
.auth__demo .kv__row strong { overflow-wrap: anywhere; }
.auth__trust {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px;
  font-size: 0.74rem; color: var(--ink-50);
}
.auth__trust span { display: inline-flex; align-items: center; gap: 5px; }
.auth__trust .i { color: var(--brown-500); }

/* --- Profil : dossier client ---------------------------------------- */
.dossier-bar {
  height: 7px; border-radius: 999px; background: var(--sand-100); overflow: hidden;
}
.dossier-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brown-500), var(--brown-300));
}
.dossier-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
@media (max-width: 620px) {
  .dossier-grid { grid-template-columns: 1fr; }
}

/* --- Correctifs pages publiques -------------------------------------- */
.legal-toc__meta {
  text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; font-size: 0.76rem;
}
.cta-band p, .pub-legal .cta-band p { color: rgba(244, 236, 225, 0.72); }
.cta-band h2 { color: var(--white); }
.panel__head .small { font-weight: 500; color: var(--ink-50); }

/* ============================================================
   PIED DE PAGE v2 — bande d'assistance, 4 colonnes, mentions
   ============================================================ */
.public-footer {
  position: relative;
  background:
    radial-gradient(70% 90% at 88% 0%, rgba(138, 101, 68, 0.22) 0%, rgba(13, 11, 9, 0) 60%),
    linear-gradient(180deg, #17120e 0%, #0b0907 100%);
  color: rgba(244, 236, 225, 0.72);
  padding: clamp(28px, 4vw, 44px) 0 clamp(20px, 3vw, 28px);
  margin-top: 0;
  border-top: 1px solid rgba(244, 236, 225, 0.08);
}
.public-footer__wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px);
}

/* --- Bande d'assistance --- */
.public-footer__cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(244, 236, 225, 0.14);
  border-radius: var(--radius-l);
  background: rgba(244, 236, 225, 0.04);
}
.public-footer__cta-text p {
  margin: 4px 0 0; font-size: 0.95rem; color: var(--sand-100);
  font-family: var(--font-display); letter-spacing: -0.02em;
}
.public-footer__cta-text small { font-family: var(--font-body); font-size: 0.76rem; color: rgba(244, 236, 225, 0.55); letter-spacing: 0; }
.public-footer__eyebrow {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brown-300); font-weight: 600;
}
.public-footer__cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.public-footer__cta-actions .btn { font-size: 0.82rem; padding: 11px 16px; }
.public-footer .btn--light {
  background: var(--sand-100); color: var(--ink); border-color: var(--sand-100);
}
.public-footer .btn--ghost.btn--light {
  background: transparent; color: var(--sand-100); border-color: rgba(244, 236, 225, 0.28);
}
.public-footer .btn--ghost.btn--light:hover { background: rgba(244, 236, 225, 0.1); }

/* --- Colonnes --- */
.public-footer__grid {
  max-width: none; margin: 0; display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px);
}
.public-footer__brand .brand { color: var(--sand-100); margin-bottom: 12px; }
.public-footer__brand p { font-size: 0.85rem; margin: 0 0 12px; max-width: 32ch; line-height: 1.6; }
.public-footer__brand a { color: var(--sand-200); }
.public-footer__trust {
  list-style: none; padding: 0; margin: 0 0 14px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
}
.public-footer__trust li { justify-content: flex-start; }
.public-footer__trust li {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: rgba(244, 236, 225, 0.6);
  padding: 5px 9px; border-radius: 999px;
  background: rgba(244, 236, 225, 0.06);
  border: 1px solid rgba(244, 236, 225, 0.08);
}
.public-footer__trust .i { color: var(--brown-300); }
.public-footer__contact { display: grid; gap: 4px; font-size: 0.82rem; }
.public-footer__contact a { color: rgba(244, 236, 225, 0.8); }
.public-footer__contact a:hover { color: var(--sand-100); }

.public-footer__col { display: grid; gap: 9px; align-content: start; }
.public-footer__col h3 {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(244, 236, 225, 0.42); margin: 0 0 4px; font-weight: 600;
}
.public-footer__col a {
  font-size: 0.84rem; color: rgba(244, 236, 225, 0.74);
  transition: color 0.18s, transform 0.18s;
}
.public-footer__col a:hover { color: var(--sand-100); transform: translateX(2px); }

/* --- Mentions --- */
.public-footer__legal {
  max-width: none; margin: clamp(26px, 4vw, 40px) 0 0; padding-top: 18px;
  border-top: 1px solid rgba(244, 236, 225, 0.12);
  display: flex; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap;
  font-size: 0.74rem; color: rgba(244, 236, 225, 0.42);
}
.public-footer__legal p { margin: 0; }
.public-footer__legal a { color: rgba(244, 236, 225, 0.62); }
.public-footer__legal a:hover { color: var(--sand-100); }
.public-footer__legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.public-footer__top { font-weight: 600; white-space: nowrap; }

@media (max-width: 1080px) {
  .public-footer__grid { grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .public-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .public-footer__brand { grid-column: 1 / -1; }
  .public-footer__cta { padding: 16px; }
  .public-footer__cta-actions { width: 100%; }
  .public-footer__cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 430px) {
  .public-footer__legal { font-size: 0.72rem; }
  .public-footer__trust li { font-size: 0.68rem; padding: 5px 8px; }
  .public-footer__col a { font-size: 0.82rem; }
}
@media (max-width: 360px) {
  .public-footer__grid { grid-template-columns: 1fr; }
}

/* --- Pied de page de l'espace client --- */
.app-foot__links {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
}
.app-foot__links a { color: var(--ink-50); }
.app-foot__links a:hover { color: var(--ink); text-decoration: underline; }

/* ============================================================
   BACK-OFFICE (personnel)
   ============================================================ */
.manage .side { background: #0d0b09; }
.manage .topbar__eyebrow { color: var(--brown-500); }

/* --- Indicateurs --- */
.adm-kpis {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.adm-kpi {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 16px;
  display: grid; gap: 6px; align-content: start; min-width: 0;
}
.adm-kpi__label {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-50); font-weight: 600;
}
.adm-kpi strong {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.03em; line-height: 1;
}
.adm-kpi__foot { font-size: 0.72rem; color: var(--ink-50); line-height: 1.45; }
.adm-kpi__foot a { color: var(--brown-600); font-weight: 600; }
.adm-kpi--dark { background: var(--ink); border-color: var(--ink); color: var(--sand-100); }
.adm-kpi--dark .adm-kpi__label { color: rgba(244, 236, 225, 0.55); }
.adm-kpi--dark .adm-kpi__foot { color: rgba(244, 236, 225, 0.6); }
.adm-kpi--warn { border-color: var(--sand-300); background: #fdf8f1; }

/* --- Grilles --- */
.adm-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px; margin-bottom: 18px; align-items: start;
}

/* --- Histogramme --- */
.adm-chart {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: 10px; align-items: stretch;
  height: 210px; padding-top: 8px;
}
.adm-chart__col {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px;
  min-width: 0; height: 100%; text-align: center;
}
.adm-chart__value { font-size: 0.68rem; color: var(--ink-50); white-space: nowrap; }
.adm-chart__bar {
  background: var(--sand-50); border-radius: 8px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 30px; height: 100%;
}
.adm-chart__bar span {
  display: block; width: 100%; border-radius: 8px; min-height: 6px; align-self: flex-end;
  background: linear-gradient(180deg, var(--brown-400), var(--brown-600));
  animation: admGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.adm-chart__label { font-size: 0.66rem; color: var(--ink-50); }
@keyframes admGrow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); } }

.adm-legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 0.76rem; color: var(--ink-50);
}
.adm-legend strong { color: var(--ink); }

/* --- Barres horizontales --- */
.adm-bars { display: grid; gap: 12px; }
.adm-bars__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 92px; gap: 10px; align-items: center; }
.adm-bars__label { font-size: 0.78rem; color: var(--ink-70); }
.adm-bars__track { height: 9px; background: var(--sand-50); border-radius: 999px; overflow: hidden; }
.adm-bars__track span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brown-500), var(--brown-300));
  animation: admSlide 0.8s ease both;
}
@keyframes admSlide { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }
.adm-bars__value { font-size: 0.78rem; text-align: right; color: var(--ink-70); }

/* --- Listes --- */
.adm-subtitle {
  margin: 4px 0 8px; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brown-500); font-weight: 600;
}
.adm-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.adm-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-s);
  background: var(--sand-50); border: 1px solid var(--line-soft);
}
.adm-list li > span:first-child { display: grid; gap: 2px; min-width: 0; }
.adm-list small { color: var(--ink-50); font-size: 0.72rem; }
.adm-list form { margin: 0; }

/* --- Filtres --- */
.adm-filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.adm-filters .field { flex: 1 1 220px; }
.adm-filters__sum { margin-left: auto; font-size: 0.78rem; color: var(--ink-50); }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.adm-tab {
  font-size: 0.76rem; color: var(--ink-70); padding: 6px 12px;
  border-radius: 999px; background: var(--sand-50); border: 1px solid var(--line-soft);
}
.adm-tab strong { color: var(--ink); }
.adm-inline { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin: 0; }
.adm-inline .select { min-width: 130px; }
.adm-kyc { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; max-width: 100%; }
.adm-kyc form, .adm-kyc .adm-inline { max-width: 100%; }
.adm-kyc .select { width: 180px; min-width: 0; }
@media (max-width: 620px) { .adm-kyc .select { width: 100%; } }
.adm-actions { display: grid; gap: 8px; margin-top: 14px; }

/* --- Messages --- */
.adm-message { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.adm-message:last-child { border-bottom: 0; }
.adm-message header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.adm-message p { margin: 0; }
.adm-message footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.adm-message footer form { margin: 0; }

@media (max-width: 1280px) {
  .adm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .adm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-chart { height: 150px; }
  .adm-bars__row { grid-template-columns: 78px minmax(0, 1fr) 76px; }
  .adm-filters .field { flex: 1 1 100%; }
  .adm-inline { justify-content: flex-start; }
  .adm-kyc { justify-items: start; }
}

.btn--block { width: 100%; justify-content: center; }
.manage .btn--sm { padding: 7px 12px; font-size: 0.78rem; border-radius: 9px; }
.side__link--staff { margin-top: 10px; border-top: 1px solid rgba(244, 236, 225, 0.12); padding-top: 14px; color: var(--sand-300); }
.side__link--staff:hover { color: #fff; }

/* Correctif back-office : boutons des formulaires compacts */
.adm-inline { flex-wrap: wrap; }
.adm-inline .btn { flex: 0 0 auto; }
.adm-message footer form { flex-wrap: wrap; }

/* Tableaux du back-office : colonnes secondaires masquées sur mobile */
@media (max-width: 720px) {
  .adm-table .col-sm { display: none; }
  .adm-table { font-size: 0.8rem; }
  .adm-table th, .adm-table td { padding: 10px 8px; }
}

/* Le conteneur de page est une grille : on autorise les panneaux à rétrécir
   pour que les tableaux larges défilent dans leur propre cadre. */
.manage .page > * { min-width: 0; }
.manage .panel { min-width: 0; }
@media (max-width: 900px) {
  .adm-table { min-width: 620px; }
}

@media (max-width: 560px) {
  .adm-table { min-width: 0; }
  .adm-table .col-xs { display: none; }
}

@media (max-width: 560px) {
  .adm-table th, .adm-table td { white-space: normal; overflow-wrap: anywhere; }
  .adm-table { table-layout: fixed; }
  .adm-table th:nth-child(1) { width: 44%; }
  .adm-table th:last-child { width: 26%; }
}

@media (max-width: 560px) {
  .adm-table .btn { white-space: normal; line-height: 1.2; padding: 8px 10px; text-align: center; }
  .adm-table .pill { white-space: normal; }
}

@media (max-width: 560px) {
  .adm-table td .btn { display: inline-block; max-width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .adm-table .col-action { display: none; }
  .adm-clients-table th:nth-child(1) { width: 56%; }
  .adm-clients-table th:last-child { width: 44%; }
  .adm-table th, .adm-table td { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
  .adm-table th { font-size: 0.62rem; letter-spacing: 0.04em; }
}

/* ============================================================
   VIREMENT BANCAIRE (commande de carte)
   ============================================================ */
.transfer-box {
  background: var(--sand-50); border: 1px solid var(--sand-300);
  border-radius: var(--radius-m); padding: 18px; margin-bottom: 14px;
}
.transfer-box__label {
  margin: 0; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brown-500); font-weight: 600;
}
.transfer-box__amount {
  margin: 6px 0 4px; font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em;
}
.transfer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.transfer-actions form { margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.transfer-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.transfer-steps li {
  counter-increment: step; position: relative; padding-left: 38px; display: grid; gap: 2px;
}
.transfer-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--sand-100); color: var(--brown-600);
  display: grid; place-items: center; font-size: 0.76rem; font-weight: 700;
}
.panel--ok { border-color: var(--sand-300); background: #fbf9f3; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }

@media (max-width: 560px) {
  .transfer-actions .btn { width: 100%; }
}

/* ============================================================
   PROGRESSION DE VIREMENT
   ============================================================ */
.progress {
  position: relative; height: 22px; border-radius: 999px;
  background: var(--sand-100); overflow: hidden; margin-bottom: 18px;
}
.progress__bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brown-400), var(--brown-600));
  transition: width .7s cubic-bezier(.22,1,.36,1);
  display: flex; align-items: center; justify-content: flex-end; min-width: 44px;
}
.progress__value {
  font-size: 0.68rem; font-weight: 700; color: #fff; padding-right: 9px;
  font-variant-numeric: tabular-nums;
}
.progress-steps {
  list-style: none; padding: 0; margin: 0 0 6px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.progress-steps__item {
  display: grid; gap: 2px; text-align: center; font-size: 0.72rem; color: var(--ink-50);
}
.progress-steps__item strong { font-size: 0.8rem; color: var(--ink-70); }
.progress-steps__dot {
  width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 6px;
  background: var(--sand-100); border: 2px solid var(--sand-300);
}
.progress-steps__item.is-done .progress-steps__dot { background: var(--brown-500); border-color: var(--brown-500); }
.progress-steps__item.is-done strong { color: var(--ink); }

.transfer-progress__amount {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em; margin: 0 0 2px;
}

.code-box {
  border: 1px solid var(--sand-300); background: var(--sand-50);
  border-radius: var(--radius-m); padding: 16px;
}
.code-box__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--brown-600); }
.code-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.code-form .field { flex: 1 1 180px; margin: 0; }
.code-input {
  font-family: ui-monospace, monospace; font-size: 1.25rem; letter-spacing: 0.42em;
  text-align: center; font-weight: 700;
}
.code-form .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

@media (max-width: 560px) {
  .progress-steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .code-form .btn { width: 100%; }
}

.adm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-toolbar .btn { gap: 8px; }
.adm-search { display: flex; flex: 1 1 260px; gap: 8px; }
.adm-search .input { min-width: 0; }

/* Édition de l'IBAN en ligne (details ouvert sur une ligne du tableau) */
.iban-edit > summary { list-style: none; cursor: pointer; }
.iban-edit > summary::-webkit-details-marker { display: none; }
.iban-edit > summary::after { content: "▸"; margin-left: 6px; opacity: 0.5; }
.iban-edit[open] > summary::after { content: "▾"; }
.iban-edit[open] > summary { border-color: var(--ink); background: var(--ink); color: var(--sand-100); }
.iban-edit__form { margin-top: 10px; padding: 14px; border-radius: var(--radius-m); background: var(--sand-50); border: 1px solid var(--sand-300); }
.iban-edit__actions { display: flex; gap: 8px; margin-top: 10px; }
.adm-form .field { margin-bottom: 14px; }
.adm-form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; }
.adm-progress { height: 8px; border-radius: 999px; background: var(--sand-100); overflow: hidden; min-width: 90px; }
.adm-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brown-400), var(--brown-600)); }
@media (max-width: 720px) { .adm-form__row { grid-template-columns: 1fr; } }

/* Boutons désactivés (back-office : activation, expédition, gel) */
.btn:disabled, .btn[disabled] { opacity: 0.42; cursor: not-allowed; box-shadow: none; transform: none; }

/* Actualisation automatique des montants (live.js) */
@keyframes live-flash {
  0% { color: var(--brown-600); background: rgba(194, 161, 124, 0.16); }
  100% { color: inherit; background: transparent; }
}
.is-live-updated { animation: live-flash 1.2s ease-out; border-radius: 6px; }

/* Profil : sommaire par ancres */
.profile-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.profile-tabs a {
  font-size: 0.78rem; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--sand-300); color: var(--ink-70); text-decoration: none;
  background: var(--sand-50); transition: background 0.18s ease, color 0.18s ease;
}
.profile-tabs a:hover { background: var(--ink); color: var(--sand-100); border-color: var(--ink); }
section[id] { scroll-margin-top: 90px; }
