/* ══════════════════════════════════════════════════════════════════════════
   Blog Crédit — feuille de style unique (aucune ressource externe, conforme CSP).
   Palette d'origine : teal #40a798 + ivoire. Titres à empattements, texte sans.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    color-scheme: light;
    --teal:        #40a798;
    --teal-dark:   #34897c;
    --teal-deep:   #226b60;
    --teal-pale:   #eaf5f2;
    --teal-mist:   #d6ebe6;
    --ink:         #1f2d33;
    --ink-soft:    #33454d;
    --cream:       #f6ece4;
    --sand:        #d99a4e;
    --sand-dark:   #b87d34;
    --paper:       #faf8f5;
    --white:       #ffffff;
    --text:        #26333a;
    --text-muted:  #5f7178;
    --border:      #e6ded3;
    --border-teal: #bfe0d8;
    --link:        #227b6e;
    --link-hover:  #14544a;
    --shadow-sm:   0 1px 4px rgba(31,45,51,.07);
    --shadow:      0 6px 22px rgba(31,45,51,.10);
    --shadow-lg:   0 14px 40px rgba(31,45,51,.14);
    --radius:      10px;
    --radius-sm:   6px;
    --max-w:       1180px;
    --content-w:   820px;
    --serif:       'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
    --sans:        'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-heading: var(--serif);
    --font-body:    var(--sans);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--paper); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); }
h1,h2,h3,h4 { font-family: var(--font-heading); }

/* ── Top bar ── */
.top-bar { background: var(--ink); color: rgba(255,255,255,.72); font-size: .8rem; padding: .45rem 0; }
.top-bar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top-bar a { color: rgba(255,255,255,.72); }
.top-bar a:hover { color: #fff; }
.top-bar-right { display: flex; gap: 1.5rem; }

/* ── Header ── */
.site-header { background: var(--header-bg, var(--teal)); position: var(--header-position, sticky); top: 0; z-index: 510; box-shadow: 0 2px 14px rgba(31,45,51,.16); }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: var(--header-height, 80px); gap: 2rem; }
.site-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.site-logo img { display: block; width: auto; }
.logo-text { font-family: var(--serif); color: #fff; font-size: 1.3rem; line-height: 1.15; font-weight: 700; }
.logo-text span { display: block; font-size: .68rem; font-family: var(--sans); font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-top: 3px; }

/* ── Navigation ── */
.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav > li { list-style: none; position: relative; }
.site-nav > li > a { display: block; color: rgba(255,255,255,.94); font-size: .92rem; font-weight: 600; padding: .55rem 1rem; border-radius: var(--radius-sm); transition: background .18s, color .18s; letter-spacing: .01em; }
.site-nav > li > a:hover, .site-nav > li.active > a { background: rgba(255,255,255,.16); color: #fff; }
.site-nav > li.active > a { box-shadow: inset 0 -2px 0 rgba(255,255,255,.85); }

/* Dropdowns (rarement utilisés ici : menu à plat) */
.sub-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--teal); border-radius: var(--radius-sm); min-width: 210px; box-shadow: var(--shadow); list-style: none; z-index: 100; }
.sub-menu li a { display: block; padding: .6rem 1.1rem; color: var(--text); font-size: .9rem; border-bottom: 1px solid var(--border); }
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: var(--teal-pale); color: var(--teal-deep); }
.site-nav > li:hover > .sub-menu { display: block; }
.site-nav > li.has-children > a::after { content: '▾'; font-size: .6rem; margin-left: .3rem; opacity: .6; }
.sub-toggle { display: none; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background-color: #fff; border-radius: 2px; transition: .3s; forced-color-adjust: none; }

/* ── Gold/teal separator ── */
.gold-bar { height: 3px; background: linear-gradient(90deg, var(--teal-deep) 0%, var(--sand) 55%, var(--teal-mist) 100%); }

/* ── Breadcrumb ── */
.breadcrumb-wrap { background: var(--white); border-bottom: 1px solid var(--border); padding: .65rem 0; font-size: .82rem; }
.breadcrumb { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { color: var(--border-teal); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ── Hero ── */
.page-hero { background: radial-gradient(1200px 400px at 20% -10%, var(--teal-dark), transparent), linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff; padding: 4rem 1.5rem 3.5rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 12% 20%, rgba(255,255,255,.10) 0 2px, transparent 2px), radial-gradient(circle at 82% 68%, rgba(255,255,255,.08) 0 2px, transparent 2px); background-size: 46px 46px, 60px 60px; opacity: .7; }
.page-hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 1.25rem; }
.hero-divider { width: 64px; height: 3px; background: var(--sand); margin: 1.1rem auto 0; border-radius: 2px; }

/* ── Layout principal ── */
.site-main { max-width: var(--max-w); margin: 0 auto; padding: 2.75rem 1.5rem; }
.site-main.narrow { max-width: calc(var(--content-w) + 3rem); }

/* ── Cards ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-padded { padding: 2rem; }

/* ── Corps éditorial ── */
.article-body, .page-body, .cat-editorial { color: var(--text); }
.article-body { font-size: 1.06rem; }
.article-body h2, .page-body h2, .cat-editorial h2 { font-size: 1.62rem; font-weight: 700; color: var(--ink); margin: 2.6rem 0 1rem; padding-bottom: .5rem; position: relative; }
.article-body h2::after, .cat-editorial h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 56px; height: 3px; background: var(--teal); border-radius: 2px; }
.article-body h3, .page-body h3, .cat-editorial h3 { font-size: 1.24rem; color: var(--teal-deep); margin: 1.9rem 0 .6rem; font-weight: 700; }
.article-body h4, .cat-editorial h4 { font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); margin: 1.3rem 0 .4rem; }
.article-body p, .page-body p, .cat-editorial p { margin-bottom: 1.15rem; line-height: 1.8; }
.article-body ul, .article-body ol, .cat-editorial ul, .cat-editorial ol, .page-body ul, .page-body ol { margin: .6rem 0 1.2rem 1.6rem; }
.article-body li, .cat-editorial li, .page-body li { margin-bottom: .5rem; line-height: 1.75; }
.article-body strong, .cat-editorial strong, .page-body strong { font-weight: 700; color: var(--ink); }
.article-body em, .cat-editorial em { font-style: italic; }
.article-body a, .cat-editorial a, .page-body a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(34,123,110,.4); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .18s, text-decoration-color .18s; }
.article-body a:hover, .cat-editorial a:hover, .page-body a:hover { color: var(--link-hover); text-decoration-color: var(--link-hover); text-decoration-thickness: 2px; }
.article-body a strong, .cat-editorial a strong { color: inherit; }
.article-body blockquote, .cat-editorial blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--teal); background: var(--teal-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--teal-deep); }
.article-body figure, .cat-editorial figure, .page-body figure { margin: 1.9rem 0; }
.article-body figure img, .cat-editorial figure img, .page-body figure img { border-radius: var(--radius-sm); box-shadow: var(--shadow); width: 100%; }
.article-body figcaption, .cat-editorial figcaption, .page-body figcaption { font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: .55rem; font-style: italic; }

