/* ==========================================================================
   LM Theme — page d'accueil
   Chargée uniquement avec le modèle « Accueil ».

   Sommaire
   1. Hero
   2. Spécialiste du web
   3. Prestations
   4. Rubans
   5. Avis
   6. Méthode
   7. Votre futur client, en trois temps
   8. Un seul interlocuteur

   Les animations au défilement sont dans assets/js/animations.js.
   ========================================================================== */

/* 1. Hero
   ========================================================================== */

.lm-hero--accueil {
	min-height: 100vh;
	min-height: 100svh;
}

.lm-hero--accueil .lm-hero__in {
	padding-bottom: clamp(96px, 11vw, 170px);
}

.lm-hero--accueil .lm-hero__surtitre {
	margin-top: 0;
}

.lm-hero__mention {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 22px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--sur-sombre);
}

.lm-hero__mention i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--orange);
	animation: lm-clignote 1.6s ease-in-out infinite alternate;
}

@keyframes lm-clignote {
	from {
		opacity: .25;
	}

	to {
		opacity: 1;
	}
}

/* 2. Spécialiste du web
   ========================================================================== */

.lm-spe {
	position: relative;
	padding: clamp(96px, 13vw, 220px) 24px clamp(96px, 12vw, 200px);
	overflow: clip;
	background: var(--blanc);
	background-image: radial-gradient(55% 45% at 100% 0%, rgba(47, 168, 242, .11), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(255, 173, 0, .1), transparent 70%);
	text-align: center;
}

/* Lignes qui partent du haut de la section et longent ses bords. */
.lm-spe__lignes {
	display: none;
}

.lm-spe__in {
	position: relative;
}

.lm-spe__titre {
	padding-bottom: clamp(40px, 5vw, 84px);
}

.lm-spe__texte {
	max-width: 1180px;
	margin: 0 auto;
	font-size: clamp(25px, 3.2vw, 46px);
	font-weight: 700;
	font-stretch: 104%;
	letter-spacing: -.03em;
	line-height: 1.16;
	text-wrap: balance;
}

.lm-cle {
	color: var(--bleu);
}

@media (min-width: 901px) {
	.lm-spe__lignes {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		max-width: none;
		pointer-events: none;
	}

	.lm-spe__lignes path {
		stroke: var(--marine);
		stroke-opacity: .17;
		stroke-width: 1.4;
	}

	.lm-spe__point {
		fill: var(--bleu);
	}

	.lm-spe__texte {
		max-width: min(940px, calc(100% - 400px));
	}
}

/* Ouverture animée : la section blanche s'ouvre en ellipse sur un fond bleu,
   précédée de deux ondes. Ces règles ne s'appliquent que lorsque le script est actif. */
.lm-spe-fond {
	position: relative;
}

.lm-spe-onde {
	display: none;
}

.lm-spe-fond.est-animee {
	background: var(--bleu);
}

.est-animee .lm-spe-onde {
	position: absolute;
	inset: 0;
	display: block;
	pointer-events: none;
}

.lm-spe-onde--1 {
	background: rgba(255, 255, 255, .2);
}

.lm-spe-onde--2 {
	background: rgba(255, 255, 255, .42);
}

/* 3. Prestations
   ========================================================================== */

.lm-prestas {
	position: relative;
	padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 124px);
	overflow: clip;
	background: var(--bleu);
	background-image: var(--halo-bleu);
	color: var(--marine);
}

.lm-prestas__lignes {
	display: none;
}

.lm-prestas__in {
	position: relative;
}

.lm-prestas__tete {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 40px;
}

.lm-prestas .lm-h2 .lm-t2 {
	color: var(--blanc);
}

