/* CoBeautyFlow — Landing Motion (v3)
   Transform/opacity only · custom easing · reduced-motion safe */

.landing-motion-page {
  --lm-brand: #B399D4;
  --lm-brand-dark: #9C7FC2;
  --lm-brand-secondary: #FFD1DC;
  --lm-brand-accent: #FF8C69;
  --lm-ink: #0f172a;
  --lm-muted: #64748b;
  --lm-surface: #faf8fc;
  --lm-glass: rgba(255, 255, 255, 0.72);
  --lm-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --lm-ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --lm-duration-fast: 200ms;
  --lm-duration: 520ms;
  --lm-duration-slow: 780ms;

  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--lm-surface);
  color: var(--lm-ink);
  overflow-x: clip;
}

.landing-motion-page h1,
.landing-motion-page h2,
.landing-motion-page h3 {
  font-family: "Montserrat", "Poppins", sans-serif;
}

/* Hero badge (shared partial — styles from v2 not loaded on motion page) */
.landing-motion-page .hero-premium-badge {
  opacity: 1;
  transform: none;
}

.landing-motion-page .hero-badge-glass {
  background: var(--lm-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(179, 153, 212, 0.12);
}

.landing-motion-page .hero-badge-tagline-mobile {
  color: var(--lm-muted);
}

/* ── Background mesh ── */
.lm-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lm-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform;
}

.lm-bg__orb--1 {
  top: -12%;
  left: 8%;
  width: min(52vw, 28rem);
  height: min(52vw, 28rem);
  background: rgba(244, 114, 182, 0.35);
}

.lm-bg__orb--2 {
  top: 18%;
  right: -6%;
  width: min(48vw, 26rem);
  height: min(48vw, 26rem);
  background: rgba(179, 153, 212, 0.45);
}

.lm-bg__orb--3 {
  bottom: -8%;
  left: 28%;
  width: min(56vw, 32rem);
  height: min(56vw, 32rem);
  background: rgba(167, 139, 250, 0.28);
}

.lm-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(179, 153, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 153, 212, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
}

/* ── Motion primitives (visible sans JS ; animé seulement avec .lm-motion-enabled) ── */
.landing-motion-page .lm-hero-item,
.landing-motion-page .lm-reveal {
  opacity: 1;
  transform: none;
}

.landing-motion-page.lm-motion-enabled .lm-hero-item:not(.is-visible),
.landing-motion-page.lm-motion-enabled .lm-reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity var(--lm-duration) var(--lm-ease-out-expo),
    transform var(--lm-duration) var(--lm-ease-out-expo);
}

.landing-motion-page.lm-motion-enabled .lm-hero-item.is-visible,
.landing-motion-page.lm-motion-enabled .lm-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--lm-duration) var(--lm-ease-out-expo),
    transform var(--lm-duration) var(--lm-ease-out-expo);
}

.lm-reveal[data-motion-delay="1"] { transition-delay: 80ms; }
.lm-reveal[data-motion-delay="2"] { transition-delay: 160ms; }
.lm-reveal[data-motion-delay="3"] { transition-delay: 240ms; }

.lm-ready .lm-hero-item {
  transition-delay: calc(var(--lm-hero-index, 0) * 90ms);
}

/* ── Glass panels ── */
.lm-glass {
  background: var(--lm-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(179, 153, 212, 0.12);
}

/* ── Buttons ── */
.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  min-height: 3.25rem;
  padding: 0.875rem 1.75rem;
  transition:
    background-color var(--lm-duration-fast) var(--lm-ease-out-quart),
    box-shadow var(--lm-duration-fast) var(--lm-ease-out-quart),
    transform var(--lm-duration-fast) var(--lm-ease-out-quart),
    color var(--lm-duration-fast) var(--lm-ease-out-quart);
}

.lm-btn:active {
  transform: scale(0.98);
}

.lm-btn--primary {
  background: var(--lm-brand);
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(179, 153, 212, 0.35);
}