/* Tables */
.article-body table, .cat-editorial table, .page-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; box-shadow: var(--shadow-sm); border-radius: var(--radius-sm); overflow: hidden; }
.article-body th, .cat-editorial th, .page-body th { background: var(--teal); color: #fff; padding: .75rem 1rem; text-align: left; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.article-body td, .cat-editorial td, .page-body td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.article-body tr:last-child td, .cat-editorial tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td, .cat-editorial tr:nth-child(even) td { background: var(--teal-pale); }
.table-scroll { overflow-x: auto; }

/* Encadrés utilitaires (fournis aux rédacteurs) */
.bc-key, .bc-warn, .bc-note { margin: 1.7rem 0; padding: 1.15rem 1.35rem 1.15rem 1.5rem; border-radius: var(--radius-sm); border-left: 4px solid; font-size: .98rem; }
.bc-key { background: var(--teal-pale); border-left-color: var(--teal); }
.bc-key .bc-title, .bc-warn .bc-title, .bc-note .bc-title { display: block; font-family: var(--serif); font-weight: 700; margin-bottom: .35rem; color: var(--ink); }
.bc-warn { background: #fdf3e6; border-left-color: var(--sand-dark); }
.bc-warn .bc-title { color: var(--sand-dark); }
.bc-note { background: #f2f5f4; border-left-color: var(--ink-soft); }
.bc-key p:last-child, .bc-warn p:last-child, .bc-note p:last-child { margin-bottom: 0; }

/* ── Graphiques natifs (SVG inline enveloppés) ── */
.bc-chart { margin: 2rem 0; padding: 1.35rem 1.4rem 1.1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.bc-chart .bc-chart-title { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: .2rem; }
.bc-chart .bc-chart-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.bc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.bc-chart figcaption { font-size: .78rem; color: var(--text-muted); margin-top: .7rem; font-style: italic; }
.bc-chart text { font-family: var(--sans); }

/* ── Article header ── */
.article-header { margin-bottom: 1.5rem; }
.article-hero-cat { display: inline-block; background: rgba(255,255,255,.18); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .8rem; border-radius: 999px; margin-bottom: .9rem; }
.article-title { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.22; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; align-items: center; padding: .95rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 0 1.75rem; font-size: .84rem; color: var(--text-muted); }
.article-meta .meta-item { display: flex; align-items: center; gap: .4rem; }
.article-meta svg { width: 15px; height: 15px; opacity: .6; }
.article-featured { margin: 0 0 1.75rem; border-radius: var(--radius); overflow: hidden; line-height: 0; box-shadow: var(--shadow); }
.article-featured img { width: 100%; max-height: 460px; object-fit: cover; display: block; }

/* ── Sommaire (extension) : habillage .sqcms-toc ── */
.sqcms-toc { --sqcms-accent: var(--teal); --sqcms-text: var(--ink); --sqcms-bg: var(--teal-pale); --sqcms-border: var(--border-teal); }

/* ── Pagination ── */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 2.25rem 0 .5rem; }
.page-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.3rem; height: 2.3rem; padding: 0 .6rem; border-radius: var(--radius-sm); border: 1px solid var(--teal); background: transparent; color: var(--teal-deep); font-size: .9rem; transition: background .15s, color .15s; }
.page-btn:hover { background: var(--teal); color: #fff; }
.page-btn.active { background: var(--teal); color: #fff; font-weight: 700; pointer-events: none; }
.page-ellipsis { padding: 0 .3rem; color: var(--text-muted); }

/* ── Listing rubrique (extraits d'articles) ── */
.cat-intro { margin-bottom: 1.75rem; }
.post-list-item { background: var(--white); border: 1px solid var(--border); border-left: 4px solid transparent; border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1.1rem; transition: border-left-color .2s, box-shadow .2s, transform .2s; display: flex; gap: 1.25rem; align-items: stretch; }
.post-list-item:hover { border-left-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-list-thumb { flex-shrink: 0; width: 190px; border-radius: var(--radius-sm); overflow: hidden; line-height: 0; align-self: stretch; }
.post-list-thumb img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; display: block; transition: transform .35s; }
.post-list-item:hover .post-list-thumb img { transform: scale(1.05); }
.post-list-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-list-content time { font-size: .76rem; color: var(--teal-deep); font-weight: 600; letter-spacing: .02em; }
.post-list-content h2 { font-size: 1.28rem; color: var(--ink); margin: .25rem 0 .45rem; font-weight: 700; line-height: 1.3; }
.post-list-content h2 a { color: inherit; }
.post-list-content h2 a:hover { color: var(--teal-deep); }
.post-list-content p { font-size: .95rem; color: var(--text-muted); line-height: 1.65; margin-bottom: .5rem; }
.post-list-content .read-more { margin-top: auto; align-self: flex-start; font-size: .85rem; font-weight: 700; color: var(--teal-deep); display: inline-flex; gap: .25rem; }
.cat-editorial { line-height: 1.8; margin: 2rem 0; }
.cat-editorial-top { margin-top: 0; }

/* ── Homepage ── */
.hp-lede { max-width: var(--content-w); margin: 0 auto; padding: 2.75rem 1.5rem 1rem; }
.hp-lede p { font-size: 1.16rem; line-height: 1.85; color: var(--ink-soft); }
.hp-lede p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.3rem; float: left; line-height: .82; padding: .28rem .5rem .1rem 0; color: var(--teal); font-weight: 700; }
.hp-toc { max-width: var(--content-w); margin: 1.5rem auto; padding: 1.25rem 1.5rem; background: var(--teal-pale); border: 1px solid var(--border-teal); border-radius: var(--radius); }
.hp-toc .hp-toc-title { font-family: var(--serif); font-weight: 700; color: var(--ink); margin-bottom: .7rem; display: flex; align-items: center; gap: .45rem; }
.hp-toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 2rem; }
.hp-toc li { counter-increment: toc; padding: .28rem 0; break-inside: avoid; }
.hp-toc li a { color: var(--ink-soft); display: flex; gap: .5rem; font-size: .92rem; }
.hp-toc li a::before { content: counter(toc, decimal-leading-zero); color: var(--teal); font-weight: 700; font-size: .8rem; }
.hp-toc li a:hover { color: var(--teal-deep); }
.hp-body { max-width: var(--content-w); margin: 0 auto; padding: 1rem 1.5rem 2.5rem; }
.hp-body > h2 { scroll-margin-top: 90px; }
.hp-latest { background: linear-gradient(180deg, var(--teal-pale), var(--paper)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 1.5rem; }
.hp-latest-inner { max-width: var(--max-w); margin: 0 auto; }
.hp-latest h2 { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); text-align: center; margin-bottom: .4rem; }
.hp-latest .hp-latest-sub { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }
.hp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hp-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.hp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hp-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hp-card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.hp-card-cat { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); margin-bottom: .4rem; }
.hp-card-title { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; color: var(--ink); line-height: 1.32; margin-bottom: .5rem; }
.hp-card:hover .hp-card-title { color: var(--teal-deep); }
.hp-card-exc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.hp-card-more { margin-top: .85rem; font-size: .82rem; font-weight: 700; color: var(--teal-deep); }

/* Ruban défilant (signature graphique) */
.hp-ribbon { background: var(--ink); overflow: hidden; padding: .7rem 0; }
.hp-ribbon-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: hpMarquee 34s linear infinite; will-change: transform; }
.hp-ribbon span { color: rgba(255,255,255,.72); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.hp-ribbon span::before { content: '◆'; color: var(--teal); margin-right: 2.5rem; }
@keyframes hpMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Reveal au défilement ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.5rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem; cursor: pointer; transition: all .18s; text-decoration: none; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }

