/* ==========================================================================
   CHOSTE — Motion (2026-10)
   Se charge APRÈS styles.css. Ne change ni les couleurs ni les sections :
   ajoute des reflets de couleur qui bougent en fond + des animations.
   Tout est injecté par motion.js ; sans JS, le site reste identique.
   ========================================================================== */

/* ---------- 1. Reflets de couleur (aurora) ---------- */
.mx-host { position: relative; }
footer.footer.mx-host { overflow: hidden; }
.mx-aurora {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 0;
  /* les reflets débordent un peu sur les sections voisines et s'effacent en douceur : plus de coupure nette */
  top: -16vh; bottom: -16vh;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16vh, #000 calc(100% - 16vh), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16vh, #000 calc(100% - 16vh), transparent 100%);
  /* souris (haut de page) + léger décalage au défilement */
  transform: translate3d(var(--mx-px, 0px), calc(var(--mx-py, 0px) + var(--mx-sy, 0px)), 0);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.mx-lift { position: relative; z-index: 1; }
.mx-above { z-index: 2; }

.mx-orb {
  position: absolute; display: block; border-radius: 50%;
  width: var(--s, 50vw); height: var(--s, 50vw);
  max-width: 820px; max-height: 820px;
  opacity: var(--a, .5);
  will-change: transform, opacity;
  animation:
    mx-drift-1 var(--t, 14s) ease-in-out infinite alternate,
    mx-breathe var(--tb, 7s) ease-in-out infinite alternate;
  animation-play-state: paused;
}
.mx-on .mx-orb { animation-play-state: running; }
/* couleurs = palette CHOSTE */
.mx-p { background: radial-gradient(closest-side, rgba(236,72,153,.62), rgba(236,72,153,.22) 55%, transparent); }
.mx-v { background: radial-gradient(closest-side, rgba(109,40,217,.58), rgba(109,40,217,.20) 55%, transparent); }
.mx-c { background: radial-gradient(closest-side, rgba(34,211,238,.58), rgba(34,211,238,.20) 55%, transparent); }
.mx-o { background: radial-gradient(closest-side, rgba(249,115,22,.50), rgba(234,179,8,.16) 55%, transparent); }
.mx-b { background: radial-gradient(closest-side, rgba(59,130,246,.52), rgba(59,130,246,.18) 55%, transparent); }

/* positions de départ + trajectoires et vitesses différentes */
.mx-o1 { top: -24%; left: -14%; --t: 13s; --tb: 6s; }
.mx-o2 { bottom: -32%; right: -12%; --t: 16s; --tb: 8s; animation-name: mx-drift-2, mx-breathe; animation-delay: -6s, -3s; }
.mx-o3 { top: 14%; left: 38%; --s: 38vw; --t: 18s; --tb: 9s; animation-name: mx-drift-3, mx-breathe; animation-delay: -11s, -5s; }
.mx-o4 { bottom: -22%; left: 6%; --s: 34vw; --t: 15s; --tb: 7s; animation-name: mx-drift-4, mx-breathe; animation-delay: -4s, -2s; }
.mx-flip .mx-o1 { left: auto; right: -14%; }
.mx-flip .mx-o2 { right: auto; left: -12%; }
.mx-flip .mx-o4 { left: auto; right: 6%; }

@keyframes mx-drift-1 {
  0%   { transform: translate3d(0,0,0) scale(1); }
  35%  { transform: translate3d(20vw, 10vh, 0) scale(1.18); }
  70%  { transform: translate3d(8vw, 24vh, 0) scale(.9); }
  100% { transform: translate3d(26vw, 4vh, 0) scale(1.08); }
}
@keyframes mx-drift-2 {
  0%   { transform: translate3d(0,0,0) scale(1.05); }
  35%  { transform: translate3d(-18vw, -12vh, 0) scale(.88); }
  70%  { transform: translate3d(-6vw, -26vh, 0) scale(1.15); }
  100% { transform: translate3d(-24vw, -6vh, 0) scale(.95); }
}
@keyframes mx-drift-3 {
  0%   { transform: translate3d(0,0,0) scale(.9); }
  35%  { transform: translate3d(-22vw, 12vh, 0) scale(1.15); }
  70%  { transform: translate3d(14vw, -10vh, 0) scale(.95); }
  100% { transform: translate3d(-8vw, -16vh, 0) scale(1.1); }
}
@keyframes mx-drift-4 {
  0%   { transform: translate3d(0,0,0) scale(1); }
  35%  { transform: translate3d(16vw, -14vh, 0) scale(1.12); }
  70%  { transform: translate3d(30vw, 4vh, 0) scale(.9); }
  100% { transform: translate3d(10vw, -20vh, 0) scale(1.05); }
}
/* les couleurs « respirent » : elles s'intensifient puis s'estompent */
@keyframes mx-breathe {
  0%   { opacity: calc(var(--a, .5) * .55); }
  100% { opacity: var(--a, .5); }
}

/* intensité selon l'endroit */
.mx-aurora-hero  .mx-orb { --a: .85; }
.mx-aurora-soft  .mx-orb { --a: .6; }
.mx-aurora-plain .mx-orb { --a: .38; --s: 44vw; }
.mx-aurora-dark  .mx-orb { --a: .95; --s: 42vw; mix-blend-mode: screen; }
.mx-aurora-foot  .mx-orb { --a: .5; --s: 44vw; mix-blend-mode: screen; }
.mx-aurora-foot  .mx-o1 { top: -55%; }
.mx-aurora-foot  .mx-o2 { bottom: auto; top: -60%; }
.mx-aurora-foot  .mx-o3 { top: -40%; }
/* ---------- Transitions douces entre sections ----------
   Les sections grises se fondent dans le blanc au lieu de s'arrêter net. */
.mx section.section-soft {
  background: linear-gradient(180deg, rgba(244,244,248,0) 0, var(--bg-soft) 150px, var(--bg-soft) calc(100% - 150px), rgba(244,244,248,0) 100%);
}
.mx header.blog-hero { background: linear-gradient(180deg, var(--bg-soft) 0, var(--bg-soft) calc(100% - 140px), rgba(244,244,248,0) 100%); }
/* le haut de page laisse ses reflets descendre sur la section suivante */
.mx section.hero.mx-host, .mx header.blog-hero.mx-host { overflow: visible; overflow-x: clip; }
/* les blocs sombres restent au-dessus des reflets voisins */
.mx footer.footer.mx-host, .mx .cta-band.mx-host { z-index: 1; }
/* reflets fixes du haut des pages blog / réalisations : fondus eux aussi */
.mx .blog-hero-bg { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
/* la carte « Demain » et le bandeau final gardent leurs reflets internes : pas de débordement */
.mx .cta-band > .mx-aurora, .mx .compare-good > .mx-aurora { top: 0; bottom: 0; -webkit-mask-image: none; mask-image: none; }
.mx footer.footer > .mx-aurora { top: 0; bottom: 0; -webkit-mask-image: none; mask-image: none; }

/* ---------- Lettres coupées en bas (g, p, q, y dans les mots en dégradé) ----------
   Le dégradé ne couvrait pas le bas des lettres : on agrandit sa zone sans bouger la mise en page. */
.mx .gradient-text { padding: .08em .04em .2em; margin: -.08em -.04em -.2em; }

/* l'accueil remplace ses 3 blobs fixes par les reflets animés (mêmes couleurs) */
.mx section.hero > .blob { display: none; }
/* les reflets fixes déjà présents sur la carte « Demain » et le bandeau final restent, on ajoute le mouvement par-dessus */
.mx .cta-band > .mx-aurora { z-index: 1; }
.mx .cta-band > .mx-lift { z-index: 2; }

/* ---------- 3. Titres qui montent mot par mot ---------- */
.mx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .06em .32em; margin: -.2em -.06em -.32em; }
.mx-w > .mx-wi { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 55ms); }
.mx-split.mx-in .mx-w > .mx-wi { transform: none; }

