/* Simulateur de crédit — Segers & Associés
   Charte reprise du site : Heebo (corps), DM Sans (titres/boutons),
   #20282D (boutons), #223035 (accent), texte #263037. */

.bp-sim {
	--bpsim-dark: #20282d;
	--bpsim-accent: #223035;
	--bpsim-text: #263037;
	--bpsim-muted: #6b7a80;
	--bpsim-line: #e2e8e8;
	--bpsim-soft: #f4f7f7;
	--bpsim-card: #ffffff;
	--bpsim-radius: 16px;
	--bpsim-pill: 30px;

	max-width: 640px;
	margin: 0 auto;
	font-family: "Heebo", Arial, sans-serif;
	color: var(--bpsim-text);
	font-size: 15px;
	line-height: 1.55;
}

.bp-sim *,
.bp-sim *::before,
.bp-sim *::after { box-sizing: border-box; }

.bp-sim__card {
	background: var(--bpsim-card);
	border-radius: var(--bpsim-radius);
	box-shadow: 0 18px 50px -20px rgba(34, 48, 53, .35);
	padding: 30px 30px 26px;
	overflow: hidden;
}

/* --- Progression --- */
.bp-sim__progress {
	display: flex;
	gap: 8px;
	margin-bottom: 26px;
}
.bp-sim__progress span {
	flex: 1;
	font-family: "DM Sans", "Heebo", sans-serif;
	font-size: 12px;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--bpsim-muted);
	padding-bottom: 8px;
	border-bottom: 3px solid var(--bpsim-line);
	transition: color .3s, border-color .3s;
}
.bp-sim__progress span.is-active { color: var(--bpsim-accent); border-color: var(--bpsim-accent); font-weight: 700; }
.bp-sim__progress span.is-done { color: var(--bpsim-accent); border-color: var(--bpsim-accent); }

/* --- Titres --- */
.bp-sim__title {
	font-family: "DM Sans", "Heebo", sans-serif;
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 6px;
	color: var(--bpsim-text);
}
.bp-sim__sub { color: var(--bpsim-muted); margin: 0 0 22px; }

/* --- Animation d'étape (effet slider) --- */
.bp-sim__panel { animation: bpsim-slide-in .35s cubic-bezier(.22,.61,.36,1); }
.bp-sim__panel.out-left { animation: bpsim-slide-out-left .3s forwards; }
.bp-sim__panel.out-right { animation: bpsim-slide-out-right .3s forwards; }
@keyframes bpsim-slide-in { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes bpsim-slide-out-left { to { opacity: 0; transform: translateX(-36px); } }
@keyframes bpsim-slide-out-right { to { opacity: 0; transform: translateX(36px); } }

/* --- Choix du type (étape 0) --- */
.bp-sim__choices { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .bp-sim__choices { grid-template-columns: 1fr; } }
.bp-sim__choice {
	border: 2px solid var(--bpsim-line);
	border-radius: 14px;
	padding: 22px 18px;
	cursor: pointer;
	text-align: left;
	background: var(--bpsim-card);
	transition: border-color .2s, box-shadow .2s, transform .2s;
	font-family: inherit;
	color: inherit;
}
.bp-sim__choice:hover { border-color: var(--bpsim-accent); box-shadow: 0 10px 26px -16px rgba(34,48,53,.5); transform: translateY(-2px); }
.bp-sim__choice.is-selected { border-color: var(--bpsim-accent); background: var(--bpsim-soft); }
.bp-sim__choice b { display: block; font-family: "DM Sans","Heebo",sans-serif; font-size: 17px; margin-bottom: 6px; }
.bp-sim__choice span { color: var(--bpsim-muted); font-size: 14px; }

/* --- Champs --- */
.bp-sim__field { margin-bottom: 18px; }
.bp-sim__field > label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 7px; }
.bp-sim__input,
.bp-sim__textarea {
	width: 100%;
	border: 1px solid var(--bpsim-line);
	border-radius: 10px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--bpsim-text);
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.bp-sim__input:focus,
.bp-sim__textarea:focus { outline: none; border-color: var(--bpsim-accent); box-shadow: 0 0 0 3px rgba(34,48,53,.1); }
.bp-sim__textarea { resize: vertical; min-height: 80px; }
.bp-sim__row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .bp-sim__row { grid-template-columns: 1fr; } }
.bp-sim__suffix { position: relative; }
.bp-sim__suffix::after { content: "€"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--bpsim-muted); pointer-events: none; }

