/**
 * Page « Anthony ? » — page About de la démo Captured.
 * Cotes relevées à 1440 px : colonne de gauche collante (portrait 60 px, nom 20 px, rôle
 * 16 px, lien 17 px), colonne de droite de 1014 px avec le titre en 92 px, l'accroche en
 * 36 px, les blocs « intertitre 26 px + texte 20 px », et la liste numérotée (rang 13 px,
 * intitulé 20 px, mention à droite 16 px, lignes de 73 px).
 * Ouverture : grande photo, comme les pages d'album, pour que la barre blanche de
 * l'en-tête reste lisible.
 */

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

.aml-anthony-hero {
	position: sticky;
	top: 0;
	z-index: 0;
	/* Bricks met ses sections en colonne : c'est justify-content qui descend le contenu */
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	min-height: min(82vh, 820px);
	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-anthony-hero__media,
.aml-anthony-hero__media img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}

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

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

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

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

/* --- Corps de page ----------------------------------------------------------------------- */

.aml-anthony {
	position: relative;
	z-index: 1;
	background: var(--aml-white);
	color: var(--aml-ink);
	padding: clamp(64px, 8vw, 110px) clamp(16px, 2.5vw, 36px) clamp(96px, 11.1vw, 160px);
}

.aml-anthony__inner {
	display: grid;
	grid-template-columns: 338fr 1015fr;
	gap: 20px;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

/* Colonne de gauche : elle reste à l'écran pendant la lecture, comme sur la démo */
.aml-anthony__side {
	position: sticky;
	top: 110px;
	align-self: start;
}

/* Portrait en tête de colonne (ajouté le 14/10 à la demande d'Anthony) */
.aml-anthony__portrait {
	margin-bottom: 28px;
	aspect-ratio: 3 / 4;
	max-width: 320px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--aml-mist);
}

.aml-anthony__portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%;
}

.aml-anthony__who {
	display: flex;
	align-items: center;
	gap: 20px;
}

.aml-anthony__face,
.aml-anthony__face img {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	object-fit: cover;
	object-position: center 18%;
}

.aml-anthony__nom {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 28px;
}

.aml-anthony__role {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.04em;
	color: rgba(17, 17, 18, 0.6);
}

.aml-anthony__side .aml-about__more { margin-top: 34px; }

/* Colonne de droite */
.aml-anthony__main > * + * { margin-top: clamp(40px, 5vw, 64px); }

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

/* Bloc « intertitre + texte » sur deux colonnes */
.aml-anthony__bloc {
	display: grid;
	grid-template-columns: 338fr 677fr;
	gap: 20px;
}

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

/* Photo cliquable : viseur au survol (bp-cursor.js) et léger rapprochement, comme les
   couvertures d'album. Le clic ouvre la photo en grand (bp-lightbox.js). */
.aml-anthony__figure {
	display: block;
	margin: 0;
	overflow: hidden;
	border-radius: 20px;
	background: var(--aml-mist);
}

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

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

/* Deux photos côte à côte : elles sont étirées à la même hauteur par la grille. Sans
   proportions imposées, la plus « carrée » laissait voir le fond gris du cadre sous la
   plus allongée. On leur donne donc le même format et on recadre. */
.aml-anthony__duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.aml-anthony__duo .aml-anthony__figure { aspect-ratio: 3 / 2; }

.aml-anthony__duo .aml-anthony__figure img {
	height: 100%;
	object-fit: cover;
}

/* Le rythme vertical de la colonne doit l'emporter sur le « margin: 0 » du cadre photo,
   sinon la photo vient coller au bouton du bloc qui la précède. */
.aml-anthony__main > .aml-anthony__figure + *,
.aml-anthony__main > * + .aml-anthony__figure { margin-top: clamp(40px, 5vw, 64px); }

/* --- Palmarès ----------------------------------------------------------------------------- */

.aml-anthony__h2 {
	margin: 0 0 8px;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 1.1;
}

.aml-prix {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid rgba(17, 17, 18, 0.1);
}

.aml-prix li {
	display: grid;
	grid-template-columns: 34px 1fr auto;
	align-items: baseline;
	gap: 12px;
	padding: 24px 0;
	border-top: 1px solid rgba(17, 17, 18, 0.1);
}

.aml-prix__rang {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: rgba(17, 17, 18, 0.45);
}

.aml-prix__nom {
	font-size: clamp(17px, 1.45vw, 20px);
	font-weight: 500;
	letter-spacing: -0.04em;
}

.aml-prix__quoi {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.04em;
	color: rgba(17, 17, 18, 0.6);
	text-align: right;
}

/* Palmarès complet, replié par défaut */
.aml-palmares {
	margin-top: 28px;
	interpolate-size: allow-keywords;
}

.aml-palmares__bouton {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	list-style: none;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.04em;
}

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

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

.aml-palmares[open] .aml-palmares__bouton::after { transform: rotate(45deg); }

.aml-palmares__annees {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 28px 20px;
	margin-top: 28px;
}

.aml-palmares__annee h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.05em;
}

.aml-palmares__annee ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.03em;
	color: rgba(17, 17, 18, 0.65);
}

.aml-palmares::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-palmares[open]::details-content { block-size: auto; opacity: 1; }

/* --- Formations et fin --------------------------------------------------------------------- */

.aml-anthony__fin {
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: clamp(32px, 4vw, 48px);
	border-top: 1px solid rgba(17, 17, 18, 0.1);
	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);
}

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

@media (max-width: 1199px) {
	.aml-anthony__inner { grid-template-columns: 1fr; gap: 48px; }
	.aml-anthony__side { position: static; }
	.aml-anthony__bloc { grid-template-columns: 1fr; gap: 12px; }
	.aml-anthony__bloc h2 { max-width: none; }
}

@media (max-width: 809px) {
	.aml-anthony__duo { grid-template-columns: 1fr; }
	.aml-prix li { grid-template-columns: 28px 1fr; }
	.aml-prix__quoi { grid-column: 2; text-align: left; }
	.aml-anthony__figure { border-radius: 14px; }
}
