/*
Theme Name: Éclat
Theme URI: https://teamexdi.com/eclat
Author: Wilfried — TEAMEXDI LP
Author URI: https://teamexdi.com
Description: Thème éditorial ultra-rapide, optimisé pour Google Discover et les Core Web Vitals. Conçu pour les magazines de mode, beauté et lifestyle. Zéro dépendance jQuery, données structurées Article/JSON-LD, Open Graph, images grand format, police d'affichage réglable et couleur d'accent personnalisable par site.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eclat
Tags: blog, news, editorial, fashion, one-column, two-columns, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
    --ink: #14110f;
    --ink-soft: #3a3632;
    --paper: #ffffff;
    --paper-2: #faf8f6;
    --muted: #7c756e;
    --line: #e9e5e0;
    --line-strong: #d8d2ca;
    --accent: #8e5572;            /* surchargé par le Customizer */
    --accent-contrast: #ffffff;   /* surchargé par le Customizer */

    --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --wrap: 1200px;
    --wrap-narrow: 720px;
    --gap: clamp(1.2rem, 3vw, 2.4rem);
    --radius: 2px;

    --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
    --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
    --step-2: clamp(1.5rem, 1.36rem + 0.7vw, 1.95rem);
    --step-3: clamp(1.95rem, 1.7rem + 1.25vw, 2.9rem);
    --step-4: clamp(2.5rem, 2.05rem + 2.25vw, 4.2rem);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }
p { margin: 0 0 1.35em; }
ul, ol { margin: 0 0 1.35em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    font-weight: 600;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

blockquote {
    margin: 2em 0;
    padding: .2em 0 .2em 1.4em;
    border-left: 2px solid var(--accent);
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-style: italic;
    color: var(--ink);
}

figure { margin: 2em 0; }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .6em; text-align: center; }

code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
}
pre { background: var(--paper-2); padding: 1.1em; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--line); }
code { background: var(--paper-2); padding: .1em .4em; border-radius: var(--radius); }

hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }

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

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.eyebrow {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow a { color: inherit; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: #fff; padding: .8em 1.2em; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:where(a, button, input, .card__link):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius);
}

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--paper); } }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem);
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink);
    line-height: 1;
    margin: 0;
}
.brand__logo img { max-height: 44px; width: auto; }
.brand__tagline { display: none; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; align-items: center; }
.main-nav a {
    font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink); position: relative; padding: .3em 0;
}
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
    background: var(--accent); transition: width .22s ease;
}
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { width: 100%; }
.main-nav .current-menu-item > a { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
    background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink);
    display: inline-flex; line-height: 0; border-radius: var(--radius);
}
.icon-btn:hover { color: var(--accent); }
.icon-btn svg { width: 22px; height: 22px; }

.nav-toggle { display: none; }

/* Search drawer */
.search-drawer {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
    border-bottom: 1px solid transparent; background: var(--paper);
}
.search-drawer.is-open { grid-template-rows: 1fr; border-bottom-color: var(--line); }
.search-drawer > div { overflow: hidden; }
.search-drawer form { display: flex; gap: .6rem; padding: 1.2rem 0; }
.search-field {
    flex: 1; border: 0; border-bottom: 2px solid var(--line-strong); background: none;
    font-family: var(--font-display); font-size: var(--step-2); padding: .3em 0; color: var(--ink);
}
.search-field:focus { outline: none; border-bottom-color: var(--accent); }
.search-submit {
    border: 0; background: var(--ink); color: #fff; padding: 0 1.4em; cursor: pointer;
    font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius);
}
.search-submit:hover { background: var(--accent); }

/* ==========================================================================
   5. Hero (accueil)
   ========================================================================== */
.lead {
    display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap);
    padding-block: clamp(2rem, 5vw, 3.5rem); align-items: stretch;
}
.lead__feature { position: relative; }
.lead__thumb { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--paper-2); }
.lead__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lead__feature:hover .lead__thumb img { transform: scale(1.03); }
.lead__body { padding-top: 1.3rem; }
.lead__title { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.15; margin-top: .3rem; }
.lead__excerpt { color: var(--muted); font-size: var(--step-1); max-width: 40ch; }

.lead__side { display: flex; flex-direction: column; gap: 1.3rem; }
.lead__side .mini { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; }
.lead__side .mini__thumb { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.lead__side .mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead__side .mini__title { font-size: var(--step-1); line-height: 1.2; }
.lead__side .mini + .mini { border-top: 1px solid var(--line); padding-top: 1.3rem; }

/* ==========================================================================
   6. Section headings
   ========================================================================== */
.section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    border-top: 2px solid var(--ink); padding-top: .9rem; margin-bottom: 1.8rem;
}
.section-head h2 { font-size: var(--step-2); margin: 0; }
.section-head .more { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent); font-family: var(--font-body); }

