/* ==========================================================================
   Sections : éléments typographiques partagés, puis une section par bloc
   ========================================================================== */

/* --------------------------------------------------------------------------
   Typographie partagée
   -------------------------------------------------------------------------- */

.manuscrit {
	color: var(--c-terracotta);
	font-family: var(--f-manuscrit);
	font-size: var(--fs-citation);
	font-weight: 400;
	line-height: 1;
}

.manuscrit--vert {
	color: var(--c-vert-jungle);
}

.manuscrit--clair {
	color: var(--c-beige);
}

.titre-section {
	font-size: var(--fs-titre-section);
	line-height: var(--lh-titre);
}

.titre-section--encre {
	color: var(--c-encre);
}

/* Titres en capitales espacées (« NOS SOINS », « CONTACT ») */
.titre-capitales {
	color: var(--c-teal-titre);
	font-size: var(--fs-titre-capitales);
	line-height: 1.1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	/* l'espacement après la dernière lettre décale le centrage : on le compense */
	margin-right: -0.16em;
}

.titre-capitales--encre {
	color: var(--c-encre);
}

.libelle {
	color: var(--c-teal-profond);
	font-size: var(--fs-libelle);
	font-weight: 500;
	letter-spacing: var(--ls-libelle);
	text-transform: uppercase;
}

.texte-riche p + p {
	margin-top: 0.75em;
}

.texte-riche strong {
	font-weight: 500;
}

.texte-riche--grand {
	font-size: var(--fs-corps-l);
}

.entete-section .manuscrit,
.contact-bloc__manuscrit {
	font-size: var(--fs-manuscrit-section);
	line-height: 1.1;
}

.entete-section {
	display: grid;
	justify-items: center;
	gap: 0.25rem;
	margin-bottom: clamp(2rem, 1.443rem + 2.286vw, 3rem);
	text-align: center;
}

/* Fonds aquarelle en transparence */
.fond-aquarelle {
	position: relative;
	isolation: isolate;
	background-color: var(--c-fond-clair);
}

.fond-aquarelle::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../img/aquarelle-clair.webp") center / cover;
	opacity: 0.9;
	pointer-events: none;
}

.fond-aquarelle--beige {
	background-color: var(--c-beige);
}

.fond-aquarelle--beige::before {
	background-image: url("../img/aquarelle-beige.webp");
	opacity: 0.6;
}

@media (min-width: 64em) {
	.fond-aquarelle::before {
		opacity: 0.6;
	}
}

/* --------------------------------------------------------------------------
   Héros de l'accueil
   -------------------------------------------------------------------------- */

.heros {
	/* Dans Figma l'en-tête recouvre le héros : on retire sa hauteur (18 → 26 px sous l'en-tête) */
	padding-block: clamp(1.125rem, 0.939rem + 0.762vw, 1.625rem) clamp(4.5rem, 3.6rem + 3.8vw, 7rem); /* bas : 72 → 112 */
}

.heros__grille {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 2.25rem;
}

/* Feuilles aquarellées posées en bas du héros, au centre (Figma : cadre 492 × 404 à 1440 px,
   219 × 180 sur mobile), sous le texte et les photos. */
.heros__feuilles {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: clamp(13.6875rem, 7.35rem + 26vw, 30.75rem);
	aspect-ratio: 492 / 404;
	overflow: hidden;
	transform: translateX(-50%);
	pointer-events: none;
}

.heros__feuilles img {
	position: absolute;
	top: -20.05%;
	left: -20.93%;
	width: 173.58%;
	max-width: none;
	height: 149.51%;
}

.heros__texte {
	display: grid;
	justify-items: start;
	gap: 1.125rem;
}

.heros__titre {
	font-size: var(--fs-titre-page);
	line-height: 1;
}

.heros__manuscrit {
	margin-top: -0.25rem;
}

.heros__intro {
	font-size: var(--fs-heros);
}

.heros__boutons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	width: 100%;
	margin-top: 0.5rem;
}

/* Photo en arche + photo ronde (mobile : la ronde à droite, desktop : à gauche) */
.heros__visuel {
	position: relative;
	order: -1;
	width: min(100%, 21.5rem);
	margin-inline: auto;
	padding-top: 0.5rem;
}

.heros__arche {
	width: 82%;
	aspect-ratio: 280 / 284;
	margin-left: 9%;
	overflow: hidden;
	border-radius: 50% 50% 1.25rem 1.25rem / 49.3% 49.3% 1.25rem 1.25rem; /* demi-cercle : 140 / 284 */
	background: var(--c-vert-doux);
}

.heros__arche img,
.heros__rond img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.heros__rond {
	position: absolute;
	top: 0;
	right: 0.375rem;
	width: 35%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 6px 34px rgb(167 137 88 / 0.45);
}

