/**
 * Page « Studio » (/seance-studio/).
 * Même grammaire que les autres pages intérieures : grande photo d'ouverture (la barre de
 * l'en-tête est blanche), puis le contenu sur la grille du template. Deux particularités :
 * les trois spécialités en cartes photo, et les deux formules avec leurs tarifs — seuls
 * prix affichés du site, donc traités comme un vrai bloc et non comme une note de bas de page.
 */

/* --- Ouverture -------------------------------------------------------------------------- */

.aml-studio-hero {
	position: sticky;
	top: 0;
	z-index: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(88vh, 900px);
	padding: clamp(120px, 14vw, 200px) clamp(16px, 2.5vw, 36px) clamp(36px, 4vw, 56px);
	background: var(--aml-ink);
	color: var(--aml-white);
	overflow: hidden;
	isolation: isolate;
}

.aml-studio-hero__media,
.aml-studio-hero__media img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Le bandeau est bien plus large que la photo : on cadre haut pour garder les visages */
	object-position: center 8%;
}

.aml-studio-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(17, 17, 18, 0.75) 0%, rgba(17, 17, 18, 0.25) 45%, rgba(17, 17, 18, 0.15) 100%);
}

.aml-studio-hero__grain {
	position: absolute;
	inset: -150%;
	z-index: 0;
	width: 400%;
	height: 400%;
	background-image: url('../img/grain.png');
	opacity: 0.07;
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	.aml-studio-hero__grain { animation: aml-grain 0.8s steps(1, end) infinite; }
}

.aml-studio-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

.aml-studio-hero__kicker {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.04em;
	color: rgba(255, 255, 255, 0.7);
}

.aml-studio-hero__h1 {
	margin: 0;
	max-width: 1171px;
	font-size: clamp(40px, 6.4vw, 92px);
	font-weight: 500;
	letter-spacing: -0.07em;
	line-height: 0.96;
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.aml-studio-hero {
			animation: aml-hero-efface linear both;
			animation-timeline: view();
			animation-range: exit 0% exit 100%;
		}
	}
}

/* --- Corps ---------------------------------------------------------------------------------- */

.aml-studio {
	position: relative;
	z-index: 1;
	background: var(--aml-white);
	color: var(--aml-ink);
	padding: clamp(56px, 6vw, 90px) clamp(16px, 2.5vw, 36px) clamp(96px, 11.1vw, 160px);
}

.aml-studio__inner {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

.aml-studio__inner > * + * { margin-top: clamp(56px, 7vw, 100px); }

/* Une photo placée juste après un bloc de texte : on double l'espace, sinon la dernière
   ligne colle à l'image (remarque d'Olivier du 23/09). */
.aml-studio__bloc + .aml-studio__figure { margin-top: clamp(80px, 9vw, 140px); }

.aml-studio__lead {
	margin: 0;
	max-width: 944px;
	font-size: clamp(24px, 2.6vw, 36px);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1.18;
}

/* --- Les trois spécialités ------------------------------------------------------------------ */

.aml-studio__types {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.aml-studio-type {
	display: block;
	margin: 0;
	color: var(--aml-white);
	text-decoration: none;
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	/* Les photos sources sont en paysage : un cadre portrait n'en garderait qu'une bande
	   étroite, agrandie, donc floue. */
	aspect-ratio: 4 / 3;
	background: var(--aml-ink);
	isolation: isolate;
}

.aml-studio-type img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.aml-studio-type:hover img { transform: scale(1.04); }

.aml-studio-type::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(17, 17, 18, 0.7) 0%, rgba(17, 17, 18, 0) 55%);
}

.aml-studio-type > span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 24px;
	color: var(--aml-white);
	font-size: clamp(20px, 1.9vw, 26px);
	font-weight: 500;
	letter-spacing: -0.05em;
}

/* --- Blocs de texte -------------------------------------------------------------------------- */

.aml-studio__bloc {
	display: grid;
	grid-template-columns: 338fr 1015fr;
	gap: 20px;
}

.aml-studio__bloc h2 {
	margin: 0;
	max-width: 300px;
	font-size: clamp(22px, 1.9vw, 26px);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1.2;
}

.aml-studio__bloc p {
	margin: 0 0 18px;
	max-width: 780px;
	font-size: clamp(17px, 1.45vw, 20px);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.45;
	color: rgba(17, 17, 18, 0.72);
}

.aml-studio__bloc p:last-child { margin-bottom: 0; }

/* Photo cliquable : viseur au survol et léger rapprochement, comme ailleurs sur le site */
.aml-studio__figure {
	display: block;
	margin: 0;
	overflow: hidden;
	border-radius: 20px;
	background: var(--aml-mist);
}

.aml-studio__figure img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.aml-studio__figure:hover img,
.aml-studio__figure:focus-visible img { transform: scale(1.04); }

/* --- Les formules ------------------------------------------------------------------------------ */

.aml-studio__tarifs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.aml-tarif {
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 3vw, 44px);
	border: 1px solid var(--aml-line);
	border-radius: 20px;
	background: var(--aml-white);
	transition: border-color 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.aml-tarif:hover {
	border-color: var(--aml-ink);
	transform: translateY(-4px);
}

.aml-tarif__nom {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.04em;
	color: rgba(17, 17, 18, 0.6);
	text-transform: uppercase;
}

.aml-tarif__prix {
	margin: 10px 0 0;
	font-size: clamp(44px, 5vw, 68px);
	font-weight: 500;
	letter-spacing: -0.07em;
	line-height: 1;
}

.aml-tarif__prix span {
	font-size: 0.4em;
	letter-spacing: -0.04em;
	color: rgba(17, 17, 18, 0.6);
}

.aml-tarif ul {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	font-size: clamp(16px, 1.3vw, 18px);
	font-weight: 500;
	letter-spacing: -0.04em;
	color: rgba(17, 17, 18, 0.72);
}

.aml-tarif li {
	position: relative;
	padding: 10px 0 10px 26px;
	border-top: 1px solid rgba(17, 17, 18, 0.08);
}

.aml-tarif li:first-child { border-top: 0; }

/* Puce : le même losange que les coins photographiques du template */
.aml-tarif li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 19px;
	width: 7px;
	height: 7px;
	border-top: 1px solid var(--aml-ink);
	border-left: 1px solid var(--aml-ink);
}

.aml-tarif__action { margin-top: 32px; }

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

@media (max-width: 1199px) {
	.aml-studio__bloc { grid-template-columns: 1fr; gap: 12px; }
	.aml-studio__bloc h2 { max-width: none; }
}

@media (max-width: 809px) {
	.aml-studio__types { grid-template-columns: 1fr; }
	.aml-studio__tarifs { grid-template-columns: 1fr; }
	.aml-studio-type { aspect-ratio: 4 / 3; }
	.aml-studio__figure { border-radius: 14px; }
}
