/* ============================================================
   sources.css — Page Sources & Références
   ============================================================ */

.src-wrapper {
  min-height: 100vh;
  background: var(--home-bg, #080c14);
  color: var(--home-text, #e8edf5);
  font-family: var(--home-body, "Sora", sans-serif);
  padding-top: var(--nav-h);
}

.src-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

/* ── En-tête ── */
.src-header {
  margin-bottom: 2.5rem;
}

.src-eyebrow {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ss-accent, #3b82f6);
  margin-bottom: 0.75rem;
}

.src-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.src-title em {
  font-style: normal;
  color: var(--ss-accent, #3b82f6);
}

.src-desc {
  font-size: 0.95rem;
  color: rgba(232, 237, 245, 0.55);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 2rem;
}

/* ── Filtres ── */
.src-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.src-filter-btn {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.src-filter-btn:hover,
.src-filter-btn.is-active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

/* ── Section ── */
.src-section {
  margin-bottom: 3rem;
}

.src-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.src-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.src-section-icon .material-icons-round {
  font-size: 18px;
}

.src-section-title {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.src-section-count {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  margin-left: auto;
}

/* ── Liste de sources ── */
.src-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.src-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.src-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.04);
}

.src-item-type {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.65rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.src-item-body {
  flex: 1;
  min-width: 0;
}

.src-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(232, 237, 245, 0.85);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.src-item-meta {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.src-item-meta-sep {
  opacity: 0.3;
}

.src-item-arrow {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.src-item:hover .src-item-arrow {
  color: var(--ss-accent, #3b82f6);
  transform: translateX(3px);
}

/* ── Note bas de page ── */
.src-footer-note {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.65;
}

.src-footer-note strong {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Types de sources ── */
.src-type--study {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
.src-type--report {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}
.src-type--article {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
}
.src-type--law {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}
.src-type--paper {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
}
.src-type--org {
  background: rgba(244, 63, 94, 0.15);
  color: #fca5a5;
}
.src-type--data {
  background: rgba(251, 146, 60, 0.15);
  color: #fed7aa;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .src-inner {
    padding: 2rem 1.25rem 4rem;
  }
  .src-item-meta {
    flex-direction: column;
    gap: 0.2rem;
  }
  .src-item-meta-sep {
    display: none;
  }
}
