/* Net-Progress : styles des articles (page Articles et pages d'article).
   Couleurs uniquement via les variables du thème (clair, marine, sombre) définies dans brand.css.
   Bumper ?v=N dans les pages qui chargent ce fichier à chaque modification. */

/* ===== Page d'article ===== */
.art-prose { color: var(--muted); }
.art-prose section > p,
.art-prose section > ul > li,
.art-prose section > ol > li { font-size: 17px; line-height: 1.8; font-weight: 300; }
.art-prose section > p { margin-bottom: 1.15rem; }
.art-prose h2 {
    clear: both; font-size: 1.55rem; font-weight: 700; color: var(--text);
    letter-spacing: -0.015em; line-height: 1.25; margin: 2.75rem 0 1rem; scroll-margin-top: 96px;
}
.art-prose h3 { font-size: 1.15rem; font-weight: 600; color: var(--text); line-height: 1.35; margin: 2rem 0 0.6rem; }
.art-prose strong { color: var(--text); font-weight: 600; }
.art-prose a, .art-note a, .art-sources a, .art-inline-link {
    color: var(--np-text-acc); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.art-prose a:hover, .art-note a:hover, .art-sources a:hover, .art-inline-link:hover { color: var(--text); }
.art-prose section > ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.art-prose section > ul > li { position: relative; padding-left: 1.3rem; margin-bottom: 0.55rem; }
.art-prose section > ul > li::before {
    content: ""; position: absolute; left: 0.15rem; top: 0.72em;
    width: 6px; height: 6px; border-radius: 999px; background: var(--brand-emerald-soft);
}
.art-prose section > ol { list-style: none; padding: 0; margin: 0.25rem 0 1.4rem; counter-reset: q; }
.art-prose section > ol > li { counter-increment: q; position: relative; padding-left: 2.75rem; margin-bottom: 0.85rem; color: var(--text); font-weight: 400; }
.art-prose section > ol > li::before {
    content: counter(q); position: absolute; left: 0; top: 0.12em;
    width: 1.85rem; height: 1.85rem; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700;
    color: var(--np-text-acc); border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.06);
}
[data-theme^="light"] .art-prose section > ol > li::before { border-color: rgba(var(--acc-rgb), 0.35); background: rgba(var(--acc-rgb), 0.07); }

/* Cartes non cliquables : pas d'effet de survol */
.card.art-static:hover { transform: none; border-color: rgba(148, 163, 184, 0.10); box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 10px 24px -18px rgba(0,0,0,0.7); }
[data-theme^="light"] .card.art-static:hover { border-color: rgba(28, 27, 23, 0.10); box-shadow: 0 1px 2px rgba(28,27,23,0.03), 0 12px 28px -20px rgba(28,27,23,0.14); }

/* Organisateurs : logos sur pastille blanche, lisibles dans les trois thèmes */
.art-orgs__label {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.5rem;
}
.art-orgs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.art-orgs__logo {
    display: flex; align-items: center; justify-content: center;
    height: 48px; padding: 6px 12px; border-radius: 10px; background: #FFFFFF;
    border: 1px solid rgba(148, 163, 184, 0.14);
}
[data-theme^="light"] .art-orgs__logo { border-color: rgba(28, 27, 23, 0.12); }
.art-orgs__logo img { height: 36px; width: auto; }

/* Figures */
.art-figure { margin: 0; }
.art-figure img { border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.14); }
[data-theme^="light"] .art-figure img { border-color: rgba(28, 27, 23, 0.10); }
.art-figure figcaption { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 0.65rem; font-weight: 300; }
.art-figure--float { max-width: 260px; margin: 0.25rem auto 1.75rem; }
@media (min-width: 640px) {
    .art-figure--float { float: right; width: 240px; margin: 0.35rem 0 1.25rem 1.75rem; }
}

/* En bref */
.art-kicker {
    display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.75rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--np-text-acc);
}
.en-bref { border-left: 3px solid var(--brand-emerald-soft) !important; }
.en-bref ul { list-style: none; padding: 0; margin: 0; }
.en-bref li {
    position: relative; padding-left: 1.3rem; margin-bottom: 0.6rem;
    font-size: 16px; line-height: 1.65; color: var(--text); font-weight: 400;
}
.en-bref li:last-child { margin-bottom: 0; }
.en-bref li::before {
    content: ""; position: absolute; left: 0.15rem; top: 0.66em;
    width: 6px; height: 6px; border-radius: 999px; background: var(--brand-emerald-soft);
}

/* Chiffres */
.art-stats { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 0.5rem 0 0.75rem; }
@media (min-width: 640px) { .art-stats { grid-template-columns: repeat(3, 1fr); } }
.art-stat { border-radius: 14px; padding: 1.15rem 1.2rem; }
.art-stat__num { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--np-text-acc); }
.art-stat__txt { margin-top: 0.4rem; font-size: 14px; line-height: 1.55; color: var(--muted); font-weight: 400; }
.art-note { font-size: 14px; line-height: 1.6; color: var(--muted); font-weight: 300; margin-bottom: 1.5rem; }

/* Séparateur, retour, sources */
.art-sep { border-top: 1px solid rgba(148, 163, 184, 0.16); }
[data-theme^="light"] .art-sep { border-top-color: rgba(28, 27, 23, 0.10); }
.art-back { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 15px; font-weight: 500; color: var(--muted); }
.art-back:hover { color: var(--text); }
.art-sources h2 {
    font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.75rem;
}
.art-sources ul { list-style: none; padding: 0; margin: 0; }
.art-sources li { font-size: 14px; line-height: 1.6; color: var(--muted); font-weight: 300; margin-bottom: 0.45rem; overflow-wrap: anywhere; }

/* ===== Liste des articles (carte cliquable) ===== */
.art-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
@media (min-width: 768px) { .art-card__media { aspect-ratio: auto; min-height: 320px; } }
.art-card__media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 58%; transition: transform 0.6s ease;
}
.art-card:hover .art-card__media img { transform: scale(1.03); }
/* Toute la carte est cliquable via le lien du titre (un seul lien pour les lecteurs d'écran) */
.art-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.art-card__link:focus { outline: none; }
.art-card:focus-within { outline: 2px solid var(--brand-emerald-soft); outline-offset: 3px; }
.art-card__more {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 15px; font-weight: 500; color: var(--np-text-acc);
}
.art-card:hover .art-card__more i, .art-card:hover .art-card__more svg { transform: translateX(3px); }
.art-card__more svg { transition: transform 0.25s ease; }
.art-chip {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--np-text-acc); border: 1px solid rgba(52, 211, 153, 0.30); background: rgba(52, 211, 153, 0.06);
}
[data-theme^="light"] .art-chip { border-color: rgba(var(--acc-rgb), 0.28); background: rgba(var(--acc-rgb), 0.07); }
@media (prefers-reduced-motion: reduce) {
    .art-card__media img, .art-card__more svg { transition: none; }
    .art-card:hover .art-card__media img, .art-card:hover .art-card__more svg { transform: none; }
}
