/**
 * Overlay de consentement RGPD pour les embeds (YouTube).
 *
 * L'overlay est inséré comme frère de l'iframe, dans .wp-block-embed__wrapper.
 * Il se superpose à la zone vidéo et disparaît une fois le consentement accordé
 * (attribut [hidden] posé par assets/js/axeptio-consent.js).
 */

/* Ancre l'overlay sur le wrapper de l'embed (sécurise les contextes hors article). */
.wp-block-embed__wrapper:has(> .lg-embed-consent) {
	position: relative;
}

.lg-embed-consent {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	text-align: center;
	color: #fff;
	background: rgba(11, 11, 12, 0.92);
}

.lg-embed-consent[hidden] {
	display: none;
}

.lg-embed-consent__inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
	max-width: 36rem;
}

.lg-embed-consent__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.lg-embed-consent__text a {
	color: #fff;
	text-decoration: underline;
}

.lg-embed-consent__btn {
	cursor: pointer;
	border: 0;
	border-radius: 999px;
	padding: 0.7rem 1.4rem;
	font-weight: 600;
	color: #0b0b0c;
	background: #fff;
	transition: opacity 0.15s ease;
}

.lg-embed-consent__btn:hover {
	opacity: 0.9;
}
