/* Modale YouTube – liens avec class="modal_yt" */

.modal_yt-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.modal_yt-overlay.is-open {
	display: flex;
}

.modal_yt-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.modal_yt-container {
	position: relative;
	width: 100%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	background: #000;
	z-index: 1;
}

.modal_yt-close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	background: #fff;
	color: #000;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.modal_yt-close:hover {
	background: #eee;
}

.modal_yt-iframe-wrap {
	position: absolute;
	inset: 0;
}

.modal_yt-iframe-wrap iframe {
	width: 100%;
	height: 100%;
}
