/* =========================================================
   MLT HERO — slider « une offre par slide ». Dépend de mlt-tokens.

   Mise en page adaptée de « Premium Olive Oil Product Page UI – Minimal &
   Elegant Design » par Designer (@landingpages), Figma Community,
   licence CC BY 4.0. Couleurs, typographie, textes et images modifiés.

   Desktop (≥ 1024) : cotes de la frame Figma 1440 × 990 exprimées avec
   --mlt-u (1px à 1440, proportionnel en dessous) → la composition se
   réduit sans se déformer. Mobile / tablette : empilement en flux.
   ========================================================= */

.mlt-hero {
	position: relative;
	overflow: hidden;
	background: var(--mlt-color-fond);
	color: var(--mlt-color-texte);
	font-family: var(--mlt-font-latin);
}

.mlt-hero__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: 1440px;
	margin: 0 auto;
	padding: 88px var(--mlt-gutter) 0; /* place du header posé en absolu */
}

/* -------------------- Branche d'olivier (décor de la maquette, mode « darken ») -------------------- */
/* Masquée sous 1024 px : pas de place libre à côté du logo (270 px) et du burger. */
.mlt-hero .mlt-hero__decor {
	display: none;
	position: absolute;
	max-width: none;
	mix-blend-mode: darken;
	pointer-events: none;
}

/* -------------------- Slides empilées (hauteur = la plus haute, pas de CLS) -------------------- */
.mlt-hero__slides {
	display: grid;
	order: 1;
}

.mlt-hero__slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	gap: var(--mlt-space-32);
	opacity: 0;
	visibility: hidden;
	transition: opacity 450ms var(--mlt-ease), visibility 0s linear 450ms;
}

.mlt-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 450ms var(--mlt-ease), visibility 0s;
}

/* -------------------- Texte -------------------- */
.mlt-hero__content {
	order: 1;
}

.mlt-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: var(--mlt-space-8);
	margin: 0 0 var(--mlt-space-16);
	color: var(--mlt-color-texte);
	font-size: var(--mlt-fs-small);
	font-weight: 700;
	line-height: 1.3;
}

/* Filet de 64 px après le sur-titre (maquette) */
.mlt-hero__eyebrow::after {
	content: "";
	width: 64px;
	height: 2px;
	background: var(--mlt-color-texte-doux);
	opacity: 0.5;
}

/* .mlt-hero en préfixe : prime sur `.mlt-page h1` (interligne global des titres) */
.mlt-hero .mlt-hero__title {
	margin: 0;
	font-size: clamp(2.5rem, 11.5vw, 4.25rem);
	line-height: 0.93;
	letter-spacing: -0.07em;
}

.mlt-hero__title-light,
.mlt-hero__title-strong {
	display: block;
}

.mlt-hero__title-light {
	color: var(--mlt-color-ocre); /* grand texte : contraste suffisant (AA large) */
	font-weight: 400;
}

.mlt-hero__title-strong {
	color: var(--mlt-color-olive);
	font-weight: 500;
}

.mlt-hero__text {
	max-width: 438px;
	margin: var(--mlt-space-24) 0 0;
	color: var(--mlt-color-texte);
	font-size: var(--mlt-fs-small);
	line-height: 1.6;
}

/* -------------------- Boutons (accolés, angles droits — maquette) -------------------- */
/* Mobile : les deux boutons restent sur une ligne (padding réduit), sous 340 px ils passent à la ligne. */
.mlt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	margin-top: var(--mlt-space-32);
}

.mlt-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--mlt-space-8);
	min-height: 56px;
	padding: 0 var(--mlt-space-16);
	font-size: var(--mlt-fs-small);
	letter-spacing: -0.02em;
	text-decoration: none;
	transition: background-color var(--mlt-duration) var(--mlt-ease), color var(--mlt-duration) var(--mlt-ease);
}

.mlt-hero__btn--plein {
	flex: 1 1 auto;
	background: var(--mlt-color-olive);
	color: var(--mlt-color-blanc);
	font-weight: 500;
}

.mlt-hero__btn--plein:hover {
	background: var(--mlt-color-botanique);
}

.mlt-hero__btn--plein:active {
	background: var(--mlt-color-texte);
}

/* reset.css (Hello Elementor) colore les liens au survol : texte blanc réaffirmé */
.mlt-hero__btn--plein:hover,
.mlt-hero__btn--plein:active,
.mlt-hero__btn--plein:focus,
.mlt-hero__btn--plein:visited {
	color: var(--mlt-color-blanc);
}

.mlt-hero__btn--clair {
	background: var(--mlt-color-blanc);
	color: var(--mlt-color-texte);
	font-weight: 400;
}

