/**
 * Law 25 consent bar.
 *
 * A bar across the foot of the window, not a modal: the law forbids a cookie
 * wall, so the site stays readable and clickable while the choice is pending.
 * "Tout accepter" and "Tout refuser" are the same button in two colours and
 * the same width — neither may be the easier one to hit.
 */

.dh-consent {
	position: fixed;
	z-index: 9999;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 22px 24px;
	background: #00172e;
	box-shadow: 0 -8px 30px rgba(0, 23, 46, 0.25);
	color: #fff;
	font-family: "Work Sans", sans-serif;
}

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

.dh-consent__inner {
	display: flex;
	max-width: 1240px;
	align-items: flex-start;
	justify-content: space-between;
	column-gap: 40px;
	margin: 0 auto;
	row-gap: 18px;
}

.dh-consent__copy {
	flex: 1 1 auto;
	min-width: 0;
}

.dh-consent__title {
	margin: 0 0 8px;
	font-family: "Oswald", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
}

.dh-consent__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.dh-consent__text a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Per-category toggles, revealed by "Personnaliser" -------------------- */

.dh-consent__prefs {
	margin: 18px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	padding-top: 14px;
}

.dh-consent__prefs[hidden] {
	display: none;
}

.dh-consent__pref {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 9px 0;
	font-size: 14px;
	line-height: 1.45;
}

.dh-consent__pref input {
	width: 18px;
	height: 18px;
	flex: none;
	margin: 2px 0 0;
	accent-color: #ff2d16;
}

.dh-consent__pref input:disabled {
	opacity: 0.6;
}

.dh-consent__pref-name {
	display: block;
	font-weight: 600;
}

.dh-consent__pref-note {
	display: block;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
}

/* --- Buttons -------------------------------------------------------------- */

.dh-consent__actions {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 12px;
}

.dh-consent__btn {
	min-width: 168px;
	padding: 14px 20px;
	border: 2px solid #fff;
	background: #fff;
	color: #00172e;
	cursor: pointer;
	font-family: "Oswald", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Accept and refuse share every measurement; only the fill differs, and the
   refuse button is the filled one so it cannot read as the lesser choice. */
.dh-consent__btn--secondary {
	background: transparent;
	color: #fff;
}

.dh-consent__btn:hover,
.dh-consent__btn:focus-visible {
	background: #ff2d16;
	border-color: #ff2d16;
	color: #fff;
}

.dh-consent__btn--link {
	min-width: 0;
	padding: 14px 4px;
	border-color: transparent;
	background: none;
	color: #fff;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dh-consent__btn--link:hover,
.dh-consent__btn--link:focus-visible {
	border-color: transparent;
	background: none;
	color: #ff2d16;
}

.dh-consent__btn[hidden] {
	display: none;
}

/* --- The footer link that brings the bar back ----------------------------- */

.dh-consent-reopen {
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- A held-back embed --------------------------------------------------- */

/* Stands in for a YouTube (or other third-party) frame until the category it
   belongs to is allowed. */
.dh-consent-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 28px 24px;
	background: #f1f0ee;
	color: #00172e;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

@media (max-width: 900px) {
	.dh-consent {
		padding: 18px 16px;
		max-height: 88vh;
		overflow-y: auto;
	}

	.dh-consent__inner {
		flex-direction: column;
		column-gap: 0;
	}

	.dh-consent__actions {
		width: 100%;
	}

	.dh-consent__btn {
		flex: 1 1 100%;
	}
}
