.oh-resources {
  width: 100%;
  max-width: none;
}

.oh-resources__layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

.oh-resources__results {
  scroll-margin-top: 250px;
}

.oh-resources__filters {
  display: grid;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  align-content: start;
}

.oh-resources__field {
  margin: 0;
  padding: 0;
}

.oh-resources__field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1f2933;
}

.oh-resources__field input[type="text"],
.oh-resources__field select {
  width: 100%;
  padding: 11px 20px;
  border: 1.2px solid #050022;
  border-radius: 5px;
  background: #f2f3f8;
  color: #050022;
  font-family: "Aptos", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.oh-resources__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 15px;
}

.oh-resources__actions .oh-btn {
  border-color: transparent;
}

.oh-resources__reset {
  text-decoration: underline;
  color: #243b53;
  font-size: 14px;
}

.oh-resources__choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oh-resources__choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #050022;
}

.oh-resources__choice input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.oh-resources__dropdown {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: visible;
}

.oh-resources__dropdown summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  color: #050022;
  font-family: "Aptos", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  border: 1.2px solid #050022;
  border-radius: 5px;
  background: #f2f3f8;
}

.oh-resources__dropdown summary::-webkit-details-marker {
  display: none;
}

.oh-resources__dropdown[open] {
  border-color: transparent;
  box-shadow: none;
}

.oh-resources__dropdown[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

.oh-resources__dropdown .oh-resources__choices {
  display: none;
  padding: 12px 20px 12px;
  background: #f2f3f8;
  border: 1.2px solid #050022;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  box-shadow: none;
  position: static;
}

.oh-resources__dropdown[open] .oh-resources__choices {
  display: block;
}

.oh-resources__dropdown-icon {
  display: inline-flex;
  width: 13px;
  height: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.oh-resources__dropdown-icon svg {
  width: 100%;
  height: 100%;
  stroke: #050022;
  stroke-width: 2px;
}

.oh-resources__dropdown[open] .oh-resources__dropdown-icon {
  transform: rotate(180deg);
}

.oh-resources__field input[type="text"]::placeholder {
  color: #a0a3b8;
  font-weight: 600;
}

.oh-resources__filters > * {
  margin: 0;
}

@media (min-width: 768px) {
  .oh-resources__filters {
    gap: 8px;
  }
}

.oh-resources__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.oh-resources__item {
  height: 100%;
}

/* Forcer les cartes à utiliser toute la largeur disponible dans la grille ressources */
.oh-resources__list .oh-featuring__card {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.oh-resources__pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.oh-resources__pagination ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.oh-resources__pagination a,
.oh-resources__pagination span {
  display: block;
  min-width: 32px;
  padding: 4px 4px;
  text-align: center;
  text-decoration: none;
  color: #9da0ad;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}

.oh-resources__pagination .current {
  color: #050022;
}

.oh-resources__pagination li.prev a,
.oh-resources__pagination li.next a {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 100px;
  background: #D8E1F0;
  color: #12329e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
}

.oh-resources__pagination li.prev span,
.oh-resources__pagination li.next span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7px;
  height: 12px;
}

.oh-resources__pagination li.prev a:hover,
.oh-resources__pagination li.next a:hover {
  background: #d3def0;
}
.oh-resources__empty {
  margin: 0;
  padding: 12px 0;
  color: #4b5563;
}

@media (min-width: 768px) {
  .oh-resources__layout {
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 80px;
  }

  /* Entre 768 et 1023 : 1 colonne de cartes */
  .oh-resources__list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1050px) {
  .oh-resources__layout {
    grid-template-columns: minmax(280px, 1fr) 2fr;
    gap: 40px;
  }

  /* ≥1024 : 2 colonnes de cartes */
  .oh-resources__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1150px) {
  .oh-resources__layout {
    gap: 80px;
  }
}