.lm-indice {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding: 10px 18px 10px 14px;
	border-radius: 999px;
	background: var(--marine);
	color: var(--blanc);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.lm-prestas__liste {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: clamp(26px, 3vw, 44px) 0 0;
	padding: 0;
	list-style: none;
}

/* Le retrait négatif aligne le texte sur la marge : le fond du survol déborde de 20 px. */
.lm-prestas__liste li {
	max-width: calc(100% + 20px);
	margin-left: -20px;
}

/* Une prestation : au survol, le pictogramme et la phrase se déplient. */
.lm-presta {
	display: grid;
	grid-template-columns: 0 minmax(0, auto);
	column-gap: 0;
	align-items: center;
	padding: 5px 20px;
	border-radius: var(--rayon);
	color: var(--blanc);
	transition: background-color .35s, grid-template-columns .45s var(--courbe), column-gap .45s var(--courbe), padding .45s var(--courbe);
}

.lm-presta__picto {
	display: flex;
	min-width: 0;
	overflow: hidden;
}

.lm-presta__picto svg {
	flex: none;
	max-width: none;
}

.lm-presta h3 {
	margin: 0;
	font-size: clamp(26px, 3.2vw, 46px);
	font-weight: 800;
	font-stretch: 112%;
	letter-spacing: -.035em;
	line-height: 1.14;
	text-transform: uppercase;
}

.lm-presta__detail {
	grid-column: 2;
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .45s var(--courbe);
}

.lm-presta__texte {
	display: block;
	min-height: 0;
	max-width: 640px;
	overflow: hidden;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--sur-sombre-doux);
}

.lm-presta__lien {
	display: flex;
	align-items: center;
	gap: 10px;
	width: max-content;
	max-width: 100%;
	margin-top: 14px;
	font-size: 12.5px;
	font-weight: 800;
	font-stretch: 112%;
	letter-spacing: .07em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--orange);
}

.lm-presta__lien svg {
	flex: none;
	transition: transform .35s var(--courbe);
}

.lm-presta:hover,
.lm-presta:focus-visible,
.lm-presta.est-ouverte {
	grid-template-columns: 58px minmax(0, auto);
	column-gap: 18px;
	padding: 16px 30px 20px 20px;
	background: var(--marine);
}

.lm-presta:hover .lm-presta__detail,
.lm-presta:focus-visible .lm-presta__detail,
.lm-presta.est-ouverte .lm-presta__detail {
	grid-template-rows: 1fr;
}

.lm-presta:hover .lm-presta__lien svg {
	transform: translateX(5px);
}

@media (min-width: 901px) {
	.lm-prestas__lignes {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		max-width: none;
		pointer-events: none;
	}

	.lm-prestas__point {
		fill: var(--blanc);
	}

	.lm-prestas__lignes path {
		stroke: var(--blanc);
		stroke-opacity: .42;
		stroke-width: 1.4;
		vector-effect: non-scaling-stroke;
	}
}

/* Sur téléphone, et sur tout écran sans survol : des cartes toujours dépliées. */
@media (max-width: 700px), (hover: none) {
	.lm-indice {
		display: none;
	}

	.lm-prestas__liste {
		align-items: stretch;
		gap: 10px;
	}

	.lm-prestas__liste li {
		max-width: none;
		margin-left: 0;
	}

	.lm-presta,
	.lm-presta:hover,
	.lm-presta:focus-visible {
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 16px;
		row-gap: 8px;
		align-items: start;
		margin: 0;
		padding: 20px 18px 22px;
		border-radius: 12px;
		background: var(--marine);
	}

	.lm-presta__picto {
		grid-row: 1 / span 2;
		padding-top: 2px;
		overflow: visible;
	}

	.lm-presta__picto svg {
		width: 40px;
		height: 40px;
	}

	.lm-presta h3 {
		font-size: 21px;
		line-height: 1.15;
		letter-spacing: -.025em;
	}

	.lm-presta__detail {
		grid-template-rows: 1fr;
	}

	.lm-presta__texte {
		font-size: 15.5px;
		line-height: 1.6;
		color: var(--sur-sombre);
	}
}

