/**
 * editorial.css — Couche éditoriale Piste 2 « Revue technique ».
 * Newsreader (titres) · Inter (corps) · IBM Plex Mono (méta/code).
 * Ivoire #faf9f7, encre #1c1917, accent sapin #0f766e, filets fins.
 *
 * Chargée EN DERNIER dans base.html.twig : gagne par ordre de cascade,
 * spécificité chirurgicale, zéro !important. Mobile d'abord : styles de
 * base = mobile, enrichis @media (min-width: 768px/992px).
 * Référence DA : doc/da/piste-2-revue.css (validée par John, 2026-06-10).
 */

/* ============================================================
   0. FONTS SELF-HOSTED (Axe 3)
   woff2 Google Fonts rapatriés dans /assets/fonts/ (RGPD + zéro
   domaine tiers). unicode-range conservés : latin-ext ne se charge
   que si la page contient œ/Œ etc. Inter/Newsreader latin préloadées
   dans base.html.twig (editorial.css est le dernier CSS du head).
   ============================================================ */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-var-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-var-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
    /* Couleurs */
    --paper:        #faf9f7;
    --card:         #ffffff;
    --ink:          #1c1917;
    --ink-soft:     #44403c;
    --muted:        #57534e;
    --line:         #e7e2db;
    --accent:       #0f766e;
    --accent-soft:  #ccfbf1;
    --on-accent:    #ffffff;  /* texte posé sur fond --accent */
    --footer-bg:    #1c1917;  /* le footer reste encre dans les 2 modes */
    --footer-ink:   #d6d3d1;
    --footer-link:  #fafaf9;

    /* Typographie */
    --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Échelle typo (base mobile ; les MQ montent d'un cran) */
    --text-xs:   0.75rem;   /* 12px — méta mono, eyebrows */
    --text-sm:   0.875rem;  /* 14px — nav, pagination, tags */
    --text-base: 1rem;      /* 16px — corps */
    --text-md:   1.125rem;  /* 18px — h3 contenu, lede */
    --text-lg:   1.375rem;  /* 22px — titres cards mobile */
    --text-xl:   1.625rem;  /* 26px — h2 contenu, titres cards desktop */
    --text-2xl:  1.875rem;  /* 30px — h1 article mobile */
    --text-3xl:  2.375rem;  /* 38px — h1 article desktop */

    /* Interlignes */
    --leading-tight: 1.2;
    --leading-snug:  1.35;
    --leading-body:  1.7;

    /* Espacements (échelle 4px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Rayons */
    --radius-s:    3px;
    --radius-m:    4px;
    --radius-l:    6px;
    --radius-pill: 999px;

    /* Ombres */
    --shadow-card:  0 1px 2px rgba(28, 25, 23, .04);
    --shadow-hover: 0 4px 12px rgba(28, 25, 23, .08);

    /* Mesure de lecture */
    --measure: 70ch;
}

/* ============================================================
   1bis. MODE SOMBRE (Axe 5)
   Posé par un script inline du head (localStorage jpsTheme, repli
   prefers-color-scheme) — sans JS le site reste clair. Pierre stone
   chaude, sapin éclairci pour l'AA sur fond sombre. Le backoffice
   /admin a sa propre DA : ces tokens ne le touchent pas (CSS front).
   ============================================================ */
[data-theme="dark"] {
    color-scheme: dark;

    --paper:        #161412;
    --card:         #211e1c;
    --ink:          #f1efec;
    --ink-soft:     #d8d4d0;
    --muted:        #a8a29e;
    --line:         #38342f;
    --accent:       #2dd4bf;  /* sapin éclairci : 9:1 sur --paper */
    --accent-soft:  #134e4a;
    --on-accent:    #053a34;

    --shadow-card:  0 1px 2px rgba(0, 0, 0, .4);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, .55);
}

/* ============================================================
   2. BASE GLOBALE — recouvre Slabo/Oswald (fonts plus chargées)
   ============================================================ */
body {
    background: var(--paper);
    background-image: none;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-body);
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

a {
    color: var(--accent);
}

/* Le wrapper <picture> (macro WebP) ne doit pas perturber la mise en
   page : l'<img> garde son comportement d'origine. */
picture {
    display: contents;
}

/* Sélecteurs que le thème/inline passait en Oswald → re-famille */
label,
input[type="submit"],
.post .post-header,
.post .post-readmore a,
.link-pages > span,
.link-pages a,
.pagination,
.post-single .post-taxonomy .post-taxonomy-heading,
.post-single .post-share .post-share-heading,
.author-info .author-detail .author-name,
.comment-body .fn,
.comment-body .comment-metadata a,
.comment-body .comment-reply-link,
.comment-respond .comment-reply-title,
.archive-taxonomy h3,
.archive-taxonomy h2,
.widget .widget-title,
.widget_recent_entries li:before,
.widget-profile .profile-name,
.site-footer .colophon,
.top-menu,
.site-menu,
.mobile-menu-list > li > a {
    font-family: var(--font-sans);
}

