/* V6.5-fix-62 — Module Candidature spontanée (front portail).
   Variables canoniques fix-48. Scope strict via .alm-candspont-* */

.alm-candspont { background: #fff; }

/* Honeypot : invisible aux humains, accessible aux bots crawlers */
.alm-candspont-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alm-candspont-form-section {
  padding-block: clamp(40px, 6vw, 72px);
  background: var(--alm-gray-50, #FBFAF7);
}

.alm-candspont-form__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--alm-blue);
  margin: 0 0 12px;
}
.alm-candspont-form__intro {
  color: var(--alm-gray-700);
  font-size: 0.9375rem;
  margin: 0 0 28px;
}

.alm-candspont-form {
  background: #fff;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--alm-gray-200);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 72, 153, 0.04);
}

.alm-candspont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
@media (max-width: 640px) { .alm-candspont-grid { grid-template-columns: 1fr; } }

.alm-candspont-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.alm-candspont-field--full { grid-column: 1 / -1; }

.alm-candspont-field label,
.alm-candspont-field legend {
  font-weight: 600;
  color: var(--alm-blue);
  font-size: 0.9375rem;
  font-family: 'Manrope', sans-serif;
}

.alm-candspont-hint {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--alm-gray-700);
}

.alm-candspont-field input[type=text],
.alm-candspont-field input[type=email],
.alm-candspont-field input[type=tel],
.alm-candspont-field select,
.alm-candspont-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--alm-gray-200);
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--alm-gray-900);
  background: #fff;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.alm-candspont-field input:focus,
.alm-candspont-field select:focus,
.alm-candspont-field textarea:focus {
  outline: none;
  border-color: var(--alm-blue);
  box-shadow: 0 0 0 3px rgba(0, 72, 153, 0.12);
}

.alm-candspont-field input[type=file] {
  padding: 9px 12px;
  font-size: 0.875rem;
}

.alm-candspont-field--radios {
  border: none;
  padding: 0;
}
.alm-candspont-field--radios > legend { padding: 0; margin-bottom: 8px; }
.alm-candspont-field--radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alm-candspont-radio {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  color: var(--alm-gray-900) !important;
  margin-right: 16px;
  cursor: pointer;
}
.alm-candspont-field--radios > label,
.alm-candspont-field--radios > .alm-candspont-radio { display: inline-flex; }
.alm-candspont-radio input[type=radio] {
  accent-color: var(--alm-orange);
  cursor: pointer;
}

.alm-candspont-count {
  align-self: flex-end;
  font-size: 0.8125rem;
  color: var(--alm-gray-500);
}

.alm-candspont-consent {
  background: var(--alm-gray-50, #FBFAF7);
  padding: 14px 16px;
  border-radius: 6px;
  border-left: 4px solid var(--alm-orange);
}
.alm-candspont-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  color: var(--alm-gray-900) !important;
  line-height: 1.5;
  font-size: 0.875rem;
  cursor: pointer;
}
.alm-candspont-consent input[type=checkbox] { margin-top: 3px; accent-color: var(--alm-orange); }
.alm-candspont-consent a { color: var(--alm-blue); text-decoration: underline; }

.alm-candspont-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}
.alm-candspont-submit {
  font-size: 1rem;
  padding: 12px 28px;
}
.alm-candspont-submit__spinner { margin-left: 8px; }

#alm-candspont-feedback {
  margin-bottom: 20px;
}
#alm-candspont-feedback:not(:empty) {
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 500;
}
#alm-candspont-feedback.is-success {
  background: rgba(46, 184, 90, 0.1);
  color: #1e7e34;
  border-left: 4px solid #28a745;
}
#alm-candspont-feedback.is-error {
  background: rgba(217, 83, 79, 0.1);
  color: #b32d2e;
  border-left: 4px solid #d9534f;
}

/* Validation errors */
.alm-candspont-field.has-error input,
.alm-candspont-field.has-error select,
.alm-candspont-field.has-error textarea {
  border-color: #d9534f;
  background: rgba(217, 83, 79, 0.03);
}
.alm-candspont-field__error {
  color: #b32d2e;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Trust section */
.alm-candspont-trust {
  padding-block: clamp(32px, 4vw, 56px);
}
.alm-candspont-trust h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--alm-blue);
  margin: 0 0 10px;
}
.alm-candspont-trust p {
  color: var(--alm-gray-700);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}
