/* Catalogue académique : présentation bleue, filtres réels et cartes liées aux fiches. */
.catalogue-page {
  min-height: 100%;
  background: #fff;
  color: #0b0b0f;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.catalogue-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 18.5rem;
  align-items: center;
  padding: 3rem 1.25rem 4rem;
  background: #000080;
  color: #fff;
}

.catalogue-hero__shape {
  position: absolute;
  z-index: -1;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

.catalogue-hero__shape--left {
  top: -30px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #7188e8, #4058c7);
  opacity: .75;
}

.catalogue-hero__shape--right {
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #9bb6f0, #6284dc);
  opacity: .3;
}

.catalogue-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 90rem);
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-inline: auto;
  text-align: center;
}

.catalogue-hero__copy { min-width: 0; }

.catalogue-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.catalogue-hero__description {
  max-width: 52rem;
  margin: .65rem 0 0;
  color: #e8eefa;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.6;
}

.catalogue-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}

.catalogue-filter-toggle,
.catalogue-loans-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, color .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.catalogue-filter-toggle { display: inline-flex; }
.catalogue-filter-toggle { background: #000; color: #fff; box-shadow: 0 5px 12px rgb(0 0 0 / 16%); }
.catalogue-filter-toggle svg { width: 1rem; height: 1rem; }
.catalogue-loans-link { background: #fff; color: #0b0b0f; box-shadow: 0 5px 12px rgb(0 0 0 / 12%); }
.catalogue-loans-link:hover { background: #eff6ff; color: #1e40af; }
.catalogue-loans-link > svg { width: 1rem; height: 1rem; color: #2563eb; fill: currentColor; }
.catalogue-loans-count {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  place-items: center;
  margin-left: .1rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
}
.catalogue-filter-toggle:hover { background: #1e40af; }
.catalogue-filter-toggle[aria-expanded="true"] { background: #1e40af; }
.catalogue-filter-toggle:active,
.catalogue-loans-link:active { transform: scale(.97); }
.catalogue-filter-toggle:focus-visible,
.catalogue-loans-link:focus-visible,
.catalogue-filter-form button:focus-visible,
.catalogue-filter-form a:focus-visible,
.catalogue-pagination a:focus-visible,
.catalogue-card a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }

.catalogue-content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: -1.5rem;
  padding: 1.5rem 1rem 2.5rem;
  border-radius: 2rem 2rem 0 0;
  background: #fff;
}

.catalogue-content__inner {
  display: grid;
  width: min(100%, 100rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  margin-inline: auto;
}

.catalogue-page[data-js-enabled="true"] .catalogue-filter-sidebar:not(.is-open) { display: none; }

.catalogue-filter-sidebar {
  display: block;
  min-width: 0;
  padding: 1.25rem;
  border-radius: 1.75rem;
  background: rgb(239 246 255 / 82%);
}

.catalogue-filter-sidebar__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.15rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgb(37 99 235 / 13%);
}

.catalogue-filter-sidebar__heading h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: #0b0b0f;
  font-size: .98rem;
  font-weight: 800;
}
.catalogue-filter-sidebar__heading h2 svg { width: 1.2rem; height: 1.2rem; color: #2563eb; }

.catalogue-results-badge {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  white-space: nowrap;
}

.catalogue-filter-form {
  display: grid;
  gap: .85rem;
  margin: 0;
}
.catalogue-filter-form__field { min-width: 0; }
.catalogue-filter-form label {
  display: block;
  margin: 0 0 .4rem;
  color: #111827;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.catalogue-filter-form input,
.catalogue-filter-form select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.7rem;
  padding: .65rem .9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eff6ff;
  color: #111827;
  font: inherit;
  font-size: .75rem;
  line-height: 1.35;
  transition: background-color .15s ease, outline-color .15s ease, border-color .15s ease;
}
.catalogue-filter-form input::placeholder { color: #64748b; opacity: 1; }
.catalogue-filter-form input:focus,
.catalogue-filter-form select:focus {
  border-color: #2563eb;
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  background: #fff;
}

.catalogue-filter-form__actions { display: grid; gap: .55rem; padding-top: .25rem; }
.catalogue-filter-form__actions button,
.catalogue-filter-form__actions a {
  display: inline-flex;
  width: 100%;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .15s ease, color .15s ease, background-color .15s ease;
}
.catalogue-filter-form__actions button { background: #2563eb; color: #fff; box-shadow: 0 5px 12px rgb(37 99 235 / 18%); }
.catalogue-filter-form__actions button:hover { background: #1e40af; }
.catalogue-filter-form__actions a { background: #fff; color: #0b0b0f; }
.catalogue-filter-form__actions a:hover { background: #000; color: #fff; }
.catalogue-filter-form__actions button:active,
.catalogue-filter-form__actions a:active { transform: scale(.98); }

.catalogue-results { min-width: 0; }
.catalogue-results__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 1.2rem;
}
.catalogue-results__heading p { margin: 0; color: #2563eb; font-size: .66rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.catalogue-results__heading h2 { margin: .2rem 0 0; color: #0b0b0f; font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.catalogue-results__count { color: #64748b; font-size: .75rem; font-weight: 650; }

.catalogue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 1.1rem;
}

.public-content .catalogue-card[data-presentation-card] {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 1.5rem !important;
  background: #eff6ff;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.public-content .catalogue-card[data-presentation-card]:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 24px rgb(30 64 175 / 10%);
}

.catalogue-card__cover {
  position: relative;
  height: 15rem;
  flex: 0 0 15rem;
  overflow: hidden;
  margin: .85rem .85rem 0;
  border-radius: 1rem;
  background: #1e40af;
}
.catalogue-card__cover > a { display: block; width: 100%; height: 100%; }
.catalogue-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.catalogue-card:hover .catalogue-card__cover img { transform: scale(1.025); }
.catalogue-card__cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}
.catalogue-card__cover-placeholder svg { width: 3rem; height: 3rem; stroke-width: 1.6; }
.catalogue-card__file-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: #1e40af;
  font-size: .61rem;
  font-weight: 800;
  line-height: 1.2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.catalogue-card__file-badge svg { width: .8rem; height: .8rem; }

.catalogue-card__body { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 1rem 1.1rem 1.15rem; }
.catalogue-card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.catalogue-card__type,
.catalogue-card__access {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1.25;
}
.catalogue-card__type { background: #000; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.catalogue-card__access { background: #fff; color: #1e40af; }
.catalogue-card__faculty {
  margin: .9rem 0 0;
  color: #2563eb;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.catalogue-card__title { margin: .28rem 0 0; color: #0b0b0f; font-size: 1.08rem; font-weight: 800; line-height: 1.4; }
.catalogue-card__title a { color: inherit; text-decoration: none; }
.catalogue-card__title a:hover { color: #2563eb; }
.catalogue-card__author { margin: .45rem 0 0; color: rgb(30 41 59 / 88%); font-size: .82rem; font-weight: 650; line-height: 1.5; }
.catalogue-card__metadata { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .75rem 0 0; color: #1e40af; font-size: .72rem; font-weight: 700; }
.catalogue-card__metadata span { display: inline-flex; min-height: 1.35rem; align-items: center; padding: .2rem .48rem; border: 1px solid rgb(37 99 235 / 12%); border-radius: .5rem; background: #fff; }
.catalogue-card__description { display: -webkit-box; min-height: 4.7rem; overflow: hidden; margin: .8rem 0 0; color: #334155; font-size: .8rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.catalogue-card__availability { display: flex; align-items: flex-start; gap: .4rem; margin: .65rem 0 0; color: #1e40af; font-size: .65rem; font-weight: 650; line-height: 1.45; }
.catalogue-card__availability svg { width: .9rem; height: .9rem; flex: 0 0 .9rem; margin-top: .06rem; color: #2563eb; }
.catalogue-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .9rem; }
.catalogue-card__year { color: rgb(30 64 175 / 65%); font-size: .68rem; font-weight: 750; }
.catalogue-card__action {
  display: inline-flex;
  min-height: 2.35rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.catalogue-card__action:hover { background: #2563eb; }
.catalogue-card__action:active { transform: scale(.97); }
.catalogue-card__action svg { width: .9rem; height: .9rem; }

.catalogue-empty {
  display: grid;
  min-height: 15rem;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  border: 1px dashed #bfdbfe;
  border-radius: 1.5rem;
  background: #f8fbff;
  text-align: center;
}
.catalogue-empty__icon { display: grid; width: 3.75rem; height: 3.75rem; place-items: center; margin-bottom: .8rem; border-radius: 50%; background: #eff6ff; color: #2563eb; }
.catalogue-empty__icon svg { width: 1.8rem; height: 1.8rem; }
.catalogue-empty h3 { margin: 0; color: #0b0b0f; font-size: 1.05rem; font-weight: 800; }
.catalogue-empty p { max-width: 26rem; margin: .4rem 0 0; color: #64748b; font-size: .78rem; line-height: 1.55; }

.catalogue-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.catalogue-pagination a { display: inline-flex; min-height: 2.5rem; align-items: center; justify-content: center; padding: .6rem .9rem; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1e40af; font-size: .72rem; font-weight: 750; text-decoration: none; }
.catalogue-pagination a:hover { background: #2563eb; color: #fff; }
.catalogue-pagination span { color: #64748b; font-size: .72rem; font-weight: 650; }

.catalogue-subscription-notice,
.catalogue-deposit-prompt { width: min(100% - 2rem, 100rem); margin: 1rem auto 0; padding: .85rem 1rem; border: 1px solid #bfdbfe; border-radius: 1rem; background: #eff6ff; color: #1e40af; font-size: .78rem; line-height: 1.5; }
.catalogue-deposit-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.5rem; padding: 1.1rem 1.25rem; }
.catalogue-deposit-prompt h2 { margin: 0; color: #1e3a8a; font-size: .9rem; font-weight: 800; }
.catalogue-deposit-prompt p { margin: .25rem 0 0; color: #1e40af; font-size: .75rem; }
.catalogue-deposit-prompt a { display: inline-flex; min-height: 2.65rem; align-items: center; justify-content: center; padding: .6rem 1rem; border-radius: 999px; background: #2563eb; color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }
.catalogue-deposit-prompt a:hover { background: #1e40af; }

.catalogue-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding: 1.4rem 1.5rem calc(5.2rem + env(safe-area-inset-bottom));
  color: rgb(30 58 138 / 65%);
  font-size: .68rem;
  font-weight: 600;
}
.catalogue-footer p { margin: 0; }
.catalogue-footer__links { display: flex; flex-wrap: wrap; gap: 1rem; }
.catalogue-footer a { color: inherit; text-underline-offset: .15em; }
.catalogue-footer a:hover { color: #000; }

@media (max-width: 1023px) {
  .catalogue-page[data-js-enabled="true"] .catalogue-filter-sidebar:not(.is-open) { display: none; }
}

@media (min-width: 640px) {
  .catalogue-hero { min-height: 20rem; padding: 3.5rem 2.5rem 4.5rem; }
  .catalogue-hero__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; text-align: left; }
  .catalogue-hero__description { font-size: .85rem; }
  .catalogue-hero__actions { flex: 0 0 auto; justify-content: flex-end; }
  .catalogue-content { padding-inline: 2rem; }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .catalogue-footer { padding-inline: 2rem; }
}

@media (min-width: 1024px) {
  .catalogue-page.filters-open .catalogue-content__inner { grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr); gap: 2rem; }
  .catalogue-page.filters-open .catalogue-filter-sidebar { position: sticky; top: 1rem; }
  .catalogue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalogue-page.filters-open .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-footer { padding-bottom: 1.5rem; }
}

@media (min-width: 1440px) {
  .catalogue-page.filters-open .catalogue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .catalogue-hero { padding-inline: 1rem; }
  .catalogue-hero__actions { width: 100%; gap: .45rem; }
  .catalogue-filter-toggle,
  .catalogue-loans-link { min-height: 2.6rem; padding-inline: .75rem; font-size: .7rem; }
  .catalogue-content { padding-inline: .75rem; }
  .catalogue-filter-sidebar { padding: 1rem; }
  .catalogue-card__footer { gap: .4rem; }
  .catalogue-card__action { padding-inline: .7rem; font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .catalogue-filter-toggle,
  .catalogue-loans-link,
  .catalogue-filter-form input,
  .catalogue-filter-form select,
  .catalogue-filter-form__actions button,
  .catalogue-filter-form__actions a,
  .catalogue-card,
  .catalogue-card__cover img,
  .catalogue-card__action { transition: none; }
}
