/* ==========================================================================
   Calculateur Mobilier Sur-Mesure
   Direction : atelier d'ébéniste — vert forêt profond, laiton, lin minéral.
   Typo : Bodoni Moda (chiffres & titres) + Jost (interface).
   Tout est scopé sous .mc pour ne pas entrer en conflit avec le thème.
   ========================================================================== */

.mc {
	--mc-ink: #1C2623;
	--mc-forest: #8A9380;
	--mc-forest-2: #78816E;
	--mc-forest-ink: #5C6653;
	--mc-brass: #A8844E;
	--mc-brass-light: #D8C29B;
	--mc-linen: #F2F3EF;
	--mc-paper: #FFFFFF;
	--mc-line: #DADDD5;
	--mc-line-strong: #B9BFB5;
	--mc-muted: #646E69;
	--mc-danger: #A3402F;
	--mc-on-dark: #1C2623;
	--mc-on-dark-muted: #353E39;

	--mc-serif: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", Georgia, serif;
	--mc-sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

	--mc-r-xl: 20px;
	--mc-r-md: 14px;
	--mc-r-sm: 10px;

	--mc-shadow-rest: 0 1px 2px rgba(28, 38, 35, .05);
	--mc-shadow-lift: 0 2px 4px rgba(28, 38, 35, .04), 0 14px 28px -14px rgba(28, 38, 35, .30);
	--mc-shadow-panel: 0 1px 1px rgba(28, 38, 35, .03), 0 24px 60px -30px rgba(28, 38, 35, .35);

	--mc-ease: cubic-bezier(.22, .61, .36, 1);
	--mc-ease-spring: cubic-bezier(.34, 1.4, .64, 1);

	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--mc-ink);
	font-family: var(--mc-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: left;
}

.mc *,
.mc *::before,
.mc *::after { box-sizing: inherit; }

.mc [hidden] { display: none !important; }

.mc .mc__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
}

.mc button { font-family: inherit; }

/* --------------------------------------------------------------------------
   Layout
   Mobile : colonne flex (permet au résumé d'être sticky en bas).
   Desktop : grille 2 colonnes, résumé sticky en haut.
   -------------------------------------------------------------------------- */