/* Sélecteurs que le thème/inline passait en Slabo 27px */
.widget-profile .profile-name span,
.search-form .search-field {
    font-family: var(--font-sans);
}

/* ============================================================
   3. TOPBAR — bandeau ivoire discret (sociaux + recherche)
   ============================================================ */
.site-topbar {
    background: var(--paper);
    border-bottom: none;
    height: auto;
    padding: var(--space-2) 0 0;
}

.site-topbar .top-socials a {
    color: var(--muted);
    border: none;
    line-height: 36px;
    width: 36px;
}

.site-topbar .top-socials a:last-child {
    border: none;
}

.site-topbar .top-socials a:hover {
    color: var(--accent);
}

/* --- Bascule clair/sombre (Axe 5) — topbar desktop + rangée mobile --- */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    width: 36px;
    line-height: 36px;
    text-align: center;
    vertical-align: top;
}

.theme-toggle:hover {
    color: var(--accent);
}

.theme-toggle .icon {
    vertical-align: middle;
}

/* Lune en clair (= passer en sombre), soleil en sombre */
.theme-toggle-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle-sun {
    display: inline;
}

[data-theme="dark"] .theme-toggle-moon {
    display: none;
}

.mobile-nav .mobile-socials .theme-toggle {
    width: 40px;
    line-height: 1;
    padding: 12px 0;
}

/* ============================================================
   4. HEADER — wordmark texte
   ============================================================ */
.site-header {
    background: var(--paper);
    border-bottom: none;
    padding: var(--space-3) 0 var(--space-4);
}

.site-header .logo {
    padding: 0;
}

.wordmark {
    font: 600 26px/1 var(--font-serif);
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
}

.wordmark:hover {
    color: var(--ink);
}

.wordmark-dot {
    color: var(--accent);
}

/* ============================================================
   5. NAV — ivoire, filets fins, courant souligné sapin
   ============================================================ */
.site-nav {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.soft-shadow .site-nav {
    box-shadow: none;
}

.site-menu > li {
    border-left: none;
    border-right: none;
}

.site-menu > li:first-child {
    border-left: none;
}

.site-menu > li > a {
    font: 500 13px/1 var(--font-sans);
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    padding: 15px 14px;
    background: none;
}

.site-menu > li > a:hover {
    color: var(--ink);
    background: none;
}

.site-menu > li.current-menu-item > a,
.site-menu > li.current-menu-item > a:hover,
.site-menu > li.current_page_item > a {
    color: var(--accent);
    background: none;
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* Sous-menu : carte blanche filets (gagne sur seo-extras `body .site-menu ul`) */
.site-nav .site-menu ul {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-hover);
    padding: var(--space-2) 0;
}

.site-nav .site-menu ul:after {
    content: none;
}

.site-nav .site-menu li li a {
    color: var(--ink-soft);
    font: 400 14px/1.4 var(--font-sans);
    text-transform: none;
    letter-spacing: 0;
    padding: 10px 18px;
}

.site-nav .site-menu li li a:hover {
    background: var(--paper);
    color: var(--accent);
    padding-left: 22px;
}

.site-nav .site-menu li li.current-menu-item > a {
    background: var(--accent-soft);
    color: var(--ink);
}

/* ============================================================
   6. NAV MOBILE — barre habillée, panneau carte blanche
   ============================================================ */
.mobile-nav {
    background: var(--paper);
}

@media (max-width: 991px) {
    /* Une seule rangée : hamburger à gauche, sociaux à droite.
       Le thème empile en 2 rangées + border-top noire à ≤480. */
    .mobile-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
    }

    /* Le clearfix .cf::before/::after deviendrait un flex item parasite */
    .mobile-nav::before,
    .mobile-nav::after {
        content: none;
    }

    .mobile-nav .mobile-menu {
        float: none;
        display: inline-block;
    }

    .mobile-nav .mobile-socials {
        float: none;
        display: flex;
        gap: var(--space-1);
        border: none;
        box-shadow: none;
    }
}

.mobile-nav .mobile-menu-anchor {
    background: none;
    color: var(--ink);
    width: auto;
    height: auto;
    line-height: 1;
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 10px 12px;
}

.mobile-nav .mobile-menu-anchor:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* L'ouverture du panneau est pilotée par site.js (.is-open + aria-expanded,
   cf. accessibility.css Axe 4) — plus de :hover ni :focus-within. */

.mobile-menu-list {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-hover);
}

.mobile-menu-list li a {
    color: var(--ink-soft);
    font: 400 15px/1.4 var(--font-sans);
}

.mobile-menu-list > li > a {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.mobile-menu-list li a:hover {
    background: var(--paper);
    color: var(--accent);
}

.mobile-menu-list li.current-menu-item > a {
    color: var(--accent);
}

.mobile-menu-list ul {
    background: var(--paper);
    margin: 0 var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-m);
}

