<<<<<<< HEAD
/* ══ VARIABLES ══ */
:root {
  --katalog-bordeaux: #902135;
  --text-dark: #1f2937;
  --secondary-gray: #6b7280;
  --border-color: #e5e7eb;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
=======

/* --- VARIABLES & BASE --- */
:root {
    --katalog-bordeaux: #902135;
    --text-dark: #1f2937;
    --secondary-gray: #666666;
    --border-color: #e5e7eb;
>>>>>>> a057fde85bda52afde90677b032e49d7fce18eca
}

.container,
.containerH {
<<<<<<< HEAD
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.containerH {
  text-align: center;
}
.pb-80 {
  padding-bottom: 80px;
}

/* ══ PAGE HEADER ══ */
.page-header {
  background: linear-gradient(
    135deg,
    rgba(144, 33, 53, 0.06) 0%,
    #fff 55%,
    rgba(24, 60, 182, 0.03) 100%
  );
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
  position: relative;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(144, 33, 53, 0.3), transparent);
}
.page-header h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text-dark);
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.page-header h1 i {
  color: var(--katalog-bordeaux);
  font-size: 0.85em;
}
.page-header p {
  margin: 0;
  color: var(--secondary-gray);
  font-size: 0.88rem;
}

/* ══ SEARCH HERO ══ */
.search-hero-form {
  display: flex;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1.5px solid var(--border-color);
  background: #fff;
  margin-bottom: 16px;
}
.search-hero-select-wrap {
  position: relative;
  flex-shrink: 0;
}
.search-hero-select {
  appearance: none;
  border: none;
  border-right: 1.5px solid var(--border-color);
  padding: 0 40px 0 18px;
  font-size: 0.85rem;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  background: #f9fafb;
  cursor: pointer;
  outline: none;
  min-width: 180px;
  font-weight: 600;
  height: 100%;
}
.search-hero-select-wrap i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--katalog-bordeaux);
  font-size: 0.75rem;
  pointer-events: none;
}
.search-hero-input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  outline: none;
  background: #fff;
}
.search-hero-input::placeholder {
  color: #d1d5db;
}
.search-hero-btn {
  background: var(--katalog-bordeaux);
  color: #fff;
  border: none;
  padding: 0 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.search-hero-btn:hover {
  opacity: 0.88;
}

/* ══ ACTIVE FILTERS ══ */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.filter-chip-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(144, 33, 53, 0.06);
  color: var(--katalog-bordeaux);
  border: 1px solid rgba(144, 33, 53, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.filter-chip-clear:hover {
  background: var(--katalog-bordeaux);
  color: #fff;
}

/* ══ RESULTS HEADER ══ */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.results-count {
  font-size: 0.88rem;
  color: var(--secondary-gray);
  font-weight: 600;
}
.results-count strong {
  color: var(--katalog-bordeaux);
  font-size: 1.1rem;
  font-weight: 900;
}

/* ══ TOOLBAR ══ */
.search-bar-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  align-items: center;
}
.search-input-group {
  position: relative;
  flex: 1 1 200px;
}
.flex-2 {
  flex: 2 1 300px;
}
.flex-1 {
  flex: 1 1 160px;
}
.year-group {
  flex: 0 1 130px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
  pointer-events: none;
}
.filter-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  background: #f9fafb;
  transition: var(--transition);
  box-sizing: border-box;
  outline: none;
}
.filter-input:focus {
  border-color: var(--katalog-bordeaux);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(144, 33, 53, 0.08);
}
.filter-input::placeholder {
  color: #d1d5db;
}

/* ══ TYPES CAROUSEL ══ */
.authors-toolbar {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  gap: 10px;
  margin-bottom: 28px;
}
.toolbar-header {
  color: var(--katalog-bordeaux);
  font-size: 1rem;
  padding-right: 12px;
  border-right: 1px solid #f3f4f6;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-container {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  gap: 6px;
}
.alphabet-scroll-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.alphabet-scroll-container::-webkit-scrollbar {
  display: none;
}
.alphabet-track {
  display: flex;
  gap: 8px;
  padding: 2px 0;
}

.alpha-item {
  white-space: nowrap;
  padding: 7px 14px;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  flex-shrink: 0;
}
.alpha-item:hover {
  border-color: rgba(144, 33, 53, 0.2);
  background: rgba(144, 33, 53, 0.04);
  color: var(--katalog-bordeaux);
}
.alpha-item.selected {
  background: var(--katalog-bordeaux);
  border-color: var(--katalog-bordeaux);
  color: #fff;
  box-shadow: 0 3px 8px rgba(144, 33, 53, 0.25);
}
.alpha-item .badge {
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}
.alpha-item.selected .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #f9fafb;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition);
}
.nav-btn:hover {
  background: var(--katalog-bordeaux);
  color: #fff;
  border-color: var(--katalog-bordeaux);
}

