/* =========================================================
   SOLTEO x ASHBY | Job board theme | v1
   Page liste : lignes epurees sur fond blanc
   Page offre : mise en page editoriale, filets fins
   Fonts : Lexend (titres et textes) + IBM Plex Mono (sur-titres)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");


/* ---------- 1. Tokens ---------- */
:root {
  /* Palette Solteo (charte graphique) */
  --solteo-white: #FFFFFF;
  --solteo-ink: #06050B;      /* noir de marque, texte et boutons */
  --solteo-grey-900: #181818;
  --solteo-grey-700: #343434;
  --solteo-blue: #0374F2;     /* accent, par touche */
  --solteo-yellow: #FBFF4B;   /* accent, par touche */

  /* Derives techniques (hors charte) */
  --solteo-blue-text: #0A5FC4; /* bleu assombri pour les petits textes, contraste AA */
  --solteo-soft: #F6F6F5;      /* fond de bloc tres clair */
  --solteo-muted: #5E5E5E;     /* texte secondaire */
  --solteo-line: rgba(6, 5, 11, 0.12);
  --solteo-ring: rgba(3, 116, 242, 0.18);

  --solteo-font: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --solteo-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Variables Ashby (reporter aussi #06050B et #0374F2 dans le theme admin) */
  --colorAppBackground: #FFFFFF;
  --colorPrimary900: #06050B;
  --colorPrimary600: #0374F2;
  --widthMaxContent: 880px;
  --widthMaxJobBoard: 880px;
  --widthMaxSubscriptionPreferences: 600px;
  --borderRadiusContainer: 16px;
  --borderRadiusControl: 10px;
  --borderRadiusButton: 999px;
  --fontFamily: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}


/* ---------- 2. Base ---------- */
body {
  background-color: var(--solteo-white);
  color: var(--solteo-grey-900);
  font-family: var(--solteo-font);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--solteo-yellow);
  color: var(--solteo-ink);
}


/* ---------- 3. Page liste : titre + filtres ---------- */
.ashby-job-board-heading {
  margin: 48px 0 24px;
  font-family: var(--solteo-font);
  font-size: 46px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--solteo-ink);
  /* Charte : titres en minuscules. Supprimer cette ligne pour revenir a la casse d'Ashby. */
  text-transform: lowercase;
}

.ashby-job-board-heading-count {
  font-family: var(--solteo-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--solteo-blue-text);
}

.ashby-job-board-filters-label,
.ashby-job-board-reset-filters-label {
  font-family: var(--solteo-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--solteo-muted);
}

.ashby-job-board-reset-filters-label {
  color: var(--solteo-blue-text);
  cursor: pointer;
}

.ashby-job-board-reset-filters-label:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ashby-job-board-filter {
  min-height: 44px;
  background-color: var(--solteo-white);
  border: 1px solid var(--solteo-line);
  border-radius: 10px;
  color: var(--solteo-ink);
  font-family: var(--solteo-font);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ashby-job-board-filter:hover {
  border-color: rgba(6, 5, 11, 0.35);
}

.ashby-job-board-filter:focus,
.ashby-job-board-filter:focus-within {
  outline: none;
  border-color: var(--solteo-blue);
  box-shadow: 0 0 0 3px var(--solteo-ring);
}


/* ---------- 4. Page liste : departements / equipes ---------- */
/* Departement parent : sur-titre en mono, comme dans la charte */
.ashby-department-heading,
.ashby-job-posting-brief-department-heading {
  margin-top: 44px;
  font-family: var(--solteo-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--solteo-muted);
}

/* Equipe */
.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
  margin: 48px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--solteo-line);
  font-family: var(--solteo-font);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--solteo-ink);
  /* Charte : titres en minuscules. Supprimer cette ligne pour revenir a la casse d'Ashby. */
  text-transform: lowercase;
}

