/* ==========================================================================
   Animation du hero n°2 — « Parcours complet »
   Site → Mobile → Recherche locale → Résultats.
   Chargé uniquement si cette animation est choisie (Pages → Accueil).
   L'état des actes est piloté par [data-act] et des classes is-* (hero-journey.js).
   Unités : la scène est en em (font-size en cqw), l'ordinateur et le
   téléphone en cqw de leur propre largeur.
   ========================================================================== */
.jr {
	--jr-skel: #e9e8ee;
	--jr-green: #22c55e;
	--jr-ease: var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
	container: jr / inline-size;
}

/* Barres d'étapes : reprend .mk-steps (main.css), durée propre à chaque acte. */
.jr .mk-steps li { max-width: none; }
.jr .mk-steps li[data-step]::after { transform: scaleX(var(--prog, 0)); transition: none; } /* progression pilotée par le JS (pausable) */
.jr .mk-steps em { font-style: normal; }

/* ---------- Scène ---------- */
.jr-frame { position: relative; }

/* Bouton pause / lecture */
.jr-toggle {
	position: absolute;
	right: 12px; bottom: 12px;
	z-index: 6;
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	box-shadow: 0 6px 16px -10px rgba(16, 16, 20, 0.4);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}
.jr-toggle[hidden] { display: none; }
.jr-toggle:hover { background: var(--accent); border-color: var(--accent); }
.jr-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.jr-toggle__play,
.jr.is-paused .jr-toggle__pause { display: none; }
.jr.is-paused .jr-toggle__play { display: block; }
.jr.is-paused *, .jr.is-paused *::before { animation-play-state: paused !important; }

.jr-stage {
	position: relative;
	aspect-ratio: 16 / 9.4;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background:
		radial-gradient(circle at 1px 1px, rgba(16, 16, 20, 0.07) 1px, transparent 1.6px) 0 0 / 22px 22px,
		#f1f0ed;
	font-size: 1.12cqw;
	line-height: 1.4;
	color: var(--ink);
	isolation: isolate;
}

.jr-glow {
	position: absolute;
	left: 50%; top: 50%;
	width: 70%; aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(196, 181, 253, 0.55), rgba(196, 181, 253, 0));
	transform: translate(-50%, -50%);
	transition: transform 1.6s var(--jr-ease);
	will-change: transform;
	z-index: -1;
	pointer-events: none;
}
.jr[data-act="2"] .jr-glow { transform: translate(-30%, -46%) scale(1.1); }
.jr[data-act="3"] .jr-glow { transform: translate(-66%, -40%) scale(0.95); }
.jr[data-act="4"] .jr-glow { transform: translate(-40%, -60%) scale(1.15); }

/* ---------- Panneaux : position par acte ---------- */
.jr-panel {
	position: absolute;
	left: 50%; top: 50%;
	opacity: 0;
	background: #fff;
	border: 1px solid var(--line-2);
	box-shadow: 0 1px 2px rgba(16, 16, 20, 0.04), 0 30px 60px -30px rgba(16, 16, 20, 0.28);
	transition: opacity 0.6s var(--jr-ease), transform 1s var(--jr-ease);
	/* Calque dédié : le texte n'est pas re-rastérisé à chaque image (évite les tremblements) */
	will-change: transform, opacity;
	backface-visibility: hidden;
}

/* Ordinateur */
.jr-desk {
	width: 72%;
	border-radius: 0.9em;
	overflow: hidden;
	container-type: inline-size;
	transform: translate(-50%, -50%) translate(0, 3%) scale(0.97);
}
.jr[data-act="1"] .jr-desk { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) scale(1); }
.jr[data-act="2"] .jr-desk { opacity: 1; transform: translate(-50%, -50%) translate(-12%, 0) scale(0.9); }
.jr[data-act="3"] .jr-desk,
.jr[data-act="4"] .jr-desk { transform: translate(-50%, -50%) translate(-12%, -4%) scale(0.86); }