/* --- Formule (radios) --- */
.bp-sim__radios { display: flex; gap: 12px; flex-wrap: wrap; }
.bp-sim__radio {
	flex: 1; min-width: 130px;
	border: 2px solid var(--bpsim-line); border-radius: 12px;
	padding: 12px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px;
	transition: border-color .2s, background .2s;
}
.bp-sim__radio.is-selected { border-color: var(--bpsim-accent); background: var(--bpsim-soft); }
.bp-sim__radio input { accent-color: var(--bpsim-accent); }

/* --- Slider durée --- */
.bp-sim__slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.bp-sim__slider-val { font-family: "DM Sans","Heebo",sans-serif; font-size: 22px; font-weight: 700; color: var(--bpsim-accent); }
.bp-sim__range {
	-webkit-appearance: none; appearance: none;
	width: 100%; height: 6px; border-radius: 6px;
	background: linear-gradient(to right, var(--bpsim-accent) 0%, var(--bpsim-accent) var(--pct,50%), var(--bpsim-line) var(--pct,50%), var(--bpsim-line) 100%);
	outline: none; margin: 6px 0;
}
.bp-sim__range::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 24px; height: 24px; border-radius: 50%;
	background: #fff; border: 3px solid var(--bpsim-accent);
	cursor: pointer; box-shadow: 0 2px 8px rgba(34,48,53,.35);
}
.bp-sim__range::-moz-range-thumb {
	width: 24px; height: 24px; border-radius: 50%;
	background: #fff; border: 3px solid var(--bpsim-accent); cursor: pointer;
}
.bp-sim__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--bpsim-muted); margin-top: 2px; }

/* --- Boutons --- */
.bp-sim__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.bp-sim__btn {
	font-family: "DM Sans","Heebo",sans-serif;
	border-radius: var(--bpsim-pill);
	padding: 13px 30px; font-size: 15px; cursor: pointer; border: 2px solid transparent;
	transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.bp-sim__btn:active { transform: translateY(1px); }
.bp-sim__btn--primary { background: var(--bpsim-dark); color: #fff; }
.bp-sim__btn--primary:hover { background: var(--bpsim-accent); }
.bp-sim__btn--primary[disabled] { opacity: .55; cursor: default; }
.bp-sim__btn--ghost { background: transparent; color: var(--bpsim-accent); border-color: var(--bpsim-line); }
.bp-sim__btn--ghost:hover { border-color: var(--bpsim-accent); }

/* --- Erreurs / infos --- */
.bp-sim__error { color: #b3261e; font-size: 14px; margin-top: 10px; min-height: 18px; }
.bp-sim__note { color: var(--bpsim-muted); font-size: 13px; margin-top: 10px; }
.bp-sim__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- OTP --- */
.bp-sim__otp {
	width: 100%; text-align: center; letter-spacing: 12px; font-size: 26px;
	font-family: "DM Sans","Heebo",sans-serif; font-weight: 700; padding: 14px;
	border: 1px solid var(--bpsim-line); border-radius: 12px; color: var(--bpsim-text);
}
.bp-sim__otp:focus { outline: none; border-color: var(--bpsim-accent); box-shadow: 0 0 0 3px rgba(34,48,53,.1); }
.bp-sim__resend { background: none; border: none; color: var(--bpsim-accent); cursor: pointer; text-decoration: underline; font-size: 13px; padding: 0; margin-top: 12px; }
.bp-sim__resend[disabled] { color: var(--bpsim-muted); cursor: default; text-decoration: none; }

/* --- Résultat --- */
.bp-sim__result-hero {
	background: var(--bpsim-soft); border-radius: 14px; padding: 22px; text-align: center; margin-bottom: 18px;
}
.bp-sim__result-hero small { display: block; color: var(--bpsim-muted); text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.bp-sim__result-hero strong { display: block; font-family: "DM Sans","Heebo",sans-serif; font-size: 38px; color: var(--bpsim-dark); margin-top: 6px; }

/* --- Spinner --- */
.bp-sim__spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: bpsim-spin .7s linear infinite; vertical-align: middle; }
@keyframes bpsim-spin { to { transform: rotate(360deg); } }