.mc__layout {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mc__main {
	background: var(--mc-paper);
	border: 1px solid var(--mc-line);
	border-radius: var(--mc-r-xl);
	box-shadow: var(--mc-shadow-panel);
	padding: 24px 20px 28px;
	min-width: 0;
}

@media (min-width: 640px) {
	.mc__main { padding: 36px 36px 40px; }
}

@media (min-width: 980px) {
	.mc__layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 24px;
		align-items: start;
	}
	.mc__main { padding: 48px 52px 52px; }
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.mc .mc__title {
	margin: 0 0 10px;
	font-family: var(--mc-serif);
	font-weight: 400;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
	line-height: 1.08;
	letter-spacing: -.012em;
	color: var(--mc-ink);
	text-transform: none;
}

.mc .mc__intro {
	margin: 0;
	max-width: 58ch;
	color: var(--mc-muted);
	font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Progression (séquence réelle : numérotation justifiée)
   -------------------------------------------------------------------------- */

.mc .mc__progress {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin: 28px 0 32px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.mc .mc__progress-item {
	position: relative;
	margin: 0;
	padding: 0;
}

.mc .mc__progress-item::before {
	content: "";
	position: absolute;
	top: 15px;
	left: calc(-50% + 20px);
	right: calc(50% + 20px);
	height: 1px;
	background: var(--mc-line);
	transition: background-color .4s var(--mc-ease);
}

.mc .mc__progress-item:first-child::before { display: none; }

.mc .mc__progress-item.is-done::before,
.mc .mc__progress-item.is-active::before { background: var(--mc-forest); }

.mc .mc__progress-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--mc-muted);
	cursor: pointer;
	font-size: .8rem;
	line-height: 1.2;
	letter-spacing: .01em;
}

.mc .mc__progress-btn:disabled { cursor: default; opacity: 1; }

.mc .mc__progress-num {
	display: grid;
	place-items: center;
	width: 31px;
	height: 31px;
	border-radius: 50%;
	border: 1px solid var(--mc-line-strong);
	background: var(--mc-paper);
	font-family: var(--mc-serif);
	font-size: .95rem;
	transition: background-color .3s var(--mc-ease), color .3s var(--mc-ease), border-color .3s var(--mc-ease), transform .3s var(--mc-ease-spring);
}

.mc .mc__progress-item.is-active .mc__progress-btn { color: var(--mc-ink); font-weight: 500; }

.mc .mc__progress-item.is-active .mc__progress-num {
	background: var(--mc-forest);
	border-color: var(--mc-forest);
	color: #fff;
	transform: scale(1.06);
}

.mc .mc__progress-item.is-done .mc__progress-num {
	border-color: var(--mc-forest);
	color: var(--mc-forest-ink);
}

.mc .mc__progress-item.is-done .mc__progress-btn:hover .mc__progress-num {
	background: var(--mc-linen);
}

.mc .mc__progress-btn:focus-visible { outline: none; }
.mc .mc__progress-btn:focus-visible .mc__progress-num {
	outline: 2px solid var(--mc-brass);
	outline-offset: 3px;
}

@media (max-width: 420px) {
	.mc .mc__progress-label { font-size: .72rem; }
}

/* --------------------------------------------------------------------------
   Étapes + transitions
   -------------------------------------------------------------------------- */

.mc .mc__form { margin: 0; }

.mc .mc__step { display: none; }

.mc .mc__step.is-active {
	display: block;
	animation: mc-in .42s var(--mc-ease) both;
}

.mc .mc__step.is-active[data-dir="back"] { animation-name: mc-in-back; }

@keyframes mc-in {
	from { opacity: 0; transform: translate3d(22px, 0, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes mc-in-back {
	from { opacity: 0; transform: translate3d(-22px, 0, 0); }
	to { opacity: 1; transform: none; }
}

.mc .mc__step-title {
	margin: 0 0 6px;
	font-family: var(--mc-serif);
	font-weight: 400;
	font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem);
	line-height: 1.2;
	color: var(--mc-ink);
	outline: none;
}

.mc .mc__step-hint {
	margin: 0 0 20px;
	color: var(--mc-muted);
	font-size: .95rem;
}

.mc .mc__step[data-step="1"] .mc__step-title,
.mc .mc__step[data-step="3"] .mc__step-title,
.mc .mc__step[data-step="4"] .mc__step-title { margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   Étape 1 : cartes articles
   -------------------------------------------------------------------------- */

.mc .mc__types {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 640px) {
	.mc .mc__types {
		grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
		gap: 14px;
	}
}

.mc .mc__type {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.mc .mc__type-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 16px 14px 14px;
	border: 1px solid var(--mc-line);
	border-radius: var(--mc-r-md);
	background: var(--mc-paper);
	box-shadow: var(--mc-shadow-rest);
	transition: border-color .25s var(--mc-ease), box-shadow .3s var(--mc-ease), transform .3s var(--mc-ease), background-color .25s var(--mc-ease);
}

@media (min-width: 640px) {
	.mc .mc__type-card { padding: 20px 18px 16px; }
}

.mc .mc__type-icon {
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	color: var(--mc-forest-ink);
	transition: color .25s var(--mc-ease), transform .35s var(--mc-ease-spring);
}

.mc .mc__type-icon svg { display: block; width: 100%; height: 100%; }

.mc .mc__type-name {
	font-weight: 500;
	font-size: .98rem;
	line-height: 1.25;
	color: var(--mc-ink);
}

.mc .mc__type-desc {
	margin-top: 2px;
	font-size: .82rem;
	line-height: 1.35;
	color: var(--mc-muted);
}

.mc .mc__type-price {
	margin-top: auto;
	padding-top: 12px;
	font-family: var(--mc-serif);
	font-size: .88rem;
	color: var(--mc-ink);
}

.mc .mc__type-card::after {
	content: "";
	position: absolute;
	top: 12px;
	right: 12px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid var(--mc-line-strong);
	background: var(--mc-paper);
	transition: all .25s var(--mc-ease);
}

@media (hover: hover) {
	.mc .mc__type:hover .mc__type-card {
		border-color: var(--mc-line-strong);
		box-shadow: var(--mc-shadow-lift);
		transform: translateY(-2px);
	}
	.mc .mc__type:hover .mc__type-icon { transform: translateY(-2px); }
}

.mc .mc__type input:checked + .mc__type-card {
	border-color: var(--mc-forest);
	box-shadow: inset 0 0 0 1px var(--mc-forest), var(--mc-shadow-lift);
	background: linear-gradient(180deg, #FAFBF8 0%, var(--mc-paper) 60%);
}

.mc .mc__type input:checked + .mc__type-card .mc__type-icon { color: var(--mc-brass); }

.mc .mc__type input:checked + .mc__type-card::after {
	border-color: var(--mc-forest);
	background: var(--mc-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
	animation: mc-pop .35s var(--mc-ease-spring);
}

.mc .mc__type input:focus-visible + .mc__type-card {
	outline: 2px solid var(--mc-brass);
	outline-offset: 3px;
}

@keyframes mc-pop {
	0% { transform: scale(.4); }
	100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Étape 2 : champs dimensions
   -------------------------------------------------------------------------- */

.mc .mc__fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 640px) {
	.mc .mc__fields { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

.mc .mc__field { min-width: 0; }

.mc .mc__label {
	display: block;
	margin: 0 0 7px;
	font-size: .88rem;
	font-weight: 500;
	color: var(--mc-ink);
}

.mc .mc__optional { font-weight: 400; color: var(--mc-muted); }

.mc .mc__input-wrap {
	display: flex;
	align-items: stretch;
	height: 56px;
	border: 1px solid var(--mc-line);
	border-radius: var(--mc-r-sm);
	background: var(--mc-linen);
	overflow: hidden;
	transition: border-color .2s var(--mc-ease), background-color .2s var(--mc-ease), box-shadow .2s var(--mc-ease);
}

.mc .mc__input-wrap:focus-within {
	border-color: var(--mc-forest);
	background: var(--mc-paper);
	box-shadow: 0 0 0 3px rgba(138, 147, 128, .12);
}

.mc .mc__field.is-invalid .mc__input-wrap {
	border-color: var(--mc-danger);
	box-shadow: 0 0 0 3px rgba(163, 64, 47, .10);
}

.mc .mc__field.is-nudged .mc__input { animation: mc-nudge .28s var(--mc-ease); }

@keyframes mc-nudge {
	40% { transform: scale(1.06); }
	100% { transform: none; }
}

.mc input.mc__input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--mc-ink);
	font-family: var(--mc-sans);
	font-size: 1.2rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	text-align: center;
	outline: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.mc input.mc__input::-webkit-outer-spin-button,
.mc input.mc__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mc .mc__unit {
	align-self: center;
	padding-right: 4px;
	color: var(--mc-muted);
	font-size: .85rem;
}

.mc .mc__stepper {
	flex: 0 0 48px;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--mc-forest-ink);
	cursor: pointer;
	transition: background-color .15s var(--mc-ease), color .15s var(--mc-ease);
}

.mc .mc__stepper svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}

.mc .mc__stepper:hover { background: rgba(138, 147, 128, .07); }
.mc .mc__stepper:active { background: rgba(138, 147, 128, .13); }
.mc .mc__stepper:focus-visible { outline: 2px solid var(--mc-brass); outline-offset: -2px; }

.mc .mc__hint {
	margin: 6px 0 0;
	font-size: .78rem;
	color: var(--mc-muted);
}

.mc .mc__error {
	margin: 4px 0 0;
	font-size: .82rem;
	color: var(--mc-danger);
	min-height: 0;
}

.mc .mc__error:empty { display: none; }

.mc .mc__error--block { margin-top: 12px; }

.mc .mc__measure {
	margin: 22px 0 0;
	padding: 12px 16px;
	border-radius: var(--mc-r-sm);
	background: var(--mc-linen);
	color: var(--mc-ink);
	font-size: .92rem;
	font-variant-numeric: tabular-nums;
}

.mc .mc__measure:empty { display: none; }

/* --------------------------------------------------------------------------
   Étape 3 : matériaux (échantillons)
   -------------------------------------------------------------------------- */

.mc .mc__group {
	margin: 0 0 26px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.mc .mc__group:last-of-type { margin-bottom: 0; }

.mc .mc__legend {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	font-size: .95rem;
	font-weight: 500;
	color: var(--mc-ink);
}

.mc .mc__swatches {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 560px) {
	.mc .mc__swatches { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

.mc .mc__swatch { display: block; margin: 0; cursor: pointer; position: relative; }

.mc .mc__swatch-card {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	grid-template-areas: "dot text" "dot price";
	column-gap: 14px;
	align-items: center;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid var(--mc-line);
	border-radius: var(--mc-r-md);
	background: var(--mc-paper);
	transition: border-color .25s var(--mc-ease), box-shadow .3s var(--mc-ease), transform .3s var(--mc-ease);
}

.mc .mc__swatch-dot {
	grid-area: dot;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 3px var(--mc-paper), 0 0 0 4px transparent;
	transition: box-shadow .3s var(--mc-ease), transform .35s var(--mc-ease-spring);
}

/* Bois : veinage */
.mc .mc__swatch-dot--bois {
	background:
		repeating-linear-gradient(100deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 7px),
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), transparent 60%),
		var(--sw);
}

/* Tissu : trame */
.mc .mc__swatch-dot--tissu {
	background:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(-45deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 4px),
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .28), transparent 55%),
		var(--sw);
}

/* Éponge : alvéoles */
.mc .mc__swatch-dot--eponge {
	background:
		radial-gradient(circle, rgba(0, 0, 0, .10) 1.2px, transparent 1.6px) 0 0 / 6px 6px,
		radial-gradient(circle, rgba(0, 0, 0, .07) 1px, transparent 1.4px) 3px 3px / 6px 6px,
		var(--sw);
}

.mc .mc__swatch-text { grid-area: text; min-width: 0; }

.mc .mc__swatch-name {
	display: block;
	font-weight: 500;
	font-size: .95rem;
	line-height: 1.25;
}

.mc .mc__swatch-desc {
	display: block;
	font-size: .8rem;
	line-height: 1.35;
	color: var(--mc-muted);
}

.mc .mc__swatch-price {
	grid-area: price;
	margin-top: 4px;
	font-family: var(--mc-serif);
	font-size: .86rem;
	color: var(--mc-ink);
}

@media (hover: hover) {
	.mc .mc__swatch:hover .mc__swatch-card {
		border-color: var(--mc-line-strong);
		box-shadow: var(--mc-shadow-lift);
		transform: translateY(-1px);
	}
	.mc .mc__swatch:hover .mc__swatch-dot { transform: rotate(-8deg) scale(1.04); }
}

.mc .mc__swatch input:checked + .mc__swatch-card {
	border-color: var(--mc-forest);
	box-shadow: inset 0 0 0 1px var(--mc-forest), var(--mc-shadow-lift);
}

.mc .mc__swatch input:checked + .mc__swatch-card .mc__swatch-dot {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 3px var(--mc-paper), 0 0 0 4.5px var(--mc-brass);
}

.mc .mc__swatch input:focus-visible + .mc__swatch-card {
	outline: 2px solid var(--mc-brass);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Étape 4 : récapitulatif + contact
   -------------------------------------------------------------------------- */

.mc .mc__recap {
	margin: 0 0 28px;
	padding: 0;
	border-top: 1px solid var(--mc-line);
}

.mc .mc__recap-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "dt edit" "dd edit";
	align-items: center;
	column-gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--mc-line);
}

@media (min-width: 560px) {
	.mc .mc__recap-row {
		grid-template-columns: 180px minmax(0, 1fr) auto;
		grid-template-areas: "dt dd edit";
	}
}

.mc .mc__recap dt { grid-area: dt; margin: 0; color: var(--mc-muted); font-size: .88rem; font-weight: 400; }
.mc .mc__recap dd { grid-area: dd; margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

.mc .mc__recap-row--total dd {
	font-family: var(--mc-serif);
	font-weight: 400;
	font-size: 1.35rem;
}

.mc .mc__recap-edit {
	grid-area: edit;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--mc-forest-ink);
	font-size: .82rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--mc-brass-light);
	cursor: pointer;
	transition: background-color .15s var(--mc-ease);
}

.mc .mc__recap-edit:hover { background: var(--mc-linen); }
.mc .mc__recap-edit:focus-visible { outline: 2px solid var(--mc-brass); outline-offset: 1px; }

.mc .mc__contact-intro { margin: 0 0 16px; color: var(--mc-muted); max-width: 60ch; }

.mc .mc__contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 640px) {
	.mc .mc__contact-grid { grid-template-columns: 1fr 1fr; }
	.mc .mc__cfield--full { grid-column: 1 / -1; }
}

.mc input.mc__text,
.mc textarea.mc__text {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--mc-line);
	border-radius: var(--mc-r-sm);
	background: var(--mc-linen);
	box-shadow: none;
	color: var(--mc-ink);
	font-family: var(--mc-sans);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color .2s var(--mc-ease), background-color .2s var(--mc-ease), box-shadow .2s var(--mc-ease);
}

