/* =============================================================================
 * Astrolabe — Navigation layout
 * Chargé via wp_head priority 999 (après le CSS dynamique Elementor).
 * Sélecteurs basés sur _css_classes : résistants aux re-imports Elementor.
 * =========================================================================== */

/* ── Container nav : 1140px centré comme la topbar ─────────────────────── */
.jxc-nav-section {
	--content-width: 1140px !important;
}
/* Grille desktop : gauche | logo 200px | droite */
.jxc-nav-section > .e-con-inner {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr !important;
	align-items: center !important;
	gap: 0 !important;
}

/* ── Gauche : collé au logo central ────────────────────────────────────── */
/* e-con-full n'a PAS de .e-con-inner — les règles s'appliquent sur le container */
.jxc-nav-left {
	justify-self: start !important;
	min-width: 0;
	--justify-content: flex-end !important;
	justify-content: flex-end !important;
}
.jxc-nav-left > .e-con-inner { /* boxed fallback */
	justify-content: flex-end !important;
}

/* ── Logo icône central 200px + bordure blanche ─────────────────────────── */
/* Elementor génère un style inline depuis image_custom_dimension.
 * On force aussi dans le JSON (200x200) pour éviter le conflit. */
.jxc-nav-logo-center {
	place-self: center !important;
	overflow: visible !important;
}
.jxc-nav-logo-center .elementor-widget-container {
	overflow: visible !important;
	line-height: 0;
	width: 110px !important;
	height: 110px !important;
}
.jxc-nav-logo-center img {
	border-radius: 50% !important;
	border: 10px solid #ffffff !important;
	background: #ffffff !important;
	width: 110px !important;
	height: 110px !important;
	max-width: 110px !important;
	object-fit: contain !important;
	display: block !important;
	margin-bottom: -20px !important;
	box-sizing: border-box !important;
}

/* ── Droite : aligné à droite ───────────────────────────────────────────── */
.jxc-nav-right {
	justify-self: end !important;
	min-width: 0;
}
.jxc-nav-right > .e-con-inner {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex-wrap: nowrap !important;
	width: 100% !important;
}

/* ── Liens nav desktop ──────────────────────────────────────────────────── */
.jxc-nav-links {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
}
.jxc-nav-logo-link {
	flex-shrink: 0;
	line-height: 0;
	text-decoration: none;
}
.jxc-nav-logo-link img {
	width: 120px !important;
	max-width: 120px !important;
	height: auto !important;
	display: block;
}
.jxc-nav-logo-link:hover { opacity: 1 !important; }
.jxc-nav-links a:not(.jxc-nav-logo-link) {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 700 !important;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #000000;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}
.jxc-nav-links a:not(.jxc-nav-logo-link):hover { opacity: 0.55; }

/* ── Mobile : masquer topbar + désactiver grille nav ────────────────────── */
@media (max-width: 767px) {
	.jxc-topbar-section {
		display: none !important;
	}
	.jxc-nav-section > .e-con-inner {
		display: block !important;
		padding: 0 !important;
	}
	.jxc-mobile-wrapper {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ── Barre mobile (logo + actions) ─────────────────────────────────────── */
.jxc-mobile-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	height: 60px;
	background: #ffffff;
	position: relative;
	z-index: 10001;
	width: 100%;
	box-sizing: border-box;
}
.jxc-mobile-logo {
	line-height: 0;
	text-decoration: none;
}
.jxc-mobile-logo img {
	width: 110px;
	height: auto;
	display: block;
}
.jxc-mobile-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}
.jxc-mobile-search-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	font-size: 18px;
	color: #000000;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
}

/* ── Hamburger ──────────────────────────────────────────────────────────── */
.jxc-hamburger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	-webkit-tap-highlight-color: transparent;
}
.jxc-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #000000;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.2s ease;
	transform-origin: center;
}
.jxc-hamburger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.jxc-hamburger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}
.jxc-hamburger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Panneau menu mobile ────────────────────────────────────────────────── */
.jxc-mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	background: #ffffff;
	z-index: 10000;
	flex-direction: column;
	padding-top: 60px; /* hauteur de la barre */
	overflow-y: auto;
}
.jxc-mobile-menu.is-open {
	display: flex;
	animation: jxcMenuIn 0.25s ease forwards;
}
@keyframes jxcMenuIn {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.jxc-mobile-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 48px 20px 32px;
	flex: 1;
}
.jxc-mobile-nav a {
	font-family: 'Inter', sans-serif;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #000000;
	text-decoration: none;
	transition: opacity 0.2s ease;
}
.jxc-mobile-nav a:hover { opacity: 0.5; }

/* ── Footer du menu mobile (social + newsletter) ────────────────────────── */
.jxc-mobile-menu__footer {
	padding: 28px 20px 48px;
	border-top: 1px solid #efefef;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
.jxc-mobile-social .jxc-sn-list {
	display: flex;
	flex-direction: row;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.jxc-mobile-social .jxc-sn-icon {
	font-size: 22px;
	color: #000000;
	transition: opacity 0.2s ease;
}
.jxc-mobile-social .jxc-sn-link:hover .jxc-sn-icon { opacity: 0.5; }
.jxc-mobile-nl-btn {
	background: #000000;
	color: #ffffff;
	border: none;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	padding: 13px 28px;
	border-radius: 2px;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: opacity 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.jxc-mobile-nl-btn:hover { opacity: 0.75; }
