/*
 * Formulaires des pages (demande de financement, question, prescripteurs) et simulateur.
 * Les champs reprennent les classes du diagnostic (diagnostic.css, règles en :is(.bnm-diag, .bnm-form)) ;
 * ce fichier pose la mise en page propre aux pages, la variante sombre et le simulateur.
 */

/* ---------------------------------------------------------------- socle */

.bnm-form {
	--bnm-focus: var(--bnm-sombre);
	--bnm-champ: var(--bnm-creme-claire);
	position: relative;
	color: var(--bnm-sombre);
	font: 400 clamp(16px, calc(24px * var(--bnm-s)), 18px)/1.45 var(--e-global-typography-bnmtexte-font-family, "Helvetica Neue"), "Helvetica Neue", Helvetica, Arial, sans-serif;
	text-align: left;
}
.bnm-form .bnm-diag__form { margin: 0; }
.bnm-form .bnm-diag__surtitre { padding-right: 0; }
.bnm-form .bnm-diag__pas {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 0;
}
.bnm-form .bnm-diag__ligne:first-child,
.bnm-form .bnm-diag__coordonnees > .bnm-diag__ligne:nth-child(2) { margin-top: 0; }
.bnm-form .bnm-diag__ligne :is(input, textarea):-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--bnm-champ) inset;
	-webkit-text-fill-color: currentColor;
}

/* Choix : six natures sur trois colonnes, quatre situations bancaires sur deux. */
.bnm-form .bnm-diag__tuiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bnm-form .bnm-form__montant {
	grid-template-columns: minmax(0, 1fr);
	max-width: 360px;
	margin-top: max(22px, calc(36px * var(--bnm-s)));
}
.bnm-form .bnm-form__aide {
	font-size: max(13px, calc(17px * var(--bnm-s)));
	line-height: 1.35;
	opacity: .72;
}

/* Prescripteur : le nom seul sur sa ligne, puis profession et cabinet, puis téléphone et e-mail. */
.bnm-form--prescripteur .bnm-diag__coordonnees > .bnm-diag__ligne:first-child { grid-column: 1 / -1; }
.bnm-form--prescripteur .bnm-diag__coordonnees > .bnm-diag__ligne:nth-child(2) { margin-top: max(14px, calc(22px * var(--bnm-s))); }

/* Question : nom et contact côte à côte, la question dessous. */
.bnm-form .bnm-form__champs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: max(14px, calc(24px * var(--bnm-s)));
}
.bnm-form .bnm-form__champs > .bnm-diag__ligne:nth-child(2) { margin-top: 0; }
.bnm-form .bnm-form__champs > .bnm-diag__ligne:last-child { grid-column: 1 / -1; }

/* Liste déroulante au dessin des champs, flèche dessinée. */
.bnm-form .bnm-form__liste select {
	width: 100%;
	padding: max(12px, calc(18px * var(--bnm-s))) max(40px, calc(56px * var(--bnm-s))) max(12px, calc(18px * var(--bnm-s))) max(14px, calc(20px * var(--bnm-s)));
	border: 0;
	border-bottom: 1px solid var(--bnm-sombre);
	border-radius: 0;
	background: var(--bnm-champ) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23261417' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right max(14px, calc(20px * var(--bnm-s))) center / 14px 8px;
	color: inherit;
	font: inherit;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: box-shadow .3s ease;
}
.bnm-form .bnm-form__liste select:focus {
	outline: none;
	box-shadow: inset 0 -2px 0 0 var(--bnm-bleu);
}
.bnm-form .bnm-form__liste option {
	background: var(--bnm-creme);
	color: var(--bnm-sombre);
}

/* Envoi confirmé : remplace le formulaire, avec le récapitulatif transmis. */
.bnm-form .bnm-form__envoye:not([hidden]) { animation: bnm-diag-etape .6s var(--bnm-expo); }
.bnm-form .bnm-form__envoye-titre {
	margin-bottom: max(10px, calc(16px * var(--bnm-s)));
	font-size: max(24px, calc(44px * var(--bnm-s)));
}
.bnm-form .bnm-form__envoye > p:not(.bnm-diag__surtitre) { margin: 0; }
.bnm-form .bnm-form__envoye textarea {
	min-height: 0;
	color: rgba(38, 20, 23, .8);
	resize: none;
}