.mc textarea.mc__textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }

.mc input.mc__text:focus,
.mc textarea.mc__text:focus {
	outline: none;
	border-color: var(--mc-forest);
	background: var(--mc-paper);
	box-shadow: 0 0 0 3px rgba(138, 147, 128, .12);
}

.mc .mc__cfield.is-invalid .mc__text {
	border-color: var(--mc-danger);
	box-shadow: 0 0 0 3px rgba(163, 64, 47, .10);
}

.mc .mc__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mc .mc__feedback { margin: 16px 0 0; font-size: .9rem; }
.mc .mc__feedback:empty { display: none; }
.mc .mc__feedback.is-error { color: var(--mc-danger); }
.mc .mc__feedback.is-ok { color: var(--mc-forest-ink); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.mc .mc__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 32px;
}

.mc .mc__nav--end { justify-content: flex-end; }

.mc .mc__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	margin: 0;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	box-shadow: none;
	font-family: var(--mc-sans);
	font-size: .95rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .015em;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color .2s var(--mc-ease), color .2s var(--mc-ease), border-color .2s var(--mc-ease), transform .2s var(--mc-ease), box-shadow .25s var(--mc-ease), opacity .2s;
	-webkit-tap-highlight-color: transparent;
}

.mc .mc__btn--primary {
	background: var(--mc-forest);
	border-color: var(--mc-forest);
	color: #fff;
}

