/*
 * ressources.css — PsyRisso Desktop
 * Styles spécifiques à la page Ressources (refonte, sans Hero).
 * Structure visuelle reprise du mockup validé (ressources.html) ;
 * classes additionnelles (.rsc-sf-*, .rsc-scroll-col, .rsc-empty) pour
 * la logique de sous-familles et le chargement dynamique (DB réelle).
 */

.rsc-h2 { font-family: Georgia, serif; font-size: 1.5rem; font-weight: normal; color: var(--bleu); margin: 0 0 0.4rem; }
.rsc-sub { font-family: Arial, sans-serif; font-size: 0.85rem; color: #5a5a5a; margin: 0 0 1.75rem; max-width: 620px; }

/* ── Onglets ── */
.rsc-tabs {
  display: flex;
  gap: 1.8rem;
  border-bottom: 1px solid var(--gris-sep);
  margin-bottom: 1.75rem;
}
.rsc-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.6rem 0.1rem;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  color: #8a8578;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.rsc-tab:hover { color: var(--bleu); }
.rsc-tab.active { color: var(--bleu); border-bottom-color: var(--tab-color); }

/* ── Grille contenu + post-it ── */
.rsc-grid { display: grid; grid-template-columns: 1fr 260px; gap: 2.5rem; align-items: start; }

.rsc-panel { display: none; }
.rsc-panel.active { display: block; }

/* Colonne scrollable si la liste de documents devient longue */
.rsc-scroll-col {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

/* ── Sous-familles (Infographie, Cahiers d'exercices) ── */
.rsc-sf-bloc { margin-bottom: 2rem; }
.rsc-sf-bloc:last-child { margin-bottom: 0; }
.rsc-sf-titre {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: normal;
  color: var(--bleu);
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--tab-color);
}

.rsc-table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 0.85rem; }
.rsc-table th {
  text-align: left; padding: 0.55rem 0.5rem; color: var(--bleu); font-weight: bold;
  border-bottom: 1px solid var(--gris-sep); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.rsc-table td { padding: 0.7rem 0.5rem; border-bottom: 1px solid #F3EEE0; vertical-align: top; }
.rsc-table tbody tr:last-child td { border-bottom: none; }
.rsc-td-titre { color: var(--bleu); font-weight: bold; }
.rsc-td-desc { color: #5a5a5a; }
.rsc-td-action { text-align: right; white-space: nowrap; }

.rsc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ocre);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
.rsc-btn:hover { text-decoration: underline; }
.rsc-btn svg { width: 12px; height: 12px; flex-shrink: 0; }

.rsc-empty {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #5a5a5a;
  text-align: center;
  padding: 2rem 0;
}

/* ── Post-it ── */
.rsc-postit {
  background: var(--creme);
  border: 1px solid var(--gris-sep);
  border-left: 3px solid var(--tab-color, var(--dore));
  border-radius: 0 8px 8px 0;
  padding: 1.4rem 1.2rem;
}
.rsc-postit svg { width: 24px; height: 24px; stroke: var(--tab-color, var(--dore)); fill: none; stroke-width: 1.7; margin-bottom: 0.7rem; display: block; }
.rsc-postit p {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--bleu);
  margin: 0;
  font-style: italic;
}

.rsc-empty-tab {
    color: #6b6b6b;
    font-style: italic;
    padding: 24px 0;
    text-align: center;
}

@media (max-width: 720px) {
  .rsc-grid { grid-template-columns: 1fr; }
  .rsc-tabs { gap: 1rem; overflow-x: auto; }
  .rsc-scroll-col { max-height: none; overflow-y: visible; }
}