/* Mosaïque – Espace vidéos
 * Personnalisation : surcharger les variables dans le style.css du thème enfant, ex.
 * .woocommerce-account { --mev-accent: #b5838d; }
 */
.woocommerce-account {
	--mev-accent: currentColor;
	--mev-rayon: 10px;
	--mev-ombre: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .06);
	--mev-espace: clamp(16px, 2.5vw, 28px);
}

.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }

/* ---------- Grille ---------- */
.mev-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--mev-espace);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mev-carte { margin: 0; }

.mev-carte__lien {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--mev-rayon);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--mev-ombre);
	color: inherit;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.mev-carte__lien:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(0, 0, 0, .12); }
.mev-carte__lien:focus-visible { outline: 3px solid var(--mev-accent); outline-offset: 3px; }

.mev-carte__visuel { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f2f2; }
.mev-carte__visuel img,
.mev-carte__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mev-carte__lien:hover .mev-carte__img { transform: scale(1.04); }

.mev-carte__corps { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.mev-carte__titre { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mev-carte__nombre { font-size: .875em; opacity: .75; }

.mev-vide { text-align: center; padding: var(--mev-espace) 0; }

/* ---------- Page d'un pack ---------- */
.mev-retour { margin-bottom: 12px; }
.mev-retour a { text-decoration: none; }
.mev-retour a:hover, .mev-retour a:focus-visible { text-decoration: underline; }

.mev-pack__titre { margin: 0 0 var(--mev-espace); }

.mev-pack { display: grid; gap: calc(var(--mev-espace) * 1.4); }
.mev-video__titre { margin: 0 0 10px; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.3; }

.mev-media { position: relative; width: 100%; border-radius: var(--mev-rayon); overflow: hidden; background: #000; }
.mev-media iframe,
.mev-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

@supports not (aspect-ratio: 16 / 9) {
	.mev-media { padding-top: 56.25%; }
	.mev-media iframe, .mev-media video { position: absolute; inset: 0; height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.mev-carte__lien, .mev-carte__img { transition: none; }
	.mev-carte__lien:hover { transform: none; }
	.mev-carte__lien:hover .mev-carte__img { transform: none; }
}