.mc .mc__btn--primary:hover:not(:disabled) {
	background: var(--mc-forest-2);
	border-color: var(--mc-forest-2);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -12px rgba(138, 147, 128, .7);
}

.mc .mc__btn--primary:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

.mc .mc__btn--ghost {
	background: transparent;
	border-color: var(--mc-line-strong);
	color: var(--mc-ink);
}

.mc .mc__btn--ghost:hover:not(:disabled) {
	background: var(--mc-linen);
	border-color: var(--mc-ink);
	color: var(--mc-ink);
}

.mc .mc__btn:disabled { opacity: .4; cursor: not-allowed; }

.mc .mc__btn:focus-visible { outline: 2px solid var(--mc-brass); outline-offset: 3px; }

.mc .mc__nav .mc__btn--primary { flex: 1 1 auto; max-width: 280px; }
.mc .mc__nav--end .mc__btn--primary { flex: 0 1 auto; }

@media (max-width: 480px) {
	.mc .mc__nav .mc__btn { padding: 0 20px; }
	.mc .mc__nav--end .mc__btn--primary { flex: 1 1 auto; max-width: none; }
}

.mc .mc__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mc-spin .7s linear infinite;
}

.mc .mc__btn.is-loading .mc__spinner { display: inline-block; }
.mc .mc__btn.is-loading { opacity: .85; cursor: progress; }

