/* Main Character — interface client. Mobile d'abord.
 * Direction artistique : heure dorée cinématographique — ciel pêche/ambre virant au bleu crépuscule,
 * silhouettes presque noires, grain de film. */

@font-face {
	font-family: "MC Display";
	src: url("../fonts/Bungee-Regular.ttf") format("truetype");
	font-display: swap;
}

.mc-app {
	--mc-ink: #0d0b12;          /* presque noir, silhouettes */
	--mc-night: #161a28;        /* bleu nuit */
	--mc-dusk: #46557a;         /* bleu crépuscule (haut du ciel) */
	--mc-violet: #8a6a94;       /* transition ciel */
	--mc-rose: #d9757f;         /* rose couchant */
	--mc-coral: #ec6a4c;        /* corail */
	--mc-peach: #f4a77a;        /* pêche */
	--mc-amber: #f8c47b;        /* ambre / soleil */
	--mc-cream: #fbefe2;        /* texte principal */
	--mc-muted: #c9b9ae;        /* texte secondaire */
	--mc-line: rgba(251, 239, 226, 0.14);
	--mc-panel: rgba(22, 26, 40, 0.72);
	--mc-focus: #f8c47b;
	--mc-danger: #ff8a7a;
	--mc-sunset: linear-gradient(180deg, var(--mc-amber) 0%, var(--mc-peach) 40%, var(--mc-coral) 100%);
	--mc-font-display: "MC Display", "Arial Black", Impact, sans-serif;
	--mc-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	container-type: inline-size; /* La mise en page s'adapte à la largeur réelle du bloc, pas de l'écran. */
	color: var(--mc-cream);
	font-family: var(--mc-font-body);
	font-size: 16px;
	line-height: 1.5;
	background: var(--mc-ink);
	overflow: hidden;
	isolation: isolate;
}

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

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

/* Grain de film sur toute l'interface. */
.mc-app::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 50;
	pointer-events: none;
	opacity: 0.09;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Page plein écran ---------- */
body.mc-landing-body {
	margin: 0 !important;
	padding: 0 !important;
	background: #0d0b12 !important;
}

.mc-landing {
	min-height: 100vh;
}

/* En plein écran, on neutralise les marges et largeurs maximales imposées par le thème. */
.mc-landing > *,
.mc-landing p:has(> .mc-app),
.mc-landing .wp-block-shortcode {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ---------- Bandeau d'accueil ---------- */
.mc-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 56px 16px 40px;
	text-align: center;
	background:
		linear-gradient(180deg, rgba(13, 11, 18, 0) 45%, rgba(13, 11, 18, 0.55) 72%, var(--mc-ink) 100%),
		var(--mc-hero-img-m) center bottom / cover no-repeat,
		var(--mc-dusk);
}

.mc-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
}

.mc-kicker {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mc-cream);
	opacity: 0.9;
}

.mc-title {
	margin: 0;
	font-family: var(--mc-font-display);
	font-weight: 400;
	font-size: clamp(2.6rem, 13vw, 5.6rem);
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	background: var(--mc-sunset);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 3px 0 rgba(13, 11, 18, 0.55)) drop-shadow(0 10px 24px rgba(13, 11, 18, 0.45));
}

.mc-tagline {
	margin: 14px 0 22px;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--mc-cream);
	text-shadow: 0 2px 12px rgba(13, 11, 18, 0.6);
}

.mc-hero-cta {
	max-width: 340px;
	margin: 0 auto;
}

.mc-hero-note {
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: var(--mc-cream);
	opacity: 0.85;
}

/* Exemples : rangée qui défile au doigt sur mobile, grille sur grand écran. */
.mc-examples {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 14px;
	width: calc(100% + 32px);
	margin: 30px -16px 0;
	padding: 6px 16px 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.mc-examples::-webkit-scrollbar {
	display: none;
}

.mc-example {
	flex: 0 0 58%;
	max-width: 260px;
	margin: 0;
	scroll-snap-align: center;
}

.mc-example img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 2px 0 rgba(251, 239, 226, 0.15), 0 18px 40px rgba(0, 0, 0, 0.55);
}

.mc-example figcaption {
	margin-top: 8px;
	font-family: var(--mc-font-display);
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	text-align: center;
	text-transform: uppercase;
	color: var(--mc-cream);
}

