/* Safeworlds – Sécurité */

/* ---------- Avertissement 18+ ---------- */
.sw-age-gate {
	display: none;
}

html.sw-gate-on {
	overflow: hidden;
}

html.sw-gate-on .sw-age-gate {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	overflow-y: auto;
	background: #f4f9fa;
	color: #0d0d0d;
}

.sw-age-gate__box {
	width: 100%;
	max-width: 36rem;
	text-align: center;
	font-family: var(--wp--preset--font-family--gotham, "SW Espaces", "Helvetica Neue", Arial, sans-serif);
}

.sw-age-gate__eyebrow {
	margin: 0 0 1rem;
	color: #5c162e;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.sw-age-gate h2 {
	margin: 0 0 1.25rem;
	color: #03224c;
	font-family: var(--wp--preset--font-family--libre-bodoni, Didot, serif);
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
}

.sw-age-gate p {
	margin: 0 0 1rem;
	line-height: 1.6;
}

.sw-age-gate__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2rem;
}

.sw-age-gate__enter,
.sw-age-gate__leave {
	display: inline-block;
	padding: 0.9rem 1.75rem;
	border: 2px solid #03224c;
	border-radius: 2rem;
	font: inherit;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.sw-age-gate__enter {
	background: #03224c;
	color: #f4f9fa;
}

.sw-age-gate__enter:hover {
	border-color: #5c162e;
	background: #5c162e;
	color: #f4f9fa;
}

.sw-age-gate__leave {
	background: transparent;
	color: #03224c;
}

.sw-age-gate__leave:hover {
	background: #e6edf1;
	color: #03224c;
}

.sw-age-gate :focus-visible {
	outline: 3px solid #5c162e;
	outline-offset: 3px;
}

/* ---------- Bouton « Quitter le site » ---------- */
.sw-quitter .wp-block-button__link:hover,
.sw-quitter .wp-block-button__link:focus-visible {
	background-color: #0d0d0d !important;
	color: #f4f9fa !important;
}

.sw-quitter .wp-block-button__link:focus-visible {
	outline: 3px solid #5c162e;
	outline-offset: 3px;
}

.sw-quitter .wp-block-button__link {
	white-space: nowrap;
}

/* En-tête collant au-dessus du contenu */
.sw-header {
	z-index: 50;
}

/* Texte réservé aux lecteurs d'écran */
.sw-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.sw-quitter .wp-block-button__link,
	.sw-age-gate__enter,
	.sw-age-gate__leave {
		transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	}
}