.heros__rond img {
	object-position: 45% 70%;
}

@media (min-width: 48em) {
	.heros__visuel {
		width: 26rem;
	}
}

@media (min-width: 64em) {
	.heros__grille {
		grid-template-columns: minmax(0, 37.5rem) minmax(0, 33.75rem); /* 600 / 540 */
		justify-content: space-between;
		align-items: center;
		gap: 3.75rem;
	}

	.heros__texte {
		gap: 1.625rem;
	}

	.heros__manuscrit {
		margin-top: 0;
	}

	.heros__boutons {
		margin-top: 0;
	}

	.heros__visuel {
		order: 0;
		width: 100%;
		max-width: 33.75rem;
		aspect-ratio: 540 / 620;
		padding-top: 0;
	}

	.heros__arche {
		position: absolute;
		top: 0;
		right: 0;
		width: 77.8%; /* 420 / 540 */
		height: 96.8%; /* 600 / 620 */
		margin: 0;
		aspect-ratio: auto;
		border-radius: 50% 50% 1.5rem 1.5rem / 35% 35% 1.5rem 1.5rem; /* demi-cercle : 210 / 600 */
	}

	.heros__rond {
		top: 6.3%;
		right: auto;
		left: 5.9%;
		width: 36.3%; /* 196 / 540 */
	}
}

/* --------------------------------------------------------------------------
   Engagements (bandeau vert)
   -------------------------------------------------------------------------- */

.engagements {
	padding-block: clamp(3rem, 2.443rem + 2.286vw, 4rem);
	background: var(--c-teal-profond);
	color: var(--c-blanc);
}

.engagements__liste {
	display: grid;
	gap: 2rem;
	padding: 0;
	list-style: none;
}

.engagement {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.engagement__feuille {
	flex-shrink: 0;
	width: 1.875rem;
	height: auto;
}

.engagement__titre {
	color: var(--c-blanc);
	font-size: var(--fs-sous-titre);
	line-height: var(--lh-sous-titre);
}

.engagement__texte {
	margin-top: 0.375rem;
}

@media (min-width: 64em) {
	.engagements__liste {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 3rem;
	}

	.engagement__feuille {
		width: 2.0625rem;
	}
}

/* --------------------------------------------------------------------------
   À propos (accueil)
   -------------------------------------------------------------------------- */

.apropos-court {
	position: relative;
	overflow: clip; /* l'illustration du pied ne dépasse pas de la section */
	background: var(--c-fond-clair);
}

.apropos-court__grille {
	display: grid;
	gap: 2rem;
}

.apropos-court__photo {
	overflow: hidden;
	aspect-ratio: 342 / 380;
	border-radius: 1.5rem;
	background: var(--c-vert-doux);
}

.apropos-court__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

.apropos-court__texte {
	position: relative;
	z-index: 1;
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 1.25rem;
}

.apropos-court__signature {
	font-size: var(--fs-manuscrit-l);
	line-height: 1.36; /* hauteur « normale » de Birthstone, comme dans Figma */
}

.apropos-court__illustration {
	display: none;
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.apropos-court__photo {
		max-width: 30rem;
	}
}

@media (min-width: 64em) {
	.apropos-court__grille {
		grid-template-columns: minmax(0, 30rem) minmax(0, 37.5rem); /* 480 / 600 */
		justify-content: center;
		align-items: start;
		gap: clamp(3rem, -4.385rem + 11.54vw, 6rem); /* 48 px à 1024 → 96 px à 1440 */
	}

	.apropos-court__photo {
		aspect-ratio: 480 / 580;
	}

	/* Illustration aquarelle qui déborde sur la section suivante */
	.apropos-court__illustration {
		position: absolute;
		right: max(1rem, calc((100% - var(--contenu-max)) / 2 - 2.6875rem)); /* 77 px du bord à 1440 */
		bottom: -3.875rem;
		z-index: 2;
		display: block;
		width: clamp(18rem, -0.3rem + 28.6vw, 25.4375rem); /* 288 px à 1024 → 407 px à 1440 */
		height: auto;
		pointer-events: none;
	}
}

/* --------------------------------------------------------------------------
   Cartes des soins
   -------------------------------------------------------------------------- */

.cartes-soins__liste {
	display: grid;
	gap: 1.25rem;
	padding: 0;
	list-style: none;
}

.cartes-soins__bouton {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

@media (min-width: 48em) {
	.cartes-soins__liste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
		align-items: start;
	}

	/* 3 cartes sur 2 colonnes : la dernière est centrée */
	.cartes-soins__liste > li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 0.75rem);
	}

	.cartes-soins__bouton {
		margin-top: 3rem;
	}
}

