/* Guides : les deux polices et la vague de l’accueil, au service de la lecture. */
html:has(.article-page), body:has(.article-page) { overflow-x: clip; }
.article-page { color: #172126; }
.article-page *, .article-page *::before, .article-page *::after { box-sizing: border-box; }
.article-masthead { position: relative; padding: 126px 0 64px; background: #f5fbfc; }
.article-masthead-inner, .article-reading-layout, .article-related, .article-newsletter { width: calc(100% - 80px); max-width: 1120px; margin-inline: auto; }
.article-breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8125rem; line-height: 1.6; margin-bottom: 32px; }
.article-breadcrumbs a { color: #54666d; text-decoration: none; }
.article-breadcrumbs a:hover { color: #007f9c; text-decoration: underline; text-underline-offset: 4px; }
.article-breadcrumbs > span { color: #9ab0b6; }
.article-kicker, .article-section-label { color: #007f9c; font-size: .8125rem; font-weight: 600; line-height: 1.6; }
.article-kicker { margin: 0 0 16px; }
.article-kicker > span { margin-inline: 9px; color: #8bbcc6; }
.article-masthead h1 { max-width: 940px; margin: 0 0 28px; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.16; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: #5b6b71; font-size: .8125rem; line-height: 1.6; }
.article-author { display: inline-flex; align-items: center; gap: 9px; color: #263d45; font-weight: 500; }
.article-author img { width: 28px; height: 28px; object-fit: contain; }
.article-masthead-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 36px; pointer-events: none; }
.article-reading-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 72px; justify-content: center; align-items: start; padding-top: 40px; }
.article-sidebar { position: sticky; top: 108px; padding-top: 8px; max-height: calc(100vh - 135px); overflow-y: auto; scrollbar-width: thin; }
.article-toc-mobile { display: none; }
.article-toc-label { margin: 0 0 18px; font-size: .8125rem; font-weight: 600; color: #263d45; }
.article-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid #d5e7eb; counter-reset: guide-section; }
.article-toc li { counter-increment: guide-section; }
.article-toc a { display: grid; grid-template-columns: 20px 1fr; gap: 9px; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: #5b6b71; font-size: .8125rem; line-height: 1.6; text-decoration: none; }
.article-toc a::before { content: counter(guide-section, decimal-leading-zero); font-size: .6875rem; padding-top: 2px; color: #668f99; font-variant-numeric: tabular-nums; }
.article-toc a:hover { border-left-color: #00a2c7; color: #007f9c; background: #f4fbfc; }
.article-back-link { display: inline-block; margin: 24px 0 0 17px; color: #007f9c; text-underline-offset: 4px; font-size: .8125rem; }
.article-reading-column { min-width: 0; grid-column: 2; }
.article-content { font-size: 1.125rem; line-height: 1.8; overflow-wrap: anywhere; }
.article-content p, .article-content li, .article-content strong, .article-content em, .article-content td, .article-content th, .article-content blockquote, .article-content p a, .article-content li a { font-family: 'PTSans', sans-serif; }
.article-content p { margin: 0 0 22px; text-align: left; color: #3e4c52; font-size: 1.125rem; line-height: 1.8; }
.article-content > article > p:first-child, .article-content > p:first-child { font-size: 1.3rem; line-height: 1.65; color: #263d45; margin-bottom: 24px; }
.article-content h2 { margin: 48px 0 20px; padding-top: 26px; border-top: 1px solid #dce8ea; font-size: clamp(1.45rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1.35; letter-spacing: -.025em; text-align: left; }
.article-content h3 { margin: 30px 0 12px; font-size: 1.125rem; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; text-align: left; }
.article-content strong { font-weight: 700; color: #263d45; }
.article-content a { color: #007f9c; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-content a:hover { color: #005f75; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 20px 0 26px; color: #3e4c52; }
.article-content li { padding-left: 5px; margin: 9px 0; line-height: 1.7; }
.article-content li::marker { color: #0088a6; }
.article-content img { max-width: 100%; height: auto; }
.article-content blockquote { margin: 28px 0; padding: 18px 24px; border-left: 3px solid #00a2c7; background: #f0fafc; color: #263d45; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content section[aria-labelledby*="exemple"] > ul { list-style: none; padding: 4px 24px; border-left: 3px solid #00a2c7; background: #f0fafc; }
.article-content section[aria-labelledby*="exemple"] > ul > li { padding: 14px 0; margin: 0; }
.article-content section[aria-labelledby*="exemple"] > ul > li + li { border-top: 1px solid #cee8ed; }
.article-table-scroll { width: 100%; overflow-x: auto; margin: 28px 0; border: 1px solid #dce8ea; border-radius: 6px; }
.article-content table { border-collapse: collapse; width: 100%; font-size: 1rem; text-align: left; line-height: 1.6; }
.article-content th, .article-content td { padding: 16px 18px; min-width: 155px; vertical-align: top; border-bottom: 1px solid #dce8ea; }
.article-content th { background: #eaf7fa; color: #263d45; font-weight: 700; }
.article-content tr:last-child td { border-bottom: 0; }
.article-content tbody tr:nth-child(even) { background: #f8fbfc; }
.article-page [id] { scroll-margin-top: 110px; }
.article-page a:focus-visible, .article-page summary:focus-visible, .article-table-scroll:focus-visible { outline: 3px solid #0088a6; outline-offset: 4px; }
.article-page .article-faq { margin-top: 56px; padding: 0; border: 0; border-radius: 0; background: none; }
.article-section-label { margin: 0 0 12px; }
.article-page .article-faq h2 { margin: 0 0 24px; font-size: 1.8rem; font-weight: 600; letter-spacing: -.025em; }
.article-page .article-faq-item { padding: 0; margin: 0; border: 0; border-top: 1px solid #dce8ea; border-radius: 0; box-shadow: none; background: none; }
.article-page .article-faq-item:last-child { border-bottom: 1px solid #dce8ea; }
.article-page .article-faq-item summary { padding: 20px 0; font-size: .9375rem; line-height: 1.6; font-weight: 600; }
.article-page .article-faq-item p { padding-right: 28px; color: #3e4c52; }
.article-product-invite { margin-top: 56px; padding: 30px 0 0; border-top: 2px solid #00a2c7; }
.article-product-invite h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.3; font-weight: 600; letter-spacing: -.03em; }
.article-product-invite > p:not(.article-section-label) { color: #5b6b71; line-height: 1.7; margin: 0 0 24px; }
.article-product-invite > span { display: block; margin-top: 14px; color: #5b6b71; font-size: .8125rem; }
.article-related { margin-top: 88px; padding-top: 36px; border-top: 1px solid #dce8ea; }
.article-related-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.article-related-heading h2 { margin: 0; font-weight: 600; font-size: 1.8rem; line-height: 1.3; letter-spacing: -.025em; }
.article-related-heading > a { flex-shrink: 0; font-size: .875rem; }
.article-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article-related-link { position: relative; display: block; padding: 24px 26px 36px 0; border-top: 2px solid #b5e3eb; text-decoration: none; color: #263d45; }
.article-related-link:hover { border-top-color: #00a2c7; color: #007f9c; }
.article-related-link h3 { font-size: 1.15rem; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.article-related-arrow { position: absolute; right: 0; bottom: 8px; font-size: 1.5rem; color: #007f9c; }
.article-simulator-link { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #dce8ea; color: #5b6b71; font-size: .875rem; line-height: 1.7; text-decoration: none; }
.article-simulator-link > span { color: #007f9c; text-decoration: underline; text-underline-offset: 4px; }
.article-newsletter { margin-top: 72px; margin-bottom: 64px; }
.article-newsletter .newsletter-card { width: 100%; max-width: none; margin: 0; box-shadow: none; background: #f5fbfc; border: 1px solid #dce8ea; }
@media (max-width: 1000px) {
    .article-reading-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 36px; }
    .article-masthead-inner, .article-reading-layout, .article-related, .article-newsletter { width: calc(100% - 48px); }
}
@media (max-width: 760px) {
    .article-masthead { padding-top: 108px; padding-bottom: 52px; }
    .article-breadcrumbs { margin-bottom: 24px; }
    .article-masthead h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
    .article-reading-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 20px; }
    .article-reading-column { grid-column: 1; }
    .article-sidebar { position: static; max-height: none; padding: 0 0 24px; border-bottom: 1px solid #dce8ea; overflow: visible; }
    .article-toc-desktop { display: none; }
    .article-toc-mobile { display: block; }
    .article-toc-mobile summary { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 600; font-size: .875rem; }
    .article-toc-mobile summary::-webkit-details-marker { display: none; }
    .article-toc-mobile summary > span { margin-left: auto; font-size: .75rem; font-weight: 400; color: #5b6b71; }
    .article-toc-mobile summary::after { content: '+'; color: #007f9c; }
    .article-toc-mobile[open] summary::after { content: '−'; }
    .article-toc-mobile[open] nav { margin-top: 16px; }
    .article-toc ol { columns: 2; column-gap: 24px; border-left: 0; }
    .article-toc li { break-inside: avoid; }
    .article-toc a { padding-left: 0; border: 0; }
    .article-back-link { display: none; }
    .article-related-grid { gap: 20px; }
    .article-related-link h3 { font-size: 1rem; }
}
@media (max-width: 480px) {
    .article-masthead-inner, .article-reading-layout, .article-related, .article-newsletter { width: calc(100% - 40px); }
    .article-byline { gap: 10px 18px; }
    .article-author { flex-basis: 100%; }
    .article-toc ol { columns: 1; }
    .article-toc a { padding-block: 6px; }
    .article-content, .article-content p { font-size: 1.0625rem; }
    .article-content > article > p:first-child, .article-content > p:first-child { font-size: 1.18rem; }
    .article-content h2 { margin-top: 36px; padding-top: 22px; }
    .article-content blockquote { padding: 16px; }
    .article-related { margin-top: 56px; }
    .article-related-heading { display: block; }
    .article-related-heading > a { display: inline-block; margin-top: 18px; }
    .article-related-grid { grid-template-columns: 1fr; gap: 4px; }
    .article-related-link { padding-bottom: 24px; }
    .article-simulator-link { flex-direction: column; gap: 8px; }
    .article-product-invite .home-button { width: 100%; }
}

/* Liste des guides : une ouverture éditoriale, puis des articles séparés par un filet. */
.articles-page .articles-grid { gap: 36px 40px; }
.articles-page .articles-card { padding: 26px 0 0; border: 0; border-top: 1px solid #dce8ea; border-radius: 0; }
.articles-page .articles-card:hover { border-top-color: #00a2c7; }
.articles-card-heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 18px; }
.articles-card-heading .articles-category { margin: 0; font-weight: 600; }
.articles-card-number { color: #638f99; font-size: .75rem; font-variant-numeric: tabular-nums; }
.articles-page .articles-card--lead { grid-column: 1 / -1; padding: 32px 36px; border-top: 2px solid #00a2c7; background: #f0fafc; }
.articles-card--lead h3 { max-width: 850px; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; letter-spacing: -.03em; }
.articles-card--lead > p { max-width: 740px; }
.articles-card--lead .articles-card-bottom { border-top-color: #cce5eb; }
@media (max-width: 650px) {
    .articles-page .articles-card--lead { padding: 24px; }
    .articles-page .articles-grid { gap: 28px; }
}
