/* =========================================================
   Pages de contenu (guides, questions frequentes)
   Encre sur papier, une seule colonne de lecture.
   ========================================================= */

.article {
    background: var(--paper);
    padding: 4.5rem 0 6rem;
}

.article-body {
    max-width: 42rem;
}

.article-lede {
    font-size: var(--text-lg);
    color: var(--ink-2);
    max-width: 60ch;
    margin-bottom: 2.5rem;
}

.article-body h2 {
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    margin: 3.25rem 0 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rule);
    max-width: 24ch;
}

.article-body h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.article-body h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 1.75rem 0 .5rem;
}

.article-body p {
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.article-body strong {
    color: var(--ink);
    font-weight: 500;
}

.article-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.article-body ul li {
    color: var(--muted);
    font-size: var(--text-sm);
    padding: .3rem 0 .3rem 1.4rem;
    position: relative;
}

.article-body ul li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--ink-2);
}

/* Le tableau de prix : la reponse que les gens viennent chercher */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
}

.price-table th,
.price-table td {
    text-align: left;
    padding: .85rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: var(--text-sm);
}

.price-table th {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--ink);
}

.price-table td:first-child {
    color: var(--ink);
    font-weight: 500;
}

.price-table td:last-child,
.price-table th:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.source-note {
    font-size: var(--text-xs);
    color: var(--muted);
    border-top: 1px solid var(--rule);
    padding-top: .85rem;
    margin-top: 2rem;
}

.source-note a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--rule);
}

.article-cta {
    border-top: 2px solid var(--ink);
    margin-top: 3.5rem;
    padding-top: 1.75rem;
}

.article-cta p {
    max-width: 52ch;
}

@media (max-width: 768px) {
    .article { padding: 3rem 0 4rem; }
}

/* =========================================================
   Colonne de lecture + sommaire ancre en marge
   ========================================================= */

.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 42rem) 16rem;
    justify-content: space-between;
    column-gap: 4rem;
    align-items: start;
}

.article-grid > .article-lede { grid-column: 1; grid-row: 1; }
.article-grid > .article-body { grid-column: 1; grid-row: 2; }

.article-grid > .article-toc {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 6.5rem;
    border-top: 2px solid var(--ink);
    padding-top: .9rem;
}

.article-toc h2 {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 .75rem;
    padding: 0;
    border: 0;
}

.article-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.article-toc li {
    counter-increment: toc;
    display: flex;
    gap: .7rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--rule);
}

.article-toc li::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--muted);
    flex: none;
    padding-top: .1em;
}

.article-toc a {
    font-size: var(--text-sm);
    color: var(--ink-2);
    line-height: 1.35;
}

.article-toc a:hover { color: var(--ink); }

/* Le header est sticky : on decale les ancres pour qu'il ne recouvre pas le titre */
.article-body h2[id] { scroll-margin-top: 6rem; }

@media (max-width: 1024px) {
    .article-grid {
        display: block;
    }
    .article-grid > .article-toc {
        position: static;
        margin-bottom: 2.5rem;
        max-width: 42rem;
    }
}

/* Le bloc final porte deja son filet epais : pas de second filet sur son titre */
.article-cta h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