@keyframes mc-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Succès
   -------------------------------------------------------------------------- */

.mc .mc__success {
	padding: 24px 0 8px;
	text-align: center;
	outline: none;
	animation: mc-in .45s var(--mc-ease) both;
}

.mc .mc__success-mark {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--mc-forest);
}

.mc .mc__success-mark svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: #FFFFFF;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
	animation: mc-draw .6s .2s var(--mc-ease) forwards;
}

@keyframes mc-draw { to { stroke-dashoffset: 0; } }

.mc .mc__success-text { margin: 0 auto 24px; max-width: 44ch; color: var(--mc-muted); }

/* --------------------------------------------------------------------------
   Résumé du prix — l'élément signature
   -------------------------------------------------------------------------- */

.mc .mc__summary {
	position: sticky;
	bottom: 0;
	z-index: 20;
	padding: 16px 20px 18px;
	border-radius: var(--mc-r-xl) var(--mc-r-xl) 0 0;
	background: var(--mc-forest);
	background-image: radial-gradient(120% 90% at 100% 0%, rgba(168, 132, 78, .18) 0%, transparent 55%);
	color: var(--mc-on-dark);
	box-shadow: 0 -12px 30px -16px rgba(28, 38, 35, .45);
}

@media (min-width: 980px) {
	.mc .mc__summary {
		top: 24px;
		bottom: auto;
		padding: 30px 30px 28px;
		border-radius: var(--mc-r-xl);
		box-shadow: var(--mc-shadow-panel);
	}
}

