/*
 * Sections de la nouvelle home (templates/partials/home/*.html) et page « Passer à l'émission ».
 * Couleurs : tokens (static/css/tokens.css). Mouvement : transform + opacity uniquement.
 */

/* Les ancres arrivent sous l'en-tête collant, pas dessous */
.lm-section,
.lm-anchor { scroll-margin-top: 5.5rem; }
.lm-anchor { display: block; height: 0; }

/* ---------------------------------------------------------------- Sections */
.lm-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}
@media (min-width: 640px) { .lm-section { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .lm-section { padding: 5rem 2rem; } }

/* Bande pleine largeur pour alterner les fonds */
.lm-band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.lm-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.lm-section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.lm-section__title {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  text-wrap: balance;
}
.lm-section__lead {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text2);
}

/* Lien « Tout voir » : cible de 44 px, flèche qui avance au survol */
.lm-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-text);
  border-radius: var(--r-sm);
}
.lm-more svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lm-more:hover { color: var(--accent-hover); }
.lm-more:hover svg { transform: translateX(3px); }
.lm-more:focus-visible,
.lm-focus:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- Vidéos */
.lm-videos {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .lm-videos { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; }
}
.lm-videos__player {
  overflow: hidden;
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  background: var(--surface2);
}
.lm-videos__main-title {
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.lm-videos__main-title a:hover { color: var(--accent-text); }
.lm-videos__desc {
  margin-top: 0.6rem;
  max-width: 44rem;
  color: var(--text2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lm-videos__list {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lm-videos__item {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.6rem;
  margin-inline: -0.6rem;
  border-radius: var(--r-lg);
  transition: transform 120ms ease-out;
}
.lm-videos__item:hover { background: var(--surface2); }
.lm-videos__item:active { transform: scale(0.98); }
.lm-videos__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.lm-videos__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: var(--surface2);
}
.lm-videos__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lm-videos__item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lm-videos__item:hover .lm-videos__item-title { color: var(--text-strong); }
.lm-videos__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.lm-badge-record {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--record) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--record) 12%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--record);
}

/* ---------------------------------------------------------------- Le Mag */
.lm-mag {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .lm-mag { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lm-mag { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 3 articles sur mobile et tablette, 6 sur grand écran */
@media (max-width: 1023px) { .lm-mag > :nth-child(n + 4) { display: none; } }

/* ---------------------------------------------------------------- Passer à l'émission */
.lm-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  padding: 2rem 1.5rem;
  border-radius: var(--r-xl);
  background: var(--accent);
  color: var(--accent-ink);
}
@media (min-width: 1024px) {
  .lm-cta { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding: 3rem; gap: 3rem; }
}
.lm-cta::after {
  /* Grand cercle discret : la seule décoration du bloc */
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -9rem;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-ink) 7%, transparent);
}
.lm-cta__title {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lm-cta__lead {
  margin-top: 0.85rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--accent-ink);
}
.lm-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.lm-cta .lm-btn--dark {
  background: var(--accent-ink);
  color: var(--accent);
}
.lm-cta .lm-btn--dark:hover { background: color-mix(in srgb, var(--accent-ink) 88%, var(--accent)); }
.lm-cta .lm-btn--line {
  border-color: color-mix(in srgb, var(--accent-ink) 35%, transparent);
  color: var(--accent-ink);
  background: transparent;
}
.lm-cta .lm-btn--line:hover { border-color: var(--accent-ink); }
.lm-cta .lm-btn:focus-visible { outline-color: var(--accent-ink); }
.lm-cta__steps {
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lm-cta__step {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--accent-ink) 8%, transparent);
}
.lm-cta__step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.lm-cta__step-title { font-weight: 800; letter-spacing: -0.01em; }
.lm-cta__step-text { margin-top: 0.2rem; font-size: 0.9375rem; line-height: 1.5; color: var(--accent-ink); }
.lm-cta__price { margin-top: 1rem; font-size: 0.9375rem; font-weight: 600; }

/* ---------------------------------------------------------------- Nos métiers */
.lm-skills {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--border); /* les filets entre cases */
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) { .lm-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lm-skills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lm-skill {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--bg);
}
.lm-skill svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lm-skill__title { margin-top: 0.4rem; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text-strong); }
.lm-skill__text { font-size: 0.9375rem; line-height: 1.55; color: var(--text2); }
/* 7 métiers sur une grille de 4 : la dernière case prend la place restante */
@media (min-width: 1024px) { .lm-skill:last-child { grid-column: span 2; } }
@media (min-width: 640px) and (max-width: 1023px) { .lm-skill:last-child { grid-column: span 2; } }