.mobile-menu-list ul:after {
    content: none;
}

/* seo-extras posait un fond sombre — on repasse carte blanche */
body .mobile-menu-list {
    background: var(--card);
}

body .mobile-menu-list .menu-item-has-children > a {
    border-bottom: 1px solid var(--line);
}

.mobile-nav .mobile-socials a {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--muted);
    width: 40px;
    height: auto;
    line-height: 1;
    padding: 12px 0;
}

.mobile-nav .mobile-socials a:first-child {
    border: none;
    box-shadow: none;
}

.mobile-nav .mobile-socials a:hover {
    color: var(--accent);
}

/* ============================================================
   7. PANNEAU RECHERCHE
   ============================================================ */
.top-search {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.top-search .top-search-input {
    color: var(--ink);
    font: 400 22px/1.3 var(--font-serif);
}

.top-search .top-search-input::placeholder {
    color: var(--muted);
}

.top-search .search-anchor-close {
    color: var(--muted);
}

.top-search .search-anchor-close:hover {
    color: var(--ink);
}

/* ============================================================
   8. LAYOUT — fix débord mobile (sidebar -2.5% du thème)
   ============================================================ */
.main-content {
    background: none;
}

@media (max-width: 991px) {
    .sidebar {
        margin-left: 0;
        margin-right: 0;
    }

    .sidebar .widget {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }

    /* Le thème fige .sticky-sidebar à 360px (style.css:75) → débord de 10px à 390 */
    .sticky-sidebar {
        width: auto;
    }
}

/* ============================================================
   9. POSTS — base générique puis cartes papier (blogroll-list)
   ============================================================ */
/* Tout .post (cards, single, digests veille IA) : titres serif posés,
   header à gauche, plus de trait centré ni de slashes Oswald */
.post .post-header {
    font-family: var(--font-sans);
    text-align: left;
}

.post .post-title {
    font-family: var(--font-serif);
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.01em;
    font-size: var(--text-xl);
    line-height: var(--leading-snug);
}

.post .post-title a {
    color: var(--ink);
}

.post .post-title a:hover {
    color: var(--accent);
}

.post .post-meta {
    text-transform: none;
    letter-spacing: 0;
    padding-top: 0;
}

.post .post-meta::before {
    content: none;
}

.post .post-meta .meta-item::after {
    content: "·";
    padding: 0 var(--space-2);
    color: var(--line);
}

.post .post-meta .meta-item:last-child::after {
    content: none;
}


/* Le thème pose .post { background:#fff } en global (veille-ia, pages
   statiques…) : re-token pour que le mode sombre suive partout */
.post {
    background: var(--card);
}

.blogroll-list .post {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-card);
    padding: 0;
    margin: 0 0 var(--space-5);
}

.blogroll-list .post-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: center;
    padding: 18px 18px 22px;
}

/* Le clearfix .cf::before/::after du thème devient un grid item — on le coupe */
.blogroll.blogroll-list .post .post-wrap::before,
.blogroll.blogroll-list .post .post-wrap::after {
    content: none;
    display: none;
}

/* Neutralisation du layout float du thème (spécificité ≥ thème) */
.blogroll.blogroll-list .post .post-image,
.blogroll.blogroll-list.zigzag .post:nth-child(2n) .post-image {
    float: none;
    width: auto;
    margin: 0;
    box-shadow: none;
    text-align: left;
}

.blogroll.blogroll-list .post .post-header,
.blogroll.blogroll-list.zigzag .post:nth-child(2n) .post-header {
    float: none;
    width: auto;
    padding: 0;
    margin: 0;
    text-align: left;
}

.blogroll-list .post-image img {
    border-radius: var(--radius-s);
    display: block;
    width: 100%;
    height: auto;
}

.blogroll.blogroll-list .post .post-header .post-title {
    font-size: var(--text-lg);
    margin: 0 0 var(--space-3);
    padding: 0;
}

