/* ==========================================================================
   ABS MONDIAL EXPORT — Bandeau de consentement RGPD
   Charte : variables tokens (assets/css/tokens.css).
   ========================================================================== */

.ame-consent {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9980; /* sous la bulle de chat (9990), au-dessus du contenu */
	max-width: min(380px, calc(100vw - 32px));
	font-family: var(--ame-font-body);
}

.ame-consent[hidden] {
	display: none;
}

.ame-consent__inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: var(--ame-blanc);
	border: 1px solid var(--ame-line);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(11, 31, 58, 0.18);
	animation: ame-consent-in 0.25s ease;
}

.ame-consent__text {
	margin: 0;
	font-size: var(--ame-fz-small);
	line-height: 1.55;
	color: var(--ame-marine);
}

.ame-consent__link {
	color: var(--ame-accent);
	font-weight: 700;
	text-underline-offset: 2px;
}

.ame-consent__link:hover {
	color: var(--ame-or);
}

.ame-consent__ok {
	align-self: flex-end;
	border: 0;
	border-radius: 8px;
	padding: 8px 18px;
	background: var(--ame-or);
	color: var(--ame-marine);
	font-family: inherit;
	font-size: var(--ame-fz-small);
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.ame-consent__ok:hover {
	background: var(--ame-or-hover);
}

.ame-consent__ok:focus-visible,
.ame-consent__link:focus-visible {
	outline: 2px solid var(--ame-or);
	outline-offset: 2px;
}

@keyframes ame-consent-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 600px) {
	.ame-consent {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
	}

	.ame-consent__inner {
		padding: 14px;
	}
}

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