/* ---------------------------------------------------------------- Ils nous suivent */
.lm-reach {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) { .lm-reach { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lm-reach__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 9rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: transform 120ms ease-out;
}
.lm-reach__item:hover { border-color: var(--border2); }
.lm-reach__item:active { transform: scale(0.98); }
.lm-reach__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lm-reach__network {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text2);
}
.lm-reach__network svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.lm-reach__value {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.lm-reach__unit { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: var(--muted); }

.lm-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 640px) { .lm-partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lm-partners { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lm-partners__item {
  display: grid;
  place-items: center;
  height: 5.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.lm-partners__item img { max-height: 100%; max-width: 100%; object-fit: contain; opacity: 0.85; }
.lm-partners__item:hover img { opacity: 1; }
.lm-partners__label { margin-top: 2.5rem; font-size: 0.875rem; font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------------------- Témoignages */
.lm-quotes {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) { .lm-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lm-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.lm-quote blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.lm-quote blockquote::before { content: "« "; color: var(--accent-text); font-weight: 800; }
.lm-quote blockquote::after { content: " »"; color: var(--accent-text); font-weight: 800; }
.lm-quote figcaption { display: flex; align-items: center; gap: 0.75rem; }
.lm-quote__avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface2);
  font-weight: 800;
  color: var(--accent-text);
}
.lm-quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.lm-quote__name { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--text-strong); }
.lm-quote__role { font-size: 0.8125rem; color: var(--muted); }

/* ---------------------------------------------------------------- À propos (court) */
.lm-about {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) { .lm-about { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2.5rem; } }
.lm-about__logo { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; }
.lm-about__logo img { width: 100%; height: auto; }
.lm-about__text { margin-top: 0.75rem; max-width: 46rem; font-size: 1.0625rem; line-height: 1.6; color: var(--text2); }
.lm-about__text strong { color: var(--text-strong); font-weight: 600; }

/* ---------------------------------------------------------------- Page « Passer à l'émission » */
.lm-faq { display: grid; gap: 0.75rem; max-width: 52rem; margin-top: 2rem; }
.lm-steps {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 768px) { .lm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lm-steps__item {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.lm-steps__item::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}
.lm-steps__title { font-weight: 800; color: var(--text-strong); }
.lm-steps__text { margin-top: 0.3rem; line-height: 1.55; color: var(--text2); }
.lm-faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.lm-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-strong);
  list-style: none;
  border-radius: var(--r-lg);
}
.lm-faq summary::-webkit-details-marker { display: none; }
.lm-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-text);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.lm-faq details[open] summary::after { transform: rotate(45deg); }
.lm-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lm-faq__answer { padding: 0 1.25rem 1.25rem; line-height: 1.6; color: var(--text2); white-space: pre-line; }

@media (prefers-reduced-motion: reduce) {
  .lm-more svg,
  .lm-videos__item,
  .lm-reach__item,
  .lm-faq summary::after { transition: none; }
  .lm-more:hover svg,
  .lm-videos__item:active,
  .lm-reach__item:active { transform: none; }
}

/* ---------------------------------------------------------------- Récits au scroll (docs/PLAN_ANIMATIONS.md, étape 3)
   Rendu statique complet sans JS ou en mouvement réduit ; frontend/motion/stories.js anime
   uniquement transform et opacity par-dessus. */

/* Agenda : l'onde du temps (desktop, 3 colonnes) */
.lm-timeline { position: relative; }
.lm-timeline__item { position: relative; }
.lm-timeline__card,
.lm-timeline__card > .ev-card { height: 100%; }
.lm-timeline__rail,
.lm-timeline__node { display: none; }
@media (min-width: 1024px) {
  .lm-timeline { padding-top: 2.75rem; }
  .lm-timeline__rail {
    display: block;
    position: absolute;
    inset: 0 0 auto;
    height: 1.5rem;
    overflow: hidden;
  }
  /* Tracé révélé par deux translations opposées : la ligne reste en place, la fenêtre s'ouvre */
  .lm-timeline__wipe,
  .lm-timeline__wipe-inner { height: 100%; overflow: hidden; }
  .lm-timeline__wave {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.75;
  }
  .lm-timeline__node {
    display: block;
    position: absolute;
    top: -2.25rem;
    left: 2.25rem;
    width: 0.75rem;
    height: 0.75rem;
    margin-left: -0.375rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent);
  }
}