/* Bouton contour : même mesure que le bouton plein, filet intérieur pour ne pas changer la hauteur. */
.bnm-form .bnm-bouton--contour .elementor-button {
	background: transparent;
	color: var(--bnm-sombre);
	box-shadow: inset 0 0 0 1px var(--bnm-sombre);
}
.bnm-form .bnm-bouton--contour .elementor-button:is(:hover, :focus-visible) {
	background: var(--bnm-sombre);
	color: var(--bnm-creme);
}

/* -------------------------------------------------------- variante sombre */

.bnm-form--sombre {
	--bnm-focus: var(--bnm-creme);
	--bnm-champ: color-mix(in srgb, var(--bnm-creme) 8%, var(--bnm-sombre));
	color: var(--bnm-creme);
}
.bnm-form--sombre :is(h2, h3, h4, h5, legend) { color: var(--bnm-creme); }
.bnm-form--sombre :is(.bnm-diag__note, .bnm-diag__intro) { color: rgba(241, 235, 234, .72); }
.bnm-form--sombre .bnm-diag__ligne :is(input, textarea),
.bnm-form--sombre .bnm-diag__ligne :is(input, textarea):focus,
.bnm-form--sombre .bnm-form__liste select {
	border-bottom-color: var(--bnm-filet-creme);
	background-color: var(--bnm-champ);
	color: var(--bnm-creme);
}
.bnm-form--sombre .bnm-diag__ligne :is(input, textarea)::placeholder { color: rgba(241, 235, 234, .5); }
.bnm-form--sombre .bnm-form__envoye textarea { color: rgba(241, 235, 234, .85); }
.bnm-form--sombre .bnm-diag__accord input { accent-color: var(--bnm-creme); }
.bnm-form--sombre .bnm-diag__erreur {
	padding: 10px 14px;
	border-radius: 4px;
	background: var(--bnm-bordeaux);
	color: var(--bnm-creme);
}
.bnm-form--sombre .bnm-bouton .elementor-button:is(:hover, :focus-visible) {
	background: var(--bnm-creme);
	color: var(--bnm-sombre);
}

/* ------------------------------------------------------------- simulateur */