.btn-reset {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #fee2e2;
  background: #fff5f5;
  color: var(--katalog-bordeaux);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
}
.btn-reset:hover {
  background: rgba(144, 33, 53, 0.1);
}

/* ══ RESOURCE CARDS ══ */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.resource-main-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  transition: var(--transition);
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.resource-main-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--katalog-bordeaux);
  transform: scaleY(0);
  transition: transform 0.25s;
  border-radius: 0 2px 2px 0;
}
.resource-main-card:hover {
  border-color: rgba(144, 33, 53, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}
.resource-main-card:hover::before {
  transform: scaleY(1);
}

.res-icon {
  flex-shrink: 0;
  width: 52px;
  height: 72px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.res-img-thumb {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.res-content {
  flex: 1;
  min-width: 0;
}

.res-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.res-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid var(--border-color);
}
.tag-blue {
  background: rgba(144, 33, 53, 0.06);
  color: var(--katalog-bordeaux);
  border-color: rgba(144, 33, 53, 0.15);
}

.res-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 6px 0 4px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
  line-height: 1.4;
}
.res-authors {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.res-authors i {
  font-size: 0.7rem;
  color: #d1d5db;
}

.res-views {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
}
.res-views i {
  color: var(--katalog-bordeaux);
}

.res-actions {
  flex-shrink: 0;
  margin-left: auto;
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--katalog-bordeaux);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 3px 8px rgba(144, 33, 53, 0.2);
  font-family: "Montserrat", sans-serif;
}
.btn-view:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ══ EMPTY STATES ══ */
.empty-state-full,
.empty-state-js {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  grid-column: 1 / -1;
  box-sizing: border-box;
}
.empty-state-js {
  display: none;
}
.empty-icon-container {
  margin-bottom: 16px;
}
.empty-icon-large {
  font-size: 2.8rem;
  color: #d1d5db;
  display: block;
}
.empty-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 8px;
}
.empty-text {
  color: #9ca3af;
  font-size: 0.88rem;
  margin: 0;
}

/* ══ SUGGESTIONS ══ */
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.suggestion-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.suggestion-link:hover {
  border-color: rgba(144, 33, 53, 0.2);
  color: var(--katalog-bordeaux);
  background: rgba(144, 33, 53, 0.04);
}

/* ══ PAGINATION ══ */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.pag-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: "Montserrat", sans-serif;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.pag-btn:hover:not(:disabled) {
  border-color: rgba(144, 33, 53, 0.2);
  color: var(--katalog-bordeaux);
  background: rgba(144, 33, 53, 0.04);
}
.pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-indicators {
  display: flex;
  gap: 4px;
}
.page-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  background: #f3f4f6;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  color: #6b7280;
  transition: var(--transition);
  border: 1px solid transparent;
}
.page-num:hover {
  border-color: rgba(144, 33, 53, 0.2);
  color: var(--katalog-bordeaux);
}
.page-num.active {
  background: var(--katalog-bordeaux);
  color: #fff;
  box-shadow: 0 3px 8px rgba(144, 33, 53, 0.25);
}

/* ══ RESPONSIVE ══ */

