/*********** CANDIDATURE SPONTANÉE ***********/

#candidature-spontanee {
  position: relative;
  padding: 2rem 0;
}

/* Image décorative qui chevauche le formulaire */
.cs-image-wrapper {
  position: absolute;
  top: -60px;
  /* Ajuster selon l'image */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.cs-image-deco {
  max-width: 200px;
  /* Ajuster selon l'image */
  display: block;
}

/* Conteneur principal */
.cs-conteneur {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  background-color: #0a5adb;
  border-radius: 20px;
  box-shadow: 4px 6px 24px rgba(0, 0, 0, 0.1);
  padding: 60px;
}

.cs-col-desc,
.cs-col-desc h2,
.cs-col-desc h5,
.cs-col-desc p {
  color: white;
}

/* Colonnes */
.cs-col-desc {
  flex: 1;
}

.cs-col-form {
  flex: 2;
}

/* Lignes du formulaire */
.cs-ligne {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.cs-champ {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cs-champ-full {
  flex: 1 1 100%;
}

/* Inputs */
.cs-conteneur input[type="text"],
.cs-conteneur input[type="email"],
.cs-conteneur input[type="tel"],
.cs-conteneur textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.cs-conteneur input[type="text"]:focus,
.cs-conteneur input[type="email"]:focus,
.cs-conteneur input[type="tel"]:focus,
.cs-conteneur textarea:focus {
  outline: none;
  border-color: #0a5adb;
}

.cs-conteneur textarea {
  min-height: 160px;
  resize: vertical;
}

/* Ligne RGPD */
.cs-ligne-rgpd {
  align-items: flex-start;
  gap: 12px;
}

.cs-ligne-rgpd input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.cs-ligne-rgpd label {
  font-size: 14px;
  color: white;
  cursor: pointer;
}

/* Ligne actions */
.cs-ligne-actions {
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Bouton importer CV */
.cs-bouton-cv {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0a5adb;
  border: 1px solid white;
  color: white;
  border-radius: 75px;
  padding: 10px 20px;
  font-size: 15px;
  transition: background-color 0.2s;
}

.cs-bouton-cv:hover {
  background-color: #0a2c7a;
}

/* Bouton envoyer */
.cs-bouton-envoyer {
  cursor: pointer;
  background-color: white;
  color: #0a5adb;
  border: none;
  border-radius: 75px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.cs-bouton-envoyer:hover {
  background-color: #0a2c7a;
  color: white;
}

/* Mentions légales */
.cs-mentions-legales {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  line-height: 1.5;
}

.cs-mentions-legales a {
  color: white;
  text-decoration: underline;
}

/* Messages succès / erreur */
.cs-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.cs-message-ok {
  background-color: #e6f4ea;
  color: #1a5c2a;
  border: 1px solid #52d59d;
}

.cs-message-erreur {
  background-color: #fdecea;
  color: #8b1a1a;
  border: 1px solid #f77129;
}

/*********** RESPONSIVE ***********/

@media (max-width: 900px) {
  .cs-conteneur {
    flex-direction: column;
    padding: 40px 30px;
    gap: 40px;
  }

  .cs-col-desc,
  .cs-col-form {
    flex: unset;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .cs-ligne {
    flex-direction: column;
    gap: 14px;
  }

  .cs-ligne-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cs-bouton-cv,
  .cs-bouton-envoyer {
    text-align: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  .cs-image-deco {
    max-width: 120px;
  }
}