/* Programme membre (F-0052) : page « Devenir membre » et onglet « Ma fidélité ». Charte : olive #4F5D2F, ocre #E2A54A, terracotta #B4532A, crème #FAF8F1. */
.mb { --mb-olive: #4F5D2F; --mb-ocre: #E2A54A; --mb-terra: #B4532A; --mb-cream: #FAF8F1; --mb-sand: #F6E7CF; --mb-green: #EEF1E2; --mb-line: #DDE2CF; --mb-text: #26301A; --mb-grey: #5B6350;
  font-family: 'Figtree', system-ui, sans-serif; color: var(--mb-text); background: var(--mb-cream); }
.mb h1, .mb h2, .mb h3, .mb-title { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; }
.mb a { color: var(--mb-olive); }
.mb a:hover { color: var(--mb-text); }
.mb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mb-sec { padding: 64px 0; }
.mb-h2 { margin: 0; font-weight: 800; font-size: clamp(28px, 4vw, 40px); color: var(--mb-olive); }
.mb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.mb-btn--ocre { background: var(--mb-ocre); color: var(--mb-text); }
.mb-btn--ghost { border: 2px solid rgba(250, 248, 241, .5); color: var(--mb-cream); font-weight: 700; padding: 12px 24px; }
.mb-btn--olive { background: var(--mb-olive); color: var(--mb-cream); }
.mb-btn:focus-visible, .mb button:focus-visible, .mb input:focus-visible, .mb a:focus-visible { outline: 3px solid var(--mb-ocre); outline-offset: 2px; }

/* Ouverture */
.mb-hero { background: var(--mb-olive); color: var(--mb-cream); }
.mb-hero .mb-wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.mb-hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mb-kicker { font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mb-ocre); }
.mb-hero h1 { margin: 0; font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -.02em; color: #fff; }
.mb-hero p { margin: 0; font-size: 19px; line-height: 1.5; color: #DDE3C9; max-width: 560px; }
.mb-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mb-hero-card { flex: 1 1 340px; display: flex; justify-content: center; }
.mb-card-visual { position: relative; overflow: hidden; width: 360px; max-width: 100%; aspect-ratio: 1.6; border-radius: 26px; background: var(--mb-cream); color: var(--mb-text); padding: 22px 24px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-3deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .28); }
.mb-card-visual .mb-bg-emblem { position: absolute; right: -30px; bottom: -30px; width: 170px; height: auto; opacity: .18; }
.mb-card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.mb-card-top img { height: 26px; width: auto; }
.mb-chip { background: var(--mb-olive); color: var(--mb-cream); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.mb-card-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mb-grey); }
.mb-card-amount { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 40px; line-height: 1; }
.mb-card-bars { position: relative; background: #fff; border-radius: 8px; padding: 4px 8px; }
.mb-card-bars svg { display: block; width: 100%; height: 30px; }

/* Étapes */
.mb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.mb-step { background: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px rgba(38, 48, 26, .06); }
.mb-step-n { width: 44px; height: 44px; border-radius: 999px; background: var(--mb-ocre); color: var(--mb-text); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.mb-step strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; }
.mb-step span:last-child { font-size: 16px; color: var(--mb-grey); line-height: 1.5; }
.mb-example { margin-top: 20px; background: var(--mb-sand); border-radius: 22px; padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.mb-example strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; }
.mb-example span { font-size: 16px; line-height: 1.5; flex: 1 1 420px; }

/* Formules */
.mb-plans-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.mb-toggle { display: flex; background: #fff; border: 1px solid var(--mb-line); border-radius: 999px; padding: 4px; }
.mb-toggle button { border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 15px; background: transparent; color: var(--mb-text); min-height: 44px; }
.mb-toggle button[aria-pressed="true"] { background: var(--mb-olive); color: var(--mb-cream); }
.mb-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mb-plan { position: relative; background: #fff; color: var(--mb-text); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(38, 48, 26, .08); }
.mb-plan--pop { background: var(--mb-olive); color: var(--mb-cream); }
.mb-plan--pick { outline: 3px solid var(--mb-ocre); outline-offset: 3px; }
.mb-plan-badge { position: absolute; top: -12px; left: 30px; background: var(--mb-ocre); color: var(--mb-text); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.mb-plan-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; font-weight: 700; }
.mb-plan-for { font-size: 15px; opacity: .85; }
.mb-price { display: flex; align-items: baseline; gap: 6px; }
.mb-price b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 48px; }
.mb-price span { font-size: 16px; opacity: .85; }
.mb-plan-sub { font-size: 14px; font-weight: 700; color: var(--mb-terra); }
.mb-plan--pop .mb-plan-sub { color: var(--mb-ocre); }
.mb-plan hr { border: 0; height: 1px; background: var(--mb-line); width: 100%; margin: 0; }
.mb-plan--pop hr { background: rgba(250, 248, 241, .2); }
.mb-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.mb-plan .mb-btn { margin-top: 6px; font-size: 16px; background: var(--mb-olive); color: var(--mb-cream); width: 100%; box-sizing: border-box; }
.mb-plan--pop .mb-btn { background: var(--mb-ocre); color: var(--mb-text); }
.mb-btn[aria-disabled="true"], .mb-btn:disabled { opacity: .6; cursor: not-allowed; }
.mb-note { font-size: 14px; color: var(--mb-grey); margin-top: 18px; display: block; }
.mb-closed { background: var(--mb-sand); border-radius: 18px; padding: 16px 20px; margin-bottom: 20px; font-weight: 600; }

/* Simulateur */
.mb-sim { background: var(--mb-green); }
.mb-sim .mb-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 26px; }
.mb-range { background: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.mb-range label { font-size: 18px; font-weight: 700; }
.mb-range label span { color: var(--mb-terra); }
.mb-range input[type=range] { width: 100%; height: 32px; accent-color: var(--mb-olive); }
.mb-sim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mb-sim-card { background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; outline: 3px solid transparent; outline-offset: -3px; }
.mb-sim-card.is-best { outline-color: var(--mb-ocre); }
.mb-sim-card strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; }
.mb-sim-card small { font-size: 15px; color: var(--mb-grey); }
.mb-sim-net { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 32px; color: var(--mb-olive); }
.mb-sim-net.neg { color: var(--mb-terra); }

/* Mois / année */
.mb-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 24px; }
.mb-two > div { background: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--mb-line); }
.mb-two > div.is-year { border: 2px solid var(--mb-ocre); }
.mb-two strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 24px; }
.mb-two span { font-size: 16px; line-height: 1.6; color: var(--mb-grey); }

