/* =================================================================
   CONFIGURATEUR DE DEVIS — reprend les couleurs du thème Wevi Design
   (valeurs de secours si le thème change).
   ================================================================= */
.wvc, .wvc-vente {
	--c-ink: var(--wv-ink, #1a1f2b);
	--c-accent: var(--wv-accent, #4a5670);
	--c-clair: var(--wv-light, #f3f4f6);
	--c-gris: var(--wv-muted-l, #5b6273);
	--c-ligne: rgba(26, 31, 43, .14);
	--c-ease: var(--wv-ease, cubic-bezier(.2, .7, .1, 1));
	--c-px: var(--wv-px, clamp(1.25rem, 4vw, 3.5rem));
	font-family: var(--wv-font, inherit);
	color: var(--c-ink);
}
.wvc *, .wvc *::before, .wvc *::after, .wvc-vente *, .wvc-vente *::before, .wvc-vente *::after { box-sizing: border-box; }
.wvc-wrap { width: 100%; max-width: var(--wv-max, 1600px); margin-inline: auto; padding-inline: var(--c-px); }

/* ---------- Page de vente : hero + configurateur au premier écran ---------- */
.wvc-vente { background: var(--c-clair); }
.wvc-vente__hero {
	position: relative; isolation: isolate;
	padding: calc(var(--wv-header-h, 84px) + clamp(1.5rem, 3vw, 2.5rem)) 0 clamp(3.5rem, 7vw, 6rem);
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(74, 86, 112, .16), transparent 70%),
		radial-gradient(40rem 24rem at -10% 10%, rgba(255, 255, 255, .9), transparent 70%),
		var(--c-clair);
}
.wvc-vente__intro { display: grid; justify-items: start; gap: clamp(.75rem, 1.4vw, 1rem); }
.wvc-vente__badge {
	display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .45rem .9rem;
	border: 1px solid var(--c-ligne); border-radius: 999px; background: rgba(255, 255, 255, .75);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink);
}
.wvc-vente__point { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.wvc-vente__point::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(22, 163, 74, .35); animation: wvc-pulse 2s ease-out infinite; }
@keyframes wvc-pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.wvc-vente .wvc-vente__titre {
	margin: 0; color: var(--c-ink); font-family: inherit;
	font-size: clamp(2rem, 4.4vw, 4.1rem); font-weight: 600; font-stretch: 95%;
	letter-spacing: .08em; line-height: 1.02; text-transform: uppercase; text-wrap: balance;
	overflow-wrap: break-word; hyphens: auto;
}
.wvc-vente__accroche { margin: 0; max-width: 56ch; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--c-gris); }

/* Les 3 étapes : une rangée compacte reliée par un trait */
.wvc-vente__etapes {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem;
	margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0; padding: 0; list-style: none;
}
.wvc-vente__etapes li {
	position: relative; display: flex; align-items: flex-start; gap: .75rem;
	padding: .8rem 1rem; border: 1px solid var(--c-ligne); border-radius: 14px; background: rgba(255, 255, 255, .7);
}
.wvc-vente__num {
	flex-shrink: 0; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
	background: var(--c-ink); color: #fff; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.wvc-vente__etape-texte { display: grid; gap: .1rem; min-width: 0; }
.wvc-vente__etapes strong { font-weight: 600; line-height: 2rem; height: 2rem; }
.wvc-vente__etape-texte > span { margin-top: -.2rem; font-size: .88rem; line-height: 1.45; color: var(--c-gris); }
@media (max-width: 699px) {
	.wvc-vente__etapes li { flex-direction: column; align-items: center; gap: .4rem; padding: .75rem .4rem; text-align: center; }
	.wvc-vente__etapes strong { height: auto; line-height: 1.2; font-size: .92rem; }
	.wvc-vente__etape-texte > span { display: none; }
}

.wvc-vente__config { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.wvc-vente__texte { max-width: 68ch; margin-top: 3rem; color: var(--c-gris); line-height: 1.7; }

.wvc-vente__atouts { background: #fff; border-block: 1px solid var(--c-ligne); }
.wvc-atouts { display: grid; margin-block: 0; list-style: none; }
.wvc-atouts li { display: grid; gap: .3rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--c-ligne); }
.wvc-atouts strong { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 600; font-stretch: 95%; }
.wvc-atouts span { font-size: .95rem; color: var(--c-gris); }
@media (min-width: 700px) {
	.wvc-atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wvc-atouts li { border-bottom: 0; padding-inline: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--c-ligne); }
	.wvc-atouts li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (min-width: 1100px) {
	.wvc-atouts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.wvc-atouts li:nth-child(odd) { border-left: 1px solid var(--c-ligne); padding-left: clamp(1rem, 2vw, 2rem); }
	.wvc-atouts li:first-child { border-left: 0; padding-left: 0; }
}

.wvc-vente__faq { padding-block: clamp(4rem, 9vw, 8rem); }
.wvc-faq { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .wvc-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 6rem); } }
.wvc-vente .wvc-faq__titre {
	margin: 0; font-family: inherit; color: var(--c-ink);
	font-size: clamp(1.9rem, 4.2vw, 4.2rem); font-weight: 600; font-stretch: 95%; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase;
}
.wvc-faq__liste { border-bottom: 1px solid var(--c-ligne); }
.wvc-faq__item { border-top: 1px solid var(--c-ligne); }
.wvc-faq__item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
	padding-block: 1.4rem; cursor: pointer; list-style: none;
	font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 600;
}
.wvc-faq__item summary::-webkit-details-marker { display: none; }
.wvc-faq__icone { position: relative; flex-shrink: 0; width: 38px; height: 38px; border: 1px solid var(--c-ligne); border-radius: 50%; transition: transform .4s var(--c-ease), background-color .25s; }
.wvc-faq__icone::before, .wvc-faq__icone::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.wvc-faq__icone::after { transform: translate(-50%, -50%) rotate(90deg); }
.wvc-faq__item[open] .wvc-faq__icone { transform: rotate(45deg); background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.wvc-faq__item p { margin: 0 0 1.5rem; max-width: 60ch; color: var(--c-gris); line-height: 1.7; }

/* ---------- Intitulés des blocs du configurateur ---------- */
.wvc-etape {
	display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; padding: 0;
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink);
}
.wvc-etape::before { content: ""; width: 1.5rem; height: 2px; border-radius: 2px; background: var(--c-ink); }