/* ---------- Étapes ---------- */
.mc-steps {
	padding: 8px 16px 32px;
}

.mc-steps ol {
	display: grid;
	gap: 10px;
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.mc-steps li {
	display: grid;
	grid-template-columns: 40px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--mc-line);
	border-radius: 14px;
	background: var(--mc-night);
}

.mc-steps-n {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-family: var(--mc-font-display);
	font-size: 1.1rem;
	color: var(--mc-ink);
	background: var(--mc-sunset);
}

.mc-steps strong {
	font-family: var(--mc-font-display);
	font-weight: 400;
	font-size: 1rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mc-steps small {
	font-size: 0.88rem;
	color: var(--mc-muted);
}

/* ---------- Création ---------- */
.mc-create {
	max-width: 560px;
	margin: 0 auto;
	padding: 24px 16px 40px;
	scroll-margin-top: 12px;
}

.mc-section-title {
	margin: 0 0 18px;
	font-family: var(--mc-font-display);
	font-weight: 400;
	font-size: clamp(1.6rem, 8vw, 2.2rem);
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	background: var(--mc-sunset);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.mc-panel {
	margin-bottom: 14px;
	padding: 18px 16px;
	border: 1px solid var(--mc-line);
	border-radius: 16px;
	background: var(--mc-panel);
}

.mc-step {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-family: var(--mc-font-display);
	font-weight: 400;
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--mc-cream);
}

.mc-step span {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 0.95rem;
	color: var(--mc-ink);
	background: var(--mc-sunset);
}

.mc-center {
	text-align: center;
}

.mc-small {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: var(--mc-muted);
	text-align: center;
}

/* Photo */
.mc-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 170px;
	padding: 16px;
	border: 2px dashed rgba(248, 196, 123, 0.5);
	border-radius: 14px;
	text-align: center;
	cursor: pointer;
	background: rgba(13, 11, 18, 0.35);
	transition: border-color 0.2s, background 0.2s;
}

.mc-drop:hover,
.mc-drop:focus-within {
	border-color: var(--mc-amber);
	background: rgba(248, 196, 123, 0.07);
}

.mc-drop input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.mc-drop-preview {
	max-height: 220px;
	max-width: 100%;
	border-radius: 10px;
	object-fit: cover;
}

.mc-drop-text {
	font-size: 0.92rem;
	color: var(--mc-muted);
}

.mc-drop-text strong {
	font-size: 1.05rem;
	color: var(--mc-cream);
}

/* « ou » + bouton « Prendre une photo maintenant » */
.mc-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0;
	font-size: 0.85rem;
	color: var(--mc-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.mc-or::before,
.mc-or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--mc-line);
}