/* Téléphone */
.jr-phone {
	left: auto; right: 8%;
	width: 19%;
	aspect-ratio: 9 / 19;
	border: 0;
	border-radius: 2.1em; /* em : les cqw d'un conteneur visent son parent */
	overflow: hidden;
	container-type: inline-size;
	box-shadow: 0 0 0 0.45em var(--ink), 0 0 0 calc(0.45em + 1px) #3a3a44, 0 40px 60px -30px rgba(16, 16, 20, 0.45);
	transform: translate(0, -50%) translate(0, 14%) scale(1);
	z-index: 2;
}
.jr[data-act="2"] .jr-phone { opacity: 1; transform: translate(0, -50%) translate(0, 0) scale(1); transition-delay: 0.25s; }
.jr[data-act="3"] .jr-phone,
.jr[data-act="4"] .jr-phone { transform: translate(0, -50%) translate(0, -6%) scale(0.94); }

/* Recherche */
.jr-serp {
	width: 70%;
	font-size: 1.18em;
	padding: 1.6em;
	border-radius: 1.1em;
	transform: translate(-50%, -50%) translate(0, 6%) scale(0.98);
}
.jr[data-act="3"] .jr-serp { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) scale(1); transition-delay: 0.35s; }
.jr[data-act="4"] .jr-serp { transform: translate(-50%, -50%) translate(0, -5%) scale(0.97); }

/* Tableau de bord */
.jr-dash {
	width: 74%;
	font-size: 1.1em;
	padding: 1.6em;
	border-radius: 1.1em;
	transform: translate(-50%, -50%) translate(0, 6%) scale(0.98);
}
.jr[data-act="4"] .jr-dash { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) scale(1); transition-delay: 0.35s; }

/* ==========================================================================
   Acte 1 — le site (cqw de l'ordinateur)
   ========================================================================== */
.jr-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 1.1cqw 1.6cqw;
	background: #fafafa;
	border-bottom: 1px solid var(--line);
}
.jr-dots { display: flex; gap: 0.6cqw; }
.jr-dots i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #e1e1e5; }
.jr-url {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6cqw;
	width: 34cqw;
	padding: 0.55cqw 1.4cqw;
	border-radius: 0.6cqw;
	background: #f0f0f2;
	font-family: var(--mono);
	font-size: 1.15cqw;
	color: var(--ink);
}
.jr-url svg { width: 1.25cqw; height: 1.25cqw; fill: none; stroke: currentColor; stroke-width: 1.4; }

.jr-site { padding: 2.6cqw 4cqw 3.4cqw; }

/* Apparition des blocs (ordinateur : actes 1-3, téléphone : actes 2-3) */
.jr-b, .jr-pb {
	opacity: 0;
	transform: translateY(1.2cqw);
	transition: opacity 0.5s var(--jr-ease), transform 0.7s var(--jr-ease);
}
.jr[data-act="1"] .jr-b,
.jr[data-act="2"] .jr-b,
.jr[data-act="3"] .jr-b { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 85ms + 250ms); }
.jr[data-act="2"] .jr-pb,
.jr[data-act="3"] .jr-pb { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 85ms + 550ms); }

.jr-nav { display: flex; align-items: center; gap: 2cqw; }
.jr-logo { display: inline-flex; align-items: center; gap: 0.6cqw; font-size: 1.6cqw; font-weight: 600; letter-spacing: -0.03em; }
.jr-logo b { width: 1.5cqw; height: 1.5cqw; border-radius: 0.3cqw; background: var(--ink); }
.jr-links { display: flex; gap: 2.4cqw; margin-left: auto; margin-right: 1cqw; font-size: 1.3cqw; color: var(--muted); }