/* ==========================================================================
   7. Post grid / cards
   ========================================================================== */
.post-grid {
    display: grid; gap: clamp(1.6rem, 4vw, 2.6rem);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.card { display: flex; flex-direction: column; }
.card__thumb {
    position: relative; overflow: hidden; border-radius: var(--radius);
    aspect-ratio: 4 / 3; background: var(--paper-2); margin-bottom: 1rem;
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__thumb img { transform: scale(1.04); }
.card__cat {
    position: absolute; left: .8rem; top: .8rem; z-index: 2;
    background: var(--paper); color: var(--ink); font-size: .66rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; padding: .35em .7em; border-radius: var(--radius);
    font-family: var(--font-body);
}
.card__title { font-size: var(--step-1); line-height: 1.18; margin: 0 0 .5rem; }
.card__title a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease; }
.card:hover .card__title a { background-size: 100% 1.5px; }
.card__excerpt { color: var(--muted); font-size: var(--step--1); line-height: 1.6; margin: 0 0 .8rem; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--step--1); color: var(--muted); font-family: var(--font-body); }
.meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.meta a:hover { color: var(--accent); }

/* ==========================================================================
   8. Single / page
   ========================================================================== */
.article-hero { padding-block: clamp(1.8rem, 5vw, 3rem) 0; text-align: center; }
.article-hero .eyebrow { display: inline-block; margin-bottom: 1rem; }
.article-hero__title { font-size: var(--step-4); max-width: 18ch; margin-inline: auto; }
.article-hero__excerpt { font-size: var(--step-1); color: var(--muted); max-width: 60ch; margin: 1rem auto 0; }

.article-byline {
    display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap;
    margin: 1.6rem 0; font-family: var(--font-body); font-size: var(--step--1); color: var(--muted);
}
.article-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article-byline strong { color: var(--ink); font-weight: 600; }

.article-figure { margin: clamp(1.5rem, 4vw, 2.5rem) 0; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-figure--wide { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); border-radius: 0; }

.article-body { font-size: var(--step-0); }
.article-body > * { max-width: var(--wrap-narrow); margin-inline: auto; }
.article-body h2 { font-size: var(--step-2); margin-top: 1.8em; }
.article-body h3 { font-size: var(--step-1); margin-top: 1.6em; }
.article-body img { border-radius: var(--radius); }
.article-body a:not(.btn) {
    color: var(--ink); box-shadow: inset 0 -.4em 0 color-mix(in srgb, var(--accent) 22%, transparent);
    transition: box-shadow .2s ease, color .2s ease;
}
.article-body a:not(.btn):hover { color: var(--accent); box-shadow: inset 0 -1em 0 color-mix(in srgb, var(--accent) 16%, transparent); }
.alignwide { max-width: 1040px; }
.alignfull { max-width: 100%; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: var(--step--1); color: var(--muted); text-align: center; }

.entry-tags { max-width: var(--wrap-narrow); margin: 2.5rem auto 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a {
    font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
    border: 1px solid var(--line-strong); padding: .4em .9em; border-radius: 100px; color: var(--muted);
}
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* Author box (E-E-A-T) */
.author-box {
    max-width: var(--wrap-narrow); margin: clamp(2.5rem,6vw,4rem) auto 0;
    display: grid; grid-template-columns: 72px 1fr; gap: 1.3rem;
    padding: 1.8rem; background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line);
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box__name { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); margin: 0 0 .2rem; }
.author-box__role { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: .6rem; }
.author-box__bio { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* Related */
.related { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* Prev/next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 2.5rem; }
.post-nav a { background: var(--paper); padding: 1.4rem clamp(1rem,3vw,1.6rem); }
.post-nav .label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.post-nav .t { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); margin-top: .3rem; display: block; }
.post-nav .next { text-align: right; }

/* ==========================================================================
   9. Comments
   ========================================================================== */
.comments-area { max-width: var(--wrap-narrow); margin: clamp(2.5rem,6vw,4rem) auto 0; }
.comment-list { list-style: none; padding: 0; margin: 2rem 0; }
.comment-list ol { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--ink); font-style: normal; }
.comment-metadata { font-size: var(--step--1); color: var(--muted); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
    width: 100%; padding: .8em; border: 1px solid var(--line-strong); border-radius: var(--radius);
    font-family: inherit; font-size: var(--step-0); background: var(--paper); margin-bottom: 1rem;
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--accent); }

