/*
 * LATRACTION — ressources.css
 * Mise en page des guides (/ressources/). À charger après shared.css et tools.css.
 * Les couleurs suivent --primary / --primary-dark, redéfinies page par page selon le pôle.
 * ========================================================= */

.art-wrap { padding: 52px 0 28px; background: var(--bg-white); }
.art { max-width: 760px; margin: 0 auto; }
.art-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 1.5rem; font-size: .84rem; color: var(--text-light); }
.art-meta b { font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .07em; font-size: .74rem; }

.art-toc { margin: 0 0 2.2rem; padding: 1.15rem 1.35rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-light); }
.art-toc b { display: block; margin-bottom: .55rem; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.art-toc ol { display: grid; gap: .35rem; margin: 0; padding-left: 1.2rem; }
.art-toc a { color: var(--text-dark); text-decoration: none; font-size: .96rem; line-height: 1.5; }
.art-toc a:hover { color: var(--primary); text-decoration: underline; }

.art h2 { margin: 2.5rem 0 .85rem; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.25; letter-spacing: -.015em; color: var(--text-dark); scroll-margin-top: 92px; }
.art h3 { margin: 1.6rem 0 .5rem; font-size: 1.12rem; color: var(--text-dark); }
.art p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.85; color: #374151; }
.art ul, .art ol { display: grid; gap: .45rem; margin: 0 0 1.2rem; padding-left: 1.3rem; }
.art li { font-size: 1.05rem; line-height: 1.75; color: #374151; }
.art li::marker { color: var(--primary); font-weight: 700; }
.art a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }
.art strong { color: var(--text-dark); }

.art-table { margin: 1.1rem 0 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.art-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.art-table th { padding: .8rem 1rem; text-align: left; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-light); background: var(--bg-light); border-bottom: 1px solid var(--border); }
.art-table td { padding: .9rem 1rem; vertical-align: top; line-height: 1.6; color: #374151; border-bottom: 1px solid var(--border); }
.art-table tr:last-child td { border-bottom: 0; }
.art-table td:first-child { font-weight: 700; color: var(--text-dark); width: 24%; }

.art-callout { margin: 1.7rem 0; padding: 1.05rem 1.25rem; border-left: 4px solid var(--primary); border-radius: var(--radius-md); background: color-mix(in srgb, var(--primary) 6%, var(--bg-white)); }
.art-callout p { margin: 0; font-size: .98rem; line-height: 1.7; }

.art-example { margin: 1.3rem 0; padding: 1.2rem 1.35rem; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: var(--radius-lg); background: var(--bg-light); }
.art-example p { margin: 0 0 .5rem; font-size: 1rem; }
.art-example p:last-child { margin: 0; }

.art-check { list-style: none; padding: 0; }
.art-check li { position: relative; padding-left: 0; }
.art-check label { display: flex; align-items: flex-start; gap: .75rem; min-height: 44px; padding: .55rem 0; cursor: pointer; font-size: 1.02rem; line-height: 1.6; color: #374151; }
.art-check input { flex: none; width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--primary); cursor: pointer; }
.art-check input:checked + span { color: var(--text-light); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--primary) 50%, transparent); }

.art-aside { margin: 2.5rem 0; padding: 1.7rem 1.8rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.art-aside h3 { margin: 0 0 .5rem; font-size: 1.2rem; color: #fff; }
.art-aside p { margin: 0 0 1.1rem; font-size: .98rem; line-height: 1.7; color: rgba(255, 255, 255, .9); }
.art-aside .art-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.art-aside a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.3rem; border-radius: var(--radius-md); font-weight: 700; font-size: .95rem; text-decoration: none; background: #fff; color: var(--primary); transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease; }
.art-aside a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.art-aside a.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }

.art-sources { margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.art-sources h2 { margin: 0 0 .7rem; font-size: 1.05rem; }
.art-sources li, .art-sources p { font-size: .95rem; line-height: 1.7; }
.art-disclaimer { margin-top: 1.4rem; padding: .85rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-light); font-size: .85rem; line-height: 1.6; color: var(--text-light); font-style: italic; }

/* ─── Page d'index ─── */
.res-head { max-width: 760px; margin: 0 auto 1.6rem; text-align: center; }
.res-head p { color: var(--text-light); font-size: 1.05rem; line-height: 1.75; }
.res-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 0 2rem; }
.res-filter button { min-height: 44px; padding: 0 1.2rem; border: 1.5px solid var(--border); border-radius: 999px; background: var(--bg-white); color: var(--text-dark); font: 600 .92rem/1 var(--font); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.res-filter button:hover { border-color: var(--primary); }
.res-filter button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.res-filter button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.res-grid { max-width: 1060px; margin: 0 auto; }
.res-grid .fl-res-card[hidden] { display: none; }

@media (max-width: 640px) {
  .art-wrap { padding-top: 36px; }
  .art-table table, .art-table tbody, .art-table tr, .art-table td { display: block; width: 100%; }
  .art-table thead { position: absolute; left: -9999px; }
  .art-table td { border-bottom: 0; padding: .35rem 1rem; }
  .art-table td:first-child { width: 100%; padding-top: .9rem; font-size: 1.02rem; }
  .art-table td[data-l]::before { content: attr(data-l); display: block; margin-bottom: .1rem; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); }
  .art-table tr { border-bottom: 1px solid var(--border); padding-bottom: .6rem; }
  .art-table tr:last-child { border-bottom: 0; }
  .art-aside { padding: 1.4rem 1.25rem; }
}
@media print {
  .navbar, .breadcrumb, .tool-hero, .footer, .art-aside, .wa-float, .fl-progress, .fl-chip, .footer-premium-strip, #atom-cursor, .res-filter { display: none !important; }
  .art-wrap { padding: 0; }
}