.mc .mc__summary-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mc .mc__summary-label {
	margin: 0;
	font-size: .85rem;
	color: var(--mc-on-dark-muted);
	letter-spacing: .02em;
}

.mc .mc__summary-toggle {
	margin: 0;
	padding: 6px 12px;
	border: 1px solid rgba(28, 38, 35, .28);
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--mc-on-dark);
	font-size: .8rem;
	line-height: 1;
	cursor: pointer;
}

.mc .mc__summary-toggle:hover { background: rgba(255, 255, 255, .18); }
.mc .mc__summary-toggle:focus-visible { outline: 2px solid var(--mc-ink); outline-offset: 2px; }

@media (min-width: 980px) {
	.mc .mc__summary-toggle { display: none; }
}

.mc .mc__price {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	margin: 4px 0 6px;
	padding-bottom: 8px;
	font-family: var(--mc-serif);
	line-height: 1;
	color: #fff;
	transition: opacity .25s var(--mc-ease);
}

.mc .mc__price-value {
	font-size: 2.3rem;
	font-weight: 400;
	letter-spacing: -.015em;
	font-variant-numeric: lining-nums tabular-nums;
	transition: color .5s var(--mc-ease);
}

.mc .mc__price-cur {
	font-size: 1.05rem;
	color: #FFFFFF;
}

@media (min-width: 980px) {
	.mc .mc__price { margin: 14px 0 8px; padding-bottom: 12px; }
	.mc .mc__price-value { font-size: 3.6rem; }
	.mc .mc__price-cur { font-size: 1.25rem; }
}

/* Filet de laiton qui balaie à chaque mise à jour */
.mc .mc__price::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--mc-brass);
	transform: scaleX(.18);
	transform-origin: left center;
	opacity: .7;
}

.mc .mc__price.is-bump::after { animation: mc-sweep .7s var(--mc-ease); }
.mc .mc__price.is-bump .mc__price-value { animation: mc-glint .7s var(--mc-ease); }

@keyframes mc-sweep {
	0% { transform: scaleX(.18); opacity: .7; }
	45% { transform: scaleX(1); opacity: 1; }
	100% { transform: scaleX(.18); opacity: .7; transform-origin: right center; }
}