.lm-btn--primary:hover {
  background: var(--lm-brand-dark);
  box-shadow: 0 16px 40px rgba(156, 127, 194, 0.4);
  transform: translateY(-2px);
}

.lm-btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--lm-ink) !important;
  border: 1px solid rgba(179, 153, 212, 0.35);
}

.lm-btn--ghost:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* ── Hero mock UI ── */
.lm-mock {
  position: relative;
  min-height: 22rem;
}

.lm-mock__card {
  position: absolute;
  border-radius: 1.25rem;
  padding: 1.25rem;
  width: min(100%, 18rem);
}

.lm-mock__card--main {
  top: 12%;
  right: 4%;
  z-index: 2;
  animation: lm-float 7s var(--lm-ease-out-quart) infinite;
}

.lm-mock__card--secondary {
  bottom: 8%;
  left: 0;
  z-index: 1;
  width: min(100%, 14rem);
  animation: lm-float 8.5s var(--lm-ease-out-quart) infinite reverse;
  animation-delay: -2s;
}

.lm-mock__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lm-brand-dark);
  background: rgba(179, 153, 212, 0.15);
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
}

@keyframes lm-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

/* ── Marquee ── */
.lm-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.lm-marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: lm-marquee 28s linear infinite;
}

.lm-marquee__item {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lm-muted);
  white-space: nowrap;
}

@keyframes lm-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ── Persona cards ── */
.lm-persona {
  border-radius: 1.5rem;
  overflow: hidden;
  transition:
    transform var(--lm-duration) var(--lm-ease-out-expo),
    box-shadow var(--lm-duration) var(--lm-ease-out-expo);
}

.lm-persona:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(179, 153, 212, 0.18);
}

.lm-persona__img {
  height: 11rem;
  width: 100%;
  object-fit: cover;
}

/* ── Timeline ── */
.lm-step {
  position: relative;
  padding-left: 2.75rem;
}

.lm-step::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 2.5rem;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--lm-brand), transparent);
}

.lm-step:last-child::before {
  display: none;
}

.lm-step__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--lm-brand);
  box-shadow: 0 4px 14px rgba(179, 153, 212, 0.45);
}

/* ── Stats strip ── */
.lm-stat__value {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--lm-brand-dark);
  line-height: 1.1;
}

/* ── Nav glass + texte blanc pendant le cinéma immersif ── */
body.landing-motion-body.lm-immersive-mode nav.fixed {
  background: rgba(15, 23, 42, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.landing-motion-body.lm-immersive-mode nav.fixed a,
body.landing-motion-body.lm-immersive-mode nav.fixed button,
body.landing-motion-body.lm-immersive-mode nav.fixed span:not(.sr-only),
body.landing-motion-body.lm-immersive-mode nav.fixed i {
  color: rgba(255, 255, 255, 0.94) !important;
}

body.landing-motion-body.lm-immersive-mode nav.fixed a:hover,
body.landing-motion-body.lm-immersive-mode nav.fixed button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

body.landing-motion-body.lm-immersive-mode nav.fixed svg {
  color: rgba(255, 255, 255, 0.94) !important;
}

body.landing-motion-body.lm-immersive-mode nav.fixed [class*="text-slate"],
body.landing-motion-body.lm-immersive-mode nav.fixed [class*="text-gray"] {
  color: rgba(255, 255, 255, 0.94) !important;
}

/* CTA flottant masqué — CTAs intégrés au parcours cinéma */
body.landing-motion-body .lm-floating-join--motion {
  display: none !important;
}

body.lm-immersive-mode [data-controller="speed-dial"],
body.lm-immersive-mode .fixed.left-4.z-\[2147483647\] {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Masquer Crisp pendant le parcours cinéma (évite le chevauchement mobile) */
body.landing-motion-body.lm-immersive-mode #crisp-chatbox,
body.landing-motion-body.lm-immersive-mode #crisp-chatbox-button,
body.landing-motion-body.lm-immersive-mode .crisp-client {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Cinematic persona scroll (immersive, stepper, panneau gauche) ── */
.lm-cinema {
  --cinema-p: 0;
  --lm-ui-top: clamp(4.75rem, 11vh, 6.5rem);
  --lm-ui-bottom: clamp(0.85rem, 2.5vh, 1.75rem);
  --lm-ui-side: clamp(0.85rem, 2.5vw, 2rem);
  --lm-ui-col: min(20rem, 28vw);
  --lm-ui-max-h: min(30rem, calc(100dvh - var(--lm-ui-top) - var(--lm-ui-bottom) - 0.5rem));
  position: relative;
  isolation: isolate;
  /* Fond sombre : évite la bande claire sous le sticky (svh/dvh / chrome mobile) */
  background: #0f172a;
}

.lm-cinema__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  /* overflow:hidden sur sticky casse le scroll tactile iOS quand le doigt part des cartes */
  overflow: visible;
  z-index: 2;
}

.lm-cinema__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0f172a;
}

.lm-cinema__layer {
  position: absolute;
  inset: -8%;
  opacity: 0;
  will-change: opacity, transform, filter;
}

.lm-cinema__layer--base {
  z-index: 1;
}

.lm-cinema__layer[data-layer="exterior"] { z-index: 2; }
.lm-cinema__layer[data-layer="freelance"] { z-index: 3; }
.lm-cinema__layer[data-layer="client"] { z-index: 4; }

.lm-cinema__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: object-position;
}

.lm-cinema__img--service {
  object-position: 48% 42%;
}

.lm-cinema__img--client {
  object-position: 62% 48%;
}

.lm-cinema__scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.25) 18%, rgba(15, 23, 42, 0.15) 45%, rgba(15, 23, 42, 0.52) 100%),
    linear-gradient(95deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.28) 38%, rgba(15, 23, 42, 0.15) 58%, rgba(15, 23, 42, 0.52) 100%);
  pointer-events: none;
}

