.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	line-height: 0;
	background: #0d1a14;
}

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

/*
 * Cadre visible + scène 16:9.
 * Poteau / ardoise en % de la scène = même point sur l’image, tout viewport.
 */
.hero__frame {
	position: relative;
	width: 100%;
	overflow: hidden;
	line-height: 0;
}

.hero__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1280 / 720;
	overflow: hidden;
}

.hero__image {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	pointer-events: none;
	user-select: none;
}

.hero__picture {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	line-height: 0;
}

.hero__welcome {
	position: absolute;
	z-index: 4;
	top: 3.5%;
	left: 50%;
	transform: translateX(-50%);
	width: min(92%, 34rem);
	padding: 0.65rem 1.1rem 0.8rem;
	text-align: center;
	line-height: 1.35;
	color: var(--rt-color-cream, #faf6ee);
	background: linear-gradient(
		180deg,
		rgba(20, 32, 24, 0.72) 0%,
		rgba(20, 32, 24, 0.55) 100%
	);
	border: 1px solid rgba(236, 188, 140, 0.35);
	box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.hero__welcome-title {
	margin: 0 0 0.25rem;
	font-family: var(--rt-font-display, "Cinzel", serif);
	font-size: clamp(1.35rem, 3.2vw, 1.85rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	color: #ecbc8c;
	line-height: 1.15;
}

.hero__welcome-text {
	margin: 0;
	font-family: var(--rt-font-body, Georgia, serif);
	font-size: clamp(0.85rem, 1.6vw, 1.05rem);
	color: rgba(250, 246, 238, 0.95);
	line-height: 1.4;
}

/* Coordonnées fixes par rapport à l’image (1280×720) */

/*
 * Tableau (cadre dessiné sur le tonneau) —
 * miniature masquée pour épouser exactement le centre du cadre.
 */
.hero__featured {
	position: absolute;
	z-index: 4;
	/* Cadre intérieur du tableau (hero-festival 1280×720) */
	left: 4.45%;
	bottom: 38.06%;
	width: 14.77%;
	height: 20%;
	display: block;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: none;
	border-radius: 0;
	box-shadow: none;
	transform: none;
	background: #1a1814;
	text-decoration: none;
	color: inherit;
	line-height: 0;
	-webkit-mask-image: none;
	mask-image: none;
	-webkit-clip-path: polygon(0% 0%, 92.06% 6.25%, 100% 94.44%, 4.76% 100%);
	clip-path: polygon(0% 0%, 92.06% 6.25%, 100% 94.44%, 4.76% 100%);
}

.hero__featured:focus-visible {
	outline: 2px solid #ecbc8c;
	outline-offset: 3px;
}

.hero__featured-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.35s ease;
}

.hero__featured:hover .hero__featured-img,
.hero__featured:focus-visible .hero__featured-img {
	transform: scale(1.06);
}

.hero__featured-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.3em 0.35em 0.35em;
	font-family: var(--rt-font-display, "Cinzel", serif);
	font-size: clamp(0.4rem, 0.95vw, 0.62rem);
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1.15;
	text-align: center;
	color: #faf6ee;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(12, 18, 14, 0.72) 40%,
		rgba(12, 18, 14, 0.9) 100%
	);
	pointer-events: none;
}

/* Ardoise (plaque slogan) — inchangée, indépendante du tableau */
.hero__chalkboard {
	position: absolute;
	z-index: 3;
	left: 9.5%;
	bottom: 2.5%;
	width: 14.85%;
	height: auto;
	margin: 0;
	line-height: 0;
	pointer-events: none;
	user-select: none;
	transform: rotate(-6deg);
	transform-origin: 50% 100%;
	filter: drop-shadow(0.12rem 0.28rem 0.4rem rgba(0, 0, 0, 0.32));
}

.hero__chalkboard-img {
	display: block;
	width: 100%;
	height: auto;
}

.hero__signpost {
	position: absolute;
	z-index: 2;
	right: 4%;
	bottom: 35%;
	width: 16.4%;
	pointer-events: none;
}

.hero__signpost-picture {
	display: block;
	width: 100%;
	margin: 0;
	line-height: 0;
}

.hero__signpost-img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 0.45rem 0.7rem rgba(0, 0, 0, 0.28));
}