/* ==========================================================================
   10. Buttons / forms / pagination
   ========================================================================== */
.btn {
    display: inline-block; background: var(--ink); color: #fff; padding: .85em 1.8em;
    font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
    border-radius: var(--radius); border: 0; cursor: pointer; font-family: var(--font-body);
}
.btn:hover { background: var(--accent); color: var(--accent-contrast); }
.btn--ghost { background: none; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.pagination { display: flex; justify-content: center; gap: .4rem; padding-block: 1rem 4rem; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
    padding: 0 .6em; border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 600; font-size: .9rem;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(3rem,8vw,6rem); background: var(--paper-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); padding-block: clamp(2.5rem,6vw,4rem); }
.footer-brand .brand__title { font-size: var(--step-2); }
.footer-about { color: var(--muted); font-size: var(--step--1); max-width: 42ch; margin-top: 1rem; }
.footer-col h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-body); color: var(--ink); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: var(--muted); font-size: var(--step--1); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--step--1); color: var(--muted); }
.social-row { display: flex; gap: .8rem; }
.social-row a { color: var(--muted); line-height: 0; }
.social-row a:hover { color: var(--accent); }
.social-row svg { width: 20px; height: 20px; }

/* Newsletter strip */
.newsletter { text-align: center; padding-block: clamp(2.5rem,6vw,4rem); border-top: 1px solid var(--line); }
.newsletter h2 { font-size: var(--step-3); }
.newsletter p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.newsletter form { display: flex; gap: .6rem; max-width: 480px; margin: 1.6rem auto 0; }
.newsletter input { flex: 1; padding: .85em 1em; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: var(--step-0); }
.newsletter input:focus { outline: none; border-color: var(--accent); }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .lead { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; inset: 68px 0 auto 0; background: var(--paper);
        border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: opacity .2s ease, transform .2s ease; max-height: calc(100dvh - 68px); overflow-y: auto;
    }
    .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a { display: block; padding: 1em clamp(1.1rem,4vw,2.5rem); }
    .main-nav a::after { display: none; }
    .post-nav { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .author-box { grid-template-columns: 1fr; text-align: center; }
    .author-box img { margin-inline: auto; }
    .article-figure--wide { margin-inline: calc(50% - 50vw); }
    .lead__side .mini { grid-template-columns: 72px 1fr; }
}

/* ==========================================================================
   13. Utilities & WP core
   ========================================================================== */
.sticky-badge { display: inline-block; }
.bypostauthor { display: block; }
.wp-block-image img { border-radius: var(--radius); }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
.gallery-item img { border-radius: var(--radius); }

/* ==========================================================================
   14. Fil d'Ariane (Rank Math + secours)
   ========================================================================== */
.breadcrumb, .rank-math-breadcrumb { padding: 1.2rem 0 0; }
.breadcrumb p, .rank-math-breadcrumb p { margin: 0; }
.breadcrumb, .rank-math-breadcrumb a, .rank-math-breadcrumb .separator {
    font-size: .78rem; letter-spacing: .04em; color: var(--muted); font-family: var(--font-body);
}
.breadcrumb a:hover, .rank-math-breadcrumb a:hover { color: var(--accent); }
.rank-math-breadcrumb .separator { margin: 0 .5em; opacity: .6; }

/* ==========================================================================
   15. Article + sidebar
   ========================================================================== */
.article-wrap {
    display: grid; grid-template-columns: minmax(0,1fr) 320px;
    gap: clamp(2rem, 5vw, 4rem); align-items: start;
    padding-top: 2.2rem;
}
.article-main { min-width: 0; }
.article-main > * { max-width: 68ch; }
.article-main .alignwide, .article-main .alignfull, .article-main figure.article-figure--wide { max-width: none; }
.article-main h2 { font-size: var(--step-2); margin-top: 1.7em; scroll-margin-top: 120px; }
.article-main h3 { font-size: var(--step-1); margin-top: 1.5em; scroll-margin-top: 120px; }
.article-main a:not(.btn) {
    color: var(--ink); box-shadow: inset 0 -.4em 0 color-mix(in srgb, var(--accent) 22%, transparent);
    transition: box-shadow .2s ease, color .2s ease;
}
.article-main a:not(.btn):hover { color: var(--accent); box-shadow: inset 0 -1em 0 color-mix(in srgb, var(--accent) 16%, transparent); }

