/* Hero bienvenue — maquette s1 */
body.azl-app .azl-hero--welcome {
	background: var(--azl-hero-gradient);
	color: #fff;
	border-radius: var(--azl-radius-xl);
	/* 5px autour de la vidéo (H/B/G) ; droite plus large pour la carte formateur */
	padding: 5px 28px 5px 5px;
	display: flex;
	align-items: stretch;
	/* 20px entre vidéo et texte */
	gap: 20px;
	margin: 0;
	border: none;
	box-shadow: none;
	overflow: hidden;
	min-height: 0;
}

/*
 * Firefox (et désormais aussi Chromium) : height:100% / stretch +
 * aspect-ratio + width:auto dans un flex item sans contenu en flux
 * effondre la largeur. Largeur explicite + hauteur stretchée.
 */
body.azl-app .azl-hero__vid-slot {
	position: relative;
	flex: 0 0 auto;
	align-self: stretch;
	width: clamp(260px, 30vw, 420px);
	min-height: 0;
}

body.azl-app .azl-hero__vid {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	max-height: none;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.12);
	display: grid;
	place-items: center;
	cursor: pointer;
	overflow: hidden;
	padding: 0;
	color: inherit;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 8px 20px rgb(0 0 0 / 0.22);
	z-index: 1;
}

body.azl-app .azl-hero__vid:hover {
	transform: scale(1.015);
}

body.azl-app .azl-hero__vid-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.azl-app .azl-hero__play {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	display: grid;
	place-items: center;
	position: relative;
	z-index: 1;
	transition: transform 0.15s;
}

body.azl-app .azl-hero__vid:hover .azl-hero__play {
	transform: scale(1.1);
	background: #fff;
}

body.azl-app .azl-hero__play:after {
	content: "";
	border-left: 15px solid var(--azl-primary-600);
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	margin-left: 5px;
}

body.azl-app .azl-hero__dur {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.65);
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 5px;
	font-weight: 600;
	z-index: 1;
}

body.azl-app .azl-hero__copy {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
	z-index: 2;
	/* Respirer un peu vs padding 5px du bandeau */
	padding: 18px 8px 18px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

body.azl-app .azl-hero--welcome .azl-hero__eyebrow {
	color: #7fd4e2;
	margin: 0 0 9px;
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 800;
}

body.azl-app .azl-hero__welcome-title {
	margin: 0 0 11px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.3;
	color: #fff;
	display: flex;
	flex-direction: column;
}

body.azl-app .azl-hero__welcome-title-line {
	display: block;
}

body.azl-app .azl-hero__welcome-body {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.65;
	color: #b9ccd2;
	max-width: 520px;
}

body.azl-app .azl-hero__copy .azl-btn {
	margin-top: 18px;
	align-self: flex-start;
}

body.azl-app .azl-hero__formateur {
	flex: 0 0 196px;
	width: 196px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	padding: 18px 16px;
	text-align: center;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 2;
	margin: 8px 0;
}

body.azl-app .azl-hero__formateur-photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 11px;
	border: 2px solid rgba(255, 255, 255, 0.25);
}

body.azl-app .azl-hero__formateur-photo--initials {
	background: linear-gradient(135deg, #0e8fa3, #14b8cf);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 800;
	font-size: 20px;
}

body.azl-app .azl-hero__formateur-kicker {
	margin: 0 0 5px;
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #7fd4e2;
	font-weight: 800;
}

body.azl-app .azl-hero__formateur-name {
	margin: 0 0 7px;
	font-size: 13.5px;
	font-weight: 800;
	color: #fff;
}

body.azl-app .azl-hero__formateur-bio {
	margin: 0;
	font-size: 11px;
	line-height: 1.55;
	color: #b9ccd2;
}

@media (max-width: 1150px) {
	body.azl-app .azl-hero--welcome {
		flex-wrap: wrap;
		padding: 16px;
		gap: 16px;
	}

	body.azl-app .azl-hero__vid-slot {
		width: 100%;
		max-width: 480px;
		aspect-ratio: 16 / 9;
	}

	body.azl-app .azl-hero__vid {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		box-shadow: none;
	}

	body.azl-app .azl-hero__vid:hover {
		transform: scale(1.01);
	}

	body.azl-app .azl-hero__copy {
		padding: 0;
		flex: 1 1 100%;
	}

	body.azl-app .azl-hero__formateur {
		width: 100%;
		flex-basis: 100%;
		margin: 0;
	}
}

@media (max-width: 767px) {
	body.azl-app .azl-hero--welcome {
		padding: 12px;
		gap: 14px;
	}

	body.azl-app .azl-hero__welcome-title {
		font-size: 22px;
	}
}

/* --- Legacy hero (Accueil backup v1) ------------------------------------ */
body.azl-app .azl-hero:not(.azl-hero--welcome) {
	position: relative;
	z-index: 20;
	margin-top: calc(var(--azl-space-3) * -1);
	padding: 40px var(--azl-space-8) 0;
	background: var(--azl-neutral-100);
	border: none;
	border-radius: var(--azl-radius-2xl);
	box-shadow: none;
	overflow: visible;
	font-family: var(--azl-font-display);
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__watermark {
	position: absolute;
	right: 30%;
	top: 50%;
	transform: translateY(-40%);
	font-size: clamp(7rem, 14vw, 11rem);
	font-weight: var(--azl-weight-extrabold);
	line-height: 1;
	color: var(--azl-neutral-900);
	opacity: 0.04;
	pointer-events: none;
	z-index: 0;
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__inner {
	position: relative;
	z-index: 15;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px 185px;
	gap: var(--azl-space-4);
	align-items: center;
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__eyebrow {
	margin: 0 0 var(--azl-space-3);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 12px;
	font-weight: var(--azl-weight-bold);
	color: var(--azl-primary-500);
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__title {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: clamp(2.25rem, 4.2vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-weight: var(--azl-weight-extrabold);
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__title-line { color: var(--azl-neutral-900); }
body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__title-line--accent { color: var(--azl-primary-500); }

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__subtitle {
	margin: var(--azl-space-4) 0 0;
	max-width: 520px;
	color: var(--azl-neutral-600);
	font-size: var(--azl-text-base);
	line-height: 1.55;
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__actions {
	margin-top: var(--azl-space-6);
	display: flex;
	flex-wrap: wrap;
	gap: var(--azl-space-3);
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__visual {
	grid-column: 2;
	position: relative;
	align-self: stretch;
	overflow: visible;
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__figure {
	position: absolute;
	top: -115px;
	bottom: 0;
	left: -20px;
	z-index: 15;
	width: 360px;
	margin: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, black 65%, transparent 100%), linear-gradient(to bottom, black 72%, transparent 100%);
	mask-image: linear-gradient(to right, black 65%, transparent 100%), linear-gradient(to bottom, black 72%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__quote {
	grid-column: 3;
	align-self: center;
	margin: 0;
	max-width: 185px;
}

body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__quote-mark {
	display: block;
	font-size: 4.5rem;
	line-height: 0.8;
	font-weight: var(--azl-weight-extrabold);
	color: var(--azl-primary-400);
}

@media (max-width: 1023px) {
	body.azl-app .azl-hero:not(.azl-hero--welcome) .azl-hero__inner {
		grid-template-columns: 1fr;
	}
}
