/* =========================================================
   OFFRES D'EMPLOI : shortcodes [job_filters] et [job_cards] (offres-emploi.php)
   Déplacé depuis le CSS personnalisé Elementor de la page Recrutement.
   ========================================================= */

/* --- Filtres --- */

.job-filters {
  display: flex;
  padding: 1.5rem 0rem;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

.job-filters a {
  display: flex;
  padding: 1.25rem 2.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
  border: 2px solid #D2D2D2;
  color: #000;
  font-family: "Helvetica Neue";
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  transition: 200ms ease-out;
}

.job-filters a:hover {
  transform: scale(1.1);
  background-color: #E8F0FF;
  color: #000;
}

.job-filters a.active {
  background: var(--jaune);
  border: none;
}

.job-filters a.active:hover {
  background-color: var(--jaune-pale);
}

/* --- Cartes --- */

.job-cards-container {
  display: flex;
  padding: 1rem 0rem;
  gap: 2.5rem;
  align-self: stretch;
  flex-wrap: wrap;
}

.job-card {
  display: flex;
  max-width: 21rem;
  min-height: 23rem;
  height: 25rem;
  padding: 2rem 1.5rem;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border: 2px solid var(--jaune);
  background: #FFF;
}

.job-card .job-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
}

.job-card .job-title .job-type {
  display: flex;
  padding: 0.5rem;
  align-items: flex-start;
  background: #E8F0FF;
  color: #000;
  font-family: "Helvetica Neue";
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 127%;
}

.job-card .job-title h3 {
  color: #000;
  font-family: "Helvetica Neue";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 127%;
  margin: 0;
}

.job-card .job-title h3::before {
  content: "";
  margin: 0;
}

.job-card .job-title .job-org {
  display: flex;
  padding: 0.5rem;
  align-items: flex-start;
  gap: 0.5rem;
  align-self: stretch;
  background: var(--jaune);
  color: #000;
  font-family: "Helvetica Neue";
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 127%;
}

.job-card .job-infos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  align-self: stretch;
}

.job-card .job-infos .job-link {
  display: flex;
  min-width: 12.5rem;
  padding: 1.125rem 1.5rem;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  align-self: stretch;
  background: var(--bleu);
  color: #FFF;
  text-align: center;
  font-family: "Helvetica Neue";
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  transition: transform 200ms ease-out;
}

.job-card .job-infos .job-link:hover {
  background: var(--bleu-fonce);
  transform: scale(1.1);
}

.no-jobs {
  display: flex;
  flex-direction: column;
  height: 30rem;
}

/* --- Tablette --- */

@media (max-width: 1024px) {
  .job-filters {
    overflow-x: auto;
  }

  .job-filters a {
    min-width: fit-content;
  }

  .job-cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .job-card {
    min-width: 40vw;
  }
}