@media (min-width: 64em) {
	.cartes-soins__liste {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cartes-soins__liste > li:last-child:nth-child(odd) {
		grid-column: auto;
		width: auto;
	}

	.cartes-soins__liste > li:last-child:nth-child(3n + 1) {
		grid-column: 2;
	}
}

.carte-soin {
	position: relative;
	overflow: hidden;
	border-radius: 1.5rem;
	background: var(--c-creme);
	transition: box-shadow var(--duree) var(--ease), transform var(--duree) var(--ease);
}

.carte-soin:hover,
.carte-soin:focus-within {
	box-shadow: 0 12px 32px rgb(59 46 41 / 0.14);
}

.carte-soin__photo {
	overflow: hidden;
	aspect-ratio: 384 / 260;
	background: var(--c-vert-doux);
}

.carte-soin__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carte-soin__contenu {
	display: grid;
	gap: 0.75rem;
	padding: 1.75rem 1.75rem 2rem;
}

.carte-soin__titre {
	color: var(--c-encre);
	font-size: var(--fs-titre-carte);
	line-height: 1.1;
}

/* Toute la carte est cliquable grâce au lien du titre */
.carte-soin__lien {
	color: inherit;
	text-decoration: none;
}

.carte-soin__lien::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.carte-soin__lien:focus-visible {
	outline: none;
}

.carte-soin:has(.carte-soin__lien:focus-visible) {
	outline: 2px solid var(--c-vert-jungle);
	outline-offset: 3px;
}

/* Le sous-titre manuscrit se glisse sous le titre, comme dans Figma */
.carte-soin__sous-titre {
	margin-top: -1.1rem;
	font-size: var(--fs-manuscrit-s);
	letter-spacing: 0.03em;
	line-height: 1.25;
}

.carte-soin__accroche {
	line-height: 1.55;
}

.carte-soin__infos {
	color: var(--c-teal-profond);
	font-size: var(--fs-libelle);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: var(--ls-info);
}

.carte-soin__plus {
	margin-top: 0.25rem;
	color: var(--c-teal-titre);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: var(--ls-info);
}

.carte-soin__fleche {
	display: inline-block;
	margin-left: 0.375rem;
	transition: transform var(--duree) var(--ease);
}

.carte-soin:hover .carte-soin__fleche,
.carte-soin:focus-within .carte-soin__fleche {
	transform: translateX(0.25rem);
}

/* --------------------------------------------------------------------------
   Avis clientes : note moyenne, puis cartes (4 par ligne sur ordinateur,
   défilement horizontal sur mobile)
   -------------------------------------------------------------------------- */

.avis {
	padding-block: clamp(3.5rem, 2.9rem + 2.4vw, 5rem); /* 56 → 80 : section compacte */
	background: var(--c-fond-clair);
}

.avis--creme {
	background: var(--c-creme);
}

.avis__entete {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	margin-bottom: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
	text-align: center;
}

.avis__guillemet {
	width: clamp(1.8125rem, 1.582rem + 0.952vw, 2.4375rem);
	height: auto;
	color: var(--c-terracotta);
}

.avis__titre {
	color: var(--c-encre);
	font-size: var(--fs-titre-bloc);
	line-height: 1.15;
}

.avis__resume {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 0.875rem;
}

.avis__note {
	color: var(--c-teal-titre);
	font-family: var(--f-titre);
	font-size: var(--fs-accent);
	font-weight: var(--fw-titre);
	line-height: 1;
}

.avis__nombre {
	font-size: var(--fs-info);
}

/* Étoiles : une image de 5 étoiles recadrée selon la note (--note, demi-étoiles comprises) */
.avis__etoiles {
	display: block;
	line-height: 0;
}

.avis__etoiles img {
	width: calc(var(--note, 5) * 1.34rem - 0.21rem);
	max-width: 6.49rem;
	height: 1.125rem;
	object-fit: cover;
	object-position: left;
}

.avis__etoiles--grandes img {
	width: calc(var(--note, 5) * 1.935rem - 0.31rem);
	max-width: 9.37rem;
	height: 1.625rem;
}

/* Mobile : les cartes défilent sur une ligne, la suivante dépasse pour inviter à glisser */
.avis__liste {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(85%, 21rem);
	gap: 1rem;
	margin: 0 calc(-1 * var(--marge));
	padding: 0.25rem var(--marge) 1rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--marge);
	scrollbar-width: thin;
	scrollbar-color: var(--c-vert-doux) transparent;
	list-style: none;
}

.avis__liste:focus-visible {
	outline-offset: -2px;
}

.avis-carte {
	scroll-snap-align: start;
}

.avis-carte figure {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	height: 100%;
	margin: 0;
	padding: 1.5rem;
	border-radius: 1.25rem;
	background: var(--c-blanc);
	box-shadow: 0 6px 24px rgb(59 46 41 / 0.06);
}