.blogroll-list .post-title a {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: var(--leading-snug);
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.blogroll-list .post-title a:hover {
    color: var(--accent);
}

/* Méta cards : mono petites caps, sans trait ni slashes du thème */
.blogroll.blogroll-list .post .post-header .post-meta {
    border: none;
    padding: 0;
    margin: 0;
    width: auto;
    display: block;
    text-transform: none;
    letter-spacing: 0;
}

.blogroll.blogroll-list .post .post-header .post-meta::before {
    content: none;
}

.blogroll-list .post-meta-inner {
    font: 400 var(--text-xs)/1.6 var(--font-mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Auteur « j.saulnier » href=# et « aucun commentaire » : mensonges → masqués
   (retrait du markup prévu Axe 2) */
.blogroll.blogroll-list .post .post-meta .meta-item.menu-item-author,
.blogroll.blogroll-list .post .post-meta .meta-item.menu-item-comment,
.blogroll.blogroll-list .post .post-meta .meta-item::before,
.blogroll.blogroll-list .post .post-meta .meta-item::after {
    display: none;
    content: none;
}

@media (min-width: 768px) {
    .blogroll-list .post-wrap {
        grid-template-columns: 300px 1fr;
        gap: var(--space-6);
        padding: 26px 30px;
    }

    .blogroll.blogroll-list .post .post-header .post-title {
        font-size: var(--text-xl);
    }
}

/* ============================================================
   10. PAGINATION — mono, soulignés
   ============================================================ */
.pagination {
    border: none;
    border-top: 1px solid var(--line);
    background: none;
    text-align: center;
    padding: var(--space-6) 0;
    margin-top: var(--space-7); /* respire au-dessus de la grille */
}

.pagination a,
.pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* boîte sans texte (chevron svg) : sans baseline elle flotte 3px plus
       haut que les boîtes à chiffres — middle aligne tout le monde */
    vertical-align: middle;
    min-width: 38px;
    height: 38px;
    font: 500 var(--text-sm)/1 var(--font-mono);
    color: var(--ink-soft);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 0 10px;
    margin: 0 3px;
    letter-spacing: 0;
    transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.pagination span.current,
.pagination > span[aria-current="page"] {
    color: var(--on-accent);
    background: var(--accent);
    border-color: var(--accent);
}

/* chevrons SVG : alignement vertical exact dans la boîte flex */
.pagination a svg {
    display: block;
}

.pagination a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--card);
    transform: translateY(-1px);
}

.pagination span.dots {
    background: none;
    border: none;
    color: var(--muted);
}

/* Clin d'œil CLI : --page 3/12 sous les boutons */
.pagination .pagination-status {
    font: 400 var(--text-xs)/1 var(--font-mono);
    color: var(--muted);
    letter-spacing: .06em;
    margin: var(--space-4) 0 0;
}

/* ============================================================
   11. ARTICLE — carte de lecture
   ============================================================ */
.post-single {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-card);
    padding: var(--space-5) var(--space-4);
}

.post-single .post-header {
    text-align: left;
    margin-bottom: var(--space-5);
    font-family: var(--font-sans);
}

.post-single .post-header .post-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: var(--text-2xl);
    line-height: var(--leading-tight);
    letter-spacing: -0.015em;
    text-transform: none;
    margin: 0 0 var(--space-4);
}

/* Méta single : mono petites caps, points médians, sans trait centré */
.post-single .post-header .post-meta {
    padding-top: 0;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.6;
}

.post-single .post-header .post-meta::before {
    content: none;
}

.post-single .post-meta .post-meta-inner {
    font: 400 var(--text-xs)/1.8 var(--font-mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.post-single .post-meta .meta-item::after {
    content: "·";
    padding: 0 var(--space-2);
    color: var(--line);
}

.post-single .post-meta .meta-item:last-child::after {
    content: none;
}

.post-single .post-meta .meta-item.menu-item-author,
.post-single .post-meta .meta-item.menu-item-comment {
    display: none;
}

.post-single .post-meta a {
    color: var(--muted);
}

.post-single .post-image {
    margin: 0 0 var(--space-5);
    position: relative;
}

/* Avatar de l'auteur, posé en bas de l'image à la une */
.post-single .post-image .author-badge {
    position: absolute;
    right: 16px;
    bottom: -16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    background: var(--card);
    box-shadow: var(--shadow-card);
    transition: transform .2s ease;
}

.post-single .post-image .author-badge:hover {
    transform: rotate(-8deg) scale(1.08);
}

.post-single .post-image .author-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.post-single .post-image img {
    border-radius: var(--radius-s);
    width: 100%;
    height: auto;
    display: block;
}

/* --- Corps de lecture --- */
.post-single .post-content {
    font-size: var(--text-base);
    line-height: var(--leading-body);
    color: var(--ink-soft);
    max-width: var(--measure);
    margin-inline: auto;
    hyphens: none;
    text-align: left;
}

.post-single .post-content p {
    margin: 0 0 1.1em;
}

.post-single .post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-single .post-content a:hover {
    color: var(--ink);
}

/* Hiérarchie nette : 2 niveaux, marges asymétriques */
.post-single .post-content h2 {
    font: 500 var(--text-xl)/1.25 var(--font-serif);
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 1.9em 0 .6em;
}

.post-single .post-content h3,
.post-single .post-content h4 {
    font: 600 var(--text-md)/1.3 var(--font-sans);
    color: var(--ink);
    margin: 1.7em 0 .5em;
}

.post-single .post-content ul,
.post-single .post-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.post-single .post-content li {
    margin-bottom: .35em;
    padding-left: 5px;
}

/* Blockquote sobre : filet sapin, fini les doubles filets + glyphe FA mort */
.post-single .post-content blockquote,
.post-content blockquote {
    font: italic 400 var(--text-md)/1.55 var(--font-serif);
    color: var(--ink-soft);
    text-align: left;
    border: none;
    border-left: 3px solid var(--accent);
    margin: 1.6em 0;
    padding: 4px 0 4px 20px;
}

.post-content blockquote:after {
    content: none;
}

/* Code : typo lisible (les couleurs Prism = Axe 5) */
.post-content pre,
.post-content pre[class*="language-"] {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: var(--space-4);
}

.post-content :not(pre) > code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    overflow-wrap: anywhere; /* identifiants/chemins longs : casser plutôt que déborder */
}

/* --- §11bis Blocs code outillés (Axe 5) ---
   Wrapper posé par code-blocks.js : le pre défile (overflow-x), un
   absolu DANS le pre défilerait avec le code — badge et bouton sont
   donc enfants du wrapper. Couleurs Prism : prism-jpsymfony.css. */
.post-content .code-block {
    position: relative;
    margin: 1.6em 0;
}

.post-content .code-block pre {
    margin: 0;
}

.code-block .code-lang {
    position: absolute;
    top: 0;
    right: 48px;
    font: 500 10px/1 var(--font-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius-s) var(--radius-s);
    padding: 4px 8px;
    user-select: none;
}

.code-block .code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    cursor: pointer;
    padding: 0;
    transition: color .15s ease, border-color .15s ease;
}