.jr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1cqw 1.8cqw;
	border-radius: 0.6cqw;
	background: var(--ink);
	color: #fff;
	font-size: 1.3cqw;
	font-weight: 500;
	white-space: nowrap;
}
.jr-btn--sm { padding: 0.7cqw 1.3cqw; font-size: 1.15cqw; }
.jr-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

.jr-hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 4cqw; align-items: center; margin-top: 4.6cqw; }
.jr-kicker { margin: 0 0 1.6cqw; font-family: var(--mono); font-size: 1.1cqw; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
.jr-h1 { margin: 0; font-size: 4.6cqw; font-weight: 500; line-height: 1.03; letter-spacing: -0.045em; }
.jr-p { margin: 1.8cqw 0 2.6cqw; max-width: 36cqw; font-size: 1.4cqw; line-height: 1.55; color: var(--muted); }
.jr-actions { display: flex; gap: 1cqw; }

.jr-art {
	position: relative;
	display: block;
	aspect-ratio: 1 / 0.78;
	border-radius: 1cqw;
	overflow: hidden;
	background: linear-gradient(180deg, var(--accent-soft) 0 64%, #ddd4fd 64%);
}
.jr-art i { position: absolute; display: block; }
.jr-art .a1 { right: 14%; top: 12%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.jr-art .a2 {
	left: 12%; bottom: 20%;
	width: 56%; height: 32%;
	border-radius: 0.3cqw;
	background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255, 255, 255, 0.18) calc(25% - 1px) 25%), var(--ink);
}
.jr-art .a3 { left: 12%; top: 32%; width: 34%; height: 1.6%; background: var(--ink); }
.jr-art .a4 { left: 18%; top: 17%; width: 7%; height: 15%; border-radius: 40% 40% 0.3cqw 0.3cqw; background: #8b7cf6; }

.jr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; margin-top: 4cqw; }
.jr-card {
	display: block;
	padding: 1.7cqw;
	border: 1px solid var(--line);
	border-radius: 0.9cqw;
	font-size: 1.15cqw;
	line-height: 1.5;
	color: var(--muted);
}
.jr-card b { display: block; width: 2.6cqw; height: 2.6cqw; margin-bottom: 1.1cqw; border-radius: 0.5cqw; background: var(--accent-soft); box-shadow: inset 0 0 0 0.6cqw var(--accent-soft), inset 0 0 0 2cqw var(--accent); }
.jr-card strong { display: block; margin-bottom: 0.3cqw; font-size: 1.45cqw; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

/* ==========================================================================
   Acte 2 — le téléphone (cqw du téléphone)
   ========================================================================== */
.jr-phone__island {
	position: absolute;
	left: 50%; top: 3cqw;
	width: 26cqw; height: 7cqw;
	border-radius: 4cqw;
	background: var(--ink);
	transform: translateX(-50%);
	z-index: 1;
}
.jr-phone__page {
	display: flex;
	flex-direction: column;
	gap: 4cqw;
	padding: 15cqw 7cqw 8cqw;
	transition: transform 2.2s cubic-bezier(0.65, 0, 0.35, 1);
	will-change: transform;
}
.jr.is-scroll .jr-phone__page { transform: translateY(-30%); }
/* Barre d'état : le contenu défile dessous */
.jr-phone::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 13cqw;
	background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0));
	z-index: 1;
}
.jr-pnav { display: flex; align-items: center; justify-content: space-between; }
.jr-phone .jr-logo { gap: 2.4cqw; font-size: 6cqw; }
.jr-phone .jr-logo b { width: 6cqw; height: 6cqw; border-radius: 1.4cqw; }
.jr-burger { display: grid; gap: 1.8cqw; width: 8cqw; }
.jr-burger i { display: block; height: 0.9cqw; border-radius: 1cqw; background: var(--ink); }
.jr-phone .jr-art { border-radius: 4cqw; margin-top: 2cqw; }
.jr-phone .jr-art .a2, .jr-phone .jr-art .a4 { border-radius: 1cqw; }
.jr-phone .jr-kicker { margin: 1cqw 0 0; font-size: 4.4cqw; }
.jr-phone .jr-h1 { font-size: 12cqw; line-height: 1.02; }
.jr-phone .jr-p { margin: 0; max-width: none; font-size: 5.4cqw; line-height: 1.45; }
.jr-phone .jr-btn { padding: 4.4cqw; border-radius: 2.6cqw; font-size: 5.4cqw; }
.jr-phone .jr-card { padding: 6cqw; border-radius: 3.6cqw; font-size: 5cqw; }
.jr-phone .jr-card b { width: 9cqw; height: 9cqw; margin-bottom: 3cqw; border-radius: 2cqw; box-shadow: inset 0 0 0 2cqw var(--accent-soft), inset 0 0 0 6cqw var(--accent); }
.jr-phone .jr-card strong { font-size: 6cqw; margin-bottom: 1cqw; }

