@font-face {
	font-family: "HK Grotesk";
	src: url("fonts/hkgrotesk-regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "HK Grotesk";
	src: url("fonts/hkgrotesk-bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: #fff; }
body {
	margin: 0;
	color: #20374b;
	font: 1rem/1.45 "HK Grotesk", Arial, sans-serif;
}
h1, h2, p { margin: 0; }
input, select, button { font: inherit; }
:focus-visible { outline: 3px solid #086caa; outline-offset: 3px; }
.simulateur {
	width: 100%;
	max-width: 1280px;
	margin: auto;
	padding: clamp(12px, 2.5vw, 38px);
}
.bilan {
	display: grid;
	grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
	border: 1px solid #dce4e8;
	border-radius: 18px;
	overflow: hidden;
}
.presentation, .exercice { padding: clamp(26px, 3.6vw, 56px); }
.presentation {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 36px;
	background: #eaf4f8;
}
.marque { display: flex; align-items: center; gap: 10px; }
.marque img { display: block; width: 136px; height: auto; }
.marque span {
	padding-left: 10px;
	border-left: 1px solid #9db8c6;
	font-weight: 700;
	color: #3a546c;
}
.analyse h1 {
	color: #103652;
	font-size: clamp(2.2rem, 3.65vw, 3.5rem);
	line-height: 1.04;
	letter-spacing: -.04em;
	text-wrap: balance;
}
.analyse p { max-width: 38ch; margin-top: 18px; color: #3e596c; font-size: 1.1rem; }
.analyse .montant {
	color: #034e79;
	font-size: clamp(1.65rem, 2.7vw, 2.6rem);
	font-weight: 700;
	line-height: 1.15;
}
.conseiller { border-left: 3px solid #e89534; padding-left: 14px; }
.conseiller span, .conseiller strong { display: block; }
.conseiller span { color: #496477; font-size: .88rem; }
.conseiller strong { color: #143d56; font-size: 1.12rem; }
.exercice h2, summary { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.2; letter-spacing: -.025em; }
.champs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 24px;
}
.pleine-largeur { grid-column: 1 / -1; }
.champ { min-width: 0; }
.champ label, legend { display: block; margin-bottom: 6px; color: #20374b; font-weight: 700; }
.champ label span, legend span, .champ small { color: #506373; font-weight: 400; }
.champ small { display: block; margin-top: 5px; font-size: .86rem; line-height: 1.35; }
.champ input, select {
	width: 100%;
	min-width: 0;
	min-height: 46px;
	border: 1px solid #a4b5c0;
	border-radius: 7px;
	background: #fff;
	color: #172e40;
	padding: 9px 12px;
}
input::placeholder { color: #667784; opacity: 1; }
.mesure { position: relative; }
.mesure input { padding-right: 46px; appearance: textfield; }
.mesure input::-webkit-inner-spin-button { appearance: none; }
.mesure span {
	position: absolute;
	inset-inline-end: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #516a7b;
	pointer-events: none;
}
.actions, .envoi-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.g-recaptcha { max-width: 100%; overflow-x: auto; }
button {
	display: inline-flex;
	gap: 16px;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: 0;
	border-radius: 7px;
	background: #075580;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
button:hover { background: #103c5a; }
button span { line-height: 1; font-size: 1.25em; }
.actions a { color: #075580; text-underline-offset: 3px; }
.contact {
	margin-top: 16px;
	border: 1px solid #d4dfe5;
	border-radius: 14px;
}
summary {
	display: flex;
	list-style: none;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px clamp(18px, 3vw, 38px);
	font-size: 1.24rem;
	font-weight: 700;
	cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: #075580; }
.indicateur {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #eaf4f8;
	display: grid;
	place-content: center;
}
.indicateur::before, .indicateur::after {
	content: "";
	grid-area: 1 / 1;
	width: 12px;
	height: 2px;
	background: #075580;
}
.indicateur::after { transform: rotate(90deg); }
.contact[open] .indicateur::after { display: none; }
.contact-contenu { border-top: 1px solid #e0e7eb; padding: 24px clamp(18px, 3vw, 38px); }
.contact-contenu > p { max-width: 80ch; }
.coordonnees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { padding: 0; }
.choix { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; cursor: pointer; }
.choix input { flex: none; width: 17px; height: 17px; margin: 0; align-self: start; margin-top: 3px; accent-color: #075580; }
.alerte, .confirmation { border-left: 3px solid; padding: 10px 14px; }
.alerte { margin-top: 16px; background: #fff3ef; color: #8b3526; }
.confirmation { background: #edf7ef; color: #285b3b; }

@media (max-width: 780px) {
	.bilan { grid-template-columns: minmax(0, 1fr); }
	.presentation { gap: 22px; }
	.analyse p { max-width: 58ch; }
	.presentation, .exercice { padding: 24px; }
}
@media (max-width: 520px) {
	.simulateur { padding: 8px; }
	.presentation, .exercice { padding: 22px 18px; }
	.champs { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
	.actions button, .envoi-contact button { width: 100%; }
	.actions { justify-content: center; }
	.marque img { width: 118px; }
	.contact { margin-top: 10px; }
}