/* ---------- 4. Lumière qui suit la souris sur les cartes ---------- */
.mx-spot {
  background-image: radial-gradient(420px circle at var(--sx, -999px) var(--sy, -999px), rgba(109,40,217,.10), rgba(236,72,153,.06) 35%, transparent 60%);
}
.mx-spot-border { position: relative; }
.mx-spot-border::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--sx, -999px) var(--sy, -999px), rgba(109,40,217,.65), rgba(236,72,153,.4) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.mx-spot-border:hover::after { opacity: 1; }

/* ---------- 4 bis. Apparition des blocs (pages Réalisations / Blog / légal) ---------- */
.mx-rise { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--mx-d, 0ms); }
.mx-rise.mx-up { opacity: 1; transform: none; }
/* reflets du contenu principal des pages Blog / Réalisations : toute la largeur de l'écran */
.mx-aurora.mx-bleed { left: calc(50% - 50vw); right: auto; width: 100vw; }
.mx-aurora.mx-bleed { overflow: clip; }
.mx-sticky { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }
.mx .blog-cta.mx-host { overflow: hidden; }
.mx .blog-cta > .mx-aurora { top: 0; bottom: 0; -webkit-mask-image: none; mask-image: none; z-index: 0; opacity: .8; }

/* ---------- 5. Méthode en 4 étapes : la ligne se trace ---------- */
.mx-steps { position: relative; }
.mx-steps::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: -18px; height: 2px; border-radius: 2px;
  background: var(--grad); background-size: 200% 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 1.6s cubic-bezier(.2,.8,.2,1) .2s;
}
.mx-steps.visible::before { transform: scaleX(1); }
@media (max-width: 760px) { .mx-steps::before { display: none; } }

/* ---------- 6. Réalisations : légère inclinaison 3D au survol ---------- */
.mx-tilt { transition: transform .5s cubic-bezier(.2,.8,.2,1); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- 7. Barre de navigation : liseré dégradé au défilement ---------- */
.mx .navbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--grad); background-size: 200% 100%; animation: gradient-shift 8s ease infinite;
  opacity: 0; transition: opacity .4s ease;
}
.mx .navbar.mx-scrolled::after { opacity: .55; }

/* ---------- 8. Petites pastilles de section : apparition ---------- */
.mx .section-eyebrow { transition: transform .6s cubic-bezier(.34,1.56,.64,1), opacity .6s ease; }
.mx .section-header.fade-in:not(.visible) .section-eyebrow { transform: scale(.85); opacity: 0; }

/* ---------- Mobile : plus léger ---------- */
@media (max-width: 760px) {
  .mx section.section-soft { background: linear-gradient(180deg, rgba(244,244,248,0) 0, var(--bg-soft) 80px, var(--bg-soft) calc(100% - 80px), rgba(244,244,248,0) 100%); }
  .mx-orb { --s: 85vw; }
  .mx-o3, .mx-o4 { --s: 65vw; }
  .mx-aurora-hero .mx-orb { --a: .85; }
  .mx-aurora-plain .mx-orb { --a: .3; --s: 75vw; }
}

/* ---------- Mouvement réduit : tout est figé, rien n'est caché ---------- */
@media (prefers-reduced-motion: reduce) {
  .mx-orb { animation: none !important; }
  .mx-aurora { transform: none !important; transition: none; }
  .mx-w > .mx-wi { transform: none !important; transition: none; }
  .mx-steps::before { transform: scaleX(1); transition: none; }
  .mx-tilt { transform: none !important; }
  .mx .section-header.fade-in:not(.visible) .section-eyebrow { transform: none; opacity: 1; }
}

/* ==========================================================================
   Page Création de site : les 3 aperçus montrent nos vrais sites (captures)
   ========================================================================== */
.cs-mockup.cs-real { aspect-ratio: 16 / 9.6; }
.cs-mockup--main.cs-real { width: min(780px, 72vw); }
.cs-mockup--side-left.cs-real, .cs-mockup--side-right.cs-real { width: min(560px, 50vw); }
.cs-mockup--side-left.cs-real { top: 20%; }
.cs-mockup--side-right.cs-real { top: 22%; }
.cs-real .cs-mockup__body { background: #0f1b1f; }
.cs-real .cs-mockup__body img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-showcase--real { height: clamp(330px, 40vw, 520px); }

/* Blog (liste) : haut de page centré comme Contact / Réalisations — appliqué par motion.js, le fichier publié n'est pas modifié */
.mx header.blog-hero.mx-center-hero { background: transparent; padding: 90px 0 30px; text-align: center; }
.mx .mx-center-hero .blog-hero-bg { display: none; }
.mx .mx-center-hero .blog-narrow { max-width: 1100px; }
.mx .mx-center-hero .blog-tag {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(109,40,217,0.08); color: var(--primary);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; border: 1px solid rgba(109,40,217,0.12);
}
.mx .mx-center-hero .blog-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
.mx .mx-center-hero .blog-title { font-size: clamp(2.4rem, 6.5vw, 5.5rem); letter-spacing: -0.035em; line-height: 1.05; margin: 22px 0 28px; }
.mx .mx-center-hero .blog-meta { max-width: 720px; margin: 0 auto; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--muted); }
.mx .mx-rot { min-width: 0; }
.mx .mx-rot .rotator-word { padding-bottom: .12em; }