.lm-cinema__grain {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.lm-cinema__title-block {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0 1.5rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--lm-ease-out-expo);
}

.lm-cinema__title-block.is-visible {
  opacity: 1;
}

/* Hero intégré — chapitre approach */
.lm-cinema__hero-intro {
  position: absolute;
  inset: 0;
  z-index: 21;
  display: flex;
  align-items: center;
  padding: 5rem clamp(1.25rem, 5vw, 4rem) 3rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s var(--lm-ease-out-expo), transform 0.7s var(--lm-ease-out-expo);
}

.lm-cinema__hero-intro.is-fading {
  opacity: 0;
  transform: translateY(-24px);
  pointer-events: none;
}

.lm-cinema__hero-inner {
  max-width: 40rem;
  pointer-events: auto;
}

.lm-cinema__hero-inner .hero-premium-badge {
  opacity: 1;
  transform: none;
}

.lm-cinema__hero-inner .hero-badge-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lm-cinema__hero-inner .hero-badge-glass span,
.lm-cinema__hero-inner .hero-badge-glass .text-texte-gris,
.lm-cinema__hero-inner .hero-badge-tagline-mobile,
.lm-cinema__hero-inner .text-texte-gris {
  color: rgba(255, 255, 255, 0.92) !important;
}

.lm-cinema__hero-inner .hero-badge-glass span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.45) !important;
}

.lm-cinema__hero-title {
  margin-top: 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.875rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.lm-cinema__hero-highlight {
  display: block;
  margin-top: 0.25rem;
  background: linear-gradient(120deg, var(--lm-brand-secondary) 0%, var(--lm-brand) 55%, #c4a8e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lm-cinema__hero-sub {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.lm-cinema__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ── Dock : persona gauche + stepper droite, centre libre ── */
.lm-cinema__ui {
  position: absolute;
  top: var(--lm-ui-top);
  right: var(--lm-ui-side);
  bottom: var(--lm-ui-bottom);
  left: var(--lm-ui-side);
  transform: none;
  z-index: 22;
  width: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--lm-ui-col)) 1fr minmax(0, var(--lm-ui-col));
  align-items: center;
  align-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: 0;
  pointer-events: none;
}

.lm-cinema__ui > .lm-cinema__chapter-dots {
  display: none;
}

.lm-cinema__ui > * {
  min-height: 0;
  max-height: none;
}

.lm-cinema[data-chapter="approach"] .lm-cinema__ui {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lm-cinema__title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

/* Panneau persona — gauche */
.lm-cinema__persona-left {
  position: relative;
  grid-column: 1;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  justify-self: start;
  align-self: center;
  pointer-events: none;
}

.lm-cinema__persona-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border-radius: 1.35rem;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.52) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s var(--lm-ease-out-expo),
    transform 0.65s var(--lm-ease-out-expo);
  pointer-events: none;
}

