/* ressources.css : page_css de /ressources (refonte "Calques", octobre 2026).
   La liste des articles est produite a l'affichage par bs-index.php
   (bs_render_articles_list) : h3 du theme + span.theme-count, puis
   div.grid.grid-3 > article.card > h4 > a, p.card-meta > time, p (resume).
   Ces classes sont stylees ici sans modifier bs-index.php. */

.hero .res-brief { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--on-navy-faint); font-size: 0.9688rem; }
.hero .res-brief strong { color: #fff; }

/* Normes : question et reponse d'affiche a gauche, texte a droite */
.res-split { display: grid; gap: 28px; }
.res-intro p { max-width: 62ch; }
.res-intro p:first-child { color: var(--text-muted); }
.res-intro .btn-group { margin-top: 24px; }
@media (min-width: 960px) {
  .res-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 64px; align-items: start; }
  .res-intro { padding-top: 4px; }
}

/* Index : chaque theme ouvre un nouveau calque, coiffe d'un filet navy */
.res-index h3 {
  margin: clamp(48px, 6vw, 72px) 0 20px; padding-top: 16px;
  border-top: 1.5px solid var(--navy);
  font-family: var(--font); font-weight: 700; color: var(--navy);
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem); line-height: 1.2;
}
.res-index .a + h3 { margin-top: clamp(40px, 5vw, 64px); }
.res-index .theme-count { font-family: var(--font); font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); font-feature-settings: "tnum"; }

/* Fiches d'article : toute la case est cliquable (lien etire), un seul lien par fiche */
.res-index .grid { gap: 16px; }
.res-index .card { position: relative; padding: 22px 22px 20px; transition: border-color 0.2s, box-shadow 0.2s; }
.res-index .card:hover { border-color: var(--navy); box-shadow: inset 0 3px 0 var(--accent); }
.res-index .card h4 { margin: 0 0 10px; font-size: 1.0625rem; line-height: 1.35; }
.res-index .card h4 a { color: var(--navy); text-decoration: none; }
.res-index .card h4 a::after { content: ""; position: absolute; inset: 0; }
.res-index .card:hover h4 a { color: var(--accent-dark); }
.res-index .card h4 a:focus-visible { outline: none; }
.res-index .card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.res-index .card-meta { margin: 0 0 10px; font-size: 0.8125rem; color: var(--text-muted); font-feature-settings: "tnum"; }
.res-index .card > p:last-child { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
/* Mobile : une seule colonne de plus de 80 fiches, on les serre en liste continue */
@media (max-width: 719px) {
  .res-index .grid { gap: 0; }
  .res-index .grid > .card { padding: 16px 16px 15px; }
  .res-index .grid > .card + .card { border-top: 0; }
}
