/**
 * NOVFR LP Kit - Barre de réservation.
 * Chemin : assets/css/booking-bar.css
 *
 * Mobile : barre pleine largeur collée en bas. Ordinateur : pilule centrée,
 * flottante, fond translucide flouté. Elle monte doucement quand le script
 * pose is-on (aucun bouton vers le formulaire à l'écran). Toute la barre est
 * le lien ; la pastille d'action reste discrète et prend l'accent au survol.
 * Couleurs du profil par défaut, réglables dans Style › Barre.
 */
.novfr-bbar {
	--bb-bg: color-mix(in srgb, var(--novfr-lp-surface, #0e222c) 94%, transparent);
	--bb-text: var(--novfr-lp-on-surface, #fff);
	--bb-label: var(--novfr-lp-muted, #9dd5e6);
	--bb-accent: var(--novfr-lp-accent, #c72c41);
	--bb-offset: 22px;
	--bb-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	position: fixed;
	z-index: 98;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 16px;
	background: var(--bb-bg);
	border-top: 1px solid color-mix(in srgb, var(--bb-label) 24%, transparent);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
	color: var(--bb-text) !important;
	text-decoration: none !important;
	transform: translateY(110%);
	visibility: hidden;
	transition: transform 0.35s var(--bb-ease), visibility 0s linear 0.35s;
}

.novfr-bbar.is-on {
	transform: none;
	visibility: visible;
	transition: transform 0.35s var(--bb-ease), visibility 0s;
}

.novfr-bbar-txt {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.novfr-bbar-k {
	color: var(--bb-label);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.novfr-bbar-v {
	overflow: hidden;
	color: var(--bb-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Pastille d'action : teinte légère de l'accent, pleine au survol. */
.novfr-bbar-go {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 5px 0 14px;
	border: 1px solid color-mix(in srgb, var(--bb-accent) 55%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--bb-accent) 20%, transparent);
	color: var(--bb-text);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.novfr-bbar-go svg {
	width: 32px;
	height: 32px;
	box-sizing: border-box;
	padding: 8px;
	border-radius: 50%;
	background: var(--bb-accent);
	color: #fff;
	transition: transform 0.2s ease-out;
}

.novfr-bbar:hover .novfr-bbar-go,
.novfr-bbar:focus-visible .novfr-bbar-go {
	background: var(--bb-accent);
	border-color: var(--bb-accent);
}

.novfr-bbar:hover .novfr-bbar-go svg,
.novfr-bbar:focus-visible .novfr-bbar-go svg {
	transform: translateX(2px);
}

.novfr-bbar:focus-visible {
	outline: 3px solid var(--bb-label);
	outline-offset: 3px;
}

/* Très petits écrans : la flèche seule, la date garde la place. */
@media (max-width: 359px) {
	.novfr-bbar-cta {
		display: none;
	}

	.novfr-bbar-go {
		padding: 0 5px;
	}
}

@media (min-width: 768px) {
	.novfr-bbar {
		left: 50%;
		right: auto;
		bottom: var(--bb-offset);
		width: max-content;
		max-width: calc(100vw - 48px);
		padding: 7px 7px 7px 24px;
		border: 1px solid color-mix(in srgb, var(--bb-label) 28%, transparent);
		border-radius: 999px;
		background: color-mix(in srgb, var(--bb-bg) 92%, transparent);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
		translate: -50% 0;
		transform: translateY(calc(100% + var(--bb-offset) + 24px));
	}

	.novfr-bbar.is-on {
		transform: none;
	}

	.novfr-bbar-txt {
		flex-direction: row;
		align-items: baseline;
		gap: 12px;
		margin-right: 10px;
	}

	.novfr-bbar-v {
		font-size: 15.5px;
	}

	.novfr-bbar-go {
		gap: 10px;
		padding-left: 16px;
		font-size: 14px;
	}
}

/* Éditeur Elementor : la barre est posée dans la page, visible, pour être réglée. */
.novfr-bbar.novfr-bbar--editor {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	margin: 0 auto;
	translate: none;
	transform: none;
	visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
	.novfr-bbar,
	.novfr-bbar.is-on,
	.novfr-bbar-go,
	.novfr-bbar-go svg {
		transition: none;
	}
}