@keyframes mc-glint {
	0% { color: #fff; }
	35% { color: var(--mc-brass-light); }
	100% { color: #fff; }
}

.mc .mc__price.is-stale { opacity: .45; }

.mc .mc__price-note {
	margin: 0;
	font-size: .85rem;
	color: var(--mc-on-dark-muted);
	font-variant-numeric: tabular-nums;
}

.mc .mc__breakdown {
	display: none;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.mc .mc__summary.is-open .mc__breakdown { display: block; animation: mc-fade .3s var(--mc-ease); }

@media (min-width: 980px) {
	.mc .mc__breakdown { display: block; margin-top: 22px; }
}

.mc .mc__breakdown:empty { display: none !important; }

.mc .mc__breakdown li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid rgba(28, 38, 35, .14);
	font-size: .86rem;
	line-height: 1.35;
}

.mc .mc__breakdown li span:last-child {
	flex-shrink: 0;
	font-weight: 500;
	color: var(--mc-ink);
	font-variant-numeric: tabular-nums;
}

.mc .mc__disclaimer {
	display: none;
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid rgba(28, 38, 35, .14);
	font-size: .78rem;
	line-height: 1.45;
	color: var(--mc-on-dark-muted);
}

.mc .mc__summary.is-open .mc__disclaimer { display: block; }

@media (min-width: 980px) {
	.mc .mc__disclaimer { display: block; }
}

@keyframes mc-fade { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.mc *,
	.mc *::before,
	.mc *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.mc .mc__success-mark svg { stroke-dashoffset: 0; }
}

/* ==========================================================================
   v2 — titre dynamique, prix vide, formes, photos de matériaux
   ========================================================================== */

.mc .mc__title { transition: opacity .18s var(--mc-ease), transform .18s var(--mc-ease); }
.mc .mc__title.is-swapping { opacity: 0; transform: translateY(-4px); }

/* Prix absent tant que les dimensions ne sont pas saisies */
.mc .mc__price.is-empty .mc__price-value { color: var(--mc-on-dark-muted); }
.mc .mc__price.is-empty .mc__price-cur { opacity: .35; }
.mc .mc__price.is-empty::after { opacity: .3; }

/* Image d'article à la place de l'icône */
.mc .mc__type-img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 12px;
	border-radius: var(--mc-r-sm);
	background: var(--mc-linen) center / cover no-repeat;
}

/* Formes (droit, L, U, carré) */
.mc .mc__shapes {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.mc .mc__shape-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 560px) {
	.mc .mc__shape-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.mc .mc__shape { display: block; margin: 0; cursor: pointer; position: relative; }

.mc .mc__shape-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 10px 12px;
	border: 1px solid var(--mc-line);
	border-radius: var(--mc-r-md);
	background: var(--mc-paper);
	text-align: center;
	transition: border-color .25s var(--mc-ease), box-shadow .3s var(--mc-ease), transform .3s var(--mc-ease);
}

.mc .mc__shape-icon { display: block; width: 52px; height: 52px; color: var(--mc-forest-ink); }
.mc .mc__shape-icon svg { display: block; width: 100%; height: 100%; }
.mc .mc__shape-icon svg path,
.mc .mc__shape-icon svg rect { fill: rgba(138, 147, 128, .16); }
.mc .mc__shape-name { font-size: .88rem; font-weight: 500; line-height: 1.2; }

@media (hover: hover) {
	.mc .mc__shape:hover .mc__shape-card {
		border-color: var(--mc-line-strong);
		box-shadow: var(--mc-shadow-lift);
		transform: translateY(-1px);
	}
}

.mc .mc__shape input:checked + .mc__shape-card {
	border-color: var(--mc-forest);
	box-shadow: inset 0 0 0 1px var(--mc-forest), var(--mc-shadow-lift);
}

.mc .mc__shape input:checked + .mc__shape-card .mc__shape-icon { color: var(--mc-brass); }
.mc .mc__shape input:checked + .mc__shape-card .mc__shape-icon svg path,
.mc .mc__shape input:checked + .mc__shape-card .mc__shape-icon svg rect { fill: rgba(168, 132, 78, .22); }

.mc .mc__shape input:focus-visible + .mc__shape-card { outline: 2px solid var(--mc-brass); outline-offset: 3px; }

/* Champs : texte décimal (virgule acceptée) */
.mc input.mc__input::placeholder { color: #A7AEA9; opacity: 1; font-weight: 400; }

/* Échantillons : photo réelle, même forme ronde */
.mc .mc__swatch-card { grid-template-columns: 52px minmax(0, 1fr); }
.mc .mc__swatch-dot { width: 52px; height: 52px; }

.mc .mc__swatch-dot.has-image {
	background-color: var(--mc-linen);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.mc .mc__swatch-dot--plain {
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .3), transparent 60%), var(--sw);
}

@media (hover: hover) {
	.mc .mc__swatch:hover .mc__swatch-dot.has-image { transform: scale(1.08); }
}
