/* =========================================================
   VOCCA x ASHBY | Job board theme | v2.0 (Option A)
   Page liste : lignes epurees sur Soft Linen
   Page offre : editorial, tout sur Soft Linen
   Fonts : Crimson Pro (titres) + Inter (texte)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600&family=Inter:wght@400;500;600&display=swap");


/* ---------- 1. Tokens ---------- */
:root {
  /* Palette Vocca (brand guidelines) */
  --vocca-linen: #EDEBE5;
  --vocca-beige: #F4F2EF;
  --vocca-sky: #DBE4EA;
  --vocca-pulse: #3568F6;
  --vocca-navy: #0B355F;
  --vocca-ink: #111011;
  --vocca-white: #FFFFFF;

  /* Derives techniques (hors charte) */
  --vocca-pulse-strong: #2A55D1; /* hover + petits textes bleus sur fond beige (contraste AA) */
  --vocca-muted: #56687A;
  --vocca-line: rgba(11, 53, 95, 0.12);
  --vocca-ring: rgba(53, 104, 246, 0.18);

  --vocca-font-display: "Crimson Pro", Georgia, "Times New Roman", serif;
  --vocca-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Variables Ashby (reporter aussi #0B355F et #3568F6 dans le theme admin) */
  --colorAppBackground: #EDEBE5;
  --colorPrimary900: #0B355F;
  --colorPrimary600: #3568F6;
  --widthMaxContent: 860px;
  --widthMaxJobBoard: 860px;
  --widthMaxSubscriptionPreferences: 600px;
  --borderRadiusContainer: 18px;
  --borderRadiusControl: 10px;
  --borderRadiusButton: 999px;
  --fontFamily: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}


/* ---------- 2. Base + "The Wire" en fond ---------- */
body {
  background-color: var(--vocca-linen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 560' fill='none'%3E%3Cpath d='M640 18C452 44 262 128 190 246C118 364 176 470 360 512C470 537 566 534 640 526' stroke='%23CFCBC1' stroke-width='1.3'/%3E%3Cpath d='M640 150C498 184 350 236 268 318C214 372 214 430 262 470' stroke='%23CFCBC1' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top -30px right -140px;
  background-size: 640px auto;
  color: var(--vocca-ink);
  font-family: var(--vocca-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--vocca-ring);
}


/* ---------- 3. Page liste : titre + filtres ---------- */
.ashby-job-board-heading {
  margin: 48px 0 24px;
  font-family: var(--vocca-font-display);
  font-size: 46px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--vocca-navy);
}

.ashby-job-board-heading-count {
  font-family: var(--vocca-font-display);
  font-weight: 400;
  color: var(--vocca-pulse);
}

.ashby-job-board-filters-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--vocca-muted);
}

.ashby-job-board-reset-filters-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--vocca-pulse-strong);
  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(--vocca-white);
  border: 1px solid var(--vocca-line);
  border-radius: 10px;
  color: var(--vocca-navy);
  font-family: var(--vocca-font-body);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ashby-job-board-filter:hover {
  border-color: rgba(53, 104, 246, 0.5);
}

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


/* ---------- 4. Page liste : departements / equipes ---------- */
/* Departement parent (ex : "Product & Engineering") */
.ashby-department-heading,
.ashby-job-posting-brief-department-heading {
  margin-top: 44px;
  font-family: var(--vocca-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--vocca-pulse-strong);
}

/* Equipe (ex : "Engineering", "Operations") */
.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading-level {
  margin: 48px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vocca-line);
  font-family: var(--vocca-font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--vocca-navy);
}

/* 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: 4px;
}


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

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

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

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

.ashby-job-posting-brief-title {
  margin: 0 0 4px;
  font-family: var(--vocca-font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vocca-navy);
  transition: color 0.18s ease;
}

.ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
  color: var(--vocca-pulse);
}

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


/* ---------- 6. Page offre : en-tete + colonne d'infos ---------- */
.ashby-job-board-back-to-all-jobs-button {
  font-size: 14px;
  font-weight: 600;
  color: var(--vocca-pulse-strong);
}

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

.ashby-job-posting-heading {
  max-width: 24ch;
  font-family: var(--vocca-font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--vocca-navy);
}

/* Colonne d'infos : sans couleur de fond, reste visible au scroll */
.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(--vocca-line);
  border-radius: 0;
  color: var(--vocca-navy);
}