@media (max-width: 380px) {
	.lm-presta h3 {
		font-size: 19px;
	}
}

/* 4. Rubans
   ========================================================================== */

.lm-rubans {
	position: relative;
	padding: 6px 0 clamp(80px, 9vw, 140px);
	overflow: clip;
	background: var(--marine);
	background-image: radial-gradient(40% 80% at 100% 50%, rgba(0, 149, 230, .16), transparent 70%);
}

.lm-ruban {
	position: relative;
	width: 112%;
	margin-left: -6%;
	padding: clamp(10px, 1.2vw, 16px) 0;
	overflow: hidden;
	color: var(--marine);
}

.lm-ruban + .lm-ruban {
	margin-top: -4px;
}

.lm-ruban--1 {
	background: var(--orange);
	transform: rotate(-1.4deg);
}

.lm-ruban--2 {
	background: var(--bleu);
	transform: rotate(1.1deg);
}

.lm-ruban--3 {
	background: var(--blanc);
	transform: rotate(-.7deg);
}

.lm-ruban__piste {
	display: flex;
	align-items: center;
	width: max-content;
	white-space: nowrap;
	animation: lm-defile 90s linear infinite;
}

.lm-ruban--2 .lm-ruban__piste {
	animation-duration: 104s;
	animation-direction: reverse;
}

.lm-ruban--3 .lm-ruban__piste {
	animation-duration: 82s;
}

.lm-ruban__piste span {
	padding: 0 clamp(16px, 2.2vw, 36px);
	font-size: clamp(22px, 3vw, 42px);
	font-weight: 800;
	font-stretch: 112%;
	letter-spacing: -.035em;
	line-height: 1;
	text-transform: uppercase;
}

.lm-ruban__piste svg {
	flex: none;
	width: clamp(30px, 3.6vw, 52px);
	height: auto;
	max-width: none;
}

/* La piste contient deux fois la même suite : elle recule de moitié, puis recommence. */
@keyframes lm-defile {
	to {
		transform: translateX(-50%);
	}
}

/* 5. Avis
   ========================================================================== */

/* La base des cartes d’avis est dans main.css (section 15 bis) : ici, seulement la version épinglée. */

/* Version animée (à partir de 981 px, posée par le script) : la section reste à l'écran,
   le titre au centre, et les cartes arrivent d'en bas l'une après l'autre. */
.lm-avis.est-epinglee {
	height: 100vh;
	padding: 0;
	overflow: hidden;
}

/* Le titre et la note restent bien visibles, en haut au centre ; les cartes se rangent
   autour : deux de part et d'autre du titre, les autres en rangée dessous. */
.est-epinglee .lm-avis__in {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	max-width: none;
	padding-top: clamp(112px, 16vh, 170px);
}

.est-epinglee .lm-avis__tete {
	position: relative;
	z-index: 1;
	max-width: 44vw;
}

.est-epinglee .lm-avis__tete .lm-t1 {
	text-wrap: balance;
}

.est-epinglee .lm-avis__cartes {
	position: absolute;
	inset: 0;
	display: block;
	max-width: none;
	margin: 0;
	pointer-events: none;
}

.est-epinglee .lm-carte-avis {
	position: absolute;
	width: clamp(220px, 18vw, 280px);
	padding: 18px 20px 16px;
	rotate: var(--angle, 0deg);
}

/* Le texte est limité à quelques lignes pour garder des cartes de taille voisine. */
.est-epinglee .lm-carte-avis blockquote {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	-webkit-box-orient: vertical;
}

/* Huit places : trois cartes de chaque côté du titre, en quinconce, et deux sous la note.
   Les cartes se chevauchent légèrement, comme un mur d'avis épinglés. */
