/* ================================================================
   Caisse Pages : modèles du site (articles, pages, blog, archives, recherche, 404)
   Les variables sont réglées dans l'onglet Contenu (voir <style id="sa-vars">).
   ================================================================ */
body.sa-site { margin: 0; background: var(--sa-bg); color: var(--sa-text); font-family: var(--sa-font); font-size: 16px; -webkit-font-smoothing: antialiased; }
.sa-site *, .sa-site *::before, .sa-site *::after { box-sizing: border-box; }
.sa-site img { max-width: 100%; height: auto; }
.sa-site .ic, .sa-site .lucide { width: 18px; height: 18px; flex: none; }
.sa-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sa-site h1, .sa-site h2, .sa-site h3, .sa-site h4 { font-family: var(--sa-hfont); color: var(--sa-heading); font-weight: var(--sa-hweight); }
.sa-site a { color: inherit; }
.sa-site :focus-visible { outline: 2px solid var(--sa-accent); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Barre de progression */
.sa-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--sa-heading); z-index: 99999; }

/* Boutons */
.sa-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--sa-btn-radius); font: 600 14.5px var(--sa-font); text-decoration: none !important; cursor: pointer; border: 0; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.sa-b svg { width: 17px; height: 17px; }
.sa-b-dark { background: var(--sa-btn); color: var(--sa-btn-text) !important; }
.sa-b-dark:hover { opacity: .88; }
.sa-b-light { background: var(--sa-bg); color: var(--sa-heading) !important; }
.sa-b-light:hover { background: #fff; }
.sa-b-ghost { border: 1px solid rgba(250,250,250,.22); color: #FAFAFA !important; background: transparent; }
.sa-b-ghost:hover { border-color: rgba(250,250,250,.5); }
.sa-b-line { background: var(--sa-surface); border: 1px solid var(--sa-line); color: var(--sa-heading) !important; }
.sa-b-line:hover { border-color: var(--sa-heading); }

/* Fil d'Ariane (intégré et Rank Math) */
.sa-crumbs, .sa-crumbs .rank-math-breadcrumb p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--sa-muted); }
.sa-crumbs a { color: var(--sa-muted); text-decoration: none; transition: color .2s; }
.sa-crumbs a:hover { color: var(--sa-heading); }
.sa-crumbs svg { width: 14px; height: 14px; color: #B8BBC0; }
.sa-crumbs .separator { color: #B8BBC0; padding: 0 2px; }
.sa-crumbs .last { color: var(--sa-heading); }

/* ---------- En-tête d'article ---------- */
.sa-a-head { padding: 34px 0 0; }
.sa-a-title { max-width: 900px; margin: 30px auto 0; }
.sa-a-title.is-center { text-align: center; }
.sa-cat { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: var(--sa-btn-r, 8px); background: var(--sa-surface); border: 1px solid var(--sa-line); color: var(--sa-heading) !important; font-size: 13px; font-weight: 500; text-decoration: none; transition: border-color .2s; }
.sa-cat:hover { border-color: var(--sa-heading); }
.sa-cat i { width: 7px; height: 7px; border-radius: 50%; background: var(--sa-accent); }
.sa-cat.is-text { height: auto; padding: 0; border: 0; background: none; color: var(--sa-accent) !important; font-weight: 600; letter-spacing: .02em; }
.sa-cat.is-text i { display: none; }
.sa-a-title h1 { margin: 20px 0 0; font-size: var(--sa-h1); line-height: 1.1; letter-spacing: -.025em; }
.sa-a-title .sa-lede { margin: 20px 0 0; font-size: 18.5px; line-height: 1.65; color: var(--sa-muted); }
.sa-a-title.is-center .sa-lede { margin-left: auto; margin-right: auto; max-width: 680px; }
.sa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; font-size: 13.5px; color: var(--sa-muted); }
.sa-a-title.is-center .sa-meta { justify-content: center; }
.sa-meta .who { display: flex; align-items: center; gap: 10px; color: var(--sa-heading); font-weight: 500; text-decoration: none; }
.sa-meta > span, .sa-meta > a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.sa-meta svg { width: 16px; height: 16px; }
.sa-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--sa-heading); color: var(--sa-bg); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; overflow: hidden; }
.sa-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-cover { margin: 40px auto 0; max-width: 1100px; }
.sa-cover img { width: 100%; aspect-ratio: var(--sa-cover-ratio, 16 / 8); object-fit: cover; border-radius: calc(var(--sa-radius) + 6px); background: var(--sa-soft); display: block; }
.sa-cover figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--sa-muted); }