.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2rem; }
.widget h4, .widget .widget-title {
    font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
    border-top: 2px solid var(--ink); padding-top: .8rem; margin: 0 0 1rem; font-family: var(--font-body);
}
.w-item { display: grid; grid-template-columns: 68px 1fr; gap: .85rem; align-items: center; margin-bottom: 1rem; }
.w-item img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius); }
.w-item h5 { font-family: var(--font-display); font-size: 1rem; line-height: 1.2; margin: 0 0 .2rem; color: var(--ink); }
.w-item .m { font-size: .74rem; color: var(--muted); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px solid var(--line); padding: .5rem 0; display: flex; justify-content: space-between; font-size: .92rem; }
.w-news { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.w-news h4 { border: 0; padding: 0; }
.w-news p { font-size: .85rem; color: var(--muted); margin: .3rem 0 .9rem; }
.w-news input { width: 100%; padding: .7em; border: 1px solid var(--line-strong); border-radius: var(--radius); margin-bottom: .6rem; font-size: .9rem; }
.w-news .btn { width: 100%; text-align: center; }
.w-ad { border: 1px dashed var(--line-strong); border-radius: var(--radius); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }

/* ==========================================================================
   16. Sommaire (table des matières)
   ========================================================================== */
.toc { border-top: 2px solid var(--ink); padding-top: .8rem; }
.toc__title { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 .8rem; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; border: 0; padding: 0; display: block; }
.toc a { display: block; padding: .35rem 0 .35rem .9rem; font-size: .9rem; color: var(--muted); border-left: 2px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc .lvl-3 a { padding-left: 1.8rem; font-size: .84rem; }
.toc--mobile { display: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); margin: 1.5rem auto 0; max-width: 68ch; }
.toc--mobile summary { cursor: pointer; padding: .9rem 1.1rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc--mobile summary::-webkit-details-marker { display: none; }
.toc--mobile summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); }
.toc--mobile[open] summary::after { content: "–"; }
.toc--mobile .toc { border: 0; padding: 0 1.1rem 1rem; }

/* ==========================================================================
   17. Partage social (liens légers, aucun script tiers)
   ========================================================================== */
.share { display: flex; gap: .5rem; }
.share--rail {
    position: fixed; left: max(1rem, calc(50% - 640px)); top: 50%; transform: translateY(-50%);
    flex-direction: column; z-index: 40;
}
.share--inline { justify-content: center; margin: 2rem auto 0; max-width: 68ch; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share--inline .share__label { align-self: center; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-right: .3rem; }
.share a, .share button {
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); background: var(--paper);
    cursor: pointer; transition: all .18s ease; padding: 0;
}
.share a:hover, .share button:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.share svg { width: 18px; height: 18px; }
.share .copied { position: relative; }
.share__toast { position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .7rem; padding: .3em .6em; border-radius: var(--radius); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share__toast.show { opacity: 1; }
@media (max-width: 1320px) { .share--rail { display: none; } }

/* ==========================================================================
   18. Encadré auteur (tronqué) + page auteur
   ========================================================================== */
.author-box {
    display: grid; grid-template-columns: 76px 1fr; gap: 1.3rem;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.7rem; margin-top: 2.5rem; max-width: 68ch;
}
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.author-box .role { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.author-box .nm { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin: .15rem 0 .45rem; }
.author-box .nm a { color: inherit; }
.clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .92rem; margin: 0; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); margin: 0 auto; }
.author-box .more { display: inline-block; margin-top: .7rem; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent); }

.author-head { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(2rem,5vw,3.2rem) 0 1.5rem; }
.author-head img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.author-head .role { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.author-head h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); margin: .3rem 0 .6rem; }

/* ==========================================================================
   19. Bandeau cookies
   ========================================================================== */
