/**
 * Page « Honeymoon In Pictures » (/voyage-de-noces-avec-seance-photo/).
 * Même grammaire que les autres pages intérieures. Deux particularités : le bloc
 * « destination du moment », volontairement isolé pour qu'Anthony n'ait que lui à mettre
 * à jour chaque année, et la galerie des éditions précédentes.
 */

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

.aml-hm-hero {
	position: sticky;
	top: 0;
	z-index: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(86vh, 880px);
	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-hm-hero__media,
.aml-hm-hero__media img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.aml-hm-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-hm-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-hm-hero__grain { animation: aml-grain 0.8s steps(1, end) infinite; }
}

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

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

.aml-hm-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-hm-hero {
			animation: aml-hero-efface linear both;
			animation-timeline: view();
			animation-range: exit 0% exit 100%;
		}
	}
}

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

.aml-hm {
	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-hm__inner {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

.aml-hm__inner > * + * { margin-top: clamp(64px, 8vw, 120px); }

/* Chapô sur deux lignes : il prend toute la largeur utile, et sa taille suit l'écran
   pour que le nombre de lignes ne change pas (demande du 14/10). */
.aml-hm__lead {
	margin: 0;
	max-width: none;
	font-size: clamp(20px, 1.9vw, 36px);
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 1.25;
}

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

.aml-hm__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-hm__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-hm__bloc p:last-child { margin-bottom: 0; }

/* --- Les trois étapes ----------------------------------------------------------------------- */

.aml-hm__etapes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: etape;
}

.aml-hm__etapes li {
	padding-top: 22px;
	border-top: 1px solid rgba(17, 17, 18, 0.15);
	counter-increment: etape;
}

.aml-hm__etapes li::before {
	content: '0' counter(etape);
	display: block;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(17, 17, 18, 0.45);
}

.aml-hm__etapes strong {
	display: block;
	margin-bottom: 8px;
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 500;
	letter-spacing: -0.05em;
}

.aml-hm__etapes span {
	font-size: clamp(16px, 1.3vw, 18px);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.45;
	color: rgba(17, 17, 18, 0.72);
}

/* --- La destination du moment ------------------------------------------------------------------ */

.aml-hm-dest {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 3vw, 44px);
	align-items: center;
	padding: clamp(28px, 3.5vw, 52px);
	border-radius: 20px;
	background: var(--aml-mist);
}

.aml-hm-dest__media {
	overflow: hidden;
	border-radius: 14px;
	aspect-ratio: 16 / 9;
	background: var(--aml-ink);
}

.aml-hm-dest__media { display: block; }

.aml-hm-dest__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.aml-hm-dest__kicker {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	color: rgba(17, 17, 18, 0.55);
}

.aml-hm-dest__h2 {
	margin: 0 0 18px;
	font-size: clamp(30px, 3.6vw, 48px);
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 1.05;
}

.aml-hm-dest p {
	margin: 0 0 16px;
	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-hm-dest ul {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -0.04em;
	color: rgba(17, 17, 18, 0.72);
}

.aml-hm-dest li {
	padding: 9px 0 9px 26px;
	border-top: 1px solid rgba(17, 17, 18, 0.1);
	position: relative;
}

.aml-hm-dest li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 18px;
	width: 7px;
	height: 7px;
	border-top: 1px solid var(--aml-ink);
	border-left: 1px solid var(--aml-ink);
}

/* Information que seul Anthony peut fournir : visible, pour ne pas partir en ligne ainsi */
.aml-a-completer {
	background: var(--aml-cream);
	padding: 1px 6px;
	border-radius: 4px;
}

/* --- Galerie des éditions précédentes ----------------------------------------------------------- */

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

.aml-hm__photo {
	display: block;
	overflow: hidden;
	border-radius: 20px;
	aspect-ratio: 3 / 2;
	background: var(--aml-mist);
}

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

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

/* --- L'agence partenaire --------------------------------------------------------------------------- */

.aml-hm-agence {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 3vw, 44px);
	align-items: center;
}

.aml-hm-agence__media {
	overflow: hidden;
	border-radius: 20px;
	aspect-ratio: 3 / 2;
	background: var(--aml-mist);
}

.aml-hm-agence__media { display: block; }

.aml-hm-agence__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.aml-hm-agence h2 {
	margin: 0 0 16px;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 1.1;
}

.aml-hm-agence p {
	margin: 0 0 16px;
	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-hm-agence__coords {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(17, 17, 18, 0.12);
	font-size: 17px;
	line-height: 1.7;
	color: var(--aml-ink);
}

.aml-hm-agence__coords a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- FAQ ------------------------------------------------------------------------------------------- */

.aml-hm__faq { interpolate-size: allow-keywords; }

.aml-hm__faq h2 {
	margin: 0 0 24px;
	font-size: clamp(28px, 3.4vw, 46px);
	font-weight: 500;
	letter-spacing: -0.06em;
}

.aml-hm__faq details {
	border-top: 1px solid rgba(17, 17, 18, 0.1);
}

.aml-hm__faq details:last-of-type { border-bottom: 1px solid rgba(17, 17, 18, 0.1); }

.aml-hm__faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0 18px;
	cursor: pointer;
	list-style: none;
	font-size: clamp(18px, 1.55vw, 22px);
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 1.3;
}

.aml-hm__faq summary::-webkit-details-marker { display: none; }

.aml-hm__faq summary::after {
	content: '';
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background:
		linear-gradient(var(--aml-ink), var(--aml-ink)) center / 12px 1.5px no-repeat,
		linear-gradient(var(--aml-ink), var(--aml-ink)) center / 1.5px 12px no-repeat,
		var(--aml-mist);
	transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.aml-hm__faq details[open] summary::after { transform: rotate(45deg); }

.aml-hm__faq details p {
	max-width: 900px;
	margin: 0;
	padding: 0 0 26px;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.5;
	color: rgba(17, 17, 18, 0.65);
}

.aml-hm__faq details::details-content {
	block-size: 0;
	opacity: 0;
	overflow: hidden;
	transition:
		block-size 0.45s cubic-bezier(0.68, 0, 0.05, 0.99),
		opacity 0.4s ease 0.06s,
		content-visibility 0.45s allow-discrete;
}

.aml-hm__faq details[open]::details-content { block-size: auto; opacity: 1; }

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

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

@media (max-width: 809px) {
	/* En portrait, le recadrage « cover » ne laissait voir que le bord de la robe :
	   on décale la fenêtre vers la gauche de l'image, là où sont les mariés. */
	.aml-hm-hero__media img { object-position: 12% 42%; }
	.aml-hm__etapes { grid-template-columns: 1fr; gap: 28px; }
	.aml-hm__galerie { grid-template-columns: 1fr; }
	.aml-hm__photo { border-radius: 14px; }
}