.avis--creme .avis-carte figure {
	background: var(--c-fond-clair);
}

.avis-carte__texte {
	flex: 1;
	margin: 0;
	font-size: var(--fs-corps);
	line-height: var(--lh-corps);
}

/* Avis longs : 6 lignes maximum, le texte complet reste lu par les lecteurs d'écran */
.avis-carte__texte p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
}

.avis-carte__auteur {
	color: var(--c-teal-titre);
	font-size: var(--fs-libelle);
	font-weight: 500;
	letter-spacing: var(--ls-info);
}

.avis-carte__source {
	display: block;
	color: var(--c-encre);
	font-weight: 300;
}

.avis__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 1.75rem;
	margin-top: 1.75rem;
}

/* Tablette : 2 × 2 avis ; ordinateur : 4 avis sur une ligne (au-delà de 4, masqués) */
@media (min-width: 48em) {
	.avis__liste {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.avis-carte:nth-child(n + 5) {
		display: none;
	}
}

@media (min-width: 64em) {
	.avis__liste {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.icone--retournee {
	transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Bandeau bon cadeau
   -------------------------------------------------------------------------- */

.bandeau-bc {
	padding-block: clamp(4.5rem, 3.6rem + 3.8vw, 7rem);
	overflow: hidden;
	background: var(--c-teal-titre);
	color: var(--c-blanc);
}

.bandeau-bc__grille {
	display: grid;
	gap: 2.5rem;
}

.bandeau-bc__texte {
	display: grid;
	justify-items: start;
	gap: 0.875rem;
}

.bandeau-bc__titre {
	display: grid;
	gap: 0.75rem;
	color: var(--c-blanc);
}

.bandeau-bc__accroche {
	font-size: var(--fs-manuscrit-xl);
	line-height: 0.9;
}

.bandeau-bc__sous-titre {
	font-size: var(--fs-titre-moyen);
	line-height: var(--lh-titre);
}

.bandeau-bc .bouton {
	margin-top: 0.5rem;
}

.bandeau-bc__visuel img {
	width: 100%;
	max-width: 32.1875rem; /* 515 px */
	height: auto;
	margin-inline: auto;
}

@media (min-width: 64em) {
	.bandeau-bc__grille {
		grid-template-columns: minmax(0, 35rem) minmax(0, 32.1875rem); /* 560 / 515 */
		justify-content: space-between;
		align-items: center;
	}

	.bandeau-bc__visuel {
		margin-right: -1.875rem;
	}
}

/* --------------------------------------------------------------------------
   Bloc contact
   -------------------------------------------------------------------------- */

.contact-bloc {
	padding-block: clamp(4.5rem, 3.6rem + 3.8vw, 7rem);
	background: var(--c-fond-clair);
}

.contact-bloc__grille {
	display: grid;
	gap: 2.25rem;
}

.contact-bloc__infos {
	display: grid;
	justify-items: start;
	gap: 1.25rem;
}

.contact-bloc__manuscrit {
	margin-top: -0.25rem;
}

.infos {
	display: grid;
	gap: 1.25rem;
	margin: 0;
}

.infos__ligne {
	display: grid;
	gap: 0.25rem;
}

.infos dd {
	margin: 0;
	font-size: var(--fs-corps-l);
	line-height: var(--lh-corps);
}

.infos a {
	text-decoration: none;
}

.infos a:hover,
.infos a:focus-visible {
	color: var(--c-teal-profond);
	text-decoration: underline;
}

.contact-bloc__plan {
	overflow: hidden;
	aspect-ratio: 342 / 260;
	border-radius: 1.5rem;
	background: var(--c-vert-doux);
}

.contact-bloc__plan a {
	display: block;
	height: 100%;
}

.contact-bloc__plan img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms var(--ease);
}

.contact-bloc__plan a:hover img {
	transform: scale(1.02);
}

@media (min-width: 64em) {
	.contact-bloc__grille {
		grid-template-columns: minmax(0, 30rem) minmax(0, 40rem); /* 480 / 640 */
		justify-content: space-between;
		align-items: center;
		gap: 5rem;
	}

	.contact-bloc__plan {
		aspect-ratio: 640 / 440;
	}
}

/* --------------------------------------------------------------------------
   Éléments partagés par les pages intérieures
   -------------------------------------------------------------------------- */

.titre-soin {
	color: var(--c-encre);
	font-size: var(--fs-titre-soin);
	line-height: 1.06;
}

.titre-capitales--petit {
	font-size: var(--fs-titre-capitales-s);
}

.titre-bloc {
	color: var(--c-encre);
	font-size: var(--fs-titre-bloc);
	line-height: 1.15;
}

/* Liste à puces en feuilles de ginkgo */
.liste-feuilles {
	display: grid;
	gap: 0.5rem;
	padding: 0;
	list-style: none;
}

.liste-feuilles li {
	position: relative;
	padding-left: 1.75rem;
	line-height: var(--lh-corps);
}

.liste-feuilles li::before {
	content: "";
	position: absolute;
	top: 0.25em;
	left: 0;
	width: 1.0625rem;
	height: 1rem;
	background: url("../img/feuille-ginkgo-verte.svg") center / contain no-repeat;
}

@media (min-width: 48em) {
	.liste-feuilles--colonnes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem 1.5rem;
	}
}

.lien-fleche {
	color: var(--c-teal-titre);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: var(--ls-info);
	text-decoration: none;
}

.lien-fleche span {
	display: inline-block;
	margin-left: 0.375rem;
	transition: transform var(--duree) var(--ease);
}

.lien-fleche:hover span,
.lien-fleche:focus-visible span {
	transform: translateX(0.25rem);
}

/* Filigrane de feuilles de ginkgo en décor */
.filigrane {
	position: absolute;
	z-index: -1;
	height: auto;
	opacity: 0.2;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Étapes numérotées
   -------------------------------------------------------------------------- */

.etapes {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--c-fond-clair);
}

.etapes__filigrane {
	top: -14rem;
	right: -7rem;
	width: clamp(18rem, 10rem + 20vw, 30.3125rem); /* 485 px à 1440 */
	transform: rotate(-150deg);
}

.etapes__liste {
	display: grid;
	gap: 2rem;
	padding: 0;
	list-style: none;
}

.etape {
	display: grid;
	align-content: start;
	gap: 0.75rem;
}

.etape__numero {
	color: var(--c-teal-clair);
	font-family: var(--f-titre);
	font-size: var(--fs-numero);
	font-weight: var(--fw-titre);
	line-height: 1;
}

/* Petit filet sous le numéro */
.etape__numero::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 1px;
	margin-top: 0.75rem;
	background: var(--c-vert-doux);
}

.etape__titre {
	color: var(--c-encre);
	font-size: var(--fs-sous-titre);
	line-height: var(--lh-sous-titre);
}

.etapes__precisions {
	max-width: 56.25rem; /* 900 px */
	margin: 2.5rem auto 0;
	text-align: center;
}

.etapes__precisions p + p {
	margin-top: 0.75rem;
}

@media (min-width: 48em) {
	.etapes__liste {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem;
	}
}

@media (min-width: 64em) {
	.etapes__liste {
		grid-template-columns: repeat(var(--nb, 4), minmax(0, 1fr));
	}

	.etapes__precisions {
		margin-top: 3.5rem;
	}
}

/* --------------------------------------------------------------------------
   Cartes des soins : variante « Les autres soins »
   -------------------------------------------------------------------------- */

.cartes-soins--clair {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--c-fond-clair); /* les cartes crème se détachent du fond */
}

