/* Formulaire de candidature (FormSubmit) · 08/10/2026
   Styles des éléments ajoutés à la carte « Postuler en ligne » de la page Recrutement.
   Les champs texte et fichiers réutilisent les styles du site (.field, .field--file, .form__row). */

.apply-form { margin-top: 24px; }

/* Postes à cocher */
.apply-postes { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.apply-postes legend {
  padding: 0; margin-bottom: 12px;
  font-family: Rajdhani, sans-serif; font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light);
}
.apply-postes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apply-poste {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 2px;
  font-family: Rajdhani, sans-serif; font-weight: 600; font-size: .95rem; line-height: 1.25; color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.apply-poste:hover { border-color: var(--gold-light); }
.apply-poste input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--gold-light); }
.apply-poste:has(input:checked) { border-color: var(--gold-light); background: rgba(217, 175, 62, .1); }

/* Fichiers */
.apply-form .field--file { margin-bottom: 10px; }
.apply-form .field--file span { display: flex; align-items: center; gap: 2px; }
.apply-form .field--file span svg { flex: none; }
.apply__help { margin: 2px 0 18px; }

/* Consentement */
.apply-consent {
  display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; cursor: pointer;
  font-size: .82rem; line-height: 1.5; color: var(--ink-dim);
}
.apply-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold-light); }

.apply-form .form__error { margin: 0 0 14px; }
.apply__call { display: flex; width: 100%; margin-top: 12px; justify-content: center; }

/* Confirmation après envoi */
.apply__sent h3 { font-size: 1.3rem; }
.apply__sent p { color: var(--ink-dim); line-height: 1.7; margin: 12px 0 24px; font-size: .92rem; }

@media (max-width: 560px) {
  .apply { padding: 28px 20px; }
  .apply-postes__grid { grid-template-columns: 1fr; }
}

/* Messages de confirmation (devis et candidature) */
.form__success p, .apply__sent p { margin: 0 0 12px; }
.form__success .form__thanks, .apply__sent .form__thanks { color: var(--ink); font-weight: 600; margin-top: 14px; }
.form__success .form__signature, .apply__sent .form__signature {
  margin: 6px 0 24px; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light);
}
.on-light .form__success .form__signature { color: #8a6c1f; }
