/* Kaelia Formations — Header CTA button (blanc / texte violet)
 * Detached from the main menu via assets/js/header-cta.js
 */

/* Fixed wrapper top-right when detached */
.kf-cta-floating {
	position: fixed;
	top: 18px;
	right: 24px;
	z-index: 99999;
	pointer-events: auto;
}

/* In-flow CTA (li injected by wp_nav_menu_items, hidden by JS once moved) */
.kf-header-cta {
	display: inline-block;
	margin-left: 1.25rem;
	list-style: none;
}

.kf-header-cta a,
.kf-header-cta a:link,
.kf-header-cta a:visited,
.kf-cta-floating a,
.kf-cta-floating a:link,
.kf-cta-floating a:visited {
	display: inline-block;
	background: #ffffff !important;
	color: #240046 !important;
	padding: 0.55rem 1.4rem !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
	border: 2px solid #240046 !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
	box-shadow: 0 2px 6px rgba(36, 0, 70, 0.12);
}

.kf-header-cta a:hover,
.kf-header-cta a:focus,
.kf-cta-floating a:hover,
.kf-cta-floating a:focus {
	background: #240046 !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(36, 0, 70, 0.3);
	text-decoration: none !important;
}

/* Neutralize any inherited menu hover underline */
.kf-header-cta a::before,
.kf-header-cta a::after,
.kf-cta-floating a::before,
.kf-cta-floating a::after {
	display: none !important;
}

/* WordPress admin bar offset */
.admin-bar .kf-cta-floating {
	top: 50px;
}
@media screen and (max-width: 782px) {
	.admin-bar .kf-cta-floating {
		top: 64px;
	}
}

/* Mobile: smaller button */
@media (max-width: 768px) {
	.kf-cta-floating {
		top: 12px;
		right: 12px;
	}
	.kf-cta-floating a,
	.kf-header-cta a {
		padding: 0.4rem 0.9rem !important;
		font-size: 0.85rem !important;
	}
}
