/* AD Age Gate */
.adag { display: none; }

html.adag-locked,
html.adag-locked body { overflow: hidden !important; }

/* Fond posé dès le <head> : le contenu reste masqué avant même l'affichage de la fenêtre */
html.adag-locked::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: var(--adag-overlay, rgba(31, 31, 31, .95));
}

html.adag-locked .adag {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.adag__box {
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	box-sizing: border-box;
	padding: 36px 28px 28px;
	border-radius: 14px;
	background: var(--adag-box, #fff);
	color: var(--adag-text, #222);
	text-align: center;
	font-family: inherit;
	line-height: 1.5;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	animation: adag-in .35s ease-out both;
}

.adag__logo {
	display: block;
	max-width: 180px;
	max-height: 90px;
	width: auto;
	height: auto;
	margin: 0 auto 18px;
}

.adag__title {
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 12px;
}

.adag__msg,
.adag__refused {
	margin: 0 0 20px;
	font-size: 1rem;
}

.adag__question {
	margin: 0 0 14px;
	font-weight: 600;
}

.adag__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.adag__question { flex-basis: 100%; }

.adag__btn {
	flex: 1 1 160px;
	min-height: 46px;
	padding: 10px 18px;
	border-radius: 8px;
	border: 2px solid var(--adag-accent, #8a1c2b);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s, background .15s;
}

.adag__btn--yes {
	background: var(--adag-accent, #8a1c2b);
	color: #fff;
}

.adag__btn--no {
	background: transparent;
	color: var(--adag-text, #222);
	border-color: currentColor;
	opacity: .8;
}

.adag__btn:hover { filter: brightness(1.1); }
.adag__btn--no:hover { opacity: 1; }

.adag__btn:focus-visible,
.adag__refused:focus-visible {
	outline: 3px solid var(--adag-accent, #8a1c2b);
	outline-offset: 3px;
}

.adag__actions[hidden],
.adag__refused[hidden] { display: none; }

.adag__evin {
	margin: 22px 0 0;
	font-size: .8rem;
	opacity: .7;
}

@keyframes adag-in {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.adag__box { animation: none; }
}
