/* Tunnel Magie de Noël — layout dédié */

.mngv-tunnel-body,
body.mngv-is-tunnel {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(ellipse 80% 50% at 100% 0%, rgba(200, 16, 46, 0.06), transparent 55%),
		radial-gradient(ellipse 70% 45% at 0% 100%, rgba(31, 107, 74, 0.08), transparent 50%),
		#f4f7f5;
	color: #1c2420;
	font-family: "DM Sans", "Segoe UI", sans-serif;
}

.mngv-tunnel-body .gv-header,
.mngv-tunnel-body .gv-footer,
body.mngv-is-tunnel .gv-header,
body.mngv-is-tunnel .gv-footer {
	display: none !important;
}

.mngv-tunnel-bar {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid rgba(28, 36, 32, 0.08);
}

.mngv-tunnel-bar__inner {
	max-width: 44rem;
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.mngv-tunnel-brand {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.mngv-tunnel-brand__name {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: min(55vw, 18rem);
}

.mngv-tunnel-brand__tag {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1f6b4a;
}

.mngv-tunnel-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	flex-shrink: 0;
}

.mngv-tunnel-cancel {
	flex-shrink: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: #5c6b63;
	text-decoration: none;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(28, 36, 32, 0.12);
	background: #fff;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.mngv-tunnel-cancel:hover {
	color: #c8102e;
	border-color: rgba(200, 16, 46, 0.35);
}

.mngv-tunnel {
	padding: 1.5rem 1rem 2rem;
}

.mngv-tunnel__shell {
	max-width: 28rem;
	margin: 0 auto;
}

.mngv-steps {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.35rem;
}

.mngv-steps li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	text-align: center;
	opacity: 0.45;
}

.mngv-steps li.is-current,
.mngv-steps li.is-done {
	opacity: 1;
}

.mngv-steps__n {
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: "Fraunces", Georgia, serif;
	font-weight: 650;
	font-size: 0.95rem;
	background: #fff;
	border: 1px solid rgba(28, 36, 32, 0.12);
	color: #5c6b63;
}

.mngv-steps li.is-current .mngv-steps__n {
	background: #155338;
	border-color: #155338;
	color: #fff;
}

.mngv-steps li.is-done .mngv-steps__n {
	background: rgba(31, 107, 74, 0.12);
	border-color: #1f6b4a;
	color: #155338;
}

.mngv-steps__l {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5c6b63;
}

.mngv-tunnel-foot {
	margin: 0;
	padding: 0 1rem 2rem;
	text-align: center;
	font-size: 0.78rem;
	color: #5c6b63;
}

.mngv-card {
	background: #fff;
	border: 1px solid rgba(28, 36, 32, 0.1);
	border-radius: 1.25rem;
	padding: 1.5rem 1.35rem 1.6rem;
	box-shadow: 0 16px 40px rgba(28, 36, 32, 0.06);
}

.mngv-card--center {
	text-align: center;
}

.mngv-kicker {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1f6b4a;
}

.mngv-title {
	margin: 0 0 0.55rem;
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(1.65rem, 4vw, 2rem);
	font-weight: 600;
	line-height: 1.15;
	color: #1c2420;
}

.mngv-subtitle {
	margin: 1.75rem 0 0.85rem;
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.25rem;
	font-weight: 600;
}

.mngv-lead {
	margin: 0 0 1.25rem;
	color: #5c6b63;
	font-size: 1.02rem;
	line-height: 1.5;
}

.mngv-lead--sm {
	font-size: 0.92rem;
	margin-bottom: 1rem;
}

.mngv-form {
	display: grid;
	gap: 0.9rem;
}

.mngv-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.mngv-form label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #1c2420;
}

.mngv-form input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.78rem 0.9rem;
	border: 1px solid rgba(28, 36, 32, 0.14);
	border-radius: 0.8rem;
	font: inherit;
	background: #fafbfa;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mngv-form input:focus {
	outline: none;
	border-color: #1f6b4a;
	box-shadow: 0 0 0 3px rgba(31, 107, 74, 0.15);
	background: #fff;
}

.mngv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.85rem 1.25rem;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.mngv-btn:hover {
	transform: translateY(-1px);
}

.mngv-btn--block {
	width: 100%;
}

.mngv-btn--primary {
	background: #c8102e;
	color: #fff !important;
}

.mngv-btn--primary:hover {
	background: #a00d25;
}

