/*
 * Modale « Obtenir un devis » (module Devis de mouvspa-core). Même monde que la confirmation de commande et Mon compte :
 * bandeau bleu nuit sur la photo sous-marine avec la vague, Dosis pour les titres, Roboto pour le texte, pilules.
 */

.mvq {
	--mvq-ink: #2A3448;
	--mvq-muted: #556079;
	--mvq-orange: #F37D45;
	--mvq-red: #F03B36;
	--mvq-blue: #48B6E6;
	--mvq-green: #1F9D6B;
	--mvq-error: #C62828;
	--mvq-line: #D3E0F1;
	--mvq-line-soft: #E6EEF8;
	--mvq-mist: #F3F8FE;
	--mvq-ease: cubic-bezier(.16, 1, .3, 1);
	width: min(1040px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	overflow: clip;
	border: 0;
	border-radius: 28px;
	background: #fff;
	color: var(--mvq-ink);
	font-family: 'Roboto', sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	box-shadow: 0 40px 80px -30px rgba(42, 52, 72, .55);
}

.mvq[open] {
	animation: mvq-in .45s var(--mvq-ease) both;
}

.mvq::backdrop {
	background: rgba(26, 33, 48, .62);
	backdrop-filter: blur(3px);
}

@keyframes mvq-in {
	from { opacity: 0; transform: translateY(18px) scale(.985); }
	to { opacity: 1; transform: none; }
}

.mvq ::selection {
	background: rgba(243, 125, 69, .25);
}

.mvq :focus-visible {
	outline: 2px solid var(--mvq-blue);
	outline-offset: 2px;
}

.mvq p,
.mvq h2,
.mvq h3,
.mvq h4,
.mvq dl,
.mvq dd {
	margin: 0;
}

.mvq__form {
	display: flex;
	flex-direction: column;
	max-height: calc(100dvh - 32px);
	margin: 0;
}

/* ------------------------------------------------------------ bandeau */

.mvq .mvq__header {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	overflow: hidden;
	padding: 1.6rem 2rem 1.9rem;
	border: 0;
	background:
		linear-gradient(150deg, rgba(42, 52, 72, .94) 0%, rgba(42, 52, 72, .82) 55%, rgba(42, 52, 72, .62) 100%),
		var(--mvq-photo, none) center 40% / cover no-repeat,
		var(--mvq-ink);
	color: #fff;
	isolation: isolate;
}

.mvq .mvq__header::after {
	content: '';
	position: absolute;
	right: 4.5rem;
	bottom: -1px;
	z-index: -1;
	width: min(36%, 13rem);
	aspect-ratio: 493 / 432;
	background: var(--mvq-wave, none) left bottom / contain no-repeat;
	opacity: .7;
	transform: scaleX(-1);
}

.mvq .mvq__title {
	color: #fff;
	font-family: 'Dosis', sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 700;
	line-height: 1.1;
	text-wrap: balance;
}

.mvq .mvq__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0 0 .15rem;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s, transform .3s var(--mvq-ease);
}

.mvq .mvq__close:hover {
	background: rgba(255, 255, 255, .22);
	transform: rotate(90deg);
}

/* ------------------------------------------------------------ corps */

.mvq .mvq__body {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	overflow-y: auto;
	padding: 1.75rem 2rem 2rem;
	overscroll-behavior: contain;
	scrollbar-color: var(--mvq-line) transparent;
	scrollbar-width: thin;
}