.cartes-soins__filigrane {
	right: -15rem;
	bottom: -10rem;
	width: 29rem;
}

@media (min-width: 48em) {
	.cartes-soins__liste[data-nb="2"] {
		max-width: 49.5rem; /* 2 × 384 + 24 px */
		margin-inline: auto;
	}

	.cartes-soins__liste[data-nb="2"] > li:last-child:nth-child(odd) {
		grid-column: auto;
		width: auto;
	}
}

@media (min-width: 64em) {
	.cartes-soins__liste[data-nb="2"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cartes-soins__liste[data-nb="2"] > li:last-child:nth-child(3n + 1) {
		grid-column: auto;
	}
}

/* --------------------------------------------------------------------------
   Appel à l'action commun
   -------------------------------------------------------------------------- */

.appel-action {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--c-beige);
}

.appel-action__branche {
	position: absolute;
	right: -8.6875rem; /* -139 px */
	bottom: -9.97rem;
	z-index: -1;
	width: clamp(14rem, 8rem + 17vw, 24.9375rem); /* 399 px à 1440 */
	height: auto;
	pointer-events: none;
}

.appel-action__grille {
	display: grid;
	gap: 2rem;
}

.appel-action__titre {
	display: grid;
	gap: 0.625rem;
}

.appel-action__titre .titre-soin {
	color: var(--c-teal-titre);
}

.appel-action__texte {
	display: grid;
	gap: 0.625rem;
}

.appel-action__action {
	display: grid;
	justify-items: center;
	gap: 0.875rem;
}

.appel-action__infos {
	font-size: 0.9375rem;
	letter-spacing: var(--ls-info);
	text-align: center;
}

.appel-action__infos a {
	text-decoration: none;
}

@media (min-width: 64em) {
	.appel-action__grille {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 5rem;
	}

	.appel-action__action {
		justify-items: start;
	}
}
/* --------------------------------------------------------------------------
   Variantes partagées
   -------------------------------------------------------------------------- */

