/**
 * mod_stickycontactbar_j6 — barre de contact fixe (desktop : haut, mobile : bas).
 * Se masque en glissant vers le bord le plus proche apres N% de la hauteur de
 * page defilee (parametrable). Le point de rupture mobile est injecte en
 * <style> par instance dans tmpl/default.php car il est reglable en admin.
 *
 * @copyright  (C) 2026 Langage Machine
 * @license    GNU General Public License version 2 or later
 */

.lm-stickybar {
	position: fixed;
	top: var(--lm-stickybar-header-offset, 0px);
	left: 0;
	right: 0;
	z-index: var(--lm-stickybar-z, 9000);
	background: var(--lm-stickybar-bg, #E4F0FA);
	transform: translateY(0);
	transition: transform .25s ease, top .2s ease;
	will-change: transform;
}

.lm-stickybar.is-hidden {
	transform: translateY(-100%);
}

.lm-stickybar-inner {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 9px;
	padding-bottom: 9px;
	/* Alignes sur le logo/menu reels du site (mesures en JS), pas sur une
	   largeur de conteneur maison qui n'a aucune raison de coincider avec
	   celle, propre au style actif, du header du template. */
	padding-left: var(--lm-stickybar-pad-left, 24px);
	padding-right: var(--lm-stickybar-pad-right, 24px);
}

.lm-stickybar-identity {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--lm-stickybar-fg, #17253D);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lm-stickybar-sep {
	margin: 0 8px;
	font-weight: 400;
	opacity: .5;
}

.lm-stickybar-cta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.lm-stickybar-contact {
	font-size: 14px;
	color: var(--lm-stickybar-fg, #17253D);
	white-space: nowrap;
}

.lm-stickybar .lm-stickybar-btn.m365-btn {
	padding: 7px 20px;
	font-size: 14px;
	border-radius: 4px;
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.lm-stickybar {
		transition: none;
	}
}
