/**
 * Villa Victoria — conseiller adaptatif.
 * Bleu nuit, touches dorées du site (#C39A6B), typo Jost.
 * Préfixe .vv-cons, à l'intérieur de .vv-parc.
 */

.vv-cons {
	--vv-gold: #c39a6b;
	--vv-gold-soft: #f6efe6;
	--vv-error: #a2362b;
}

.vv-cons__layout {
	display: block;
	max-width: 1120px;
	margin: 0 auto;
}

.vv-cons__main {
	min-width: 0;
	padding: 40px 44px 44px;
	border: 1px solid var(--vv-line);
	border-radius: var(--vv-radius);
	background: #fff;
}

.vv-cons__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.vv-cons :focus-visible {
	outline: 2px solid var(--vv-gold);
	outline-offset: 3px;
}

.vv-cons [tabindex="-1"]:focus {
	outline: none;
}

/* Avancement */

.vv-cons__progress {
	margin-bottom: 30px;
}

.vv-cons__count {
	margin: 0 0 10px;
	color: var(--vv-navy);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.vv-cons__bar {
	height: 3px;
	background: var(--vv-line);
	overflow: hidden;
}

.vv-cons__bar-fill {
	display: block;
	height: 100%;
	background: var(--vv-gold);
	transition: width 0.4s ease;
}

/* Question */

.vv-cons__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.vv-cons__legend {
	padding: 0;
	margin-bottom: 8px;
	width: 100%;
}

.vv-parc .vv-cons__question {
	margin: 0;
	color: var(--vv-navy);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.25;
}

.vv-cons__hint {
	margin: 0 0 22px !important;
	font-size: 15px;
}

.vv-cons__notice {
	margin: 0 0 20px !important;
	padding: 12px 16px;
	border-left: 3px solid var(--vv-gold);
	background: var(--vv-gold-soft);
	color: var(--vv-navy);
	font-size: 15px;
}

.vv-cons__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.vv-cons__choices--compact {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vv-cons__choice {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid var(--vv-line);
	border-radius: var(--vv-radius);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s linear, background-color 0.2s linear;
}

.vv-cons__choice:hover {
	border-color: var(--vv-navy);
}

.vv-cons__choice:has(input:checked) {
	border-color: var(--vv-navy);
	background: var(--vv-mist);
}

.vv-cons__choice:has(input:focus-visible) {
	outline: 2px solid var(--vv-gold);
	outline-offset: 2px;
}

.vv-cons__choice input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: var(--vv-navy);
}

.vv-cons__choice input:focus-visible {
	outline: none;
}

.vv-cons__choice-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.vv-cons__choice-label {
	color: var(--vv-navy);
	font-size: 16px;
	line-height: 1.35;
}

.vv-cons__choice-desc {
	font-size: 14px;
	line-height: 1.45;
}

.vv-cons__choice--inline {
	display: inline-flex;
	margin-top: 14px;
	padding: 10px 14px;
}

.vv-cons__inputs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 18px;
}

.vv-cons__input {
	margin-top: 18px;
}

.vv-cons__inputs .vv-cons__input {
	margin-top: 0;
}

.vv-cons__input.is-disabled {
	opacity: 0.5;
}

.vv-cons__label {
	display: block;
	margin-bottom: 6px;
	color: var(--vv-navy);
	font-size: 14px;
	font-weight: 500;
}

.vv-cons__input-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vv-parc .vv-cons__number,
.vv-parc .vv-cons__text {
	width: 100%;
	max-width: 220px;
	min-height: 50px;
	padding: 0 14px;
	border: 1px solid var(--vv-line);
	border-radius: var(--vv-radius);
	background: #fff;
	color: var(--vv-navy);
	font-family: inherit;
	font-size: 17px;
}

.vv-parc .vv-cons__text {
	max-width: 420px;
}

.vv-parc .vv-cons__number:focus,
.vv-parc .vv-cons__text:focus {
	border-color: var(--vv-navy);
	outline: 2px solid var(--vv-gold);
	outline-offset: 1px;
}

.vv-cons__suffix {
	color: var(--vv-navy);
}

.vv-cons__help {
	margin-top: 12px !important;
	font-size: 14px;
	line-height: 1.55;
}

.vv-cons__error {
	margin-top: 18px !important;
	padding: 10px 14px;
	border-left: 3px solid var(--vv-error);
	background: #fbf1f0;
	color: var(--vv-error);
	font-size: 15px;
}

.vv-cons__fieldset[aria-invalid="true"] .vv-cons__choice,
.vv-cons__fieldset[aria-invalid="true"] .vv-cons__number,
.vv-cons__fieldset[aria-invalid="true"] .vv-cons__text {
	border-color: var(--vv-error);
}

.vv-cons__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 30px;
}

.vv-cons__nav .vv-parc-btn--ghost {
	margin-right: auto;
}

/* Résultat */

.vv-parc .vv-cons__result-title {
	margin: 0 0 22px;
	color: var(--vv-navy);
	font-family: Melodrama, Georgia, serif;
	font-size: 36px;
	font-weight: 500;
	letter-spacing: 0.5px;
	line-height: 1.2;
	text-align: center;
}

.vv-cons__result > .vv-cons__card--main {
	margin-top: 4px;
	margin-bottom: 40px;
}