/* Equipe precedee d'un parent : on la colle au parent */
.ashby-department-heading + .ashby-department-heading-level,
.ashby-job-posting-brief-department-heading + .ashby-job-posting-brief-department-heading-level {
  margin-top: 6px;
}


/* ---------- 5. Page liste : lignes de poste ---------- */
.ashby-job-posting-brief {
  position: relative;
  margin-bottom: 2px;
  padding: 18px 20px 18px 24px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

/* Barre jaune a gauche, visible au survol */
.ashby-job-posting-brief::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 10px;
  width: 4px;
  border-radius: 4px;
  background: var(--solteo-yellow);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ashby-job-posting-brief:hover {
  background-color: var(--solteo-soft);
  border-color: var(--solteo-line);
}

.ashby-job-posting-brief:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.ashby-job-posting-brief-title {
  margin: 0 0 4px;
  font-family: var(--solteo-font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--solteo-ink);
  transition: color 0.18s ease;
}

.ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
  color: var(--solteo-blue-text);
}

.ashby-job-posting-brief-details {
  font-size: 14px;
  line-height: 1.5;
  color: var(--solteo-muted);
}


/* ---------- 6. Page offre : en-tete + colonne d'infos ---------- */
.ashby-job-board-back-to-all-jobs-button {
  font-family: var(--solteo-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--solteo-muted);
}

.ashby-job-board-back-to-all-jobs-button:hover {
  color: var(--solteo-ink);
}

.ashby-job-posting-heading {
  max-width: 24ch;
  font-family: var(--solteo-font);
  font-size: 44px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--solteo-ink);
}

/* Colonne d'infos : filet vertical, pas de bloc de couleur */
.ashby-job-posting-left-pane {
  position: sticky;
  top: 32px;
  align-self: flex-start;
  margin-right: 36px;
  padding: 4px 28px 8px 0;
  background: transparent;
  border-right: 1px solid var(--solteo-line);
  border-radius: 0;
  color: var(--solteo-ink);
  font-size: 15px;
}

/* Fix : le departement du panneau gauche herite du style "titre d'equipe" */
.ashby-job-posting-left-pane .ashby-department-heading,
.ashby-job-posting-left-pane .ashby-department-heading-level,
.ashby-job-posting-left-pane .ashby-job-posting-brief-department-heading,
.ashby-job-posting-left-pane .ashby-job-posting-brief-department-heading-level {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  font-family: var(--solteo-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-transform: none;
  color: var(--solteo-ink);
}


/* ---------- 7. Page offre : onglets + contenu ---------- */
.ashby-job-posting-right-pane,
.ashby-job-posting-description-container,
.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  background: transparent;
  box-shadow: none;
}

.ashby-job-posting-description-container {
  max-width: 680px;
  padding: 28px 0 0;
}

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  font-family: var(--solteo-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--solteo-muted);
}

.ashby-job-posting-right-pane-overview-tab[aria-selected="true"],
.ashby-job-posting-right-pane-application-tab[aria-selected="true"] {
  color: var(--solteo-ink);
}

/* Soulignement de l'onglet actif : touche de jaune */
.ashby-job-posting-right-pane-tab-slider {
  height: 3px;
  border-radius: 3px;
  background-color: var(--solteo-yellow);
}

.ashby-job-posting-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--solteo-grey-700);
}

.ashby-job-posting-description h1,
.ashby-job-posting-description h2,
.ashby-job-posting-description h3 {
  margin: 1.8em 0 0.5em;
  font-family: var(--solteo-font);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--solteo-ink);
}

.ashby-job-posting-description h1 { font-size: 30px; }
.ashby-job-posting-description h2 { font-size: 26px; }
.ashby-job-posting-description h3 { font-size: 22px; }

.ashby-job-posting-description > :first-child { margin-top: 0; }

.ashby-job-posting-description strong,
.ashby-job-posting-description b {
  font-weight: 500;
  color: var(--solteo-ink);
}

