/* ── Formulaire Brevo — habillage maison ──
   Le code d'intégration collé dans le back-office est dépouillé de ses
   styles par fc_brevo_embed() ; ce fichier rhabille le formulaire aux
   couleurs du site. Chargé sur Ressources et Inscription. Les sélecteurs
   couvrent les deux versions d'embed Brevo (HTML complet : classes
   sib-* / entry__* ; HTML simple : balises nues). */

.fc-brevo { max-width: 100%; }
.fc-brevo form { margin: 0; }

/* Éléments que le CSS Brevo masque d'habitude, à re-masquer puisqu'on
   retire son CSS : le champ anti-spam (honeypot, le remplir fait jeter
   l'inscription par Brevo) et l'icône de chargement du bouton. */
.fc-brevo .input--hidden { display: none !important; }
.fc-brevo .sib-hide-loader-icon { display: none; }

.fc-brevo #sib-container,
.fc-brevo .sib-form,
.fc-brevo .sib-form-container {
  max-width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
  direction: ltr;
}

.fc-brevo .sib-form-block { padding: 0 0 16px; }

/* Labels */
.fc-brevo .entry__label,
.fc-brevo label:not(.entry__choice):not(.entry__error) {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Champs */
.fc-brevo .input,
.fc-brevo input[type="text"],
.fc-brevo input[type="email"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s;
}
.fc-brevo .input:focus,
.fc-brevo input[type="text"]:focus,
.fc-brevo input[type="email"]:focus {
  outline: none;
  border-color: var(--green-dark);
}
.fc-brevo .input::placeholder,
.fc-brevo input[type="text"]::placeholder,
.fc-brevo input[type="email"]::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Erreurs de champ et mentions */
.fc-brevo .entry__error {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #B03A2E;
}
.fc-brevo .entry__error:empty { display: none; }
.fc-brevo .entry__specification {
  margin-top: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Opt-in RGPD (case à cocher) */
.fc-brevo .entry__choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.55;
  color: var(--text-muted);
}
.fc-brevo .checkbox { display: none; } /* case décorative Brevo, remplacée par la native */
.fc-brevo input[type="checkbox"],
.fc-brevo .input_replaced {
  position: static;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  opacity: 1;
  accent-color: var(--green-dark);
}

/* Bouton */
.fc-brevo .sib-form-block__button,
.fc-brevo button,
.fc-brevo input[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 10px;
  background: var(--salmon);
  color: var(--green-dark);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.fc-brevo .sib-form-block__button:hover,
.fc-brevo button:hover,
.fc-brevo input[type="submit"]:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.fc-brevo .icon.clickable__icon { width: 18px; height: 18px; fill: currentColor; }

/* Panneaux de message (succès / erreur) — masqués tant que Brevo
   ne les active pas, comme le fait son CSS d'origine. */
.fc-brevo .sib-form-message-panel {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.fc-brevo .sib-form-message-panel--active { display: block; }
.fc-brevo #error-message {
  background: #FDECEA;
  border: 1px solid #F0C6C0;
  color: #B03A2E;
}
.fc-brevo #success-message {
  background: rgba(11, 61, 46, 0.06);
  border: 1px solid rgba(11, 61, 46, 0.18);
  color: var(--green-dark);
}
.fc-brevo .sib-form-message-panel svg { display: none; }