.mlt-hero__btn--clair:hover {
	color: var(--mlt-color-botanique);
}

.mlt-hero__btn--clair:active {
	color: var(--mlt-color-olive);
}

/* Flèche du bouton secondaire : → vers une autre page, ↓ vers une section de la page */
.mlt-hero__fleche {
	flex: none;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: var(--mlt-icone-fleche) center / contain no-repeat;
	mask: var(--mlt-icone-fleche) center / contain no-repeat;
	transition: transform var(--mlt-duration) var(--mlt-ease);
}

.mlt-hero__fleche--bas {
	-webkit-mask-image: var(--mlt-icone-fleche-bas);
	mask-image: var(--mlt-icone-fleche-bas);
}

.mlt-hero__btn--clair:hover .mlt-hero__fleche,
.mlt-hero__btn--clair:focus-visible .mlt-hero__fleche {
	transform: translateX(3px);
}

.mlt-hero__btn--clair:hover .mlt-hero__fleche--bas,
.mlt-hero__btn--clair:focus-visible .mlt-hero__fleche--bas {
	transform: translateY(3px);
}

.mlt-hero__btn:focus-visible,
.mlt-hero__nav-item:focus-visible,
.mlt-hero__arrow:focus-visible {
	outline: none;
	box-shadow: var(--mlt-focus-ring);
}

/* -------------------- Visuel -------------------- */
.mlt-hero__visual {
	position: relative;
	order: 2;
	width: 100%;
	max-width: 520px;
	aspect-ratio: 5 / 4;
	align-self: center;
}

.mlt-hero .mlt-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center bottom;
}

/* Deux objets côte à côte — maquette : axes à 36 % et 64 % du visuel,
   pied à ~93 % de sa hauteur. Chaque objet est recadré en demi-largeur. */
.mlt-hero .mlt-hero__visual--duo .mlt-hero__img {
	left: 11%;
	width: 50%;
	object-fit: cover;
	transform: translateY(6%);
}

.mlt-hero .mlt-hero__visual--duo .mlt-hero__img--2 {
	left: 39%;
}

.mlt-hero .mlt-hero__visual--duo .mlt-hero__img--2.is-flipped {
	transform: translateY(6%) scaleX(-1);
}

/* Objet unique : un peu en retrait, posé sur son ombre */
.mlt-hero .mlt-hero__visual--detoure:not(.mlt-hero__visual--duo) .mlt-hero__img {
	inset: 10% 10% 5%;
	width: 80%;
	height: 85%;
}

.mlt-hero__visual--detoure:not(.mlt-hero__visual--duo) .mlt-hero__ombre {
	bottom: 9%;
}

.mlt-hero .mlt-hero__img.is-flipped {
	transform: scaleX(-1);
}

/* Ombre portée au sol (ellipse floue de la maquette) */
.mlt-hero__ombre {
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 2%;
	height: 9%;
	background: radial-gradient(50% 50% at 50% 50%, var(--mlt-color-ombre) 0%, transparent 100%);
}

/* Olives au pied des objets — maquette : x 103, y 661 dans le visuel 724, 441 × 72 */
.mlt-hero .mlt-hero__olives {
	position: absolute;
	z-index: 1;
	left: 14.2%;
	top: 91.3%;
	width: 60.9%;
	max-width: none;
	height: auto;
	pointer-events: none;
}

/* Photo : panneau arrondi, recadrée */
.mlt-hero__visual--photo {
	overflow: hidden;
	border-radius: var(--mlt-radius-panel);
}

.mlt-hero .mlt-hero__visual--photo .mlt-hero__img {
	object-fit: cover;
	object-position: center;
}

/* -------------------- Caractéristiques en pied -------------------- */
.mlt-hero__specs {
	order: 3;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mlt-space-24);
	margin: 0;
	font-size: var(--mlt-fs-small);
	line-height: 1.5;
}

/* Trait ocre au-dessus de chaque chiffre clé (rappel des sillons du logo) */
.mlt-hero__spec::before {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	margin-bottom: var(--mlt-space-16);
	background: var(--mlt-color-ocre);
}

.mlt-hero__spec dt {
	color: var(--mlt-color-olive);
	font-weight: 700;
}

.mlt-hero__spec dd {
	margin: var(--mlt-space-4) 0 0;
	color: var(--mlt-color-texte-doux);
}

/* -------------------- Navigation des offres -------------------- */
.mlt-hero__nav {
	order: 0;
	display: flex;
	gap: var(--mlt-space-24);
	margin: 0 0 var(--mlt-space-32);
}