.ashby-job-posting-description a {
  color: var(--solteo-blue-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ashby-job-posting-description a:hover {
  color: var(--solteo-ink);
}

.ashby-job-posting-description ul,
.ashby-job-posting-description ol {
  padding-left: 1.2em;
}

.ashby-job-posting-description li {
  margin-bottom: 0.35em;
}

.ashby-job-posting-description li::marker {
  color: var(--solteo-blue);
}


/* ---------- 8. Formulaire : structure ---------- */
.ashby-application-form-container {
  padding: 32px;
  background: var(--solteo-soft);
  border: 1px solid var(--solteo-line);
  border-radius: 16px;
}

.ashby-application-form-section-header-title {
  font-family: var(--solteo-font);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--solteo-ink);
}

.ashby-application-form-section-header-description,
.ashby-application-form-question-description {
  font-size: 13px;
  line-height: 1.5;
  color: var(--solteo-muted);
}

.ashby-application-form-question-title {
  font-family: var(--solteo-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--solteo-ink);
}

/* Autofill CV */
.ashby-application-form-autofill-input-root {
  background: var(--solteo-white);
  border: 1px solid var(--solteo-line);
  border-radius: 16px;
}

.ashby-application-form-autofill-input-title {
  font-family: var(--solteo-font);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--solteo-ink);
}

.ashby-application-form-autofill-input-description {
  color: var(--solteo-muted);
}

.ashby-application-form-autofill-input-icon {
  color: var(--solteo-blue);
}


