/* DATIBAT C2.5 — Ressources : isolé des autres catalogues. */
.datibat-ressources .res-cards { align-items: stretch; }
.datibat-ressources .res-card { min-width: 0; }
.datibat-ressources .res-card__text { flex: 1; }
.datibat-ressources .res-card__link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-size: .86rem; font-weight: 700; align-self: flex-start;
  text-decoration: none;
}
.datibat-ressources .res-card__link:hover { text-decoration: underline; }
.datibat-ressources .res-card__link:focus-visible,
.datibat-ressources .filter:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.datibat-ressources #resCards .res-card[hidden] { display: none !important; }
.datibat-ressources .res-card:hover { transform: translateY(-3px); }
.datibat-ressources .cta-check .tick { color: var(--orange); font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .datibat-ressources .res-card { transition: none !important; }
}

/* C2.5.1 — Fiches éditoriales consultables : style spécifique Ressources. */
.datibat-resource-detail .res-detail-hero .page-hero__inner { padding-block: clamp(68px,8vw,112px); }
.datibat-resource-detail .res-detail-hero .page-hero__title { max-width: 21ch; }
.datibat-resource-detail .res-detail-hero .page-hero__lead { max-width: 75ch; }
.datibat-ressources .res-detail-layout { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(250px, .86fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.datibat-ressources .res-article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 45px); min-width: 0; box-shadow: var(--shadow-sm); }
.datibat-ressources .res-article__section + .res-article__section { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
.datibat-ressources .res-article__section h2, .datibat-ressources .res-article__example h2 { font-size: clamp(1.17rem, 2.5vw, 1.52rem); margin: 0 0 14px; }
.datibat-ressources .res-article__section p, .datibat-ressources .res-article__example p { line-height: 1.78; color: var(--body); }
.datibat-ressources .res-article__list { display: grid; gap: 12px; padding: 0; margin: 21px 0 0; }
.datibat-ressources .res-article__list li { position: relative; padding-left: 24px; line-height: 1.55; }
.datibat-ressources .res-article__list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.datibat-ressources .res-article__example { margin-top: 34px; padding: clamp(20px, 3vw, 30px); background: var(--orange-50); border-radius: 14px; border: 1px solid #ffe1ce; }
.datibat-ressources .res-article__example .eyebrow { margin-bottom: 12px; }
.datibat-ressources .res-detail-panel { padding: 28px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.datibat-ressources .res-detail-panel h2 { margin-top: 20px; font-size: 1.32rem; }
.datibat-ressources .res-detail-panel ul { margin-top: 16px; display: grid; gap: 16px; }
.datibat-ressources .res-detail-panel li { position: relative; padding-left: 22px; line-height: 1.55; }
.datibat-ressources .res-detail-panel li::before { content: '•'; position: absolute; left: 0; color: var(--orange); font-size: 1.3rem; line-height: 1; }
.datibat-ressources .res-detail-note { font-size: .87rem; color: var(--muted); line-height: 1.6; margin-top: 22px; }
.datibat-ressources .res-detail-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.datibat-ressources .res-detail-return { color: var(--navy); text-decoration: underline; font-weight: 600; }
.datibat-ressources .res-detail-return:hover { color: var(--orange); }
@media (max-width: 900px) { .datibat-ressources .res-detail-layout { grid-template-columns: 1fr; } .datibat-ressources .res-detail-panel { padding: 23px; } }
@media (max-width: 520px) { .datibat-ressources .res-article { padding: 20px; } .datibat-ressources .res-detail-actions .btn { white-space: normal; text-align: center; } }
