/* ======================================================================
   CAREER APPLY – formulaire de candidature
   ----------------------------------------------------------------------
   .career-apply            – section wrapper
   .career-apply__container – grille 2 colonnes
   .career-apply__content   – texte à gauche
   .career-apply__form      – formulaire à droite
   .form-row / .form-group  – lignes & champs
   .form-checkbox           – case à cocher (checkbox + label)
   .btn-form                – bouton principal
   ====================================================================== */

/* === SECTION GLOBALE ================================================== */
.career-apply {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

/* === CONTENEUR PRINCIPAL ============================================= */
.career-apply__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  max-width: 1400px;
  width: 100%;
}

/* === TEXTE À GAUCHE =================================================== */
.career-apply__content {
  flex: 1;
  max-width: 600px;
}

.career-apply__content h2 {
  margin: 0 0 20px;
  font-size: 26px;
  color: #2f5572;
}

.career-apply__content h2 span {
  display: block;
  font-weight: 400;
  color: #7da0bf;
}

.career-apply__content p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #444;
  text-align: justify;
}

/* === FORMULAIRE À DROITE ============================================= */
.career-apply__form {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- messages succès / erreur ---------------------------------------- */
.form-message {
  margin: 0 0 15px;
  padding: 10px;
  font-weight: 700;
  border-radius: 5px;
}

.form-message--success {
  background: #e6f7e6;
  color: #2e7d32;
}
.form-message--error {
  background: #fce4e4;
  color: #d32f2f;
}

/* --- lignes & champs -------------------------------------------------- */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #2f5572;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group textarea {
  resize: none;
  height: 100px;
}

/* --- case à cocher ---------------------------------------------------- */
.form-checkbox {
  flex-direction: row;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 15px;
}

.form-checkbox input {
  margin: 0;
}

.form-checkbox label {
  flex: 1;
  font-size: 14px;
  color: #2f5572;
  line-height: 1.4;
  white-space: normal;
}

/* --- champs obligatoires --------------------------------------------- */
.form-required-fields {
  margin: 10px 0;
  font-size: 14px;
  color: #d32f2f;
}

/* --- bouton ----------------------------------------------------------- */
.btn-form {
  display: block;
  width: 100%;
  max-width: 300px;
  margin-top: 10px;
  padding: 12px 18px;
  background: #69b3f0;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-form:hover {
  background: #527887;
}

/* --- anti-spam honeypot ---------------------------------------------- */
#hp_site {
  position: absolute !important;
  top: auto !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1024px) {
  .career-apply {
    padding: 40px;
  }
  .career-apply__container {
    gap: 20px;
    text-align: center;
  }

  .career-apply__content {
    text-align: center;
  }

  .career-apply__content p {
    text-align: center;
  }

  .career-apply__form {
    max-width: 800px;
    margin: auto;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  .btn-form {
    width: 100%;
  }
}

@media (max-width: 840px) {
  .form-checkbox {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .career-apply {
    padding: 30px 20px;
  }
  .career-apply__container {
    flex-direction: column;
  }

  .career-apply__content h2 {
    font-size: 22px;
  }
  .career-apply__form {
    padding: 25px;
  }
  .btn-form {
    width: auto;
    margin: 20px auto 0;
  }
}

@media (max-width: 600px) {
  .career-apply {
    padding: 20px;
  }

  .career-apply__content h2 {
    font-size: 20px;
  }
  .career-apply__form {
    padding: 20px;
  }
}