/* Blog : les cartes d'articles centrées sous le titre (au lieu d'être collées à gauche) */
.mx .blog-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; }
@media (max-width: 640px) { .mx .blog-grid { grid-template-columns: 1fr; } }
/* le mot qui change reste sur sa ligne (pas d'espace vide en plus sur mobile) */
.mx h1 > .rotator.mx-rot { display: inline-block; }

/* ==========================================================================
   HISTOIRES DE PROCESSUS (même principe que le site OVEO V2)
   Une scène animée reste collée à l'écran pendant que les vraies étapes
   défilent à côté, reliées par une ligne qui se remplit. Chaque scène
   MONTRE la promesse de l'étape (l'appel, le plan, le site qui se construit…).
   ========================================================================== */
.mx-story { --e: cubic-bezier(.2,.8,.2,1); --pop: cubic-bezier(.34,1.56,.64,1);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; max-width: 1140px; margin: 10px auto 0; }
.mx-stage-col { position: relative; }
.mx-stage {
  position: sticky; top: calc(84px + 4vh); height: min(70vh, 560px);
  border-radius: 30px; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(120% 90% at 50% 35%, #1d1338 0%, #0d0a18 70%);
  box-shadow: 0 40px 80px -40px rgba(40,12,90,.6);
}
.mx-glow { position: absolute; inset: -20%; z-index: -1; transition: background .8s ease;
  background: radial-gradient(circle at 30% 30%, rgba(109,40,217,.55), transparent 45%), radial-gradient(circle at 75% 75%, rgba(236,72,153,.38), transparent 45%); animation: mxGlow 14s ease-in-out infinite alternate; }
.mx-stage[data-scene="1"] .mx-glow { background: radial-gradient(circle at 70% 30%, rgba(34,211,238,.35), transparent 45%), radial-gradient(circle at 25% 75%, rgba(109,40,217,.5), transparent 45%); }
.mx-stage[data-scene="2"] .mx-glow { background: radial-gradient(circle at 30% 70%, rgba(249,115,22,.35), transparent 45%), radial-gradient(circle at 75% 25%, rgba(236,72,153,.4), transparent 45%); }
.mx-stage[data-scene="3"] .mx-glow { background: radial-gradient(circle at 60% 40%, rgba(59,130,246,.4), transparent 45%), radial-gradient(circle at 20% 80%, rgba(34,211,238,.3), transparent 45%); }
.mx-stage[data-scene="4"] .mx-glow { background: radial-gradient(circle at 40% 30%, rgba(236,72,153,.4), transparent 45%), radial-gradient(circle at 70% 80%, rgba(234,179,8,.28), transparent 45%); }
@keyframes mxGlow { to { transform: translate3d(4%, -3%, 0) scale(1.08); } }

/* une seule scène visible à la fois (visibility : rien ne « transperce » sous Safari) */
.mxs { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1100px;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.95); pointer-events: none;
  transition: opacity .4s ease, transform .6s var(--e), visibility 0s linear .4s; }
.mx-stage[data-scene="0"] .mxs[data-s="0"], .mx-stage[data-scene="1"] .mxs[data-s="1"], .mx-stage[data-scene="2"] .mxs[data-s="2"],
.mx-stage[data-scene="3"] .mxs[data-s="3"], .mx-stage[data-scene="4"] .mxs[data-s="4"] {
  opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .12s, transform .7s var(--e) .12s, visibility 0s; }
.mx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .85rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; white-space: nowrap; }
.mx-chips { position: absolute; left: 0; right: 0; bottom: 7%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 14px; }
.mxs.play .mx-chips .mx-chip { animation: mxUp .6s var(--pop) both; }
.mxs.play .mx-chips .mx-chip:nth-child(1) { animation-delay: 1.5s; } .mxs.play .mx-chips .mx-chip:nth-child(2) { animation-delay: 1.7s; } .mxs.play .mx-chips .mx-chip:nth-child(3) { animation-delay: 1.9s; }
@keyframes mxUp { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes mxPop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: none; } }
.mx-grad { background: var(--grad); background-size: 200% 100%; animation: gradient-shift 6s ease infinite; }

/* --- scène « appel » : téléphone 3D + chrono --- */
.mx-phone { --ps: 1; width: calc(200px * var(--ps)); height: calc(400px * var(--ps)); border-radius: calc(34px * var(--ps)); position: relative;
  background: #0b0b14; border: calc(7px * var(--ps)) solid #26213a; transform: rotateY(-20deg) rotateX(8deg) rotateZ(2deg);
  box-shadow: -30px 40px 60px -20px rgba(0,0,0,.6), 0 0 80px -10px rgba(236,72,153,.45); }