/* Onglets : un filet sous chaque calcul, bleu sous celui qui est choisi. */
.bnm-simu .bnm-simu__onglets {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: max(8px, calc(14px * var(--bnm-s)));
	margin-bottom: max(28px, calc(56px * var(--bnm-s)));
}
.bnm-simu .bnm-simu__onglets button {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 0 0;
	border: 0;
	border-top: 3px solid var(--bnm-filet);
	border-radius: 0;
	background: none;
	color: rgba(38, 20, 23, .6);
	font: 500 max(14px, calc(20px * var(--bnm-s)))/1.25 var(--e-global-typography-bnmbouton-font-family, "Helvetica Neue"), "Helvetica Neue", Helvetica, Arial, sans-serif;
	text-align: left;
	white-space: normal;
	transition: border-color .5s var(--bnm-expo), color .3s ease;
}
.bnm-simu .bnm-simu__onglets button:hover {
	background: none;
	color: var(--bnm-sombre);
}
.bnm-simu .bnm-simu__onglets button[aria-selected="true"] {
	border-top-color: var(--bnm-bleu);
	color: var(--bnm-sombre);
}
.bnm-simu .bnm-simu__onglets button:focus-visible {
	outline: 2px solid var(--bnm-focus);
	outline-offset: 4px;
}
/* Avec le script, un seul filet bleu glisse d'un onglet à l'autre (formulaires.js, repere). */
.bnm-simu .bnm-simu__onglets.a-repere { position: relative; }
.bnm-simu .bnm-simu__onglets.a-repere button[aria-selected="true"] { border-top-color: var(--bnm-filet); }
.bnm-simu .bnm-simu__repere {
	position: absolute;
	top: 0;
	left: 0;
	height: 3px;
	background: var(--bnm-bleu);
	pointer-events: none;
}
.bnm-simu .bnm-simu__onglets.est-pret .bnm-simu__repere { transition: transform .6s var(--bnm-expo), width .6s var(--bnm-expo); }
/* Les quatre calculs : des cartes de choix, comme les réponses du diagnostic. La carte choisie passe en sombre. */
.bnm-simu .bnm-simu__question {
	margin: 0 0 max(14px, calc(22px * var(--bnm-s)));
	color: var(--bnm-sombre);
	font: 500 max(16px, calc(24px * var(--bnm-s)))/1.3 var(--e-global-typography-bnmbouton-font-family, "Helvetica Neue"), "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.bnm-simu .bnm-simu__choix .bnm-simu__repere { display: none; }
.bnm-simu .bnm-simu__onglets.bnm-simu__choix button {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: max(16px, calc(26px * var(--bnm-s)));
	padding-right: max(42px, calc(60px * var(--bnm-s)));
	border: 0;
	border-radius: max(10px, calc(16px * var(--bnm-s)));
	background: var(--bnm-creme-claire);
	color: var(--bnm-sombre);
	cursor: pointer;
	transition: background-color .3s ease, color .3s ease;
}
.bnm-simu .bnm-simu__choix b {
	display: block;
	font-size: max(16px, calc(24px * var(--bnm-s)));
	font-weight: 500;
	line-height: 1.25;
}
.bnm-simu .bnm-simu__choix small {
	display: block;
	margin-top: 6px;
	font-size: max(13px, calc(18px * var(--bnm-s)));
	font-weight: 400;
	line-height: 1.35;
	opacity: .72;
}
.bnm-simu .bnm-simu__icone {
	display: grid;
	place-items: center;
	width: max(40px, calc(56px * var(--bnm-s)));
	height: max(40px, calc(56px * var(--bnm-s)));
	margin-bottom: max(14px, calc(24px * var(--bnm-s)));
	border-radius: 50%;
	background: var(--bnm-creme);
	color: var(--bnm-bordeaux);
	transition: background-color .3s ease, color .3s ease;
}
.bnm-simu .bnm-simu__icone svg {
	width: 46%;
	height: 46%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* Le rond de sélection, coché en bleu sur la carte choisie. */
.bnm-simu .bnm-simu__choix button::after {
	content: "";
	position: absolute;
	top: max(16px, calc(26px * var(--bnm-s)));
	right: max(16px, calc(24px * var(--bnm-s)));
	width: 22px;
	height: 22px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px rgba(38, 20, 23, .28);
	transition: background-color .3s ease, box-shadow .3s ease;
}
@media (hover: hover) {
	.bnm-simu .bnm-simu__onglets.bnm-simu__choix button:hover { background: var(--bnm-taupe); color: var(--bnm-sombre); }
	.bnm-simu .bnm-simu__choix button:hover::after { box-shadow: inset 0 0 0 1.5px var(--bnm-sombre); }
}
.bnm-simu .bnm-simu__onglets.bnm-simu__choix button[aria-selected="true"] {
	background: var(--bnm-sombre);
	color: var(--bnm-creme);
}
.bnm-simu .bnm-simu__choix button[aria-selected="true"] .bnm-simu__icone {
	background: rgba(241, 235, 234, .12);
	color: var(--bnm-creme);
}
.bnm-simu .bnm-simu__choix button[aria-selected="true"]::after {
	background: var(--bnm-bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1EBEA' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
	box-shadow: none;
}
.bnm-simu .bnm-simu__onglets--vues {
	display: flex;
	gap: max(18px, calc(32px * var(--bnm-s)));
	margin-bottom: max(18px, calc(32px * var(--bnm-s)));
}
.bnm-simu .bnm-simu__onglets--vues button { width: auto; }

/* Données à gauche, résultat à droite, collé sous l'en-tête. */
.bnm-simu .bnm-simu__corps {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
	gap: max(32px, calc(72px * var(--bnm-s)));
	align-items: start;
}
.bnm-simu .bnm-simu__form { margin: 0; }
.bnm-simu .bnm-simu__consigne { min-height: 2.8em; }
.bnm-simu .bnm-simu__form .bnm-diag__chiffres {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	row-gap: max(22px, calc(36px * var(--bnm-s)));
}
.bnm-simu .bnm-diag__chiffre .bnm-form__aide:empty { display: none; }
/* Libellés sur une même ligne, que le chiffre ait une aide ou non. */
.bnm-simu .bnm-diag__chiffre { align-content: start; }
.bnm-simu .bnm-simu__form .bnm-diag__erreur { margin-top: max(14px, calc(22px * var(--bnm-s))); }
.bnm-simu .bnm-simu__form .bnm-diag__retour { margin-top: max(14px, calc(22px * var(--bnm-s))); }
.bnm-simu .bnm-diag__note a {
	color: var(--bnm-sombre);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* Curseurs : le différé, et sous chaque chiffre une glissière qui tient lieu de filet. */
.bnm-simu .bnm-simu__curseur {
	display: grid;
	gap: max(8px, calc(12px * var(--bnm-s)));
	margin-top: max(26px, calc(44px * var(--bnm-s)));
}
.bnm-simu .bnm-simu__curseur .bnm-diag__etiquette {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.bnm-simu .bnm-simu__curseur output {
	font: 700 max(15px, calc(22px * var(--bnm-s)))/1.2 var(--e-global-typography-bnmnum-font-family, "alverata"), Georgia, serif;
}
.bnm-simu :is(.bnm-simu__curseur input, .bnm-simu__glisse) {
	--part: 0%;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.bnm-simu :is(.bnm-simu__curseur input, .bnm-simu__glisse)::-webkit-slider-runnable-track {
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(var(--plein, var(--bnm-sombre)), var(--plein, var(--bnm-sombre))) no-repeat 0 0 / var(--part) 100%, var(--bnm-filet);
}
.bnm-simu :is(.bnm-simu__curseur input, .bnm-simu__glisse)::-moz-range-track {
	height: 3px;
	border-radius: 2px;
	background: var(--bnm-filet);
}
.bnm-simu :is(.bnm-simu__curseur input, .bnm-simu__glisse)::-moz-range-progress {
	height: 3px;
	border-radius: 2px;
	background: var(--plein, var(--bnm-sombre));
}
.bnm-simu :is(.bnm-simu__curseur input, .bnm-simu__glisse)::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	margin-top: -9.5px;
	border: 3px solid var(--bnm-creme);
	border-radius: 50%;
	background: var(--bnm-bleu);
	box-shadow: 0 0 0 1px var(--bnm-sombre);
	-webkit-appearance: none;
	appearance: none;
	transition: scale .3s var(--bnm-expo);
}
.bnm-simu :is(.bnm-simu__curseur input, .bnm-simu__glisse)::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 3px solid var(--bnm-creme);
	border-radius: 50%;
	background: var(--bnm-bleu);
	box-shadow: 0 0 0 1px var(--bnm-sombre);
}
.bnm-simu :is(.bnm-simu__curseur input, .bnm-simu__glisse):active::-webkit-slider-thumb { scale: 1.15; }
.bnm-simu :is(.bnm-simu__curseur input, .bnm-simu__glisse):focus-visible {
	outline: 2px solid var(--bnm-focus);
	outline-offset: 4px;
}
/* La glissière se centre sur le bas du champ, dont elle remplace le filet ; elle passe au bleu pendant la saisie. */
.bnm-simu .bnm-simu__chiffre .bnm-diag__champ {
	border-bottom: 0;
	box-shadow: none !important;
}
.bnm-simu .bnm-simu__chiffre .bnm-simu__glisse {
	height: 22px;
	margin-top: calc(-1 * max(6px, calc(10px * var(--bnm-s))) - 11px);
}
.bnm-simu .bnm-simu__chiffre:is(:has(.bnm-diag__champ input:focus), :has(.bnm-simu__glisse:focus-visible)) .bnm-simu__glisse { --plein: var(--bnm-bleu); }
/* Au clavier, l'anneau de focus entoure le bouton de la glissière, sans couper le chiffre au-dessus. */
.bnm-simu .bnm-simu__chiffre .bnm-simu__glisse:focus-visible { outline: none !important; }
.bnm-simu .bnm-simu__chiffre .bnm-simu__glisse:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--bnm-sombre), 0 0 0 4px var(--bnm-focus); }
.bnm-simu .bnm-simu__chiffre .bnm-simu__glisse:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--bnm-sombre), 0 0 0 4px var(--bnm-focus); }

