/* =========================================================
   CTA sticky unique — pages de blog (articles, listing, catégories)
   ========================================================= */

.plenit-cta-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #16323a;
	color: #fff;
	padding: 14px 20px;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .18);
	transform: translateY(100%);
	transition: transform .3s ease;
}

.plenit-cta-sticky.is-visible {
	transform: translateY(0);
}

.plenit-cta-sticky__inner {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	text-align: center;
	padding-right: 36px;
}

.plenit-cta-sticky__text {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.plenit-cta-sticky__btn {
	white-space: nowrap;
}

.plenit-cta-sticky__close {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: .7;
}

.plenit-cta-sticky__close:hover {
	opacity: 1;
}

body.has-plenit-cta-sticky {
	padding-bottom: 76px;
}

/* Repousse les badges tiers (Avis Garantis à gauche, chat Brevo à droite)
   au-dessus du bandeau tant qu'il est visible, pour éviter le recouvrement.
   !important nécessaire : ces widgets sont injectés hors du thème avec
   leur propre feuille de style. */
body.has-plenit-cta-sticky .agJsWidget,
body.has-plenit-cta-sticky #brevo-conversations {
	bottom: 76px !important;
}

@media (max-width: 600px) {
	.plenit-cta-sticky__inner {
		padding-right: 30px;
	}

	.plenit-cta-sticky__text {
		font-size: 14px;
	}

	body.has-plenit-cta-sticky {
		padding-bottom: 104px;
	}

	body.has-plenit-cta-sticky .agJsWidget,
	body.has-plenit-cta-sticky #brevo-conversations {
		bottom: 104px !important;
	}
}
