/* La Cité — Cookies & Confidentialité (Loi 25)
   Palette relevée sur egliselacite.ca : fond #010307 / #151515,
   texte #FFFFFF, gris-bleu #92A7AA, accent #00ACFF, rayon 3 px,
   bordures translucides #FFFFFF2B. Police héritée du thème (niveau-grotesk). */

.lacite-root {
	--lacite-bg: #010307;
	--lacite-surface: #151515;
	--lacite-text: #ffffff;
	--lacite-muted: #92a7aa;
	--lacite-accent: #00acff;
	--lacite-border: rgba(255, 255, 255, 0.17);
	--lacite-radius: 3px;
	font-family: inherit;
	line-height: 1.55;
}

.lacite-root [hidden] { display: none !important; }

/* ---------- Boutons ---------- */
.lacite-btn {
	display: inline-block;
	padding: 0.7em 1.5em;
	border-radius: var(--lacite-radius);
	border: 1px solid transparent;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lacite-btn--accent {
	background: var(--lacite-accent);
	color: #010307;
}
.lacite-btn--accent:hover { background: #61ccff; color: #010307; }
.lacite-btn--ghost {
	background: transparent;
	color: var(--lacite-text);
	border-color: var(--lacite-border);
}
.lacite-btn--ghost:hover { border-color: var(--lacite-accent); color: var(--lacite-accent); }

/* ---------- Bannière ---------- */
.lacite-banner {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 999990;
	background: var(--lacite-bg);
	color: var(--lacite-text);
	border-top: 1px solid var(--lacite-border);
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
	animation: lacite-rise 0.35s ease;
}
@keyframes lacite-rise {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}
.lacite-banner__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 1.4rem 1.5rem;
	display: flex;
	gap: 1.5rem;
	align-items: center;
	flex-wrap: wrap;
}
.lacite-banner__text { flex: 1 1 26rem; min-width: 16rem; }
.lacite-banner__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--lacite-text);
}
.lacite-banner__desc {
	margin: 0;
	font-size: 0.85rem;
	color: var(--lacite-muted);
}
.lacite-banner__desc a { color: var(--lacite-accent); text-decoration: underline; }
.lacite-banner__actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	align-items: center;
}

/* ---------- Modale ---------- */
.lacite-modal { position: fixed; inset: 0; z-index: 999995; }
.lacite-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(1, 3, 7, 0.72);
	backdrop-filter: blur(3px);
}
.lacite-modal__panel {
	position: relative;
	max-width: 34rem;
	margin: 6vh auto;
	max-height: 88vh;
	overflow-y: auto;
	background: var(--lacite-surface);
	color: var(--lacite-text);
	border: 1px solid var(--lacite-border);
	border-radius: calc(var(--lacite-radius) + 3px);
	padding: 1.7rem;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.lacite-modal__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.6rem;
}
.lacite-modal__title { margin: 0; font-size: 1.2rem; font-weight: 700; }
.lacite-modal__close {
	background: none;
	border: none;
	color: var(--lacite-muted);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.2rem;
}
.lacite-modal__close:hover { color: var(--lacite-accent); }
.lacite-modal__intro { font-size: 0.85rem; color: var(--lacite-muted); margin: 0 0 1.1rem; }
.lacite-modal__actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-top: 1.2rem;
}
.lacite-modal__foot {
	margin: 1rem 0 0;
	font-size: 0.78rem;
	color: var(--lacite-muted);
	text-align: center;
}
.lacite-modal__foot a { color: var(--lacite-accent); }

/* ---------- Catégories & interrupteurs ---------- */
.lacite-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-top: 1px solid var(--lacite-border);
}
.lacite-cat__name { margin: 0 0 0.15rem; font-weight: 600; font-size: 0.95rem; }
.lacite-cat__desc { margin: 0; font-size: 0.8rem; color: var(--lacite-muted); }
.lacite-switch { position: relative; flex: 0 0 auto; cursor: pointer; }
.lacite-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: inherit; }
.lacite-switch__track {
	display: block;
	width: 44px;
	height: 24px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid var(--lacite-border);
	transition: background-color 0.2s ease;
}
.lacite-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}
.lacite-switch input:checked + .lacite-switch__track { background: var(--lacite-accent); border-color: var(--lacite-accent); }
.lacite-switch input:checked + .lacite-switch__track::after { transform: translateX(20px); }
.lacite-switch--locked { opacity: 0.55; cursor: not-allowed; }
.lacite-switch input:focus-visible + .lacite-switch__track { outline: 2px solid var(--lacite-accent); outline-offset: 2px; }

/* ---------- Bouton flottant ---------- */
.lacite-float {
	position: fixed;
	left: 1.1rem;
	bottom: 1.1rem;
	z-index: 999980;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--lacite-bg);
	color: var(--lacite-accent);
	border: 1px solid var(--lacite-border);
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.lacite-float:hover { border-color: var(--lacite-accent); transform: scale(1.06); }

/* ---------- Gabarits d'iframes bloqués ---------- */
.lacite-embed-placeholder {
	position: relative;
	background: var(--lacite-surface);
	border: 1px dashed var(--lacite-border);
	border-radius: var(--lacite-radius);
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--lacite-muted);
	padding: 1.5rem;
}
.lacite-embed-placeholder iframe { display: none; }
.lacite-embed-placeholder__inner { max-width: 26rem; }
.lacite-embed-placeholder__inner p { margin: 0 0 0.9rem; font-size: 0.85rem; }

/* ---------- Tableau des témoins ---------- */
.lacite-table-wrap { overflow-x: auto; }
.lacite-cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}
.lacite-cookie-table th,
.lacite-cookie-table td {
	padding: 0.6rem 0.75rem;
	border: 1px solid rgba(128, 128, 128, 0.3);
	text-align: left;
	vertical-align: top;
}
.lacite-cookie-table th { background: rgba(0, 172, 255, 0.1); }

@media (max-width: 640px) {
	.lacite-banner__actions { width: 100%; }
	.lacite-banner__actions .lacite-btn { flex: 1 1 auto; text-align: center; }
	.lacite-modal__panel { margin: 3vh 0.8rem; padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
	.lacite-banner { animation: none; }
}