.mvq .mvq__fields {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem 1.1rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.mvq .mvq__legend {
	grid-column: 1 / -1;
	width: 100%;
	margin: 0 0 .1rem;
	padding: 0;
	border: 0;
	color: var(--mvq-ink);
	font-family: 'Dosis', sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.mvq .mvq__field {
	display: flex;
	grid-column: span 3;
	flex-direction: column;
	gap: .4rem;
}

.mvq .mvq__field--wide {
	grid-column: 1 / -1;
}

.mvq .mvq__field--third {
	grid-column: span 2;
}

.mvq .mvq__field label {
	margin: 0;
	color: var(--mvq-ink);
	font-size: .9rem;
	font-weight: 500;
}

.mvq .mvq-required {
	margin-left: .2rem;
	color: var(--mvq-orange);
}

.mvq .mvq__field input,
.mvq .mvq__field select,
.mvq .mvq__field textarea,
.mvq .mvq__choice select {
	width: 100%;
	min-height: 3rem;
	margin: 0;
	padding: .7rem 1rem;
	border: 1.5px solid var(--mvq-line);
	border-radius: 14px;
	background-color: var(--mvq-mist);
	box-shadow: none;
	color: var(--mvq-ink);
	font: inherit;
	caret-color: var(--mvq-orange);
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.mvq .mvq__field textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.mvq .mvq__field select,
.mvq .mvq__choice select {
	padding-right: 2.6rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232A3448' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 1rem center;
	background-repeat: no-repeat;
	appearance: none;
	cursor: pointer;
}

.mvq .mvq__field input::placeholder,
.mvq .mvq__field textarea::placeholder {
	color: #6E7B91;
	opacity: 1;
}

.mvq .mvq__field input:hover,
.mvq .mvq__field select:hover,
.mvq .mvq__field textarea:hover {
	border-color: #B7CAE4;
}

.mvq .mvq__field input:focus,
.mvq .mvq__field select:focus,
.mvq .mvq__field textarea:focus,
.mvq .mvq__choice select:focus {
	border-color: var(--mvq-blue);
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(72, 182, 230, .18);
	outline: none;
}

.mvq .mvq__field [aria-invalid="true"] {
	border-color: var(--mvq-error);
	background-color: #FFF6F5;
}

/* Rappel : deux choix en pilule. */
.mvq .mvq__contact {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mvq .mvq__choice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem .75rem;
	min-height: 3.6rem;
	padding: .55rem .7rem .55rem 1.1rem;
	border: 1.5px solid var(--mvq-line);
	border-radius: 999px;
	background: #fff;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.mvq .mvq__choice:hover {
	border-color: #B7CAE4;
}

.mvq .mvq__choice:has(input:checked) {
	border-color: var(--mvq-orange);
	background: #FFF6F1;
	box-shadow: 0 10px 24px -20px rgba(243, 125, 69, .9);
}

.mvq .mvq__contact:has([aria-invalid="true"]) .mvq__choice {
	border-color: var(--mvq-error);
}

.mvq .mvq__choice label {
	flex: 1 1 auto;
	margin: 0;
	color: var(--mvq-ink);
	font-weight: 500;
	cursor: pointer;
}

.mvq .mvq__choice select {
	flex: 0 1 auto;
	width: auto;
	min-height: 2.5rem;
	padding: .4rem 2.4rem .4rem .9rem;
	border-radius: 999px;
	background-color: #fff;
	font-size: .92rem;
}

/* Boutons radio aux couleurs du site (rappel et livraison). */
.mvq input[type="radio"] {
	display: grid;
	flex: none;
	place-items: center;
	width: 1.3rem;
	height: 1.3rem;
	margin: 0;
	border: 1.5px solid #9AAAC2;
	border-radius: 50%;
	background: #fff;
	appearance: none;
	cursor: pointer;
	transition: border-color .2s;
}

.mvq input[type="radio"]::before {
	content: '';
	width: .62rem;
	height: .62rem;
	border-radius: 50%;
	background: var(--mvq-orange);
	transform: scale(0);
	transition: transform .25s var(--mvq-ease);
}

.mvq input[type="radio"]:checked {
	border-color: var(--mvq-orange);
}

.mvq input[type="radio"]:checked::before {
	transform: scale(1);
}

/* ------------------------------------------------------------ récapitulatif */

.mvq .mvq__recap {
	padding: 1.6rem 1.75rem 1.75rem;
	border: 1px solid var(--mvq-line-soft);
	border-radius: 24px;
	background: var(--mvq-mist);
	transition: opacity .2s;
}

.mvq .mvq__recap-title {
	margin: 0 0 1rem;
	color: var(--mvq-ink);
	font-family: 'Dosis', sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
}

.mvq .mvq__subtitle {
	margin: 1.4rem 0 .15rem;
	color: var(--mvq-orange);
	font-family: 'Dosis', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
}

.mvq .mvq__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.mvq .mvq__table th,
.mvq .mvq__table td {
	padding: .85rem .5rem;
	border: 0;
	border-bottom: 1px solid var(--mvq-line);
	background: none;
	text-align: left;
	vertical-align: middle;
}

.mvq .mvq__table thead th {
	padding-top: 0;
	color: var(--mvq-muted);
	font-size: .8rem;
	font-weight: 500;
}

.mvq .mvq__table tbody tr:last-child td {
	border-bottom: 0;
}

.mvq .mvq__table .mvq__num {
	text-align: right;
	white-space: nowrap;
}

.mvq .mvq__table .mvq__thumb {
	width: 5.5rem;
	padding-left: 0;
}

.mvq .mvq__thumb img {
	display: block;
	width: 4.75rem;
	height: 4.75rem;
	padding: .35rem;
	border-radius: 16px;
	background: #fff;
	object-fit: contain;
}

.mvq .mvq__name strong {
	display: block;
	color: var(--mvq-ink);
	font-family: 'Dosis', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.25;
}

.mvq .mvq__meta {
	display: block;
	margin-top: .15rem;
	color: var(--mvq-muted);
	font-size: .85rem;
}

/* Modes de livraison : une carte par tarif, toute la carte cliquable. */
.mvq .mvq__shipping {
	display: grid;
	gap: .55rem;
}

.mvq .mvq__rate {
	position: relative;
	display: flex;
	align-items: center;
	gap: .85rem;
	padding: .8rem 1.1rem;
	border: 1.5px solid var(--mvq-line);
	border-radius: 16px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}

.mvq .mvq__rate:hover {
	border-color: #B7CAE4;
}

.mvq .mvq__rate:has(input:checked) {
	border-color: var(--mvq-orange);
	box-shadow: 0 10px 24px -20px rgba(243, 125, 69, .9);
}

.mvq .mvq__rate label {
	display: flex;
	flex: 1;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	color: var(--mvq-ink);
	cursor: pointer;
}

.mvq .mvq__rate label::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.mvq .mvq__rate-cost {
	flex: none;
	color: var(--mvq-ink);
	font-family: 'Dosis', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	white-space: nowrap;
}

/* Totaux ; « À régler à la commande » en bandeau orange. */
.mvq .mvq__totals {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: .5rem 0;
	margin-top: 1.4rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--mvq-line);
	font-variant-numeric: tabular-nums;
}

.mvq .mvq__totals dt {
	padding-right: 1.5rem;
	color: var(--mvq-muted);
}

.mvq .mvq__totals dd {
	color: var(--mvq-ink);
	font-weight: 500;
	text-align: right;
	white-space: nowrap;
}

.mvq .mvq__totals dt:first-child,
.mvq .mvq__totals dt:first-child + dd {
	color: var(--mvq-ink);
	font-family: 'Dosis', sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
}

.mvq .mvq__totals .mvq__due {
	margin: .35rem 0;
	padding-top: .75rem;
	padding-bottom: .75rem;
	background: var(--mvq-orange);
	color: #fff;
	font-family: 'Dosis', sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
}

.mvq .mvq__totals dt.mvq__due {
	padding-left: 1.3rem;
	border-radius: 22px 0 0 22px;
}

.mvq .mvq__totals dd.mvq__due {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 1.3rem;
	border-radius: 0 22px 22px 0;
	font-size: 1.4rem;
}

.mvq .mvq__totals .mvq__due .mvq__hint {
	color: #FFEDE3;
}

.mvq .mvq__hint {
	display: block;
	color: var(--mvq-muted);
	font-family: 'Roboto', sans-serif;
	font-size: .82rem;
	font-weight: 400;
}

.mvq .mvq__empty {
	color: var(--mvq-muted);
}

/* ------------------------------------------------------------ messages */

.mvq .mvq__message {
	padding: .9rem 1.2rem;
	border-radius: 16px;
	background: var(--mvq-mist);
	color: var(--mvq-ink);
}

.mvq .mvq__message--error {
	background: #FDECEA;
	color: var(--mvq-error);
}

.mvq .mvq__message--success {
	background: #E8F6EF;
	color: #17734F;
	font-weight: 500;
}

/* ------------------------------------------------------------ pied */

.mvq .mvq__footer {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: flex-end;
	gap: .75rem;
	padding: 1rem 2rem;
	border: 0;
	border-top: 1px solid var(--mvq-line-soft);
	background: #fff;
}

.mvq .mvq__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.1rem;
	padding: .7rem 1.7rem;
	border: 0;
	border-radius: 999px;
	font-family: 'Dosis', sans-serif;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.1;
	cursor: pointer;
	transition: transform .3s var(--mvq-ease), box-shadow .3s var(--mvq-ease), border-color .2s;
}

.mvq .mvq__button--ghost {
	border: 1.5px solid var(--mvq-line);
	background: #fff;
	color: var(--mvq-ink);
}

.mvq .mvq__button--ghost:hover {
	border-color: var(--mvq-ink);
}

.mvq .mvq__button--primary {
	background: linear-gradient(120deg, var(--mvq-orange), var(--mvq-red));
	box-shadow: 0 14px 28px -16px rgba(240, 59, 54, .8);
	color: #fff;
}

.mvq .mvq__button--primary:hover:not([disabled]) {
	box-shadow: 0 18px 32px -16px rgba(240, 59, 54, .9);
	transform: translateY(-2px);
}

.mvq .mvq__button[disabled] {
	box-shadow: none;
	opacity: .5;
	cursor: not-allowed;
	transform: none;
}

.mvq--busy .mvq__recap {
	opacity: .55;
	pointer-events: none;
}

/* ------------------------------------------------------------ mobile : plein écran */

@media (max-width: 767px) {
	.mvq {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}

	.mvq__form {
		height: 100dvh;
		max-height: 100dvh;
	}

	.mvq .mvq__header {
		padding: 1.2rem 1.25rem 1.4rem;
	}

	.mvq .mvq__body {
		gap: 1.4rem;
		padding: 1.4rem 1.25rem 1.6rem;
	}

	.mvq .mvq__fields,
	.mvq .mvq__contact {
		grid-template-columns: minmax(0, 1fr);
	}

	.mvq .mvq__field,
	.mvq .mvq__field--third {
		grid-column: 1 / -1;
	}

	.mvq .mvq__choice {
		border-radius: 20px;
	}

	.mvq .mvq__recap {
		padding: 1.2rem 1rem 1.3rem;
		border-radius: 20px;
	}

	.mvq .mvq__table thead {
		display: none;
	}

	.mvq .mvq__table .mvq__thumb {
		width: 4.2rem;
	}

	.mvq .mvq__thumb img {
		width: 3.6rem;
		height: 3.6rem;
	}

	/* Prix unitaire et quantité : déjà dans le sous-total. */
	.mvq .mvq__table td.mvq__num:not(:last-child) {
		display: none;
	}

	.mvq .mvq__footer {
		padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom));
	}

	.mvq .mvq__button {
		flex: 1 1 auto;
		padding: .7rem 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mvq[open] {
		animation: none;
	}

	.mvq *,
	.mvq *::before {
		transition: none !important;
	}
}
