/* Champ « ton @Instagram » devant le bouton principal (30/10/2026).
   Source unique : l'accueil la charge (/assets/accueil/cta-ig.css après promotion), et
   scripts/construire-chrome.mjs la recopie telle quelle dans chrome.css pour les pages générées
   (fin d'article du blog). Valeurs de repli dans chaque var() : la feuille marche aussi sur les
   pages qui n'ont pas les jetons de l'accueil. */
.cta-ig { display: grid; gap: 8px; width: 100%; max-width: 460px; margin: 0 auto; }
/* UN SEUL CONTENEUR pour le champ et le bouton (30/10/2026, retour d'Abraham, modèle Sweep It) :
   bord à peine visible, ombre douce et violette, coins larges, bouton aux coins assortis. */
.cta-ig__ligne {
  display: flex; align-items: center; gap: 0; padding: 6px 6px 6px 18px; box-sizing: border-box;
  background: #ffffff; border: 1px solid rgba(15, 15, 20, 0.07); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 15, 20, 0.05), 0 12px 32px -14px rgba(76, 29, 149, 0.32);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.cta-ig__ligne:focus-within { border-color: rgba(109, 43, 201, 0.35); box-shadow: 0 0 0 4px rgba(109, 43, 201, 0.10), 0 12px 32px -14px rgba(76, 29, 149, 0.32); }
.cta-ig__champ {
  flex: 1 1 auto; min-width: 0; min-height: 44px; box-sizing: border-box; margin: 0;
  padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--color-ink, #0f0f14);
  font-family: var(--font-body, "Geist", ui-sans-serif, system-ui, sans-serif); font-size: 16px; line-height: 1.2;
  -webkit-appearance: none; appearance: none;
}
.cta-ig__champ::placeholder { color: #a1a1aa; opacity: 1; }
.cta-ig__champ:focus { outline: none; }
.cta-ig__champ[aria-invalid="true"]::placeholder { color: #b42318; }
.cta-ig__ligne:has(.cta-ig__champ[aria-invalid="true"]) { border-color: #c62828; }
.cta-ig__ligne > button { flex: 0 0 auto; margin: 0; white-space: nowrap; min-height: 44px; border-radius: 12px; }
/* Le « @ » : gris, discret, suivi d'une petite barre fine centrée (pas de toute la hauteur). */
.cta-ig__arobase {
  flex: 0 0 auto; position: relative; display: flex; align-items: center;
  padding: 0 12px 0 0; color: #71717a; font-weight: 500; font-size: 16px; line-height: 1;
  font-family: var(--font-body, "Geist", ui-sans-serif, system-ui, sans-serif);
}
.cta-ig__arobase::after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 18px; transform: translateY(-50%); background: #e4e4e7; }
/* « Déjà client ? Se connecter », sous le hero seulement. */
.hero__connexion { margin: -12px 0 0; font-size: 13px; color: var(--color-muted, #5b5f6b); text-align: center; }
.hero__connexion a { color: var(--color-accent, #6d2bc9); font-weight: 600; text-decoration: none; }
.hero__connexion a:hover { text-decoration: underline; }
.cta-ig__erreur { margin: 0; font-size: 13px; line-height: 1.45; color: #b42318; font-weight: 500; text-align: center; }
.cta-ig__erreur:empty { display: none; }
/* Bande sombre du bas de l'accueil : l'erreur reste lisible. */
.close .cta-ig__erreur { color: #ffb4ab; }
/* Écran étroit : toujours un seul conteneur, le bouton passe sous le champ. */
@media (max-width: 440px) {
  .cta-ig__ligne { display: grid; grid-template-columns: auto 1fr; align-items: center; row-gap: 6px; padding: 6px 6px 6px 16px; }
  .cta-ig__ligne > button { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
