/* ==============================
   AGV - Fiches métiers
   ============================== */

.agv-fiches-metiers {
  color: #002b55;
}

.agv-fiches-metiers.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Filtres */

.agv-fiches-metiers__filters {
  margin-bottom: 36px;
  padding: 28px 32px 22px;
  background: #f8fbff;
  border: 1px solid #dbe5ee;
  box-shadow: 0 18px 45px rgba(0, 43, 85, 0.08);
}

.agv-fiches-metiers__filters-title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #12314d;
}

.agv-fiches-metiers__filter-label,
.agv-fiches-metiers__search-label {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #12314d;
}

/* Ligne des menus déroulants + bouton réinitialiser */

.agv-fiches-metiers__filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.agv-fiches-metiers__filter-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  min-width: 180px;
  @media (max-width: 768px) {
    flex: 1;
  }
}

.agv-fiches-metiers__select {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #d6e0ea;
  background: #ffffff;
  color: #002b55;
  font-size: 16px;
}

.agv-fiches-metiers__select option:disabled {
  color: #b7c2ce;
  display: none;
}

.agv-fiches-metiers__search {
  /* max-width: 280px; */
}

.agv-fiches-metiers__search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid #d6e0ea;
  background: #ffffff;
  color: #002b55;
  font-size: 16px;
  outline: none;
}

.agv-fiches-metiers__search-input::placeholder {
  color: #6d7f93;
}

.agv-fiches-metiers__search-input:focus {
  border-color: #005aa5;
}

.agv-fiches-metiers__reset {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Avenir", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  color: #009ddc;
  text-transform: initial;
  font-size: clamp(0.9375rem, 1.05vw, 1.125rem);
  max-width: 100%;
}

/* Head résultats */

.agv-fiches-metiers__results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.agv-fiches-metiers__count {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #002b55;
}

.agv-fiches-metiers__sort select {
  min-width: 260px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #d6e0ea;
  background: #ffffff;
  color: #002b55;
  font-size: 16px;
}

/* Cards */

.agv-fiches-metiers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.agv-fiches-metiers__card {
  height: 100%;
  background: #ffffff;
  border: 1px solid #dbe5ee;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.agv-fiches-metiers__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 43, 85, 0.12);
}

.agv-fiches-metiers__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.agv-fiches-metiers__card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.agv-fiches-metiers__card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agv-fiches-metiers__card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.agv-fiches-metiers__card-title {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #002b55;
}

.agv-fiches-metiers__card-excerpt {
  margin: 0 0 20px;
  color: #002b55;
}

.agv-fiches-metiers__card-button {
  margin-top: auto;
  color: #005aa5;
  font-weight: 700;
}

.agv-fiches-metiers__card-button::after {
  content: "›";
  margin-left: 8px;
  font-size: 22px;
  line-height: 1;
}

.agv-fiches-metiers__empty {
  margin: 0;
  padding: 24px;
  background: #f8fbff;
  border: 1px solid #dbe5ee;
  color: #002b55;
  font-weight: 600;
}

/* Responsive */

@media (max-width: 991px) {
  .agv-fiches-metiers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agv-fiches-metiers__results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .agv-fiches-metiers__sort,
  .agv-fiches-metiers__sort select {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .agv-fiches-metiers__filters {
    padding: 24px 20px;
  }

  .agv-fiches-metiers__filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .agv-fiches-metiers__search {
    max-width: none;
  }

  .agv-fiches-metiers__grid {
    grid-template-columns: 1fr;
  }
}

/* TOGGLE DES FILTRES EN MOBILE */

@media (max-width: 1024px) {
  .show-filter {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
    cursor: pointer;
  }

  .agv-fiches-metiers__filters {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0.25s ease;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .agv-fiches-metiers__filters.is-open {
    max-height: 1200px;
    opacity: 1;
    visibility: visible;
    margin-bottom: 2rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .job-offers-filters {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

.agv-fiches-metiers__reset {
  margin-bottom: 13.5px;
}
