/* maVitamine — "Nos vidéos" (2026-11-19). Dark band in both themes, green/orange accents. */
.mv-videos {
	--mv-v-green: #1FA74A;
	--mv-v-orange: #F7A21B;
	--mv-v-bg: oklch(0.17 0.04 238);
	--mv-v-card: oklch(0.22 0.045 238);
	--mv-v-line: oklch(1 0 0 / 0.1);
	--mv-v-text: oklch(0.97 0.006 145);
	--mv-v-muted: oklch(0.8 0.02 220);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(56px, 6vw, 104px);
	background:
		radial-gradient(60% 70% at 12% 45%, color-mix(in srgb, var(--mv-v-green) 26%, transparent), transparent 70%),
		radial-gradient(40% 50% at 30% 85%, color-mix(in srgb, var(--mv-v-orange) 16%, transparent), transparent 70%),
		var(--mv-v-bg);
	color: var(--mv-v-text);
}
.mv-videos::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(oklch(1 0 0 / 0.05) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
	pointer-events: none;
}
.mv-videos__shell {
	display: grid;
	grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 88px);
	align-items: center;
}

/* Phone */
.mv-videos__stage { position: relative; display: grid; place-items: center; }
.mv-videos__stage::before {
	content: "";
	position: absolute;
	width: 120%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: conic-gradient(from 200deg, color-mix(in srgb, var(--mv-v-green) 55%, transparent), color-mix(in srgb, var(--mv-v-orange) 45%, transparent), color-mix(in srgb, var(--mv-v-green) 55%, transparent));
	filter: blur(70px);
	opacity: 0.45;
	z-index: -1;
	animation: mv-v-halo 14s linear infinite;
}
@keyframes mv-v-halo { to { transform: rotate(360deg); } }
.mv-phone {
	position: relative;
	width: 100%;
	padding: 10px;
	border-radius: 46px;
	background: linear-gradient(145deg, oklch(0.36 0.02 238), oklch(0.12 0.02 238) 55%, oklch(0.3 0.02 238));
	box-shadow: 0 40px 90px oklch(0 0 0 / 0.55), inset 0 0 0 1px oklch(1 0 0 / 0.14), inset 0 0 0 3px oklch(0 0 0 / 0.5);
	transform: perspective(1200px) rotateY(8deg) rotateX(2deg);
	transition: transform var(--mv-dur-slow) var(--mv-ease);
}
.mv-phone:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mv-phone__screen {
	position: relative;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 36px;
	background: #000;
}
.mv-phone__screen::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 50%;
	z-index: 3;
	width: 30%;
	height: 22px;
	border-radius: 999px;
	background: #000;
	transform: translateX(-50%);
}
.mv-phone__poster, .mv-phone__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-phone__video { opacity: 0; transition: opacity 500ms ease; }
.mv-phone__video.is-on { opacity: 1; }
.mv-phone__shine {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(115deg, oklch(1 0 0 / 0.16) 0%, transparent 28%, transparent 70%, oklch(1 0 0 / 0.05));
	pointer-events: none;
}
.mv-phone__meta {
	position: absolute;
	inset: auto 0 0;
	z-index: 3;
	display: grid;
	gap: 8px;
	justify-items: start;
	padding: 56px 18px 20px;
	background: linear-gradient(transparent, oklch(0 0 0 / 0.78));
	font-size: 0.98rem;
	line-height: 1.25;
	pointer-events: none;
}
.mv-phone__open { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; }
.mv-phone__open:focus-visible { outline: 3px solid var(--mv-v-orange); outline-offset: -6px; border-radius: 36px; }
.mv-phone__sound {
	position: absolute;
	top: 44px;
	right: 14px;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid oklch(1 0 0 / 0.25);
	border-radius: 50%;
	background: oklch(0 0 0 / 0.45);
	color: #fff;
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: background-color var(--mv-dur) var(--mv-ease), transform var(--mv-dur) var(--mv-ease);
}
.mv-phone__sound:hover { background: var(--mv-v-green); transform: scale(1.06); }
.mv-phone__sound .is-on, .mv-phone__sound[aria-pressed="true"] .is-off { display: none; }
.mv-phone__sound[aria-pressed="true"] .is-on { display: block; }