.mxs.play .mx-phone { animation: mxPhoneIn .8s var(--e) both, mxPhoneFloat 4.5s ease-in-out .8s infinite alternate; }
@keyframes mxPhoneIn { from { opacity: 0; transform: rotateY(-50deg) rotateX(20deg) translateY(40px) scale(.9); } to { opacity: 1; transform: rotateY(-20deg) rotateX(8deg) rotateZ(2deg); } }
@keyframes mxPhoneFloat { from { transform: rotateY(-20deg) rotateX(8deg) rotateZ(2deg); } to { transform: rotateY(-12deg) rotateX(5deg) rotateZ(1deg) translateY(10px); } }
.mx-screen { position: absolute; inset: 0; border-radius: calc(27px * var(--ps)); overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(44px * var(--ps)) 14px calc(24px * var(--ps)); background: linear-gradient(180deg, #2a1650 0%, #120c22 78%); }
.mx-notch { position: absolute; top: calc(10px * var(--ps)); left: 33%; width: 34%; height: calc(18px * var(--ps)); border-radius: 999px; background: #000; }
.mx-callab { font-size: calc(.76rem * var(--ps)); color: rgba(255,255,255,.7); letter-spacing: .04em; }
.mx-ava { width: calc(74px * var(--ps)); height: calc(74px * var(--ps)); border-radius: 50%; display: grid; place-items: center; margin: calc(20px * var(--ps)) 0 calc(12px * var(--ps));
  font-weight: 800; font-size: calc(1.5rem * var(--ps)); color: #fff; }
.mxs.play .mx-ava { animation: mxRing 1.6s ease-out infinite; }
@keyframes mxRing { 0% { box-shadow: 0 0 0 0 rgba(236,72,153,.55); } 100% { box-shadow: 0 0 0 calc(22px * var(--ps)) rgba(236,72,153,0); } }
.mx-callname { font-weight: 800; font-size: calc(1.15rem * var(--ps)); letter-spacing: -.01em; }
.mx-timer { font-variant-numeric: tabular-nums; font-size: calc(.9rem * var(--ps)); color: #f9a8d4; margin-top: 4px; }
.mx-note { font-size: calc(.78rem * var(--ps)); line-height: 1.45; color: rgba(255,255,255,.82); margin-top: calc(18px * var(--ps)); }
.mx-acts { margin-top: auto; display: flex; gap: calc(16px * var(--ps)); }
.mx-acts i { width: calc(40px * var(--ps)); height: calc(40px * var(--ps)); border-radius: 50%; background: rgba(255,255,255,.14); }
.mx-acts i.hang { background: #e5484d; }
.mx-wave { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; border: 2px solid rgba(236,72,153,.45); opacity: 0; }
.mxs.play .mx-wave { animation: mxWave 2.4s ease-out .4s infinite; } .mxs.play .mx-wave.w2 { animation-delay: 1.6s; }
@keyframes mxWave { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }

/* --- scène « document » : la feuille arrive, les lignes s'écrivent, case cochée, tampon --- */
.mx-sheet { position: relative; width: min(84%, 380px); background: #fff; color: #1a1a1a; border-radius: 18px; box-shadow: 0 40px 60px -25px rgba(0,0,0,.6); transform: rotate(-2deg); }
.mxs.play .mx-sheet { animation: mxSheetIn .7s var(--e) both; }
@keyframes mxSheetIn { from { opacity: 0; transform: translateY(60px) rotate(-8deg); } to { opacity: 1; transform: rotate(-2deg); } }
.mx-sh-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #ececf2; }
.mx-sh-top span { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6d28d9; }
.mx-sh-top b { font-weight: 800; letter-spacing: -.02em; }
.mx-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 20px; font-size: .86rem; border-bottom: 1px dashed #ececf2; }
.mx-row span { color: #5a5a6a; } .mx-row strong { text-align: right; }
.mxs.play .mx-row { animation: mxWrite .5s var(--e) both; }
.mxs.play .mx-row:nth-of-type(2) { animation-delay: .55s; } .mxs.play .mx-row:nth-of-type(3) { animation-delay: .8s; } .mxs.play .mx-row:nth-of-type(4) { animation-delay: 1.05s; } .mxs.play .mx-row:nth-of-type(5) { animation-delay: 1.3s; }
@keyframes mxWrite { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.mx-ok { display: flex; align-items: center; gap: 10px; padding: 14px 20px 16px; font-weight: 700; font-size: .86rem; }
.mx-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #6d28d9; display: grid; place-items: center; flex: 0 0 auto; }
.mx-box svg { width: 15px; height: 15px; fill: none; stroke: #6d28d9; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.mxs.play .mx-box svg { animation: mxDraw .4s ease 1.7s forwards; }
@keyframes mxDraw { to { stroke-dashoffset: 0; } }
.mx-stamp { position: absolute; right: -12px; top: -20px; padding: 8px 14px; border-radius: 10px; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  transform: rotate(8deg); box-shadow: 0 10px 24px -8px rgba(236,72,153,.6); opacity: 0; }
.mxs.play .mx-stamp { animation: mxStamp .45s var(--pop) 2.05s both; }
@keyframes mxStamp { 0% { opacity: 0; transform: rotate(8deg) scale(2.2); } 100% { opacity: 1; transform: rotate(8deg) scale(1); } }

/* --- scène « site qui se construit » : navigateur, blocs qui se posent, badge en ligne --- */
.mx-browser { position: relative; width: min(86%, 420px); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 60px -25px rgba(0,0,0,.6); transform: rotateX(10deg) rotateY(-12deg); }
.mxs.play .mx-browser { animation: mxBrowserIn .8s var(--e) both; }
@keyframes mxBrowserIn { from { opacity: 0; transform: rotateX(40deg) rotateY(-12deg) translateY(40px); } to { opacity: 1; transform: rotateX(10deg) rotateY(-12deg); } }
.mx-bbar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f4f4f8; border-bottom: 1px solid #ececf2; }
.mx-bbar > i { width: 9px; height: 9px; border-radius: 50%; background: #fb7185; } .mx-bbar > i:nth-child(2) { background: #facc15; } .mx-bbar > i:nth-child(3) { background: #4ade80; }
.mx-url { margin-left: 10px; flex: 1; height: 18px; border-radius: 8px; background: #fff; border: 1px solid #ececf2; font: 600 10px/16px ui-monospace, monospace; color: #6d28d9; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.mx-page { padding: 14px; display: grid; gap: 10px; }
.mx-page > * { border-radius: 8px; }
.mx-bnav { height: 12px; width: 100%; background: #ececf2; }
.mx-bhero { height: 92px; position: relative; overflow: hidden; }
.mx-bhero::after { content: ''; position: absolute; left: 14px; top: 18px; width: 52%; height: 12px; border-radius: 6px; background: rgba(255,255,255,.9); box-shadow: 0 20px 0 -2px rgba(255,255,255,.7), 0 46px 0 0 #fff; }
.mx-bcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.mx-bcards i { height: 46px; border-radius: 8px; background: #f4f4f8; border: 1px solid #ececf2; }
.mxs.play .mx-page > *, .mxs.play .mx-bcards i { animation: mxPop .5s var(--pop) both; }
.mxs.play .mx-bnav { animation-delay: .5s; } .mxs.play .mx-bhero { animation-delay: .75s; }
.mxs.play .mx-bcards { animation: none; } .mxs.play .mx-bcards i:nth-child(1) { animation-delay: 1s; } .mxs.play .mx-bcards i:nth-child(2) { animation-delay: 1.12s; } .mxs.play .mx-bcards i:nth-child(3) { animation-delay: 1.24s; }
.mx-live { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #0d0a18; color: #fff; font-weight: 700; font-size: .78rem; opacity: 0; }
.mx-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.mxs.play .mx-live { animation: mxPop .5s var(--pop) 1.5s both; }
.mx-code { position: absolute; left: 10%; top: 14%; padding: 8px 12px; border-radius: 10px; background: #1a1033; color: #f9a8d4; font: 700 .9rem ui-monospace, monospace; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); opacity: 0; }
.mxs.play .mx-code { animation: mxUp .6s var(--pop) .3s both, mxFloat 3s ease-in-out 1s infinite alternate; }
@keyframes mxFloat { to { transform: translateY(-8px); } }
.mx-typed { display: inline-block; overflow: hidden; vertical-align: top; max-width: 0; }
.mxs.play .mx-typed { animation: mxType 1.1s steps(18) .4s forwards; }
@keyframes mxType { to { max-width: 100%; } }

/* --- scène « tableau de bord » : la courbe se trace, les barres montent --- */
.mx-dash { position: relative; width: min(86%, 400px); padding: 18px; border-radius: 18px; background: #fff; color: #1a1a1a; box-shadow: 0 40px 60px -25px rgba(0,0,0,.6); transform: rotateX(12deg) rotateY(10deg); }
.mxs.play .mx-dash { animation: mxDashIn .8s var(--e) both; }
@keyframes mxDashIn { from { opacity: 0; transform: rotateX(40deg) rotateY(10deg) translateY(40px); } to { opacity: 1; transform: rotateX(12deg) rotateY(10deg); } }
.mx-dtop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mx-dtop b { font-weight: 800; } .mx-dtop span { font-size: .75rem; color: #8a8a98; font-weight: 600; }
.mx-chart { width: 100%; height: auto; display: block; overflow: visible; }
.mx-chart .grid { stroke: #ececf2; stroke-width: 1; }
.mx-chart .area { fill: url(#mxArea); opacity: 0; }
.mx-chart .line { fill: none; stroke: url(#mxLine); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mx-chart .dot { fill: #fff; stroke: #ec4899; stroke-width: 3; opacity: 0; }
.mxs.play .mx-chart .line { animation: mxLine 1.6s var(--e) .5s forwards; }
.mxs.play .mx-chart .area { animation: mxFade .8s ease 1.4s forwards; }
.mxs.play .mx-chart .dot { animation: mxPop .4s var(--pop) 2s both; transform-box: fill-box; transform-origin: center; }
@keyframes mxLine { to { stroke-dashoffset: 0; } }
@keyframes mxFade { to { opacity: 1; } }
.mx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-top: 12px; }
.mx-kpis span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #f4f4f8; font-size: .76rem; font-weight: 700; }
.mx-kpis i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .7rem; background: #22c55e; }
.mxs.play .mx-kpis span { animation: mxUp .5s var(--pop) both; }
.mxs.play .mx-kpis span:nth-child(1) { animation-delay: 1.2s; } .mxs.play .mx-kpis span:nth-child(2) { animation-delay: 1.35s; } .mxs.play .mx-kpis span:nth-child(3) { animation-delay: 1.5s; } .mxs.play .mx-kpis span:nth-child(4) { animation-delay: 1.65s; }

/* --- scène « audit » : la loupe passe sur la fiche, les points sont notés --- */
.mx-gcard { position: relative; width: min(84%, 370px); border-radius: 18px; background: #fff; color: #1a1a1a; padding: 16px 18px 8px; box-shadow: 0 40px 60px -25px rgba(0,0,0,.6); }
.mxs.play .mx-gcard { animation: mxSheetIn .7s var(--e) both; }
.mx-ghead { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #ececf2; }
.mx-gpin { width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #ea4335; flex: 0 0 auto; position: relative; }
.mx-gpin::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.mx-ghead b { display: block; font-weight: 800; } .mx-ghead small { color: #f59e0b; letter-spacing: 2px; font-size: .85rem; }
.mx-grow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #ececf2; font-size: .86rem; font-weight: 600; color: #3a3a46; }
.mx-grow:last-of-type { border-bottom: 0; }
.mx-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 800; opacity: 0; }
.mx-mark.ok { background: #22c55e; } .mx-mark.ko { background: #ef4444; }
.mxs.play .mx-mark { animation: mxPop .4s var(--pop) both; }
.mxs.play .mx-grow:nth-of-type(2) .mx-mark { animation-delay: .9s; } .mxs.play .mx-grow:nth-of-type(3) .mx-mark { animation-delay: 1.25s; } .mxs.play .mx-grow:nth-of-type(4) .mx-mark { animation-delay: 1.6s; } .mxs.play .mx-grow:nth-of-type(5) .mx-mark { animation-delay: 1.95s; } .mxs.play .mx-grow:nth-of-type(6) .mx-mark { animation-delay: 2.3s; }
.mx-lens { position: absolute; right: 16%; top: 22%; width: 54px; height: 54px; border-radius: 50%; border: 5px solid #6d28d9; background: rgba(109,40,217,.08); opacity: 0; }
.mx-lens::after { content: ''; position: absolute; right: -14px; bottom: -12px; width: 20px; height: 6px; border-radius: 3px; background: #6d28d9; transform: rotate(45deg); }
.mxs.play .mx-lens { animation: mxLens 2.2s var(--e) .6s both; }
@keyframes mxLens { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 90% { opacity: 1; transform: translateY(190px); } 100% { opacity: 0; transform: translateY(210px); } }

/* --- scène « réponses & posts » (gestion hebdo Google) --- */
.mx-chat { position: relative; width: min(84%, 360px); display: grid; gap: 12px; }
.mx-bub { padding: 12px 16px; border-radius: 16px; background: #fff; color: #1a1a1a; font-size: .86rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.mx-bub small { display: block; font-weight: 700; color: #8a8a98; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.mx-bub .st { color: #f59e0b; letter-spacing: 3px; }
.mx-bub.me { justify-self: end; color: #fff; border-bottom-right-radius: 4px; }
.mx-bub.you { border-bottom-left-radius: 4px; }
.mxs.play .mx-bub.you { animation: mxUp .5s var(--pop) .3s both; }
.mxs.play .mx-bub.me { animation: mxUp .5s var(--pop) .9s both; }
.mxs.play .mx-bub.post { animation: mxUp .5s var(--pop) 1.6s both; }
.mx-bub.post { display: flex; gap: 12px; align-items: center; }
.mx-bub.post .ph { width: 54px; height: 54px; border-radius: 10px; flex: 0 0 auto; }
.mx-key { position: absolute; right: -8%; top: -16%; width: 74px; height: 74px; border-radius: 20px; background: #fff; color: #0d0a18; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .62rem; line-height: 1.2;
  box-shadow: 0 16px 30px -10px rgba(0,0,0,.6); transform: rotate(10deg); opacity: 0; }
.mx-key::before { content: ''; position: absolute; top: -12px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; border: 4px solid #c9c9d6; }
.mxs.play .mx-key { animation: mxPop .5s var(--pop) 2.1s both, mxSwing 2.6s ease-in-out 2.6s infinite alternate; }
@keyframes mxSwing { from { transform: rotate(10deg); } to { transform: rotate(-4deg); } }

/* --- scène « identité » (on apprend à vous connaître) --- */
.mx-brand { width: min(84%, 370px); padding: 20px; border-radius: 18px; background: #fff; color: #1a1a1a; box-shadow: 0 40px 60px -25px rgba(0,0,0,.6); display: grid; gap: 14px; }
.mxs.play .mx-brand { animation: mxSheetIn .7s var(--e) both; }
.mx-brand small { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a8a98; }
.mx-sw { display: flex; gap: 10px; } .mx-sw i { width: 46px; height: 46px; border-radius: 12px; }
.mxs.play .mx-sw i { animation: mxPop .45s var(--pop) both; }
.mxs.play .mx-sw i:nth-child(1) { animation-delay: .5s; } .mxs.play .mx-sw i:nth-child(2) { animation-delay: .62s; } .mxs.play .mx-sw i:nth-child(3) { animation-delay: .74s; } .mxs.play .mx-sw i:nth-child(4) { animation-delay: .86s; }
.mx-aa { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.mx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-tags span { padding: 7px 12px; border-radius: 999px; background: #f4f4f8; font-size: .8rem; font-weight: 700; }
.mxs.play .mx-tags span { animation: mxUp .45s var(--pop) both; }
.mxs.play .mx-tags span:nth-child(1) { animation-delay: 1.1s; } .mxs.play .mx-tags span:nth-child(2) { animation-delay: 1.25s; } .mxs.play .mx-tags span:nth-child(3) { animation-delay: 1.4s; }

/* --- scène « calendrier du mois » --- */
.mx-cal { position: relative; width: min(84%, 370px); padding: 18px; border-radius: 18px; background: #fff; color: #1a1a1a; box-shadow: 0 40px 60px -25px rgba(0,0,0,.6); }
.mxs.play .mx-cal { animation: mxSheetIn .7s var(--e) both; }
.mx-calg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.mx-calg i { aspect-ratio: 1; border-radius: 8px; background: #f4f4f8; position: relative; }
.mx-calg i.p::after { content: ''; position: absolute; inset: 22%; border-radius: 6px; background: var(--grad); background-size: 300% 100%; opacity: 0; }
.mxs.play .mx-calg i.p::after { animation: mxPop .4s var(--pop) both; animation-delay: calc(.5s + var(--k) * .12s); }
.mx-pdf { position: absolute; right: -10%; bottom: -12%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #1a1033; color: #fff; font-weight: 700; font-size: .8rem; box-shadow: 0 16px 30px -10px rgba(0,0,0,.6); opacity: 0; }
.mx-pdf b { padding: 4px 6px; border-radius: 6px; background: #ef4444; font-size: .65rem; }
.mxs.play .mx-pdf { animation: mxUp .5s var(--pop) 1.9s both; }

/* --- scène « on crée & on publie » : téléphone avec la grille qui se remplit --- */
.mx-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: calc(14px * var(--ps)); width: 100%; }
.mx-feed i { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.08); }
.mx-feed i.f { background-image: var(--grad); background-size: 300% 300%; opacity: 0; }
.mxs.play .mx-feed i.f { animation: mxPop .45s var(--pop) both; animation-delay: calc(.6s + var(--k) * .14s); }
.mx-prof { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font-size: calc(.72rem * var(--ps)); }
.mx-prof .av { width: calc(34px * var(--ps)); height: calc(34px * var(--ps)); border-radius: 50%; flex: 0 0 auto; }
.mx-heart { position: absolute; left: 62%; top: 38%; font-size: 2.4rem; opacity: 0; filter: drop-shadow(0 8px 16px rgba(236,72,153,.6)); }
.mxs.play .mx-heart { animation: mxHeart 1.4s var(--pop) 1.9s both; }
@keyframes mxHeart { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.15); } 60% { transform: scale(1); } 100% { opacity: 1; transform: translateY(-14px); } }

/* --- scène « validation » : vous validez, le bouton passe au vert --- */
.mx-val { position: relative; width: min(84%, 370px); border-radius: 18px; background: #fff; color: #1a1a1a; padding: 16px 18px; box-shadow: 0 40px 60px -25px rgba(0,0,0,.6); }
.mxs.play .mx-val { animation: mxSheetIn .7s var(--e) both; }
.mx-val small { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a8a98; }
.mx-vprev { height: 110px; border-radius: 12px; margin: 10px 0 12px; }
.mx-vrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .86rem; font-weight: 600; color: #3a3a46; }
.mxs.play .mx-vrow .mx-box svg { animation-delay: var(--d, 1s); }
.mx-vbtns { display: flex; gap: 10px; margin-top: 10px; }
.mx-vbtns span { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-weight: 800; font-size: .82rem; background: #f4f4f8; color: #5a5a6a; }
.mx-vbtns .go { color: #fff; position: relative; overflow: hidden; background: #6d28d9; transition: background .3s; }
.mxs.play .mx-vbtns .go { animation: mxPress .5s ease 2s both; }
@keyframes mxPress { 0% { transform: scale(1); } 40% { transform: scale(.92); } 100% { transform: scale(1); background: #22c55e; } }
.mx-vbtns .go::after { content: ' ✓'; opacity: 0; } .mxs.play .mx-vbtns .go::after { animation: mxFade .2s ease 2.3s forwards; }
.mx-cursor { position: absolute; width: 22px; height: 22px; left: 30%; top: 110%; opacity: 0; }
.mx-cursor::before { content: ''; position: absolute; inset: 0; background: #fff; clip-path: polygon(0 0, 0 80%, 25% 60%, 42% 100%, 55% 94%, 38% 56%, 70% 56%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.mxs.play .mx-cursor { animation: mxCursor 1.4s var(--e) .8s both; }
@keyframes mxCursor { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 85% { opacity: 1; transform: translate(var(--cx, 150px), var(--cy, -60px)); } 100% { opacity: 1; transform: translate(var(--cx, 150px), var(--cy, -60px)) scale(.85); } }

/* --- les étapes à côté, reliées par une ligne qui se remplit --- */
.mx-ssteps { list-style: none; margin: 0; padding: 0; position: relative; --fill: 0; }
.mx-ssteps::before, .mx-ssteps::after { content: ''; position: absolute; left: 25px; top: 28vh; width: 3px; border-radius: 3px; }
.mx-ssteps::before { bottom: 28vh; background: #ececf2; }
.mx-ssteps::after { height: calc((100% - 56vh) * var(--fill)); background: var(--grad); background-size: 100% 300%; box-shadow: 0 0 14px rgba(236,72,153,.45); }
.mx-sstep { min-height: 62vh; display: grid; grid-template-columns: 54px 1fr; gap: 22px; align-content: center; position: relative; z-index: 1; }
.mx .mx-sstep { opacity: .32; transition: opacity .5s ease; }
.mx .mx-sstep.is-on { opacity: 1; }
.mx-sbadge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  background: #fff; color: #6d28d9; border: 2px solid #e4def7; transform: scale(.85); transition: transform .5s cubic-bezier(.34,1.56,.64,1), color .4s, border-color .4s, box-shadow .4s; position: relative; overflow: hidden; }
.mx-sbadge::before { content: ''; position: absolute; inset: 0; background: var(--grad); background-size: 200% 100%; animation: gradient-shift 6s ease infinite; opacity: 0; transition: opacity .4s; }
.mx-sbadge b { position: relative; }
.mx-sstep.is-on .mx-sbadge, .mx-sstep.is-done .mx-sbadge { transform: scale(1); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -10px rgba(236,72,153,.6); }
.mx-sstep.is-on .mx-sbadge::before, .mx-sstep.is-done .mx-sbadge::before { opacity: 1; }
.mx-sstep h3 { font-size: clamp(1.45rem, 2.3vw, 1.95rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 10px; color: var(--ink); }
.mx-sstep p { font-size: 1.06rem; line-height: 1.65; color: var(--muted); max-width: 460px; margin: 0; }
.mx-sstep .mx-skick { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6d28d9; margin-bottom: 8px; }

@media (max-width: 860px) {
  .mx-story { display: block; margin-top: 0; }
  .mx-stage-col { position: sticky; top: 74px; z-index: 3; }
  .mx-stage { position: relative; top: auto; height: 40vh; min-height: 270px; max-height: 360px; border-radius: 22px; }
  .mx-phone { --ps: .62; }
  .mx-sheet, .mx-browser, .mx-dash, .mx-gcard, .mx-chat, .mx-brand, .mx-cal, .mx-val { width: min(80%, 300px); transform: scale(.92); }
  .mx-row { padding: 8px 14px; font-size: .74rem; } .mx-sh-top { padding: 10px 14px; } .mx-ok { padding: 10px 14px 12px; font-size: .74rem; }
  .mx-bhero { height: 64px; } .mx-bcards i { height: 30px; }
  .mx-grow { padding: 7px 0; font-size: .76rem; } .mx-ghead { padding-bottom: 8px; }
  .mx-vprev { height: 60px; } .mx-vrow { padding: 4px 0; font-size: .76rem; }
  .mx-bub { padding: 9px 12px; font-size: .76rem; }
  .mx-sw i { width: 34px; height: 34px; } .mx-aa { font-size: 1.9rem; } .mx-brand { gap: 10px; padding: 14px; }
  .mx-chips { bottom: 5%; } .mx-chip { font-size: .72rem; padding: 6px 10px; }
  .mx-ssteps { padding-top: 24px; }
  .mx-ssteps::before, .mx-ssteps::after { top: 20vh; left: 21px; } .mx-ssteps::before { bottom: 20vh; } .mx-ssteps::after { height: calc((100% - 40vh) * var(--fill)); }
  .mx-sstep { min-height: 52vh; grid-template-columns: 46px 1fr; gap: 16px; align-content: start; padding-top: 6vh; }
  .mx-sbadge { width: 46px; height: 46px; font-size: .95rem; }
  .mx-sstep h3 { font-size: 1.35rem; } .mx-sstep p { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mxs, .mxs * { animation: none !important; transition: none !important; }
  .mxs .mx-chip, .mxs .mx-stamp, .mxs .mx-live, .mxs .mx-code, .mxs .mx-mark, .mxs .mx-key, .mxs .mx-pdf, .mxs .mx-heart, .mxs .mx-lens, .mxs .mx-chart .area, .mxs .mx-chart .dot, .mxs .mx-calg i.p::after, .mxs .mx-feed i.f { opacity: 1; }
  .mxs .mx-lens, .mxs .mx-cursor { display: none; }
  .mxs .mx-box svg, .mxs .mx-chart .line { stroke-dashoffset: 0; }
  .mxs .mx-typed { max-width: 100%; }
}
.mx-bub.me { background: var(--grad); background-size: 200% 100%; animation: gradient-shift 6s ease infinite; }
.mxs.play .mx-bub.me { animation: mxUp .5s var(--pop) .9s both, gradient-shift 6s ease infinite; }
.mx-key { right: 2%; top: -30%; }

/* Bandeau « Ils nous ont fait confiance » : logo Union Menuiserie (même rendu noir et blanc que les autres) */
.trusted-by-track .brand-logo[aria-label="Union Menuiserie"] { height: 40px; }
@media (max-width: 700px) { .trusted-by-track .brand-logo[aria-label="Union Menuiserie"] { height: 32px; } }
.trusted-by-track .brand-logo[aria-label="OVEO Plomberie"] { height: 40px; }
@media (max-width: 700px) { .trusted-by-track .brand-logo[aria-label="OVEO Plomberie"] { height: 32px; } }

/* ==========================================================================
   LA CARTE QUI SE TRANSFORME (remplace les décors qui se succédaient)
   Une seule carte : sa taille, ses coins et sa couleur changent d'une étape
   à l'autre, ses blocs glissent vers leur nouvelle place, le texte se
   remplace avec un léger flou. Ressorts courts, jamais de rebond exagéré.
   ========================================================================== */
.mm-fit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: scale(var(--k, 1)); }
.mm-shell { --spring: cubic-bezier(.3, 1.18, .42, 1); position: absolute; left: 0; top: 0;
  width: var(--w, 360px); height: var(--h, 290px); border-radius: var(--r, 18px); background: var(--bg, #fff);
  transform: translate(-50%, -50%);
  box-shadow: 0 40px 70px -28px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
  transition: width .8s var(--spring), height .8s var(--spring), border-radius .8s var(--spring), background-color .6s ease; }
.mm-atoms { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.mm-atom { position: absolute; left: 0; top: 0; display: block;
  transform: translate(var(--x, 0), var(--y, 0)); width: var(--aw, 0); height: var(--ah, 0); border-radius: var(--ar, 0);
  background: var(--ab, transparent); opacity: var(--ao, 1);
  transition: transform .8s var(--spring), width .8s var(--spring), height .8s var(--spring), border-radius .8s var(--spring), background .6s ease, opacity .5s ease; }
.mm-atom.is-grad { background: var(--grad); background-size: 200% 100%; animation: gradient-shift 6s ease infinite; }
.mm-atom:nth-child(2) { transition-delay: .04s; } .mm-atom:nth-child(3) { transition-delay: .08s; } .mm-atom:nth-child(4) { transition-delay: .12s; }
.mm-layer { position: absolute; inset: 0; pointer-events: none; opacity: 0; filter: blur(6px); transition: opacity .25s ease, filter .25s ease; }
.mm-layer.on { opacity: 1; filter: none; transition: opacity .45s ease .38s, filter .45s ease .38s; }
.mm-t { position: absolute; white-space: nowrap; color: #1a1a1a; font-size: 14px; line-height: 1.3; }
.mm-shell.is-dark .mm-t { color: #fff; }
.mm-c { text-align: center; } .mm-b { font-weight: 800; letter-spacing: -.01em; }
.mm-xs { font-size: 11.5px; } .mm-sm { font-size: 13px; }
.mm-t.mm-white, .mm-shell .mm-t.mm-white { color: #fff; }
.mm-dim { opacity: .7; } .mm-dim2 { opacity: .82; white-space: normal; line-height: 1.45; }
.mm-mut { color: #5a5a6a; } .mm-mut2 { color: #3a3a46; } .mm-pink { color: #f9a8d4 !important; } .mm-violet { color: #6d28d9; } .mm-green { color: #15803d; }
.mm-kick { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6d28d9; }
.mm-ava { display: flex; align-items: center; justify-content: center; }
.mm-ava img { display: block; width: 22px; height: auto; transform: translateX(1px); }
.mm-wm img { display: inline-block; width: 62px; height: auto; vertical-align: top; }
.mm-ava { color: #fff !important; }
.mm-stars { color: #f59e0b; letter-spacing: 2px; }
.mm-ck { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; display: block; margin: 3px; }
.mm-layer.on .mm-ck { animation: mxDraw .4s ease forwards; animation-delay: .9s; }
.mm-layer.on .mm-ckw:nth-of-type(2) .mm-ck { animation-delay: 1.1s; }
.mm-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; font-size: 12px; font-weight: 800; }
.mm-mark.ok { background: #22c55e; } .mm-mark.ko { background: #ef4444; }
.mm-layer.on .mm-mark { animation: mxPop .4s cubic-bezier(.34,1.56,.64,1) both; animation-delay: .8s; }
.mm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; background: #fb7185; }
.mm-dot.y { background: #facc15; } .mm-dot.g { background: #4ade80; }
.mm-url { height: 18px; line-height: 16px; padding: 0 8px; border-radius: 8px; background: #fff; border: 1px solid #ececf2; font: 600 10px/16px ui-monospace, monospace; color: #6d28d9; }
.mm-line { height: 10px; border-radius: 5px; background: rgba(255,255,255,.92); }
.mm-pillw { width: 84px; height: 22px; border-radius: 11px; background: #fff; opacity: .95; }
.mm-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.mm-code { padding: 8px 12px; border-radius: 10px; background: #1a1033; color: #f9a8d4 !important; font: 700 .9rem ui-monospace, monospace; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.mm-layer.on .mm-code { animation: mxFloat 3s ease-in-out 1s infinite alternate; }
.mm-chips { display: flex; justify-content: center; gap: 8px; }
.mm-chips em { font-style: normal; font-weight: 600; font-size: 12px; padding: 7px 12px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.mm-layer.on .mm-chips em { animation: mxUp .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: 1.1s; }
.mm-layer.on .mm-chips em + em { animation-delay: 1.25s; }
.mm-curve { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mm-curve path { fill: none; stroke: url(#mmLine); stroke: #ec4899; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mm-layer.on .mm-curve path { animation: mxLine 1.4s cubic-bezier(.2,.8,.2,1) .9s forwards; }
.mm-aa { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.mm-cell { width: 40px; height: 40px; border-radius: 10px; background: #f4f4f8; }
.mm-pdf { display: inline-block; padding: 3px 6px; margin-right: 6px; border-radius: 6px; background: #ef4444; font-size: 10px; line-height: 1.2; }
.mm-tile { width: 60px; height: 60px; border-radius: 6px; background: rgba(255,255,255,.08); }
.mm-heart { font-size: 40px; filter: drop-shadow(0 8px 16px rgba(236,72,153,.6)); opacity: 0; }
.mm-layer.on .mm-heart { animation: mxHeart 1.4s cubic-bezier(.34,1.56,.64,1) 1.2s both; }
.mm-cursor { width: 22px; height: 22px; opacity: 0; }
.mm-cursor::before { content: ''; position: absolute; inset: 0; background: #fff; clip-path: polygon(0 0, 0 80%, 25% 60%, 42% 100%, 55% 94%, 38% 56%, 70% 56%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.mm-layer.on .mm-cursor { animation: mmCursor 1.3s cubic-bezier(.2,.8,.2,1) .9s both; }
@keyframes mmCursor { 0% { opacity: 0; transform: translate(70px, 60px); } 25% { opacity: 1; } 80% { opacity: 1; transform: translate(-12px, -6px); } 100% { opacity: 1; transform: translate(-12px, -6px) scale(.85); } }
.mx-stage .mx-wave { opacity: 0; }
.mx-stage.is-wave .mx-wave { animation: mxWave 2.4s ease-out .4s infinite; } .mx-stage.is-wave .mx-wave.w2 { animation-delay: 1.6s; }
@media (prefers-reduced-motion: reduce) {
  .mm-shell, .mm-atom, .mm-layer, .mm-layer.on { transition: none !important; }
  .mm-layer.on * { animation: none !important; }
  .mm-ck, .mm-curve path { stroke-dashoffset: 0; } .mm-heart, .mm-cursor { opacity: 1; }
}