.mlt-hero__nav-item {
	min-height: 44px; /* cible tactile (mobile) */
	padding: var(--mlt-space-8) 0;
	border: 0;
	background: transparent;
	color: var(--mlt-color-texte-doux);
	font-family: inherit;
	font-size: var(--mlt-fs-small);
	font-weight: 500;
	cursor: pointer;
	transition: color var(--mlt-duration) var(--mlt-ease);
}

.mlt-hero__nav-item:hover {
	color: var(--mlt-color-botanique);
}

.mlt-hero__nav-item.is-active {
	color: var(--mlt-color-olive);
	font-weight: 700;
}

/* -------------------- Flèches (caisson clair collé au bord gauche) -------------------- */
.mlt-hero__pager {
	position: relative;
	order: 2;
	display: flex;
	align-items: center;
	align-self: flex-start;
	margin: var(--mlt-space-32) 0 0 calc(-1 * var(--mlt-gutter));
	padding-left: var(--mlt-gutter);
	background: var(--mlt-color-blanc);
}

/* Barre de progression ocre en haut du caisson (--mlt-hero-progress : 1/3, 2/3, 1) */
.mlt-hero__pager::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: calc(var(--mlt-hero-progress, 0) * 100%);
	height: 2px;
	background: var(--mlt-color-ocre);
	transition: width 450ms var(--mlt-ease);
}

.mlt-hero__compteur {
	margin: 0;
	padding: 0 var(--mlt-space-4);
	color: var(--mlt-color-texte-doux);
	font-size: var(--mlt-fs-small);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mlt-hero__compteur-actuel {
	color: var(--mlt-color-olive);
	font-weight: 700;
}

.mlt-hero__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 0;
	background: transparent;
	color: var(--mlt-color-texte);
	cursor: pointer;
	transition: color var(--mlt-duration) var(--mlt-ease);
}

.mlt-hero__arrow svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mlt-hero__arrow:hover {
	color: var(--mlt-color-botanique);
}

.mlt-hero__arrow:active {
	color: var(--mlt-color-olive);
}

@media (prefers-reduced-motion: reduce) {
	.mlt-hero__slide,
	.mlt-hero__slide.is-active,
	.mlt-hero__pager::before,
	.mlt-hero__fleche {
		transition: none;
	}
}

/* -------------------- Tablette -------------------- */
@media (min-width: 768px) {
	.mlt-hero__stage {
		padding-top: 112px;
	}

	.mlt-hero .mlt-hero__title {
		font-size: clamp(4rem, 9vw, 5.5rem);
	}

	.mlt-hero__visual {
		align-self: flex-end;
	}

	/* Boutons à leur largeur naturelle (le bouton plein n'est plus étiré sur toute la ligne) */
	.mlt-hero__btn {
		padding: 0 var(--mlt-space-32);
	}

	.mlt-hero__btn--plein {
		flex: 0 0 auto;
		min-width: 225px;
	}

	/* Photo : pleine largeur de la colonne (sinon décalée à droite avec un vide à gauche) */
	.mlt-hero__visual--photo {
		max-width: none;
		aspect-ratio: 16 / 9;
	}

	.mlt-hero__specs {
		max-width: 600px;
	}
}

/* =========================================================
   Desktop : cotes de la frame Figma (x, y depuis le coin haut gauche)
   ========================================================= */
