/* ═══════════════════════════════════════════
   HEADER — Nav sticky, Madras thread, Mobile menu
   ═══════════════════════════════════════════ */

/* ── Desktop Nav ── */
.nav {
	position: fixed;
	top: 12px;
	left: 24px;
	right: 24px;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 32px;
	border-radius: 16px;
	background: rgba(15,25,35,.55);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	border: 1px solid rgba(255,255,255,.1);
	transition: background .35s ease, padding .25s ease, color .35s ease, border-radius .35s ease, top .25s ease, left .25s ease, right .25s ease;
	color: var(--paper);
}

/* Dark hero pages (home) → white text on dark glass */
.nav--light { color: var(--paper); }
/* Light hero pages (logements) → dark nav with light blur */
.nav--dark {
	color: var(--sea-deep);
	background: rgba(251,248,240,.65);
	border: 1px solid rgba(255,255,255,.25);
}

.nav.scrolled {
	top: 0;
	left: 0;
	right: 0;
	border-radius: 0;
	background: rgba(251,248,240,.92);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	border: none;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	padding: 14px 64px;
}

/* ── Brand ── */
.nav .brand {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--f-display);
	font-size: 26px;
	letter-spacing: .005em;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.nav .brand .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--coral);
	display: inline-block;
	align-self: center;
}

.nav .brand .it {
	font-style: italic;
	font-weight: 400;
}

/* ── Links ── */
.nav-links {
	display: flex;
	align-items: center;
	gap: 36px;
}

.nav-links a {
	font-size: 13px;
	letter-spacing: .02em;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	transition: opacity .2s;
}

.nav-links a:hover { opacity: .7; }

/* ── Nav Dropdown ── */
.nav-dropdown {
	position: relative;
}

.nav-dropdown > a {
	font-size: 13px;
	letter-spacing: .02em;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	transition: opacity .2s;
}

.nav-dropdown > a:hover { opacity: .7; }

.nav-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	padding-top: 12px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
	opacity: 1;
	pointer-events: auto;
}

.nav-dropdown-menu a {
	display: block;
	background: var(--paper);
	color: var(--ink) !important;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	border-bottom: 1px solid var(--line);
	transition: background .15s, color .15s;
}

.nav-dropdown-menu a:first-child {
	border-radius: 8px 8px 0 0;
}

.nav-dropdown-menu a:last-child {
	border-radius: 0 0 8px 8px;
	border-bottom: 0;
}

.nav-dropdown-menu a:hover {
	background: var(--coral) !important;
	color: var(--paper) !important;
	opacity: 1;
}

/* ── CTA ── */
.nav .cta {
	padding: 11px 20px;
	border-radius: 999px;
	background: var(--coral);
	color: var(--paper);
	border: 1px solid var(--coral);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 600;
	text-decoration: none;
	transition: all .25s ease;
	white-space: nowrap;
}

.nav .cta:hover {
	background: var(--ink);
	border-color: var(--ink);
}

/* ── Burger ── */
.burger {
	display: none;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 0;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	color: inherit;
}

.burger i {
	display: block;
	width: 24px;
	height: 1.5px;
	background: currentColor;
	transition: transform .3s ease, opacity .3s ease;
}

/* ── Mobile Menu ── */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(15,25,35,.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .35s ease;
}

.mobile-menu.open {
	opacity: 1;
	pointer-events: auto;
}

.mm-inner {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(440px, 86vw);
	background: var(--paper);
	color: var(--ink);
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.mobile-menu.open .mm-inner {
	transform: translateX(0);
}

.mm-close {
	align-self: flex-end;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: transparent;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 48px;
	cursor: pointer;
}

.mm-close:hover { background: var(--bg); }

.mm-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mm-nav a {
	font-family: var(--f-display);
	font-size: 34px;
	color: var(--ink);
	text-decoration: none;
	padding: 8px 0;
	transition: color .2s;
}

.mm-nav a .it { font-style: italic; }
.mm-nav a .sea { color: var(--sea); font-style: italic; }
.mm-nav a .coral { color: var(--coral); font-style: italic; }

.mm-nav a:hover { color: var(--coral); }

/* Mobile sub-menu */
.mm-sub {
	display: flex;
	flex-direction: column;
	padding-left: 20px;
	margin-bottom: 4px;
}

.mm-sub a {
	font-family: var(--f-body) !important;
	font-size: 16px !important;
	color: var(--ink-soft);
	text-decoration: none;
	padding: 6px 0;
	transition: color .2s;
}

.mm-sub a:hover { color: var(--coral); }

.mm-eyebrow {
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ink-mute);
	margin-top: 48px;
	margin-bottom: 12px;
}

.mm-contact a {
	display: block;
	font-family: var(--f-display);
	font-size: 22px;
	font-style: italic;
	color: var(--sea);
	margin-bottom: 6px;
}

.mm-cta {
	margin-top: auto;
	padding-top: 32px;
}

/* ── Responsive ── */
@media (max-width: 1000px) {
	.nav-links { display: none; }
	.burger { display: flex; }
}

@media (max-width: 760px) {
	.nav { left: 12px; right: 12px; top: 8px; padding: 14px 18px; border-radius: 12px; }
	.nav.scrolled { padding: 12px 18px; }
}