.code-block .code-copy:hover,
.code-block .code-copy.is-copied {
    color: var(--accent);
    border-color: var(--accent);
}

.code-block .code-copy svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- §11ter Lecture d'article : progression + sommaire (Axe 5) --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10001; /* au-dessus de la nav sticky (9999) */
    pointer-events: none;
}

.reading-progress_bar {
    width: 0;
    height: 100%;
    background: var(--accent);
}

/* Ancres h2/h3 : ne pas atterrir sous la nav sticky (~60px) */
.post-content h2[id],
.post-content h3[id] {
    scroll-margin-top: 90px;
}

/* Sommaire : caché en mobile (la sidebar passe SOUS l'article) */
.widget_article_toc {
    display: none;
}

@media (min-width: 992px) {
    .widget_article_toc {
        display: block;
    }

    .widget_article_toc[hidden] {
        display: none;
    }

    .article-toc_list {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: calc(100vh - 240px); /* sommaire long : défile dans la sidebar sticky */
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .article-toc_list li {
        margin: 0 0 var(--space-2);
        line-height: var(--leading-snug);
    }

    .article-toc_list li.toc-sub {
        padding-left: var(--space-4);
    }

    .article-toc_list a {
        font-family: var(--font-sans);
        font-size: var(--text-sm);
        color: var(--ink-soft);
        text-decoration: none;
    }

    .article-toc_list a:hover {
        color: var(--accent);
        text-decoration: underline;
    }
}

.post-single .secondary-images figure {
    margin: 1.6em 0;
}

.post-single .secondary-images img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-s);
}

.post-single .secondary-images figcaption {
    font: 400 var(--text-xs)/1.5 var(--font-mono);
    color: var(--muted);
    margin-top: var(--space-2);
}

/* --- Taxonomie : tags sobres --- */
.post-single .post-taxonomy {
    border-top: 1px solid var(--line);
    margin-top: var(--space-7);
}

.post-single .post-taxonomy .post-taxonomy-heading {
    font: 500 var(--text-xs)/1 var(--font-mono);
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: var(--space-3);
}

.post-single .post-taxonomy a {
    background: var(--card);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 5px 14px;
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}

.post-single .post-taxonomy a:hover {
    background: var(--card);
    color: var(--accent);
    border-color: var(--accent);
}

.post-single .post-taxonomy .post-tags a {
    background: var(--card);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.post-single .post-taxonomy .post-tags a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.post-single .post-taxonomy .post-tags .no-tags {
    color: var(--muted);
    font-size: var(--text-sm);
}

.post-single .post-taxonomy .post-category,
.post-single .post-taxonomy .post-tags {
    border-left-color: var(--line);
}

/* --- Partage : icônes rondes discrètes --- */
.post-single .post-share {
    border-top: 1px solid var(--line);
    padding-top: var(--space-5);
}

.post-single .post-share a {
    background: var(--card);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    line-height: 42px;
    font-size: 16px;
}

.post-single .post-share a:hover {
    background: var(--card);
    color: var(--accent);
    border-color: var(--accent);
}

@media (min-width: 768px) {
    .post-single {
        padding: var(--space-7) var(--space-7) var(--space-6);
    }

    .post-single .post-header .post-title {
        font-size: var(--text-3xl);
    }

    .post-single .post-content {
        font-size: 1.0625rem; /* 17px */
    }

    /* Full-bleed léger : le code respire au-delà de la colonne texte.
       Porté par le wrapper .code-block (badge/bouton alignés sur le pre) ;
       repli sur le pre nu si code-blocks.js n'a pas tourné. */
    .post-content .code-block,
    .post-content pre,
    .post-content pre[class*="language-"] {
        margin-inline: calc(-1 * var(--space-5));
    }

    .post-content .code-block pre {
        margin-inline: 0;
    }

    .post-content pre,
    .post-content pre[class*="language-"] {
        font-size: 0.90625rem; /* 14.5px */
    }
}

/* ============================================================
   12. BREADCRUMB — mono discret
   ============================================================ */
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .05em;
    color: var(--muted);
    margin: var(--space-4) 0 var(--space-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    color: var(--line);
}

.breadcrumb-current {
    color: var(--ink);
    font-weight: 500;
}

/* ============================================================
   13. VIGNETTES LIÉES (carrefour de fin d'article) — cartes papier
   ============================================================ */
.related-post {
    background: var(--card); /* seo-extras pose #fff : illisible en sombre */
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-card);
}

