/**
 * Bandeau cookies / préférences RGPD.
 */

.pg-cookie {
	position: fixed;
	z-index: 99999;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
}

.pg-cookie[hidden] {
	display: none !important;
}

.pg-cookie__panel {
	pointer-events: auto;
	max-width: 720px;
	margin: 0 auto;
	padding: 18px 20px;
	background: #1a2a2b;
	color: #f4f7f7;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	font-size: 14px;
	line-height: 1.55;
}

.pg-cookie__panel p {
	margin: 0 0 14px;
}

.pg-cookie__panel a {
	color: #9fd4d6;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pg-cookie__panel a:hover,
.pg-cookie__panel a:focus {
	color: #fff;
}

.pg-cookie__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.pg-cookie__btn {
	appearance: none;
	border: 0;
	border-radius: 6px;
	padding: 10px 16px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	line-height: 1.2;
}

.pg-cookie__btn--primary {
	background: #05686d;
	color: #fff;
}

.pg-cookie__btn--primary:hover,
.pg-cookie__btn--primary:focus {
	background: #045459;
}

.pg-cookie__btn--ghost {
	background: transparent;
	color: #f4f7f7;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.pg-cookie__btn--ghost:hover,
.pg-cookie__btn--ghost:focus {
	border-color: #fff;
}

.pg-cookie__btn--link {
	background: transparent;
	color: #9fd4d6;
	padding: 8px 4px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-footer .footer-legal .pg-cookie-prefs,
.pg-vs-footer .pg-cookie-prefs {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 560px) {
	.pg-cookie__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.pg-cookie__btn {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pg-cookie__panel {
		box-shadow: none;
	}
}