/* Jauge : la part des intérêts suit les données ; les montants s'affichent avec le résultat. */
.bnm-simu .bnm-simu__jauge { margin-top: max(26px, calc(44px * var(--bnm-s))); }
.bnm-simu .bnm-simu__jauge .bnm-diag__etiquette {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
}
.bnm-simu .bnm-simu__jauge output {
	font: 700 max(15px, calc(22px * var(--bnm-s)))/1.2 var(--e-global-typography-bnmnum-font-family, "alverata"), Georgia, serif;
	font-variant-numeric: tabular-nums;
}

/* Résultat : carte sombre, verrouillée jusqu'à l'envoi des coordonnées. */
.bnm-simu .bnm-simu__resultat {
	--bnm-focus: var(--bnm-creme);
	padding: max(26px, calc(56px * var(--bnm-s)));
	border-radius: max(10px, calc(18px * var(--bnm-s)));
	background: var(--bnm-sombre);
	color: var(--bnm-creme);
}
@media (min-width: 961px) {
	.bnm-simu .bnm-simu__resultat {
		position: sticky;
		top: calc(var(--bnm-admin-fixe, 0px) + var(--bnm-barre-h, 100px) + 24px);
	}
}
.bnm-simu .bnm-simu__libelle {
	margin: 0 0 max(10px, calc(16px * var(--bnm-s)));
	font: 400 max(12px, calc(20px * var(--bnm-s)))/1.2 var(--e-global-typography-bnmsurtitre-font-family, "Helvetica Neue"), "Helvetica Neue", Helvetica, Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: rgba(241, 235, 234, .72);
}
.bnm-simu .bnm-simu__libelle:empty { display: none; }
.bnm-simu .bnm-simu__titre {
	margin: 0 0 max(10px, calc(16px * var(--bnm-s)));
	font: 700 max(26px, calc(48px * var(--bnm-s)))/1.17 var(--e-global-typography-bnmh2-font-family, "alverata"), Georgia, serif;
}
.bnm-simu .bnm-simu__texte {
	max-width: 30em;
	margin: 0 0 max(22px, calc(36px * var(--bnm-s)));
	color: rgba(241, 235, 234, .8);
}
.bnm-simu .bnm-simu__ouvert:not([hidden]) { animation: bnm-diag-etape .6s var(--bnm-expo); }
.bnm-simu .bnm-simu__grand {
	margin: 0;
	font: 700 clamp(40px, 4.6vw, 76px)/1.05 var(--e-global-typography-bnmnum-font-family, "alverata"), Georgia, serif;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
/* Rouleaux du grand chiffre (formulaires.js) : une bande de 0 à 9 par chiffre, qui glisse jusqu'à sa valeur. */
.bnm-simu .bnm-simu__rouleaux { display: inline-flex; vertical-align: top; }
.bnm-simu :is(.bnm-simu__rouleau, .bnm-simu__signe) {
	display: inline-block;
	height: 1.1em;
	line-height: 1.1em;
	white-space: pre;
}
.bnm-simu .bnm-simu__rouleau { overflow: hidden; }
.bnm-simu .bnm-simu__rouleau > span {
	display: block;
	transition: transform .7s var(--bnm-expo);
}
.bnm-simu .sans-transition .bnm-simu__rouleau > span { transition: none; }
/* Carte fermée : le chiffre est là, flouté jusqu'à l'envoi. */
.bnm-simu .bnm-simu__flou {
	margin: 0 0 max(14px, calc(22px * var(--bnm-s)));
	filter: blur(max(10px, calc(16px * var(--bnm-s))));
	opacity: .8;
	user-select: none;
	-webkit-user-select: none;
}
.bnm-simu .bnm-simu__phrase {
	margin: max(10px, calc(14px * var(--bnm-s))) 0 0;
	color: rgba(241, 235, 234, .8);
}
.bnm-simu .bnm-simu__assurance {
	margin: max(6px, calc(8px * var(--bnm-s))) 0 0;
	font-weight: 600;
	color: var(--bnm-creme);
}
.bnm-simu .bnm-simu__barre {
	height: 10px;
	margin-top: max(10px, calc(16px * var(--bnm-s)));
	overflow: hidden;
	border-radius: 5px;
	background: var(--bnm-bordeaux);
}
.bnm-simu .bnm-simu__barre span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--bnm-bleu);
	transition: width .6s var(--bnm-expo);
}
.bnm-simu .bnm-simu__legende {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 18px;
	margin: 10px 0 0;
	font-size: max(12px, calc(16px * var(--bnm-s)));
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: rgba(38, 20, 23, .6);
}
.bnm-simu .bnm-simu__legende span { display: inline-flex; align-items: center; gap: 8px; }
.bnm-simu .bnm-simu__legende span::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--bnm-bleu);
}
.bnm-simu .bnm-simu__legende span + span::before { background: var(--bnm-bordeaux); }
.bnm-simu .bnm-simu__legende b {
	font-weight: 500;
	color: var(--bnm-sombre);
	text-transform: none;
	letter-spacing: 0;
}
.bnm-simu .bnm-simu__chiffres {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 max(18px, calc(32px * var(--bnm-s)));
	margin: max(24px, calc(40px * var(--bnm-s))) 0 0;
}
.bnm-simu .bnm-simu__chiffres div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: max(14px, calc(22px * var(--bnm-s))) 0;
	border-top: 1px solid rgba(241, 235, 234, .2);
}
.bnm-simu .bnm-simu__chiffres dd {
	order: -1;
	margin: 0;
	font: 700 max(19px, calc(30px * var(--bnm-s)))/1.15 var(--e-global-typography-bnmnum-font-family, "alverata"), Georgia, serif;
	font-variant-numeric: tabular-nums;
}
.bnm-simu .bnm-simu__chiffres dt {
	font-size: max(13px, calc(17px * var(--bnm-s)));
	font-weight: 400;
	line-height: 1.35;
	color: rgba(241, 235, 234, .72);
}
.bnm-simu .bnm-simu__resultat .bnm-diag__boutons { margin-top: max(18px, calc(28px * var(--bnm-s))); }
.bnm-simu .bnm-simu__resultat .bnm-bouton .elementor-button:is(:hover, :focus-visible) {
	background: var(--bnm-creme);
	color: var(--bnm-sombre);
}
.bnm-simu .bnm-simu__resultat .bnm-bouton--contour .elementor-button {
	background: transparent;
	color: var(--bnm-creme);
	box-shadow: inset 0 0 0 1px var(--bnm-filet-creme);
}
.bnm-simu .bnm-simu__resultat .bnm-bouton--contour .elementor-button:is(:hover, :focus-visible) {
	background: var(--bnm-creme);
	color: var(--bnm-sombre);
	box-shadow: none;
}
.bnm-simu .bnm-simu__mention {
	margin: max(18px, calc(28px * var(--bnm-s))) 0 0;
	font-size: max(12px, calc(16px * var(--bnm-s)));
	line-height: 1.4;
	color: rgba(241, 235, 234, .6);
}
/* Données incohérentes : le dernier résultat reste visible, atténué, le message d'erreur explique. */
.bnm-simu.sans-resultat :is(.bnm-simu__ouvert, .bnm-simu__jauge),
.bnm-simu.sans-resultat .bnm-simu__verrou .bnm-simu__titre { opacity: .35; transition: opacity .3s ease; }
/* Calcul impossible : pas de chiffre flouté, qui laisserait croire à un résultat. */
.bnm-simu.sans-resultat .bnm-simu__flou { display: none; }