.related-post-thumb {
    background: var(--paper);
}

.related-post:hover {
    box-shadow: var(--shadow-hover);
}

.related-post-category {
    font: 500 10px/1 var(--font-mono);
    letter-spacing: .12em;
    color: var(--accent);
}

.related-post-title {
    font: 500 var(--text-base)/1.35 var(--font-serif);
    color: var(--ink);
}

.related-post:hover .related-post-title {
    color: var(--accent);
}

/* ============================================================
   14. EN-TÊTES D'ARCHIVE (catégorie, tag, index, recherche)
   ============================================================ */
.archive-taxonomy {
    background: none;
    text-align: left;
    padding: var(--space-5) 0 var(--space-4);
}

.archive-taxonomy h1 {
    font: 500 var(--text-2xl)/1.2 var(--font-serif);
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0;
}

.archive-taxonomy h2 {
    font: 500 var(--text-xs)/1 var(--font-mono);
    letter-spacing: .14em;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 var(--space-3);
}

h1.title-header {
    font: 500 var(--text-2xl)/1.2 var(--font-serif);
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: var(--space-5) 0 var(--space-4);
}

@media (min-width: 768px) {
    .archive-taxonomy h1,
    h1.title-header {
        font-size: 2.125rem; /* 34px */
    }
}

/* ============================================================
   15. SIDEBAR — cartes filets
   ============================================================ */
.sidebar .widget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: none;
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.widget .widget-title,
.sidebar h3 {
    font: 500 var(--text-xs)/1.4 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    background: none;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    height: auto;
    text-align: left;
    padding: 0 0 var(--space-3);
    margin: 0 0 var(--space-4);
}

.sidebar,
.sidebar p,
.sidebar li {
    font-family: var(--font-sans);
    color: var(--ink-soft);
}

.sidebar a {
    color: var(--accent);
}

/* Le thème pose 1px dashed #eee : filet plein token (criard en sombre) */
.sidebar .widget li {
    border-bottom: 1px solid var(--line);
}

.sidebar .widget li:last-child {
    border-bottom: none;
}

.sidebar .widget li a {
    color: var(--ink-soft);
    text-decoration: none;
}

.sidebar .widget li a:hover {
    color: var(--accent);
}

/* Compteur « articles récents » : numéro mono nu au lieu de la pastille
   noire. Le thème pose la pastille en absolu top:20px + padding 70px :
   on resserre la gouttière et on cale numéro et titre sur la même ligne
   (même padding-top, même line-height). */
.widget_recent_entries li {
    padding: 10px 0 10px 30px;
}

.widget_recent_entries li:before {
    font: 500 var(--text-sm)/1.5 var(--font-mono);
    color: var(--accent);
    background: none;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    left: 2px;
    top: 10px;
    text-align: left;
}

.widget_recent_entries li a {
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Avatar cartoon dans le widget profil */
.widget-profile .profile-avatar {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    margin: 0 0 var(--space-4);
    transition: transform .2s ease;
}

.widget-profile .profile-avatar:hover {
    transform: rotate(8deg) scale(1.06);
}

.widget-profile .profile-name {
    font: 500 var(--text-lg)/1.3 var(--font-serif);
    letter-spacing: 0;
    word-spacing: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
}

.widget-profile .profile-name span {
    font: 500 var(--text-xs)/2 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
}

.widget .veille-ia-date {
    font: 400 var(--text-xs)/1.6 var(--font-mono);
    color: var(--muted);
}

/* ============================================================
   16. FOOTER — encre
   ============================================================ */
.site-footer {
    background: var(--footer-bg); /* encre dans les 2 modes (--ink s'inverse) */
    color: var(--footer-ink);
    border: none;
}

.site-footer .colophon {
    font: 400 var(--text-xs)/2 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--footer-ink);
}

.site-footer a {
    color: var(--footer-link);
}

/* ============================================================
   17. FORMULAIRES & DIVERS
   ============================================================ */
input[type="submit"] {
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: none;
    border-radius: var(--radius-m);
    font-size: var(--text-sm);
}

input[type="submit"]:hover {
    background: var(--ink);
}

label {
    font-family: var(--font-sans);
    letter-spacing: .02em;
    text-transform: none;
    font-weight: 500;
}

