/* Bloc "Lead magnet" — voir IHM_PAGE_ACCUEIL_LEAD_MAGNET_algo.md. Toutes les
   règles sont préfixées #leadmagnet (namespacing manuel, voir
   nafabeat-landing/CLAUDE.md § Namespacing CSS). */
#leadmagnet {
  position: relative; overflow: hidden;
  background: var(--marine);
  padding: 90px 24px 90px;
}
#leadmagnet .lm-texture { position: absolute; inset: 0; z-index: 0; }
#leadmagnet .lm-texture svg { width: 100%; height: 100%; display: block; }
#leadmagnet .lm-glow {
  position: absolute; width: 520px; height: 520px; z-index: 0;
  background: radial-gradient(ellipse, rgba(202,138,4,0.13) 0%, transparent 68%);
  top: calc(0% - 200px); left: calc(50% - 260px);
}
/* Largeur volontairement calée pour laisser un aperçu régulier (~60px) de la
   carte suivante à droite (3 cartes de 340px + 2 espacements de 26px = 1072px ;
   1160px de conteneur ⇒ ~60px de la 4e carte toujours visible, jamais 0 jamais
   une carte entière) — signal de défilement délibéré, pas un reste de calcul. */
#leadmagnet .lm-inner { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; }

#leadmagnet .lm-head { max-width: 660px; margin-bottom: 40px; }
#leadmagnet .lm-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px;
  animation: fadeUp 0.7s ease both;
}
#leadmagnet .lm-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 2.8vw, 30px); line-height: 1.32; letter-spacing: -0.2px;
  color: var(--text-cream); margin: 0 0 18px; text-wrap: balance;
  animation: fadeUp 0.7s 0.08s ease both;
}
/* Mot-accent toujours suivi d'un retour à la ligne (cf. hero/loop) — l'italique
   de DM Serif Display laisse trop peu de fer en bout de mot pour qu'un simple
   espace se lise comme une vraie coupure sur la même ligne. */
#leadmagnet .lm-title em { font-style: italic; color: var(--gold); }
#leadmagnet .lm-intro {
  font-size: 14.5px; line-height: 1.7; color: var(--text-sec-dark); margin: 0; max-width: 560px;
  animation: fadeUp 0.7s 0.16s ease both;
}

/* ---- Barre d'outils du carrousel — juste au-dessus des cartes, détachée du
       bloc de titre (l'alignement précédent avec le texte flottait trop loin
       des cartes une fois le sous-texte sur 3 lignes). ---- */
#leadmagnet .lm-cards-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
#leadmagnet .lm-nav { display: flex; gap: 9px; }
#leadmagnet .lm-nav-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(248,244,239,0.04); border: 1px solid rgba(248,244,239,0.18);
  color: var(--text-cream); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
#leadmagnet .lm-nav-btn:hover { background: rgba(202,138,4,0.16); border-color: rgba(202,138,4,0.45); color: var(--gold-light); }
#leadmagnet .lm-nav-btn svg { width: 16px; height: 16px; }

/* ---- Piste défilante — overflow natif (tactile + trackpad), scrollbar
       masquée sur les 3 moteurs, glisser-déposer souris ajouté en JS,
       boucle infinie au clic sur les flèches (peu d'éléments, jamais
       d'impasse). ---- */
#leadmagnet .lm-cards-track {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 4px 10px; margin: -4px -4px 0; cursor: grab; user-select: none;
  scrollbar-width: none; -ms-overflow-style: none;
  animation: fadeUp 0.8s 0.22s ease both;
}
#leadmagnet .lm-cards-track::-webkit-scrollbar { display: none; height: 0; }
#leadmagnet .lm-cards-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

#leadmagnet .lm-card-v2 {
  flex: 0 0 340px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-radius: 16px; border: 1px solid rgba(248,244,239,0.1);
  background: color-mix(in srgb, var(--gold) 6%, var(--marine-light));
  box-shadow: 0 22px 46px -30px rgba(0,0,0,0.6);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#leadmagnet a.lm-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 64px -26px rgba(0,0,0,0.7);
  border-color: rgba(202,138,4,0.45);
}

#leadmagnet .lm-card-photo {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#leadmagnet .lm-card-photo-img {
  position: absolute; inset: 0; transition: transform 0.5s ease;
}
#leadmagnet a.lm-card-v2:hover .lm-card-photo-img { transform: scale(1.06); }
/* Traitement graphique assumé (pas de photo dispo — voir note en session) :
   halo radial en coin + silhouette de l'icône du secteur agrandie en filigrane
   à l'opposé, plutôt qu'un dégradé + motif superposés qui se brouillaient. */