/* Coordonnées dans la carte du résultat : quatre champs sur deux colonnes, le bouton sur toute la largeur. */
.bnm-simu .bnm-simu__demande .bnm-diag__coordonnees .bnm-diag__ligne:last-child { grid-column: auto; }
.bnm-simu .bnm-simu__demande .bnm-diag__accord { font-size: max(13px, calc(17px * var(--bnm-s))); color: rgba(241, 235, 234, .8); }
.bnm-simu .bnm-simu__demande .bnm-diag__nav { margin-top: max(20px, calc(32px * var(--bnm-s))); }
.bnm-simu .bnm-simu__demande .bnm-diag__nav .bnm-bouton { flex: 1 1 100%; }
.bnm-simu .bnm-simu__demande .bnm-diag__nav .bnm-bouton .elementor-button { width: 100%; }
.bnm-simu .bnm-simu__demande .bnm-diag__erreur:empty { display: none; }
.bnm-simu .bnm-simu__envoye {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 max(18px, calc(28px * var(--bnm-s)));
	padding-bottom: max(14px, calc(22px * var(--bnm-s)));
	border-bottom: 1px solid rgba(241, 235, 234, .2);
	font-size: max(13px, calc(17px * var(--bnm-s)));
	line-height: 1.4;
	color: rgba(241, 235, 234, .8);
}
.bnm-simu .bnm-simu__envoye:empty { display: none; }
.bnm-simu .bnm-simu__envoye::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: .05em;
	background: var(--bnm-bleu);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tableau d'amortissement */
