/**
 * Section « À propos » de l'accueil — bloc « About » du template Captured.
 * Cotes relevées sur la démo à 1440 px : marges 200 / 36 / 160, grille de 5 colonnes
 * (109 · 656 · 109 · 328 · 109, gouttières de 10 px), titres Inter Medium 82 px.
 * La règle graduée en tête de section est décrite dans aml-hero.css (.aml-ruler).
 */

.aml-about {
	position: relative;
	background: var(--aml-mist);
	color: var(--aml-ink);
	padding: clamp(120px, 13.9vw, 200px) clamp(16px, 2.5vw, 36px) clamp(96px, 11.1vw, 160px);
}

.aml-about__inner {
	max-width: 1920px;
	margin: 0 auto;
}

/* --- Citation ------------------------------------------------------------------------ */

.aml-about__top {
	display: grid;
	grid-template-columns: 543fr 810fr;
	align-items: start;
}

.aml-about__name p {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.06em;
	line-height: 24px;
}

.aml-about__name p + p {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 22px;
	color: rgba(17, 17, 18, 0.6);
}

.aml-about__quote {
	display: flex;
	gap: 22px;
	align-items: flex-start;
}

/* Guillemets (34 × 37, opacité 15 %) */
.aml-about__quote::before {
	content: '';
	flex: none;
	width: 34px;
	height: 37px;
	background: var(--aml-i-quote) no-repeat center / contain;
}

.aml-about__h2,
.aml-about__lead {
	margin: 0;
	font-size: clamp(38px, 5.7vw, 82px);
	font-weight: 500;
	letter-spacing: -0.07em;
	line-height: 0.96;
	color: var(--aml-ink);
}

.aml-about__lead {
	margin-top: 0;
}

/* --- Grille ---------------------------------------------------------------------------- */

.aml-about__grid {
	display: grid;
	grid-template-columns: 1fr 6fr 1fr 3fr 1fr;
	column-gap: 10px;
	margin-top: clamp(64px, 9.7vw, 140px);
}

.aml-about__left  { grid-column: 2; }
.aml-about__right { grid-column: 4; }

.aml-about__text {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 41px;
	align-items: start;
}

.aml-about__intro {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.05em;
	line-height: 28px;
	color: rgba(17, 17, 18, 0.6);
}

/* Avis client */
.aml-about__review {
	margin: 0; /* <figure> : marges navigateur de 40 px */
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 20px;
	align-items: start;
}

.aml-about__avatar img,
.aml-about__avatar {
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 62% 55%;
}

.aml-about__review-text p {
	margin: 0;
}

/* Note Google : « 4,9 / 5 » + 5 étoiles remplies au prorata (masque SVG) */
.aml-about__rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 18px;
}

.aml-stars {
	display: block;
	width: 75px;
	height: 15px;
	background: linear-gradient(90deg, var(--aml-ink) calc(var(--rating, 5) / 5 * 100%), rgba(17, 17, 18, 0.18) 0);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M7.5 1l1.9 4.1 4.5.5-3.4 3 1 4.4-4-2.3-4 2.3 1-4.4-3.4-3 4.5-.5z'/%3E%3C/svg%3E") repeat-x left center / 15px 15px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M7.5 1l1.9 4.1 4.5.5-3.4 3 1 4.4-4-2.3-4 2.3 1-4.4-3.4-3 4.5-.5z'/%3E%3C/svg%3E") repeat-x left center / 15px 15px;
}

.aml-about__avatar--initial {
	display: grid;
	place-items: center;
	background: var(--aml-ink);
	color: var(--aml-white);
	font-weight: 600;
}

.aml-about__review-author a {
	color: inherit;
}

.aml-about__review-quote {
	margin: 0; /* <blockquote> : marges navigateur */
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 20px;
	color: rgba(17, 17, 18, 0.6);
}

.aml-about__review-author {
	margin-top: 14px !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 18px;
}

/* Carrousel des avis Google (bp-review-slider.js) : note fixe alignée sur la colonne de
 * texte (photo 46 px + 20 px), avis superposés dans la même cellule de grille — le bloc
 * prend la hauteur du plus long, sans saut — et fondu enchaîné avec léger glissement. */
.aml-reviews {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aml-reviews__rating {
	flex-wrap: wrap;
	margin: 0 0 0 66px !important;
}

.aml-reviews__source {
	color: rgba(17, 17, 18, 0.6);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aml-reviews__track {
	display: grid;
}

.aml-reviews__track > .aml-about__review {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.68, 0, 0.05, 0.99), visibility 0s 0.7s;
}

.aml-reviews__track > .aml-about__review.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.6s ease 0.2s, transform 0.8s cubic-bezier(0.68, 0, 0.05, 0.99) 0.2s, visibility 0s;
}

.aml-reviews__dots {
	display: flex;
	gap: 2px;
	margin-left: 60px;
}