/* ---------- Mise en page article ---------- */
.sa-a-grid { display: grid; grid-template-columns: minmax(0, var(--sa-measure)) 300px; justify-content: center; gap: 72px; margin-top: 56px; }
.sa-a-grid.no-side { grid-template-columns: minmax(0, var(--sa-measure)); }
.sa-side-in { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.sa-toc { background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: 22px; }
.sa-toc-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sa-muted); margin: 0 0 12px; }
.sa-toc-h b { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; }
.sa-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sa-line); max-height: 52vh; overflow-y: auto; scrollbar-width: thin; }
.sa-toc li a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.45; color: var(--sa-muted); text-decoration: none; transition: color .2s, border-color .2s; }
.sa-toc li.lv3 a { padding-left: 28px; font-size: 13px; }
.sa-toc li a:hover { color: var(--sa-heading); }
.sa-toc li a.on { color: var(--sa-heading); font-weight: 500; border-left-color: var(--sa-heading); }
.sa-side-cta { background: var(--sa-heading); color: #FAFAFA; border-radius: var(--sa-radius); padding: 24px; position: relative; overflow: hidden; }
.sa-side-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 1px dashed rgba(250,250,250,.18); pointer-events: none; }
.sa-ib { width: 42px; height: 42px; border-radius: 13px; background: rgba(250,250,250,.1); display: grid; place-items: center; }
.sa-side-cta h3 { margin: 16px 0 6px; font-size: 18px; line-height: 1.3; color: #fff; }
.sa-side-cta p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #A9ADB4; }
.sa-side-cta .btns { display: grid; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.sa-toc-m { display: none; margin: 0 0 2em; }
.sa-toc-m details { background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm); }
.sa-toc-m summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-size: 14.5px; font-weight: 600; color: var(--sa-heading); }
.sa-toc-m summary::-webkit-details-marker { display: none; }
.sa-toc-m summary svg { transition: transform .25s; }
.sa-toc-m details[open] summary svg { transform: rotate(180deg); }
.sa-toc-m ol { margin: 0; padding: 0 18px 14px; list-style: none; }
.sa-toc-m li a { display: block; padding: 8px 0; font-size: 14.5px; color: var(--sa-text); text-decoration: none; border-top: 1px solid var(--sa-line); }
.sa-toc-m li.lv3 a { padding-left: 14px; font-size: 14px; }

