.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px 32px;
  direction: rtl;
}

.pagination-load-more {
  background: #002e5c;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.pagination-load-more:hover { background: #001d3d; }
.pagination-load-more:disabled { opacity: 0.6; cursor: wait; }

/* Sentinel pour scroll infini : invisible mais participe au layout. */
#load-more-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

/* Scroll infini partout (desktop + mobile) : le bouton est masque, le sentinel
   est observe par IntersectionObserver pour declencher le chargement. */
.pagination-load-more {
  display: none;
}
#load-more-sentinel {
  height: 200px; /* zone de pré-chargement avant le bas de page */
  margin-top: -200px;
}

.pagination-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  direction: rtl;
}

.pagination-link,
.pagination-current,
.pagination-ellipsis {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.pagination-link:hover { background: #f3f4f6; }

.pagination-current {
  background: #002e5c;
  color: #fff;
  border-color: #002e5c;
  font-weight: 600;
}

.pagination-ellipsis {
  border: none;
  color: #6b7280;
  cursor: default;
}