.search-form .search-field {
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--paper);
    color: var(--ink);
}

/* ============================================================
   18. HOME — hero éditorial (Axe 2)
   ============================================================ */
.home-hero {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 44px 0 38px;
    text-align: center;
}

.hero-eyebrow {
    font: 500 var(--text-xs)/1.5 var(--font-mono);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 var(--space-4);
}

.hero-title {
    font: 500 2rem/1.15 var(--font-serif);
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 auto 14px;
    max-width: 16em;
}

.hero-lede {
    font: 400 var(--text-base)/1.7 var(--font-sans);
    color: var(--muted);
    max-width: 36em;
    margin: 0 auto 24px;
}

.hero-entries {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-entry {
    font: 500 var(--text-sm)/1 var(--font-sans);
    color: var(--ink);
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--card);
}

.hero-entry:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-entry-primary {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}

.hero-entry-primary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

@media (min-width: 768px) {
    .home-hero {
        padding: 64px 0 54px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-lede {
        font-size: var(--text-md);
    }
}

/* ============================================================
   19. À LA UNE — premier article en grand (Axe 2)
   ============================================================ */
.featured-article {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin: 0 0 var(--space-6);
}

/* Badge « À la une » posé sur l'image */
.featured-eyebrow {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 2;
    font: 500 var(--text-xs)/1 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    margin: 0;
}

.featured-image {
    display: block;
}

.featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.featured-body {
    padding: 20px 20px 24px;
}

.post-eyebrow {
    display: inline-block;
    font: 500 11px/1 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    text-decoration: none;
    margin: 0 0 var(--space-2);
}

.post-eyebrow:hover {
    color: var(--ink);
}

.featured-title {
    font-size: 1.5rem;
    margin: 0 0 var(--space-3);
    padding: 0;
}

.featured-title a {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: var(--leading-tight);
    letter-spacing: -0.015em;
    color: var(--ink);
    text-decoration: none;
}

.featured-title a:hover {
    color: var(--accent);
}

.featured-lede {
    font: 400 var(--text-base)/1.65 var(--font-sans);
    color: var(--muted);
    max-width: 60ch;
    margin: 0 0 var(--space-3);
}

.featured-article .post-meta-inner {
    font: 400 var(--text-xs)/1.6 var(--font-mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.featured-article .post-meta .meta-item::after {
    content: "·";
    padding: 0 var(--space-2);
    color: var(--line);
}

.featured-article .post-meta .meta-item:last-child::after {
    content: none;
}

@media (min-width: 768px) {
    .featured-body {
        padding: 26px 30px 30px;
    }

    .featured-title {
        font-size: 2rem;
    }
}

/* ============================================================
   20. TOOLBAR LISTE + BASCULE GRILLE/LISTE (Axe 2)
   ============================================================ */
.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
}

.list-count {
    font: 400 var(--text-xs)/1 var(--font-mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.view-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
    background: var(--card);
}

.view-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border: 0;
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    transition: color .15s ease, background .15s ease;
}

.view-switch-btn + .view-switch-btn {
    border-left: 1px solid var(--line);
}

.view-switch-btn:hover {
    color: var(--accent);
}

.view-switch-btn[aria-pressed="true"] {
    background: var(--accent);
    color: var(--on-accent);
}

/* --- Mode grille : vignettes verticales --- */
.blogroll-list.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-5) var(--space-4);
}

/* Clearfix .cf : ses ::before/::after deviendraient des grid items
   (1re cellule volée → cards décalées). */
.blogroll-list.view-grid::before,
.blogroll-list.view-grid::after {
    content: none;
}

.blogroll-list.view-grid .post {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.blogroll.blogroll-list.view-grid .post .post-wrap {
    display: block;
    padding: 0;
}

.blogroll.blogroll-list.view-grid .post .post-image {
    margin: 0;
}

.blogroll-list.view-grid .post-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-s) var(--radius-s) 0 0;
}

.blogroll.blogroll-list.view-grid .post .post-header {
    padding: 14px 16px 18px;
}

.blogroll.blogroll-list.view-grid .post .post-header .post-title {
    font-size: var(--text-md);
    margin: 0 0 var(--space-2);
}

/* ============================================================
   21. CARREFOUR DE FIN D'ARTICLE (next-path, Axe 2)
   ============================================================ */
.next-path {
    border-top: 1px solid var(--line);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
}

.next-path-title {
    font: 500 var(--text-xl)/1.2 var(--font-serif);
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 var(--space-4);
}

.next-path-continue {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-m);
    padding: 16px 20px;
    margin: 0 0 var(--space-5);
    text-decoration: none;
}

.next-path-continue:hover {
    border-color: var(--accent);
}

