/* High Mountain — base reset & section conventions (fleshed out per section as built) */

.hm-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html {
	scroll-behavior: smooth;
	/*
	 * Le volet burger hors-écran (position:fixed + translateX) échappe au
	 * clipping du body ; seul un overflow sur la racine se propage au
	 * viewport et clippe aussi les éléments fixed.
	 */
	overflow-x: clip;
}

body {
	background: var(--wp--preset--color--bg-primary);
	overflow-x: clip;
}

/* ---------- Header ---------- */
/*
 * The sticky positioning must live on the template-part wrapper WordPress
 * generates around the header (a plain <header class="wp-block-template-part">),
 * not on .hm-header itself — that wrapper is only as tall as its content, so a
 * sticky child inside it runs out of "room" to stay pinned almost immediately
 * and just scrolls away with the page.
 */
header.wp-block-template-part:has(.hm-header) {
	position: sticky;
	top: 0;
	z-index: 100;
}

.hm-header {
	background: rgba(7, 8, 11, 0.85);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding: 18px 48px !important;
	align-items: center;
}

.hm-header__logo img {
	height: 36px;
	width: auto;
}

.hm-nav {
	display: flex;
	align-items: center;
	gap: 40px;
}

.hm-nav a {
	font-family: var(--wp--preset--font-family--anton);
	font-size: 16px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-1);
	text-decoration: none;
}

.hm-nav a:hover {
	color: var(--wp--preset--color--accent);
}

.hm-burger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 26px;
	height: 18px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.hm-burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--text-1);
}

/* ---------- Streaming bar ---------- */
.hm-streaming-bar {
	background: var(--wp--preset--color--bg-secondary);
	padding: 12px 48px !important;
	gap: 28px;
	flex-wrap: wrap;
}

.hm-streaming-bar__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--wp--preset--color--text-7);
}

.hm-streaming-bar a {
	font-family: var(--wp--preset--font-family--anton);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-4);
	text-decoration: none;
}

.hm-streaming-bar__sep {
	width: 1px;
	height: 14px;
	background: rgba(255, 255, 255, 0.14);
}

.hm-streaming-bar a:hover {
	color: var(--wp--preset--color--accent);
}

/* ---------- Footer ---------- */
.hm-footer {
	background: var(--wp--preset--color--bg-tertiary);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 28px 48px !important;
	align-items: center;
}

.hm-footer__logo img {
	height: 22px;
	width: auto;
}

.hm-footer__credit {
	font-size: 12px;
	letter-spacing: 1px;
	color: var(--wp--preset--color--text-8);
	margin: 0;
}

/* ---------- Sections (shared) ---------- */
.hm-section {
	padding: 100px 120px !important;
	max-width: none !important;
}

/* ---------- Hero ---------- */
.hm-hero {
	padding: 0 !important;
	position: relative;
	height: 780px;
	overflow: hidden;
}

.hm-hero__media {
	position: relative;
	width: 100%;
	height: 100%;
}

.hm-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05) brightness(0.75);
}

.hm-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 8, 11, 0.55) 0%, rgba(7, 8, 11, 0.1) 35%, rgba(7, 8, 11, 0.92) 100%);
}

.hm-hero__emblem {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 460px;
	max-width: 80vw;
	height: auto;
	mix-blend-mode: screen;
	animation: hmfade 1.4s ease both;
}

@keyframes hmfade {
	0% { opacity: 0; }
	100% { opacity: 1; }
}

.hm-hero__bottom {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}

.hm-hero__tagline {
	font-size: 12px;
	letter-spacing: 6px;
	color: var(--wp--preset--color--text-2);
	margin: 0;
	text-transform: uppercase;
}

.hm-hero__scroll {
	font-size: 11px;
	color: var(--wp--preset--color--text-5);
	margin: 0;
}

/* ---------- Tour ---------- */
.hm-tour {
	background-image: var(--hm-tour-bg);
	background-size: cover;
	background-position: center 30%;
	background-color: var(--wp--preset--color--bg-tertiary);
	position: relative;
}