#leadmagnet .lm-card-photo--education .lm-card-photo-img { background: radial-gradient(135% 130% at 8% 4%, color-mix(in srgb, var(--gold) 32%, var(--marine-light)) 0%, var(--marine-light) 62%); }
#leadmagnet .lm-card-photo--sante .lm-card-photo-img { background: radial-gradient(135% 130% at 8% 4%, color-mix(in srgb, var(--gold-light) 30%, var(--marine-light)) 0%, var(--marine-light) 62%); }
#leadmagnet .lm-card-photo--finance .lm-card-photo-img { background: radial-gradient(135% 130% at 8% 4%, color-mix(in srgb, var(--gold-dark) 36%, var(--marine-light)) 0%, var(--marine-light) 62%); }
#leadmagnet .lm-card-photo--assurance .lm-card-photo-img { background: radial-gradient(135% 130% at 8% 4%, color-mix(in srgb, var(--gold-light) 20%, var(--marine-light)) 0%, var(--marine-light) 62%); }
#leadmagnet .lm-card-photo--logistique .lm-card-photo-img { background: radial-gradient(135% 130% at 8% 4%, color-mix(in srgb, var(--gold-light) 26%, var(--marine-light)) 0%, var(--marine-light) 62%); }
#leadmagnet .lm-card-photo-ghost {
  position: absolute; right: -20px; bottom: -24px; z-index: 0;
  width: 160px; height: 160px; color: rgba(248,244,239,0.07);
}
#leadmagnet .lm-card-photo-ghost svg { width: 100%; height: 100%; stroke-width: 1.1; }
#leadmagnet .lm-card-photo-icon {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(248,244,239,0.09); border: 1px solid rgba(248,244,239,0.22);
  color: var(--gold-light); box-shadow: 0 10px 20px -12px rgba(0,0,0,0.5);
}
#leadmagnet .lm-card-photo-icon svg { width: 27px; height: 27px; stroke-width: 1.6; }

#leadmagnet .lm-card-body { padding: 28px 28px 26px; flex: 1; display: flex; flex-direction: column; }
#leadmagnet .lm-card-count {
  display: inline-flex; align-self: flex-start; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--gold-light);
  background: rgba(202,138,4,0.14); border: 1px solid rgba(202,138,4,0.3);
  border-radius: 999px; padding: 4px 11px; margin-bottom: 14px;
}
#leadmagnet .lm-card-v2-title {
  font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: -0.1px;
  color: var(--text-cream); margin: 0 0 10px; transition: color 0.2s;
}
#leadmagnet a.lm-card-v2:hover .lm-card-v2-title { color: var(--gold-light); }
#leadmagnet .lm-card-v2-desc {
  font-size: 13.5px; color: var(--text-sec-dark); line-height: 1.62;
  margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid rgba(248,244,239,0.1);
}

#leadmagnet .lm-card-v2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#leadmagnet .lm-card-v2-list li {
  position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.55; color: var(--text-sec-dark);
}
#leadmagnet .lm-card-v2-list li::before {
  content: '—'; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700;
}

#leadmagnet .lm-card-v2-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px;
  font-size: 12.5px; font-weight: 600; color: var(--gold-light);
}
#leadmagnet .lm-card-v2-more svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
#leadmagnet a.lm-card-v2:hover .lm-card-v2-more svg { transform: translateX(3px); }

#leadmagnet .lm-card-v2--soon { opacity: 0.72; cursor: default; }
#leadmagnet .lm-card-v2--soon:hover { transform: none; box-shadow: 0 22px 46px -30px rgba(0,0,0,0.6); border-color: rgba(248,244,239,0.1); }
#leadmagnet .lm-card-v2--soon .lm-card-photo-icon { color: var(--text-sec-dark); border-color: rgba(248,244,239,0.16); }
#leadmagnet .lm-card-soon-tag {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-cream); background: rgba(26,26,46,0.55); border: 1px solid rgba(248,244,239,0.22);
  border-radius: 999px; padding: 4px 10px;
}

@media (max-width: 640px) {
  #leadmagnet { padding: 52px 20px 52px; }
  #leadmagnet .lm-card-v2 { flex-basis: 82vw; max-width: 320px; }
}
