/* Klarion · Consentement — bandeau et préférences, aux couleurs du site */

.klc {
	--klc-navy: var(--navy, #060F1E);
	--klc-navy-3: var(--navy-3, #1B2436);
	--klc-blue: var(--blue-600, #0B98D5);
	--klc-blue-hover: var(--blue-500, #2CAEE4);
	--klc-sky: var(--blue-400, #5CC3EC);
	--klc-sky-soft: var(--blue-300, #8FD6F3);
	--klc-text: #B9C5D8;
	--klc-muted: var(--slate-400, #8A93A6);
	--klc-line: rgba(143, 214, 243, .16);
	--klc-success: var(--k-success, #27C281);
	--klc-font: "Zalando Sans SemiExpanded", Inter, "Segoe UI", system-ui, sans-serif;
}

.klc [hidden] { display: none !important; }
.klc *, .klc *::before, .klc *::after { box-sizing: border-box; }

/* ---------- Surface commune ---------- */

.klc-banner,
.klc-modal__panel {
	position: relative;
	font-family: var(--klc-font);
	color: var(--klc-text);
	background:
		radial-gradient(ellipse 80% 60% at 85% 0%, rgba(11, 152, 213, .16) 0%, transparent 60%),
		linear-gradient(160deg, #0F2040 0%, var(--klc-navy) 70%);
	border: 1px solid var(--klc-line);
	box-shadow: 0 28px 70px -18px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .04);
	-webkit-font-smoothing: antialiased;
}

/* fine grille, clin d'œil au hero du site */
.klc-banner::before,
.klc-modal__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(143, 214, 243, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(143, 214, 243, .05) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

.klc-banner > *,
.klc-modal__panel > * { position: relative; }

/* ---------- Typo ---------- */

.klc .klc-eyebrow {
	display: block;
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--klc-sky-soft);
	line-height: 1.4;
}

.klc .klc-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--klc-font);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.4px;
	color: #fff;
	border: 0;
}
.klc .klc-title span { color: var(--klc-sky); }

.klc .klc-text {
	margin: 0 0 18px;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--klc-text);
}

.klc a {
	color: var(--klc-sky);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.klc a:hover { color: #fff; }

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

.klc .klc-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.klc .klc-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	font-family: var(--klc-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	text-align: center;
	background: var(--klc-blue);
	border: 1px solid var(--klc-blue);
	border-radius: 9px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.klc .klc-btn:hover { background: var(--klc-blue-hover); border-color: var(--klc-blue-hover); }
.klc .klc-btn:active { transform: translateY(1px); }

.klc .klc-btn--ghost {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(143, 214, 243, .32);
}
.klc .klc-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--klc-sky); }

.klc .klc-link {
	appearance: none;
	display: block;
	margin: 12px auto 0;
	padding: 4px 6px;
	font-family: var(--klc-font);
	font-size: 13px;
	font-weight: 600;
	color: var(--klc-sky);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.klc .klc-link:hover { color: #fff; }

.klc button:focus-visible,
.klc a:focus-visible,
.klc .klc-switch input:focus-visible + .klc-switch__track,
.klc .klc-modal__panel:focus-visible {
	outline: 2px solid var(--klc-sky);
	outline-offset: 2px;
}
.klc .klc-modal__panel:focus { outline: none; }

/* ---------- Bandeau ---------- */

.klc-banner {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 2147483000;
	width: min(440px, calc(100vw - 48px));
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 24px 24px 18px;
	border-radius: 16px;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .3s ease, transform .3s ease;
}
.klc-banner.is-open { opacity: 1; transform: none; }

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

.klc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	opacity: 0;
	transition: opacity .22s ease;
}
.klc-modal.is-open { opacity: 1; }

.klc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 8, 18, .64);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.klc-modal__panel {
	width: min(580px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 32px 32px 22px;
	border-radius: 18px;
	transform: translateY(10px) scale(.985);
	transition: transform .25s ease;
}
.klc-modal.is-open .klc-modal__panel { transform: none; }

.klc .klc-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	color: var(--klc-text);
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--klc-line);
	border-radius: 50%;
	cursor: pointer;
}
.klc .klc-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.klc .klc-cats { list-style: none; margin: 0 0 20px; padding: 0; }

.klc .klc-cat {
	margin: 0 0 10px;
	padding: 16px 18px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid var(--klc-line);
	border-radius: 12px;
}

.klc .klc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 6px;
}

.klc .klc-cat__title {
	margin: 0;
	padding: 0;
	font-family: var(--klc-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	border: 0;
}

.klc .klc-cat__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--klc-muted);
}

.klc .klc-badge {
	flex: none;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .3px;
	color: var(--klc-success);
	background: rgba(39, 194, 129, .12);
	border: 1px solid rgba(39, 194, 129, .28);
	border-radius: 999px;
	white-space: nowrap;
}

/* interrupteur */
.klc .klc-switch {
	position: relative;
	flex: none;
	display: inline-block;
	width: 46px;
	height: 26px;
	margin: 0;
	cursor: pointer;
}
.klc .klc-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.klc .klc-switch__track {
	position: absolute;
	inset: 0;
	background: #38445C;
	border-radius: 999px;
	transition: background-color .2s ease;
}
.klc .klc-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
	transition: transform .2s ease;
}
.klc .klc-switch input:checked + .klc-switch__track { background: var(--klc-blue); }
.klc .klc-switch input:checked + .klc-switch__track .klc-switch__thumb { transform: translateX(20px); }

.klc .klc-actions--modal { grid-template-columns: 1fr 1fr; }
.klc .klc-actions--modal .klc-btn--save { grid-column: 1 / -1; }

.klc .klc-more {
	margin: 16px 0 0;
	font-size: 12.5px;
	color: var(--klc-muted);
	text-align: center;
}
.klc .klc-more span { margin: 0 6px; }

html.klc-lock { overflow: hidden; }

/* ---------- Mobile ---------- */

@media (max-width: 560px) {
	.klc-banner {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		padding: 20px 18px 14px;
	}
	.klc .klc-title { font-size: 19px; }
	.klc .klc-text { font-size: 13px; }
	.klc-modal { align-items: flex-end; padding: 12px; }
	.klc-modal__panel { padding: 26px 18px 18px; max-height: calc(100vh - 24px); }
	.klc .klc-actions--modal { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.klc-banner, .klc-modal, .klc-modal__panel, .klc .klc-switch__thumb, .klc .klc-switch__track { transition: none; }
}

/* ---------- Hors bandeau : mention sous le formulaire de démo ---------- */

.klc-form-notice {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--slate-500, #6D7789);
}
.klc-form-notice a { color: var(--blue-600, #0B98D5); }
