/**
 * Formulaire Checklist — surcharges visuelles.
 * Chargé APRÈS sib-styles.css pour gagner la cascade.
 * Toutes les couleurs viennent des variables déjà définies par lg-design.php
 * (--lg-orange, --lg-blue, --lg-ink, --lg-cream…). Aucune valeur en dur,
 * aucune police supplémentaire chargée.
 */

/* ── Règles reprises du code Brevo d'origine (bloc <style> en ligne) ── */
:where(.sib-form-message-panel) { display: none; }
:where(.sib-form-message-panel .sib-notification__icon) { width: 20px; height: 20px; }
.lg-checklist #sib-container input::placeholder,
.lg-checklist #sib-container textarea::placeholder { text-align: left; color: var(--lg-muted, #7E8C99); }

/* ── Conteneur ── */
.lg-checklist {
  --lgc-gap: 34px;
  margin: 44px 0;
}
.lg-checklist__inner {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: var(--lgc-gap);
  align-items: center;
  max-width: 940px;
  margin: 0 auto;
  padding: 30px 32px;
  background: var(--lg-card, #fff);
  border: 1px solid var(--lg-border-cool, #E4EAF0);
  border-radius: 20px;
  box-shadow: 0 30px 66px -34px rgba(28, 43, 54, .36);
}

/* Variante fin d'article : plus compacte, fond crème pour se détacher du texte */
.lg-checklist--inline { margin: 40px 0 8px; }
.lg-checklist--inline .lg-checklist__inner {
  background: var(--lg-cream, #F8F5EE);
  border-color: var(--lg-border, #E7E0D2);
  box-shadow: none;
  padding: 26px 28px;
  --lgc-gap: 28px;
}

/* ── Visuel de couverture ── */
.lg-checklist__media { line-height: 0; }
.lg-checklist__media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--lg-border, #E7E0D2);
  box-shadow: 0 18px 40px -22px rgba(28, 43, 54, .55);
}

/* ── Neutralisation des styles Brevo par défaut ── */
.lg-checklist .sib-form,
.lg-checklist .sib-form-container,
.lg-checklist #sib-container {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  text-align: left !important;
  border: 0 !important;
}
.lg-checklist .sib-form-block { padding: 0 !important; }
.lg-checklist form#sib-form { padding: 0 !important; }

/* ── Titre et accroche ── */
.lg-checklist .lg-form-title p {
  font-family: var(--lg-head, sans-serif);
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--lg-ink, #1C2B36);
  margin: 0 0 6px;
}
.lg-checklist .lg-form-lead p {
  font-family: var(--lg-sans, sans-serif);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--lg-text, #4A5A66);
  margin: 0 0 4px;
}

/* ── Libellés : identiques à ceux du formulaire de contact ── */
.lg-checklist .entry__label {
  display: block;
  font-family: var(--lg-sans, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--lg-ink, #1C2B36);
  margin: 0 0 6px;
  text-align: left;
}

/* ── Champs : repris à l'identique de .lg-field input ── */
.lg-checklist .entry__field { border: 0 !important; background: none !important; }
.lg-checklist input.input {
  font-family: inherit;
  font-size: 15px;
  color: var(--lg-ink, #1C2B36);
  background: var(--lg-cream, #F8F5EE);
  border: 1px solid var(--lg-border-cool, #E4EAF0);
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  height: auto;
  box-shadow: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.lg-checklist--inline input.input { background: #fff; }
.lg-checklist input.input:focus {
  outline: none;
  border-color: var(--lg-blue, #36688D);
  box-shadow: 0 0 0 3px rgba(54, 104, 141, .14);
  background: #fff;
}
/* Focus clavier : jamais d'outline supprimé sans remplacement visible */
.lg-checklist input.input:focus-visible {
  outline: 2px solid var(--lg-blue, #36688D);
  outline-offset: 2px;
}

/* ── Case de consentement ── */
.lg-checklist .entry__choice { text-align: left; }
.lg-checklist .lg-optin-text p {
  font-family: var(--lg-sans, sans-serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--lg-text, #4A5A66);
  margin: 0;
}
.lg-checklist .entry__specification {
  display: block;
  font-family: var(--lg-sans, sans-serif);
  font-size: 12px;
  line-height: 1.45;
  color: var(--lg-muted, #7E8C99);
  margin-top: 8px;
  text-align: left;
}
.lg-checklist .checkbox_tick_positive { border-color: var(--lg-border-cool, #E4EAF0); }
.lg-checklist input[type="checkbox"]:checked + .checkbox_tick_positive {
  background-color: var(--lg-orange, #F18904);
  border-color: var(--lg-orange, #F18904);
}
.lg-checklist input[type="checkbox"]:focus-visible + .checkbox_tick_positive {
  outline: 2px solid var(--lg-blue, #36688D);
  outline-offset: 2px;
}

/* ── Bouton : copie exacte de .lg-btn.lg-btn--primary ── */
.lg-checklist .sib-form-block__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--lg-sans, sans-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  padding: 16px 30px;
  min-height: 48px;              /* cible tactile confortable */
  border: 0;
  border-radius: 10px;
  background: var(--lg-orange, #F18904);
  color: var(--lg-ink, #1C2B36);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 32px -10px rgba(241, 137, 4, .55);
  transition: background .2s, transform .2s, box-shadow .2s, color .2s;
}
.lg-checklist .sib-form-block__button:hover {
  background: var(--lg-orange-dark, #D2780A);
  color: var(--lg-ink, #1C2B36);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(241, 137, 4, .7);
}
.lg-checklist .sib-form-block__button:focus-visible {
  outline: 3px solid var(--lg-blue, #36688D);
  outline-offset: 3px;
}
.lg-checklist .sib-form-block__button:active { transform: translateY(0); }

/* ── Messages d'erreur et de succès : arrondi et police alignés au site ── */
.lg-checklist .sib-form-message-panel {
  font-family: var(--lg-sans, sans-serif) !important;
  border-radius: 11px !important;
  max-width: none !important;
  margin: 0 0 14px !important;
}
.lg-checklist .entry__error {
  font-family: var(--lg-sans, sans-serif);
  font-size: 12.5px;
}

/* ── Le piège à robots doit rester invisible ── */
.lg-checklist .input--hidden { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ── Pages du parcours double opt-in (pastille d'icône) ── */
.lg-thanks__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--lg-orange-soft, #FFD9A8);
  color: var(--lg-orange-dark, #D2780A);
}
.lg-thanks__ic svg { width: 34px; height: 34px; }
.lg-thanks__ic--ok {
  background: rgba(67, 160, 71, .14);
  color: #2E7031;
}

/* ── Cartes de la landing (numéro de section + nombre de points) ── */
.lg-card__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--lg-blue, #36688D);
  color: #fff;
  font-family: var(--lg-head, sans-serif);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}
.lg-card__pts {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lg-orange-dark, #D2780A);
  margin: -6px 0 10px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .lg-checklist__inner { grid-template-columns: 1fr; padding: 26px 24px; }
  .lg-checklist__media { max-width: 240px; margin: 0 auto; }
}
@media (max-width: 768px) {
  /* 16px minimum : en dessous, iOS zoome à la mise au point */
  .lg-checklist input.input { font-size: 16px; padding: 13px 14px; }
  .lg-checklist .sib-form-block__button { width: 100%; padding: 14px 20px; }
}
@media (max-width: 400px) {
  .lg-checklist__inner { padding: 22px 16px; border-radius: 16px; }
  .lg-checklist__media { max-width: 200px; }
  .lg-checklist .lg-form-title p { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-checklist .sib-form-block__button { transition: none; }
  .lg-checklist .sib-form-block__button:hover { transform: none; }
}