@media (min-width: 1024px) {
	.mlt-hero__stage {
		display: block;
		height: calc(990 * var(--mlt-u));
		padding: 0;
	}

	/* Décor — maquette : x 563, y -43, 224 × 285. Descendu sous la barre du header
	   et réduit depuis l'ajout du menu horizontal (il passait derrière les liens),
	   entre le sur-titre / titre et le visuel. */
	.mlt-hero .mlt-hero__decor {
		display: block;
		top: calc(96 * var(--mlt-u));
		left: calc(560 * var(--mlt-u));
		width: calc(176 * var(--mlt-u));
		height: calc(190 * var(--mlt-u));
		object-fit: contain;
	}

	.mlt-hero__slides {
		position: absolute;
		inset: 0;
	}

	.mlt-hero__slide {
		display: block;
	}

	/* Visuel — maquette : x 723, y 153, 724 × 724 */
	.mlt-hero__visual {
		position: absolute;
		left: calc(723 * var(--mlt-u));
		top: calc(153 * var(--mlt-u));
		width: calc(724 * var(--mlt-u));
		max-width: none;
		aspect-ratio: 1;
	}

	/* Ombre — maquette : ellipse vers y 750-838 */
	.mlt-hero__ombre {
		bottom: calc(10 * var(--mlt-u));
	}

	.mlt-hero__visual--photo {
		width: calc(680 * var(--mlt-u));
	}

	/* Bloc texte — maquette : sur-titre x 181 / y 269, titre x 178 / y 312 */
	.mlt-hero__content {
		position: absolute;
		left: calc(178 * var(--mlt-u));
		top: calc(269 * var(--mlt-u));
		width: calc(700 * var(--mlt-u));
	}

	.mlt-hero__eyebrow {
		margin: 0 0 calc(25 * var(--mlt-u)) calc(3 * var(--mlt-u));
		font-size: max(12px, calc(14 * var(--mlt-u)));
	}

	.mlt-hero__eyebrow::after {
		width: calc(64 * var(--mlt-u));
	}

	/* Titre — maquette : 91,14 px / interligne 84,95 px / approche -6,38 px */
	.mlt-hero .mlt-hero__title {
		font-size: calc(91.14 * var(--mlt-u));
		line-height: calc(84.95 * var(--mlt-u));
	}

	/* Texte — largeur 438 de la maquette ; aligné sur le sur-titre (x 181) au lieu du retrait
	   de 18 px de la maquette, qui donnait un bloc décalé sous le titre. */
	.mlt-hero__text {
		max-width: calc(438 * var(--mlt-u));
		margin: calc(20 * var(--mlt-u)) 0 0 calc(3 * var(--mlt-u));
		font-size: max(13px, calc(14 * var(--mlt-u)));
	}

	/* Boutons — maquette : y 692, 225 × 58 + 110 × 58, accolés ; même alignement que le texte */
	.mlt-hero__actions {
		margin: calc(40 * var(--mlt-u)) 0 0 calc(3 * var(--mlt-u));
		flex-wrap: nowrap;
	}

	.mlt-hero__btn {
		min-height: max(48px, calc(58 * var(--mlt-u))); /* cible tactile ≥ 44 px dès 1024 */
		padding: 0 calc(32 * var(--mlt-u));
		font-size: max(13px, calc(14 * var(--mlt-u)));
	}

	.mlt-hero__btn--plein {
		flex: 0 0 auto;
		min-width: calc(225 * var(--mlt-u));
	}

	.mlt-hero__btn--clair {
		min-width: calc(110 * var(--mlt-u));
	}

	/* Caractéristiques — maquette : y 901, colonnes x 301 (262) et x 655 (223) */
	.mlt-hero__specs {
		position: absolute;
		left: calc(301 * var(--mlt-u));
		top: calc(901 * var(--mlt-u));
		grid-template-columns: calc(262 * var(--mlt-u)) calc(223 * var(--mlt-u));
		column-gap: calc(92 * var(--mlt-u));
		max-width: none;
		font-size: max(13px, calc(14 * var(--mlt-u)));
		line-height: 1.5;
	}

	/* Nav verticale — maquette : x 49, de y 545 à 816, lecture de bas en haut */
	.mlt-hero__nav {
		position: absolute;
		left: calc(49 * var(--mlt-u));
		bottom: calc(174 * var(--mlt-u));
		z-index: 2;
		flex-direction: column-reverse;
		gap: calc(32 * var(--mlt-u));
		margin: 0;
	}

	.mlt-hero__nav-item {
		min-height: 0; /* texte vertical : la hauteur suit le libellé */
		min-width: 32px;
		padding: 0 var(--mlt-space-4);
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		font-size: max(12px, calc(14 * var(--mlt-u)));
	}

	/* Flèches — maquette : caisson x -41 → 239, y 901, hauteur 89 ; chevrons à x 72 et 171 */
	.mlt-hero__pager {
		position: absolute;
		left: 0;
		top: calc(901 * var(--mlt-u));
		z-index: 2;
		width: calc(239 * var(--mlt-u));
		height: calc(89 * var(--mlt-u));
		margin: 0;
		padding-left: calc(26 * var(--mlt-u));
	}

	/* Flèches resserrées autour du compteur : 26 + 72 + compteur + 72 ≈ 239 */
	.mlt-hero__arrow {
		width: calc(72 * var(--mlt-u));
		height: 100%;
	}

	.mlt-hero__compteur {
		flex: 1 1 auto;
		text-align: center;
		font-size: max(12px, calc(14 * var(--mlt-u)));
	}
}

/* Au-delà de 1440 : le fond crème continue, la composition reste centrée */
@media (min-width: 1441px) {
	.mlt-hero__pager {
		left: calc((1440px - 100vw) / 2);
		width: calc((100vw - 1440px) / 2 + 239px);
		padding-left: calc((100vw - 1440px) / 2 + 26px);
	}
}