.est-epinglee .lm-carte-avis--1 { left: 3%; top: 9%; --angle: -4deg; }
.est-epinglee .lm-carte-avis--2 { right: 3%; top: 8%; --angle: 3deg; }
.est-epinglee .lm-carte-avis--3 { left: 11%; top: 38%; --angle: 3deg; }
.est-epinglee .lm-carte-avis--4 { right: 11%; top: 37%; --angle: -3deg; }
.est-epinglee .lm-carte-avis--5 { left: 2%; top: 66%; --angle: -2deg; }
.est-epinglee .lm-carte-avis--6 { right: 2%; top: 65%; --angle: 4deg; }
.est-epinglee .lm-carte-avis--7 { left: 50%; top: 58%; margin-left: calc(clamp(220px, 18vw, 280px) * -1 - 8px); --angle: -2deg; }
.est-epinglee .lm-carte-avis--8 { left: 50%; top: 61%; margin-left: 8px; --angle: 3deg; }

/* Écran peu haut : texte plus court et plus petit, pour que rien ne se chevauche trop. */
@media (max-height: 800px) {
	.est-epinglee .lm-carte-avis {
		gap: 8px;
		padding: 14px 16px;
	}

	.est-epinglee .lm-carte-avis blockquote {
		font-size: 13px;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.est-epinglee .lm-avis__in {
		padding-top: 96px;
	}
}

/* Au-delà de huit avis, seuls les huit premiers sont animés. */
.est-epinglee .lm-carte-avis:nth-child(n+9) {
	display: none;
}

/* Sans animation (tablette, téléphone) : quatre avis sur tablette, trois sur téléphone,
   pour ne pas allonger la page ; la fiche Google donne accès aux autres. */
@media (max-width: 980px) {
	.lm-avis:not(.lm-avis--simple) .lm-carte-avis:nth-child(n+5) {
		display: none;
	}
}

@media (max-width: 700px) {
	.lm-avis:not(.lm-avis--simple) .lm-carte-avis:nth-child(n+4) {
		display: none;
	}
}

.est-epinglee .lm-avis__widget {
	display: none;
}

/* 6. Méthode
   ========================================================================== */

/* En-tête répété dans chaque panneau : titre à gauche, bouton à droite.
   Empilés (sans animation), seul le premier panneau l'affiche. */
.lm-etape__entete {
	position: absolute;
	left: 0;
	right: 0;
	top: clamp(40px, 5vw, 72px);
	z-index: 2;
	pointer-events: none;
}

.lm-etape:not(:first-child) .lm-etape__entete {
	display: none;
}

.lm-etape__entete-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.lm-etape__entete h2,
.lm-etape__entete span {
	display: block;
	margin: 0;
	font-size: clamp(26px, 2.6vw, 38px);
	font-weight: 800;
	font-stretch: 112%;
	letter-spacing: -.035em;
	line-height: 1;
	text-transform: uppercase;
}

.lm-etape__bouton {
	pointer-events: auto;
}

/* L'ombre du survol prend une couleur lisible sur le fond de chaque panneau. */
.lm-etape--1 .lm-etape__bouton:hover,
.lm-etape--2 .lm-etape__bouton:hover {
	box-shadow: 6px 6px 0 0 var(--marine);
}

.lm-etape--3 .lm-etape__bouton:hover {
	box-shadow: 6px 6px 0 0 var(--bleu);
}

/* Sur le panneau orange, le bouton passe en bleu nuit. */
.lm-etape--4 .lm-etape__bouton {
	border-color: var(--marine);
	background: var(--marine);
	color: var(--blanc);
}

.lm-etape--4 .lm-etape__bouton:hover {
	color: var(--blanc);
	box-shadow: 6px 6px 0 0 var(--blanc);
}

/* Le premier panneau laisse la place de son en-tête. */
.lm-etape:first-child .lm-etape__in {
	margin-top: clamp(56px, 6vw, 90px);
}

@media (max-width: 420px) {
	.lm-etape__entete h2,
	.lm-etape__entete span {
		font-size: 22px;
	}

	.lm-etape__bouton {
		min-height: 40px;
		padding: 6px 12px;
		font-size: 10.5px;
		gap: 8px;
	}
}

/* Une étape : un grand aplat de couleur, traversé par un tracé. */
.lm-etape {
	--fond: #D9E8F6;
	--encre: var(--marine);
	--numero: var(--blanc);
	--repere: var(--orange);
	--halo: linear-gradient(125deg, rgba(255, 255, 255, .6), transparent 55%), radial-gradient(50% 60% at 100% 100%, rgba(0, 149, 230, .16), transparent 70%);
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: min(62.5vw, 100vh);
	padding: clamp(64px, 8vw, 110px) 0;
	overflow: hidden;
	background: var(--fond);
	background-image: var(--halo);
	color: var(--encre);
}

.lm-etape--2 {
	--fond: var(--bleu);
	--encre: #06121F;
	--numero: var(--bleu-clair);
	--halo: radial-gradient(55% 60% at 0% 0%, rgba(255, 255, 255, .2), transparent 70%), radial-gradient(50% 55% at 100% 100%, rgba(9, 40, 72, .25), transparent 70%);
}

.lm-etape--3 {
	--fond: var(--marine);
	--encre: var(--blanc);
	--numero: #1B3454;
	--halo: radial-gradient(55% 60% at 100% 0%, rgba(0, 149, 230, .26), transparent 70%), radial-gradient(40% 45% at 0% 100%, rgba(47, 168, 242, .1), transparent 70%);
}

.lm-etape--4 {
	--fond: var(--orange);
	--numero: #FFC84D;
	--repere: var(--marine);
	--halo: radial-gradient(55% 60% at 0% 0%, rgba(255, 236, 180, .55), transparent 70%), radial-gradient(45% 50% at 100% 100%, rgba(255, 140, 0, .22), transparent 70%);
}

.lm-etape__in {
	position: relative;
	width: 100%;
	padding-bottom: 150px;
}

.lm-etape__texte {
	max-width: 57%;
}

.lm-etape__texte > * {
	margin: 0;
}

.lm-etape h3 {
	margin-top: 16px;
	font-size: clamp(28px, 3.9vw, 56px);
	font-weight: 800;
	font-stretch: 112%;
	letter-spacing: -.04em;
	line-height: .98;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.lm-etape h3 + p {
	max-width: 620px;
	margin-top: 24px;
	font-size: clamp(18px, 1.7vw, 24px);
	font-weight: 500;
	letter-spacing: -.01em;
	line-height: 1.5;
}

.lm-parcours {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.lm-parcours__num {
	font-size: 340px;
	font-weight: 800;
	font-stretch: 122%;
	letter-spacing: -.07em;
	fill: var(--numero);
}

.lm-parcours__trace,
.lm-parcours__fin,
.lm-parcours__cercle,
.lm-parcours__onde {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
}

.lm-parcours__trace {
	stroke-width: 2.4;
}

.lm-parcours__fin {
	stroke-width: 1.6;
	opacity: .45;
}

.lm-parcours__cercle {
	stroke-width: 1.6;
}

.lm-parcours__onde {
	stroke: var(--repere);
	stroke-width: 1.6;
}

.lm-parcours__repere,
.lm-parcours__point {
	fill: var(--repere);
}

.lm-parcours__mot {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	fill: currentColor;
}

/* Bouton sous le texte : seulement en cartes empilées (sous 900 px). */
.lm-etape__action {
	display: none;
}

/* Jusqu'à 900 px : plus d'épinglage. Les étapes deviennent des cartes de même hauteur
   qui se posent l'une sur l'autre au défilement (position sticky, 12 px plus bas à chaque carte),
   le dessin collé en bas de chaque carte. */
@media (max-width: 900px) {
	.lm-methode__etapes {
		display: grid;
		grid-auto-rows: 1fr;
	}

	.lm-etape {
		display: block;
		box-sizing: border-box;
		min-height: 0;
		padding: 26px 0 calc(47.3vw + 4px);
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -16px 36px rgba(9, 20, 34, .18);
	}

	/* En-tête : le titre « Ma méthode. » en haut de chaque carte, dans le flux ; son bouton est masqué. */
	.lm-etape .lm-etape__entete,
	.lm-etape:not(:first-child) .lm-etape__entete {
		position: static;
		display: block;
		margin: 0 0 12px;
	}

	.lm-etape__entete .lm-etape__bouton {
		display: none;
	}

	.lm-etape:first-child .lm-etape__in {
		margin-top: 0;
	}

	.lm-etape__in {
		padding-bottom: 0;
	}

	.lm-etape__texte {
		max-width: none;
	}

	.lm-etape h3 {
		font-size: clamp(25px, 6.4vw, 40px);
	}

	.lm-etape h3 + p {
		margin-top: 14px;
		font-size: clamp(15.5px, 4.2vw, 19px);
	}

	.lm-etape__action {
		display: flex;
		justify-content: flex-end;
		margin-top: 18px;
	}

	/* Le dessin occupe le bas de la carte, au ratio 1440 / 680, calé en bas à droite. */
	.lm-parcours {
		inset: auto 0 0;
		height: auto;
		aspect-ratio: 1440 / 680;
	}

	.lm-parcours__mot {
		font-size: 21px;
	}

	.lm-parcours__trace {
		stroke-width: 4;
	}

	.lm-parcours__fin {
		stroke-width: 2.8;
	}
}

/* L'empilement collant des cartes n'a lieu que si le visiteur accepte les animations ;
   sinon les cartes se lisent simplement l'une après l'autre. */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
	.lm-etape {
		position: sticky;
		top: calc(84px + var(--i, 0) * 12px);
	}
}

@media (max-width: 600px) {
	.lm-parcours__mot {
		display: none;
	}

	.lm-parcours__trace {
		stroke-width: 7;
	}

	.lm-parcours__fin {
		stroke-width: 4.5;
	}

	.lm-parcours__repere,
	.lm-parcours__point {
		r: 14px;
	}
}

@media (max-width: 380px) {
	.lm-etape h3 {
		font-size: 25px;
	}
}

/* 7. Votre futur client, en trois temps
   ==========================================================================
   Une ligne horizontale relie trois temps, avec un point par temps.
   Pas de lignes de parcours dans cette section. */

.lm-temps {
	position: relative;
	padding: clamp(80px, 9vw, 140px) 0 clamp(90px, 10vw, 160px);
	overflow: clip;
	background: var(--marine);
	background-image: var(--halo-marine-diagonal);
	color: var(--blanc);
}

.lm-temps__tete {
	max-width: 1100px;
}

.lm-temps .lm-h2 .lm-t2 {
	color: var(--bleu-clair);
	text-wrap: balance;
}

.lm-temps__intro {
	max-width: 560px;
	margin: 26px 0 0;
	font-size: clamp(16px, 1.3vw, 18.5px);
	line-height: 1.6;
	color: var(--sur-sombre-doux);
}

.lm-temps__parcours {
	position: relative;
	margin-top: clamp(64px, 7vw, 104px);
}

/* La ligne : un fond discret, recouvert d'un trait bleu que les animations font avancer. */
.lm-temps__ligne {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: rgba(255, 255, 255, .18);
}

.lm-temps__ligne i {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--bleu), var(--bleu-ciel));
	transform-origin: 0 50%;
}