/* ── 404 ── */
.error-page { text-align: center; padding: 5rem 1.5rem; max-width: 560px; margin: 0 auto; }
.error-page .error-code { font-family: var(--serif); font-size: 6.5rem; color: var(--teal); line-height: 1; font-weight: 700; opacity: .32; }
.error-page h1 { font-size: 1.9rem; color: var(--ink); margin: 1rem 0 .75rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.75rem; }

/* ── Barre de progression de lecture ── */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--sand)); z-index: 9999; width: 0; transition: width .1s; }

/* ── Footer ── */
.site-footer { background: var(--footer-bg, var(--ink)); color: rgba(255,255,255,.72); margin-top: 3rem; }
.footer-top { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem 1.75rem; display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.footer-brand .footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 46ch; }
.footer-links { display: flex; flex-direction: column; gap: .1rem; }
.footer-links h4 { font-family: var(--serif); color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .92rem; padding: .35rem 0; display: inline-flex; align-items: center; gap: .5rem; }
.footer-links a::before { content: '›'; color: var(--teal); font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 1.2rem 1.5rem; max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: .6rem; }

/* ── Bouton retour haut ── */
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 46px; height: 46px; border: none; border-radius: 50%; background: var(--teal); color: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s, background .2s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--teal-dark); }
.back-to-top svg { width: 22px; height: 22px; }