.lm-cinema__persona-panel :is(h3, p) {
  margin: 0;
  width: 100%;
}

.lm-cinema__persona-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
}

@media (min-width: 768px) {
  .lm-cinema__persona-left,
  .lm-cinema__steppers {
    max-height: none;
  }

  .lm-cinema__persona-panel.is-visible {
    max-height: none;
    overflow: visible;
  }
}

.lm-cinema__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(179, 153, 212, 0.4);
  border: 1px solid rgba(255, 209, 220, 0.35);
  color: #fff;
}

.lm-cinema__headline {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.lm-cinema__lede {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: none;
  flex: 1;
}

.lm-cinema__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  width: fit-content;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff !important;
  background: var(--lm-brand);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(179, 153, 212, 0.4);
  transition: transform 0.25s var(--lm-ease-out-expo), background 0.25s ease;
}

.lm-cinema__cta span,
.lm-cinema__cta svg {
  color: #fff !important;
}

.lm-cinema__cta:hover {
  transform: translateY(-2px);
  background: var(--lm-brand-dark);
  box-shadow: 0 14px 36px rgba(179, 153, 212, 0.45);
}

.lm-cinema__cta--accent {
  background: var(--lm-brand-accent);
  box-shadow: 0 10px 28px rgba(255, 140, 105, 0.35);
}

.lm-cinema__cta--accent:hover {
  background: #e67a55;
  box-shadow: 0 14px 36px rgba(255, 140, 105, 0.45);
}

.lm-cinema__cta--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lm-cinema__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.lm-cinema__cta--block {
  width: 100%;
  justify-content: center;
}

/* Features mobile — chips horizontaux (masqués desktop) */
.lm-mobile-features {
  display: none;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0 0 0.15rem;
  gap: 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.lm-mobile-features::-webkit-scrollbar {
  display: none;
}

.lm-mobile-features__chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  max-width: 16rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-cinema__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  transform: translateX(-50%);
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.lm-cinema__scroll-hint.is-visible {
  opacity: 1;
  animation: lm-scroll-hint-bob 2s ease-in-out infinite;
}

@keyframes lm-scroll-hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(4px); }
}

.lm-cinema__chapter-dots {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
  transform: translateX(-50%);
  z-index: 24;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lm-cinema__chapter-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease, background 0.3s ease;
}

.lm-cinema__chapter-dot.is-active {
  background: var(--lm-brand-secondary);
  transform: scale(1.35);
}

/* Steppers — droite (même carte que persona) */
.lm-cinema__steppers {
  position: relative;
  grid-column: 3;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  justify-self: end;
  align-self: center;
  pointer-events: none;
}

.lm-stepper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  transform: translateY(12px);
  margin: 0;
  padding: 1.75rem 2rem;
  list-style: none;
  border-radius: 1.35rem;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.52) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: visible;
  color: #fff;
  opacity: 0;
  transition:
    opacity 0.55s var(--lm-ease-out-expo),
    transform 0.65s var(--lm-ease-out-expo);
}

@media (min-width: 768px) {
  .lm-stepper.is-visible {
    max-height: none;
    overflow: visible;
  }
}

.lm-stepper__track {
  position: absolute;
  left: calc(2rem + 1.4375rem);
  top: 2.5rem;
  bottom: 2.5rem;
  width: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transform: translateX(-50%);
}