/* Fix : le departement de la colonne heritait 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(--vocca-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--vocca-navy);
}


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

.ashby-job-posting-right-pane-overview-tab,
.ashby-job-posting-right-pane-application-tab {
  font-family: var(--vocca-font-body);
  font-weight: 600;
  color: var(--vocca-muted);
}

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

.ashby-job-posting-right-pane-tab-slider {
  height: 2px;
  background-color: var(--vocca-navy);
}

/* Contenu pose directement sur le fond, largeur de lecture limitee */
.ashby-job-posting-description-container {
  max-width: 660px;
  padding: 28px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Texte de l'offre : navy pour les titres, noir pour le reste */
.ashby-job-posting-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--vocca-ink);
}

.ashby-job-posting-description h1,
.ashby-job-posting-description h2,
.ashby-job-posting-description h3 {
  margin: 1.8em 0 0.5em;
  font-family: var(--vocca-font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--vocca-navy);
}

.ashby-job-posting-description h1 { font-size: 32px; }
.ashby-job-posting-description h2 { font-size: 28px; }
.ashby-job-posting-description h3 { font-size: 24px; }

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

.ashby-job-posting-description strong,
.ashby-job-posting-description b {
  font-weight: 600;
  color: inherit;
}

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

.ashby-job-posting-description a:hover {
  color: var(--vocca-pulse-strong);
}

.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(--vocca-navy);
}


/* ---------- 8. Formulaire : structure ---------- */
.ashby-application-form-container {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ashby-application-form-section-header-title {
  font-family: var(--vocca-font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--vocca-navy);
}

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

.ashby-application-form-question-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--vocca-navy);
}

/* Autofill CV : carte blanche sur le fond beige */
.ashby-application-form-autofill-input-root {
  background: var(--vocca-white);
  border: 1px solid var(--vocca-line);
  border-radius: 16px;
}

.ashby-application-form-autofill-input-title {
  font-family: var(--vocca-font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--vocca-navy);
}

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

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


/* ---------- 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(--vocca-white);
  border: 1px solid var(--vocca-line);
  border-radius: 10px;
  font-family: var(--vocca-font-body);
  font-size: 15px;
  color: var(--vocca-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 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(53, 104, 246, 0.45);
}

.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;
  background-color: var(--vocca-white);
  border-color: var(--vocca-pulse);
  box-shadow: 0 0 0 3px var(--vocca-ring);
}

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

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

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

/* Upload CV */
.ashby-application-form-input-file-dropzone {
  background: var(--vocca-white);
  border: 1.5px dashed rgba(53, 104, 246, 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(53, 104, 246, 0.04);
  border-color: var(--vocca-pulse);
}

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

.ashby-application-form-input-file-dropzone-upload {
  font-weight: 600;
  color: var(--vocca-pulse);
}

.ashby-application-form-input-file-item {
  background: var(--vocca-beige);
  border-radius: 10px;
  color: var(--vocca-navy);
}

/* 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(--vocca-white);
  border: 1px solid var(--vocca-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(53, 104, 246, 0.06);
  border-color: var(--vocca-pulse);
}

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

/* Oui / Non */
.ashby-application-form-input-yesno-option {
  background: var(--vocca-white);
  border: 1px solid var(--vocca-line);
  border-radius: 999px;
  font-weight: 500;
  color: var(--vocca-navy);
  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(--vocca-pulse);
  border-color: var(--vocca-pulse);
  color: var(--vocca-white);
}


/* ---------- 10. Boutons + etats ---------- */
.ashby-application-form-submit-button {
  min-height: 50px;
  padding: 14px 32px;
  background-color: var(--vocca-pulse);
  border: none;
  border-radius: 999px;
  box-shadow: none;
  font-family: var(--vocca-font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--vocca-white);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

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

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

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

.ashby-application-form-success-container {
  padding: 32px;
  background: var(--vocca-white);
  border: 1px solid var(--vocca-line);
  border-radius: 20px;
  color: var(--vocca-navy);
}

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

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

.ashby-survey-form-container {
  padding: 24px;
  background: var(--vocca-white);
  border: 1px solid var(--vocca-line);
  border-radius: 20px;
}


/* ---------- 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(--vocca-line);
  }
}

@media (max-width: 640px) {
  body {
    background-position: top -20px right -120px;
    background-size: 380px auto;
  }

  .ashby-job-board-heading {
    margin-top: 32px;
    font-size: 36px;
  }

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

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

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


/* ---------- 12. Accessibilite : mouvement reduit ---------- */
/* Cible uniquement nos animations, pour ne pas casser celles d'Ashby (ex : onglets) */
@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;
  }
}
