/* Aperçu du flocage (includes/shop-maillot.php). Bebas Neue : SIL Open Font License 1.1 (fonts/OFL.txt). */
@font-face {
	font-family: "Antic Bebas";
	src: url("fonts/bebas-neue-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Antic Bebas";
	src: url("fonts/bebas-neue-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.a-flocage {
	flex: 1 1 100%;
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
}

.a-flocage__stage {
	padding: clamp(10px, 2vw, 18px);
	border: 1px solid var(--a-line, #2e2b28);
	border-radius: var(--a-radius, 6px);
	background:
		radial-gradient(ellipse 70% 60% at 50% 55%, color-mix(in srgb, var(--c-almond, #ece6de) 7%, transparent), transparent 72%),
		color-mix(in srgb, var(--a-petrol-deep, #1a1a1a) 75%, var(--c-ink, #121212));
}

.a-flocage__stage svg {
	display: block;
	width: 100%;
	max-width: 440px;
	height: auto;
	max-height: 60vh;
	margin: 0 auto;
	overflow: visible;
}

.a-flocage__caption {
	font-size: 0.85rem;
	color: var(--a-muted, #9a9187);
	text-align: center;
}

/* Aperçu posé sur la grande photo de la galerie : invisible (mais mesurable) tant que le client n'écrit pas. */
.a-flocage--over {
	position: absolute;
	z-index: 4;
	display: block;
	margin: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.a-flocage--over.is-active {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.a-flocage--over .a-flocage__stage {
	box-sizing: border-box;
	display: block;
	height: 100%;
	padding: clamp(14px, 2.5vw, 28px);
}

/* Maillot entier dans le cadre carré, centré (preserveAspectRatio par défaut du SVG). */
.a-flocage--over .a-flocage__stage svg {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
}

.a-flocage--over .a-flocage__caption {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 0.3em 0.75em;
	border-radius: var(--a-radius-sm, 4px);
	background: var(--c-ink, #121212);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-almond, #ece6de);
}

.a-flocage__close,
.a-flocage__jump {
	padding: 0.55em 1em;
	border: 1px solid var(--a-line-strong, #4a4540);
	border-radius: var(--a-radius-sm, 4px);
	background: var(--c-ink, #121212);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--c-almond, #ece6de);
	cursor: pointer;
}

.a-flocage__close {
	position: absolute;
	right: 14px;
	bottom: 14px;
}

.a-flocage__close:hover,
.a-flocage__jump:hover {
	border-color: var(--c-teal, #4fa89a);
}

.a-flocage__close:focus-visible,
.a-flocage__jump:focus-visible {
	outline: 2px solid var(--c-teal, #4fa89a);
	outline-offset: 2px;
}

.a-flocage__jump {
	justify-self: start;
}

/* Loupe de WooCommerce masquée pendant l'aperçu (elle agrandirait la photo cachée). */
.woocommerce-product-gallery.has-flocage .woocommerce-product-gallery__trigger {
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.a-flocage--over,
	.a-flocage--over.is-active {
		transition: none;
	}
}
