/* ============================================================
   ressources.css — Page ressources
   ============================================================ */

.res-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);
}

.res-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── En-tête page ── */
.res-page-header {
  margin-bottom: 3rem;
}

.res-page-eyebrow {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ss-accent, #3b82f6);
  margin-bottom: 0.75rem;
}

.res-page-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.res-page-title em {
  font-style: normal;
  color: var(--ss-accent, #3b82f6);
}

.res-page-desc {
  font-size: 1rem;
  color: rgba(232, 237, 245, 0.55);
  line-height: 1.65;
  max-width: 600px;
}

/* ── Section ── */
.res-section {
  margin-bottom: 3.5rem;
}

.res-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.res-section-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.res-section-title {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
}

.res-section-count {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  margin-left: auto;
}

/* ── Grille chaînes YouTube ── */
.res-yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.res-yt-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.2s ease;
}

.res-yt-card:hover {
  border-color: rgba(255, 0, 0, 0.35);
  background: rgba(255, 0, 0, 0.04);
  transform: translateY(-2px);
}

.res-yt-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.res-yt-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.res-yt-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.res-yt-name {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.res-yt-handle {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.72rem;
  color: rgba(255, 0, 0, 0.6);
}

.res-yt-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-yt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.res-yt-tag {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
}

.res-yt-link {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.72rem;
  color: rgba(255, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.res-yt-link .material-icons-round {
  font-size: 14px;
}

/* ── Grille liens/sites ── */
.res-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.res-link-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.2s ease;
}

.res-link-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.04);
  transform: translateY(-2px);
}

.res-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.res-link-body {
  flex: 1;
}

.res-link-name {
  font-family: var(--home-mono, "DM Mono", monospace);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
}

.res-link-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.res-link-arrow {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  margin-top: 4px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.res-link-card:hover .res-link-arrow {
  color: var(--ss-accent, #3b82f6);
  transform: translateX(3px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .res-yt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .res-yt-grid {
    grid-template-columns: 1fr;
  }
  .res-links-grid {
    grid-template-columns: 1fr;
  }
  .res-inner {
    padding: 2rem 1.25rem 3rem;
  }
}
