/* ==========================================================================
   TextStudio Blog — design "lecture d'abord", identite propre
   Mobile-first. General Sans (Fontshare). Accent #0089ff discipline :
   filet du header, liens, chips, marqueurs — le reste respire en neutre.
   ========================================================================== */

:root {
    --bg: #ffffff;
    --surface: #f4f7fb;
    --surface-2: #e9eef6;
    --text: #101828;
    --muted: #5d6b7e;
    --border: #e3e9f2;
    --accent: #0089ff;
    --accent-strong: #006fd6;
    --accent-soft: rgba(0, 137, 255, .09);
    --header-bg: rgba(255, 255, 255, .82);
    --code-bg: #f1f5fa;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-md: 0 2px 6px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .09);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c1017;
        --surface: #131a24;
        --surface-2: #1a2330;
        --text: #e9eef5;
        --muted: #93a1b3;
        --border: #202b3a;
        --accent: #3aa2ff;
        --accent-strong: #74bfff;
        --accent-soft: rgba(58, 162, 255, .12);
        --header-bg: rgba(12, 16, 23, .8);
        --code-bg: #171f2b;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 14px 36px rgba(0, 0, 0, .4);
    }
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16.5px/1.7 var(--font);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    text-rendering: optimizeLegibility;
}
.site-main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 18px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 18px; }
@media (min-width: 640px) {
    .wrap, .wrap-narrow { padding: 0 28px; }
}

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    min-height: 58px;
    flex-wrap: wrap;
    padding-top: 7px;
    padding-bottom: 7px;
}
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo img { display: block; height: 30px; width: auto; }
.logo-suffix {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 3px 10px;
}
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.site-nav > a,
.site-nav .nav-dd > summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    transition: background .15s ease, color .15s ease;
}
.site-nav .nav-dd > summary::-webkit-details-marker { display: none; }
.site-nav > a:hover,
.site-nav .nav-dd > summary:hover,
.site-nav .nav-dd[open] > summary { background: var(--accent-soft); color: var(--accent-strong); }
.ico { flex-shrink: 0; }
.ext { color: var(--muted); }
a:hover .ext { color: inherit; }

/* menu deroulant "Categories" (reprend le panneau du selecteur de langue) */
.nav-dd { position: relative; }
.nav-dd .chev { transition: transform .2s ease; }
.nav-dd[open] .chev { transform: rotate(180deg); }
.nav-dd-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 60;
    margin: 0;
    padding: 6px;
    list-style: none;
    min-width: 190px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    animation: panel-down .18s ease;
}
.nav-dd-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 500;
}
.nav-dd-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-dd-menu a.is-current { color: var(--accent); font-weight: 600; }
.nav-dd-menu a.is-current::after { content: " ✓"; }
/* variantes de position du popover */
.nav-dd-menu.align-right { left: auto; right: 0; }
.nav-dd-menu.up { top: auto; bottom: calc(100% + 8px); animation: panel-up .18s ease; }
@keyframes panel-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* CTA "Ouvrir TextStudio" dans le header */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 2px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 137, 255, .28);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 137, 255, .36); }
.nav-cta .ext { color: rgba(255, 255, 255, .85); }

/* selecteur de langue */
.lang-switch { position: relative; }
.lang-switch summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: border-color .15s ease, color .15s ease;
    user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--accent); color: var(--accent); }
.lang-switch .chev { transition: transform .2s ease; }
.lang-switch[open] .chev { transform: rotate(180deg); }