/* Vidéos : halo derrière l'écran principal (« l'écran s'allume » au défilement) */
.lm-videos > article { position: relative; isolation: isolate; }
.lm-videos__glow { display: none; }
@media (min-width: 1024px) {
  .lm-videos__glow {
    display: block;
    position: absolute;
    inset: -6% -5% 30%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent);
    filter: blur(40px);
    pointer-events: none; /* intensité par thème dans la couleur : l'opacité est pilotée par le défilement */
  }
  [data-theme="light"] .lm-videos__glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent); }
}

/* ---------------------------------------------------------------- Survols (docs/PLAN_ANIMATIONS.md, étape 4) */
@media (hover: hover) and (pointer: fine) {
  /* Le Mag : l'image entière se rapproche au survol de la carte (cadre-image--survol, site.css) */
  /* Liste des émissions : la miniature se rapproche */
  .lm-videos__thumb img { transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
  .lm-videos__item:hover .lm-videos__thumb img { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .lm-videos__thumb img { transition: none; transform: none !important; }
}

/* ---------------------------------------------------------------- Le fil (docs/PLAN_ANIMATIONS.md, étape 5)
   Sans JS : liste qu'on fait défiler à la main. .is-running : défilement continu (loops.js).
   .is-static : navigation au clavier, liste immobile et défilable. */
.lm-fil {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.lm-fil__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.25rem 1rem;
}
@media (min-width: 640px) { .lm-fil__inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .lm-fil__inner { padding-inline: 2rem; } }
.lm-fil__label {
  flex: none;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--sur-accent);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.2;
}
.lm-fil__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--fond) 3%, var(--fond) 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--fond) 3%, var(--fond) 94%, transparent);
}
.lm-fil__viewport::-webkit-scrollbar { display: none; }
.lm-fil.is-running .lm-fil__viewport { overflow: hidden; }
.lm-fil.is-static .lm-fil__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.lm-fil__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0.25rem 0; /* place pour le contour de focus */
  list-style: none;
}
.lm-fil__item { display: flex; align-items: center; white-space: nowrap; }
.lm-fil__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding-inline: 0.25rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  transition: color 160ms ease;
}
.lm-fil__link:hover { color: var(--accent-text); }
.lm-fil__type { font-size: 0.75rem; font-weight: 600; color: var(--accent-text); }
.lm-fil__onde {
  display: block;
  flex: none;
  width: 1.75rem;
  height: 0.75rem;
  margin-inline: 1.25rem;
  overflow: hidden;
  color: var(--accent);
  opacity: 0.7;
}
.lm-fil__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  transition: transform 120ms ease-out, color 160ms ease;
}
.lm-fil__toggle:hover { color: var(--text); }
.lm-fil__toggle:active { transform: scale(0.94); }
.lm-fil__toggle svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lm-fil__toggle .lm-fil__icon-play { display: none; fill: currentColor; stroke: none; }
.lm-fil__toggle[aria-pressed="true"] .lm-fil__icon-play { display: block; }
.lm-fil__toggle[aria-pressed="true"] .lm-fil__icon-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .lm-fil__toggle { transition: none; } .lm-fil__toggle:active { transform: none; } }

/* Vidéos : « À la une » avec son onde */
.lm-videos__une { display: inline-flex; align-items: center; font-weight: 600; color: var(--accent-text); }

