/* Les quatre parcours de l'accueil : pictogrammes animés, cartes qui se soulèvent au survol, arrivée en cascade au défilement.
   Sans JavaScript ou avec « réduire les animations », les cartes restent simplement posées, pictogrammes immobiles. */

.mbc-parcours {
	position: relative;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.mbc-parcours:hover,
.mbc-parcours:focus-within {
	transform: translateY(-4px);
	border-color: var(--mbc-line-2, #C9CED6);
	box-shadow: 0 1px 2px rgba(25, 27, 31, .04), 0 22px 44px -22px rgba(25, 27, 31, .28);
}
.mbc-parcours__tete { display: flex; align-items: center; gap: 16px; }

/* Le rouge par petites touches : titres et liens en encre, la flèche seule garde la couleur de marque. */
.mbc-parcours .mbc-h3 a {
	color: var(--mbc-ink);
	text-decoration-color: color-mix(in srgb, var(--mbc-ink) 22%, transparent);
	text-underline-offset: .18em;
	transition: text-decoration-color .3s ease;
}
.mbc-parcours .mbc-h3 a:hover { color: var(--mbc-ink); text-decoration-color: var(--mbc-accent); }
.mbc-parcours .mbc-more { color: var(--mbc-ink); }
.mbc-parcours .mbc-more:hover { color: var(--mbc-ink); }
.mbc-parcours .mbc-fleche { color: var(--mbc-accent); }

.mbc-picto {
	flex: none;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 18px;
	background: linear-gradient(150deg, #FFFFFF, #EEF0F3);
	border: 1px solid var(--mbc-line);
	color: var(--mbc-ink-2, #3A3F46);
	transition: box-shadow .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.mbc-picto svg { display: block; width: 46px; height: 46px; overflow: visible; }
.mbc-parcours:hover .mbc-picto,
.mbc-parcours:focus-within .mbc-picto {
	box-shadow: 0 10px 22px -12px rgba(25, 27, 31, .45);
	transform: rotate(-4deg) scale(1.06);
}
/* Seul ce qui bouge dans le pictogramme prend la couleur de marque. */
.mbc-picto__vif { color: var(--mbc-accent); }
.mbc-parcours.mbc-card--soft { background: #E9EBEE; }
.mbc-card--soft .mbc-picto { background: #fff; border-color: transparent; }
.mbc-picto--marque { color: var(--mbc-accent); }

.mbc-fleche { display: inline-block; margin-left: .3em; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.mbc-parcours:hover .mbc-fleche,
.mbc-more:focus-visible .mbc-fleche { transform: translateX(5px); }

/* Clonage : les données passent d'un disque à l'autre, le disque neuf se remplit. */
.mbc-picto__flux circle { animation: mbc-picto-flux 1.4s ease-in-out infinite; }
.mbc-picto__flux circle:nth-child(2) { animation-delay: .2s; }
.mbc-picto__flux circle:nth-child(3) { animation-delay: .4s; }
@keyframes mbc-picto-flux { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }
.mbc-picto__plein {
	opacity: .22;
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: mbc-picto-plein 4.8s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes mbc-picto-plein {
	0% { transform: scaleY(0); opacity: .3; }
	70% { transform: scaleY(1); opacity: .3; }
	88% { transform: scaleY(1); opacity: .3; }
	100% { transform: scaleY(1); opacity: 0; }
}

/* Transfert : un paquet fait le voyage de l'ancien PC au nouveau, l'écran du nouveau s'allume à l'arrivée. */
.mbc-picto__arc { stroke-dasharray: 2.2 3.2; animation: mbc-picto-arc 1s linear infinite; }
@keyframes mbc-picto-arc { to { stroke-dashoffset: -10.8; } }
.mbc-picto__ecran { opacity: 0; animation: mbc-picto-ecran 2.6s ease-in-out infinite; }
@keyframes mbc-picto-ecran { 0%, 55% { opacity: 0; } 75% { opacity: .35; } 100% { opacity: 0; } }

/* Récupération : le pouls du disque se redessine, d'un trait. */
.mbc-picto__pouls { stroke-dasharray: 100; stroke-dashoffset: 100; animation: mbc-picto-pouls 3.6s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes mbc-picto-pouls {
	0% { stroke-dashoffset: 100; opacity: 1; }
	45% { stroke-dashoffset: 0; opacity: 1; }
	80% { stroke-dashoffset: 0; opacity: 1; }
	100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Diagnostic : l'aiguille balaie la jauge et se pose, puis le verdict s'affiche. */
.mbc-picto__aiguille {
	transform-box: view-box;
	transform-origin: 24px 33px;
	animation: mbc-picto-aiguille 4.8s cubic-bezier(.3, 0, .2, 1) infinite;
}
@keyframes mbc-picto-aiguille {
	0% { transform: rotate(-82deg); }
	30% { transform: rotate(38deg); }
	42% { transform: rotate(18deg); }
	50%, 88% { transform: rotate(26deg); }
	100% { transform: rotate(-82deg); }
}
.mbc-picto__ok { transform-box: fill-box; transform-origin: center; animation: mbc-picto-ok 4.8s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.mbc-picto__ok circle { fill: var(--mbc-ok); }
@keyframes mbc-picto-ok {
	0%, 48% { transform: scale(0); opacity: 0; }
	56%, 86% { transform: scale(1); opacity: 1; }
	96%, 100% { transform: scale(0); opacity: 0; }
}

/* Arrivée des cartes, seulement pour celles encore sous l'écran au chargement (posé par parcours.js). */
.mbc-parcours--attente { opacity: 0; }
.mbc-parcours--attente.mbc-parcours--vu {
	opacity: 1;
	animation: mbc-parcours-monte .7s cubic-bezier(.2, .7, .2, 1) backwards;
	animation-delay: calc(var(--mbc-rang, 0) * 90ms);
}
@keyframes mbc-parcours-monte { from { opacity: 0; transform: translateY(26px); } }

@media (max-width: 560px) {
	.mbc-picto { width: 60px; height: 60px; border-radius: 16px; }
	.mbc-picto svg { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
	.mbc-parcours, .mbc-picto, .mbc-fleche { transition: none; }
	.mbc-parcours:hover, .mbc-parcours:focus-within { transform: none; }
	.mbc-parcours:hover .mbc-picto, .mbc-parcours:focus-within .mbc-picto { transform: none; }
	.mbc-picto *, .mbc-parcours--attente.mbc-parcours--vu { animation: none !important; }
	.mbc-picto__plein { transform: none; }
	.mbc-picto__pouls { stroke-dashoffset: 0; }
	.mbc-picto__aiguille { transform: rotate(26deg); }
	.mbc-parcours--attente { opacity: 1; }
}