.bnm-simu .bnm-simu__attente {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: max(16px, calc(24px * var(--bnm-s)));
	padding: max(22px, calc(40px * var(--bnm-s)));
	border-radius: max(10px, calc(18px * var(--bnm-s)));
	background: var(--bnm-creme-claire);
}
.bnm-simu .bnm-simu__attente p {
	max-width: 34em;
	margin: 0;
}
.bnm-simu .bnm-simu__tableau:not([hidden]) { animation: bnm-diag-etape .6s var(--bnm-expo); }
.bnm-simu .bnm-simu__enveloppe {
	max-height: 560px;
	overflow: auto;
	overscroll-behavior: contain;
	border-bottom: 1px solid var(--bnm-sombre);
}
.bnm-simu .bnm-simu__enveloppe:focus-visible {
	outline: 2px solid var(--bnm-focus);
	outline-offset: 4px;
}
.bnm-simu .bnm-simu__table {
	width: 100%;
	min-width: 760px;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: max(14px, calc(19px * var(--bnm-s)));
	font-variant-numeric: tabular-nums;
}
.bnm-simu .bnm-simu__table :is(th, td) {
	padding: max(10px, calc(14px * var(--bnm-s))) max(10px, calc(18px * var(--bnm-s)));
	border: 0;
	border-bottom: 1px solid var(--bnm-filet);
	background: none;
	line-height: 1.3;
	text-align: right;
	vertical-align: baseline;
	white-space: nowrap;
}
.bnm-simu .bnm-simu__table :is(th, td):first-child { padding-left: 0; text-align: left; }
.bnm-simu .bnm-simu__table :is(th, td):last-child { padding-right: 0; }
.bnm-simu .bnm-simu__table tbody tr:nth-child(odd) > td,
.bnm-simu .bnm-simu__table tbody tr:hover > td { background: none; }
.bnm-simu .bnm-simu__table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	border-bottom: 1.5px solid var(--bnm-sombre);
	background: var(--bnm-creme);
	font-size: max(12px, calc(16px * var(--bnm-s)));
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .06em;
	white-space: normal;
}
/* Sans le filet gris que le reset du thème parent pose au-dessus de la ligne d'en-tête (Tim, 22/10). */
.bnm-simu .bnm-simu__table thead > tr:first-child > th { border-top: 0; }
.bnm-simu .bnm-simu__table tbody tr.est-differe td { color: rgba(38, 20, 23, .6); }
.bnm-simu .bnm-simu__table tfoot :is(th, td) {
	position: sticky;
	bottom: 0;
	border-top: 1.5px solid var(--bnm-sombre);
	border-bottom: 0;
	background: var(--bnm-creme);
	font-weight: 700;
}
.bnm-simu--tableau .bnm-diag__boutons { margin-top: max(20px, calc(32px * var(--bnm-s))); }

