/* =====================================================================
 * Fichier : assets/css/pages/brennstoffrechner.css
 * Projet  : Brennholz Shop24
 * Rôle    : Styles propres au calculateur de combustible
 *           (brennstoffrechner.php) : en-tête, formulaire par étapes,
 *           curseurs, cartes de choix, panneau de résultat collant,
 *           tableau comparatif avec barres animées, méthode de calcul,
 *           conseils, FAQ, appel à l'action, impression.
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. En-tête
 * ------------------------------------------------------------------- */
.bsr-hero::before { z-index: 0; }
.bsr-hero-embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bsr-hero-inner { position: relative; z-index: 2; }
.bsr-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin-top: 1rem; }
.bsr-hero-text h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); animation: hfk-fade-up .7s var(--hfk-ease) both; }
.bsr-hero-text h1 span { display: block; margin-top: .3rem; font-size: .55em; background: var(--hfk-grad-fire-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bsr-hero-text p { animation: hfk-fade-up .7s .12s var(--hfk-ease) both; }
.bsr-hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.bsr-hero-facts li { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-left: 4px solid var(--hfk-flame); color: #E9DFD5; animation: hfk-fade-up .7s var(--hfk-ease) both; }
.bsr-hero-facts li:nth-child(2) { animation-delay: .1s; border-left-color: var(--hfk-amber); }
.bsr-hero-facts li:nth-child(3) { animation-delay: .2s; border-left-color: var(--hfk-ember); }
.bsr-hero-facts i { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; background: var(--hfk-grad-ember); color: #fff; font-size: 1.05rem; }
.bsr-hero-facts strong { color: #fff; }

/* ---------------------------------------------------------------------
 * 2. Mise en page outil + formulaire
 * ------------------------------------------------------------------- */
.bsr-tool { overflow-x: clip; }
.bsr-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.bsr-form { display: grid; gap: 1.2rem; min-width: 0; }
.bsr-step { margin: 0; padding: clamp(1.2rem, 2.6vw, 1.8rem); background: #fff; border: 1px solid var(--hfk-border); border-top: 4px solid var(--hfk-flame); box-shadow: var(--hfk-shadow-sm); min-width: 0; transition: box-shadow .35s var(--hfk-ease); }
.bsr-step:focus-within { box-shadow: var(--hfk-shadow); }
.bsr-step legend, .bsr-advanced summary { float: left; width: 100%; display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; padding: 0; font-family: var(--hfk-font-head); font-size: 1.2rem; font-weight: 700; color: var(--hfk-charcoal); }
.bsr-step-no { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; background: var(--hfk-grad-fire); color: #fff; font-size: 1rem; }
.bsr-label { display: block; margin: 1rem 0 .5rem; font-weight: 700; font-size: .94rem; color: var(--hfk-charcoal); }
.bsr-panel > .bsr-label:first-child, .bsr-grid-2 .bsr-label { margin-top: 0; }
.bsr-note { display: flex; gap: .55rem; margin: 1rem 0 0; font-size: .88rem; color: var(--hfk-muted); }
.bsr-note i { margin-top: .2rem; color: var(--hfk-flame); }
.bsr-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bsr-panel[hidden], .bsr-water[hidden], .bsr-persons[hidden] { display: none !important; }
.bsr-panel { animation: hfk-fade-up .45s var(--hfk-ease) both; }

/* Bascule surface / consommation */
.bsr-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 1.2rem; border: 2px solid var(--hfk-charcoal); }
.bsr-switch-opt { position: relative; margin: 0; cursor: pointer; }
.bsr-switch-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bsr-switch-opt span { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .5rem .8rem; font-weight: 700; font-size: .92rem; text-align: center; color: var(--hfk-charcoal); transition: background .3s, color .3s; }
.bsr-switch-opt input:checked + span { background: var(--hfk-charcoal); color: #fff; }
.bsr-switch-opt input:checked + span i { color: var(--hfk-amber); }
.bsr-switch-opt input:focus-visible + span { outline: 3px solid var(--hfk-amber); outline-offset: -3px; }

/* Curseur + champ avec unité */
.bsr-range { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 1rem; align-items: center; }
.bsr-unit-input { display: flex; border: 2px solid var(--hfk-border); background: #fff; transition: border-color .25s, box-shadow .25s; }
.bsr-unit-input:focus-within { border-color: var(--hfk-flame); box-shadow: 0 0 0 4px rgba(34, 166, 75, .15); }
.bsr-unit-input input { flex: 1; min-width: 0; height: 50px; padding: 0 .8rem; border: 0; outline: 0; background: transparent; font-weight: 700; font-size: 1.08rem; color: var(--hfk-charcoal); }
.bsr-unit-input span { display: grid; place-items: center; padding: 0 .9rem; background: var(--hfk-ash); font-weight: 700; color: var(--hfk-muted); white-space: nowrap; }
.bsr-unit-input.is-invalid { border-color: var(--hfk-ember); }
.bsr-form .form-select { height: 54px; border: 2px solid var(--hfk-border); border-radius: 0; font-weight: 600; }
.bsr-form .form-select:focus { border-color: var(--hfk-flame); box-shadow: 0 0 0 4px rgba(34, 166, 75, .15); }

.bsr-form input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; background: linear-gradient(90deg, var(--hfk-flame) var(--fill, 50%), var(--hfk-ash) var(--fill, 50%)); outline: 0; cursor: pointer; }
.bsr-form input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; background: #fff; border: 5px solid var(--hfk-flame); box-shadow: var(--hfk-shadow-sm); transition: transform .2s var(--hfk-ease-bounce); }
.bsr-form input[type=range]::-moz-range-thumb { width: 18px; height: 18px; background: #fff; border: 5px solid var(--hfk-flame); border-radius: 0; box-shadow: var(--hfk-shadow-sm); }
.bsr-form input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
.bsr-form input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(255, 227, 43, .45); }

/* Cartes de standard */
.bsr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: .7rem; }
.bsr-card-opt, .bsr-device { position: relative; margin: 0; cursor: pointer; }
.bsr-card-opt input, .bsr-device input { position: absolute; opacity: 0; pointer-events: none; }
.bsr-card-body { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: .9rem 1rem; border: 2px solid var(--hfk-border); background: #fff; transition: border-color .25s, background .25s, transform .25s var(--hfk-ease); }
.bsr-card-body strong { font-size: .95rem; color: var(--hfk-charcoal); }
.bsr-card-body small { font-size: .8rem; color: var(--hfk-muted); line-height: 1.4; }
.bsr-card-body em { margin-top: auto; padding-top: .35rem; font-style: normal; font-size: .8rem; font-weight: 700; color: var(--hfk-flame-dark); }
.bsr-card-opt:hover .bsr-card-body, .bsr-device:hover .bsr-device-body { transform: translateY(-3px); border-color: var(--hfk-flame-light); }
.bsr-card-opt input:checked + .bsr-card-body { border-color: var(--hfk-flame); background: var(--hfk-cream); box-shadow: inset 0 -4px 0 var(--hfk-flame); }
.bsr-card-opt input:focus-visible + .bsr-card-body, .bsr-device input:focus-visible + .bsr-device-body { outline: 3px solid var(--hfk-amber); outline-offset: 2px; }

/* Appareils */
.bsr-devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); gap: .7rem; }
.bsr-device-body { display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; padding: 1rem .7rem; border: 2px solid var(--hfk-border); text-align: center; background: #fff; transition: border-color .25s, background .25s, color .25s, transform .25s var(--hfk-ease); }
.bsr-device-body i { width: 50px; height: 50px; display: grid; place-items: center; background: var(--hfk-ash); color: var(--hfk-flame); font-size: 1.3rem; transition: background .3s, color .3s, transform .4s var(--hfk-ease-bounce); }
.bsr-device-body strong { font-size: .9rem; line-height: 1.3; color: var(--hfk-charcoal); }
.bsr-device-body small { font-size: .78rem; color: var(--hfk-muted); }
.bsr-device input:checked + .bsr-device-body { border-color: var(--hfk-flame); background: var(--hfk-cream); }
.bsr-device input:checked + .bsr-device-body i { background: var(--hfk-grad-ember); color: #fff; transform: rotate(-8deg) scale(1.06); }

.bsr-water { margin-top: 1.1rem; padding: 1rem 1.1rem; background: #EAF6F4; border-left: 4px solid var(--hfk-forest); animation: hfk-fade-up .4s var(--hfk-ease) both; }
.bsr-check { display: flex; align-items: flex-start; gap: .6rem; margin: 0; font-weight: 600; cursor: pointer; }
.bsr-check input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: .1rem; accent-color: var(--hfk-forest); }
.bsr-stepper { display: inline-flex; border: 2px solid var(--hfk-border); background: #fff; }
.bsr-stepper button { width: 46px; height: 46px; border: 0; background: var(--hfk-ash); color: var(--hfk-charcoal); transition: background .2s, color .2s; }
.bsr-stepper button:hover { background: var(--hfk-flame); color: #fff; }
.bsr-stepper input { width: 64px; border: 0; text-align: center; font-weight: 700; font-size: 1.05rem; outline: 0; -moz-appearance: textfield; appearance: textfield; }
.bsr-stepper input::-webkit-outer-spin-button, .bsr-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Part couverte */
.bsr-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; }
.bsr-share-value { min-width: 92px; padding: .4rem .8rem; background: var(--hfk-grad-fire); color: #fff; font-family: var(--hfk-font-head); font-size: 1.6rem; font-weight: 800; text-align: center; transition: transform .25s var(--hfk-ease-bounce); }
.bsr-share-value.is-bump { transform: scale(1.1); }
.bsr-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.bsr-presets button { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .4rem; border: 2px solid var(--hfk-border); background: #fff; font-weight: 700; font-size: .84rem; color: var(--hfk-charcoal); transition: border-color .25s, background .25s, color .25s, transform .25s var(--hfk-ease); }
.bsr-presets button small { font-weight: 600; color: var(--hfk-muted); }
.bsr-presets button:hover { border-color: var(--hfk-flame); transform: translateY(-2px); }
.bsr-presets button.is-active { border-color: var(--hfk-flame); background: var(--hfk-flame); color: #fff; }
.bsr-presets button.is-active small { color: rgba(255, 255, 255, .85); }

/* Options avancées */
.bsr-step legend + * { clear: both; }
.bsr-advanced summary { float: none; margin: 0; cursor: pointer; list-style: none; }
.bsr-advanced summary::-webkit-details-marker { display: none; }
.bsr-advanced summary small { font-family: var(--hfk-font-body); font-size: .85rem; font-weight: 500; color: var(--hfk-muted); }
.bsr-advanced summary .fa-chevron-down { margin-left: auto; color: var(--hfk-flame); transition: transform .3s var(--hfk-ease); }
.bsr-advanced[open] summary { margin-bottom: 1.1rem; }
.bsr-advanced[open] summary .fa-chevron-down { transform: rotate(180deg); }

.bsr-submit { display: flex; flex-wrap: wrap; gap: .7rem; }
.js .bsr-submit .btn-hfk { display: none; }

/* ---------------------------------------------------------------------
 * 3. Résultat
 * ------------------------------------------------------------------- */
.bsr-result { position: sticky; top: calc(var(--hfk-header-h, 90px) + 1rem); min-width: 0; }
.bsr-result-card { background: var(--hfk-grad-night); color: #E9DFD5; box-shadow: var(--hfk-shadow-lg); animation: hfk-fade-up .7s .2s var(--hfk-ease) both; }
.bsr-result-head { padding: 1.5rem 1.5rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.bsr-result-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hfk-amber); }
.bsr-result-heat { display: block; margin: .3rem 0 .2rem; font-family: var(--hfk-font-head); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; color: #fff; }
.bsr-result-head small { font-size: .82rem; color: #BFB3A7; }
.bsr-best { position: relative; padding: 1.5rem; }
.bsr-best-flag { position: absolute; right: 1.5rem; top: -14px; padding: .3rem .7rem; background: var(--hfk-amber); color: var(--hfk-charcoal); font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.bsr-best-main { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.bsr-best-main > i { width: 60px; height: 60px; flex: 0 0 60px; display: grid; place-items: center; background: var(--hfk-grad-fire); color: #fff; font-size: 1.6rem; animation: bsr-glow 2.6s ease-in-out infinite; }
.bsr-best-main strong { display: block; font-family: var(--hfk-font-head); font-size: 1.3rem; color: #fff; }
.bsr-best-main span { color: #D5DADF; }
.bsr-best-main b { color: var(--hfk-amber); font-size: 1.15rem; }
.bsr-best-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1.2rem; }
.bsr-best-stats div { padding: .7rem .6rem; background: rgba(255, 255, 255, .06); border-top: 3px solid var(--hfk-flame); }
.bsr-best-stats div:last-child { border-top-color: var(--hfk-forest); }
.bsr-best-stats dt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #BFB3A7; }
.bsr-best-stats dd { margin: .2rem 0 0; font-family: var(--hfk-font-head); font-size: 1.08rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.bsr-result-foot { margin: 0; padding: 0 1.5rem 1rem; font-size: .76rem; color: #A99D91; }
.bsr-result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .1); }
.bsr-result-actions .btn { border: 0; background: transparent; color: #E9DFD5; padding: .9rem; font-size: .9rem; }
.bsr-result-actions .btn + .btn { border-left: 1px solid rgba(255, 255, 255, .1); }
.bsr-result-actions .btn:hover, .bsr-result-actions .btn:focus-visible { background: rgba(255, 255, 255, .08); color: var(--hfk-amber); transform: none; }
.bsr-result.is-updating [data-bsr-heat], .bsr-result.is-updating [data-bsr-best-qty], .bsr-result.is-updating [data-bsr-best-cost] { animation: bsr-flash .45s var(--hfk-ease); }

@keyframes bsr-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 166, 75, .5); } 50% { box-shadow: 0 0 0 10px rgba(34, 166, 75, 0); } }
@keyframes bsr-flash { 0% { opacity: .3; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
[data-bsr-heat], [data-bsr-best-qty], [data-bsr-best-cost] { display: inline-block; }

/* ---------------------------------------------------------------------
 * 4. Tableau comparatif
 * ------------------------------------------------------------------- */
.bsr-compare { margin-top: clamp(2rem, 4vw, 3rem); }
.bsr-compare-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .4rem; }
.bsr-compare-head p { color: var(--hfk-muted); }
.bsr-table-wrap { background: #fff; border: 1px solid var(--hfk-border); box-shadow: var(--hfk-shadow-sm); }
.bsr-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.bsr-table th, .bsr-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--hfk-border); text-align: left; vertical-align: middle; }
.bsr-table thead th { background: var(--hfk-charcoal); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bsr-table tbody tr { transition: background .25s; }
.bsr-table tbody tr:hover { background: var(--hfk-cream); }
.bsr-table tr.is-best { background: #FFF6E5; box-shadow: inset 4px 0 0 var(--hfk-amber); }
.bsr-table tr.is-best th::after { content: 'Tipp'; margin-left: .5rem; padding: .1rem .45rem; background: var(--hfk-amber); color: var(--hfk-charcoal); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.bsr-table tr.is-fossil { color: var(--hfk-muted); background: #F7F4F1; }
.bsr-table td small, .bsr-fuel small { color: var(--hfk-muted); font-weight: 500; }
.bsr-fuel { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.bsr-fuel i { width: 1.2em; text-align: center; }
.bsr-bar-col { width: 28%; }
.bsr-bar { display: block; height: 12px; background: var(--hfk-ash); overflow: hidden; }
.bsr-bar span { display: block; height: 100%; background: #8C8079; transform-origin: left; animation: bsr-grow .9s var(--hfk-ease) both; transition: width .5s var(--hfk-ease); }
@keyframes bsr-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bsr-compare-note { display: flex; gap: .55rem; margin: 1rem 0 0; font-size: .86rem; color: var(--hfk-muted); }
.bsr-compare-note i { margin-top: .2rem; color: var(--hfk-flame); }

/* ---------------------------------------------------------------------
 * 5. Méthode
 * ------------------------------------------------------------------- */
.bsr-method { overflow-x: clip; }
.bsr-method-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.bsr-method-text p { color: var(--hfk-muted); }
.bsr-formula { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.4rem; padding: 1rem; background: #fff; border-left: 4px solid var(--hfk-flame); font-weight: 700; }
.bsr-formula span { padding: .35rem .6rem; background: var(--hfk-ash); font-size: .9rem; }
.bsr-formula span:first-child { background: var(--hfk-grad-ember); color: #fff; }
.bsr-formula i { font-style: normal; font-size: 1.2rem; color: var(--hfk-flame); }
.bsr-method-table { padding: clamp(1.2rem, 3vw, 1.8rem); background: #fff; box-shadow: var(--hfk-shadow); }
.bsr-method-table h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.bsr-heat-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bsr-heat-table th, .bsr-heat-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--hfk-border); text-align: left; }
.bsr-heat-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hfk-muted); }
.bsr-heat-table tbody th { font-weight: 700; white-space: nowrap; }
.bsr-heat-table tbody th i { width: 1.2em; }

/* ---------------------------------------------------------------------
 * 6. Conseils, FAQ, appel à l'action
 * ------------------------------------------------------------------- */
.bsr-tips-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.bsr-tip { padding: 1.5rem; background: #fff; border: 1px solid var(--hfk-border); transition: transform .35s var(--hfk-ease), box-shadow .35s var(--hfk-ease), border-color .35s; }
.bsr-tip:hover { transform: translateY(-6px); box-shadow: var(--hfk-shadow); border-color: var(--hfk-flame-light); }
.bsr-tip-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--hfk-grad-fire); color: #fff; font-size: 1.35rem; transition: transform .45s var(--hfk-ease-bounce); }
.bsr-tip:hover .bsr-tip-icon { transform: rotate(-10deg) scale(1.08); }
.bsr-tip h3 { font-size: 1.1rem; }
.bsr-tip p { margin: 0; color: var(--hfk-muted); font-size: .93rem; }

.bsr-faq { max-width: 900px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.bsr-faq h2 { text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.4rem; }
.bsr-faq-item { margin-bottom: .6rem; background: #fff; border: 1px solid var(--hfk-border); transition: border-color .3s, box-shadow .3s; }
.bsr-faq-item[open] { border-color: var(--hfk-flame); box-shadow: var(--hfk-shadow-sm); }
.bsr-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; }
.bsr-faq-item summary::-webkit-details-marker { display: none; }
.bsr-faq-item summary i { flex: 0 0 auto; color: var(--hfk-flame); transition: transform .3s var(--hfk-ease); }
.bsr-faq-item[open] summary i { transform: rotate(45deg); }
.bsr-faq-item p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--hfk-muted); animation: hfk-fade-up .4s var(--hfk-ease) both; }

.bsr-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 4vw, 2.6rem); background: var(--hfk-grad-ember); color: #fff; }
.bsr-cta h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: .4rem; }
.bsr-cta p { margin: 0; color: rgba(255, 255, 255, .9); max-width: 620px; }
.bsr-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; flex: 0 0 auto; }
.bsr-cta .bsr-cta-ghost { color: #fff; border-color: #fff; background: transparent; }
.bsr-cta .bsr-cta-ghost:hover { background: #fff; color: var(--hfk-ember); }

/* ---------------------------------------------------------------------
 * 7. Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .bsr-tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .bsr-hero-grid, .bsr-layout, .bsr-method-grid { grid-template-columns: minmax(0, 1fr); }
    .bsr-hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bsr-result { position: static; }
    .bsr-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767.98px) {
    .bsr-hero-facts { grid-template-columns: minmax(0, 1fr); }
    .bsr-range, .bsr-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .bsr-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bsr-switch-opt span { font-size: .84rem; min-height: 56px; }
    /* Tableau en cartes */
    .bsr-table-wrap { background: transparent; border: 0; box-shadow: none; }
    .bsr-table thead { display: none; }
    .bsr-table, .bsr-table tbody, .bsr-table tr, .bsr-table th, .bsr-table td { display: block; width: 100%; }
    .bsr-table tr { margin-bottom: .8rem; background: #fff; border: 1px solid var(--hfk-border); }
    .bsr-table tr.is-best { box-shadow: inset 0 4px 0 var(--hfk-amber); }
    .bsr-table th[scope=row] { padding: .9rem 1rem; background: var(--hfk-cream); }
    .bsr-table td { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 1rem; text-align: right; }
    .bsr-table td::before { content: attr(data-label); font-weight: 600; color: var(--hfk-muted); text-align: left; }
    .bsr-table td.bsr-bar-col { padding: .2rem 1rem .9rem; border-bottom: 0; }
    .bsr-table td.bsr-bar-col::before { content: none; }
    .bsr-tips-grid { grid-template-columns: minmax(0, 1fr); }
    .bsr-best-stats dd { font-size: .98rem; }
}
@media (max-width: 420px) {
    .bsr-best-stats { grid-template-columns: minmax(0, 1fr); }
    .bsr-best-flag { right: 1rem; }
    .bsr-cta-actions, .bsr-cta-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
 * 8. Impression : uniquement le résultat et le tableau
 * ------------------------------------------------------------------- */
@media print {
    .bsr-hero, .bsr-form, .bsr-method, .bsr-tips, .bsr-result-actions, [data-bsr-best-link] { display: none !important; }
    .bsr-layout { display: block; }
    .bsr-result { position: static; }
    .bsr-result-card { background: #fff; color: #000; box-shadow: none; border: 1px solid #999; }
    .bsr-result-heat, .bsr-best-main strong, .bsr-best-stats dd { color: #000; }
    .bsr-table tr.is-best th::after { border: 1px solid #000; }
}

@media (prefers-reduced-motion: reduce) {
    .bsr-best-main > i, .bsr-bar span { animation: none; }
}