/* langues dans le menu mobile */
.mobile-menu-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 8px 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.mobile-menu-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px 6px; }
.mobile-menu-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
}
.mobile-menu-links a:hover { border-color: var(--accent); color: var(--accent); }
.mobile-menu-links a.is-current { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* boutons d'action mobiles (recherche + hamburger) */
.header-actions { display: none; align-items: center; gap: 2px; margin-left: auto; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.icon-btn:hover, .icon-btn.is-open { background: var(--accent-soft); color: var(--accent); }

/* hamburger anime -> croix */
.nav-toggle { position: relative; }
.nav-toggle .bar {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .18s ease, top .28s cubic-bezier(.4, 0, .2, 1);
}
.nav-toggle .bar:nth-child(1) { top: 15px; }
.nav-toggle .bar:nth-child(2) { top: 20px; }
.nav-toggle .bar:nth-child(3) { top: 25px; }
.nav-toggle.is-open .bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; transform: translateX(6px); }
.nav-toggle.is-open .bar:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* panneaux deroulants mobiles */
.header-panel { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.header-panel.is-open { display: block; animation: panel-down .24s cubic-bezier(.4, 0, .2, 1); }
@keyframes panel-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}
.mobile-menu-list { display: flex; flex-direction: column; padding: 10px 18px 16px; }
.mobile-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-radius: 10px;
    transition: background .15s ease, color .15s ease;
}
.mobile-menu-list a:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-menu-list a.mobile-cta {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    margin-top: 4px;
}
.mobile-menu-list a.mobile-cta:hover { background: var(--accent-strong); }
.mobile-menu-list a.mobile-cta .ext { color: rgba(255, 255, 255, .85); }
#mobile-search .search-form { margin: 14px 0 18px; max-width: none; }

@media (max-width: 899px) {
    /* .header-inner double la specificite : ces regles doivent gagner sur les
       regles de base declarees plus bas dans le fichier (cascade) */
    .header-inner .site-nav, .header-inner .nav-search,
    .header-inner .lang-switch, .header-inner .nav-cta { display: none; }
    .header-inner .header-actions { display: flex; }
    .header-inner .logo img { height: 25px; }
    .header-inner .logo-suffix { font-size: 10.5px; padding: 2px 8px; letter-spacing: .1em; }
}

/* ------------------------------------------------------------------ hero */
.archive-head { padding: 40px 0 6px; position: relative; }
@media (min-width: 768px) { .archive-head { padding-top: 58px; } }
.eyebrow {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}
.archive-head h1, .home-title {
    margin: 0;
    font-size: clamp(28px, 5.4vw, 42px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.022em;
    max-width: 26ch;
}
.home-sub {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 2.4vw, 18px);
    max-width: 56ch;
}

/* --------------------------------------------------------------- listing */
.post-list { padding: 26px 0 10px; }
@media (min-width: 768px) { .post-list { padding-top: 38px; } }

.post-card {
    display: grid;
    gap: 14px;
    padding: 22px 0;
    position: relative;   /* ancre le lien etendu (toute la carte cliquable) */
}
@media (min-width: 640px) {
    .post-card {
        grid-template-columns: 264px minmax(0, 1fr);
        gap: 30px;
        align-items: center;
        padding: 26px 0;
    }
}
.post-card + .post-card { border-top: 1px solid var(--border); }

/* Vignette "letterbox floutee" : l'image entiere est visible (object-fit:
   contain) et les bandes vides sont remplies par un fond = la meme image,
   zoomee et floutee (::before, en background CSS -> pas d'<img> decoratif,
   la regle SEO du alt reste respectee). La source est passee inline via
   --thumb sur l'element. */
.card-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border);
}
.card-thumb::before,
.related-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--thumb) center / cover no-repeat;
    filter: blur(22px) saturate(1.35);
    transform: scale(1.3);
}
.card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.post-card:hover .card-thumb img { transform: scale(1.035); }

.card-title {
    margin: 0 0 7px;
    font-size: 20.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.012em;
}
.card-title a { color: var(--text); transition: color .15s ease; }
.post-card:hover .card-title a { color: var(--accent); }
/* toute la carte est cliquable : le lien du titre s'etend sur le rectangle
   (pattern "stretched link", HTML semantique conserve : un seul lien focusable) */
.card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}
.card-excerpt {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .015em;
    text-transform: uppercase;
}
.dot { padding: 0 5px; color: var(--accent); }

