html.mc-statement-open { overflow: hidden; }
.mc-statement, .mc-statement * { box-sizing: border-box; }
.mc-statement { width: min(1120px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid #e2dfd6; border-radius: 22px; background: #faf9f5; color: #222b28; box-shadow: 0 28px 100px #17282140; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.5; }
.mc-statement::backdrop { background: #15211ed1; backdrop-filter: blur(5px); }
.mc-statement [hidden] { display: none !important; }
.mc-statement button, .mc-statement input, .mc-statement select { font: inherit; }
.mc-statement button { cursor: pointer; }
.mc-statement button:focus-visible, .mc-statement input:focus-visible, .mc-statement select:focus-visible, .mc-statement summary:focus-visible, .mc-statement__table-wrap:focus-visible, .mc-statement-launcher:focus-visible { outline: 3px solid #a66d00; outline-offset: 3px; }
.mc-statement button:disabled { cursor: not-allowed; opacity: .48; }
.mc-statement__shell { display: flex; flex-direction: column; max-height: calc(100dvh - 42px); }
.mc-statement__header { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 30px 20px; border-bottom: 1px solid #e6e3da; background: #fffefb; }
.mc-statement__eyebrow { margin: 0 0 7px; color: #63736b; font-size: 10px; font-weight: 750; letter-spacing: 1.35px; }
.mc-statement__title { margin: 0; color: #263d32; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.2; font-weight: 750; letter-spacing: -.6px; }
.mc-statement__title:focus { outline: none; }
.mc-statement__period { margin: 7px 0 0; color: #68736c; font-size: 13px; }
.mc-statement__logout { flex-shrink: 0; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #627169; font-size: 12px !important; text-decoration: underline; text-underline-offset: 3px; }
.mc-statement__logout:hover { background: #f0f1eb; color: #263d32; }
.mc-statement__body { min-height: 0; padding: 24px 30px 22px; overflow-y: auto; overscroll-behavior: contain; }
.mc-statement p { margin-top: 0; }
.mc-statement__intro { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid #d7e0d5; border-radius: 15px; background: #eef3e9; }
.mc-statement__amount-label { margin-bottom: 3px; color: #53694f; font-size: 12px; font-weight: 650; }
.mc-statement__amount { margin-bottom: 0; color: #264b33; font-size: clamp(30px, 3.7vw, 39px); font-weight: 760; line-height: 1.15; letter-spacing: -1.3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-statement__intro-copy p { margin-bottom: 7px; font-size: 13px; }
.mc-statement__intro-copy p:last-child { margin-bottom: 0; }
.mc-statement__muted { color: #68716b; font-size: 12px; line-height: 1.55; }
.mc-statement__notice { margin: 14px 0 22px !important; padding: 11px 14px; border-radius: 9px; background: #f0ede4; color: #6a5e41; font-size: 12px; line-height: 1.55; }
.mc-statement__notice--locked { border: 1px solid #e1c99a; background: #fff3da; color: #75521b; }
.mc-statement__columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(285px, .8fr); gap: 28px; align-items: start; }
.mc-statement h3 { margin: 0 0 14px; color: #2c4135; font-size: 15px; font-weight: 720; letter-spacing: -.2px; }
.mc-statement__table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e5e2d9; border-radius: 11px; background: #fffefb; }
.mc-statement__table { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.mc-statement__table th, .mc-statement__table td { padding: 12px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid #edeae3; font-size: inherit; text-transform: none; letter-spacing: normal; line-height: 1.5; }
.mc-statement__table th:first-child { text-align: left; }
.mc-statement__table thead th { background: #f0f1e9; color: #66705f; font-size: 9px; font-weight: 700; }
.mc-statement__table tbody th { color: #465243; font-weight: 650; background: transparent; }
.mc-statement__table tbody tr:last-child td, .mc-statement__table tbody tr:last-child th { border-bottom: 0; }
.mc-statement__table tfoot th, .mc-statement__table tfoot td { border-bottom: 0; border-top: 1px solid #e0e3d7; background: #f0f3ea; color: #2d4931; font-weight: 750; }
.mc-statement__partial { display: block; color: #848678; font-size: 9px; font-weight: 400; }
.mc-statement__method-title { margin-top: 24px !important; }
.mc-statement__breakdown { margin: 0; font-size: 12px; }
.mc-statement__breakdown-row { display: flex; gap: 14px; justify-content: space-between; padding: 7px 0; }
.mc-statement__breakdown dt { color: #697267; }
.mc-statement__breakdown dd { margin: 0; color: #354435; font-weight: 650; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-statement__breakdown-row--total { margin-top: 6px; padding-top: 12px; border-top: 1px solid #dfdfd2; }
.mc-statement__breakdown-row--total dt, .mc-statement__breakdown-row--total dd { color: #2d5037; font-weight: 750; }
.mc-statement__rounding { margin: 5px 0 0; text-align: right; color: #888b80; font-size: 10px; }
.mc-statement__calculator { padding: 22px; border: 1px solid #dfdfd2; border-radius: 14px; background: #f1f1e9; }
.mc-statement__calculator h3 { margin-bottom: 7px; }
.mc-statement__calculator > .mc-statement__muted { margin-bottom: 18px; }
.mc-statement__field { display: flex; flex-direction: column; gap: 6px; color: #566150; font-size: 11px; font-weight: 650; }
.mc-statement__field input, .mc-statement__field select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid #d1d5c7; border-radius: 8px; background: #fffefb; color: #354534; font-size: 14px; font-weight: 500; }
.mc-statement__field select { padding-right: 8px; font-size: 12px; }
.mc-statement__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; margin-top: 14px; }
.mc-statement__calc-results { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin: 20px 0 0; padding-top: 15px; border-top: 1px solid #d8ddce; font-size: 11px; }
.mc-statement__calc-results dt { color: #6a7564; }
.mc-statement__calc-results dd { margin: 0; color: #40533b; text-align: right; font-variant-numeric: tabular-nums; }
.mc-statement__calc-results .mc-statement__calc-amount { color: #2b4c32; font-size: 17px; font-weight: 750; }
.mc-statement__calc-error { margin: 12px 0 0; color: #9c3b31; font-size: 11px; }
.mc-statement__sources { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e1e0d6; font-size: 12px; }
.mc-statement__sources summary { min-height: 36px; color: #61705c; cursor: pointer; font-weight: 650; }
.mc-statement__sources dl { display: grid; gap: 12px; margin: 10px 0 0; }
.mc-statement__sources dl > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 14px; }
.mc-statement__sources dt { color: #51614d; font-weight: 650; }
.mc-statement__sources dd { margin: 0; color: #737a6e; }
.mc-statement__footer { flex-shrink: 0; padding: 18px 30px 22px; border-top: 1px solid #e1dfd4; background: #fffefb; }
.mc-statement__consent { display: flex; align-items: flex-start; gap: 10px; color: #4e5a4b; font-size: 12px; line-height: 1.55; cursor: pointer; }
.mc-statement__consent input { flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; accent-color: #38583e; }
.mc-statement__actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.mc-statement__footer-note { max-width: 420px; margin: 0; color: #858a7e; font-size: 10px; line-height: 1.45; }
.mc-statement__buttons { display: flex; flex-shrink: 0; gap: 10px; }
.mc-statement__button { min-height: 44px; padding: 12px 18px; border: 1px solid transparent; border-radius: 9px; font-size: 12px !important; font-weight: 700 !important; }
.mc-statement__button--primary { background: #36543d; color: white; }
.mc-statement__button--primary:hover:not(:disabled) { background: #27442e; }
.mc-statement__button--secondary { border-color: #d9dccf; background: #f7f7ef; color: #5e6a55; }
.mc-statement__button--secondary:hover:not(:disabled) { background: #ebeee2; }
.mc-statement__error { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e2bcb6; border-radius: 8px; background: #fff0eb; color: #953b30; font-size: 12px; }
.mc-statement-launcher { position: fixed; z-index: 2147482000; right: 22px; bottom: max(20px, env(safe-area-inset-bottom)); min-height: 44px; padding: 11px 17px; border: 1px solid #bfcbb7; border-radius: 12px; background: #f3f5eb; box-shadow: 0 4px 24px #243c2920; color: #395438; font: 650 12px 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; cursor: pointer; }
.mc-statement-load-failure { position: fixed; z-index: 2147481999; right: 22px; bottom: 72px; width: min(310px, calc(100vw - 44px)); margin: 0; padding: 12px 15px; border: 1px solid #e1c99a; border-radius: 10px; background: #fff7e6; color: #75521b; box-shadow: 0 4px 24px #243c2920; font: 12px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
@media (max-width: 800px) {
  .mc-statement { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  .mc-statement__shell { max-height: calc(100dvh - 22px); }
  .mc-statement__header { padding: 20px; }
  .mc-statement__body { padding: 20px; }
  .mc-statement__columns { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mc-statement__intro { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .mc-statement__footer { padding: 16px 20px 18px; }
  .mc-statement__actions { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
  .mc-statement__buttons { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; }
  .mc-statement__buttons > :only-child { grid-column: 1 / -1; }
  .mc-statement__footer-note { max-width: none; }
  .mc-statement-launcher { right: 14px; bottom: max(80px, calc(env(safe-area-inset-bottom) + 72px)); }
  .mc-statement-load-failure { right: 14px; bottom: max(132px, calc(env(safe-area-inset-bottom) + 124px)); }
}
@media (max-width: 480px) {
  .mc-statement { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 13px; }
  .mc-statement__shell { max-height: calc(100dvh - 14px); }
  .mc-statement__header { gap: 10px; padding: 15px 16px; }
  .mc-statement__eyebrow { max-width: 220px; font-size: 8px; letter-spacing: 1px; }
  .mc-statement__title { font-size: 22px; }
  .mc-statement__period { font-size: 11px; }
  .mc-statement__logout { max-width: 82px; font-size: 10px !important; line-height: 1.4; }
  .mc-statement__body { padding: 16px; }
  .mc-statement__intro { padding: 16px; }
  .mc-statement__intro-copy p { font-size: 11px; }
  .mc-statement__notice { font-size: 10px; }
  .mc-statement__table th, .mc-statement__table td { padding: 10px 7px; }
  .mc-statement__table { font-size: 9px; }
  .mc-statement__table thead th { font-size: 8px; }
  .mc-statement__calculator { padding: 18px; }
  .mc-statement__field input { font-size: 16px; }
  .mc-statement__sources dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .mc-statement__footer { padding: 13px 16px 15px; }
  .mc-statement__consent { font-size: 10px; gap: 8px; }
  .mc-statement__button { padding-inline: 10px; font-size: 10px !important; }
  .mc-statement__footer-note { font-size: 9px; }
  .mc-statement__actions { margin-top: 12px; }
}

/* LA PASTILLE « MON DECOMPTE » NE SE POSE PLUS SUR LE BOUTON DE BASCULE.
   Les deux vivaient en position:fixed au MEME endroit : #mcps-b (le bouton rond
   « changer d'espace », 56px de cote) a right:22px / bottom:22px, et ce lanceur a
   right:22px / bottom:20px. Ils se recouvraient exactement — constate le
   13/11/2026 dans le CRM d'Alexandra Peruzotti. Tant que la pastille de bascule
   est affichee (elle disparait sous 768px), « Mon decompte » se range A SA GAUCHE :
   90px = 22 de marge + 56 de bouton + 12 de respiration. Le menu de bascule, lui,
   s'ouvre vers le HAUT a partir de 90px : rien ne se croise. */
@media (min-width: 769px) {
  .mc-statement-launcher { right: 90px; bottom: max(28px, calc(env(safe-area-inset-bottom) + 8px)); }
  .mc-statement-load-failure { right: 90px; bottom: 84px; }
}
