/* Lion Éveillé – Consentement cookies */

.le-cc-banner,
.le-cc-modal,
.le-cc-placeholder {
	--le-cc-red: var(--le-red, #E52421);
	--le-cc-red-dark: var(--le-red-dark, #B71C1A);
	--le-cc-ink: var(--le-ink, #15181C);
	--le-cc-ink-hover: #2B3036;
	--le-cc-white: #FFFFFF;
	--le-cc-text: #3A4047;
	--le-cc-line: #E4E2DD;
	--le-cc-soft: #F4F3F0;
	--le-cc-off: #C9CDD2;
	--le-cc-head: var(--le-font-head, 'Barlow Condensed'), 'Arial Narrow', sans-serif;
	--le-cc-body: var(--le-font-body, 'Barlow'), Arial, sans-serif;
	box-sizing: border-box;
}

.le-cc-banner *,
.le-cc-modal *,
.le-cc-placeholder * {
	box-sizing: border-box;
}

html.le-cc-locked {
	overflow: hidden;
}

/* ---------- Boutons ---------- */

.le-cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 12px 18px;
	border: 1px solid var(--le-cc-ink);
	border-radius: 0;
	background: var(--le-cc-white);
	color: var(--le-cc-ink);
	font-family: var(--le-cc-head);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .1em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.le-cc-btn:focus-visible,
.le-cc-link:focus-visible,
.le-cc-modal__close:focus-visible {
	outline: 3px solid var(--le-cc-red);
	outline-offset: 2px;
}

.le-cc-btn--primary {
	border-color: var(--le-cc-red);
	background: var(--le-cc-red);
	color: var(--le-cc-white);
}

.le-cc-btn--primary:hover {
	border-color: var(--le-cc-red-dark);
	background: var(--le-cc-red-dark);
}

.le-cc-btn--dark {
	background: var(--le-cc-ink);
	color: var(--le-cc-white);
}

.le-cc-btn--dark:hover {
	border-color: var(--le-cc-ink-hover);
	background: var(--le-cc-ink-hover);
}

.le-cc-btn--ghost:hover {
	background: var(--le-cc-ink);
	color: var(--le-cc-white);
}

.le-cc-link {
	color: var(--le-cc-red);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.le-cc-link:hover {
	color: var(--le-cc-red-dark);
}

.le-cc-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

/* ---------- Bannière ---------- */

.le-cc-banner {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99990;
	width: min(460px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
	border-top: 3px solid var(--le-cc-red);
	background: var(--le-cc-white);
	color: var(--le-cc-text);
	font-family: var(--le-cc-body);
	box-shadow: 0 24px 60px -20px rgba(21, 24, 28, .45);
	animation: le-cc-in .3s ease both;
}

.le-cc-banner.is-hiding {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .25s ease, transform .25s ease;
}

@keyframes le-cc-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes le-cc-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.le-cc-banner__title {
	margin: 0 0 10px;
	color: var(--le-cc-ink);
	font-family: var(--le-cc-head);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.le-cc-banner__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
}

.le-cc-banner__actions .le-cc-btn--ghost {
	grid-column: 1 / -1;
}

/* ---------- Fenêtre des préférences ---------- */

.le-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: var(--le-cc-body);
	animation: le-cc-fade .2s ease both;
}

.le-cc-modal[hidden] {
	display: none;
}

.le-cc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(21, 24, 28, .62);
}

.le-cc-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(660px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	border-top: 3px solid var(--le-cc-red);
	background: var(--le-cc-white);
	color: var(--le-cc-text);
	box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55);
	outline: none;
}

.le-cc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--le-cc-line);
}

.le-cc-modal__title {
	margin: 0;
	color: var(--le-cc-ink);
	font-family: var(--le-cc-head);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.le-cc-modal__close {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--le-cc-line);
	border-radius: 0;
	background: var(--le-cc-white);
	color: var(--le-cc-ink);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.le-cc-modal__close:hover {
	border-color: var(--le-cc-ink);
	background: var(--le-cc-ink);
	color: var(--le-cc-white);
}

.le-cc-modal__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.le-cc-modal__intro,
.le-cc-modal__policy {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}

.le-cc-modal__foot {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 16px 24px 20px;
	border-top: 1px solid var(--le-cc-line);
}

.le-cc-cat {
	padding: 16px 18px;
	border: 1px solid var(--le-cc-line);
	background: var(--le-cc-white);
}

.le-cc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.le-cc-cat__label {
	color: var(--le-cc-ink);
	font-family: var(--le-cc-head);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
}

span.le-cc-cat__label {
	cursor: default;
}

.le-cc-cat__always {
	flex: 0 0 auto;
	color: var(--le-cc-red);
	font-family: var(--le-cc-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.le-cc-cat__desc {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
}

/* Interrupteur */

.le-cc-switch {
	position: relative;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
}

.le-cc-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.le-cc-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 13px;
	background: var(--le-cc-off);
	transition: background-color .2s ease;
}

.le-cc-switch__track::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--le-cc-white);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}

.le-cc-switch input:checked + .le-cc-switch__track {
	background: var(--le-cc-red);
}

.le-cc-switch input:checked + .le-cc-switch__track::after {
	transform: translateX(20px);
}

.le-cc-switch input:focus-visible + .le-cc-switch__track {
	outline: 3px solid var(--le-cc-red);
	outline-offset: 2px;
}

/* ---------- Contenus externes bloqués ---------- */

iframe[data-le-src] {
	display: none !important;
}

.le-cc-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	min-height: 200px;
	padding: 24px;
	border: 1px dashed var(--le-cc-off);
	background: var(--le-cc-soft);
	color: var(--le-cc-ink);
	font-family: var(--le-cc-body);
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

/* ---------- Petits écrans ---------- */

@media (max-width: 639px) {
	.le-cc-modal__foot {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 479px) {
	.le-cc-banner {
		left: 12px;
		bottom: 12px;
		width: calc(100% - 24px);
		padding: 20px;
	}

	.le-cc-banner__text {
		font-size: 14px;
	}

	.le-cc-actions {
		grid-template-columns: minmax(0, 1fr);
	}

	.le-cc-modal {
		padding: 8px;
	}

	.le-cc-modal__panel {
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
	}

	.le-cc-modal__head,
	.le-cc-modal__body {
		padding-left: 18px;
		padding-right: 18px;
	}

	.le-cc-modal__foot {
		padding: 14px 18px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.le-cc-banner,
	.le-cc-modal,
	.le-cc-btn,
	.le-cc-switch__track,
	.le-cc-switch__track::after {
		animation: none;
		transition: none;
	}
}
