/*
 * Bandeau cookies Complianz plus discret (retour d'Elsa, 2026-10-22) : au lieu d'une grande fenêtre au centre de
 * l'écran (480 × 400 px), une petite carte en bas à gauche sur ordinateur, une barre compacte en bas sur téléphone.
 * Sans logo ni titre ; « Accepter » et « Refuser » restent côte à côte, de même taille (exigence CNIL).
 * Le panneau « Voir les préférences » s'ouvre toujours normalement.
 */
html body .cmplz-cookiebanner {
	--cmplz_banner_width: 400px;
}

html body .cmplz-cookiebanner.cmplz-show {
	min-width: 0 !important;
	top: auto !important;
	right: auto !important;
	bottom: 16px !important;
	left: 16px !important;
	width: min(400px, calc(100vw - 32px)) !important;
	max-height: calc(100vh - 32px);
	padding: 16px 18px 12px !important;
	border-radius: 18px !important;
	transform: none !important;
	box-shadow: 0 18px 40px -18px rgba(0, 40, 70, .45) !important;
	grid-row-gap: 10px !important;
}

html body .cmplz-cookiebanner .cmplz-header,
html body .cmplz-cookiebanner .cmplz-divider,
html body .cmplz-cookiebanner .cmplz-links.cmplz-information {
	display: none !important;
}

html body .cmplz-cookiebanner .cmplz-body {
	margin: 0 !important;
}

html body .cmplz-cookiebanner .cmplz-message,
html body .cmplz-cookiebanner .cmplz-message p {
	margin: 0 !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
}

html body .cmplz-cookiebanner .cmplz-buttons {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 8px !important;
	margin: 0 !important;
}

html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	width: auto !important;
	min-width: 0 !important;
	height: 40px !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	font-size: 14px !important;
}

html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences,
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
	grid-column: 1 / -1;
	height: 32px !important;
	min-height: 32px !important;
	border: 0 !important;
	background: none !important;
	color: #004b76 !important;
	font-size: 13px !important;
	text-decoration: underline;
}

html body .cmplz-cookiebanner .cmplz-documents {
	justify-content: center;
	margin: 0 !important;
	font-size: 12px !important;
}

@media (max-width: 767px) {
	html body .cmplz-cookiebanner.cmplz-show {
		right: 8px !important;
		bottom: 8px !important;
		left: 8px !important;
		width: auto !important;
		padding: 14px 14px 10px !important;
	}

	html body .cmplz-cookiebanner .cmplz-message,
	html body .cmplz-cookiebanner .cmplz-message p {
		font-size: 12.5px !important;
	}
}

/* Onglet flottant « Gérer le consentement » retiré (Elsa, 2026-11-17) : on peut toujours changer son choix depuis
 * le lien « Gestion des cookies » du pied de page. */
html body .cmplz-manage-consent,
html body #cmplz-manage-consent .cmplz-manage-consent {
	display: none !important;
}
