/* ========================
   Pagination moderne
   ======================== */
div.my-pagination {
  text-align: center;
  padding: 0.8rem 0 1rem;
  margin: 0.5rem auto 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#pagination-summary {
  margin-right: 1.5rem;
  font-weight: 600;
  color: #495057;
  font-size: 0.95rem;
}

div.my-pagination a,
div.my-pagination span.pages,
div.my-pagination span.dots,
div.my-pagination span.current,
a.image-update,
a.corner-switch,
a#close-console {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  margin: 0;
  padding: 0.5rem 0.875rem;
  display: inline-block;
  text-decoration: none !important;
  color: #495057 !important;
  font-size: 0.9rem !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid #e1e4e8;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

div.my-pagination a:hover,
div.my-pagination a:focus,
a.image-update:hover,
a.corner-switch:hover {
  background: #f8f9fa;
  border-color: #667eea;
  color: #667eea !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

div.my-pagination span.current {
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
  border-color: #667eea !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-weight: 600;
}

div.my-pagination span.dots {
  border: none;
  box-shadow: none;
  background: transparent;
  color: #6c757d !important;
}