.mc-app .mc-cam-btn {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid rgba(248, 196, 123, 0.6);
	border-radius: 14px;
	background: rgba(248, 196, 123, 0.08);
	color: var(--mc-cream);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.mc-app .mc-cam-btn:hover,
.mc-app .mc-cam-btn:focus-visible {
	border-color: var(--mc-amber);
	background: rgba(248, 196, 123, 0.16);
	outline: none;
}

/* Fenêtre webcam (ordinateur). Rattachée à <body> : couleurs écrites en dur. */
.mc-cam {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(13, 11, 18, 0.88);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mc-cam[hidden] {
	display: none;
}

html.mc-cam-open,
html.mc-cam-open body {
	overflow: hidden;
}

.mc-cam-box {
	width: 100%;
	max-width: 720px;
	padding: 16px;
	border: 1px solid rgba(251, 239, 226, 0.14);
	border-radius: 18px;
	background: #161a28;
	color: #fbefe2;
	text-align: center;
}

.mc-cam-video {
	display: block;
	width: 100%;
	max-height: 70vh;
	border-radius: 12px;
	background: #0d0b12;
	object-fit: contain;
	transform: scaleX(-1); /* Effet miroir, comme un selfie ; la photo prise n'est pas inversée. */
}

.mc-cam-hint {
	margin: 12px 0;
	font-size: 0.9rem;
	color: #c9b9ae;
}

.mc-cam-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.mc-cam-actions button {
	flex: 1 1 180px;
	min-height: 50px;
	padding: 12px 20px;
	border-radius: 14px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.mc-cam-cancel {
	border: 1px solid rgba(251, 239, 226, 0.3);
	background: transparent;
	color: #fbefe2;
}

.mc-cam-shoot {
	border: 0;
	background: linear-gradient(90deg, #f8c47b, #ec6a4c);
	color: #0d0b12;
}

.mc-tips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.mc-tips li {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	color: var(--mc-muted);
	background: rgba(251, 239, 226, 0.07);
}

.mc-tips li::before {
	content: "✓ ";
	color: var(--mc-amber);
}

/* Ambiances : tons inspirés du ciel de fin de journée. */
.mc-ambiances {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.mc-amb {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 96px;
	padding: 10px 12px;
	border: 2px solid transparent;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--mc-dusk), var(--mc-coral));
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.mc-amb[data-amb="sunset"] { background: linear-gradient(180deg, #5b6b8f 0%, #d9757f 50%, #f8c47b 100%); }
.mc-amb[data-amb="city_night"] { background: linear-gradient(180deg, #0f1220 0%, #2b2f52 55%, #8a6a94 100%); }
.mc-amb[data-amb="convertible"] { background: linear-gradient(180deg, #f4a77a 0%, #ec6a4c 55%, #3a2230 100%); }
.mc-amb[data-amb="marina"] { background: linear-gradient(180deg, #9fc3cf 0%, #3f8f9b 55%, #163745 100%); }

/* Carte avec l'exemple de l'ambiance en fond (cadré sur le personnage). */
.mc-amb.has-img {
	min-height: 150px;
	background:
		linear-gradient(180deg, rgba(13, 11, 18, 0) 40%, rgba(13, 11, 18, 0.85) 100%),
		var(--mc-amb-img) center top / cover no-repeat;
}

.mc-amb input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mc-amb span {
	font-family: var(--mc-font-display);
	font-size: 0.95rem;
	line-height: 1.1;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.mc-amb:has(input:checked) {
	border-color: var(--mc-amber);
	box-shadow: 0 0 0 2px rgba(248, 196, 123, 0.3), 0 10px 26px rgba(236, 106, 76, 0.35);
	transform: translateY(-2px);
}

.mc-amb:has(input:focus-visible) {
	outline: 3px solid var(--mc-focus);
	outline-offset: 2px;
}

/* Champs */
.mc-field {
	display: block;
	margin-bottom: 14px;
}

.mc-field span {
	display: block;
	margin-bottom: 6px;
	font-size: 0.92rem;
	font-weight: 600;
}

.mc-field em {
	font-style: normal;
	font-weight: 400;
	color: var(--mc-muted);
}

.mc-app .mc-field input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--mc-line);
	border-radius: 10px;
	background: rgba(13, 11, 18, 0.55);
	color: var(--mc-cream);
	font-size: 16px; /* Évite le zoom automatique sur iPhone. */
}

.mc-app .mc-field input::placeholder {
	color: rgba(201, 185, 174, 0.6);
}

.mc-app .mc-field input:focus {
	outline: none;
	border-color: var(--mc-amber);
	box-shadow: 0 0 0 3px rgba(248, 196, 123, 0.22);
}

.mc-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 12px;
	font-size: 0.86rem;
	color: var(--mc-muted);
	cursor: pointer;
}

.mc-check input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	accent-color: var(--mc-coral);
}

.mc-app a {
	color: var(--mc-amber);
}

.mc-error {
	margin: 0 0 12px;
	padding: 10px 14px;
	border: 1px solid rgba(255, 138, 122, 0.5);
	border-radius: 10px;
	background: rgba(236, 106, 76, 0.14);
	color: #ffe1d9;
	font-size: 0.92rem;
}

/* ---------- Boutons ---------- */
.mc-app .mc-btn {
	display: block;
	width: 100%;
	min-height: 56px;
	padding: 16px 20px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(90deg, var(--mc-amber), var(--mc-coral));
	color: var(--mc-ink);
	font-family: var(--mc-font-display);
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(236, 106, 76, 0.4);
	transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.mc-app .mc-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 34px rgba(236, 106, 76, 0.55);
}

.mc-app .mc-btn:focus-visible {
	outline: 3px solid var(--mc-cream);
	outline-offset: 3px;
}

.mc-app .mc-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.mc-app .mc-btn-alt {
	border: 2px solid var(--mc-amber);
	background: transparent;
	color: var(--mc-amber);
	box-shadow: none;
}

.mc-app .mc-link {
	display: block;
	margin: 14px auto 0;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--mc-amber);
	font-size: 0.92rem;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- Attente ---------- */
.mc-wait {
	padding: 28px 18px;
	text-align: center;
}

.mc-wait-title {
	margin: 0 0 16px;
	font-family: var(--mc-font-display);
	font-size: 1.4rem;
	text-transform: uppercase;
}

.mc-bar {
	height: 12px;
	border-radius: 999px;
	background: rgba(251, 239, 226, 0.1);
	overflow: hidden;
}

.mc-bar span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--mc-dusk), var(--mc-rose), var(--mc-coral), var(--mc-amber));
	background-size: 200% 100%;
	transition: width 0.4s ease-out;
	animation: mc-shine 2.6s linear infinite;
}

@keyframes mc-shine {
	from { background-position: 0 0; }
	to { background-position: -200% 0; }
}

.mc-wait-steps {
	display: grid;
	gap: 8px;
	margin: 20px auto 0;
	padding: 0;
	max-width: 300px;
	list-style: none;
	text-align: left;
	counter-reset: mc-step;
}

.mc-wait-steps li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	color: rgba(201, 185, 174, 0.55);
	transition: color 0.3s;
	counter-increment: mc-step;
}

.mc-wait-steps li::before {
	content: counter(mc-step);
	display: grid;
	place-items: center;
	flex: 0 0 26px;
	height: 26px;
	border: 2px solid rgba(201, 185, 174, 0.35);
	border-radius: 50%;
	font-size: 0.8rem;
	font-weight: 700;
}

.mc-wait-steps li.is-active {
	color: var(--mc-cream);
	font-weight: 600;
}

.mc-wait-steps li.is-active::before {
	border-color: var(--mc-amber);
	color: var(--mc-amber);
	animation: mc-pulse 1.4s ease-in-out infinite;
}

.mc-wait-steps li.is-done {
	color: var(--mc-muted);
}

.mc-wait-steps li.is-done::before {
	content: "✓";
	border-color: transparent;
	color: var(--mc-ink);
	background: var(--mc-sunset);
}

@keyframes mc-pulse {
	50% { box-shadow: 0 0 0 6px rgba(248, 196, 123, 0.18); }
}

.mc-wait-msg {
	min-height: 1.5em;
	margin: 18px 0 0;
	font-size: 1rem;
	color: var(--mc-amber);
}

/* ---------- Résultat ---------- */
.mc-result {
	text-align: center;
}

.mc-result-img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 16px;
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 40px rgba(236, 106, 76, 0.2);
	-webkit-user-select: none;
	user-select: none;
}

.mc-result-title {
	margin: 0 0 14px;
	font-family: var(--mc-font-display);
	font-size: 1.5rem;
	text-transform: uppercase;
}

.mc-result-sub {
	margin: -6px 0 12px;
	color: var(--mc-muted);
}

/* Offres : numérique, poster, puzzle. */
.mc-offers {
	display: grid;
	gap: 10px;
	text-align: left;
}

.mc-app a.mc-offer {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 12px 14px;
	border: 1px solid var(--mc-line);
	border-radius: 14px;
	background: var(--mc-night);
	color: var(--mc-cream);
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.mc-app a.mc-offer:hover,
.mc-app a.mc-offer:focus-visible {
	border-color: var(--mc-amber);
	box-shadow: 0 8px 22px rgba(236, 106, 76, 0.25);
	transform: translateY(-1px);
	outline: none;
}

.mc-app a.mc-offer.is-featured {
	border-color: rgba(248, 196, 123, 0.6);
	background: linear-gradient(135deg, rgba(248, 196, 123, 0.12), rgba(236, 106, 76, 0.1)), var(--mc-night);
}

.mc-offer-badge {
	justify-self: start;
	margin-bottom: 2px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mc-ink);
	background: var(--mc-amber);
}

.mc-offer-delivery {
	font-size: 0.8rem;
	color: var(--mc-muted);
}

.mc-offer-delivery.is-free {
	justify-self: start;
	margin-top: 2px;
	padding: 2px 8px;
	border: 1px solid rgba(248, 196, 123, 0.6);
	border-radius: 999px;
	font-weight: 700;
	color: var(--mc-amber);
}

.mc-offer-saving {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--mc-amber);
}

.mc-offer-text {
	flex: 1;
	display: grid;
	gap: 2px;
}

.mc-offer-text strong {
	font-family: var(--mc-font-display);
	font-weight: 400;
	font-size: 1rem;
	text-transform: uppercase;
}

.mc-offer-text small {
	font-size: 0.84rem;
	line-height: 1.35;
	color: var(--mc-muted);
}

.mc-offer-price {
	flex: 0 0 auto;
	padding: 8px 12px;
	border-radius: 10px;
	font-family: var(--mc-font-display);
	font-size: 1rem;
	color: var(--mc-ink);
	background: linear-gradient(90deg, var(--mc-amber), var(--mc-coral));
}

.mc-notice {
	text-align: center;
}

.mc-notice p {
	margin: 0 0 16px;
}

/* ---------- Garanties + pied ---------- */
.mc-trust {
	padding: 8px 16px 36px;
}

.mc-trust ul {
	display: grid;
	gap: 10px;
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.mc-trust li {
	padding: 14px 16px;
	border-left: 3px solid var(--mc-coral);
	border-radius: 4px 12px 12px 4px;
	background: var(--mc-night);
}

.mc-trust strong {
	display: block;
	font-family: var(--mc-font-display);
	font-weight: 400;
	font-size: 0.95rem;
	text-transform: uppercase;
}

.mc-trust span {
	font-size: 0.9rem;
	color: var(--mc-muted);
}

.mc-foot {
	padding: 24px 16px 40px;
	border-top: 1px solid var(--mc-line);
	font-size: 0.85rem;
	text-align: center;
	color: var(--mc-muted);
}

.mc-foot p {
	margin: 4px 0;
}

.mc-foot-brand {
	font-family: var(--mc-font-display);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mc-cream);
}

.mc-app .mc-foot-brand a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Grand format (bloc d'au moins 760 px de large) ---------- */
@container (min-width: 760px) {
	.mc-hero {
		flex-direction: row;
		justify-content: center;
		gap: 56px;
		min-height: 88vh;
		padding: 72px 40px 64px;
		text-align: left;
		background:
			linear-gradient(180deg, rgba(13, 11, 18, 0) 50%, rgba(13, 11, 18, 0.6) 80%, var(--mc-ink) 100%),
			var(--mc-hero-img) center bottom / cover no-repeat,
			var(--mc-dusk);
	}

	.mc-hero-cta,
	.mc-hero-inner .mc-btn {
		margin: 0;
	}

	.mc-hero {
		align-items: center;
	}

	.mc-hero-inner {
		flex: 0 1 520px;
	}

	.mc-examples {
		display: grid;
		grid-template-columns: repeat(2, 180px);
		gap: 16px 18px;
		width: auto;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.mc-example {
		max-width: none;
	}

	.mc-example:nth-child(odd) { transform: rotate(-2deg); }
	.mc-example:nth-child(even) { transform: rotate(2deg) translateY(18px); }

	.mc-steps ol,
	.mc-trust ul {
		grid-template-columns: repeat(3, 1fr);
	}

	.mc-panel {
		padding: 22px;
	}
}

/* =====================================================================
 * Pages boutique : panier, paiement, confirmation, mon compte.
 * Les blocs WooCommerce sont « repeints » aux couleurs du site.
 * ===================================================================== */
.mc-shop {
	min-height: 100vh;
	overflow: visible;
	background:
		radial-gradient(120% 40% at 50% 0%, rgba(236, 106, 76, 0.22), transparent 60%),
		linear-gradient(180deg, #2a1730 0%, var(--mc-ink) 320px);
}

.mc-shop::after {
	position: fixed;
}

.mc-shop-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 18px 16px;
}

.mc-app .mc-shop-brand {
	font-family: var(--mc-font-display);
	font-size: 1.15rem;
	text-decoration: none;
	text-transform: uppercase;
	background: var(--mc-sunset);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.mc-shop-secure {
	font-size: 0.8rem;
	color: var(--mc-muted);
}

.mc-shop-secure::before {
	content: "🔒 ";
}

.mc-shop-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 8px 16px 48px;
}

.mc-shop-title {
	margin-top: 8px;
}

/* Textes et liens */
.mc-shop,
.mc-shop .wc-block-components-title,
.mc-shop .wc-block-components-checkout-step__title,
.mc-shop .wc-block-components-totals-item__label,
.mc-shop .wc-block-components-product-name,
.mc-shop h2,
.mc-shop h3,
.mc-shop legend {
	color: var(--mc-cream) !important;
}

.mc-shop .wc-block-components-checkout-step__title,
.mc-shop .wc-block-components-title,
.mc-shop .woocommerce h2,
.mc-shop .woocommerce h3 {
	font-family: var(--mc-font-display) !important;
	font-weight: 400 !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.mc-shop .wc-block-components-checkout-step__description,
.mc-shop .wc-block-components-product-metadata,
.mc-shop .wc-block-components-totals-item__description,
.mc-shop small,
.mc-shop .woocommerce-privacy-policy-text {
	color: var(--mc-muted) !important;
}

.mc-shop a {
	color: var(--mc-amber);
}

/* Cartes et blocs */
.mc-shop .wc-block-components-sidebar,
.mc-shop .wp-block-woocommerce-checkout-order-summary-block,
.mc-shop .wc-block-components-checkout-step,
.mc-shop .wc-block-cart__main,
.mc-shop .woocommerce-order,
.mc-shop .woocommerce-MyAccount-content,
.mc-shop .woocommerce form.checkout,
.mc-shop .woocommerce-cart-form {
	border-radius: 16px;
}

.mc-shop .wp-block-woocommerce-checkout-order-summary-block,
.mc-shop .wc-block-cart .wc-block-components-sidebar,
.mc-shop .woocommerce-order,
.mc-shop .woocommerce-MyAccount-content {
	padding: 16px !important;
	border: 1px solid var(--mc-line) !important;
	background: var(--mc-panel) !important;
}

.mc-shop .wc-block-components-totals-wrapper,
.mc-shop .wc-block-components-order-summary-item,
.mc-shop .wc-block-cart-items td,
.mc-shop .wc-block-cart-items th,
.mc-shop table,
.mc-shop table td,
.mc-shop table th {
	border-color: var(--mc-line) !important;
}

/* Champs de saisie */
.mc-shop input[type="text"],
.mc-shop input[type="email"],
.mc-shop input[type="tel"],
.mc-shop input[type="password"],
.mc-shop input[type="number"],
.mc-shop select,
.mc-shop textarea,
.mc-shop .wc-block-components-text-input input,
.mc-shop .wc-blocks-components-select__select,
.mc-shop .wc-block-components-combobox .components-combobox-control__input {
	min-height: 48px;
	border: 1px solid var(--mc-line) !important;
	border-radius: 10px !important;
	background: rgba(13, 11, 18, 0.6) !important;
	color: var(--mc-cream) !important;
	font-size: 16px !important; /* Évite le zoom automatique sur iPhone. */
}

.mc-shop input:focus,
.mc-shop select:focus,
.mc-shop textarea:focus {
	border-color: var(--mc-amber) !important;
	box-shadow: 0 0 0 3px rgba(248, 196, 123, 0.22) !important;
	outline: none !important;
}

.mc-shop .wc-block-components-text-input label,
.mc-shop .wc-blocks-components-select__label,
.mc-shop .wc-block-components-combobox label,
.mc-shop .woocommerce form .form-row label {
	color: var(--mc-muted) !important;
}

.mc-shop .wc-blocks-components-select__container,
.mc-shop .wc-block-components-combobox-control {
	background: transparent !important;
}

/* Choix (paiement, livraison) */
.mc-shop .wc-block-components-radio-control__option,
.mc-shop .wc-block-components-radio-control-accordion-option {
	border-color: var(--mc-line) !important;
	color: var(--mc-cream) !important;
}

.mc-shop .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.mc-shop .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--mc-amber) !important;
}

.mc-shop .wc-block-components-radio-control__input,
.mc-shop .wc-block-components-checkbox__input {
	border-color: var(--mc-muted) !important;
	background: transparent !important;
}

.mc-shop .wc-block-components-radio-control__input:checked::before {
	background: var(--mc-amber) !important;
}

.mc-shop .wc-block-components-checkbox__mark {
	fill: var(--mc-amber) !important;
}

/* Boutons */
.mc-shop .wc-block-components-button:not(.is-link),
.mc-shop .wc-block-cart__submit-button,
.mc-shop .wc-block-components-checkout-place-order-button,
.mc-shop .woocommerce .button,
.mc-shop .mc-downloads .button,
.mc-shop #place_order {
	min-height: 54px;
	border: 0 !important;
	border-radius: 14px !important;
	background: linear-gradient(90deg, var(--mc-amber), var(--mc-coral)) !important;
	color: var(--mc-ink) !important;
	font-family: var(--mc-font-display) !important;
	font-size: 1.05rem !important;
	text-transform: uppercase;
	box-shadow: 0 10px 28px rgba(236, 106, 76, 0.4);
}

.mc-shop .wc-block-components-button:not(.is-link):hover,
.mc-shop .wc-block-components-checkout-place-order-button:hover {
	transform: translateY(-1px);
}

.mc-shop .wc-block-components-button.is-link,
.mc-shop .wc-block-components-checkout-return-to-cart-button {
	color: var(--mc-amber) !important;
}

/* Retirer un article / vider le panier : liens bien visibles. */
.mc-shop .wc-block-cart-item__remove-link {
	color: var(--mc-amber) !important;
	text-decoration: underline !important;
	font-size: 0.85rem !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.mc-app .mc-empty-cart {
	margin: 8px 0 24px;
	text-align: center;
}

.mc-app .mc-empty-cart a {
	color: var(--mc-amber);
	text-decoration: underline;
	font-size: 0.9rem;
}

/* Totaux */
.mc-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.mc-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--mc-font-display);
	font-size: 1.2rem;
	color: var(--mc-amber) !important;
}

/* Miniature du visuel dans le récapitulatif */
.mc-shop .wc-block-components-order-summary-item__image img,
.mc-shop .wc-block-cart-item__image img {
	border-radius: 6px;
}

/* Messages */
.mc-shop .wc-block-components-notice-banner,
.mc-shop .woocommerce-message,
.mc-shop .woocommerce-info,
.mc-shop .woocommerce-error {
	border-radius: 12px !important;
	background: var(--mc-night) !important;
	color: var(--mc-cream) !important;
}

/* Confirmation de commande : bloc des téléchargements HD */
.mc-shop .mc-downloads {
	margin: 24px 0;
	padding: 18px;
	border: 1px solid rgba(248, 196, 123, 0.5);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(248, 196, 123, 0.12), rgba(236, 106, 76, 0.1));
}

.mc-shop .mc-downloads h2 {
	margin: 0 0 12px;
	font-family: var(--mc-font-display) !important;
	font-weight: 400 !important;
	text-transform: uppercase;
}

.mc-shop .mc-downloads-item + .mc-downloads-item {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--mc-line);
}