.lm-temps__liste {
	display: grid;
	grid-template-columns: repeat(var(--temps, 3), minmax(0, 1fr));
	gap: clamp(28px, 4vw, 64px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-un-temps {
	position: relative;
	padding-top: clamp(40px, 4vw, 56px);
}

.lm-un-temps__point {
	position: absolute;
	left: 0;
	top: -9px;
	width: 20px;
	height: 20px;
	border: 2px solid var(--bleu-ciel);
	border-radius: 50%;
	background: var(--marine);
}

.lm-un-temps__point::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--bleu-ciel);
	scale: var(--coeur, 1);
}

.lm-un-temps__numero {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	line-height: 1.4;
	color: var(--bleu-ciel);
}

/* Même taille maximale que les titres de section : 56 px. */
.lm-un-temps h3 {
	margin: 14px 0 0;
	font-size: clamp(36px, 3.9vw, 56px);
	font-weight: 800;
	font-stretch: 118%;
	letter-spacing: -.045em;
	line-height: .95;
	text-transform: uppercase;
	text-wrap: balance;
}

.lm-un-temps__libelle {
	display: block;
	margin-top: 18px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--bleu-ciel);
}

.lm-un-temps p {
	max-width: 360px;
	margin: 14px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--sur-sombre-doux);
}