.mngv-btn--primary:disabled {
	opacity: 0.55;
	cursor: wait;
	transform: none;
}

.mngv-btn--ghost {
	background: #fff;
	border-color: rgba(28, 36, 32, 0.14);
	color: #1c2420 !important;
}

.mngv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
	margin-top: 0.5rem;
}

.mngv-switch {
	margin: 1.15rem 0 0;
	text-align: center;
	font-size: 0.92rem;
	color: #5c6b63;
}

.mngv-switch a {
	color: #155338;
	font-weight: 700;
	text-decoration: none;
}

.mngv-muted {
	color: #5c6b63;
	font-size: 0.9rem;
}

.mngv-alert {
	padding: 0.8rem 1rem;
	border-radius: 0.85rem;
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

.mngv-alert--ok {
	background: rgba(31, 107, 74, 0.1);
	color: #155338;
}

.mngv-alert--err {
	background: rgba(200, 16, 46, 0.08);
	color: #a00d25;
}

.mngv-badge {
	display: inline-flex;
	margin: 0 0 1rem;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: #f4f7f5;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1f6b4a;
}

.mngv-deal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.55rem 0.75rem;
	margin: 0 0 1.25rem;
	padding: 1.1rem 0.9rem;
	background: linear-gradient(160deg, #f4f7f5, #fff);
	border: 1px solid rgba(28, 36, 32, 0.08);
	border-radius: 1rem;
	text-align: center;
}

.mngv-deal strong {
	display: block;
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.55rem;
	color: #155338;
}

.mngv-deal__gift {
	color: #c8102e !important;
}

.mngv-deal span {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5c6b63;
}

.mngv-deal__plus,
.mngv-deal__eq {
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.2rem;
	color: #5c6b63;
}

.mngv-stripe {
	margin: 0 0 1rem;
	min-height: 3.5rem;
	padding: 0.25rem 0;
}

.mngv-wait-hint {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #5c6b63;
}

.mngv-wait .mngv-lead {
	margin-bottom: 0.65rem;
	font-weight: 600;
	color: #1c2420;
}

.mngv-spinner {
	display: grid;
	place-items: center;
	margin: 0.5rem auto 1.35rem;
	width: 3.25rem;
	height: 3.25rem;
}

.mngv-spinner__ring {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: 3px solid rgba(31, 107, 74, 0.15);
	border-top-color: #1f6b4a;
	animation: mngv-spin 0.85s linear infinite;
}

.mngv-wait--done .mngv-spinner__ring {
	animation: none;
	border-color: #1f6b4a;
	background: rgba(31, 107, 74, 0.12);
	position: relative;
}

.mngv-wait--done .mngv-spinner__ring::after {
	content: "";
	position: absolute;
	inset: 0.55rem 0.75rem 0.7rem 0.55rem;
	border: solid #155338;
	border-width: 0 0 3px 3px;
	transform: rotate(-45deg);
}

@keyframes mngv-spin {
	to {
		transform: rotate(360deg);
	}
}

.mngv-inline-form {
	margin: 0 0 1rem;
}

.mngv-verify-done__alt {
	margin: 1.25rem 0 0;
	padding-top: 1.1rem;
	border-top: 1px solid rgba(28, 36, 32, 0.08);
	font-size: 0.95rem;
	line-height: 1.5;
	color: #5c6b63;
}

.mngv-verify-done .mngv-actions {
	margin-top: 0.25rem;
}

.mngv-voucher-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.mngv-voucher {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 1.1rem;
	border: 1px solid rgba(28, 36, 32, 0.1);
	border-radius: 1rem;
	background: #fafbfa;
}

.mngv-voucher__meta {
	display: grid;
	gap: 0.3rem;
}

.mngv-voucher__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5c6b63;
}

.mngv-voucher__meta strong,
.mngv-voucher__face {
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.85rem;
	color: #155338;
}

.mngv-voucher__code {
	font-weight: 700;
	letter-spacing: 0.06em;
	font-size: 1.15rem;
	color: #1c2420;
	word-break: break-all;
}

.mngv-voucher__qr {
	text-align: center;
}

.mngv-voucher__qr .mngv-qr {
	display: block;
	margin: 0 auto 0.35rem;
	border-radius: 0.5rem;
	box-shadow: 0 4px 16px rgba(28, 36, 32, 0.08);
}