/* ---------- Choix de l'offre ---------- */
.wvc-choix { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.wvc-choix__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.wvc .wvc-choix__carte {
	position: relative; display: grid; gap: .3rem; height: 100%; padding: 1.15rem 3.25rem 1.15rem 1.25rem;
	border: 1px solid var(--c-ligne); border-radius: 16px; background: #fff;
	color: var(--c-ink); text-decoration: none;
	transition: border-color .25s, box-shadow .25s, transform .3s var(--c-ease);
}
.wvc .wvc-choix__carte:hover { border-color: var(--c-ink); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(26, 31, 43, .45); }
.wvc .wvc-choix__carte[aria-current] { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink), 0 18px 40px -24px rgba(26, 31, 43, .45); }
.wvc-choix__coche { position: absolute; top: 1.1rem; right: 1.1rem; width: 22px; height: 22px; border: 1.5px solid rgba(26, 31, 43, .3); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.wvc-choix__coche::after { content: ""; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--c-ease); }
.wvc .wvc-choix__carte[aria-current] .wvc-choix__coche { background: var(--c-ink); border-color: var(--c-ink); }
.wvc .wvc-choix__carte[aria-current] .wvc-choix__coche::after { transform: rotate(45deg) scale(1); }
.wvc-choix__titre { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.wvc-choix__prix { font-size: .9rem; color: var(--c-gris); }
.wvc-choix__prix strong { color: var(--c-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Grille principale ---------- */
.wvc-form { margin: 0; }
.wvc-grille { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (min-width: 1024px) {
	.wvc-grille { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); column-gap: clamp(2.5rem, 5vw, 5rem); }
	.wvc-recap { position: sticky; top: calc(var(--wv-header-h, 84px) + 1.5rem); }
}

/* ---------- Options ---------- */
.wvc-panneau { margin: 0; padding: 0; border: 0; min-width: 0; }
.wvc-panneau[hidden] { display: none; }
.wvc .wvc-panneau__titre { margin: 0; font-family: inherit; color: var(--c-ink); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; font-stretch: 95%; letter-spacing: .02em; line-height: 1.2; }
.wvc-vente .wvc-choix ~ .wvc-panneau .wvc-panneau__titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wvc-panneau__accroche { margin: 0 0 0; max-width: 52ch; color: var(--c-gris); line-height: 1.6; }
.wvc-items { display: grid; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }

.wvc-item {
	position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 1rem;
	padding: 1.15rem 1.25rem; border: 1px solid var(--c-ligne); border-radius: 14px; background: #fff; cursor: pointer;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.wvc-item:hover { border-color: rgba(26, 31, 43, .4); }
.wvc-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wvc-item__case {
	position: relative; width: 22px; height: 22px; margin-top: .1rem; border: 1.5px solid rgba(26, 31, 43, .35); border-radius: 6px;
	transition: background-color .2s, border-color .2s;
}
.wvc-item__case::after {
	content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 6px; height: 11px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--c-ease);
}
.wvc-item input:checked ~ .wvc-item__case { background: var(--c-ink); border-color: var(--c-ink); }
.wvc-item input:checked ~ .wvc-item__case::after { transform: rotate(45deg) scale(1); }
.wvc-item:has(input:checked) { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.wvc-item input:focus-visible ~ .wvc-item__case { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.wvc-item--inclus { cursor: default; background: rgba(255, 255, 255, .6); }
.wvc-item--inclus:has(input:checked) { box-shadow: none; border-color: var(--c-ligne); }
.wvc-item--inclus .wvc-item__case { background: var(--c-gris) !important; border-color: var(--c-gris) !important; }
.wvc-item__texte { display: grid; gap: .25rem; }
.wvc-item__nom { font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.wvc-item__desc { font-size: .92rem; line-height: 1.5; color: var(--c-gris); }
.wvc-item__prix { display: flex; align-items: center; gap: .5rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wvc-item__prix small { font-weight: 500; color: var(--c-gris); }
.wvc-badge { padding: .2rem .55rem; border-radius: 999px; background: var(--c-clair); border: 1px solid var(--c-ligne); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-gris); }
@media (max-width: 599px) {
	.wvc-item { grid-template-columns: auto minmax(0, 1fr); }
	.wvc-item__prix { grid-column: 2; }
}

/* ---------- Coordonnées ---------- */
.wvc-coord { margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--c-ligne); border-radius: 18px; background: #fff; }
.wvc-coord__intro { margin: -.4rem 0 1.25rem; font-size: .92rem; color: var(--c-gris); }
.wvc-champs { display: grid; gap: 1.25rem 1.5rem; }
@media (min-width: 640px) { .wvc-champs { grid-template-columns: 1fr 1fr; } .wvc-champ--large { grid-column: 1 / -1; } }
.wvc-champ { display: grid; gap: .45rem; }
.wvc-champ label { font-size: .9rem; font-weight: 500; }
.wvc-opt { color: var(--c-gris); font-weight: 400; }
.wvc-champ input, .wvc-champ textarea {
	width: 100%; padding: .85rem 1rem; border: 1px solid rgba(26, 31, 43, .2); border-radius: 10px; background: #fff;
	font: inherit; font-size: 1rem; color: var(--c-ink); transition: border-color .2s, box-shadow .2s;
}
.wvc-champ textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.wvc-champ input:focus, .wvc-champ textarea:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(74, 86, 112, .18); }
.wvc-champ input:user-invalid { border-color: #c2410c; }
.wvc-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Récapitulatif ---------- */
.wvc-recap__carte {
	padding: clamp(1.5rem, 3vw, 2rem); border-radius: 20px; background: var(--c-ink); color: #fff;
	box-shadow: 0 40px 80px -40px rgba(26, 31, 43, .55);
}
.wvc-recap__label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.wvc-recap__live { display: inline-flex; align-items: center; gap: .4rem; letter-spacing: .08em; color: rgba(255, 255, 255, .75); }
.wvc-recap__live span { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.wvc-recap__offre { margin: .5rem 0 0; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.wvc-recap__lignes { display: grid; gap: .55rem; margin: 1.25rem 0 0; padding: 1.25rem 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.wvc-recap__lignes li { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: rgba(255, 255, 255, .82); }
.wvc-recap__lignes li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wvc-recap__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.wvc-recap__total span { font-weight: 600; }
.wvc-recap__total strong { font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 600; font-stretch: 95%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.wvc-recap__total strong.is-maj { animation: wvc-maj .5s var(--c-ease); }
@keyframes wvc-maj { 0% { opacity: .35; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.wvc-recap__mention { margin: .4rem 0 0; font-size: .8rem; color: rgba(255, 255, 255, .55); text-align: right; }

.wvc-paiement[hidden], .wvc-modes[hidden] { display: none; }
.wvc-modes { display: grid; gap: .5rem; margin-top: 1.25rem; }
.wvc-mode { display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; cursor: pointer; font-size: .95rem; transition: border-color .2s, background-color .2s; }
.wvc-mode:has(input:checked) { border-color: #fff; background: rgba(255, 255, 255, .06); }
.wvc-mode input { accent-color: #fff; width: 1.05rem; height: 1.05rem; margin: 0; }

.wvc-accord { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1.25rem; font-size: .85rem; line-height: 1.5; color: rgba(255, 255, 255, .75); cursor: pointer; }
.wvc-accord input { flex-shrink: 0; width: 1.05rem; height: 1.05rem; margin-top: .15rem; accent-color: #fff; }
.wvc-accord a { color: #fff; }

.wvc-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.wvc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%;
	padding: 1rem 1.4rem; border: 1px solid transparent; border-radius: 999px;
	font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.1; text-decoration: none; cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, transform .2s;
}
.wvc-btn:active { transform: scale(.98); }
.wvc-btn[hidden] { display: none; }
.wvc-btn[disabled] { opacity: .65; cursor: progress; }
.wvc-recap .wvc-btn--plein { background: #fff; color: var(--c-ink); }
.wvc-recap .wvc-btn--plein:hover { background: var(--c-accent); color: #fff; }
.wvc-recap .wvc-btn--contour { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.wvc-recap .wvc-btn--contour:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.wvc-recap__note { margin: .75rem 0 0; font-size: .8rem; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.wvc-recap__note[hidden] { display: none; }
.wvc-erreur { margin: .75rem 0 0; color: #fdba74; font-size: .9rem; }

.wvc-garanties { display: grid; gap: .55rem; margin: 1rem 0 0; padding: 0 .25rem; list-style: none; }
.wvc-garanties li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 500; color: var(--c-ink); }
.wvc-garanties svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--c-accent); }

/* ---------- Messages ---------- */
.wvc-alerte { margin-bottom: 2rem; padding: 1rem 1.25rem; border-radius: 12px; font-weight: 500; }
.wvc-alerte--ok { background: #ecfdf3; border: 1px solid #86efac; color: #14532d; }
.wvc-alerte--erreur { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; }
.wvc-vide { padding: 1rem; border: 1px dashed var(--c-ligne); border-radius: 10px; }

/* ---------- Barre « Total » sur mobile ---------- */
.wvc-barre {
	position: fixed; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 90;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .6rem .6rem .6rem 1.1rem; border-radius: 999px; background: var(--c-ink); color: #fff;
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45);
	transform: translateY(150%); transition: transform .4s var(--c-ease);
}
.wvc-barre strong { font-variant-numeric: tabular-nums; }
.wvc-barre .wvc-btn { width: auto; padding: .7rem 1.1rem; font-size: .9rem; background: #fff; color: var(--c-ink); }
.wvc-barre.is-visible { transform: none; }
@media (min-width: 1024px) { .wvc-barre { display: none; } }

@media (prefers-reduced-motion: reduce) {
	.wvc *, .wvc-vente * { transition: none !important; animation: none !important; }
}
