/* EmarketerZ – Widgets lecteurs */

.emz-follow,
.emz-share {
	--emz-accent: #f7b600;
	--emz-ink: #333;
	--emz-line: #e2e2e2;
	--emz-soft: #f6f6f6;
	font-family: inherit;
}

.emz-follow svg,
.emz-share svg {
	display: block;
	flex: none;
}

/* ---- A. Suivez-nous (sous la date) ---------------------------------- */

/* .entry-meta est flottante dans NewsNow : on repasse à la ligne. */
#emz-follow-auto {
	clear: both;
	width: 100%;
}

.emz-follow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 4px;
}

a.emz-follow__btn,
a.emz-follow__btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid var(--emz-line);
	border-radius: 999px;
	background: #fff;
	color: var(--emz-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}

a.emz-follow__btn:hover,
a.emz-follow__btn:focus-visible {
	border-color: #c9c9c9;
	background: var(--emz-soft);
	color: var(--emz-ink);
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

a.emz-follow__btn--primary,
a.emz-follow__btn--primary:visited {
	border-color: var(--emz-ink);
	background: var(--emz-ink);
	color: #fff;
}

a.emz-follow__btn--primary svg {
	padding: 2px;
	border-radius: 50%;
	background: #fff;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
}

a.emz-follow__btn--primary:hover,
a.emz-follow__btn--primary:focus-visible {
	border-color: #000;
	background: #000;
	color: #fff;
}

a.emz-follow__btn--whatsapp svg {
	color: #25d366;
}

/* ---- B/C. Barre de partage en fin d'article -------------------------- */

.emz-share--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 30px 0;
	padding: 16px 0;
	border-top: 1px solid var(--emz-line);
	border-bottom: 1px solid var(--emz-line);
}

.emz-share__label {
	color: var(--emz-ink);
	font-size: 15px;
	font-weight: 700;
}

.emz-share__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.emz-share .emz-share__btn,
.entry-content .emz-share a.emz-share__btn,
.entry-content .emz-share a.emz-share__btn:visited {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--emz-net, var(--emz-ink));
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s, transform .15s;
}

.emz-share .emz-share__btn:hover,
.emz-share .emz-share__btn:focus-visible,
.entry-content .emz-share a.emz-share__btn:hover {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.12);
	transform: translateY(-1px);
}

.emz-share__btn:focus-visible {
	outline: 2px solid var(--emz-accent);
	outline-offset: 2px;
}

.emz-share__btn--facebook { --emz-net: #1877f2; }
.emz-share__btn--x        { --emz-net: #000; }
.emz-share__btn--linkedin { --emz-net: #0a66c2; }
.emz-share__btn--whatsapp { --emz-net: #1fa855; }
.emz-share__btn--mail     { --emz-net: #6b6b6b; }
.emz-share__btn--native   { --emz-net: var(--emz-ink); }
.emz-share__btn--comment  { --emz-net: var(--emz-accent); }

.emz-share .emz-share__btn--copy {
	border: 1px solid var(--emz-ink);
	background: #fff;
	color: var(--emz-ink);
}

.emz-share .emz-share__btn--copy:hover,
.emz-share .emz-share__btn--copy:focus-visible {
	background: var(--emz-soft);
	color: var(--emz-ink);
	filter: none;
}

.emz-share__ico-done { display: none; }
.emz-share__btn.is-copied .emz-share__ico-default { display: none; }
.emz-share__btn.is-copied .emz-share__ico-done { display: block; }
.emz-share .emz-share__btn--copy.is-copied {
	border-color: #1fa855;
	color: #1a8a47;
}

.emz-share__btn[hidden] { display: none !important; }

/* Sur mobile, le bouton « Partager » natif passe en premier et prend
   toute la largeur : c'est le geste le plus naturel sur téléphone. */
@media (max-width: 600px) {
	.emz-share--inline .emz-share__label {
		width: 100%;
	}
	.emz-share .emz-share__btn--native {
		flex: 1 0 100%;
	}
}

/* ---- Rail vertical collant (grands écrans, comme Presse-Citron) ------ */

.emz-share-rail {
	display: none;
}

@media (min-width: 1360px) {
	.emz-share-rail {
		display: block;
		position: sticky;
		top: 110px;
		float: left;
		width: 42px;
		/* Marge négative > largeur : le rail ne décale pas le texte. */
		margin-left: -72px;
		z-index: 5;
	}

	.emz-share--sticky .emz-share__actions {
		flex-direction: column;
		gap: 8px;
	}

	.emz-share--sticky .emz-share__btn,
	.entry-content .emz-share--sticky a.emz-share__btn {
		width: 42px;
		height: 42px;
		min-height: 0;
		padding: 0;
	}
}

.emz-share__count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	padding: 3px 5px;
	border-radius: 999px;
	background: #6b6b6b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 12px;
	text-align: center;
	box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
	.emz-share__btn,
	.emz-follow__btn {
		transition: none;
	}
	.emz-share .emz-share__btn:hover {
		transform: none;
	}
}

@media print {
	.emz-follow,
	.emz-share,
	.emz-share-rail {
		display: none !important;
	}
}