@media (max-width: 768px) {
  .search-hero-select-wrap {
    display: none;
  }
  .search-bar-container {
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }
  .flex-2,
  .flex-1,
  .year-group {
    flex: 1 1 100%;
    width: 100%;
  }
  .search-input-group {
    width: 100%;
  }
  .filter-input {
    width: 100%;
    box-sizing: border-box;
  }
  .resource-main-card {
    padding: 14px;
    gap: 12px;
  }
  .res-img-thumb,
  .res-icon {
    width: 44px;
    height: 62px;
  }
  .btn-text {
    display: none;
  }
  .nav-btn {
    display: none;
  }
  .authors-toolbar {
    padding: 8px 12px;
    gap: 6px;
  }
}
@media (max-width: 480px) {
  .page-header {
    padding: 28px 0 20px;
  }
  .search-hero-btn span {
    display: none;
  }
  .search-hero-btn {
    padding: 0 18px;
  }
  .resource-main-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .res-icon {
    width: 100%;
    height: 160px;
    border-radius: 10px;
  }
  .res-img-thumb {
    width: 100%;
    height: 160px;
  }
  .res-content,
  .res-actions {
    width: 100%;
  }
  .res-actions {
    margin-left: 0;
  }
  .btn-view {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .toolbar-header {
    display: none;
  }
  .active-filters {
    gap: 6px;
  }
}
=======
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.containerH {
    text-align: center;
}

.pb-80 {
    padding-bottom: 80px;
}

/* --- HEADER --- */
.page-header {
    background: linear-gradient(135deg, rgba(144, 33, 53, 0.15) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(24, 60, 182, 0.03) 100%);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-header p {
    margin-top: 10px;
    color: var(--secondary-gray);
    font-size: 0.95rem;
}

/* --- SEARCH BAR (Anciennement Inline) --- */
.results-search-bar {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-input-group {
    position: relative;
}

.flex-2 {
    flex: 2;
}

.flex-1 {
    flex: 1;
}

.year-group-fixed {
    width: 140px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.filter-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    transition: 0.2s;
}

.filter-input:focus {
    border-color: var(--katalog-bordeaux);
    outline: none;
}

/* --- TYPES CAROUSEL --- */

.alphabet-track {
    display: flex;
    gap: 20px;
    padding: 4px 0;
}

/* --- 4. TYPES CAROUSEL (OPTIMISÉ) --- */
.authors-toolbar {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
}

/* On cache l'icône sitemap sur très petit écran pour gagner de la place */
.toolbar-header {
    color: #902135;
    font-size: 1.1rem;
    padding-right: 10px;
    border-right: 2px solid #f3f4f6;
    flex-shrink: 0;
}

.carousel-container {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    /* Important pour le défilement */
    position: relative;
}

.alphabet-scroll-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Cache la scrollbar Firefox */
    flex: 1;
    -webkit-overflow-scrolling: touch;
    /* Défilement fluide sur iOS */
}

.alphabet-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Cache la scrollbar Chrome/Safari */

.alpha-item {
    min-width: auto;
    /* On laisse le texte décider de la largeur */
    white-space: nowrap;
    padding: 8px 15px;
    height: auto;
    /* Plus flexible que 38px fixe */
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alpha-item .letter {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5563;
}

.alpha-item:has(input:checked) {
    background: var(--katalog-bordeaux);
    border-color: var(--katalog-bordeaux);
}

.alpha-item:has(input:checked) .letter {
    color: #ffffff;
}

.nav-btn,
.btn-reset {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--katalog-bordeaux);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-reset {
    color: #dc2626;
    background: #fee2e2;
    border-color: #fecaca;
}

/* --- RESOURCE CARDS --- */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.resource-main-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
    gap: 20px;
}

.resource-main-card:hover {
    border-color: var(--katalog-bordeaux);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.res-thumb-img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.res-icon {
    width: 50px;
    height: 75px;
    background: #f9fafb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--katalog-bordeaux);
    flex-shrink: 0;
}

.res-content {
    flex-grow: 1;
}

.res-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.res-tag {
    font-size: 0.7rem;
    font-weight: 700;
    background: #fee2e2;
    color: var(--katalog-bordeaux);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-domain {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

.res-year {
    font-size: 0.75rem;
    color: var(--secondary-gray);
    font-weight: 600;
}

.res-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
    /* Définit une hauteur stable pour le calcul des lignes */

    /* 1. Propriété Standard (Futur & Navigateurs Modernes) */
    line-clamp: 2;

    /* 2. Support Webkit (Chrome, Safari, Edge, Firefox récent) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    /* 3. Sécurité & Fallback */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    /* S'assure que le texte revient à la ligne avant d'être coupé */
    max-height: 2.8em;
    /* Fallback : 2 lignes x 1.4 de line-height */
}

.res-authors {
    margin: 0;
    font-size: 0.85rem;
    color: var(--secondary-gray);
}

.btn-view {
    background: var(--katalog-bordeaux);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-view:hover {
    background: #7a1a2d;
}

/* --- EMPTY STATES --- */
.empty-state-full,
.empty-state-js {
    text-align: center;
    padding: 80px 20px;
    color: var(--secondary-gray);
    width: 100%;
    grid-column: 1 / -1;
}

.empty-state-js {
    display: none;
}

.empty-icon-container {
    margin-bottom: 20px;
}

.empty-icon-large {
    font-size: 3rem;
    color: var(--katalog-bordeaux);
    opacity: 0.8;
}

.empty-title {
    color: var(--text-dark);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .results-search-bar {
        flex-direction: column;
        padding: 15px;
    }

    .year-group-fixed {
        width: 100%;
    }

    .resource-main-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .res-actions {
        width: 100%;
        margin-top: 10px;
    }

    .btn-view {
        display: block;
        text-align: center;
    }

    .alpha-item {
        min-width: 200px;
    }

    /* La barre de type prend toute la largeur et on réduit les marges */
    .authors-toolbar {
        padding: 8px;
        gap: 5px;
    }

    .toolbar-header {
        padding-right: 5px;
        font-size: 1rem;
    }

    .nav-btn {
        display: none;
        /* On cache les flèches sur mobile, le swipe au doigt suffit */
    }

    .alpha-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .toolbar-header {
        display: none;
        /* On gagne un maximum de place */
    }

    .authors-toolbar {
        margin-bottom: 20px;
    }

    /* Optionnel : On peut forcer l'affichage de l'item sélectionné au début */
    .alpha-item.selected {
        border-width: 2px;
    }
}

/* --- 6. PAGINATION --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pag-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pag-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicators {
    display: flex;
    gap: 5px;
}

.page-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    background: #f3f4f6;
    font-size: 0.85rem;
}

.page-num.active {
    background: #902135;
    color: #fff;
}
>>>>>>> a057fde85bda52afde90677b032e49d7fce18eca