/* Pastilles « performance » */
.jr-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.7em 1.1em 0.7em 0.8em;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 14px 30px -18px rgba(16, 16, 20, 0.35);
	font-size: 1.05em;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(0.8em) scale(0.96);
	transition: opacity 0.5s var(--jr-ease), transform 0.7s var(--jr-ease);
	will-change: transform, opacity;
	z-index: 3;
}
.jr-chip b { font-weight: 600; }
.jr-chip--1 { left: 5%; bottom: 9%; }
.jr-chip--2 { left: 54%; top: 8%; }
.jr[data-act="2"] .jr-chip { opacity: 1; transform: none; }
.jr[data-act="2"] .jr-chip--1 { transition-delay: 1.3s; }
.jr[data-act="2"] .jr-chip--2 { transition-delay: 1.7s; }
.jr-chip__ring {
	width: 1.5em; height: 1.5em;
	border-radius: 50%;
	background: conic-gradient(var(--jr-green) 0 98%, #e5e7eb 0);
	-webkit-mask: radial-gradient(closest-side, transparent 62%, #000 64%);
	mask: radial-gradient(closest-side, transparent 62%, #000 64%);
}
.jr-chip__ok {
	position: relative;
	width: 1.5em; height: 1.5em;
	border-radius: 50%;
	background: var(--accent);
}
.jr-chip__ok::after {
	content: "";
	position: absolute;
	left: 34%; top: 22%;
	width: 26%; height: 44%;
	border: solid var(--ink);
	border-width: 0 0.16em 0.16em 0;
	transform: rotate(45deg);
}

/* ==========================================================================
   Acte 3 — la recherche locale (em de la scène)
   ========================================================================== */
.jr-search {
	display: flex;
	align-items: center;
	gap: 0.8em;
	padding: 0.9em 1.2em;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	font-size: 1.25em;
	box-shadow: 0 6px 18px -12px rgba(16, 16, 20, 0.3);
}
.jr-search svg { flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.jr-q { white-space: nowrap; }
.jr-caret { width: 1.5px; height: 1.2em; margin-left: -0.6em; background: var(--ink); opacity: 0; }
.jr.is-typing .jr-caret { opacity: 1; animation: jr-blink 1s steps(1) infinite; }
@keyframes jr-blink { 50% { opacity: 0; } }

.jr-serp__body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6em; margin-top: 1.4em; }
.jr-serp__label,
.jr-dash__head small,
.jr-kpi small,
.jr-chart > small,
.jr-feed > small {
	display: block;
	margin: 0 0 0.8em;
	font-family: var(--mono);
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--muted);
}

.jr-rs { position: relative; height: calc(4 * 5.4em - 0.6em); }
.jr-r {
	--s: 1;
	--p: var(--p0); /* position de départ (HTML), modifiée par is-rank */
	position: absolute;
	left: 0; right: 0; top: 0;
	display: flex;
	align-items: center;
	gap: 0.9em;
	height: 4.8em;
	padding: 0 1em;
	border: 1px solid var(--line);
	border-radius: 0.8em;
	background: #fff;
	opacity: 0;
	transform: translateY(calc(var(--p) * 5.4em + 0.8em)) scale(var(--s));
	transition: opacity 0.45s var(--jr-ease), transform 0.85s var(--jr-ease), background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
	will-change: transform;
	backface-visibility: hidden;
}
.jr.is-results .jr-r { opacity: 1; transform: translateY(calc(var(--p) * 5.4em)) scale(var(--s)); transition-delay: calc(var(--i) * 90ms), calc(var(--i) * 90ms), 0s, 0s, 0s; }
.jr.is-rank .jr-r { transition-delay: 0s; }
.jr.is-rank .jr-r:nth-child(1) { --p: 1; }
.jr.is-rank .jr-r:nth-child(2) { --p: 2; }
.jr.is-rank .jr-r--me {
	--p: 0;
	z-index: 1;
	border-color: var(--accent);
	background: var(--accent-soft);
	box-shadow: 0 16px 30px -20px rgba(75, 58, 156, 0.6);
}
.jr.is-click .jr-r--me { --s: 0.975; transition-duration: 0.45s, 0.15s, 0.5s, 0.5s, 0.5s; }

.jr-r__ava {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.6em; height: 2.6em;
	border-radius: 0.6em;
	background: var(--bg-2);
	font-weight: 600;
	color: var(--muted);
}
.jr-r--me .jr-r__ava { background: var(--ink); color: #fff; }
.jr-r__txt { display: grid; min-width: 0; line-height: 1.3; }
.jr-r__txt strong { font-weight: 500; letter-spacing: -0.01em; }
.jr-r__rate { font-size: 0.88em; }
.jr-r__rate i { font-style: normal; letter-spacing: 0.05em; color: #f5b301; }
.jr-r__meta { font-size: 0.85em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-r__badge {
	margin-left: auto;
	padding: 0.35em 0.8em;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 0.95em;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.3s, transform 0.5s var(--jr-ease);
}
.jr-r__badge sup { font-size: 0.7em; line-height: 0; }
.jr.is-rank .jr-r__badge { opacity: 1; transform: none; transition-delay: 0.6s; }

/* Carte */
.jr-map {
	position: relative;
	border-radius: 0.9em;
	overflow: hidden;
	background:
		linear-gradient(104deg, transparent 46%, #fff 46% 48.5%, transparent 48.5%),
		linear-gradient(12deg, transparent 58%, #fff 58% 60.5%, transparent 60.5%),
		linear-gradient(168deg, transparent 30%, #fff 30% 32%, transparent 32%),
		linear-gradient(70deg, transparent 72%, rgba(255, 255, 255, 0.7) 72% 73.5%, transparent 73.5%),
		radial-gradient(130% 75% at -5% 108%, #ddd4fd 0 40%, transparent 40.5%),
		#efeee9;
	opacity: 0;
	transition: opacity 0.6s var(--jr-ease);
}
.jr.is-results .jr-map { opacity: 1; transition-delay: 0.2s; }
.jr-pin {
	position: absolute;
	width: 1em; height: 1em;
	margin: -0.5em 0 0 -0.5em;
	border: 0.22em solid #fff;
	border-radius: 50%;
	background: var(--muted-2);
	box-shadow: 0 2px 6px rgba(16, 16, 20, 0.25);
}
.jr-pin--me {
	background: var(--ink);
	transition: transform 0.6s var(--jr-ease), background-color 0.4s;
	z-index: 1;
}
.jr-pin--me::before {
	content: "";
	position: absolute;
	inset: -0.22em;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0;
	z-index: -1;
}
.jr-pin--me b {
	position: absolute;
	left: 50%; bottom: 1.6em;
	padding: 0.35em 0.7em;
	border-radius: 0.5em;
	background: var(--ink);
	color: #fff;
	font-size: 0.85em;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 0.5em);
	transition: opacity 0.3s, transform 0.5s var(--jr-ease);
}
.jr.is-rank .jr-pin--me { transform: scale(1.35); background: #8b7cf6; transition-delay: 0.3s; }
.jr.is-rank .jr-pin--me b { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.5s; }
.jr[data-act="3"].is-rank .jr-pin--me::before { animation: jr-pulse 1.6s var(--jr-ease) 0.4s infinite; }
@keyframes jr-pulse {
	from { opacity: 0.7; transform: scale(1); }
	to { opacity: 0; transform: scale(3.2); }
}

/* ==========================================================================
   Acte 4 — le tableau de bord (em de la scène)
   ========================================================================== */
.jr-dash__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; }
.jr-dash__head strong { display: block; font-size: 1.35em; font-weight: 500; letter-spacing: -0.02em; }
.jr-dash__head small { margin: 0.2em 0 0; }
.jr-dash__by { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.85em; color: var(--muted); white-space: nowrap; }
.jr-dash__by img { width: auto; height: 1.5em; }

.jr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin-top: 1.2em; }
.jr-kpi {
	padding: 1em 1.1em;
	border: 1px solid var(--line);
	border-radius: 0.8em;
	opacity: 0;
	transform: translateY(0.8em);
	transition: opacity 0.5s var(--jr-ease), transform 0.7s var(--jr-ease);
}
.jr[data-act="4"] .jr-kpi { opacity: 1; transform: none; transition-delay: calc(var(--i) * 100ms + 0.6s); }
.jr-kpi small { margin: 0 0 0.4em; }
.jr-kpi strong { display: block; min-width: 4ch; font-size: 2.2em; font-weight: 500; line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.jr-kpi strong sup { font-size: 0.5em; }
.jr-kpi em { display: inline-block; margin-top: 0.4em; padding: 0.15em 0.55em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.8em; font-style: normal; white-space: nowrap; }

.jr-dash__body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1em; margin-top: 1em; }
.jr-chart, .jr-feed { padding: 1em 1.1em; border: 1px solid var(--line); border-radius: 0.8em; }
.jr-chart { display: flex; flex-direction: column; }
.jr-chart svg {
	flex: 1;
	width: 100%;
	height: auto;
	min-height: 9em;
	overflow: visible;
	/* Révélation de gauche à droite (plus fiable que stroke-dasharray avec non-scaling-stroke) */
	clip-path: inset(-6% 100% -6% -2%);
	transition: clip-path 1.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.jr.is-count .jr-chart svg { clip-path: inset(-6% -4% -6% -2%); }
.jr-chart__grid { fill: none; stroke: var(--line); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.jr-chart__area { fill: url(#jr-grad); }
.jr-chart__line {
	fill: none;
	stroke: var(--ink);
	stroke-width: 2;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}
.jr-chart__dot { fill: #8b7cf6; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.3s 1.7s; }
.jr.is-count .jr-chart__dot { opacity: 1; }

.jr-f {
	display: flex;
	align-items: center;
	gap: 0.8em;
	padding: 0.65em 0;
	border-top: 1px solid var(--line);
	line-height: 1.3;
	opacity: 0;
	transform: translateX(1.2em);
	transition: opacity 0.45s var(--jr-ease), transform 0.7s var(--jr-ease);
}
.jr-feed > small + .jr-f { border-top: 0; padding-top: 0.2em; }
.jr-f strong { display: block; font-weight: 500; font-size: 0.95em; }
.jr-f small { display: block; font-size: 0.8em; color: var(--muted); }
.jr-f__ava { display: grid; place-items: center; flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 0.9em; }
.jr-f1 .jr-f__ava { background: var(--accent); color: var(--ink); }
.jr.is-feed1 .jr-f1,
.jr.is-feed2 .jr-f2,
.jr.is-feed3 .jr-f3 { opacity: 1; transform: none; }

/* Notification + curseur */
.jr-toast {
	position: absolute;
	right: 3%; top: 5%;
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.8em 1.2em;
	border-radius: 0.7em;
	background: var(--ink);
	color: #fff;
	font-family: var(--mono);
	font-size: 0.95em;
	box-shadow: 0 18px 30px -18px rgba(16, 16, 20, 0.6);
	opacity: 0;
	transform: translateY(-1em);
	transition: opacity 0.4s, transform 0.6s var(--jr-ease);
	z-index: 4;
}
.jr-toast span { width: 0.65em; height: 0.65em; border-radius: 50%; background: #4ade80; }
.jr.is-toast .jr-toast { opacity: 1; transform: none; }

.jr-cursor {
	position: absolute;
	left: 88%; top: 92%;
	width: 2em; height: 2em;
	fill: var(--ink);
	stroke: #fff;
	stroke-width: 1.5;
	stroke-linejoin: round;
	opacity: 0;
	pointer-events: none;
	overflow: visible;
	/* Déplacement en transform (left/top s'arrondissent au pixel et font trembler) */
	transition: transform 1s var(--jr-ease), opacity 0.3s;
	will-change: transform;
	z-index: 5;
}
.jr[data-act="3"].is-cursor .jr-cursor { transform: translate(var(--dx, 0px), var(--dy, 0px)); opacity: 1; }
.jr-cursor path { transform-origin: 5px 3px; transition: transform 0.15s; }
.jr.is-click .jr-cursor path { transform: scale(0.82); }

/* ==========================================================================
   Petits écrans (scène < 600 px) : scène plus haute, compositions resserrées
   ========================================================================== */
@container jr (max-width: 600px) {
	.jr .mk-steps em { display: none; }
	.jr-stage { aspect-ratio: 4 / 5.1; font-size: 3.2cqw; border-radius: 12px; }

	.jr-desk { width: 92%; border-radius: 0.6em; }
	.jr[data-act="2"] .jr-desk { transform: translate(-50%, -50%) translate(-5%, -46%) scale(0.86); }
	.jr[data-act="3"] .jr-desk,
	.jr[data-act="4"] .jr-desk { transform: translate(-50%, -50%) translate(-5%, -52%) scale(0.82); }

	.jr-phone { right: 9%; width: 40%; top: 58%; }

	.jr-chip { font-size: 0.85em; }
	.jr-chip--1 { left: 5%; bottom: 7%; }
	.jr-chip--2 { display: none; }

	.jr-serp, .jr-dash { width: 92%; padding: 1.1em; font-size: 0.95em; }
	.jr-search { font-size: 1.1em; padding: 0.7em 1em; }
	.jr-serp__body { margin-top: 1em; }
	.jr-serp__body { grid-template-columns: 1fr; gap: 1em; }
	.jr-map { order: -1; height: 6.5em; }
	.jr-pin--me { top: 68% !important; } /* laisse la place à l'étiquette */
	.jr-rs { height: calc(3 * 5.4em - 0.6em); }
	.jr-r:nth-child(4) { display: none; }

	.jr-dash__by { display: none; }
	.jr-kpis { gap: 0.5em; }
	.jr-kpi { padding: 0.7em; }
	.jr-kpi small { font-size: 0.7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.jr-kpi strong { font-size: 1.6em; }
	.jr-kpi em { display: none; }
	.jr-dash__body { grid-template-columns: 1fr; }
	.jr-chart svg { min-height: 6em; }
	.jr-f3 { display: none; }

	.jr-toast { right: 4%; top: 3%; font-size: 0.85em; }
}

/* Mouvement réduit : site construit, aucune transition (la boucle n'est pas lancée). */
@media (prefers-reduced-motion: reduce) {
	.jr *, .jr *::before, .jr *::after { transition: none !important; animation: none !important; }
}