.mv-vbadge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--mv-v-orange);
	color: oklch(0.2 0.04 60);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
}

/* Copy */
.mv-videos__copy { min-width: 0; }
.mv-videos__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--mv-v-muted);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.mv-videos__new {
	position: relative;
	padding: 4px 10px 4px 22px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--mv-v-green) 22%, transparent);
	color: oklch(0.86 0.13 150);
	letter-spacing: 0.04em;
}
.mv-videos__new::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 9px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mv-v-green);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--mv-v-green) 70%, transparent);
	transform: translateY(-50%);
	animation: mv-v-pulse 2s ease-out infinite;
}
@keyframes mv-v-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.mv-videos__title {
	margin: 0 0 14px;
	color: var(--mv-v-text);
	font-size: clamp(1.9rem, 3.4vw, 3rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
}
.mv-videos__title span { color: var(--mv-v-orange); }
.mv-videos__lead { max-width: 56ch; margin: 0 0 clamp(24px, 3vw, 36px); color: var(--mv-v-muted); font-size: 1.06rem; line-height: 1.55; }

/* Rail */
.mv-videos__rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(150px, 15vw, 196px);
	gap: 16px;
	margin: 0 calc(var(--mv-gutter) * -1) 0 0;
	padding: 6px var(--mv-gutter) 18px 6px;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 6px;
	scrollbar-width: thin;
	scrollbar-color: oklch(1 0 0 / 0.25) transparent;
}
.mv-vcard { scroll-snap-align: start; min-width: 0; }
.mv-vcard--feat-mobile { display: none; }
.mv-vcard__btn {
	display: grid;
	gap: 10px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mv-v-text);
	text-align: left;
	cursor: pointer;
}
.mv-vcard__media {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 18px;
	background: var(--mv-v-card);
	box-shadow: 0 14px 34px oklch(0 0 0 / 0.38), inset 0 0 0 1px var(--mv-v-line);
	transition: transform var(--mv-dur-slow) var(--mv-ease), box-shadow var(--mv-dur) var(--mv-ease);
}
.mv-vcard__media img, .mv-vcard__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--mv-dur-slow) var(--mv-ease), opacity 400ms ease; }
.mv-vcard__preview { opacity: 0; }
.mv-vcard__preview.is-on { opacity: 1; }
.mv-vcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0 0 0 / 0.3), transparent 26%, transparent 60%, oklch(0 0 0 / 0.55)); pointer-events: none; }
.mv-vcard__num, .mv-vcard__dur { position: absolute; top: 10px; z-index: 1; }
.mv-vcard__num { left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--mv-v-orange); color: oklch(0.2 0.04 60); font-size: 0.74rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mv-vcard__dur { right: 10px; padding: 3px 8px; border-radius: 999px; background: oklch(0 0 0 / 0.55); color: #fff; font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.mv-vcard__play {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mv-v-green);
	color: #fff;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--mv-v-green) 45%, transparent);
	transition: transform var(--mv-dur) var(--mv-ease);
}
.mv-vcard__title { font-size: 0.92rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mv-vcard__btn:hover .mv-vcard__media, .mv-vcard__btn:focus-visible .mv-vcard__media {
	transform: translateY(-6px);
	box-shadow: 0 22px 46px oklch(0 0 0 / 0.5), 0 0 0 2px var(--mv-v-green), 0 0 40px color-mix(in srgb, var(--mv-v-green) 35%, transparent);
}
.mv-vcard__btn:hover .mv-vcard__media img, .mv-vcard__btn:hover .mv-vcard__preview { transform: scale(1.05); }
.mv-vcard__btn:hover .mv-vcard__play { transform: scale(1.12); }
.mv-vcard__btn:focus-visible { outline: none; }

/* Actions */
.mv-videos__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.mv-videos__all { background: var(--mv-v-green); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--mv-v-green) 35%, transparent); }
.mv-videos__all:hover { background: color-mix(in srgb, var(--mv-v-green) 88%, black); color: #fff; }
.mv-videos__social { display: inline-flex; align-items: center; gap: 8px; color: var(--mv-v-text); font-weight: 700; font-size: 0.92rem; text-decoration: none; opacity: 0.9; transition: color var(--mv-dur) var(--mv-ease), opacity var(--mv-dur) var(--mv-ease); }
.mv-videos__social:hover { color: var(--mv-v-orange); opacity: 1; }

/* /videos/ page: full grid */
.mv-videos--page .mv-videos__shell { align-items: start; }
.mv-videos--page .mv-videos__stage { position: sticky; top: 110px; }
.mv-videos--page .mv-videos__rail {
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	grid-auto-columns: auto;
	gap: 26px 18px;
	margin: 0;
	padding: 6px 0 0;
	overflow: visible;
}

/* Stories player */
.mv-story {
	--mv-v-green: #1FA74A;
	--mv-v-orange: #F7A21B;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	background: oklch(0.1 0.02 238 / 0.94);
	backdrop-filter: blur(14px);
	animation: mv-v-in 260ms var(--mv-ease);
}
.mv-story[hidden] { display: none; }
@keyframes mv-v-in { from { opacity: 0; } }
.mv-story__frame {
	position: relative;
	height: min(92vh, 860px);
	aspect-ratio: 9 / 16;
	max-width: 100vw;
	overflow: hidden;
	border-radius: 24px;
	background: #000;
	box-shadow: 0 30px 80px oklch(0 0 0 / 0.6);
	touch-action: pan-y;
}
.mv-story__video { width: 100%; height: 100%; object-fit: cover; }
.mv-story__bars { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; gap: 4px; }
.mv-story__bar { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: oklch(1 0 0 / 0.3); }
.mv-story__bar i { display: block; width: 0; height: 100%; background: #fff; }
.mv-story__bar.is-done i { width: 100%; }
.mv-story__info {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	display: grid;
	gap: 8px;
	justify-items: start;
	padding: 70px 20px 22px;
	background: linear-gradient(transparent, oklch(0 0 0 / 0.8));
	color: #fff;
	pointer-events: none;
}
.mv-story__links { display: flex; gap: 16px; pointer-events: auto; }
.mv-story__links a { color: #fff; font-size: 0.88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mv-story__links a:hover { color: var(--mv-v-orange, #F7A21B); }
.mv-story__links a[hidden] { display: none; }
.mv-story__nav, .mv-story__close {
	position: absolute;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid oklch(1 0 0 / 0.2);
	border-radius: 50%;
	background: oklch(0 0 0 / 0.4);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(8px);
}
.mv-story__nav:hover, .mv-story__close:hover { background: #1FA74A; }
.mv-story__nav { top: 50%; transform: translateY(-50%); }
.mv-story__nav--prev { left: 10px; }
.mv-story__nav--next { right: 10px; }
.mv-story__close { top: 18px; right: 18px; }
.mv-story :focus-visible { outline: 3px solid #F7A21B; outline-offset: 2px; }
body.mv-story-open { overflow: hidden; }

/* Responsive */
@media (max-width: 980px) {
	.mv-videos__shell { grid-template-columns: 1fr; }
	.mv-videos--home .mv-videos__stage { display: none; }
	.mv-videos--home .mv-vcard--feat-mobile { display: block; }
	.mv-videos__copy { order: -1; }
	.mv-videos--page .mv-videos__stage { position: relative; top: auto; max-width: 300px; margin-inline: auto; }
}
@media (max-width: 560px) {
	.mv-videos__rail { grid-auto-columns: 62vw; gap: 14px; }
	.mv-videos--page .mv-videos__rail { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
	.mv-videos__actions { flex-direction: column; align-items: stretch; }
	.mv-videos__all { justify-content: center; }
	.mv-videos__social { justify-content: center; }
	.mv-story__frame { height: 100dvh; max-width: 100vw; border-radius: 0; aspect-ratio: auto; width: 100vw; }
	.mv-story__close { top: 26px; right: 12px; }
	.mv-story__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mv-videos__stage::before, .mv-videos__new::before { animation: none; }
	.mv-phone, .mv-phone:hover { transform: none; transition: none; }
	.mv-vcard__media, .mv-vcard__media img, .mv-vcard__preview { transition: none; }
	.mv-vcard__btn:hover .mv-vcard__media, .mv-vcard__btn:hover .mv-vcard__media img { transform: none; }
	.mv-story { animation: none; }
}