.lm-stepper__track::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--stepper-fill, 0%);
  background: linear-gradient(180deg, var(--lm-brand), var(--lm-brand-secondary));
  border-radius: 1px;
  transition: height 0.5s var(--lm-ease-out-expo);
}

.lm-stepper.is-visible {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  inset: auto;
}

.lm-stepper__step {
  position: relative;
  display: grid;
  grid-template-columns: 2.875rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.625rem 0;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease;
}

.lm-stepper__step:not(.is-visible) {
  display: none;
}

.lm-stepper__step.is-past .lm-stepper__node {
  background: rgba(179, 153, 212, 0.35);
  border-color: rgba(255, 209, 220, 0.4);
}

.lm-stepper__step.is-current .lm-stepper__node {
  background: var(--lm-brand);
  border-color: var(--lm-brand-secondary);
  box-shadow: 0 0 0 3px rgba(179, 153, 212, 0.3);
  transform: scale(1.06);
}

.lm-stepper__step.is-current .lm-stepper__title {
  color: #fff;
  font-weight: 700;
}

.lm-stepper__node {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.28);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.lm-stepper__body {
  padding-top: 0.35rem;
  min-width: 0;
  flex: 1;
}

.lm-stepper__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  transition: color 0.3s ease;
}

.lm-stepper__desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s ease;
}

.lm-stepper__step.is-past .lm-stepper__title {
  color: rgba(255, 255, 255, 0.78);
}

.lm-stepper__step.is-past .lm-stepper__desc {
  color: rgba(255, 255, 255, 0.62);
}

.lm-stepper--rose .lm-stepper__step.is-current .lm-stepper__node,
.lm-stepper--fuchsia .lm-stepper__step.is-current .lm-stepper__node {
  background: var(--lm-brand);
  box-shadow: 0 0 0 3px rgba(179, 153, 212, 0.3);
}

/* Tablette / grand mobile paysage : cartes latérales plus compactes */
@media (min-width: 768px) and (max-width: 1100px) {
  .lm-cinema {
    --lm-ui-col: min(17.5rem, 32vw);
    --lm-ui-top: clamp(4.25rem, 9vh, 5.5rem);
    --lm-ui-max-h: min(26rem, calc(100dvh - var(--lm-ui-top) - var(--lm-ui-bottom) - 0.5rem));
  }

  .lm-cinema__ui {
    gap: clamp(0.5rem, 1.5vw, 1rem);
  }

  .lm-cinema__persona-panel,
  .lm-stepper {
    padding: 1.25rem 1.35rem;
  }

  .lm-cinema__headline {
    font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  }

  .lm-cinema__lede {
    font-size: 0.875rem;
  }

  .lm-stepper__title {
    font-size: 0.9375rem;
  }

  .lm-stepper__desc {
    font-size: 0.8125rem;
  }

  .lm-stepper__node {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.8125rem;
  }

  .lm-stepper__step {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
  }

  .lm-stepper__track {
    left: calc(1.4rem + 1.25rem);
    top: 2rem;
    bottom: 2rem;
  }
}

/* Grand desktop : colonnes un peu plus larges */
@media (min-width: 1400px) {
  .lm-cinema {
    --lm-ui-col: min(22rem, 24vw);
    --lm-ui-max-h: min(32rem, calc(100dvh - var(--lm-ui-top) - var(--lm-ui-bottom) - 0.5rem));
  }
}

/* Viewports bas (laptop, tablette paysage) : cartes remontées et compactes */
@media (min-width: 768px) and (max-height: 780px) {
  .lm-cinema {
    --lm-ui-top: clamp(4rem, 8vh, 5rem);
    --lm-ui-bottom: 0.65rem;
    --lm-ui-max-h: calc(100dvh - var(--lm-ui-top) - var(--lm-ui-bottom) - 0.25rem);
  }

  .lm-cinema__persona-panel,
  .lm-stepper {
    padding: 1.1rem 1.25rem;
    gap: 0.65rem;
  }

  .lm-cinema__headline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
  }

  .lm-cinema__lede {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .lm-stepper__step {
    padding: 0.35rem 0;
    gap: 0.65rem;
  }

  .lm-stepper__node {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
  }

  .lm-stepper__step {
    grid-template-columns: 2.25rem 1fr;
  }

  .lm-stepper__title {
    font-size: 0.875rem;
  }

  .lm-stepper__desc {
    font-size: 0.75rem;
    margin-top: 0.15rem;
  }

  .lm-stepper__track {
    left: calc(1.25rem + 1.125rem);
    top: 1.65rem;
    bottom: 1.65rem;
  }
}