/* FAQ */
.mb-faq { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.mb-faq-item { background: #fff; border-radius: 18px; border: 1px solid var(--mb-line); }
.mb-faq-item button { width: 100%; border: 0; background: transparent; text-align: left; padding: 20px 22px; font-size: 18px; font-weight: 700; color: var(--mb-text); display: flex; justify-content: space-between; gap: 12px; min-height: 44px; font-family: inherit; }
.mb-faq-item p { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.6; color: var(--mb-grey); }
.mb-faq-item p[hidden] { display: none; }

/* Appel final */
.mb-final { background: var(--mb-terra); color: var(--mb-cream); }
.mb-final .mb-wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.mb-final h2 { margin: 0; font-weight: 800; font-size: clamp(26px, 3.5vw, 36px); flex: 1 1 420px; }
.mb-final .mb-btn { background: var(--mb-cream); color: var(--mb-terra); }

@media (max-width: 640px) {
  .mb-wrap { padding: 0 16px; }
  .mb-sec { padding: 44px 0; }
  .mb-hero .mb-wrap { padding-top: 40px; padding-bottom: 44px; gap: 28px; }
  .mb-hero p { font-size: 17px; }
  .mb-hero-actions .mb-btn { flex: 1 1 100%; }
  .mb-card-visual { transform: rotate(-2deg); }
  .mb-plan { padding: 24px; }
  .mb-toggle { width: 100%; }
  .mb-toggle button { flex: 1; padding: 12px 10px; font-size: 14px; }
  .mb-two > div { padding: 22px; }
  .mb-final .mb-btn { width: 100%; box-sizing: border-box; }
}
@media (prefers-reduced-motion: no-preference) { .mb-plan, .mb-sim-card { transition: outline-color .2s; } }

/* ---------- Espace client : Ma fidélité ---------- */
.mf { --mb-olive: #4F5D2F; --mb-ocre: #E2A54A; --mb-terra: #B4532A; --mb-sand: #F6E7CF; --mb-green: #EEF1E2; --mb-line: #DDE2CF; --mb-text: #26301A; --mb-grey: #5B6350; display: flex; flex-direction: column; gap: 22px; font-family: 'Figtree', system-ui, sans-serif; color: var(--mb-text); }
.mf h1, .mf h2 { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; margin: 0; }
.mf-sub { font-size: 16px; color: var(--mb-grey); }
.mf-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.mf-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mf-box { background: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mf-card { position: relative; overflow: hidden; background: var(--mb-olive); color: #FAF8F1; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mf-card .mf-bg { position: absolute; right: -40px; top: -20px; width: 200px; height: auto; opacity: .16; }
.mf-card-top { display: flex; justify-content: space-between; align-items: center; position: relative; gap: 12px; }
.mf-card-top img { height: 26px; width: auto; }
.mf-badge { background: var(--mb-ocre); color: var(--mb-text); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.mf-card small, .mf-card .mf-meta { font-size: 13px; color: #DDE3C9; position: relative; }
.mf-card .mf-meta b { color: #FAF8F1; }
.mf-code { position: relative; background: #fff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; width: 100%; font-family: inherit; color: var(--mb-text); }
.mf-code svg { display: block; width: 100%; max-width: 340px; height: 64px; }
.mf-code span { font-size: 13px; letter-spacing: .2em; }
button.mf-code { cursor: pointer; }
.mf-label { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mb-grey); }
.mf-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mf-big strong { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 52px; color: var(--mb-olive); line-height: 1; }
.mf-big span { font-size: 16px; color: var(--mb-grey); }
.mf-gauge { height: 16px; background: var(--mb-green); border-radius: 999px; overflow: hidden; }
.mf-gauge > div { height: 100%; background: var(--mb-ocre); border-radius: 999px; }
.mf-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--mb-grey); flex-wrap: wrap; }
.mf-recharge { background: var(--mb-sand); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.mf-stat { background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.mf-stat span { font-size: 14px; color: var(--mb-grey); }
.mf-stat strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 32px; }
.mf-stat--net { background: var(--mb-olive); color: #FAF8F1; }
.mf-stat--net span { color: #DDE3C9; }
.mf-stat--net strong { color: var(--mb-ocre); }
.mf-h2 { font-weight: 800; font-size: 22px; }
.mf-hist { display: flex; flex-direction: column; }
.mf-hist-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mb-green); }
.mf-hist-row b { font-weight: 700; }
.mf-hist-row small { display: block; font-size: 14px; color: var(--mb-grey); }
.mf-amt { font-weight: 800; white-space: nowrap; color: var(--mb-olive); }
.mf-amt.plus { color: var(--mb-terra); }
.mf-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 15px; }
.mf-kv span { color: var(--mb-grey); }
.mf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.mf-actions form { margin: 0; }
.mf-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--mb-olive); color: #FAF8F1; font-weight: 700; padding: 12px 18px; border-radius: 999px; min-height: 48px; text-decoration: none; font-family: inherit; font-size: 15px; cursor: pointer; }
.mf-btn--line { background: #fff; color: var(--mb-text); border: 1px solid var(--mb-line); }
.mf-btn--terra { background: var(--mb-terra); color: #FAF8F1; }
.mf-btn--text { background: transparent; color: var(--mb-terra); padding: 12px 6px; }
.mf a.mf-btn:hover { color: inherit; }
.mf-banner { border-radius: 18px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-weight: 600; }
.mf-banner--warn { background: var(--mb-terra); color: #FAF8F1; }
.mf-banner--info { background: var(--mb-sand); }
.mf-incentive { background: var(--mb-sand); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.mf-incentive--tip { background: #fff; border: 1px dashed #C9D3A4; }
.mf-incentive strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; }
.mf-incentive span { font-size: 15px; color: var(--mb-grey); line-height: 1.5; }
.mf-incentive .mf-btn { align-self: flex-start; }
.mf.is-suspended .mf-credit { opacity: .45; filter: grayscale(1); }
.mf-flash { border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.mf-flash--ok { background: var(--mb-green); }
.mf-flash--err { background: #F4DDD2; color: var(--mb-terra); }
.mf-pager { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
/* Plein écran de la carte (téléphone) */
.mf-full { position: fixed; inset: 0; z-index: 200; background: #fff; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.mf-full.is-open { display: flex; }
.mf-full svg { width: 100%; max-width: 560px; height: 140px; }
.mf-full .mf-full-code { font-size: 22px; letter-spacing: .25em; font-weight: 700; }
.mf-full .mf-full-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 800; }
.mf-full .mf-btn { min-width: 200px; }
.mf-hint-light { font-size: 14px; color: #DDE3C9; position: relative; }
@media (max-width: 640px) {
  .mf { gap: 16px; }
  .mf-card { border-radius: 26px; padding: 22px 20px; }
  .mf-card .mf-code svg { height: 84px; }
  .mf-big strong { font-size: 44px; }
  .mf-box { padding: 20px; border-radius: 22px; }
  .mf-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-grid3 .mf-stat--net { grid-column: 1 / -1; }
  .mf-stat strong { font-size: 26px; }
  .mf-actions .mf-btn { flex: 1 1 100%; }
}
.mb a.mb-btn--ghost { color: var(--mb-cream); }
.mb a.mb-btn--ocre { color: var(--mb-text); }
.mb a.mb-btn--olive, .mb a.mb-btn { color: inherit; }
.mb .mb-plan a.mb-btn { color: var(--mb-cream); }
.mb .mb-plan--pop a.mb-btn, .mb .mb-plan--pop .mb-btn { color: var(--mb-text); }
.mb .mb-final a.mb-btn { color: var(--mb-terra); }
.mb a.mb-btn--ocre:hover, .mb a.mb-btn--ghost:hover { color: inherit; }