@media (prefers-reduced-motion: reduce) {
	.bnm-simu :is(.bnm-simu__rouleau > span, .bnm-simu__repere, .bnm-simu__barre span) { transition: none !important; }
}

/* ---------------------------------------------------------------- tailles */

@media (max-width: 960px) {
	.bnm-simu .bnm-simu__onglets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bnm-simu .bnm-simu__corps { grid-template-columns: minmax(0, 1fr); }
	.bnm-form .bnm-diag__tuiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.bnm-simu .bnm-simu__onglets.bnm-simu__choix button { padding: 14px 40px 14px 14px; }
	.bnm-simu .bnm-simu__icone { width: 34px; height: 34px; margin-bottom: 10px; }
	.bnm-simu .bnm-simu__choix button::after { top: 14px; right: 14px; width: 20px; height: 20px; }
	.bnm-form .bnm-diag__tuiles,
	.bnm-form .bnm-diag__tuiles--4,
	.bnm-form .bnm-form__champs,
	.bnm-form .bnm-form__champs > .bnm-diag__ligne:nth-child(2),
	.bnm-form .bnm-diag__coordonnees > .bnm-diag__ligne:nth-child(2) { margin-top: max(14px, calc(22px * var(--bnm-s))); }
	.bnm-simu .bnm-simu__form .bnm-diag__chiffres { grid-template-columns: minmax(0, 1fr); }
	.bnm-simu .bnm-simu__chiffres { grid-template-columns: minmax(0, 1fr); }
	.bnm-simu .bnm-simu__attente { flex-direction: column; align-items: flex-start; }
}