/* Desktop wrapper — visible ≥768px */
.lm-cinema__desktop {
  display: block;
}

/* Mobile deck — hidden on desktop */
.lm-deck {
  display: none;
}

/* ── Mobile native deck : swipe horizontal immersif ── */
@media (max-width: 767px) {
  body.landing-motion-body.lm-immersive-mode [data-controller="speed-dial"],
  body.landing-motion-body.lm-immersive-mode .fixed.left-4.z-\[2147483647\],
  body.landing-motion-body.lm-immersive-mode .fixed.z-\[2147483647\][style*="bottom"] {
    display: none !important;
  }

  .lm-cinema__desktop {
    display: none !important;
  }

  .lm-deck {
    display: block;
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    background: #0f172a;
    overflow: hidden;
  }

  .lm-deck__rail {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
  }

  .lm-deck__rail::-webkit-scrollbar {
    display: none;
  }

  .lm-deck__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
  }

  .lm-deck__media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .lm-deck__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.04);
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .lm-deck__slide.is-active .lm-deck__img {
    transform: scale(1);
  }

  .lm-deck__veil {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.2) 32%, rgba(15, 23, 42, 0.72) 72%, rgba(15, 23, 42, 0.94) 100%);
  }

  .lm-deck__veil--deep {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.15) 28%, rgba(15, 23, 42, 0.78) 58%, rgba(15, 23, 42, 0.96) 100%);
  }

  .lm-deck__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 5.5rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 4.25rem);
    color: #fff;
  }

  .lm-deck__title {
    margin: 0.75rem 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  }

  .lm-deck__title-accent {
    display: block;
    margin-top: 0.15rem;
    color: #ffd1dc;
  }

  .lm-deck__sub {
    margin: 0.9rem 0 0;
    max-width: 22rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lm-deck__actions {
    margin-top: 1.35rem;
  }

  .lm-deck__actions .lm-cinema__cta {
    width: 100%;
    justify-content: center;
  }

  .lm-deck__swipe-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1.35rem auto 0;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: lm-deck-nudge 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  }

  @keyframes lm-deck-nudge {
    0%, 100% { transform: translateX(0); opacity: 0.75; }
    50% { transform: translateX(6px); opacity: 1; }
  }

  .lm-deck__sheet {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 3.5rem);
    z-index: 2;
    max-height: min(68dvh, calc(100dvh - 5.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.05rem 1.1rem;
    border-radius: 1.25rem;
    color: #fff;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
    scrollbar-width: none;
    transform: translate3d(0, 1.25rem, 0);
    opacity: 0;
    transition:
      opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .lm-deck__sheet::-webkit-scrollbar {
    display: none;
  }

  .lm-deck__slide.is-active .lm-deck__sheet {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }


  .lm-deck__headline {
    margin: 0.35rem 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.25rem, 5.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .lm-deck__lede {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .lm-deck__features {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .lm-deck__feature {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    gap: 0.65rem;
    align-items: start;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  .lm-deck__slide.is-active .lm-deck__feature {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(0.08s + var(--i, 0) * 0.055s);
  }

  .lm-deck__feature-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fff;
    background: rgba(179, 153, 212, 0.35);
    border: 1px solid rgba(255, 209, 220, 0.35);
  }

  .lm-deck__feature-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    padding-top: 0.15rem;
  }

  .lm-deck__feature-title {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
  }

  .lm-deck__feature-desc {
    font-size: 0.6875rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
  }

  .lm-deck__cta {
    margin-top: 0.95rem;
  }

  .lm-deck__dots {
    position: absolute;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.85rem);
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.45rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .lm-deck__dot {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition:
      width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      background 0.3s ease;
  }

  .lm-deck__dot.is-active {
    width: 1.25rem;
    background: #ffd1dc;
  }

  @media (prefers-reduced-motion: reduce) {
    .lm-deck__img,
    .lm-deck__sheet,
    .lm-deck__feature,
    .lm-deck__swipe-cue,
    .lm-deck__dot {
      animation: none !important;
      transition: none !important;
    }

    .lm-deck__slide .lm-deck__sheet,
    .lm-deck__slide .lm-deck__feature {
      opacity: 1;
      transform: none;
    }
  }
}

.lm-cinema__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 25;
  background: rgba(255, 255, 255, 0.12);
}

.lm-cinema__progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--lm-brand), var(--lm-brand-secondary), var(--lm-brand-accent));
}