.cookie {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 600px; margin: 0 auto;
    background: var(--ink); color: #fff; border-radius: 6px; padding: 1.1rem 1.3rem;
    display: none; flex-wrap: wrap; gap: .9rem; align-items: center; justify-content: space-between;
    z-index: 300; box-shadow: 0 12px 45px rgba(0,0,0,.28);
}
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; font-size: .85rem; flex: 1 1 260px; line-height: 1.5; }
.cookie a { color: #fff; text-decoration: underline; }
.cookie .row { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie button { font: inherit; font-size: .76rem; padding: .55em 1em; border-radius: var(--radius); cursor: pointer; border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; }
.cookie button.accept { background: #fff; color: var(--ink); border-color: #fff; font-weight: 600; }

/* ==========================================================================
   20. Formulaire de contact
   ========================================================================== */
.contact-form { max-width: var(--wrap-narrow); margin: 2rem auto 0; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin: 0 0 .4rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: .8em; border: 1px solid var(--line-strong); border-radius: var(--radius); font-family: inherit; font-size: 1rem; background: var(--paper); margin-bottom: 1.1rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-note { max-width: var(--wrap-narrow); margin: 1rem auto 0; padding: 1em 1.2em; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); font-size: .95rem; }
.contact-note.ok { border-color: color-mix(in srgb, #3f8f5f 40%, var(--line)); }

/* ==========================================================================
   21. Variantes d'accueil & d'en-tête (différenciation par site)
   ========================================================================== */
/* En-tête centré */
body.header-center .header-inner { flex-direction: column; gap: .6rem; min-height: 0; padding-block: 1rem; }
body.header-center .main-nav ul { justify-content: center; }
body.header-center .header-actions { position: absolute; right: clamp(1.1rem,4vw,2.5rem); top: 1.1rem; }
body.header-center .site-header { position: static; }

/* Accueil : grand visuel pleine largeur */
.home-hero-full { position: relative; }
.home-hero-full .hf-thumb { aspect-ratio: 21/9; overflow: hidden; background: var(--paper-2); }
.home-hero-full .hf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-full .hf-body { max-width: var(--wrap-narrow); margin: -4rem auto 0; position: relative; background: var(--paper); padding: 2rem clamp(1.2rem,4vw,2.5rem) 0; text-align: center; }
.home-hero-full .hf-body h2 { font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.2rem); }
@media (max-width: 680px) { .home-hero-full .hf-body { margin-top: 1rem; } }

/* ==========================================================================
   22. Responsive additions
   ========================================================================== */
@media (max-width: 980px) {
    .article-wrap { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .sidebar .toc { display: none; }        /* le sommaire desktop cède la place au sommaire mobile */
    .toc--mobile { display: block; }
}
@media (max-width: 680px) {
    .author-box { grid-template-columns: 1fr; text-align: center; }
    .author-box img { margin-inline: auto; }
    .contact-form .row2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   23. Article : nouvelle structure (image → H1, colonne + sidebar)
   ========================================================================== */
.article-main .article-figure { margin: .2rem 0 1.5rem; }
.article-main .article-figure img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius);
}
.article-main .eyebrow { margin-bottom: .6rem; }

.entry-title {
    font-family: var(--font-display); color: var(--ink); font-weight: 600;
    font-size: clamp(1.7rem, 1.45rem + 1.3vw, 2.4rem); line-height: 1.14;
    letter-spacing: -.01em; margin: 0 0 .4rem;
}
.entry-sub { font-size: var(--step-1); color: var(--muted); margin: .3rem 0 0; max-width: 60ch; }

.article-byline--left { justify-content: flex-start; margin: 1.1rem 0 1.8rem; }

@media (max-width: 680px) {
    .entry-title { font-size: clamp(1.5rem, 1.3rem + 2vw, 1.9rem); }
}

/* ==========================================================================
   24. Bloc "Qui écrit ici" — version photo + légende + CTA
   ========================================================================== */
.about-band { background: var(--paper-2); border-block: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.about-inner { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-inner--solo { grid-template-columns: 1fr; max-width: 760px; }

.about-figure { position: relative; margin: 0; grid-column: 1; }
.about-figure > img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 540px; object-fit: cover; border-radius: var(--radius); display: block; }
.about-figure__caption {
    position: absolute; left: 0; bottom: 1.6rem; max-width: 82%;
    background: var(--paper); padding: 1.1rem 1.3rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 14px 44px rgba(0,0,0,.14);
    font-size: 1rem; line-height: 1.55; color: var(--ink-soft);
}
.about-figure__caption mark {
    background: var(--accent); color: var(--accent-contrast); font-weight: 600;
    padding: .08em .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.about-copy .eyebrow { margin-bottom: .8rem; }
.about-copy h2 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem); color: var(--ink); margin: 0 0 1rem; }
.about-text, .about-text p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 56ch; }
.about-text strong { color: var(--ink); font-weight: 600; }

.about-cta { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.9rem; max-width: 560px; }
.about-more-wrap { margin: 1.9rem 0 0; }
.about-more { display: inline-flex; align-items: center; gap: .5em; }
.about-more span[aria-hidden] { font-size: 1.1em; }
.about-cta .btn {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.05em 1.6em; font-size: .88rem;
}
.about-cta .btn span[aria-hidden] { font-size: 1.1em; }

@media (max-width: 820px) {
    .about-inner { grid-template-columns: 1fr; gap: 2rem; }
    .about-figure { max-width: 460px; }
    .about-cta { max-width: none; }
}