/* ── Nav overlay ── */
.nav-overlay { display: none; }

/* ══ Responsive ══ */
@media (max-width: 1024px) {
    .hp-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
    .hp-toc ol { columns: 1; }
}
@media (max-width: 900px) {
    .top-bar { display: none; }
    .site-header { position: sticky; }
    .header-inner { height: 64px; padding: 0 1rem; justify-content: flex-start; gap: 0; }
    .site-header .site-logo { flex: 1; justify-content: center; }
    .site-logo img { max-height: 40px; }
    .nav-toggle { display: flex; flex-shrink: 0; margin-right: .5rem; position: relative; z-index: 520; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 490; }
    .nav-overlay.open { display: block; animation: nvFade .25s ease; }
    @keyframes nvFade { from { opacity: 0; } to { opacity: 1; } }
    .site-nav { display: flex !important; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 84vw); background: var(--teal); z-index: 500; padding-top: 64px; gap: 0; transform: translateX(-100%); transition: transform .32s cubic-bezier(.4,0,.2,1); overflow-y: auto; box-shadow: 6px 0 40px rgba(0,0,0,.4); }
    .site-nav.open { transform: translateX(0); }
    .site-nav > li { border-bottom: 1px solid rgba(255,255,255,.12); }
    .site-nav > li > a { padding: .95rem 1.5rem; font-size: 1rem; border-radius: 0; }
    .site-nav > li.active > a { box-shadow: inset 3px 0 0 #fff; background: rgba(255,255,255,.1); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .post-list-thumb { width: 130px; }
    .page-hero { padding: 3rem 1.25rem; }
    .site-main { padding: 2rem 1.25rem; }
    .card-padded { padding: 1.4rem; }
    .article-body h2, .cat-editorial h2 { font-size: 1.42rem; }
}
@media (max-width: 560px) {
    .header-inner { padding: 0 .75rem; }
    .post-list-item { flex-direction: column; gap: .9rem; }
    .post-list-thumb { width: 100%; aspect-ratio: 16/9; }
    .post-list-thumb img { min-height: 0; aspect-ratio: 16/9; }
    .hp-lede, .hp-body, .hp-toc { padding-left: 1.15rem; padding-right: 1.15rem; }
    .article-title { font-size: 1.55rem; }
}

/* ── Mouvement réduit ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .hp-ribbon-track { animation: none; }
}

/* ── Impression ── */
@media print {
    .site-header, .site-footer, .breadcrumb-wrap, .reading-progress, .back-to-top, .hp-ribbon, .hp-latest, .sqcms-toc, .top-bar { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    a { color: #000; text-decoration: underline; }
    .card { box-shadow: none; border: none; }
    .article-body h2 { border-bottom: 1pt solid #000; }
}
