/* ═══════════════════════════════════════════════════════════
   ENCART LEAD MAGNET — collecte email reliée à Brevo
   Réutilisable : à poser dans n'importe quelle page du site
   principal (design system od-*). Le guide envoyé est choisi
   par le champ caché "guide" du formulaire.
   Dépend de tokens.css.
   ═══════════════════════════════════════════════════════════ */

.od-lm {
  background: linear-gradient(170deg, var(--od-navy-900) 0%, #0d1b30 62%, #101a33 100%);
  color: #fff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.od-lm::before {
  content: '';
  position: absolute;
  top: -140px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(242,182,0,.13) 0%, transparent 65%);
  pointer-events: none;
}
.od-lm__inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px;
  align-items: start;
}

/* ─── Colonne gauche : pitch ─── */
.od-lm__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--od-amber-500);
  background: rgba(242,182,0,.12);
  border: 1px solid rgba(242,182,0,.32);
  padding: 7px 14px; border-radius: 100px;
  margin-bottom: 22px;
}
.od-lm__title {
  font-family: var(--od-font-display);
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 600; line-height: 1.16;
  color: #fff; margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.od-lm__title em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, rgba(242,182,0,.40) 62%);
  padding: 0 4px;
}
.od-lm__lead {
  font-size: 16px; line-height: 1.75;
  color: rgba(255,255,255,.74);
  margin: 0 0 28px; max-width: 560px;
}
.od-lm__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 13px; }
.od-lm__list li {
  position: relative; padding-left: 32px;
  font-size: 14.5px; line-height: 1.6;
  color: rgba(255,255,255,.85);
}
.od-lm__list li::before {
  content: '';
  position: absolute; top: 3px; left: 0;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--od-amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1730' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.od-lm__note {
  font-size: 13.5px; line-height: 1.7;
  color: rgba(255,255,255,.52);
  border-left: 2px solid rgba(242,182,0,.45);
  padding-left: 14px; margin: 0 0 26px; max-width: 540px;
}
.od-lm__trust { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10); }
.od-lm__trust span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.11);
  padding: 7px 13px; border-radius: 100px;
}

/* ─── Colonne droite : formulaire ─── */
.od-lm-form {
  background: #fff; color: var(--od-navy-900);
  border-radius: 12px;
  padding: 34px 32px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(242,182,0,.20);
  position: relative;
}
.od-lm-form__hp { position: absolute; left: -9999px; }

.od-lm-form__head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--od-ink-100); }
.od-lm-form__head h3 {
  font-family: var(--od-font-display);
  font-size: 22px; font-weight: 700;
  color: var(--od-navy-900); margin: 0 0 6px;
}
.od-lm-form__head p { font-size: 13.5px; color: var(--od-fg-muted); margin: 0; line-height: 1.5; }

.od-lm-form__error {
  display: none; margin: 0 0 16px; padding: 12px 14px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  color: #b91c1c; font-size: 13.5px; line-height: 1.5;
}

.od-lm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 13px; }
.od-lm-form__field { margin-bottom: 13px; }

/* Intitulés de champs uniquement : le consentement RGPD est lui aussi un
   <label>, il ne doit hériter ni des majuscules ni du display:block. */
.od-lm-form__row label,
.od-lm-form__field label {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--od-navy-900); margin-bottom: 6px;
}
.od-lm-form__row label span,
.od-lm-form__field label span { color: #dc2626; margin-left: 2px; }

.od-lm-form input[type="text"],
.od-lm-form input[type="email"] {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 15px;
  color: var(--od-navy-900);
  background: #fafaf7;
  border: 1.5px solid var(--od-ink-100);
  border-radius: 8px; padding: 12px 14px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.od-lm-form input[type="text"]:focus,
.od-lm-form input[type="email"]:focus {
  outline: none; background: #fff;
  border-color: var(--od-amber-500);
  box-shadow: 0 0 0 3px rgba(242,182,0,.2);
}
.od-lm-form input.is-invalid { border-color: #dc2626; background: #fff5f5; }

.od-lm-form__rgpd {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.6; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: var(--od-fg-muted);
  background: #fafaf7;
  border: 1px solid var(--od-ink-100);
  border-radius: 8px; padding: 14px 15px;
  margin: 4px 0 18px; cursor: pointer;
}
.od-lm-form__rgpd:hover { border-color: rgba(242,182,0,.45); }
.od-lm-form__rgpd input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--od-amber-500); }
.od-lm-form__rgpd a { color: #b8860b; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

.od-lm-form__submit {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(180deg, #f2b600 0%, #e0a51a 100%);
  color: #0f1730;
  font-family: var(--od-font-body);
  font-size: 15.5px; font-weight: 700;
  border: none; border-radius: 8px; padding: 15px 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(242,182,0,.28);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.od-lm-form__submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(242,182,0,.42); }
.od-lm-form__submit:disabled { opacity: .65; cursor: wait; }

.od-lm-form__legal { font-size: 11.5px; color: #8a8a9a; text-align: center; margin: 14px 0 0; line-height: 1.5; }

/* ─── État succès ─── */
.od-lm-success {
  display: none;
  background: #fff; border-radius: 12px;
  padding: 52px 34px 46px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(34,197,94,.28);
}
.od-lm-success__icon {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 50%; background: #ecfdf5;
  display: flex; align-items: center; justify-content: center;
  color: #16a34a; font-size: 28px; line-height: 1;
}
.od-lm-success h3 {
  font-family: var(--od-font-display);
  font-size: 23px; font-weight: 700;
  color: var(--od-navy-900); margin: 0 0 10px;
}
.od-lm-success p { font-size: 14.5px; color: var(--od-fg-muted); line-height: 1.7; margin: 0 auto 10px; max-width: 360px; }
.od-lm-success a { color: #b8860b; font-weight: 600; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .od-lm__inner { grid-template-columns: 1fr; gap: 44px; }
  .od-lm__form-col { max-width: 520px; }
}
@media (max-width: 768px) {
  .od-lm          { padding: 60px 0; }
  .od-lm-form     { padding: 28px 22px 24px; }
  .od-lm-form__row { grid-template-columns: 1fr; }
}