/* Jusqu'à 860 px : la ligne passe à la verticale, à gauche, et les temps s'empilent. */
@media (max-width: 860px) {
	.lm-temps__ligne {
		left: 9px;
		right: auto;
		bottom: 0;
		width: 2px;
		height: auto;
	}

	.lm-temps__ligne i {
		background: linear-gradient(180deg, var(--bleu), var(--bleu-ciel));
		transform-origin: 50% 0;
	}

	.lm-temps__liste {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}

	.lm-un-temps {
		padding: 0 0 0 46px;
	}

	.lm-un-temps__point {
		top: 2px;
	}

	.lm-un-temps h3 {
		margin-top: 8px;
		font-size: clamp(38px, 11vw, 52px);
	}

	.lm-un-temps p {
		max-width: none;
	}
}

/* 8. Un seul interlocuteur
   ========================================================================== */

.lm-solo {
	position: relative;
	padding: clamp(130px, 16vw, 250px) 24px;
	overflow: clip;
	background: var(--blanc);
	background-image: radial-gradient(45% 45% at 0% 0%, rgba(47, 168, 242, .12), transparent 70%), radial-gradient(45% 45% at 100% 100%, rgba(255, 173, 0, .11), transparent 70%);
	text-align: center;
}

.lm-solo .lm-h2 {
	position: relative;
	z-index: 1;
}