.mc-shop .mc-downloads-name {
	margin: 0;
}

/* Boutons de téléchargement aérés : côte à côte sur grand écran, l'un sous l'autre sur mobile. */
.mc-shop .mc-downloads-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 16px 0 12px;
}

.mc-shop .mc-downloads-actions .mc-dl-btn {
	flex: 1 1 240px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px !important;
	text-align: center;
	text-decoration: none;
	line-height: 1.3;
}

.mc-shop .mc-downloads-exp {
	margin: 0;
}

/* Une seule police pour le texte des pages boutique (celle du site), titres et boutons à part.
 * Les adresses de facturation / livraison gardent leur police d'origine (choix de l'utilisateur). */
.mc-shop .mc-shop-main :not(h1, h1 *, h2, h2 *, h3, h3 *, address, address *, .wc-block-components-address-card, .wc-block-components-address-card *, .wc-block-order-confirmation-address-wrapper *, .button, .button *, .wc-block-components-button, .wc-block-components-button *, .wc-block-components-checkout-place-order-button *, .wc-block-components-totals-footer-item *) {
	font-family: var(--mc-font-body);
}

/* Note de commande retirée (sécurité si le bloc s'affiche malgré tout). */
.mc-shop .wp-block-woocommerce-checkout-order-note-block,
.mc-shop .wc-block-checkout__add-note,
.mc-shop #order_comments_field {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.mc-bar span,
	.mc-wait-steps li.is-active::before { animation: none; }
	.mc-amb,
	.mc-app .mc-btn { transition: none; }
}
