/**
 * Aerem — Sélecteur de filtre : front-end wizard styles.
 * Ported from the approved design mock. Background is intentionally transparent
 * so the host page shows through continuously; individual elements keep surfaces.
 */

.aerem-fs {
	--acc: #C8102E;
	/* Palette : chaque couleur est pilotable depuis l'onglet Style d'Elementor. */
	--aerem-titres: #141414;
	--aerem-texte: #141414;
	--aerem-texte-sec: #666666;
	--aerem-surface: #ffffff;
	--aerem-bordure: #dcdcdc;
	--aerem-resultat-fond: #141414;
	--aerem-resultat-texte: #c9c9c9;
	--aerem-progression: #e5e5e5;
	--aerem-radius: 0px;
	/* Les boutons de réponse plafonnent l'arrondi à 10px (cf. design mock). */
	--aerem-radius-sm: min(var(--aerem-radius), 10px);
	/* Largeur + typographie : pilotables depuis l'onglet Style d'Elementor. */
	--aerem-width: 1060px;
	--aerem-f-head: 'Oswald';
	--aerem-f-body: 'Barlow';
	--aerem-fw-head: 500;
	--aerem-tt-head: uppercase;
	--aerem-fs-title: clamp(28px, 5vw, 42px);
	--aerem-fs-q: clamp(21px, 4vw, 28px);
	--aerem-fs-text: 17px;
	font-family: var(--aerem-f-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--aerem-texte);
	background: transparent;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.aerem-fs *,
.aerem-fs *::before,
.aerem-fs *::after {
	box-sizing: border-box;
}

.aerem-fs__inner {
	max-width: var(--aerem-width);
	margin: 0 auto;
	padding: 64px 24px 80px;
}

/* ---- Header ------------------------------------------------------------- */
.aerem-fs__head {
	text-align: center;
	margin-bottom: 36px;
}
.aerem-fs__kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--acc);
	margin-bottom: 10px;
}
.aerem-fs__title {
	font-family: var(--aerem-f-head), 'Barlow', sans-serif;
	color: var(--aerem-titres);
	font-weight: var(--aerem-fw-head);
	font-size: var(--aerem-fs-title);
	line-height: 1.1;
	text-transform: var(--aerem-tt-head);
	letter-spacing: 0.02em;
	margin: 0 0 12px;
}
.aerem-fs__subtitle {
	font-size: 17px;
	color: var(--aerem-texte-sec);
	max-width: 560px;
	margin: 0 auto;
	text-wrap: pretty;
}

/* ---- Progress ----------------------------------------------------------- */
.aerem-fs__progress {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 720px;
	margin: 0 auto 44px;
}
.aerem-fs__segs {
	flex: 1;
	display: flex;
	gap: 5px;
}
.aerem-fs__seg {
	flex: 1;
	height: 4px;
	background: var(--aerem-progression);
	transition: background 0.3s ease;
}
.aerem-fs__seg.is-on {
	background: var(--acc);
}
.aerem-fs__steplabel {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #999;
	white-space: nowrap;
}

/* ---- Step animation ----------------------------------------------------- */
@keyframes aerem-fadeUp {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}
.aerem-fs__step {
	animation: aerem-fadeUp 0.35s ease both;
}

.aerem-fs__qtitle {
	font-family: var(--aerem-f-head), 'Barlow', sans-serif;
	color: var(--aerem-titres);
	font-weight: var(--aerem-fw-head);
	font-size: var(--aerem-fs-q);
	text-transform: var(--aerem-tt-head);
	text-align: center;
	margin: 0 0 28px;
	text-wrap: pretty;
}

/* ---- Application cards --------------------------------------------------- */
.aerem-fs__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 16px;
}
.aerem-fs__card {
	position: relative;
	height: 180px;
	border-radius: var(--aerem-radius);
	cursor: pointer;
	overflow: hidden;
	background: #1c1c1c;
	outline: 2px solid transparent;
	outline-offset: 0;
	transition: outline-color 0.2s, box-shadow 0.25s, transform 0.25s;
	border: none;
	padding: 0;
	width: 100%;
}
.aerem-fs__card:hover {
	outline: 2px solid var(--acc);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
	transform: translateY(-3px);
}
.aerem-fs__card-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #1c1c1c;
	transition: transform 0.5s ease;
}
.aerem-fs__card:hover .aerem-fs__card-img {
	transform: scale(1.07);
}
.aerem-fs__card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.aerem-fs__card-label {
	font-family: var(--aerem-f-head), 'Barlow', sans-serif;
	font-weight: 400;
	font-size: 22px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease, letter-spacing 0.3s ease;
}
.aerem-fs__card:hover .aerem-fs__card-label {
	transform: translateY(-3px);
	letter-spacing: 0.09em;
}
.aerem-fs__card::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 0;
	background: var(--acc);
	transition: width 0.3s ease;
}
.aerem-fs__card:hover::after {
	width: 100%;
}