/* ---------------------------------------------------------------- Mobile (docs/PLAN_ANIMATIONS.md, étape 7) */
/* Agenda : les cartes se font glisser (accroche native), la suivante dépasse pour l'annoncer */
@media (max-width: 639px) {
  .lm-timeline > .grid {
    display: flex;
    gap: 0.875rem;
    margin-inline: -1rem;
    padding: 0 1rem 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .lm-timeline > .grid::-webkit-scrollbar { display: none; }
  .lm-timeline__item { flex: 0 0 84%; scroll-snap-align: start; }
  .lm-timeline__item:only-child { flex-basis: 100%; }
}
/* Retour à l'appui sur écran tactile (pas de survol) */
@media (hover: none) {
  .lm-mag article { transition: transform 120ms ease-out; }
  .lm-mag article:active { transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .lm-mag article:active { transform: none; }
}

/* ---------------------------------------------------------------- Étape 8 (docs/PLAN_ANIMATIONS.md)
   « Passer à l'émission » : texte | illustration, étapes en ligne dessous (grand écran). */
@media (min-width: 1024px) {
  .lm-cta { grid-template-areas: "text resa"; }
  .lm-cta:has(.lm-cta__steps) { grid-template-areas: "text resa" "steps steps"; }
  .lm-cta__text { grid-area: text; }
  .lm-cta > .lm-resa { grid-area: resa; }
  .lm-cta__steps { grid-area: steps; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Illustration de réservation : une conversation, puis une date confirmée (décorative) */
.lm-resa {
  justify-self: center;
  width: 100%;
  max-width: 21rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 22%, transparent);
  border-radius: var(--r-lg);
  background: var(--fond);
  color: var(--texte);
  box-shadow: 0 28px 56px -28px color-mix(in srgb, var(--fond) 90%, transparent);
  font-size: 0.875rem;
  line-height: 1.4;
}
@media (min-width: 1024px) { .lm-resa { transform: rotate(-1.5deg); } }
.lm-resa__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--bordure);
}
.lm-resa__avatar {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--sur-accent);
  font-size: 0.6875rem;
  font-weight: 800;
}
.lm-resa__name { font-weight: 600; }
/* Flux de blocs (pas de flex) : l'indicateur « en train d'écrire », sorti du flux, se pose
   exactement à la place du message qui va le remplacer. */
.lm-resa__chat { position: relative; padding-top: 0.25rem; }
.lm-resa__msg,
.lm-resa__cal,
.lm-resa__typing { margin: 0.6rem 0 0; }
.lm-resa__msg {
  width: fit-content;
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 1rem;
}
.lm-resa__msg--out {
  margin-left: auto;
  border-bottom-right-radius: 0.3rem;
  background: var(--accent);
  color: var(--sur-accent);
  transform-origin: 100% 100%;
}
.lm-resa__msg--in {
  border-bottom-left-radius: 0.3rem;
  background: var(--surface-2);
  transform-origin: 0 100%;
}
.lm-resa__typing {
  position: absolute;
  display: flex;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  border-bottom-left-radius: 0.3rem;
  background: var(--surface-2);
  opacity: 0;
  visibility: hidden;
}
.lm-resa__typing span { width: 0.4rem; height: 0.4rem; border-radius: 999px; background: var(--texte-discret); }
.lm-resa__cal {
  padding: 0.7rem;
  border: 1px solid var(--bordure);
  border-radius: var(--r-md);
  background: var(--surface);
  transform-origin: 50% 100%;
}
.lm-resa__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lm-resa__days li,
.lm-resa__ring {
  display: grid;
  gap: 0.1rem;
  padding: 0.3rem 0;
  border-radius: var(--r-sm);
}
.lm-resa__days li { position: relative; }
.lm-resa__days span { font-size: 0.625rem; font-weight: 600; color: var(--texte-discret); }
.lm-resa__ring {
  position: absolute;
  inset: 0;
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 800;
}
.lm-resa__ring span { color: var(--sur-accent); }
.lm-resa__ok {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-weight: 600;
  color: var(--succes);
}
.lm-resa__ok svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* « Devenir partenaire » : fin de la section Audience, le fleuve en écho du hero */
.lm-partner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 3rem;
  padding: 2rem 1.5rem 7rem;
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  background: var(--surface);
}
@media (min-width: 1024px) { .lm-partner { padding: 3.5rem 3rem; } }
.lm-partner__river {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Les lignes partent du bas (mobile) ou de la droite (grand écran) : le texte reste lisible */
  -webkit-mask-image: linear-gradient(180deg, transparent 40%, var(--fond) 85%);
  mask-image: linear-gradient(180deg, transparent 40%, var(--fond) 85%);
}
@media (min-width: 1024px) {
  .lm-partner__river {
    -webkit-mask-image: linear-gradient(90deg, transparent 35%, var(--fond) 75%);
    mask-image: linear-gradient(90deg, transparent 35%, var(--fond) 75%);
  }
}
.lm-partner__body { max-width: 36rem; }
.lm-partner__title {
  font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  text-wrap: balance;
}
.lm-partner__lead { margin-top: 0.85rem; font-size: 1.0625rem; line-height: 1.55; color: var(--text2); }
.lm-partner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
.lm-partner .lm-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.lm-partner__mail { font-size: 0.9375rem; color: var(--text2); }
.lm-partner__mail a {
  font-weight: 600;
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}
