/* Bandeau de consentement (ep-core). Couleurs du thème si disponibles, sinon valeurs sûres (AA). */
.ep-consent[hidden],
.ep-consent-manage[hidden] {
	display: none !important;
}

.ep-consent {
	position: fixed;
	inset: auto 0 0;
	z-index: 1000;
	max-height: 70vh;
	overflow-y: auto;
	padding: 1rem;
	background: var(--wp--preset--color--marine, #102d40);
	color: #fff;
	border-top: 3px solid var(--wp--preset--color--or, #d8bb87);
	box-shadow: 0 -4px 18px rgb(0 0 0 / 25%);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.ep-consent__inner {
	display: grid;
	gap: 0.75rem 1.5rem;
	max-width: 72rem;
	margin: 0 auto;
}

@media (min-width: 48em) {
	.ep-consent__inner {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.ep-consent__title {
		grid-column: 1 / -1;
	}
}

.ep-consent__title {
	margin: 0;
	color: #fff;
	font-size: 1.125rem;
	line-height: 1.3;
}

.ep-consent__text {
	margin: 0;
}

.ep-consent a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.ep-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* « Accepter » et « Refuser » : même taille, même style, même contraste. */
.ep-consent__button {
	flex: 1 1 8rem;
	min-height: 44px;
	padding: 0.6rem 1.25rem;
	border: 2px solid #fff;
	border-radius: 4px;
	background: #fff;
	color: var(--wp--preset--color--marine, #102d40);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ep-consent__button:hover {
	background: var(--wp--preset--color--sable, #f5f2eb);
}

.ep-consent a:focus-visible,
.ep-consent__button:focus-visible {
	outline: 3px solid var(--wp--preset--color--or, #d8bb87);
	outline-offset: 3px;
}

.ep-consent-manage {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.ep-consent-manage:focus-visible {
	outline: 3px solid var(--wp--preset--color--or, #d8bb87);
	outline-offset: 2px;
}

/* Grand écran : boutons côte à côte (après les règles de base, qu'ils remplacent). */
@media (min-width: 48em) {
	.ep-consent__actions {
		flex-wrap: nowrap;
	}

	.ep-consent__button {
		flex: 0 0 9.5rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ep-consent__button {
		transition: background-color 0.15s ease;
	}
}