.lm-cinema__track {
  position: relative;
  z-index: 5;
  margin-top: -100vh;
  margin-top: -100dvh;
  pointer-events: none;
}

.lm-cinema__beat {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Flip cards (motion landing) */
.lm-flip-card {
  perspective: 1400px;
  min-height: 34rem;
  cursor: pointer;
  outline: none;
}

.lm-flip-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(179, 153, 212, 0.65);
  border-radius: 1.5rem;
}

.lm-flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 34rem;
  transform-style: preserve-3d;
  transition: transform 0.78s var(--lm-ease-out-expo);
}

.lm-flip-card.flipped .lm-flip-card__inner {
  transform: rotateY(180deg);
}

.lm-flip-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.lm-flip-card__face--back {
  transform: rotateY(180deg);
  background: rgba(255, 255, 255, 0.96);
}

.lm-flip-card__hint,
.lm-flip-card__hint-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  color: var(--lm-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.lm-flip-card__hint {
  animation: lm-hint-pulse 2.8s var(--lm-ease-out-quart) infinite;
}

@keyframes lm-hint-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.lm-flip-card__back-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.5rem;
}

.lm-flip-card__back-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 1.25rem;
  margin: 0;
  list-style: none;
}

.lm-flip-card__back-item {
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--lm-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.35s var(--lm-ease-out-expo),
    transform 0.35s var(--lm-ease-out-expo);
  transition-delay: calc(var(--lm-feature-i, 0) * 45ms);
}

.lm-flip-card.flipped .lm-flip-card__back-item {
  opacity: 1;
  transform: translateX(0);
}

.lm-flip-card__back-footer {
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

@media (max-width: 640px) {
  .lm-flip-card,
  .lm-flip-card__inner {
    min-height: 31rem;
  }
}

/* ── Gradient text ── */
.lm-gradient-text {
  background: linear-gradient(120deg, #c026d3 0%, #e11d48 45%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .landing-motion-page.lm-motion-enabled .lm-hero-item,
  .landing-motion-page.lm-motion-enabled .lm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lm-mock__card--main,
  .lm-mock__card--secondary,
  .lm-marquee__track {
    animation: none;
  }

  .lm-persona:hover,
  .lm-btn--primary:hover,
  .lm-btn--ghost:hover {
    transform: none;
  }

  .lm-cinema__layer {
    transition: none;
  }

  .lm-cinema__persona-panel.is-visible,
  .lm-stepper.is-visible,
  .lm-stepper__step.is-visible {
    opacity: 1;
    transform: none;
  }

  .lm-flip-card__inner {
    transition: none;
  }

  .lm-flip-card__hint {
    animation: none;
  }

  .lm-flip-card__back-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* RTL tweaks */
[dir="rtl"] .lm-step {
  padding-left: 0;
  padding-right: 2.75rem;
}

[dir="rtl"] .lm-step::before {
  left: auto;
  right: 0.95rem;
}

[dir="rtl"] .lm-step__num {
  left: auto;
  right: 0;
}

[dir="rtl"] .lm-mock__card--main {
  right: auto;
  left: 4%;
}

[dir="rtl"] .lm-mock__card--secondary {
  left: auto;
  right: 0;
}