/* ------------------------------------------------------------ pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 30px 0 52px;
    font-size: 14.5px;
    font-weight: 500;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.page-info { color: var(--muted); }

/* ------------------------------------------------------------------ post */
.post { padding: 40px 18px 30px; }
@media (min-width: 640px) { .post { padding: 56px 28px 30px; } }
.draft-banner {
    background: #fff3cd;
    color: #7a5d00;
    border-radius: var(--r-sm);
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
}
.post-tags-top { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags-top a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: 999px;
}
.post-tags-top a:hover { background: var(--accent); color: #fff; }
.post-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 5.6vw, 42px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.022em;
}
.post-meta {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .015em;
    text-transform: uppercase;
}
.post-cover { margin: 4px 0 38px; }
.post-cover img {
    display: block;
    width: 100%;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

/* contenu ------------------------------------------------------------- */
.post-content { font-size: 17px; line-height: 1.78; }
@media (min-width: 640px) { .post-content { font-size: 17.5px; } }
.post-content > p { margin: 0 0 1.4em; }
.post-content a {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-color: var(--accent); }
.post-content h2 {
    margin: 2em 0 .65em;
    font-size: clamp(22px, 3.4vw, 27px);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -.016em;
    scroll-margin-top: 90px;
}
.post-content h3 {
    margin: 1.7em 0 .55em;
    font-size: clamp(19px, 2.8vw, 21px);
    font-weight: 600;
    line-height: 1.32;
    scroll-margin-top: 90px;
}
.post-content h4 { margin: 1.5em 0 .4em; font-size: 18px; font-weight: 600; }
.post-content ul, .post-content ol { margin: 0 0 1.4em; padding-left: 1.35em; }
.post-content li { margin: .4em 0; }
.post-content li::marker { color: var(--accent); font-weight: 600; }
.post-content li > ul, .post-content li > ol { margin-bottom: 0; }

.post-content .post-image { margin: 2.2em 0; text-align: center; }
.post-content .post-image img {
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
}
.post-content figcaption {
    margin-top: .85em;
    color: var(--muted);
    font-size: 13.5px;
}
.post-content figcaption::before {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    opacity: .55;
    margin: 0 auto 8px;
}

.post-content blockquote {
    margin: 1.8em 0;
    padding: 14px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    background: var(--surface);
    color: var(--muted);
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content hr {
    margin: 2.6em auto;
    border: 0;
    height: 4px;
    width: 56px;
    border-radius: 4px;
    background: var(--accent-soft);
}
.post-content code {
    font-family: var(--mono);
    font-size: .86em;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .12em .38em;
}
.post-content pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 20px;
    overflow-x: auto;
    margin: 1.8em 0;
}
.post-content pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.65; }

.post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 15px;
    border-radius: var(--r-md);
}
.post-content th, .post-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    min-width: 90px;
}
.post-content th {
    background: var(--surface);
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
}
.post-content tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 55%, transparent); }

/* heritages Ghost : callouts + boutons ---------------------------------- */
.post-content .kg-callout-card {
    display: flex;
    gap: 10px;
    margin: 2em 0;
    padding: 18px 22px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    font-size: 16px;
}
.post-content .kg-button-card { margin: 2.2em 0; text-align: center; }
.post-content .kg-btn, .btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 15.5px;
    padding: 12px 26px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 137, 255, .3);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.post-content .kg-btn:hover, .btn:hover {
    background: var(--accent-strong);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 137, 255, .38);
}

/* articles lies ----------------------------------------------------------- */
.related { margin: 40px 0 8px; }
.related-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.012em;
}
.related-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    border-radius: var(--r-md);
}
.related-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--border);
}
.related-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}
.related-card:hover .related-thumb img { transform: scale(1.03); }
.related-card-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.related-card:hover .related-card-title { color: var(--accent); }
.related-card-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* pied d'article --------------------------------------------------------- */
.post-foot { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 22px; }
.post-tags { margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 13px;
    transition: color .15s ease, border-color .15s ease;
}
.post-tags a:hover { color: var(--accent); border-color: var(--accent); }
.post-backlink { font-size: 14.5px; font-weight: 500; }
.post-backlink a, .footer-col a { display: inline-flex; align-items: center; gap: 7px; }

