/**
 * Hero plein écran — reproduction du template « Captured » (Framer + Figma).
 * Cotes Figma relevées sur une maquette de 1920 × 1080, converties en vw / clamp().
 * Les animations sont portées par les attributs data-anim* (bp-animations.js) et le
 * diaporama par data-slider (bp-hero-slider.js).
 */

.aml-hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	background: var(--aml-ink);
	color: var(--aml-white);
	padding: 0;
	isolation: isolate;
}

/* --- Calques d'intro : cartes latérales et image centrale --------------------------- */

/*
 * Ordre d'empilement du hero, du fond vers l'avant :
 *   0  calques photos (le diaporama empile ses photos à l'intérieur, sans en sortir)
 *   1  décor : grille, voile, repères d'angle — restent visibles sur toutes les photos
 *   2  rond central, nom, titre
 * La barre du haut vit dans l'en-tête (aml-header.css), au-dessus du hero.
 */
.aml-hero__layer {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.aml-hero__card {
	position: absolute;
	overflow: hidden;
}

/* Positions Figma/Framer : carte droite 576,407 · 323×274 ; gauche 120,384 · 303×202 (base 1009×768) */
.aml-hero__card--right { left: 57%; top: 53%; width: 32%; height: 36%; }
.aml-hero__card--left  { left: 12%; top: 50%; width: 30%; height: 26%; }

.aml-hero__card img,
.aml-hero__slide {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Image centrale : pleine page (117 % de haut pour le mouvement), réduite à 40 % au départ */
.aml-hero__main {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 117%;
	overflow: hidden;
	isolation: isolate; /* les z-index du diaporama restent confinés à ce cadre */
}

.aml-hero__slide {
	position: absolute;
	inset: 0;
}

/* Avant le JS, seule la première photo est affichée : les autres ne sont pas chargées. */
[data-slider] [data-slide]:not(:first-child) {
	display: none;
}

/* --- Décor ---------------------------------------------------------------------------- */

.aml-hero__grid {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 25.9%;
	right: 25.9%;
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
	background-size: 25% 100%;
	border-right: 1px solid rgba(255, 255, 255, 0.09);
	pointer-events: none;
	z-index: 1;
}

/* La grille arrière reste sous les photos (visible pendant l'intro, sur fond noir) */
.aml-hero > .aml-hero__grid:first-child {
	z-index: auto;
}

.aml-hero__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0, 0, 0, 0) 44%, #000 100%);
	pointer-events: none;
	z-index: 1;
}

/* Repères d'angle (styles communs dans aml-header.css) : au-dessus des photos */
.aml-hero .aml-corners {
	z-index: 1;
}

/* Rond translucide avec une croix fine (icône Framer 28 × 28, trait arrondi de 2,4) */
.aml-hero__shutter {
	position: absolute;
	left: 50%;
	top: 50%;
	width: clamp(64px, 5vw, 96px);
	height: clamp(64px, 5vw, 96px);
	margin: calc(clamp(64px, 5vw, 96px) * -1.35) 0 0 calc(clamp(64px, 5vw, 96px) / -2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.34);
	z-index: 2;
}

.aml-hero__shutter::before,
.aml-hero__shutter::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 29%;
	height: 2.5%;
	min-height: 2px;
	border-radius: 2px;
	background: var(--aml-white);
	transform: translate(-50%, -50%);
}

.aml-hero__shutter::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

/* --- Nom au centre ------------------------------------------------------------------- */

.aml-hero__name {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 2;
	margin-top: clamp(24px, 2.2vw, 42px);
}

.aml-hero__name p {
	margin: 0;
	font-size: clamp(16px, 1vw, 19px);
	font-weight: 600;
	letter-spacing: -0.06em;
	line-height: 1.25;
}

.aml-hero__name p + p {
	opacity: 0.8;
	font-weight: 500;
}

/* --- Titre en bas -------------------------------------------------------------------- */

.aml-hero__heading {
	position: absolute;
	left: clamp(16px, 2.35vw, 45px);
	right: clamp(16px, 2.35vw, 45px);
	bottom: clamp(24px, 3.2vw, 62px);
	text-align: center;
	z-index: 2;
}

.aml-hero__kicker {
	margin: 0 0 clamp(8px, 1vw, 20px);
	font-size: clamp(14px, 1.15vw, 22px);
	font-weight: 700;
	letter-spacing: -0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.aml-hero__title {
	margin: 0;
	font-family: var(--aml-font);
	font-size: clamp(32px, 5.8vw, 120px); /* réduit le 14/10 puis le 18/10 à la demande d'Anthony */
	font-weight: 700;
	letter-spacing: -0.08em;
	line-height: 0.8;
	text-transform: uppercase;
	color: var(--aml-white);
	white-space: nowrap;
}

/* Le « O » : pilule détourée (Figma 507 × 185, trait 32, pour un corps de 254 px) */
.aml-hero__pill {
	display: inline-block;
	width: 2em;
	height: 0.73em;
	border: 0.126em solid currentColor;
	border-radius: 1em;
	margin: 0 0.02em 0 0.04em;
	vertical-align: -0.01em;
	box-sizing: border-box;
}

.aml-hero__script {
	margin: -0.03em 0 0; /* laisse passer l'accent de « capturée » sous le H du titre */
	font-family: var(--aml-font-script);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(27px, 4.7vw, 88px); /* suit la réduction du titre */
	letter-spacing: -0.08em;
	line-height: 1;
	color: var(--aml-cream);
}

/* --- Tablette et mobile -------------------------------------------------------------- */

@media (max-width: 1199px) {
	.aml-hero__grid { left: 32px; right: 32px; }
}

@media (max-width: 809px) {
	.aml-hero__grid { left: 16px; right: 16px; }
	.aml-hero__title { font-size: 10.5vw; white-space: normal; line-height: 0.85; }
	.aml-hero__title .aml-hero__line { display: block; }
	.aml-hero__script { font-size: 8.5vw; margin-top: 0; }
	.aml-hero__name { display: none; }
}

/* --- Règle graduée sous le hero -------------------------------------------------------
 * Posée en haut de la section qui suit le hero (fond clair). Le rail glisse au défilement
 * (data-anim-scroll : +490 → −410 px sur ordinateur, +100 → +951 px sous 1200 px, valeurs
 * de la démo Framer). Bords estompés par un masque, comme sur la démo.
 */

.aml-after-hero {
	position: relative;
}

.aml-ruler {
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1920px;
	padding: 5px 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25.4%, #000 74%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 25.4%, #000 74%, transparent 100%);
}

.aml-ruler__track {
	position: relative;
	width: 1200px;
	height: 34px;
	margin: 0 auto;
}

.aml-ruler__track img {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 2314px;
	max-width: none;
	height: auto;
	transform: translate(-50%, -50%);
}