/* ---- Question option buttons -------------------------------------------- */
.aerem-fs__options {
	max-width: 680px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.aerem-fs__opt {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: left;
	padding: 16px 20px;
	background: var(--aerem-surface);
	border: 1px solid var(--aerem-bordure);
	cursor: pointer;
	font-family: var(--aerem-f-body), sans-serif;
	font-size: var(--aerem-fs-text);
	color: var(--aerem-texte);
	border-radius: var(--aerem-radius-sm);
	transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.aerem-fs__opt:hover {
	border: 1px solid var(--acc);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.aerem-fs__letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	background: #f2f2f2;
	font-weight: 700;
	font-size: 13px;
	color: #888;
	transition: background 0.18s ease, color 0.18s ease;
}
.aerem-fs__opt:hover .aerem-fs__letter {
	background: var(--acc);
	color: #fff;
}
.aerem-fs__opt-label {
	flex: 1;
}
.aerem-fs__arrow {
	margin-left: auto;
	font-size: 18px;
	color: var(--acc);
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}
.aerem-fs__opt:hover .aerem-fs__arrow {
	opacity: 1;
	transform: translateX(0);
}

/* ---- Result ------------------------------------------------------------- */
.aerem-fs__result {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 24px;
	align-items: start;
}
.aerem-fs__reco {
	background: var(--aerem-resultat-fond);
	color: #fff;
	padding: 40px 36px;
	border-radius: var(--aerem-radius);
	overflow: hidden;
}
.aerem-fs__reco-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--acc);
	margin-bottom: 14px;
}
.aerem-fs__reco-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	padding: 16px 22px;
	margin-bottom: 18px;
	max-width: min(320px, 100%);
	box-sizing: border-box;
}
.aerem-fs__reco-logo img {
	display: block;
	max-width: 100%;
	max-height: 80px;
	object-fit: contain;
}
.aerem-fs__reco-name {
	font-family: var(--aerem-f-head), 'Barlow', sans-serif;
	font-weight: var(--aerem-fw-head);
	font-size: clamp(28px, 7vw, 38px);
	text-transform: uppercase;
	line-height: 1.1;
	margin-bottom: 14px;
}
.aerem-fs__reco-desc {
	font-size: 16px;
	line-height: 1.55;
	color: var(--aerem-resultat-texte);
	margin: 0 0 24px;
	text-wrap: pretty;
}
.aerem-fs__reco-based {
	border-top: 1px solid #333;
	padding-top: 18px;
	margin-bottom: 26px;
}
.aerem-fs__reco-based-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 10px;
}
.aerem-fs__summary {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.aerem-fs__summary-row {
	display: flex;
	gap: 8px;
	font-size: 14.5px;
	color: #ddd;
}
.aerem-fs__summary-row .aerem-fs__dash {
	color: var(--acc);
}
.aerem-fs__cta {
	display: inline-block;
	background: var(--acc);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 15px 28px;
}
.aerem-fs__cta:hover {
	color: #fff;
	opacity: 0.92;
}

/* ---- Lead form ---------------------------------------------------------- */
.aerem-fs__form {
	border: 1px solid var(--aerem-bordure);
	padding: 36px 32px;
	border-radius: var(--aerem-radius);
}
.aerem-fs__form-title {
	font-family: var(--aerem-f-head), 'Barlow', sans-serif;
	color: var(--aerem-titres);
	font-weight: var(--aerem-fw-head);
	font-size: 22px;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.aerem-fs__form-hint {
	font-size: 14.5px;
	color: #777;
	margin: 0 0 22px;
	text-wrap: pretty;
}
.aerem-fs__fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.aerem-fs__field {
	font-family: var(--aerem-f-body), sans-serif;
	font-size: 15px;
	padding: 13px 14px;
	border: 1px solid var(--aerem-bordure);
	outline: none;
	width: 100%;
	color: var(--aerem-texte);
	background: var(--aerem-surface);
}
.aerem-fs__field:focus {
	border-color: var(--acc);
}
.aerem-fs__submit {
	font-family: var(--aerem-f-body), sans-serif;
	background: #141414;
	color: #fff;
	border: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 15px 28px;
	transition: background 0.18s ease;
}
.aerem-fs__submit:hover {
	background: var(--acc);
}
.aerem-fs__thanks {
	text-align: center;
	padding: 30px 10px;
}
.aerem-fs__thanks-check {
	width: 52px;
	height: 52px;
	margin: 0 auto 18px;
	border: 2px solid var(--acc);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--acc);
}
.aerem-fs__thanks-title {
	font-family: var(--aerem-f-head), 'Barlow', sans-serif;
	color: var(--aerem-titres);
	font-weight: var(--aerem-fw-head);
	font-size: 22px;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.aerem-fs__thanks-body {
	font-size: 15px;
	color: #777;
	margin: 0;
	text-wrap: pretty;
}

/* ---- Footer nav --------------------------------------------------------- */
.aerem-fs__nav {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin-top: 40px;
}
.aerem-fs__navbtn {
	font-family: var(--aerem-f-body), sans-serif;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #999;
	padding: 8px;
	transition: color 0.18s ease;
}
.aerem-fs__navbtn:hover {
	color: #141414;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 600px) {
	.aerem-fs__inner {
		padding: 40px 16px 56px;
	}
	/* Recommandation + formulaire de devis : pleine largeur bord à bord
	   (annule le retrait latéral de 16px du widget). */
	.aerem-fs__result {
		margin-left: -16px;
		margin-right: -16px;
	}
	.aerem-fs__reco {
		padding: 32px 24px;
	}
	.aerem-fs__form {
		padding: 28px 22px;
	}
}

/* ---- Lead form extras (consent, honeypot, errors) ------------------------ */
.aerem-fs__field--area {
	resize: vertical;
	min-height: 72px;
}
.aerem-fs__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.aerem-fs__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--aerem-texte-sec);
	cursor: pointer;
}
.aerem-fs__consent input {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--acc);
}
.aerem-fs__form-error {
	margin: 0;
	font-size: 13.5px;
	color: #c0392b;
}
.aerem-fs__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}
