/* ─── Wrapper ─────────────────────────────────────────────────── */
.sf-contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
  font-family: inherit;
}

/* ─── Alertes ─────────────────────────────────────────────────── */
.sf-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: .95rem;
  line-height: 1.5;
}
.sf-alert__icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.sf-alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sf-alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── Lignes de formulaire ────────────────────────────────────── */
.sf-form { display: flex; flex-direction: column; gap: 1.25rem; }

.sf-form-row { display: flex; flex-direction: column; gap: .4rem; }

.sf-form-row label {
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
}
.sf-form-row label abbr {
  text-decoration: none;
  color: #dc2626;
  margin-left: 2px;
}

.sf-form-row input,
.sf-form-row textarea {
  padding: .6rem .85rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  color: #111827;
  width: 100%;
  box-sizing: border-box;
}
.sf-form-row input:focus,
.sf-form-row textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.sf-form-row input:invalid:not(:placeholder-shown),
.sf-form-row textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

.sf-form-row textarea { resize: vertical; min-height: 120px; }

/* ─── Captcha ─────────────────────────────────────────────────── */
.sf-form-row--captcha {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 1rem;
}
.sf-captcha-input { max-width: 100px; }

/* ─── Bouton ──────────────────────────────────────────────────── */
.sf-form-row--submit {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}
.sf-btn-envoyer {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.sf-btn-envoyer:hover  { background: #1d4ed8; }
.sf-btn-envoyer:active { transform: scale(.98); }
.sf-btn-envoyer svg    { width: 18px; height: 18px; }

.sf-required-hint { font-size: .82rem; color: #6b7280; }