/* ---------- 9. Formulaire : champs ---------- */
.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-dropdown,
.ashby-application-form-input-date,
.ashby-application-form-input-autocomplete {
  background-color: var(--solteo-white);
  border: 1px solid var(--solteo-line);
  border-radius: 10px;
  font-family: var(--solteo-font);
  font-size: 15px;
  color: var(--solteo-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ashby-application-form-input-text:hover,
.ashby-application-form-input-textarea:hover,
.ashby-application-form-input-dropdown:hover,
.ashby-application-form-input-date:hover,
.ashby-application-form-input-autocomplete:hover {
  border-color: rgba(6, 5, 11, 0.35);
}

.ashby-application-form-input-text:focus,
.ashby-application-form-input-textarea:focus,
.ashby-application-form-input-dropdown:focus-within,
.ashby-application-form-input-date:focus-within,
.ashby-application-form-input-autocomplete:focus-within,
.ashby-application-form-input-autocomplete[aria-expanded="true"] {
  outline: none;
  border-color: var(--solteo-blue);
  box-shadow: 0 0 0 3px var(--solteo-ring);
}

.ashby-application-form-input-dropdown-icon {
  color: var(--solteo-ink);
}

.ashby-application-form-input-autocomplete-popup,
.ashby-application-form-input-date-popup {
  background: var(--solteo-white);
  border: 1px solid var(--solteo-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(6, 5, 11, 0.25);
}

.ashby-application-form-input-autocomplete-popup-result[aria-selected="true"] {
  background: var(--solteo-soft);
  color: var(--solteo-ink);
}

/* Upload CV */
.ashby-application-form-input-file-dropzone {
  background: var(--solteo-white);
  border: 1.5px dashed rgba(3, 116, 242, 0.45);
  border-radius: 14px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ashby-application-form-input-file-dropzone:hover {
  background: rgba(3, 116, 242, 0.04);
  border-color: var(--solteo-blue);
}

.ashby-application-form-input-file-dropzone-instructions {
  color: var(--solteo-muted);
}

.ashby-application-form-input-file-dropzone-upload {
  font-weight: 500;
  color: var(--solteo-blue-text);
}

.ashby-application-form-input-file-item {
  background: var(--solteo-white);
  border: 1px solid var(--solteo-line);
  border-radius: 10px;
  color: var(--solteo-ink);
}

/* Radio / checkbox */
.ashby-application-form-input-radio-group-option,
.ashby-application-form-input-checkbox-group-option {
  margin-bottom: 8px;
  padding: 10px 14px;
  background-color: var(--solteo-white);
  border: 1px solid var(--solteo-line);
  border-radius: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ashby-application-form-input-radio-group-option[data-checked],
.ashby-application-form-input-checkbox-group-option[data-checked] {
  background-color: rgba(3, 116, 242, 0.05);
  border-color: var(--solteo-blue);
}

.ashby-application-form-input-radio-group-option-radio,
.ashby-application-form-input-checkbox-group-option-checkbox {
  accent-color: var(--solteo-blue);
}

.ashby-application-form-input-radio-group-option-label,
.ashby-application-form-input-checkbox-group-option-label {
  font-size: 15px;
  color: var(--solteo-grey-700);
}

/* Oui / Non */
.ashby-application-form-input-yesno-option {
  background: var(--solteo-white);
  border: 1px solid var(--solteo-line);
  border-radius: 999px;
  font-weight: 400;
  color: var(--solteo-ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ashby-application-form-input-yesno-option[aria-pressed="true"] {
  background: var(--solteo-ink);
  border-color: var(--solteo-ink);
  color: var(--solteo-white);
}


/* ---------- 10. Boutons + etats ---------- */
.ashby-application-form-submit-button {
  min-height: 50px;
  padding: 14px 32px;
  background-color: var(--solteo-ink);
  border: none;
  border-radius: 999px;
  box-shadow: none;
  font-family: var(--solteo-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--solteo-white);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.ashby-application-form-submit-button:hover {
  background-color: var(--solteo-blue);
  transform: translateY(-1px);
}

.ashby-application-form-submit-button:focus-visible {
  outline: 3px solid var(--solteo-ring);
  outline-offset: 2px;
}

.ashby-application-form-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ashby-application-form-success-container {
  padding: 32px;
  background: var(--solteo-soft);
  border: 1px solid var(--solteo-line);
  border-radius: 16px;
  color: var(--solteo-ink);
}

.ashby-application-form-failure-container,
.ashby-application-form-blocked-application-container {
  padding: 16px 20px;
  background: #FBECEA;
  border-radius: 12px;
  color: #7A2320;
}

.ashby-application-form-texting-consent-description,
.ashby-application-blocking-disclosure {
  font-size: 12px;
  color: var(--solteo-muted);
}

.ashby-survey-form-container {
  padding: 24px;
  background: var(--solteo-soft);
  border: 1px solid var(--solteo-line);
  border-radius: 16px;
}


/* ---------- 11. Responsive ---------- */
@media (max-width: 760px) {
  .ashby-job-posting-left-pane {
    position: static;
    margin-right: 0;
    margin-bottom: 20px;
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--solteo-line);
  }

  .ashby-job-posting-description-container {
    padding-top: 24px;
  }

  .ashby-application-form-container {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .ashby-job-board-heading {
    margin-top: 32px;
    font-size: 34px;
  }

  .ashby-department-heading-level,
  .ashby-job-posting-brief-department-heading-level {
    font-size: 26px;
  }

  .ashby-job-posting-brief {
    padding: 14px 16px 14px 20px;
  }

  .ashby-job-posting-heading {
    font-size: 32px;
  }
}


/* ---------- 12. Accessibilite : mouvement reduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .ashby-job-posting-brief,
  .ashby-job-posting-brief::before,
  .ashby-job-posting-brief-title,
  .ashby-job-board-filter,
  .ashby-application-form-input-text,
  .ashby-application-form-input-textarea,
  .ashby-application-form-input-dropdown,
  .ashby-application-form-input-date,
  .ashby-application-form-input-autocomplete,
  .ashby-application-form-input-file-dropzone,
  .ashby-application-form-input-radio-group-option,
  .ashby-application-form-input-checkbox-group-option,
  .ashby-application-form-input-yesno-option,
  .ashby-application-form-submit-button {
    transition: none;
  }

  .ashby-job-posting-brief::before,
  .ashby-job-posting-brief:hover::before,
  .ashby-application-form-submit-button:hover {
    transform: none;
  }
}