.titre-soin--teal {
	color: var(--c-teal-profond);
}

.titre-capitales--clair {
	color: var(--c-blanc);
	text-align: center;
}

/* Titre posé directement sur un conteneur : on garde le centrage du conteneur */
.titre-capitales.conteneur {
	margin-inline: auto;
}

.engagements--titre {
	padding-block: clamp(4.5rem, 3.6rem + 3.8vw, 6.5rem);
}

.engagements--titre .titre-capitales {
	margin-bottom: clamp(2.25rem, 1.65rem + 2.5vw, 3.5rem);
}

.etapes--beige {
	background: var(--c-beige);
}

.etapes--creme {
	background: var(--c-creme);
}

.etapes--creme::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: url("../img/aquarelle-beige.webp") center / cover;
	opacity: 0.3;
}

.etapes .titre-soin + .manuscrit {
	font-size: var(--fs-manuscrit-section);
}

/* Carte d'informations (infos pratiques des soins, paiement des tarifs) */
.carte-info {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 0.875rem;
	padding: clamp(1.75rem, 1.321rem + 1.76vw, 2.5rem);
	border-radius: 1.25rem;
	background: var(--c-fond-clair);
}

.carte-info .texte-riche p + p {
	margin-top: 0.875rem;
}

.carte-info--creme {
	background: var(--c-creme);
}

/* --------------------------------------------------------------------------
   Bandeau d'en-tête des pages intérieures
   -------------------------------------------------------------------------- */

.bandeau-page {
	overflow: hidden;
	/* Figma : 187 px depuis le haut de la page, en-tête de 99 px compris */
	padding-block: clamp(3rem, 2.443rem + 2.286vw, 5.5rem) clamp(4.5rem, 3.6rem + 3.8vw, 6.5rem);
}

.bandeau-page .conteneur {
	position: relative;
	z-index: 1;
}

.bandeau-page__contenu {
	display: grid;
	justify-items: start;
	gap: 1.125rem;
	max-width: 48.75rem; /* 780 px */
}

.bandeau-page__titre {
	font-size: var(--fs-titre-page);
	line-height: 1;
}

.bandeau-page__intro {
	font-size: var(--fs-heros);
}

.bandeau-page__decor {
	position: absolute;
	right: -3.5rem;
	bottom: -2.5rem;
	width: clamp(12rem, 4rem + 25vw, 30rem); /* 481 px à 1440 */
	height: auto;
	pointer-events: none;
}

.bandeau-page__decor--trait {
	opacity: 0.2;
	transform: rotate(-150deg);
}

/* Branche au trait (pages légales) : absente sur mobile, comme dans Figma */
.bandeau-page__decor--branche {
	display: none;
}

@media (min-width: 48em) {
	.bandeau-page__decor--branche {
		display: block;
		top: -1.8rem;
		bottom: auto;
		right: 0;
		width: clamp(16rem, 2rem + 26vw, 25rem); /* 399 px à 1440 */
	}
}

@media (min-width: 64em) {
	.bandeau-page__decor {
		top: 0;
		bottom: auto;
		right: max(-4rem, calc((100% - 90rem) / 2 + 2rem));
	}

	.bandeau-page__decor--branche {
		top: -1.8rem;
		right: max(0rem, calc((100% - 90rem) / 2 + 2rem));
	}
}

/* Grand écran : feuilles placées comme dans Figma, calées sur le bord droit du contenu,
   coupées en bas par le bandeau (1440 px : 762 px de large, 67 px au-dessus, 327 px au-delà du contenu). */
@media (min-width: 80em) {
	.bandeau-page__decor--aquarelle {
		top: max(-4.65vw, -4.2rem);
		right: calc((100% - min(100% - 2 * var(--marge), var(--contenu-max))) / 2 - min(22.7vw, 20.45rem));
		width: min(52.9vw, 47.6rem);
	}
}
/* --------------------------------------------------------------------------
   Page introuvable (404)
   -------------------------------------------------------------------------- */

.introuvable {
	padding-block: clamp(4rem, 3.443rem + 2.286vw, 5.5rem) clamp(6rem, 4.6rem + 5.7vw, 10rem);
}

.introuvable__contenu {
	display: grid;
	justify-items: center;
	gap: clamp(1rem, 0.907rem + 0.381vw, 1.25rem); /* 16 → 20 */
	text-align: center;
}

.introuvable__illustration {
	width: clamp(7.25rem, 6.2rem + 4.3vw, 9.75rem); /* 116 → 156 */
	margin-block: clamp(2rem, 1.7rem + 1.2vw, 2.875rem);
}

.introuvable__manuscrit {
	font-size: clamp(4.5rem, 3.943rem + 2.286vw, 6rem); /* 72 → 96 */
	line-height: 1.05;
}

