/**
 * ODP Cookie Consent — styles publics.
 *
 * Tout est préfixé `.odp-cc`, `.odp-cc-footer` ou `.odp-cc-manage` pour ne pas
 * dépendre des règles d’Astra. La racine fixe sa taille en pixels : l’échelle
 * `rem` du thème (15 px puis 13,68 px) ne doit pas faire varier la bannière.
 */

html.odp-cc-decided .odp-cc {
	display: none !important;
}

.odp-cc,
.odp-cc *,
.odp-cc *::before,
.odp-cc *::after,
.odp-cc-footer,
.odp-cc-footer *,
.odp-cc-manage,
.odp-cc-manage * {
	box-sizing: border-box;
}

.odp-cc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: block;
	padding: 16px;
	padding-bottom: max(16px, env(safe-area-inset-bottom));
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: max(1rem, 15px);
	line-height: 1.5;
	color: #1d2327;
	-webkit-font-smoothing: antialiased;
}

.odp-cc.odp-cc--top {
	top: 0;
	bottom: auto;
	padding-top: max(16px, env(safe-area-inset-top));
	padding-bottom: 16px;
}

.odp-cc__panel {
	pointer-events: auto;
	width: 100%;
	max-width: 780px;
	max-height: 70vh;
	overflow-y: auto;
	margin: 0 auto;
	padding: 1.1em 1.25em;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	text-align: left;
}

.odp-cc__title {
	margin: 0 0 0.35em;
	padding: 0;
	font-size: 1.05em;
	font-weight: 650;
	line-height: 1.3;
	color: #1d2327;
	text-transform: none;
	letter-spacing: normal;
}

.odp-cc__text {
	margin: 0 0 0.95em;
	padding: 0;
	max-width: 70ch;
	font-size: 1em;
	color: #3c434a;
}

.odp-cc__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65em;
}

.odp-cc__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65em;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.odp-cc__button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0.65em 1.35em;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #fff;
	color: #1d2327;
	font: inherit;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.odp-cc__button--accept {
	background: #cc0099;
	border-color: #cc0099;
	color: #fff;
}

.odp-cc__button--accept:hover {
	background: #a3007a;
	border-color: #a3007a;
	color: #fff;
}

.odp-cc__button--refuse {
	background: #fff;
	border-color: #8c8f94;
	color: #1d2327;
}

.odp-cc__button--refuse:hover {
	background: #f6f7f7;
	border-color: #1d2327;
	color: #1d2327;
}

.odp-cc__button:focus-visible,
.odp-cc__link:focus-visible,
.odp-cc-footer__link:focus-visible {
	outline: 3px solid #1d2327;
	outline-offset: 3px;
}

.odp-cc__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.25em;
	color: #1d2327;
	font-size: 0.95em;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

.odp-cc__link:hover {
	color: #cc0099;
}

.odp-cc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.odp-cc-footer {
	padding: 12px 16px 18px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: max(0.85rem, 13px);
	line-height: 1.4;
	text-align: center;
	color: #50575e;
}

.odp-cc-footer__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 8px;
	color: #50575e;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

.odp-cc-footer__link:hover {
	color: #1d2327;
}

/* Lien intégré à la ligne de copyright du thème. */
.site-footer .subfooter .block .odp-cc-footer__link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 4px;
	color: #e562e3;
	font-size: 12px;
	line-height: 1;
	text-decoration: underline;
	vertical-align: middle;
}

.site-footer .subfooter .block .odp-cc-footer__link:hover {
	color: #fff;
}

.site-footer .subfooter .block .odp-cc-footer__link:focus-visible {
	outline-color: #fff;
}

.odp-cc-footer__sep {
	color: #ccc;
}

@media (max-width: 600px) {
	body .site-footer .subfooter {
		height: auto;
		min-height: 36px;
		flex-wrap: wrap;
		row-gap: 2px;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	body .site-footer .subfooter .block {
		line-height: 1.5;
	}
}

.odp-cc-manage {
	max-width: 60ch;
	margin: 1.5em 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: max(1rem, 15px);
	line-height: 1.5;
	color: #1d2327;
}

.odp-cc-manage__status {
	margin: 0 0 1em;
}

.odp-cc-manage .odp-cc__button {
	width: auto;
}

@media (max-width: 600px) {
	.odp-cc {
		padding: 10px;
		padding-bottom: max(10px, env(safe-area-inset-bottom));
	}

	.odp-cc.odp-cc--top {
		padding-top: max(10px, env(safe-area-inset-top));
		padding-bottom: 10px;
	}

	.odp-cc__panel {
		padding: 1em;
		border-radius: 12px;
		max-height: 75vh;
	}

	.odp-cc__actions,
	.odp-cc__form {
		flex-direction: column;
		align-items: stretch;
	}

	.odp-cc__button {
		width: 100%;
	}

	.odp-cc__link {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.odp-cc__button {
		transition: none;
	}
}

@media print {
	.odp-cc,
	.odp-cc-footer {
		display: none !important;
	}
}