.aml-reviews__dot {
	position: relative;
	width: 22px;
	height: 18px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.aml-reviews__dot::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: rgba(17, 17, 18, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.4s cubic-bezier(0.34, 1.3, 0.64, 1), background-color 0.3s ease;
}

.aml-reviews__dot[aria-current="true"]::before {
	width: 16px;
	background: var(--aml-ink);
}

.aml-reviews__dot:focus-visible {
	outline: 2px solid var(--aml-ink);
	outline-offset: 1px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.aml-reviews__track > .aml-about__review,
	.aml-reviews__track > .aml-about__review.is-active,
	.aml-reviews__dot::before {
		transition: none;
	}
}

.aml-about__photo {
	margin-top: 70px;
	aspect-ratio: 656 / 529;
	border-radius: 20px;
	overflow: hidden;
}

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

/* --- Carte de droite ------------------------------------------------------------------ */

/*
 * Survol de la carte (variante « hover » de la démo, 0,3 s, courbe 0.82, 0.11, 0.37, 0.82) :
 * ombre portée, photo zoomée à 110 % et tournée de 1°, bouton tourné de 45°.
 * Toute la carte est cliquable (le bouton s'étend sur elle, voir .aml-card__button::after).
 */
.aml-card {
	--aml-card-ease: cubic-bezier(0.82, 0.11, 0.37, 0.82);
	position: relative;
	background: var(--aml-white);
	border-radius: 12px;
	padding: 10px;
	transition: box-shadow 0.3s var(--aml-card-ease);
}

.aml-card:hover,
.aml-card:focus-within {
	box-shadow:
		0 0.6px 1.57px -1.08px rgba(0, 0, 0, 0.14),
		0 2.29px 5.95px -2.17px rgba(0, 0, 0, 0.13),
		0 10px 26px -3.25px rgba(0, 0, 0, 0.08);
}

.aml-card__photo {
	aspect-ratio: 308 / 377;
	border-radius: 8px;
	overflow: hidden;
}

.aml-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
	transition: transform 0.3s var(--aml-card-ease);
}

.aml-card:hover .aml-card__photo img,
.aml-card:focus-within .aml-card__photo img {
	transform: scale(1.1) rotate(1deg);
}

/* Pastille posée sur la photo : portrait + point vert */
.aml-card__pill {
	position: absolute;
	top: 24px;
	left: 24px;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 14px 3px 3px;
	border-radius: 50px;
	background: var(--aml-white);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 18px;
	white-space: nowrap;
}

.aml-card__pill-face {
	position: relative;
	flex: none;
	width: 32px;
	height: 32px;
}

.aml-card__pill-face img {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 18%;
}

.aml-card__pill-face::after {
	content: '';
	position: absolute;
	top: 1px;
	right: -1px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgb(139, 226, 107);
	box-shadow: 0 0 0 2px var(--aml-white);
}

.aml-card__body {
	padding: 26px 20px 20px;
}

.aml-card__title {
	margin: 0 0 9px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 28px;
}

.aml-card__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.aml-card__text {
	margin: 0;
	max-width: 218px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 20px;
	color: rgba(17, 17, 18, 0.6);
}

/* Bouton rond noir à flèche (ouvre le formulaire Fotostudio).
 * L'icône pivote sur ::before ; le bouton lui-même n'est jamais transformé, sinon il
 * deviendrait le repère de ::after, qui doit couvrir toute la carte. */
.aml-card__button {
	flex: none;
	position: static;
	display: block;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	cursor: pointer;
}

.aml-card__button::before {
	content: '';
	display: block;
	width: 40px;
	height: 40px;
	background: var(--aml-i-button) no-repeat center / 40px 40px;
	transition: transform 0.3s var(--aml-card-ease);
}

.aml-card:hover .aml-card__button::before,
.aml-card:focus-within .aml-card__button::before {
	transform: rotate(45deg);
}

/* Zone cliquable étendue à toute la carte, sans imbriquer de contrôles */
.aml-card__button::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 12px;
}

.aml-card__button:focus-visible::after {
	outline: 2px solid var(--aml-ink);
	outline-offset: 3px;
}

/* Lien « galeries » (composant « Desktop dark » de la démo) : souligné de 2 px. Au survol,
 * le texte et la flèche glissent de 6 px vers la droite et la flèche pivote de 45°
 * (ressort de 0,4 s au rebond de 0,2) ; le soulignement reste en place. */
.aml-about__more {
	--aml-more-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
	display: inline-flex;
	align-items: center;
	gap: 17px;
	margin-top: 128px;
	color: var(--aml-ink);
	text-decoration: none;
	border-bottom: 2px solid var(--aml-ink);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 35px;
}

.aml-about__more > span {
	display: inline-block;
	transition: transform 0.45s var(--aml-more-spring);
}

.aml-about__more::after {
	content: '';
	width: 13px;
	height: 13px;
	background: var(--aml-i-arrow-dark) no-repeat center / contain;
	transition: transform 0.45s var(--aml-more-spring);
}

.aml-about__more:hover > span,
.aml-about__more:focus-visible > span {
	transform: translateX(6px);
}

.aml-about__more:hover::after,
.aml-about__more:focus-visible::after {
	transform: translateX(6px) rotate(45deg);
}

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

@media (max-width: 1199px) {
	.aml-about__grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
	.aml-about__left  { grid-column: 1; }
	.aml-about__right { grid-column: 2; }
	.aml-about__text { grid-template-columns: 1fr; gap: 32px; }
	.aml-about__more { margin-top: 48px; }
}

@media (max-width: 809px) {
	.aml-about__top { grid-template-columns: 1fr; gap: 32px; }
	.aml-about__quote { gap: 14px; }
	.aml-about__quote::before { width: 24px; height: 26px; }
	.aml-about__grid { grid-template-columns: 1fr; row-gap: 48px; }
	.aml-about__left,
	.aml-about__right { grid-column: 1; }
	.aml-about__photo { margin-top: 40px; }
}