.hm-tour::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(5, 6, 9, 0.55);
	z-index: 0;
}

.hm-tour > * {
	position: relative;
	z-index: 1;
}

.hm-tour__label {
	color: var(--wp--preset--color--text-5);
	font-size: 22px;
	margin-top: 48px;
}

.hm-tour__upcoming,
.hm-tour__past {
	display: grid;
}

.hm-tour__row {
	display: grid;
	grid-template-columns: 160px 1fr 340px;
	gap: 16px;
	padding: 22px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	align-items: center;
}

.hm-tour__date {
	font-family: var(--wp--preset--font-family--anton);
	font-size: 24px;
	color: var(--wp--preset--color--accent);
	white-space: nowrap;
}

.hm-tour__event {
	font-size: 19px;
	font-weight: 600;
	color: var(--wp--preset--color--text-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hm-tour__city {
	font-size: 15px;
	color: var(--wp--preset--color--text-3);
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hm-tour__past {
	grid-auto-flow: column;
	grid-template-rows: repeat(var(--hm-past-rows, 10), auto);
	grid-template-columns: repeat(2, 1fr);
	column-gap: 64px;
}

.hm-tour__past .hm-tour__row {
	grid-template-columns: 80px 1fr auto;
	gap: 12px;
}

.hm-tour__row--past .hm-tour__date {
	font-size: 14px;
	color: var(--wp--preset--color--text-6);
	font-family: var(--wp--preset--font-family--archivo);
}

.hm-tour__row--past .hm-tour__event {
	font-size: 15px;
	font-weight: 400;
	color: var(--wp--preset--color--text-3);
}

.hm-tour__row--past .hm-tour__city {
	font-size: 14px;
	color: var(--wp--preset--color--text-6);
	text-align: left;
}

/* ---------- Listen ---------- */
.hm-listen {
	position: relative;
	background-image: var(--hm-listen-bg);
	background-size: cover;
	background-position: center 70%;
	background-color: var(--wp--preset--color--bg-tertiary);
}

.hm-listen::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(5, 6, 9, 0.68);
	z-index: 0;
}

.hm-listen > * {
	position: relative;
	z-index: 1;
}

.hm-listen__subtitle a {
	color: var(--wp--preset--color--accent);
}

.hm-listen-player {
	max-width: 700px;
	margin: 48px auto 0;
}

.hm-listen-player__release + .hm-listen-player__release {
	margin-top: 48px;
}

.hm-listen-player__release-title {
	font-size: 22px;
	margin-bottom: 16px;
}

.hm-listen-player iframe {
	width: 100%;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--bg-card);
}

/* ---------- Video ---------- */
.hm-video__list {
	display: flex;
	flex-direction: column;
	gap: 48px;
	margin-top: 48px;
}

.hm-video__item {
	margin: 0 auto;
	width: 100%;
	max-width: 960px;
}

.hm-video__embed {
	aspect-ratio: 16 / 9;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--bg-card);
}

.hm-video__embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.hm-video__caption {
	margin-top: 12px;
	font-size: 14px;
	color: var(--wp--preset--color--text-4);
}

/* ---------- Bio ---------- */
.hm-bio {
	background: var(--wp--preset--color--bg-primary);
	padding: 0 !important;
	gap: 0 !important;
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
}

.hm-bio__media {
	background: var(--wp--preset--color--bg-tertiary);
	display: flex;
	align-items: center;
}

.hm-bio__img {
	width: 100%;
	height: auto;
	filter: grayscale(1) brightness(0.9);
}

.hm-bio__content {
	padding: 90px 80px !important;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hm-bio__content p {
	font-size: 16px;
	line-height: 1.85;
	color: var(--wp--preset--color--text-2);
}

.hm-bio__accent {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	font-style: normal;
}

.hm-bio__quote {
	border-left: 2px solid var(--wp--preset--color--accent);
	padding-left: 20px;
	font-style: italic;
	color: var(--wp--preset--color--text-4);
}

/* ---------- Store ---------- */
.hm-store__link a {
	font-family: var(--wp--preset--font-family--anton);
	font-size: 16px;
	color: var(--wp--preset--color--accent);
}

.hm-store__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	margin-top: 48px;
}

