/* Ostéobio - article mis en avant : fenêtre fixe en bas à gauche
   (inc/article-mis-en-avant.php). Même famille visuelle que les toasts du
   centre de notifications (bas droite) mais fond blanc pour s'en distinguer.
   z-index 840 : sous le voile (850) et le tiroir du menu mobile (900), sous la
   popin de confirmation des formulaires (9000), les toasts (999990) et
   tarteaucitron ; au-dessus de tout le contenu de page. */

.article-mea {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 840;
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(380px, calc(100vw - 32px));
	padding: 14px 44px 14px 14px;
	background: #ffffff;
	color: #0A1628;
	border-radius: 14px;
	border-left: 4px solid #FFD140;
	box-shadow: 0 12px 40px rgba(10, 22, 40, 0.25);
	font-family: var(--font-display, "Inter", system-ui, sans-serif);
	transform: translateY(24px);
	opacity: 0;
	transition: transform 400ms cubic-bezier(0.55, 0, 0.1, 1), opacity 400ms cubic-bezier(0.55, 0, 0.1, 1);
}
.article-mea[hidden] { display: none; }
.article-mea.is-visible {
	transform: translateY(0);
	opacity: 1;
}
.article-mea.is-leaving {
	transition: transform 250ms ease, opacity 250ms ease;
	transform: translateY(12px);
	opacity: 0;
}

.article-mea__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: #F4F8F6;
}
.article-mea__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-mea__body { min-width: 0; }
.article-mea__kicker {
	margin: 0 0 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8A6200;
}
.article-mea__title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #0A1628;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.article-mea__cta {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 8px;
	background: #F5C04C;
	color: #0A1628;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.article-mea__cta:hover { background: #B5820A; color: #0A1628; }
.article-mea__cta:focus-visible,
.article-mea__close:focus-visible { outline: 2px solid #0A1628; outline-offset: 2px; }

.article-mea__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6B7A90;
	background: #F4F8F6;
	border: 0;
	cursor: pointer;
}
.article-mea__close:hover { color: #0A1628; background: #E6EDEA; }

/* Petits écrans : la fenêtre devient une barre pleine largeur tout en bas.
   Elle ne cohabite jamais avec un toast commercial : article-popin.js
   l'efface tant qu'un toast est affiché (seuil 900 px : en dessous, une
   fenêtre à gauche et un toast à droite ne tiennent plus côte à côte). */
@media (max-width: 900px) {
	.article-mea {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		gap: 10px;
		padding: 10px 40px 10px 10px;
		border-radius: 12px;
	}
	.article-mea__thumb {
		flex-basis: 52px;
		width: 52px;
		height: 52px;
		border-radius: 8px;
	}
	.article-mea__title {
		font-size: 13px;
		margin-bottom: 6px;
	}
	.article-mea__cta {
		padding: 6px 12px;
		font-size: 12px;
	}
	.article-mea__close {
		top: 4px;
		right: 4px;
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.article-mea {
		transform: none;
		transition: opacity 400ms ease;
	}
	.article-mea.is-leaving {
		transform: none;
		transition: opacity 150ms ease;
	}
}
