/**
 * Archive Médecins - Premium Redesign
 * Design aligné sur la home avec hero gradient
 */

/* === TOKENS === */
:root {
  --brand: #2563EB;
  --accent: #06B6D4;
  --ink: #0F172A;
  --muted: #475569;
  --ring: #E7EDF5;
  --wash: #F6F9FF;
}

/* === CONTAINER === */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === HERO (même gradient que home) === */
.sr-hero {
  color: #fff;
  padding: 32px 0 18px;
  background: radial-gradient(1200px 480px at 75% -10%, rgba(37, 99, 235, .35), transparent),
              linear-gradient(180deg, #0b1220 0%, #0f172a 40%, #111827 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sr-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.sr-title .sr-key {
  color: #DCE8FF;
}

.sr-sub {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  line-height: 1.6;
}

/* Barre recherche dans hero */
.sr-search {
  margin-top: 8px;
}

/* === BODY === */
.sr-body {
  padding: 24px 0 48px;
  display: grid;
  gap: 16px;
}

/* === CARD GÉNÉRIQUE === */
.card {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, .06);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

/* === INTRO SEO === */
.seo-intro {
  margin-top: -14px;
}

/* === FILTRES STICKY === */
.filters-sticky {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 10px 24px -16px rgba(2, 6, 23, .16);
  transition: box-shadow 0.2s ease;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters-gap {
  flex: 1;
  min-width: 16px;
}

.filter-label {
  color: #5b6b7c;
  font-weight: 600;
  font-size: 13px;
}

.select {
  height: 40px;
  border: 1px solid var(--ring);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select:hover {
  border-color: var(--brand);
}

.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .18);
}

/* === CHIPS RAPIDES === */
.quick-chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.quick-chips::-webkit-scrollbar {
  display: none;
}

.quick-chips .chip {
  background: var(--wash);
  border: 1px solid var(--ring);
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.quick-chips .chip:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.quick-chips .chip.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* === LISTE RÉSULTATS === */
.results-wrap {
  display: grid;
  gap: 12px;
}

/* === CARTE RÉSULTAT === */
.result-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, .06);
  transition: box-shadow .2s, transform .2s;
}

.result-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(2, 6, 23, .1);
}

.result-card .avatar {
  display: block;
  position: relative;
}

.result-card .avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.result-card .content {
  min-width: 0;
}

.result-card .title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.result-card .title a {
  color: var(--ink);
  text-decoration: none;
}

.result-card .title a:hover {
  color: var(--brand);
}

.result-card .meta {
  color: #5b6b7c;
  font-size: 13px;
  margin-bottom: 6px;
}

.result-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.result-card .chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 9999px;
  background: var(--wash);
  border: 1px solid var(--ring);
  color: #334155;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
}

.result-card .cta {
  align-self: center;
}

.result-card .cta .btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: #F6F9FF;
  border: 1px solid var(--ring);
  color: #0F172A;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.result-card .cta .btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* === PAGINATION PREMIUM === */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--ring);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  box-shadow: 0 10px 24px -16px rgba(2, 6, 23, .16);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
}

.pagination .is-active {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
}

/* === EMPTY STATE === */
.empty {
  text-align: center;
  padding: 48px 28px;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, .06);
}

.empty h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.empty p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.empty .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.empty .btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sr-title {
    font-size: 26px;
  }
  
  .sr-sub {
    font-size: 14px;
  }
  
  .result-card {
    grid-template-columns: 56px 1fr;
  }
  
  .result-card .avatar img {
    width: 56px;
    height: 56px;
  }
  
  .result-card .cta {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  
  .result-card .cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .filters-row {
    gap: 8px;
  }
  
  .filter-label {
    display: none;
  }
  
  .pagination {
    gap: 6px;
  }
  
  .pagination a,
  .pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .sr-hero {
    padding: 24px 0 14px;
  }
  
  .sr-title {
    font-size: 22px;
  }
  
  .result-card {
    padding: 12px;
  }
  
  .result-card .title {
    font-size: 15px;
  }
  
  .result-card .meta {
    font-size: 12px;
  }
}