/* ------------------------------------------------------------- redactrice */
.avatar { border-radius: 50%; display: inline-block; object-fit: cover; }
.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0089ff, #4db4ff);
    color: #fff;
    font-weight: 600;
}
.post-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.byline-author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-weight: 600;
}
.byline-author:hover { color: var(--accent); }

.author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 26px 0 24px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.author-card-avatar { flex-shrink: 0; }
.author-card-name { margin: 0 0 2px; font-size: 16.5px; font-weight: 600; }
.author-card-role {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--accent);
}
.author-card-bio { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.author-card-more { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; }
@media (max-width: 520px) {
    .author-card { flex-direction: column; gap: 14px; }
}

.author-head {
    display: flex;
    gap: 26px;
    align-items: center;
    padding: 44px 0 10px;
}
.author-head h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 5vw, 36px);
    letter-spacing: -.02em;
    line-height: 1.15;
}
.author-head .eyebrow { margin-bottom: 6px; }
.author-head-bio { margin: 0; color: var(--muted); max-width: 58ch; }
@media (max-width: 560px) {
    .author-head { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 34px; }
}

/* ------------------------------------------------------------------- 404 */
.center-404 { text-align: center; padding: 90px 18px 110px; }
.center-404 h1 {
    font-size: clamp(70px, 16vw, 110px);
    margin: 0 0 6px;
    line-height: 1;
    background: linear-gradient(120deg, #0089ff, #4db4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.center-404 p { color: var(--muted); margin: 0 0 26px; }

/* ---------------------------------------------------------------- footer */
.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    font-size: 14.5px;
}
.footer-inner { padding: 40px 18px 26px; display: grid; gap: 26px 40px; }
@media (min-width: 640px) {
    .footer-inner {
        padding: 46px 28px 26px;
        grid-template-columns: minmax(0, 1.6fr) auto auto;
        gap: 14px 56px;
    }
    .footer-bottom { grid-column: 1 / -1; }
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { margin: 12px 0 16px; color: var(--muted); max-width: 42ch; }
.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.footer-cta:hover { background: var(--accent-strong); color: #fff; }
.footer-cta .ext { color: rgba(255, 255, 255, .85); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-title {
    margin: 0 0 3px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.footer-col a { color: var(--text); font-weight: 500; font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-col a.is-current { color: var(--accent); font-weight: 600; }
.footer-copy { margin: 0; color: var(--muted); font-size: 13.5px; }
/* selecteur de langue du footer (popover reutilise, ouverture vers le haut) */
.footer-lang { flex-shrink: 0; }
.footer-lang > summary { font-size: 13px; padding: 6px 12px; background: var(--bg); }

/* le logo est bicolore (noir + bleu) : en sombre, noir -> blanc, bleu conserve */
@media (prefers-color-scheme: dark) {
    .logo img, .footer-brand img, .admin-logo img {
        filter: invert(1) hue-rotate(195deg) saturate(1.15);
    }
}

/* --------------------------------------------------------------- recherche */
/* la recherche occupe l'espace libre du header ; le champ reste compact (210px,
   aligne a droite) au repos et s'etend pour REMPLIR tout cet espace au focus. */
.nav-search { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; justify-content: flex-end; margin: 0 2px; }
.nav-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 210px;
    transition: max-width .3s cubic-bezier(.4, 0, .2, 1);
}
.nav-search-box:focus-within { max-width: 100%; }
.nav-search input {
    font: 14px var(--font);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px 7px 34px;
    width: 100%;
    transition: border-color .15s ease, background .15s ease;
}
.nav-search input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
}
.nav-search .search-ico {
    position: absolute;
    left: 12px;
    width: 14px;
    height: 14px;
    color: var(--muted);
    pointer-events: none;
}
.search-head { padding: 40px 0 10px; }
.search-form { display: flex; gap: 10px; margin: 18px 0 6px; max-width: 560px; }
.search-form input {
    flex: 1;
    font: 16px var(--font);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 20px;
}
.search-form input:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.search-form button { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.search-count { color: var(--muted); font-size: 14.5px; margin: 4px 0 0; }
.search-empty { color: var(--muted); padding: 30px 0 10px; }