.introuvable__titre {
	font-size: clamp(2.75rem, 2.1rem + 2.667vw, 4.5rem); /* 44 → 72 */
	line-height: 1;
}

.introuvable__texte {
	max-width: 40rem;
	font-size: var(--fs-corps-l);
}

.introuvable__boutons {
	display: grid;
	gap: 1rem;
	width: 100%;
	margin-top: 0.75rem;
}

@media (min-width: 48em) {
	.introuvable__boutons {
		display: flex;
		justify-content: center;
		width: auto;
	}
}

/* --------------------------------------------------------------------------
   Plan d'accès / carte Google chargée au clic
   -------------------------------------------------------------------------- */

.carte {
	position: relative;
	height: 100%;
}

.carte > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carte__actions {
	position: absolute;
	inset: auto 0 0;
	display: grid;
	justify-items: center;
	gap: 0.375rem;
	padding: 2.5rem 1rem 0.875rem;
	background: linear-gradient(to top, rgb(5 101 96 / 0.92) 55%, rgb(5 101 96 / 0));
	color: var(--c-blanc);
	text-align: center;
}

.carte__lien {
	display: inline-flex;
	align-items: center;
	min-height: var(--zone-tactile);
	color: var(--c-blanc);
	font-size: var(--fs-info);
	font-weight: 500;
}

.carte__mention {
	font-size: var(--fs-libelle);
	line-height: 1.4;
	opacity: 0.9;
}

.carte iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --------------------------------------------------------------------------
   Animations (assets/js/animations.js) : discrètes, désactivées si la visiteuse
   préfère moins de mouvement. Sans JavaScript, tout reste visible.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	/* Bloc qui se pose : il monte un peu et apparaît */
	[data-anim="monte"] {
		opacity: 0;
		transform: translateY(1.75rem);
		/* On garde aussi les transitions de survol (boutons et liens animés au défilement) */
		transition:
			opacity 800ms var(--ease-pose) var(--anim-retard, 0ms),
			transform 900ms var(--ease-pose) var(--anim-retard, 0ms),
			color var(--duree) var(--ease),
			background-color var(--duree) var(--ease),
			border-color var(--duree) var(--ease),
			box-shadow var(--duree) var(--ease);
	}

	/* Photo dévoilée de bas en haut, avec un léger recul de l'image */
	[data-anim="devoile"] {
		clip-path: inset(100% 0 0 0 round 1.5rem);
		transition: clip-path 1100ms var(--ease-pose) var(--anim-retard, 0ms);
	}

	[data-anim="devoile"] img {
		transform: scale(1.08);
		transition: transform 1600ms var(--ease-pose);
	}

	/* Phrase manuscrite qui s'écrit de gauche à droite */
	[data-anim="ecrit"],
	.heros__manuscrit,
	.bandeau-page .manuscrit,
	.soin-entete .manuscrit {
		clip-path: inset(-0.4em 100% -0.4em -0.3em);
		transition: clip-path 1400ms cubic-bezier(0.45, 0, 0.2, 1) calc(150ms + var(--anim-retard, 0ms));
	}

	[data-anim].est-visible {
		opacity: 1;
		transform: none;
	}

	/* Fin de l'écriture : le cadrage ne concerne que les phrases manuscrites
	   (appliqué aux cartes, il couperait leur ombre portée). */
	[data-anim="ecrit"].est-visible {
		clip-path: inset(-0.4em -0.3em -0.4em -0.3em);
	}

	[data-anim="devoile"].est-visible {
		clip-path: inset(0 0 0 0 round 1.5rem);
	}

	[data-anim="devoile"].est-visible img {
		transform: none;
	}

	/* En haut de page, la phrase manuscrite s'écrit dès l'arrivée */
	.heros__manuscrit,
	.bandeau-page .manuscrit,
	.soin-entete .manuscrit {
		animation: ginkgo-ecriture 1400ms cubic-bezier(0.45, 0, 0.2, 1) 350ms both;
	}

	@keyframes ginkgo-ecriture {
		from { clip-path: inset(-0.4em 100% -0.4em -0.3em); }
		to { clip-path: inset(-0.4em -0.3em -0.4em -0.3em); }
	}

	/* Haut de page : les textes se posent dès l'arrivée, l'un après l'autre
	   (la phrase manuscrite a sa propre animation d'écriture). */
	:is(.heros__texte, .bandeau-page__contenu, .soin-entete__texte) > :not(.manuscrit) {
		animation: ginkgo-pose 900ms var(--ease-pose) both;
	}

	:is(.heros__texte, .bandeau-page__contenu, .soin-entete__texte) > :nth-child(2):not(.manuscrit) { animation-delay: 120ms; }
	:is(.heros__texte, .bandeau-page__contenu, .soin-entete__texte) > :nth-child(3) { animation-delay: 260ms; }
	:is(.heros__texte, .bandeau-page__contenu, .soin-entete__texte) > :nth-child(4) { animation-delay: 380ms; }
	:is(.heros__texte, .bandeau-page__contenu, .soin-entete__texte) > :nth-child(n + 5) { animation-delay: 480ms; }

	@keyframes ginkgo-pose {
		from {
			opacity: 0;
			transform: translateY(1.25rem);
		}
	}

	/* Images du haut de page : la photo principale se dévoile de bas en haut en reculant
	   légèrement, la photo ronde éclot juste après. */
	:is(.heros__arche, .soin-entete__photo) img {
		animation: ginkgo-devoile 1300ms var(--ease-pose) 150ms both;
	}

	.heros__rond {
		animation: ginkgo-eclot 900ms var(--ease-pose) 750ms both;
	}

	@keyframes ginkgo-devoile {
		from {
			clip-path: inset(100% 0 0 0);
			scale: 1.1;
		}
		to {
			clip-path: inset(0 0 0 0);
			scale: 1;
		}
	}

	@keyframes ginkgo-eclot {
		from {
			opacity: 0;
			scale: 0.6;
		}
	}

	/* Feuilles aquarellées : elles descendent en planant et se posent à l'arrivée,
	   puis bougent à peine, comme dans une brise. */
	.heros__feuilles img,
	.bandeau-page__decor--aquarelle,
	.soin-entete__aquarelle {
		transform-origin: 30% 95%;
		animation:
			ginkgo-chute 2200ms var(--ease-pose) 300ms both,
			ginkgo-brise 9s ease-in-out 2500ms infinite alternate;
	}

	@keyframes ginkgo-chute {
		from {
			opacity: 0;
			translate: -1.5rem -3rem;
			rotate: -9deg;
		}
		60% {
			opacity: 1;
		}
		to {
			translate: 0 0;
			rotate: -1.6deg;
		}
	}

	@keyframes ginkgo-brise {
		from { rotate: -1.6deg; }
		to { rotate: 1.8deg; }
	}

	/* Cartes de soin : la photo s'approche au survol */
	.carte-soin__photo img {
		transition: transform 700ms var(--ease-pose);
	}

	.carte-soin:hover .carte-soin__photo img {
		transform: scale(1.05);
	}
}

