/* Calculateur « Ce que vous payez vraiment » (calculateur.js). Couleurs : variables de site.css. Mobile d'abord. */
.bm-calc { max-width: 60rem; margin-inline: auto; }
.bm-calc:not(.bm-calc-pret) .bm-calc-form, .bm-calc:not(.bm-calc-pret) .bm-calc-resultat { display: none; }
.bm-calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1.2rem; }
.bm-calc-form .bm-calc-large, .bm-calc-autre { grid-column: 1 / -1; }
.bm-calc-autre { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1.2rem; }
.bm-calc-autre[hidden] { display: none; }
.bm-calc label { display: block; font-weight: 600; margin-bottom: .3rem; }
.bm-calc input, .bm-calc select { width: 100%; box-sizing: border-box; min-height: 44px; padding: .65rem .9rem; border: 1px solid #b9b7d6;
  border-radius: 10px; font: inherit; background: #fff; color: var(--bm-encre); }
.bm-calc input:focus, .bm-calc select:focus { outline: 3px solid rgba(91, 76, 251, .35); border-color: var(--bm-bleu); }
.bm-calc small { display: block; color: var(--bm-gris); margin-top: .25rem; }
.bm-calc-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.bm-calc-carte { background: #fff; border: 1px solid var(--bm-filet); border-radius: 14px; padding: 1rem 1.2rem; }
.bm-calc-nous { border: 2px solid var(--bm-bleu); }
.bm-calc-detail { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bm-calc-detail caption { text-align: left; font-weight: 700; color: var(--bm-encre); padding-bottom: .5rem; }
.bm-calc-detail th, .bm-calc-detail td { padding: .45rem 0; border-bottom: 1px solid var(--bm-filet); vertical-align: top; }
.bm-calc-detail th { font-weight: 400; color: var(--bm-gris); text-align: left; padding-right: .8rem; }
.bm-calc-detail td { text-align: right; white-space: nowrap; }
.bm-calc-total th, .bm-calc-total td { font-weight: 800; color: var(--bm-encre); border-bottom: 0; }
.bm-calc-nous .bm-calc-total td { color: var(--bm-bleu); }
.bm-calc-verdict { font-size: 1.15rem; font-weight: 700; color: var(--bm-encre); margin: 1.2rem 0 .4rem; }
.bm-calc-note, .bm-calc-mention { color: var(--bm-gris); font-size: .9rem; }
.bm-calc-sources { margin-top: 1rem; font-size: .9rem; color: var(--bm-gris); }
.bm-calc-sources summary { cursor: pointer; font-weight: 600; color: var(--bm-encre); padding-block: .7rem; }
.bm-calc-sources li { margin: .35rem 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .bm-calc-detail td { white-space: normal; } }
