/* FB Contrôle de l'âge : écran plein page. Affiché seulement quand <html> porte la classe « fbag-on ». */
#fbag {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
	background: var(--fbag-overlay, rgba(0, 0, 0, .85));
	-webkit-backdrop-filter: blur(var(--fbag-blur, 8px));
	backdrop-filter: blur(var(--fbag-blur, 8px));
	box-sizing: border-box;
}
#fbag.fbag-has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--fbag-bg-image) center / cover no-repeat;
}
#fbag.fbag-has-bg { background: transparent; }
#fbag.fbag-has-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--fbag-overlay, rgba(0, 0, 0, .85));
}
html.fbag-on #fbag { display: flex; }
#fbag.fbag-leaving { opacity: 0; transition: opacity .35s ease; }

#fbag *, #fbag *::before, #fbag *::after { box-sizing: border-box; }

#fbag .fbag-dialog {
	position: relative;
	width: 100%;
	max-width: var(--fbag-width, 480px);
	margin: auto;
	padding: 40px 32px 32px;
	background: var(--fbag-card-bg, #fff);
	color: var(--fbag-color, #1f1f1f);
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	text-align: center;
	line-height: 1.5;
	outline: none;
	animation: fbag-in .35s ease both;
}
@keyframes fbag-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	#fbag .fbag-dialog { animation: none; }
	#fbag.fbag-leaving { transition: none; }
}

#fbag .fbag-logo { margin: 0 auto 20px; }
#fbag .fbag-logo img { display: block; width: var(--fbag-logo, 160px); max-width: 100%; height: auto; margin: 0 auto; }

#fbag .fbag-title {
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--wdtFontTypo_Alt, inherit);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: .04em;
	color: inherit;
}
#fbag .fbag-text { margin: 0 0 8px; font-size: 16px; }
#fbag .fbag-text p { margin: 0 0 8px; color: inherit; }
#fbag .fbag-question { margin: 0 0 20px; font-size: 18px; font-weight: 700; color: inherit; }

#fbag .fbag-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#fbag .fbag-btn {
	flex: 1 1 120px;
	max-width: 180px;
	margin: 0;
	padding: 12px 24px;
	border: 2px solid var(--fbag-btn-bg, #995C40);
	border-radius: 4px;
	background: var(--fbag-btn-bg, #995C40);
	color: var(--fbag-btn-color, #fff);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter .2s, background-color .2s, color .2s;
}
#fbag .fbag-btn.fbag-no { background: transparent; color: inherit; }
#fbag .fbag-btn:hover { filter: brightness(1.1); }
#fbag .fbag-btn.fbag-no:hover { background: var(--fbag-btn-bg, #995C40); color: var(--fbag-btn-color, #fff); filter: none; }
#fbag .fbag-btn:focus-visible,
#fbag input:focus-visible { outline: 3px solid var(--fbag-btn-bg, #995C40); outline-offset: 2px; }

#fbag .fbag-fields { display: flex; gap: 8px; justify-content: center; margin: 0 0 16px; }
#fbag .fbag-fields label { margin: 0; }
#fbag .fbag-fields input {
	width: 64px;
	margin: 0;
	padding: 10px 6px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 18px;
	text-align: center;
}
#fbag .fbag-fields .fbag-year input { width: 88px; }

#fbag .fbag-remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	font-size: 14px;
	cursor: pointer;
}
#fbag .fbag-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--fbag-btn-bg, #995C40); }

#fbag .fbag-error { margin: 16px 0 0; font-size: 15px; font-weight: 700; color: #c0392b; }
#fbag .fbag-error[hidden] { display: none; }

#fbag .fbag-legal { margin: 24px 0 0; font-size: 12px; line-height: 1.4; opacity: .75; }
#fbag .fbag-legal p { margin: 0; color: inherit; }
#fbag .fbag-legal a { color: inherit; text-decoration: underline; }

#fbag .screen-reader-text {
	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 (max-width: 480px) {
	#fbag .fbag-dialog { padding: 28px 20px 24px; }
	#fbag .fbag-title { font-size: 26px; }
}