.vv-parc .vv-cons__subhead {
	margin: 34px 0 14px;
	color: var(--vv-navy);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.vv-cons__flash {
	margin-bottom: 20px !important;
	padding: 12px 16px;
	border-left: 3px solid var(--vv-gold);
	background: var(--vv-gold-soft);
	color: var(--vv-navy);
}

.vv-cons__flash--error {
	border-color: var(--vv-error);
	background: #fbf1f0;
	color: var(--vv-error);
}

.vv-cons__card {
	padding: 26px 26px 24px;
	border: 1px solid var(--vv-line);
	border-radius: var(--vv-radius);
	background: #fff;
}

.vv-cons__card--main {
	border-color: var(--vv-navy);
	border-top: 3px solid var(--vv-gold);
}

.vv-cons__alts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.vv-cons__card-kicker {
	margin-bottom: 8px !important;
	color: var(--vv-gold);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.vv-parc .vv-cons__card-title {
	margin: 0 0 6px;
	color: var(--vv-navy);
	font-family: Melodrama, Georgia, serif;
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 0.4px;
	line-height: 1.25;
}

.vv-parc h5.vv-cons__card-title {
	font-size: 18px;
}

.vv-cons__price {
	color: var(--vv-navy);
	font-size: 18px;
	font-weight: 500;
}

.vv-cons__block {
	margin-top: 18px;
}

.vv-cons__label-sm {
	margin-bottom: 6px !important;
	color: var(--vv-navy);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.vv-parc .vv-cons__reasons,
.vv-parc .vv-cons__facts,
.vv-parc .vv-cons__lines,
.vv-parc .vv-cons__conflict-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vv-cons__reasons li,
.vv-cons__facts li,
.vv-cons__lines li,
.vv-cons__conflict-list li {
	position: relative;
	padding-left: 18px;
	font-size: 15px;
	line-height: 1.55;
}

.vv-cons__reasons li + li,
.vv-cons__facts li + li {
	margin-top: 4px;
}

.vv-cons__reasons li::before,
.vv-cons__facts li::before,
.vv-cons__lines li::before,
.vv-cons__conflict-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 7px;
	height: 1px;
	background: var(--vv-gold);
}

.vv-cons__lines {
	margin-top: 8px !important;
}

.vv-cons__facts--options {
	margin-top: 6px !important;
	font-style: italic;
}

.vv-cons__callback {
	margin-top: 18px;
	padding: 18px 20px;
	border: 1px solid var(--vv-line);
	border-radius: var(--vv-radius);
	background: var(--vv-mist);
}

.vv-cons__callback-field {
	display: grid;
	gap: 6px;
	margin-top: 12px;
	color: var(--vv-navy);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vv-cons__callback-field input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--vv-line);
	border-radius: 10px;
	background: #fff;
	color: var(--vv-navy);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.vv-cons__callback-error {
	margin: 12px 0 0;
	color: var(--vv-error);
	font-size: 14px;
}

.vv-cons__callback-thanks {
	margin: 16px 0 0;
	padding: 14px 16px;
	border-radius: var(--vv-radius);
	background: var(--vv-gold-soft);
	color: var(--vv-navy);
	font-size: 15px;
	line-height: 1.5;
}

.vv-cons__callback-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.vv-cons__callback .vv-parc-btn {
	margin-top: 14px;
	width: 100%;
}

.vv-cons__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.vv-cons__actions-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	flex: 1 1 100%;
	min-width: 0;
}

.vv-cons__actions-pair .vv-parc-btn {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding-left: 12px;
	padding-right: 12px;
}

.vv-cons__actions .vv-cons__help {
	flex-basis: 100%;
	margin-top: 2px !important;
}

.vv-cons__more {
	display: inline-block;
	margin-top: 14px;
	color: var(--vv-navy);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vv-cons__conflict {
	padding: 20px 22px;
	border-left: 3px solid var(--vv-gold);
	background: var(--vv-gold-soft);
	color: var(--vv-navy);
}

.vv-cons__conflict .vv-cons__label-sm {
	margin-top: 18px !important;
}

.vv-parc .vv-cons__adjust {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vv-cons__adjust li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 10px 0;
	border-top: 1px solid rgba(15, 31, 52, 0.1);
	font-size: 15px;
}

.vv-cons__adjust-btn.vv-parc-btn {
	min-height: 42px;
	padding: 0 16px;
	background: #fff;
	font-size: 14px;
}

.vv-cons__team {
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid var(--vv-line);
}

.vv-cons__team-title {
	color: var(--vv-navy);
	font-size: 18px;
}

/* Tablette et mobile */

@media (max-width: 1024px) {
	.vv-cons__layout {
		max-width: none;
	}
}

@media (max-width: 767px) {
	.vv-cons__main {
		padding: 24px 18px 26px;
	}

	.vv-parc .vv-cons__question,
	.vv-parc .vv-cons__result-title {
		font-size: 24px;
	}

	.vv-cons__choices,
	.vv-cons__choices--compact,
	.vv-cons__alts,
	.vv-cons__inputs {
		grid-template-columns: minmax(0, 1fr);
	}

	.vv-cons__choice {
		padding: 14px 16px;
	}

	.vv-cons__nav {
		position: sticky;
		bottom: 0;
		z-index: 2;
		margin: 24px -18px -26px;
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--vv-line);
		background: #fff;
	}

	.vv-cons__nav .vv-parc-btn {
		flex: 1 1 0;
		min-height: 50px;
		padding: 0 16px;
	}

	.vv-cons__nav .vv-parc-btn--ghost {
		margin-right: 0;
		flex: 0 0 auto;
	}

	.vv-cons__card {
		padding: 20px 18px;
	}

	.vv-cons__actions .vv-parc-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vv-cons__bar-fill,
	.vv-cons__choice {
		transition: none;
	}
}