.hero__signpost-hotspot {
	position: absolute;
	left: 8%;
	right: 8%;
	height: 14%;
	pointer-events: auto;
	border-radius: 4px;
}

.hero__signpost-hotspot--top {
	top: 18%;
	height: 16%;
}

.hero__signpost-hotspot--mid {
	top: 38%;
}

.hero__signpost-hotspot--bot {
	top: 54%;
}

.hero__signpost-hotspot:focus-visible {
	outline: 2px solid #ecbc8c;
	outline-offset: 2px;
}

@media (max-width: 720px) {
	/* Accueil mobile : fond illustré portrait, plein viewport */
	.home .rt-site {
		min-height: 100vh;
		min-height: 100dvh;
	}

	.home .rt-site__main {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
	}

	.home .hero {
		flex: 1 1 auto;
		position: relative;
		min-height: 0;
		width: 100%;
		background: #f3dbb5;
	}

	/*
	 * Même principe que le desktop : la scène = ratio de l’image,
	 * les overlays en % restent ancrés aux repères du dessin
	 * (tonneau à gauche, table / poteau à droite).
	 * La scène couvre le cadre (cover) et se centre.
	 */
	.home .hero__frame {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		overflow: hidden;
		container-type: size;
	}

	.home .hero__stage {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		aspect-ratio: 1200 / 2150;
		width: auto;
		height: 100%;
		min-width: 100%;
		min-height: 0;
	}

	@container (min-aspect-ratio: 1200 / 2150) {
		.home .hero__stage {
			width: 100%;
			height: auto;
			min-width: 0;
			min-height: 100%;
		}
	}

	.home .hero__picture,
	.home .hero__image {
		object-fit: fill;
		object-position: center center;
	}

	/* Tableau = centre du cadre dessiné (masque pixel) */
	.home .hero__featured {
		left: 5%;
		bottom: 24.13%;
		width: 29.56%;
		height: 13.09%;
		transform: none;
		-webkit-mask-image: url("../../assets/img/tableau-mask-mobile.png");
		mask-image: url("../../assets/img/tableau-mask-mobile.png");
		-webkit-clip-path: none;
		clip-path: none;
	}

	.home .hero__featured-caption {
		font-size: clamp(0.5rem, 2.2vw, 0.7rem);
		padding: 0.35em 0.4em 0.4em;
	}

	/* Ardoise au pied du tonneau — inchangée */
	.home .hero__chalkboard {
		display: block;
		left: 14%;
		bottom: 2.5%;
		width: 32%;
		transform: rotate(-5deg);
		filter: drop-shadow(0.1rem 0.2rem 0.35rem rgba(0, 0, 0, 0.22));
	}

	/* Poteau derrière la table, comme le desktop */
	.home .hero__signpost {
		display: block;
		right: 2%;
		bottom: 28%;
		width: 30%;
	}

	.home .hero__signpost-img {
		filter: drop-shadow(0 0.3rem 0.5rem rgba(0, 0, 0, 0.2));
	}

	/* Hotspots sur les 3 panneaux du poteau */
	.home .hero__signpost-hotspot {
		left: 10%;
		right: 10%;
	}

	.home .hero__signpost-hotspot--top {
		top: 12%;
		height: 18%;
	}

	.home .hero__signpost-hotspot--mid {
		top: 34%;
		height: 22%;
	}

	.home .hero__signpost-hotspot--bot {
		top: 60%;
		height: 18%;
	}

	/* Bannière lisible sur parchemin clair */
	.home .hero__welcome {
		top: 6%;
		color: var(--rt-color-forest-deep, #142820);
		background: linear-gradient(
			180deg,
			rgba(250, 246, 238, 0.82) 0%,
			rgba(243, 230, 207, 0.72) 100%
		);
		border-color: rgba(30, 58, 47, 0.22);
		box-shadow: 0 0.25rem 0.75rem rgba(20, 40, 32, 0.12);
	}

	.home .hero__welcome-title {
		color: var(--rt-color-forest, #1e3a2f);
	}

	.home .hero__welcome-text {
		color: rgba(60, 60, 76, 0.92);
	}
}

@media (max-width: 640px) {
	.hero__welcome {
		top: 2.5%;
		width: min(96%, 22rem);
		padding: 0.5rem 0.75rem 0.6rem;
	}
}
