/* Zones protégées — déterrence visuelle et interaction */
.ms-protected-content,
.ms-protected-media {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
}

.ms-protected-media img,
.ms-protected-media video {
	pointer-events: auto;
	-webkit-user-drag: none;
	user-drag: none;
}

.ms-media-viewer {
	position: relative;
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
}

.ms-media-viewer img,
.ms-media-viewer video {
	display: block;
	max-width: 100%;
	height: auto;
}

.ms-watermark-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	opacity: var(--ms-watermark-opacity, 0.12);
	background-image: repeating-linear-gradient(
		-24deg,
		transparent,
		transparent 72px,
		rgba(0, 0, 0, 0.04) 72px,
		rgba(0, 0, 0, 0.04) 73px
	);
}

.ms-watermark-layer::before {
	content: attr(data-watermark);
	position: absolute;
	inset: 0;
	display: flex;
	flex-wrap: wrap;
	align-content: space-around;
	justify-content: space-around;
	gap: 2rem;
	font-size: 0.72rem;
	font-family: ui-monospace, monospace;
	color: rgba(40, 40, 40, 0.55);
	letter-spacing: 0.04em;
	transform: rotate(-18deg);
	white-space: nowrap;
	line-height: 2.4rem;
	text-align: center;
}

.ms-privacy-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: #1a1a1a;
	opacity: 0.97;
	pointer-events: none;
}

/* Bouclier noir temporaire — tentative de capture détectée (best-effort) */
.ms-capture-shield {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #000;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}
