/* BNEI – Bouton flottant d'abonnement */
#bnei-bf {
	--bnei-bf-primary: #0B1F4B;
	--bnei-bf-accent: #F7C636;
	--bnei-bf-accent-text: #0B1F4B;
	--bnei-bf-side: 24px;
	--bnei-bf-bottom: 24px;
	--bnei-bf-ink: #0B1F4B;
	--bnei-bf-muted: #4A5878;
	--bnei-bf-line: #DCE3F1;
	--bnei-bf-soft: #F2F5FB;
	position: fixed;
	bottom: calc(var(--bnei-bf-bottom) + env(safe-area-inset-bottom, 0px));
	right: var(--bnei-bf-side);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--bnei-bf-ink);
	-webkit-font-smoothing: antialiased;
	pointer-events: none;
}
#bnei-bf.bnei-bf--left { right: auto; left: var(--bnei-bf-side); align-items: flex-start; }
#bnei-bf *, #bnei-bf *::before, #bnei-bf *::after { box-sizing: border-box; }
#bnei-bf > * { pointer-events: auto; }

/* ---------- Bouton déclencheur ---------- */
#bnei-bf .bnei-bf__trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 20px 8px 8px;
	min-height: 56px;
	border: 0;
	border-radius: 999px;
	background: var(--bnei-bf-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(11, 31, 75, .28), 0 2px 6px rgba(11, 31, 75, .18);
	transition: transform .2s ease, box-shadow .2s ease;
	-webkit-tap-highlight-color: transparent;
}
#bnei-bf .bnei-bf__trigger:hover { background: var(--bnei-bf-primary); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11, 31, 75, .32), 0 3px 8px rgba(11, 31, 75, .2); }
#bnei-bf .bnei-bf__trigger:focus { outline: none; background: var(--bnei-bf-primary); color: #fff; }
#bnei-bf .bnei-bf__trigger:focus-visible { outline: 3px solid var(--bnei-bf-accent); outline-offset: 3px; }
#bnei-bf .bnei-bf__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bnei-bf-accent);
	color: var(--bnei-bf-accent-text);
}
#bnei-bf .bnei-bf__icon svg { display: block; }
#bnei-bf .bnei-bf__labels { display: flex; flex-direction: column; line-height: 1.15; }
#bnei-bf .bnei-bf__label { font-size: 15px; font-weight: 700; color: #fff; }
#bnei-bf .bnei-bf__sub { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .78); margin-top: 2px; }
#bnei-bf .bnei-bf__dot {
	position: absolute;
	top: 4px;
	left: 38px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--bnei-bf-primary);
	display: none;
}
#bnei-bf.bnei-bf--pulse:not(.is-seen) .bnei-bf__dot { display: block; }
#bnei-bf.bnei-bf--pulse:not(.is-seen) .bnei-bf__dot::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px solid var(--bnei-bf-accent);
	animation: bnei-bf-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes bnei-bf-ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

#bnei-bf.is-open .bnei-bf__trigger .bnei-bf__dot { display: none; }

/* ---------- Pop-up ---------- */
#bnei-bf .bnei-bf__panel {
	position: relative;
	width: 340px;
	max-width: calc(100vw - 2 * var(--bnei-bf-side));
	max-height: calc(100vh - var(--bnei-bf-bottom) - 96px);
	max-height: calc(100dvh - var(--bnei-bf-bottom) - 96px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 22px 22px 18px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--bnei-bf-line);
	box-shadow: 0 24px 60px rgba(11, 31, 75, .25), 0 4px 14px rgba(11, 31, 75, .12);
	opacity: 0;
	transform: translateY(12px) scale(.98);
	transform-origin: bottom right;
	transition: opacity .22s ease, transform .22s ease;
	text-align: left;
}
#bnei-bf.bnei-bf--left .bnei-bf__panel { transform-origin: bottom left; }
#bnei-bf .bnei-bf__panel[hidden] { display: none; }
#bnei-bf.is-open .bnei-bf__panel { opacity: 1; transform: none; }
#bnei-bf .bnei-bf__panel:focus { outline: none; }
#bnei-bf .bnei-bf__panel::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	border-radius: 20px 20px 0 0;
	background: linear-gradient(90deg, var(--bnei-bf-primary), #2C6FB7 60%, var(--bnei-bf-accent));
}

#bnei-bf .bnei-bf__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bnei-bf-soft);
	color: var(--bnei-bf-ink);
	cursor: pointer;
	box-shadow: none;
	transition: background .15s ease;
}
#bnei-bf .bnei-bf__close:hover, #bnei-bf .bnei-bf__close:focus { background: var(--bnei-bf-line); color: var(--bnei-bf-ink); }
#bnei-bf .bnei-bf__close:focus { outline: none; }
#bnei-bf .bnei-bf__close:focus-visible { outline: 3px solid var(--bnei-bf-accent); outline-offset: 2px; }
#bnei-bf .bnei-bf__close svg { display: block; }