@media (max-width: 560px) {
	.mngv-form__row {
		grid-template-columns: 1fr;
	}

	.mngv-voucher {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.mngv-tunnel-brand__name {
		max-width: 42vw;
	}
}

.mngv-check {
	display: flex !important;
	align-items: flex-start;
	gap: 0.55rem;
	font-weight: 500 !important;
	font-size: 0.9rem !important;
	color: #5c6b63;
}

.mngv-check input {
	width: auto !important;
	margin-top: 0.2rem;
}

.mngv-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
}

/* —— Dashboard commerçant —— */
.mngv-dash { width: min(920px, 100%); margin: 0 auto; }
.mngv-dash__head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
	gap: 1rem; margin-bottom: 1.15rem; text-align: left;
}
.mngv-dash__brand { flex: 1 1 16rem; }
.mngv-dash__sub { margin: 0.25rem 0 0; color: #5c6b63; font-size: 0.92rem; }
.mngv-dash__status { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.mngv-title--sm { font-size: clamp(1.55rem, 3.5vw, 2.05rem); margin: 0.15rem 0 0; }
.mngv-pill {
	display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700;
	letter-spacing: 0.04em; text-transform: uppercase; padding: 0.28rem 0.65rem;
	border-radius: 999px; border: 1px solid transparent;
}
.mngv-pill--ok { background: #e7f4ec; color: #155338; border-color: rgba(21,83,56,0.18); }
.mngv-pill--warn { background: #f8f0e6; color: #8a5a12; border-color: rgba(138,90,18,0.2); }
.mngv-tabs {
	display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-start;
	margin: 0 0 1.25rem; padding: 0.35rem; background: rgba(255,255,255,0.7);
	border-radius: 999px; border: 1px solid rgba(28,36,32,0.08);
}
.mngv-tabs__link {
	padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.84rem; font-weight: 700;
	text-decoration: none; color: #5c6b63;
}
.mngv-tabs__link.is-active { background: #1c2420; color: #fff; }
.mngv-panel {
	background: rgba(255,255,255,0.94); border-radius: 1.25rem; padding: 1.45rem 1.35rem;
	border: 1px solid rgba(28,36,32,0.08); box-shadow: 0 12px 40px rgba(28,36,32,0.06);
}
.mngv-panel--dash { display: grid; gap: 1.35rem; }
.mngv-section-title {
	font-family: Fraunces, Georgia, serif; font-size: 1.15rem; margin: 0 0 0.65rem; color: #1c2420;
}
.mngv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0; }
.mngv-stats--3 { grid-template-columns: repeat(3, 1fr); }
.mngv-stats--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
	.mngv-stats--4 { grid-template-columns: repeat(4, 1fr); }
}
.mngv-stat {
	padding: 1rem 0.95rem; border-radius: 1rem; background: #f4f7f5; text-align: left;
}
.mngv-stat--accent { background: #eef6f1; border: 1px solid rgba(21,83,56,0.14); }
.mngv-stat__label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5c6b63; }
.mngv-stat__value { display: block; font-family: Fraunces, Georgia, serif; font-size: clamp(1.25rem, 2.5vw, 1.55rem); color: #155338; margin-top: 0.2rem; }
.mngv-stat__meta { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: #5c6b63; }
.mngv-dash-hero {
	display: grid; gap: 1rem; align-items: stretch;
	padding: 1.1rem 1.15rem; border-radius: 1.1rem;
	background: linear-gradient(135deg, #f7faf8 0%, #eef4f0 55%, #f8f1ef 100%);
	border: 1px solid rgba(28,36,32,0.08);
}
@media (min-width: 700px) {
	.mngv-dash-hero { grid-template-columns: 1.4fr 1fr; }
}
.mngv-dash-hero__main { display: grid; gap: 0.85rem; align-content: center; }
.mngv-dash-hero__next {
	display: grid; gap: 0.25rem; align-content: center;
	padding: 0.9rem 1rem; border-radius: 0.95rem; background: rgba(255,255,255,0.75);
}
.mngv-dash-hero__when {
	font-family: Fraunces, Georgia, serif; font-size: 1.2rem; color: #1c2420;
}
.mngv-btn--lg { padding: 0.95rem 1.35rem; font-size: 1rem; }
.mngv-flow__steps {
	list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem;
}
@media (min-width: 700px) {
	.mngv-flow__steps { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
}
.mngv-flow__steps > li {
	display: flex; gap: 0.75rem; padding: 0.9rem; border-radius: 1rem;
	background: #fafbfa; border: 1px solid rgba(28,36,32,0.07);
}
.mngv-flow__steps p { margin: 0.25rem 0 0; font-size: 0.86rem; color: #5c6b63; line-height: 1.4; }
.mngv-flow__n {
	flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 999px;
	display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
	background: #1c2420; color: #fff;
}
.mngv-dash-grid {
	display: grid; gap: 1rem;
}
@media (min-width: 760px) {
	.mngv-dash-grid { grid-template-columns: 1.35fr 1fr; }
}
.mngv-dash-block__head {
	display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-bottom: 0.65rem;
}
.mngv-dash-block__head .mngv-section-title { margin: 0; }
.mngv-dash-block__head a { font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.mngv-quick { display: grid; gap: 0.55rem; }
.mngv-quick__link {
	display: grid; gap: 0.15rem; padding: 0.85rem 0.95rem; border-radius: 0.9rem;
	text-decoration: none; color: inherit; background: #f4f7f5; border: 1px solid rgba(28,36,32,0.07);
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.mngv-quick__link:hover { transform: translateY(-1px); border-color: rgba(21,83,56,0.28); color: inherit; }
.mngv-quick__link span { font-size: 0.82rem; color: #5c6b63; }
.mngv-callout {
	padding: 1rem 1.1rem; border-radius: 1rem; border: 1px solid transparent;
}
.mngv-callout p { margin: 0.35rem 0 0.75rem; color: #5c6b63; }
.mngv-callout--info { background: #f0f5f8; border-color: rgba(40,80,110,0.15); }
.mngv-callout--warn { background: #f8f0e6; border-color: rgba(138,90,18,0.2); }
.mngv-callout--err { background: #f8ecec; border-color: rgba(160,40,40,0.2); color: #7a1d1d; }
.mngv-dossier {
	border-top: 1px solid rgba(28,36,32,0.08); padding-top: 0.85rem;
}
.mngv-dossier summary {
	cursor: pointer; font-weight: 700; color: #5c6b63; font-size: 0.9rem;
}
.mngv-info-list { margin: 1rem 0 0; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.mngv-info-list dt { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #5c6b63; margin-top: 0.5rem; }
.mngv-info-list dd { margin: 0; color: #1c2420; }
.mngv-bank-status { font-weight: 600; color: #155338; margin: 0; }
.mngv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.mngv-list__item {
	display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
	padding: 0.85rem 0.9rem; border-radius: 0.9rem; background: #fafbfa; border: 1px solid rgba(28,36,32,0.08);
}
.mngv-list__item strong { display: block; }
.mngv-list__meta { text-align: right; font-size: 0.82rem; line-height: 1.35; }
.mngv-mono { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; opacity: 0.75; margin-top: 0.15rem; }
.mngv-badge--sm { display: inline-block; margin-left: 0.35rem; font-size: 0.7rem; padding: 0.15rem 0.5rem; }
.mngv-dash__foot {
	margin-top: 1.35rem; text-align: center; display: grid; gap: 0.45rem;
}
.mngv-dash__help { margin: 0; font-size: 0.84rem; color: #5c6b63; }
.mngv-field { display: grid; gap: 0.35rem; margin: 0.85rem 0; font-size: 0.88rem; font-weight: 600; }
.mngv-field input {
	width: 100%; box-sizing: border-box; padding: 0.78rem 0.9rem; border: 1px solid rgba(28,36,32,0.14);
	border-radius: 0.8rem; font: inherit; background: #fafbfa;
}
.mngv-qr-reader { width: 100%; max-width: 320px; margin: 0 auto 0.75rem; overflow: hidden; border-radius: 1rem; }
.mngv-scan-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.mngv-scan-preview { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(28,36,32,0.08); }
.mngv-scan-preview__line { display: flex; justify-content: space-between; margin: 0.35rem 0; }
.mngv-scan-msg { min-height: 1.4em; margin-top: 0.85rem; font-weight: 600; color: #155338; text-align: center; }
.mngv-scan-msg.is-err { color: #a11; }

@media (max-width: 640px) {
	.mngv-stats--3 { grid-template-columns: 1fr; }
	.mngv-dash__head { text-align: left; }
	.mngv-tabs { border-radius: 1rem; }
}
