/* Hourglass — header pilule flottante (référence Milia Matcha, DA ardoise) et footer */

/* ---------- Header ---------- */

.hg-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding-top: 14px;
	pointer-events: none;
}

.hg-header__wrap {
	max-width: calc(var(--hg-content) + 2 * var(--hg-gutter));
	margin: 0 auto;
	padding: 0 var(--hg-gutter);
}

/* La pilule en verre, signature du site */
.hg-header__bar {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 28px;
	border-radius: var(--hg-r-pill);
	background: var(--hg-glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid var(--hg-glass-border);
	box-shadow: 0 18px 40px -22px rgba(79, 96, 104, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@supports not (backdrop-filter: blur(14px)) {
	.hg-header__bar {
		background: rgba(234, 237, 236, 0.92);
	}
}

.hg-header__zone {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 28px;
	min-width: 0;
}

.hg-header__zone--right {
	justify-content: flex-end;
}

.hg-header__brand {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	color: var(--hg-ink);
	flex: none;
}

.hg-header__brand span {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.22em;
}

.hg-header__nav {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 14.5px;
	font-weight: 500;
}

.hg-header__nav a {
	color: var(--hg-ink-soft);
	text-decoration: none;
	white-space: nowrap;
}

.hg-header__nav a:hover {
	color: var(--hg-ink);
}

/* Lien actif : soulignement ardoise 2px (spec du design system) */
.hg-header__nav a[aria-current='page'] {
	color: var(--hg-ink);
	box-shadow: inset 0 -2px 0 var(--hg-accent);
	padding-bottom: 2px;
}

/* Burger : deux traits fins (mobile) */
.hg-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin-left: -10px;
	padding: 0;
	background: none;
	border: 0;
	flex: none;
}

.hg-burger span {
	width: 22px;
	height: 1.8px;
	background: var(--hg-ink);
	display: block;
	transition: transform var(--hg-transition), opacity var(--hg-transition);
}

.hg-burger[aria-expanded='true'] span:first-child {
	transform: translateY(3.4px) rotate(45deg);
}

.hg-burger[aria-expanded='true'] span:last-child {
	transform: translateY(-3.4px) rotate(-45deg);
}

/* Menu mobile : carte arrondie sous la pilule */
.hg-mobile-menu {
	pointer-events: auto;
	display: none;
	flex-direction: column;
	margin-top: 10px;
	background: var(--hg-bg);
	border: 1px solid var(--hg-border-2);
	border-radius: var(--hg-r-card);
	box-shadow: var(--hg-shadow-panel);
	padding: 8px 22px 14px;
}

.hg-mobile-menu a {
	font: 500 17px/1.3 var(--hg-sans);
	color: var(--hg-ink);
	text-decoration: none;
	padding: 14px 0;
	border-bottom: 1px solid var(--hg-border-1);
}

.hg-mobile-menu a:last-child {
	border-bottom: 0;
}

.hg-mobile-menu.is-open {
	display: flex;
}

/* L'en-tête flotte : le contenu commence sous la pilule */
body {
	padding-top: 96px;
}

@media (max-width: 900px) {
	body {
		padding-top: 82px;
	}

	.hg-header {
		padding-top: 10px;
	}

	.hg-header__bar {
		position: relative;
		padding: 10px 16px;
		gap: 10px;
	}

	/* Logo réellement centré, zones libres de chaque côté */
	.hg-header__brand {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.hg-header__brand svg {
		width: 12px;
		height: 14px;
	}

	.hg-header__brand span {
		font-size: 12px;
		letter-spacing: 0.16em;
	}

	.hg-header__nav {
		display: none;
	}

	.hg-header__zone--right .hg-btn--nav {
		font-size: 12.5px;
		padding: 9px 14px;
	}

	.hg-burger {
		display: flex;
	}
}

/* Écrans étroits : losange seul au centre (le wordmark manquerait de place) */
@media (max-width: 480px) {
	.hg-header__brand span {
		display: none;
	}

	.hg-header__brand svg {
		width: 16px;
		height: 18px;
	}
}

/* ---------- Footer ---------- */

.hg-footer {
	background: var(--hg-dark);
	color: var(--hg-on-dark);
	padding-top: 64px;
}

.hg-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 44px;
	padding-bottom: 48px;
}

.hg-footer__logo {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 14px;
}

.hg-footer__logo span {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.22em;
}

.hg-footer__brand p {
	font-size: 14px;
	line-height: 1.65;
	color: var(--hg-on-dark-muted);
	max-width: 280px;
}

.hg-footer__col {
	font-size: 14px;
	line-height: 2.2;
}

.hg-footer__title {
	font: 600 12px/1.4 var(--hg-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hg-on-dark-muted);
	margin: 0 0 6px;
}

.hg-footer__col a {
	display: block;
	color: rgba(240, 244, 245, 0.85);
	text-decoration: none;
}

.hg-footer__col a:hover {
	color: var(--hg-accent-light);
}

.hg-footer__waitlist .hg-footer__title {
	margin-bottom: 12px;
}

.hg-footer__waitlist p {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--hg-on-dark-muted);
}

.hg-footer__form {
	display: flex;
	gap: 7px;
}

.hg-footer__email {
	flex: 1;
	min-width: 0;
	font: 400 14px/1.4 var(--hg-sans);
	color: var(--hg-on-dark);
	background: rgba(240, 244, 245, 0.08);
	border: 1px solid rgba(240, 244, 245, 0.22);
	border-radius: var(--hg-r-pill);
	padding: 11px 16px;
	transition: border-color var(--hg-transition), box-shadow var(--hg-transition);
}

.hg-footer__email::placeholder {
	color: rgba(240, 244, 245, 0.72);
}

.hg-footer__email:focus {
	border-color: var(--hg-accent-light);
	box-shadow: 0 0 0 3px rgba(154, 174, 181, 0.3);
}

.hg-footer__email.is-invalid {
	border-color: var(--hg-error-on-dark);
}

.hg-footer__form button {
	font: 600 13.5px/1.2 var(--hg-sans);
	color: var(--hg-dark);
	background: var(--hg-accent-light);
	border: none;
	border-radius: var(--hg-r-pill);
	padding: 11px 18px;
	transition: background var(--hg-transition);
}

.hg-footer__form button:hover {
	background: var(--hg-on-dark);
}

.hg-footer__ok {
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--hg-accent-light);
}

.hg-footer__bottom {
	border-top: 1px solid rgba(240, 244, 245, 0.14);
	padding: 20px 0 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 13px;
	color: var(--hg-on-dark-muted);
}

.hg-footer__social {
	display: flex;
	gap: 20px;
	font-weight: 500;
	color: rgba(240, 244, 245, 0.75);
}

@media (max-width: 900px) {
	.hg-footer {
		padding-top: 48px;
	}

	.hg-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-bottom: 36px;
	}

	.hg-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}