#bnei-bf .bnei-bf__head { margin: 2px 44px 12px 0; }
#bnei-bf .bnei-bf__logo { display: block; width: auto; max-width: 150px; height: auto; max-height: 64px; margin: 0; border: 0; box-shadow: none; border-radius: 0; }

#bnei-bf p, #bnei-bf ul { margin: 0; padding: 0; }
#bnei-bf .bnei-bf__kicker {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bnei-bf-soft);
	color: #1D4FA1;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
#bnei-bf .bnei-bf__title {
	margin-bottom: 6px;
	color: var(--bnei-bf-primary);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
}
#bnei-bf .bnei-bf__text { margin-bottom: 12px; color: var(--bnei-bf-muted); font-size: 14px; line-height: 1.5; }
#bnei-bf .bnei-bf__text a { color: #1D4FA1; text-decoration: underline; }

#bnei-bf .bnei-bf__list { list-style: none; margin-bottom: 14px; display: grid; gap: 7px; }
#bnei-bf .bnei-bf__list li {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	padding: 0;
	color: var(--bnei-bf-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	list-style: none;
}
#bnei-bf .bnei-bf__list li::before, #bnei-bf .bnei-bf__list li::marker { content: none; }
#bnei-bf .bnei-bf__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 0;
	border-radius: 50%;
	background: var(--bnei-bf-accent);
	color: var(--bnei-bf-accent-text);
}
#bnei-bf .bnei-bf__check svg { display: block; }

#bnei-bf .bnei-bf__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 12px;
	color: var(--bnei-bf-muted);
	font-size: 13px;
}
#bnei-bf .bnei-bf__price strong { color: var(--bnei-bf-primary); font-size: 24px; font-weight: 800; letter-spacing: -.01em; }

#bnei-bf .bnei-bf__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 50px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--bnei-bf-accent);
	color: var(--bnei-bf-accent-text);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	box-shadow: 0 6px 16px rgba(247, 198, 54, .45);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
#bnei-bf .bnei-bf__cta:hover, #bnei-bf .bnei-bf__cta:focus { color: var(--bnei-bf-accent-text); background: var(--bnei-bf-accent); text-decoration: none; filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(247, 198, 54, .55); }
#bnei-bf .bnei-bf__cta:focus { outline: none; }
#bnei-bf .bnei-bf__cta:focus-visible { outline: 3px solid var(--bnei-bf-primary); outline-offset: 3px; }
#bnei-bf .bnei-bf__cta svg { display: block; flex: 0 0 auto; transition: transform .15s ease; }
#bnei-bf .bnei-bf__cta:hover svg { transform: translateX(3px); }

#bnei-bf .bnei-bf__secondary {
	display: block;
	margin-top: 10px;
	color: #1D4FA1;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
}
#bnei-bf .bnei-bf__secondary:hover, #bnei-bf .bnei-bf__secondary:focus { color: var(--bnei-bf-primary); }

#bnei-bf .bnei-bf__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--bnei-bf-line);
	color: #6B7898;
	font-size: 12px;
}
#bnei-bf .bnei-bf__note svg { flex: 0 0 auto; }

/* ---------- Appareils ---------- */
@media (max-width: 767px) {
	#bnei-bf.bnei-bf--hide-mobile { display: none !important; }
	#bnei-bf { --bnei-bf-side: 16px; --bnei-bf-bottom: 16px; }
	#bnei-bf .bnei-bf__trigger { min-height: 52px; padding: 6px 16px 6px 6px; }
	#bnei-bf .bnei-bf__sub { display: none; }
	/* Pop-up en feuille basse sur mobile */
	#bnei-bf .bnei-bf__panel {
		position: fixed;
		left: 8px;
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom, 0px));
		width: auto;
		max-width: none;
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
		transform: translateY(24px);
	}
	#bnei-bf.is-open .bnei-bf__trigger { visibility: hidden; }
	#bnei-bf .bnei-bf__panel { padding: 18px 18px 14px; border-radius: 18px; }
	#bnei-bf .bnei-bf__head { margin-bottom: 8px; }
	#bnei-bf .bnei-bf__logo { max-height: 46px; }
	#bnei-bf .bnei-bf__title { font-size: 19px; }
	#bnei-bf .bnei-bf__text { font-size: 13.5px; margin-bottom: 10px; }
	#bnei-bf .bnei-bf__list { gap: 6px; margin-bottom: 10px; }
	#bnei-bf .bnei-bf__list li { font-size: 13.5px; }
	#bnei-bf .bnei-bf__note { margin-top: 8px; padding-top: 8px; }
}
@media (min-width: 768px) {
	#bnei-bf.bnei-bf--hide-desktop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	#bnei-bf .bnei-bf__trigger, #bnei-bf .bnei-bf__panel, #bnei-bf .bnei-bf__cta, #bnei-bf .bnei-bf__cta svg { transition: none; }
	#bnei-bf .bnei-bf__dot::after { animation: none !important; }
}

@media print { #bnei-bf { display: none !important; } }
