/* BHE Simulateur — charte b-h-e.be. Tout est préfixé .bhes pour ne pas interférer avec le thème. */
.bhes {
	--bhes-primary: #ffc83d;
	--bhes-secondary: #ffeec3;
	--bhes-section: #f5f4f0;
	--bhes-text: #717171;
	--bhes-title: #000;
	--bhes-input: #495057;
	--bhes-border: #e0e0e0;
	--bhes-error: #dc3545;
	max-width: 760px;
	margin: 0 auto;
	color: var(--bhes-text);
	font-family: sofia-pro, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}
.bhes *, .bhes *::before, .bhes *::after { box-sizing: border-box; }
.bhes h2, .bhes h3 { color: var(--bhes-title); font-weight: 500; line-height: 1.2; margin: 0 0 1.5rem; }
.bhes p { margin: 0 0 1rem; }

/* Étapes */
.bhes .bhes-steps { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0 0 40px; counter-reset: bhes; }
.bhes .bhes-steps li { flex: 1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; font-size: .95rem; color: var(--bhes-text); }
.bhes .bhes-steps li::before {
	counter-increment: bhes; content: counter(bhes); position: static; flex: none; width: 32px; height: 32px; border-radius: 50%;
	display: grid; place-items: center; background: var(--bhes-section); color: var(--bhes-title); font-weight: 700;
}
.bhes .bhes-steps li.is-active { color: var(--bhes-title); font-weight: 500; }
.bhes .bhes-steps li.is-active::before { background: var(--bhes-primary); }
.bhes .bhes-steps li.is-done::before { background: var(--bhes-secondary); content: "✓"; }
@media (max-width: 575px) {
	.bhes .bhes-steps li span { display: none; }
	.bhes .bhes-steps li.is-active span { display: inline; }
}

.bhes .bhes-panel { display: none; }
.bhes .bhes-panel.is-active { display: block; }

.bhes .bhes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; }
.bhes .bhes-full { grid-column: 1 / -1; }
@media (max-width: 575px) { .bhes .bhes-grid { grid-template-columns: 1fr; } }

.bhes .bhes-field label, .bhes .bhes-label { display: block; color: var(--bhes-title); font-size: 1.25rem; line-height: 1.5; margin: 0 0 .5rem; font-weight: 400; }
.bhes .bhes-field small { display: block; font-size: .875rem; margin-top: .35rem; }
.bhes input:not([type=radio]):not([type=range]), .bhes select {
	display: block; width: 100%; height: 44px; margin: 0; padding: 9px 12px; font: inherit; font-size: 1rem; font-weight: 400;
	color: var(--bhes-input); background-color: #fff; border: 1px solid var(--bhes-border); border-radius: 8px; box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.bhes select {
	appearance: none; -webkit-appearance: none; padding-right: 36px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23343a40' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.bhes input:focus, .bhes select:focus { outline: none; border-color: var(--bhes-primary); box-shadow: 0 0 0 .2rem rgba(255, 200, 61, .35); }
.bhes .is-invalid { border-color: var(--bhes-error) !important; }
.bhes .bhes-euro { position: relative; }
.bhes .bhes-euro input { padding-right: 36px; }
.bhes .bhes-euro::after { content: "€"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--bhes-input); pointer-events: none; }

.bhes .bhes-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bhes .bhes-choice label { margin: 0; font-size: 1rem; }
.bhes .bhes-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bhes .bhes-choice span { display: block; text-align: center; padding: 10px 12px; border: 1px solid var(--bhes-border); border-radius: 8px; cursor: pointer; color: var(--bhes-title); background: #fff; }
.bhes .bhes-choice input:checked + span { background: var(--bhes-secondary); border-color: var(--bhes-primary); font-weight: 500; }
.bhes .bhes-choice input:focus-visible + span { box-shadow: 0 0 0 .2rem rgba(255, 200, 61, .35); }

.bhes .bhes-co { display: none; }
.bhes.is-duo .bhes-co { display: contents; }

.bhes .bhes-range { display: flex; align-items: center; gap: 16px; }
.bhes .bhes-range input { flex: 1; height: 32px; margin: 0; accent-color: var(--bhes-primary); }
.bhes .bhes-range output { min-width: 72px; text-align: right; color: var(--bhes-title); font-weight: 700; font-size: 1.25rem; }

.bhes .bhes-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bhes .bhes-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; }
.bhes .bhes-btn {
	display: inline-block; margin: 0; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.5; cursor: pointer;
	padding: 10px 40px; border-radius: 8px; border: 1px solid var(--bhes-primary); background: var(--bhes-primary); color: #000;
	transition: filter .15s; text-transform: none;
}
.bhes .bhes-btn:hover { filter: brightness(.95); }
.bhes .bhes-btn[disabled] { opacity: .6; cursor: wait; }
.bhes .bhes-link { background: none; border: 0; margin: 0; padding: 10px 0; font: inherit; color: var(--bhes-text); text-decoration: underline; cursor: pointer; }
.bhes .bhes-err { color: var(--bhes-error); font-size: .875rem; margin: 12px 0 0; min-height: 1em; }

/* Résultat */
.bhes .bhes-result { background: var(--bhes-section); border-radius: 8px; padding: 40px 32px; text-align: center; }
@media (max-width: 575px) { .bhes .bhes-result { padding: 28px 20px; } }
.bhes .bhes-eyebrow { color: var(--bhes-title); font-size: 1.125rem; margin-bottom: .25rem; }
.bhes .bhes-amount { color: var(--bhes-title); font-weight: 700; font-size: clamp(1.75rem, 6vw, 2.75rem); line-height: 1.2; margin: 0; font-variant-numeric: tabular-nums; }
.bhes .bhes-amount mark { background: linear-gradient(transparent 62%, var(--bhes-primary) 62%); color: inherit; padding: 0 .1em; white-space: nowrap; }
.bhes .bhes-per { color: var(--bhes-title); font-size: 1.125rem; margin: .5rem 0 1.75rem; }
.bhes .bhes-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; list-style: none; padding: 0; margin: 0; }
.bhes .bhes-facts li { margin: 0; padding: 0; font-size: 1rem; }
.bhes .bhes-facts li::before { display: none; }
.bhes .bhes-facts b { color: var(--bhes-title); font-weight: 500; }
.bhes .bhes-notice { font-size: .8125rem; margin: 24px 0 0; }

.bhes .bhes-lead { margin-top: 48px; }
.bhes .bhes-lead h3 { margin-bottom: .5rem; }
.bhes .bhes-lead > p { font-size: 1.125rem; margin-bottom: 1.5rem; }
.bhes .bhes-lead .bhes-actions { margin-top: 28px; }
.bhes .bhes-privacy { font-size: .8125rem; margin: 16px 0 0 !important; }
@media (max-width: 575px) {
	.bhes .bhes-lead .bhes-btn { width: 100%; }
	.bhes .bhes-lead .bhes-actions { flex-direction: column-reverse; }
}

.bhes .bhes-thanks { text-align: center; padding: 24px 0; }
.bhes .bhes-ok { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--bhes-primary); color: #000; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