/* ---------- Texte (contenu de l'éditeur) ---------- */
.sa-prose { font-size: var(--sa-size); line-height: var(--sa-leading); color: var(--sa-text); min-width: 0; overflow-wrap: break-word; }
.sa-prose > *:first-child { margin-top: 0; }
.sa-prose p { margin: 0 0 1.25em; }
.sa-prose h2 { margin: 2.1em 0 .7em; font-size: var(--sa-h2); line-height: 1.25; letter-spacing: -.015em; scroll-margin-top: 96px; }
.sa-prose h3 { margin: 1.8em 0 .55em; font-size: var(--sa-h3); line-height: 1.35; scroll-margin-top: 96px; }
.sa-prose h4 { margin: 1.6em 0 .5em; font-size: 1.05em; }
.sa-prose a { color: var(--sa-link); text-decoration: var(--sa-link-deco); text-decoration-color: var(--sa-link-line); text-decoration-thickness: 1.5px; text-underline-offset: 4px; font-weight: 500; transition: color .2s; }
.sa-prose a:hover { color: var(--sa-link-hover); }
.sa-prose strong, .sa-prose b { color: var(--sa-heading); font-weight: 600; }
.sa-prose ul, .sa-prose ol { margin: 0 0 1.4em; padding: 0; list-style: none; }
.sa-prose ul li, .sa-prose ol li { position: relative; padding-left: 34px; margin: 0 0 .6em; }
.sa-prose ul li::before { content: ""; position: absolute; left: 10px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--sa-heading); }
.sa-prose ol { counter-reset: n; }
.sa-prose ol li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--sa-soft); color: var(--sa-heading); font-size: 12.5px; font-weight: 600; line-height: 24px; text-align: center; }
.sa-prose li > ul, .sa-prose li > ol { margin: .6em 0 0; }
.sa-prose blockquote, .sa-prose .wp-block-quote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--sa-heading); font-size: 1.12em; line-height: 1.6; color: var(--sa-heading); font-weight: 500; }
.sa-prose blockquote p { margin: 0 0 .5em; }
.sa-prose blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; font-weight: 400; color: var(--sa-muted); }
.sa-prose .wp-block-pullquote { margin: 2.4em 0; padding: 30px; border: 0; border-radius: var(--sa-radius); background: var(--sa-surface); border: 1px solid var(--sa-line); text-align: center; }
.sa-prose .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.sa-prose figure, .sa-prose .wp-block-image { margin: 2.2em 0; }
.sa-prose figure img, .sa-prose .wp-block-image img { border-radius: var(--sa-radius); display: block; }
.sa-prose figcaption, .sa-prose .wp-element-caption { margin-top: 10px; font-size: 13.5px; color: var(--sa-muted); text-align: center; }
.sa-prose hr, .sa-prose .wp-block-separator { border: 0; height: 1px; background: var(--sa-line); margin: 2.6em 0; }
.sa-prose code { font-size: .88em; background: var(--sa-soft); padding: 2px 7px; border-radius: 6px; }
.sa-prose pre { background: var(--sa-heading); color: #EDEDED; padding: 20px; border-radius: var(--sa-radius-sm); overflow-x: auto; font-size: 14px; }
.sa-prose pre code { background: none; padding: 0; }
.sa-prose iframe, .sa-prose .wp-block-embed { max-width: 100%; }
.sa-prose .wp-block-embed iframe, .sa-prose .wp-block-video video { border-radius: var(--sa-radius); width: 100%; }
.sa-prose .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.sa-prose .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; height: 100%; }
.sa-prose .alignwide { margin-left: -80px; margin-right: -80px; }
.sa-prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.sa-prose .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.sa-prose .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
/* Tableaux */
.sa-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.sa-prose .wp-block-table, .sa-prose .sa-table { margin: 2em 0; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); background: var(--sa-surface); overflow-x: auto; }
.sa-prose .wp-block-table table { border: 0; }
.sa-prose th { text-align: left; padding: 14px 18px; background: var(--sa-soft); color: var(--sa-heading); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 0; }
.sa-prose td { padding: 14px 18px; border: 0; border-top: 1px solid var(--sa-line); vertical-align: top; }
.sa-prose .wp-block-table thead { border: 0; }
.sa-prose .wp-block-table figcaption { padding: 12px 18px; margin: 0; border-top: 1px solid var(--sa-line); font-size: 13px; text-align: left; }
.sa-prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--sa-soft); }
/* FAQ : bloc « Détails » de l'éditeur */
.sa-prose details, .sa-prose .wp-block-details { margin: 0 0 10px; border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm); background: var(--sa-surface); transition: border-color .2s; }
.sa-prose details[open] { border-color: #CFD0D4; }
.sa-prose summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 16px; font-weight: 500; color: var(--sa-heading); line-height: 1.45; }
.sa-prose summary::-webkit-details-marker { display: none; }
.sa-prose summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--sa-muted); transition: transform .25s; line-height: 1; }
.sa-prose details[open] summary::after { transform: rotate(45deg); }
.sa-prose details > *:not(summary) { margin: 0; padding: 0 20px 18px; font-size: .94em; }
/* Boutons de l'éditeur */
.sa-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.6em 0; }
.sa-prose .wp-block-button__link { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: var(--sa-btn-radius); background: var(--sa-btn); color: var(--sa-btn-text) !important; text-decoration: none !important; font-weight: 600; font-size: 15px; }
.sa-prose .is-style-outline .wp-block-button__link { background: transparent; border: 1px solid var(--sa-heading); color: var(--sa-heading) !important; }
/* Styles de blocs Caisse Pages (menu « Styles » de l'éditeur) */
.sa-prose .is-style-sa-key { margin: 0 0 2.2em; padding: 26px 28px; border-radius: var(--sa-radius); background: var(--sa-surface); border: 1px solid var(--sa-line); }
.sa-prose .is-style-sa-key > *:last-child { margin-bottom: 0; }
.sa-prose .is-style-sa-note, .sa-prose .is-style-sa-warn { margin: 2em 0; padding: 20px 22px 20px 52px; border-radius: var(--sa-radius-sm); background: var(--sa-soft); font-size: .93em; line-height: 1.7; position: relative; }
.sa-prose .is-style-sa-note::before, .sa-prose .is-style-sa-warn::before { content: "i"; position: absolute; left: 20px; top: 21px; width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--sa-heading); font: 600 11px/17px var(--sa-font); text-align: center; color: var(--sa-heading); }
.sa-prose .is-style-sa-warn { background: #FBF6EA; }
.sa-prose .is-style-sa-warn::before { content: "!"; border-color: #B7791F; color: #B7791F; }
.sa-prose .is-style-sa-dark { margin: 2.4em 0; padding: 26px 28px; border-radius: var(--sa-radius); background: var(--sa-heading); color: #D8DADE; }
.sa-prose .is-style-sa-dark h2, .sa-prose .is-style-sa-dark h3, .sa-prose .is-style-sa-dark strong { color: #fff; }
.sa-prose .is-style-sa-dark a { color: #fff; }
.sa-prose::after { content: ""; display: table; clear: both; }

/* Encart de conversion inséré dans l'article */
.sa-in-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin: 2.4em 0; padding: 24px 26px; border-radius: var(--sa-radius); background: var(--sa-heading); color: #FAFAFA; font-size: 16px; line-height: 1.5; }
.sa-in-cta .sa-ib { width: 52px; height: 52px; border-radius: 16px; }
.sa-in-cta .sa-ib svg { width: 22px; height: 22px; }
.sa-in-cta b { display: block; font-size: 17px; line-height: 1.35; color: #fff; }
.sa-in-cta span.t { display: block; font-size: 13.5px; color: #A9ADB4; line-height: 1.55; margin-top: 3px; }
.sa-prose .sa-in-cta a.sa-b { text-decoration: none; font-weight: 600; color: var(--sa-heading) !important; }

.sa-updated { display: flex; align-items: center; gap: 8px; margin-top: 2.4em; font-size: 13.5px; color: var(--sa-muted); }
.sa-updated svg { width: 16px; height: 16px; }

/* Publicités */
.sa-ad { margin: 32px 0; text-align: center; min-height: var(--sa-ad-h, 0px); }
.sa-ad.al-left { text-align: left; }
.sa-ad.al-right { text-align: right; }
.sa-ad-label { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #A3A6AB; }
.sa-ad-ph { display: grid; place-items: center; gap: 4px; min-height: max(90px, var(--sa-ad-h, 90px)); padding: 16px; border: 1px dashed #D4D5D9; border-radius: var(--sa-radius-sm); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(18,18,18,.02) 10px 20px); color: #9A9DA2; font: 12px var(--sa-font); text-align: center; }
.sa-ad-ph b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.sa-side-in .sa-ad { margin: 0; }
.sa-ad-site { margin: 18px auto; max-width: 1240px; padding: 0 24px; }
@media (min-width: 769px) { .sa-ad.only-mobile { display: none; } }
@media (max-width: 768px) { .sa-ad.only-desktop { display: none; } }

/* ---------- Fin d'article ---------- */
.sa-a-end { margin-top: 40px; display: grid; gap: 28px; }
.sa-tags-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--sa-line); border-bottom: 1px solid var(--sa-line); }
.sa-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-tags a { height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: var(--sa-btn-r, 8px); background: var(--sa-surface); border: 1px solid var(--sa-line); color: var(--sa-text); font-size: 13px; text-decoration: none; transition: border-color .2s, color .2s; }
.sa-tags a:hover { border-color: var(--sa-heading); color: var(--sa-heading); }
.sa-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--sa-muted); }
.sa-share a, .sa-share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sa-line); background: var(--sa-surface); color: var(--sa-heading); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; padding: 0; }
.sa-share a:hover, .sa-share button:hover { background: var(--sa-soft); border-color: #CFD0D4; }
.sa-share svg { width: 16px; height: 16px; }
.sa-share .copied { background: var(--sa-heading); color: #fff; border-color: var(--sa-heading); }
.sa-author { display: flex; gap: 20px; padding: 26px; border-radius: var(--sa-radius); background: var(--sa-surface); border: 1px solid var(--sa-line); }
.sa-author .sa-avatar { width: 64px; height: 64px; font-size: 18px; border-radius: 20px; }
.sa-author small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sa-muted); }
.sa-author h3 { margin: 4px 0 2px; font-size: 18px; }
.sa-author .role { display: block; font-size: 13px; color: var(--sa-muted); margin-bottom: 6px; }
.sa-author p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.7; }
.sa-author .links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: 13.5px; }
.sa-author .links > a { color: var(--sa-heading); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sa-author .links svg { width: 16px; height: 16px; }
.sa-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-socials a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sa-soft); color: var(--sa-heading); transition: background .2s, color .2s; }
.sa-socials a:hover { background: var(--sa-heading); color: #fff; }
.sa-socials svg { width: 15px; height: 15px; }

/* Cartes d'articles (similaires, blog, archives) */
.sa-sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 28px; }
.sa-sec-h h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }
.sa-sec-h a { font-size: 14px; font-weight: 500; color: var(--sa-heading); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sa-sec-h a svg { width: 16px; height: 16px; }
.sa-related { margin-top: 90px; padding-top: 72px; border-top: 1px solid var(--sa-line); }
.sa-cards { display: grid; grid-template-columns: repeat(var(--sa-cols, 3), minmax(0, 1fr)); gap: 22px; grid-auto-flow: row dense; }
.sa-card { display: flex; flex-direction: column; background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s; }
.sa-card:hover { border-color: #CFD0D4; }
.sa-card .thumb { aspect-ratio: 16 / 10; background: var(--sa-soft); overflow: hidden; display: block; }
.sa-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.sa-card:hover .thumb img { transform: scale(1.03); }
.sa-card .thumb.empty { display: grid; place-items: center; color: #C4C6CA; }
.sa-card .thumb.empty svg { width: 34px; height: 34px; }
.sa-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sa-card .k { font-size: 12px; font-weight: 600; color: var(--sa-accent); }
.sa-card h3 { margin: 0; font-family: var(--sa-card-t-font, var(--sa-hfont)); font-size: var(--sa-card-t-size, 18px); line-height: 1.35; font-weight: var(--sa-card-t-weight, 600); letter-spacing: -.02em; color: var(--sa-heading); }
.sa-card .k.is-badge { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--sa-btn-r, 8px); background: color-mix(in srgb, var(--sa-accent) 10%, #fff); color: var(--sa-accent); font-size: 12px; font-weight: 500; line-height: 1; }
.sa-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--sa-muted); }
.sa-card .m { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--sa-muted); border-top: 1px solid var(--sa-line); }
.sa-card .m .who { display: inline-flex; align-items: center; gap: 8px; color: var(--sa-heading); font-weight: 500; margin-right: auto; }
.sa-card .m .i { display: inline-flex; align-items: center; gap: 5px; }
.sa-card .m svg { width: 14px; height: 14px; }
.sa-card .sa-m-av { width: 24px; height: 24px; font-size: 9.5px; }
.sa-list-tools { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 30px; }
.sa-list-tools .sa-chips { margin: 0; flex: 1; min-width: 0; }
.sa-cols-switch { flex: none; display: inline-flex; gap: 4px; padding: 4px; margin-left: auto; border-radius: var(--sa-btn-r, 8px); background: var(--sa-surface); border: 1px solid var(--sa-line); }
.sa-cols-switch button { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--sa-btn-r, 8px); background: none; color: var(--sa-muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.sa-cols-switch button svg { width: 15px; height: 15px; }
.sa-cols-switch button[aria-pressed="true"] { background: var(--sa-heading); color: var(--sa-bg); }
.sa-cards.is-list { grid-template-columns: 1fr; }
.sa-cards.is-list .sa-card { flex-direction: row; }
.sa-cards.is-list .thumb { width: 300px; flex: none; aspect-ratio: auto; min-height: 190px; }
.sa-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
.sa-card.is-featured .thumb { width: 48%; flex: none; aspect-ratio: auto; min-height: 260px; max-height: 360px; }
.sa-card.is-featured .body { padding: 30px; justify-content: center; gap: 14px; }
.sa-card.is-featured h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.015em; }
.sa-card.is-featured p { font-size: 15.5px; }
.sa-ad-card { grid-column: 1 / -1; }
.sa-ad-card .sa-ad { margin: 0; }

/* Commentaires */
.sa-comments { max-width: var(--sa-measure); margin: 90px auto 0; }
.sa-c-list, .sa-c-list .children { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sa-c-list { margin-bottom: 30px; }
.sa-c-list .children { margin: 14px 0 0 52px; }
.sa-c-item { display: flex; gap: 14px; padding: 20px; border-radius: var(--sa-radius); background: var(--sa-surface); border: 1px solid var(--sa-line); }
.sa-c-item .sa-avatar { width: 40px; height: 40px; font-size: 13px; background: var(--sa-soft); color: var(--sa-heading); }
.sa-c-item.is-team .sa-avatar { background: var(--sa-heading); color: var(--sa-bg); }
.sa-c-main { min-width: 0; flex: 1; }
.sa-c-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--sa-muted); }
.sa-c-top b { font-size: 14.5px; color: var(--sa-heading); font-weight: 600; }
.sa-c-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--sa-btn-r, 8px); background: var(--sa-heading); color: var(--sa-bg); }
.sa-c-text { font-size: 15px; line-height: 1.7; margin: 6px 0 8px; overflow-wrap: anywhere; }
.sa-c-text p { margin: 0 0 .6em; }
.sa-c-mod { font-size: 13px; color: #B7791F; }
.sa-c-item .comment-reply-link { font-size: 13px; font-weight: 500; color: var(--sa-heading); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sa-c-form, .sa-comments .comment-respond { padding: 28px; border-radius: var(--sa-radius); background: var(--sa-surface); border: 1px solid var(--sa-line); }
.sa-c-list .comment-respond { margin-top: 14px; }
.sa-comments .comment-reply-title { margin: 0 0 4px; font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sa-comments .comment-reply-title small a { font-size: 13px; font-weight: 500; color: var(--sa-muted); }
.sa-comments .comment-notes, .sa-comments .logged-in-as { margin: 0 0 18px; font-size: 13.5px; color: var(--sa-muted); }
.sa-comments .logged-in-as a { color: var(--sa-heading); }
.sa-comments .comment-form p { margin: 0 0 12px; }
.sa-comments .comment-form label { display: block; font-size: 13px; color: var(--sa-muted); margin-bottom: 6px; }
.sa-comments .sa-f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sa-comments input[type=text], .sa-comments input[type=email], .sa-comments input[type=url], .sa-comments textarea { width: 100%; font: 400 15px var(--sa-font); color: var(--sa-heading); background: var(--sa-bg); border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm); padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.sa-comments textarea { min-height: 130px; resize: vertical; display: block; }
.sa-comments input:focus, .sa-comments textarea:focus { border-color: var(--sa-accent); box-shadow: 0 0 0 4px rgba(86,103,138,.14); background: #fff; }
.sa-comments .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--sa-muted); }
.sa-comments .comment-form-cookies-consent label { margin: 0; }
.sa-comments .comment-form-cookies-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--sa-heading); }
.sa-comments .form-submit { margin: 18px 0 0 !important; }
.sa-comments .cf-turnstile { margin: 6px 0 4px; }
.sa-c-closed { padding: 18px 20px; border-radius: var(--sa-radius-sm); background: var(--sa-soft); font-size: 14px; color: var(--sa-muted); }