.hm-store__img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s ease;
}

.hm-store__card:hover .hm-store__img {
	transform: scale(1.03);
}

.hm-store__img--placeholder {
	background: var(--wp--preset--color--bg-card);
	border: 1px dashed var(--wp--preset--color--border);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--wp--preset--color--text-6);
	font-size: 13px;
	padding: 20px;
}

.hm-store__title {
	font-size: 26px;
	margin-top: 20px;
	margin-bottom: 6px;
}

.hm-store__desc {
	font-size: 14px;
	color: var(--wp--preset--color--text-4);
	margin-bottom: 16px;
}

.hm-store__button {
	display: inline-block;
	font-family: var(--wp--preset--font-family--anton);
	font-size: 14px;
	letter-spacing: 2px;
	background: var(--wp--preset--color--accent);
	color: #08090c;
	padding: 14px 26px;
	text-decoration: none;
}

.hm-store__button:hover {
	background: var(--wp--preset--color--accent-hover);
	color: #08090c;
}

/* ---------- Contact ---------- */
.hm-contact {
	background: #07080b;
	gap: 80px !important;
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
}

.hm-contact__email a,
.hm-contact-email {
	font-family: var(--wp--preset--font-family--anton);
	font-size: 22px;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.hm-contact__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 24px;
}

.hm-contact__socials a {
	font-family: var(--wp--preset--font-family--anton);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-4);
	text-decoration: none;
}

.hm-contact__socials a:hover {
	color: var(--wp--preset--color--accent);
}

.hm-contact__note {
	font-size: 12px;
	color: var(--wp--preset--color--text-8);
}

.hm-contact__form input[type="text"],
.hm-contact__form input[type="email"],
.hm-contact__form textarea {
	box-sizing: border-box;
	width: 100%;
	background: var(--wp--preset--color--bg-card);
	border: 1px solid var(--wp--preset--color--border);
	padding: 15px 18px;
	font-size: 15px;
	color: var(--wp--preset--color--text-1);
	margin-bottom: 16px;
}

.hm-contact__form input:focus,
.hm-contact__form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hm-section {
		padding: 60px 24px !important;
	}

	/* Le hero reste bord à bord, sans le padding de section mobile. */
	.hm-section.hm-hero {
		padding: 0 !important;
	}

	.hm-section.hm-bio {
		padding: 0 !important;
	}

	.hm-bio,
	.hm-contact {
		grid-template-columns: 1fr !important;
	}

	.hm-store__grid {
		grid-template-columns: 1fr;
	}

	.hm-tour__row {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}

	.hm-tour__event,
	.hm-tour__city {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		text-align: left;
	}

	.hm-tour__past {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.hm-bio__content {
		padding: 48px 24px !important;
	}
}

@media (max-width: 700px) {
	/*
	 * Hero mobile : la photo paysage s'affiche entière (hauteur naturelle)
	 * au lieu d'être recadrée dans les 780px fixes du desktop ; l'emblème
	 * est réduit en proportion et la tagline passe sous la photo.
	 */
	.hm-hero {
		height: auto;
	}

	.hm-hero__media {
		height: auto;
	}

	.hm-hero__img {
		height: auto;
		object-fit: unset;
	}

	.hm-hero__emblem {
		top: 8px;
		width: 42vw;
	}

	.hm-hero__bottom {
		position: static;
		transform: none;
		padding: 18px 24px 6px;
	}

	.hm-burger {
		display: flex;
	}

	.hm-nav {
		position: fixed;
		inset: 0 0 0 auto;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 32px;
		width: min(320px, 80vw);
		background: var(--wp--preset--color--bg-tertiary);
		transform: translateX(100%);
		transition: transform 0.3s ease;
	}

	.hm-nav.is-open {
		transform: translateX(0);
	}
}