.next-path-continue-label {
    display: block;
    font: 500 var(--text-xs)/1 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.next-path-continue-title {
    font: 500 var(--text-md)/1.35 var(--font-serif);
    color: var(--ink);
}

.next-path-continue:hover .next-path-continue-title {
    color: var(--accent);
}

.next-path .related-posts-grid {
    margin-bottom: var(--space-4);
}

.next-path-all {
    display: inline-block;
    font: 500 var(--text-sm)/1.4 var(--font-mono);
    color: var(--accent);
    text-decoration: none;
}

.next-path-all:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* ============================================================
   22. DYNAMIQUE (Axe 6) — apparitions douces, CSS pur, zéro JS.
   prefers-reduced-motion respecté ; @supports limite le scroll-
   driven aux navigateurs qui le gèrent (Chrome/Edge 115+),
   ailleurs le contenu reste simplement visible.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    /* Lever de page (desktop) : hero puis contenu, en escalier */
    @media (min-width: 992px) {
        .page-home .home-hero,
        .page-home .featured-post,
        .page-home .blogroll-list,
        .page-article .post-single {
            animation: jpsRise .7s cubic-bezier(.22, .61, .36, 1) both;
        }

        .page-home .featured-post { animation-delay: .06s; }
        .page-home .blogroll-list { animation-delay: .12s; }
    }

    @keyframes jpsRise {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: none; }
    }

    /* Révélations au scroll : titres d'article, vignettes du carrefour,
       cards d'archives — pilotées par le défilement, sans JS */
    @supports (animation-timeline: view()) {
        .page-article .post-content > h2,
        .page-article .related-post,
        .page-category .blogroll-list .post,
        .page-tag .blogroll-list .post,
        .page-articles .blogroll-list .post,
        .page-search .blogroll-list .post {
            animation: jpsReveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 28%;
        }

        /* Pas d'opacity ici : un élément arrêté mi-entrée resterait
           semi-transparent (contraste AA cassé, vu par axe-core).
           Le glissement seul suffit, l'état lisible est garanti. */
        @keyframes jpsReveal {
            from { transform: translateY(16px); }
            to   { transform: none; }
        }
    }
}

/* ============================================================
   23. FOOTER ENRICHI (Axe 6) — marque + 3 colonnes + colophon
   ============================================================ */
.site-footer {
    padding: var(--space-7) 0 var(--space-5);
}

.footer-grid {
    display: grid;
    gap: var(--space-6) var(--space-5);
    margin-bottom: var(--space-6);
}

.footer-wordmark {
    font: 600 var(--text-lg)/1 var(--font-serif);
    color: var(--footer-link);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.footer-wordmark .wordmark-dot {
    color: var(--accent);
}

.footer-tagline {
    font: 400 var(--text-xs)/1.6 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--footer-ink);
    margin: var(--space-3) 0 0;
}

/* Signature fun : avatar + phrase café */
.footer-byline {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) 0 0;
    font: 400 var(--text-xs)/1.5 var(--font-mono);
    color: var(--footer-ink);
}

.footer-byline img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--footer-ink);
    flex: none;
}

.footer-heading {
    font: 500 var(--text-xs)/1 var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--footer-ink);
    margin: 0 0 var(--space-3);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin: 0 0 var(--space-2);
}

.footer-col a {
    font: 400 var(--text-sm)/1.6 var(--font-sans);
    color: var(--footer-link);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-col .icon {
    margin-right: 4px;
}

.site-footer .footer-copyright {
    border-top: 1px solid rgba(214, 211, 209, .15);
    padding-top: var(--space-4);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

/* ============================================================
   24. TOUCHES GEEK (Axe fun) — la voix du blog, c'est le code.
   ============================================================ */
/* Sélection de texte sapin partout */
::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

/* Les labels mono parlent en commentaire de code : « // à la une » */
.featured-eyebrow::before,
.widget .widget-title::before,
.footer-heading::before,
.next-path-continue-label::before {
    content: "// ";
    color: var(--muted);
}

/* Curseur de terminal qui clignote en fin d'eyebrow du hero */
.hero-eyebrow::after {
    content: "_";
    color: var(--accent);
    margin-left: 2px;
    animation: jpsBlink 1.1s step-end infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow::after {
        animation: none;
    }
}

@keyframes jpsBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* ============================================================
   25. ILLUSTRATIONS FUN (Gemini) — hero 2 colonnes
   Les illustrations gardent leur fond ivoire : en sombre elles
   vivent comme des cartes claires bordées (idem images d'articles).
   ============================================================ */
.hero-illustration {
    display: block;
    margin: var(--space-5) auto 0;
    max-width: 420px;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-l);
    border: 1px solid var(--line);
}

@media (min-width: 992px) {
    .home-hero .hero-layout {
        display: grid;
        grid-template-columns: 1fr 440px;
        gap: var(--space-7);
        align-items: center;
        text-align: left;
    }

    .hero-layout .hero-title,
    .hero-layout .hero-lede {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-layout .hero-entries {
        justify-content: flex-start;
    }

    .hero-illustration {
        margin: 0;
        max-width: none;
    }
}