.lm-solo__lien {
	position: relative;
	z-index: 1;
	margin: clamp(22px, 2.6vw, 34px) 0 0;
	font-size: clamp(16px, 1.3vw, 18.5px);
	line-height: 1.6;
	color: var(--gris-texte);
}

.lm-solo__lien a {
	font-weight: 700;
	color: var(--marine);
	text-decoration: underline;
	text-decoration-color: var(--orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.lm-solo__lien a:hover {
	color: var(--bleu-fonce);
}

.lm-bulle {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(62px, 8.6vw, 126px);
	aspect-ratio: 1;
	border-radius: 50%;
	animation: lm-flotte 6s ease-in-out infinite alternate;
}

.lm-bulle svg {
	width: 48%;
	height: auto;
}

.lm-bulle--bleu {
	background: var(--bleu);
	color: var(--blanc);
}

.lm-bulle--orange {
	background: var(--orange);
	color: var(--marine);
}

.lm-bulle--marine {
	background: var(--marine);
	color: var(--blanc);
}

.lm-bulle--pale {
	background: #D9E8F6;
	color: var(--marine);
}

@keyframes lm-flotte {
	from {
		transform: translateY(-10px);
	}

	to {
		transform: translateY(16px);
	}
}

@media (max-width: 700px) {
	.lm-bulle {
		width: 58px;
	}

	/* Trois pastilles descendent pour dégager le titre. */
	.lm-bulle:nth-child(2) {
		top: 82% !important;
	}

	.lm-bulle:nth-child(5) {
		top: 70% !important;
	}

	.lm-bulle:nth-child(6) {
		top: 84% !important;
	}
}

/* Compléments pour les animations (assets/js/animations.js)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.lm-indice {
		animation: lm-rebond 1.8s ease-in-out infinite;
	}
}

/* Le script déplace chaque pastille au défilement, sans gêner son flottement. */
.lm-bulle {
	translate: 0 var(--decalage, 0);
}

/* Méthode épinglée : les étapes se superposent et se dévoilent l'une après l'autre. */
.lm-methode__etapes.est-epinglee {
	position: relative;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

/* L'en-tête s'affiche dans chaque panneau : comme les panneaux se recouvrent, il paraît fixe
   et change de couleur avec eux. Il couvre tout le panneau : le titre « Ma méthode. » reste en haut,
   sous la barre de navigation, et le bouton « Demander un devis » se place en bas à droite. */
.est-epinglee .lm-etape .lm-etape__entete {
	top: 0;
	bottom: 0;
	display: block;
	padding-top: clamp(116px, 14vh, 150px);
	box-sizing: border-box;
}

.est-epinglee .lm-etape__entete-in {
	position: relative;
	align-items: flex-start;
	height: 100%;
}

.est-epinglee .lm-etape__entete .lm-etape__bouton {
	position: absolute;
	right: var(--marge);
	bottom: clamp(20px, 3.4vh, 34px);
}

/* Le texte se cale en haut, sous l'en-tête : le dessin garde tout le bas. */
.est-epinglee .lm-etape {
	--entete: clamp(116px, 14vh, 150px);
	position: absolute;
	inset: 0;
	align-items: flex-start;
	min-height: 0;
	padding: calc(var(--entete) + 46px + clamp(26px, 5vh, 60px)) 0 0;
}

.est-epinglee .lm-etape .lm-etape__in {
	margin-top: 0;
	padding-bottom: 0;
}

.est-epinglee .lm-etape__texte {
	max-width: 52%;
}

/* Entre 901 et 1180 px, le dessin de droite arrive plus près : le texte se resserre. */
@media (max-width: 1180px) {
	.est-epinglee .lm-etape__texte {
		max-width: 44%;
	}
}

/* Sur un écran peu haut, le titre et le texte se resserrent pour ne pas toucher le dessin. */
.est-epinglee .lm-etape h3 {
	margin-top: 12px;
	font-size: clamp(28px, min(3.9vw, 6.4vh), 56px);
}

.est-epinglee .lm-etape h3 + p {
	margin-top: clamp(14px, 2.4vh, 24px);
	font-size: clamp(17px, min(1.7vw, 3vh), 24px);
}

/* Avancement : une pastille par étape, en bas de l'écran. */
.lm-methode__avancement {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(18px, 3.4vh, 34px);
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 10px;
	pointer-events: none;
}

.lm-methode__avancement i {
	width: 34px;
	height: 4px;
	border-radius: 2px;
	background: currentColor;
	opacity: .25;
	transition: opacity .3s, width .3s;
}

.lm-methode__avancement i.est-active {
	width: 54px;
	opacity: 1;
}

/* Hero : texture de vagues très discrète, qui dérive lentement. */
.lm-hero__texture {
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='104' viewBox='0 0 440 104' fill='none' stroke='white' stroke-opacity='.03' stroke-width='1.2'%3E%3Cpath d='M0 26 Q55 4 110 26 T220 26 T330 26 T440 26'/%3E%3Cpath d='M-110 78 Q-55 56 0 78 T110 78 T220 78 T330 78 T440 78 T550 78'/%3E%3C/svg%3E");
	background-size: 440px 104px;
	-webkit-mask-image: radial-gradient(ellipse 72% 64% at 50% 46%, transparent 0%, transparent 88%, #000 100%);
	mask-image: radial-gradient(ellipse 72% 64% at 50% 46%, transparent 0%, transparent 88%, #000 100%);
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	.lm-hero__texture {
		animation: lm-derive 46s linear infinite;
	}
}

@keyframes lm-derive {
	to {
		background-position: 440px 0;
	}
}