/* ---------- Blog, catégories, recherche ---------- */
.sa-list-head { padding: 52px 0 40px; }
.sa-list-head .sa-eyebrow { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: var(--sa-btn-r, 8px); background: var(--sa-surface); border: 1px solid var(--sa-line); color: var(--sa-heading); font-size: 13px; font-weight: 500; }
.sa-list-head .sa-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--sa-accent); }
.sa-list-head h1 { margin: 20px 0 0; font-size: var(--sa-h1-list, var(--sa-h1)); line-height: 1.1; letter-spacing: -.025em; max-width: 900px; }
.sa-list-head p { margin: 16px 0 0; max-width: 680px; font-size: 17.5px; line-height: 1.65; color: var(--sa-muted); }
.sa-list-head .sa-crumbs { margin-bottom: 22px; }
.sa-who { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.sa-who .sa-who-av { width: 56px; height: 56px; font-size: 18px; }
.sa-who-txt > strong { display: block; font-size: 15px; color: var(--sa-heading); font-weight: 600; }
.sa-who-txt > span { display: block; font-size: 13.5px; color: var(--sa-muted); margin-top: 2px; }
.sa-who-soc { margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--sa-line); }
.sa-who-soc .sa-socials { flex-wrap: nowrap; }
@media (max-width: 640px) { .sa-who-soc { margin-left: 0; padding-left: 0; border-left: 0; flex-basis: 100%; } }
.sa-who-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; max-width: 760px; }
.sa-who-topics li { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--sa-btn-r, 8px); background: var(--sa-surface); border: 1px solid var(--sa-line); font-size: 13px; color: var(--sa-text); }
.sa-list-head .count { display: block; margin-top: 14px; font-size: 13.5px; color: var(--sa-muted); }
.sa-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 30px; padding-bottom: 2px; }
.sa-chips::-webkit-scrollbar { display: none; }
.sa-chips a { flex: none; height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: var(--sa-btn-r, 8px); background: var(--sa-surface); border: 1px solid var(--sa-line); color: var(--sa-text); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.sa-chips a:hover { border-color: var(--sa-heading); color: var(--sa-heading); }
.sa-chips a.on { background: var(--sa-heading); border-color: var(--sa-heading); color: #fff; }
.sa-chips a small { font-size: 11.5px; opacity: .6; }
.sa-search-form { display: flex; gap: 8px; max-width: 560px; margin-top: 24px; }
.sa-search-form input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; font: 400 15px var(--sa-font); color: var(--sa-heading); background: var(--sa-surface); border: 1px solid var(--sa-line); border-radius: var(--sa-btn-r, 8px); outline: none; transition: border-color .2s, box-shadow .2s; }
.sa-search-form input:focus { border-color: var(--sa-accent); box-shadow: 0 0 0 4px rgba(86,103,138,.14); }
.sa-search-form .sa-b { height: 52px; }
.sa-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 52px; }
.sa-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--sa-btn-r, 8px); border: 1px solid var(--sa-line); background: var(--sa-surface); color: var(--sa-heading); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s; }
.sa-pager a.page-numbers:hover { border-color: var(--sa-heading); }
.sa-pager .page-numbers.current { background: var(--sa-heading); border-color: var(--sa-heading); color: #fff; }
.sa-pager .page-numbers.dots { border: 0; background: none; min-width: 20px; }
.sa-pager svg { width: 16px; height: 16px; }
.sa-empty { padding: 56px 28px; text-align: center; border: 1px dashed var(--sa-line); border-radius: var(--sa-radius); color: var(--sa-muted); }
.sa-empty h2 { font-size: 20px; margin: 0 0 8px; }
.sa-empty .sa-search-form { margin: 22px auto 0; }

/* ---------- Pages classiques ---------- */
.sa-page-head { padding: 52px 0 0; }
.sa-page-head.is-center { text-align: center; }
.sa-page-head.is-column { margin-left: auto; margin-right: auto; }
.sa-page-head.is-column.is-narrow { max-width: var(--sa-measure); }
.sa-page-head.is-column.is-wide { max-width: 1100px; }
.sa-page-head h1 { margin: 18px 0 0; font-size: var(--sa-h1-page, var(--sa-h1)); overflow-wrap: break-word; hyphens: auto; line-height: 1.1; letter-spacing: -.025em; }
.sa-page-head .sa-lede { margin: 16px 0 0; font-size: 18px; line-height: 1.65; color: var(--sa-muted); }
.sa-page-head.is-center .sa-lede { margin-left: auto; margin-right: auto; max-width: 680px; }
.sa-page-body { margin: 48px auto 0; }
.sa-page-body.is-narrow { max-width: var(--sa-measure); }
.sa-page-body.is-wide { max-width: 1100px; }

/* ---------- 404 ---------- */
.sa-404 { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0 20px; }
.sa-404 .big { font-size: clamp(96px, 16vw, 180px); line-height: 1; font-weight: 700; letter-spacing: -.05em; color: var(--sa-heading); }
.sa-404 h1 { margin: 10px 0 0; font-size: clamp(26px, 3.2vw, 38px); }
.sa-404 p { margin: 14px auto 0; max-width: 520px; font-size: 17px; line-height: 1.65; color: var(--sa-muted); }
.sa-404 .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.sa-404 .sa-search-form { margin: 26px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .sa-cards[style*="--sa-cols:4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sa-card .m .who { margin-right: 0; flex-basis: 100%; }
}
@media (max-width: 1100px) {
  .sa-cols-switch { display: none; }
  .sa-a-grid { grid-template-columns: minmax(0, var(--sa-measure)); gap: 0; }
  .sa-a-side { display: none; }
  .sa-toc-m { display: block; }
  .sa-cards { grid-template-columns: repeat(min(2, var(--sa-cols, 3)), minmax(0, 1fr)); }
  .sa-prose .alignwide { margin-left: 0; margin-right: 0; }
  .sa-card.is-featured .thumb { width: 50%; min-height: 280px; }
}
@media (max-width: 760px) {
  .sa-card.is-featured, .sa-cards.is-list .sa-card { flex-direction: column; }
  .sa-card.is-featured .thumb, .sa-cards.is-list .thumb { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .sa-card.is-featured .body { padding: 22px; }
}
@media (max-width: 640px) {
  body.sa-site { --sa-size: var(--sa-size-m); }
  .sa-wrap { padding: 0 16px; }
  .sa-a-head { padding-top: 18px; }
  .sa-a-title, .sa-a-title.is-center { text-align: left; margin-top: 22px; }
  .sa-a-title .sa-lede { font-size: 16.5px; }
  .sa-a-title.is-center .sa-meta { justify-content: flex-start; }
  .sa-meta { gap: 10px 16px; }
  .sa-cover { margin-top: 28px; }
  .sa-cover img { aspect-ratio: 4 / 3; border-radius: var(--sa-radius); }
  .sa-a-grid { margin-top: 34px; }
  .sa-in-cta { grid-template-columns: 1fr; padding: 22px; }
  .sa-in-cta .sa-b { width: 100%; }
  .sa-prose th, .sa-prose td { padding: 12px 14px; }
  .sa-prose .alignleft, .sa-prose .alignright { float: none; margin: 1.6em 0; max-width: 100%; }
  .sa-cards { grid-template-columns: 1fr !important; }
  .sa-author { flex-direction: column; padding: 22px; }
  .sa-c-list .children { margin-left: 18px; }
  .sa-comments .sa-f-row { grid-template-columns: 1fr; }
  .sa-tags-share { flex-direction: column; align-items: flex-start; }
  .sa-list-head { padding: 30px 0 28px; }
  .sa-page-head { padding-top: 30px; }
  .sa-page-head.is-center { text-align: left; }
}
@media print { .sa-hd, .sa-ft, .sa-a-side, .sa-ad, .sa-progress, .sa-comments, .sa-related { display: none !important; } }
/* Le sommaire mobile est dans le texte : on annule les styles de FAQ et de liste numérotée */
.sa-prose .sa-toc-m summary::after { content: none; }
.sa-prose .sa-toc-m details { margin: 0; }
.sa-prose .sa-toc-m details > ol { padding: 0 18px 14px; font-size: 1rem; }
.sa-prose .sa-toc-m li { padding-left: 0; margin: 0; }
.sa-prose .sa-toc-m li::before { display: none; }
.sa-prose .sa-toc-m li a { font-weight: 400; text-decoration: none; color: var(--sa-text); }

/* Tableaux : défilement horizontal sur petits écrans au lieu d'écraser les colonnes */
.sa-prose .wp-block-table, .sa-prose .sa-table { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.sa-prose > table { display: block; overflow-x: auto; }
@media (max-width: 760px) {
  .sa-prose table { min-width: 560px; }
  .sa-prose th, .sa-prose td { white-space: normal; }
}

/* Champ de recherche : même ligne sur mobile, bouton rond avec la loupe */
.sa-search-form input { height: 52px; flex: 1 1 auto; }
.sa-404 .sa-search-form { margin-top: 32px; }
@media (max-width: 640px) {
  .sa-search-form { gap: 8px; margin-top: 22px; }
  .sa-search-form .sa-b { width: 52px; padding: 0; font-size: 0; gap: 0; flex: none; }
  .sa-search-form .sa-b svg { width: 20px; height: 20px; }
  .sa-404 { padding-top: 48px; }
  .sa-404 .acts { gap: 8px; }
  .sa-404 .acts .sa-b { flex: 1 1 auto; }
  .sa-404 .sa-search-form { margin-top: 26px; }
}
.sa-404 > div { width: 100%; min-width: 0; }
.sa-404 .sa-search-form { width: 100%; }