/* --------------------------------------------------------------------------
   Promotions : annonces, étiquettes, prix barrés et prix remisés (Tarifs, cartes et pages des soins)
   -------------------------------------------------------------------------- */

.promos {
	display: grid;
	gap: 0.75rem;
	margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3rem);
}

.promo-annonce {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgb(184 90 74 / 0.35);
	border-radius: 1rem;
	background: #fbeee9;
	font-size: var(--fs-corps);
	line-height: 1.45;
}

.promo-annonce strong {
	color: var(--c-terracotta);
}

.promo-annonce__reduction {
	flex-shrink: 0;
	padding: 0.375rem 0.75rem;
	border-radius: 999px;
	background: var(--c-terracotta);
	color: var(--c-blanc);
	font-weight: 500;
	white-space: nowrap;
}

.ligne-tarif__promo {
	padding: 0.125rem 0.625rem;
	border-radius: 999px;
	background: #fbeee9;
	color: var(--c-terracotta);
	font-size: var(--fs-libelle);
	font-weight: 500;
	line-height: 1.5;
}

.ligne-tarif--promo .ligne-tarif__prix {
	display: grid;
	justify-items: end;
	line-height: 1.05;
}

.ligne-tarif__ancien {
	color: var(--c-encre);
	font-family: var(--f-texte);
	font-size: 0.9375rem;
	font-weight: 300;
	opacity: 0.7;
}

.ligne-tarif__nouveau {
	color: var(--c-terracotta);
	text-decoration: none;
}

.promo-annonce--compacte {
	padding: 0.625rem 0.875rem;
	font-size: var(--fs-corps-s);
}

/* Étiquette sur la photo des cartes de soin */
.carte-soin__photo {
	position: relative;
}

.promo-pastille {
	position: absolute;
	top: 0.875rem;
	left: 0.875rem;
	max-width: calc(100% - 1.75rem);
	padding: 0.375rem 0.875rem;
	border-radius: 999px;
	background: var(--c-terracotta);
	color: var(--c-blanc);
	font-size: var(--fs-libelle);
	font-weight: 500;
	line-height: 1.3;
	box-shadow: 0 4px 12px rgb(59 46 41 / 0.18);
}

/* Prix dans un texte (cartes, pastilles, infos pratiques) */
.prix-barre {
	opacity: 0.65;
	font-weight: 300;
}

.prix-promo {
	color: var(--c-terracotta);
	font-weight: 500;
	text-decoration: none;
}
