/*
Theme Name: dds_charcuterieollivier.com
Theme URI: https://charcuterieollivier.com/
Author: Julien Ollivier
Description: Comptoir Urbain — thème éditorial pour un guide pratique de l’immobilier commercial destiné aux artisans, commerçants et très petites entreprises.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cptur
*/

/* ---------- Variables ---------- */
:root {
    --paper: #F7F4EF;
    --paper-alt: #EFEAE3;
    --navy: #1C2B36;
    --side: #F2EDE6;
    --ink: #1E2A32;
    --clay: #C24B2E;
    --amber: #E8A33D;
    --muted: #6B7A85;
    --muted-light: #9DADB8;
    --hatch: #E8E1D9;
    --sheet: #FFFDF9;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --shadow-paper: 0 10px 18px -12px rgba(28, 43, 54, .35), 0 2px 4px rgba(28, 43, 54, .05);
    --shadow-paper-up: 0 18px 28px -14px rgba(28, 43, 54, .45), 0 4px 8px rgba(28, 43, 54, .07);
}

/* ---------- États [hidden] (avant les blocs principaux) ---------- */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
    background-image: repeating-linear-gradient(45deg, rgba(232, 225, 217, .3) 0 1.5px, transparent 1.5px 8px);
}
img, svg, video { max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.22;
    margin: 1.6em 0 .6em;
    font-weight: 700;
}
h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p, li, h1, h2, h3, h4, h5, h6, blockquote, td, th, dd, dt, figcaption {
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--clay);
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
    transition: text-decoration-color .2s, text-decoration-thickness .2s;
}
a:hover, a:focus-visible {
    text-decoration-color: var(--amber);
    text-decoration-thickness: 3px;
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; border: 1px solid #D5CBBF; font-size: .95rem; }
th, td { border: 1px solid #D5CBBF; padding: .6rem .8rem; text-align: start; vertical-align: top; }
th { background: var(--paper-alt); font-weight: 600; }

blockquote { margin: 1.5em 0; }
ul, ol { padding-inline-start: 1.4em; margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px dashed var(--muted); margin: 2.5em 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--paper-alt); border-radius: 4px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    background: var(--amber);
    color: var(--navy);
    padding: .6rem 1rem;
    font-weight: 600;
    border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Conteneur unique ---------- */
.shell { width: min(92%, 1240px); margin-inline: auto; }

/* ---------- Boutons « étiquette de prix » ---------- */
.btn, .btn-line {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.7rem .8rem 1.5rem;
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    border: 0;
    background: none;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease, color .2s ease;
}
.btn { color: #fff; }
.btn-line { color: var(--clay); }
.btn::before, .btn-line::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: 4px;
    background: var(--clay);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: background-color .2s ease;
}
.btn-line::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 3px;
    background: var(--btn-fill, var(--paper));
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
    transition: opacity .2s ease;
}
.btn:hover, .btn:focus-visible, .btn-line:hover, .btn-line:focus-visible {
    color: var(--navy);
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 10px rgba(28, 43, 54, .22));
    text-decoration: none;
}
.btn:hover::before, .btn:focus-visible::before,
.btn-line:hover::before, .btn-line:focus-visible::before { background: var(--amber); }
.btn-line:hover::after, .btn-line:focus-visible::after { opacity: 0; }

/* ---------- En-tête ---------- */
.masthead { background: var(--navy); color: var(--paper); }
.masthead-top {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.3rem 0 1.1rem;
}
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; text-decoration: none; }
.brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { flex: 1 1 auto; min-width: 0; }
.brand-name {
    margin: 0 0 .25rem;
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
}
.brand-name a { color: var(--paper); text-decoration: none; }
.brand-name a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); }
.brand-tagline {
    margin: 0;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--muted-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.masthead-nav { border-top: 1px dashed rgba(247, 244, 239, .16); }
.primary-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 2rem;
}
.primary-nav .menu a {
    display: inline-block;
    padding: .85rem 0 .8rem;
    color: var(--paper);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: border-color .2s, color .2s;
}
.primary-nav .menu a:hover, .primary-nav .menu a:focus-visible { border-bottom-color: var(--amber); color: #fff; }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { border-bottom-color: var(--clay); }
.nav-toggle { display: none; }
.amber-line { height: 4px; background: var(--amber); }

/* ---------- Zone principale et vitrine décorative ---------- */
.site-main {
    position: relative;
    padding: 1.8rem 0 5rem;
    min-height: 50vh;
}
.site-main::after {
    content: "";
    position: absolute;
    right: 2rem;
    bottom: 1rem;
    width: 230px;
    height: 190px;
    pointer-events: none;
    z-index: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 200' fill='none' stroke='%23C24B2E' stroke-opacity='.1' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M40 8h160v22H40z'/%3E%3Cpath d='M10 38h220v12H10z'/%3E%3Cpath d='M14 50v12a13.25 13.25 0 0 0 26.5 0a13.25 13.25 0 0 0 26.5 0a13.25 13.25 0 0 0 26.5 0a13.25 13.25 0 0 0 26.5 0a13.25 13.25 0 0 0 26.5 0a13.25 13.25 0 0 0 26.5 0a13.25 13.25 0 0 0 26.5 0a13.25 13.25 0 0 0 26.5 0V50'/%3E%3Cpath d='M20 190V78M220 78v112'/%3E%3Cpath d='M34 96h110v72H34zM89 96v72M34 146h110'/%3E%3Cpath d='M160 96h46v94h-46z'/%3E%3Ccircle cx='198' cy='146' r='2.5'/%3E%3Cpath d='M0 190h240'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}
.site-main > * { position: relative; z-index: 1; }

/* ---------- Mises en page ---------- */
.layout-single { width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.content-area { min-width: 0; }

/* ---------- Fil d'Ariane ---------- */
.crumbs {
    font-size: .85rem;
    color: var(--muted);
    margin: 0 0 1.6rem;
    line-height: 1.5;
}
.crumbs a { color: var(--muted); text-decoration-color: rgba(194, 75, 46, .5); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--ink); }
.crumbs .crumb-sep { color: var(--amber); margin: 0 .35rem; font-weight: 600; }

/* ---------- Titres ---------- */
.page-head { margin-bottom: 2.2rem; }
.page-title { margin: 0 0 .5rem; font-size: 3.2rem; font-weight: 800; letter-spacing: -.01em; }
.page-lead, .archive-desc { color: var(--muted); max-width: 62ch; margin: 0; }

.sec-head { position: relative; margin: 0 0 2rem; padding-bottom: .85rem; }
.sec-head::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 8px;
    height: 8px;
    background: var(--amber);
}
.sec-head::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--clay);
}
.sec-title { margin: 0; font-size: 2.2rem; font-weight: 700; }

h2.sec-title::before, .entry-content h2::before, .notes-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: .82em;
    margin-inline-end: .55rem;
    background: var(--clay);
    vertical-align: baseline;
    border-radius: 1px;
}

/* ---------- Pastilles de catégories ---------- */
.chip {
    display: inline-block;
    padding: .18rem .6rem;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
    border: 1px solid var(--clay);
    border-radius: 3px;
    background: transparent;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.chip:hover, .chip:focus-visible { background: var(--clay); color: #fff; text-decoration: none; }

/* ---------- Cartes d'articles ---------- */
.card-grid { display: grid; gap: 2rem; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--sheet);
    border-top: 3px solid var(--clay);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-paper);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover, .card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-paper-up);
    border-top-color: var(--amber);
}
.card-thumb { position: relative; overflow: hidden; background: var(--paper-alt); }
.card-thumb::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(28, 43, 54, .45), rgba(28, 43, 54, 0));
    pointer-events: none;
}
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.5rem;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-bottom: .75rem;
    font-size: .8rem;
    color: var(--muted);
}
.card-pin {
    padding: .1rem .5rem;
    background: var(--amber);
    color: var(--navy);
    font-weight: 600;
    border-radius: 3px;
    font-size: .72rem;
}
.card-title { margin: 0 0 .7rem; font-size: 1.3rem; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.card-excerpt { font-size: .95rem; color: #3A4751; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: inherit; }
.card-more {
    align-self: flex-start;
    margin-top: .8rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--clay);
}

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 3rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .85rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--sheet);
    border: 1px solid #D5CBBF;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s;
}
.pager a.page-numbers:hover, .pager a.page-numbers:focus-visible { border-color: var(--amber); background: var(--amber); color: var(--navy); }
.pager .page-numbers.current { background: var(--clay); border-color: var(--clay); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .2rem; }

/* ---------- Barre latérale ---------- */
.sidebar {
    min-width: 0;
    background: var(--side);
    border-radius: 6px;
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-bottom: .55rem;
    font-size: 1.2rem;
    color: var(--ink);
    border-bottom: 2px solid var(--clay);
}
.sidebar, .sidebar p, .sidebar li { color: var(--ink); font-size: .95rem; }
.sidebar a { color: var(--ink); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed rgba(107, 122, 133, .35); line-height: 1.45; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar .post-date { color: var(--muted); font-size: .8rem; display: block; }
.sidebar .search-box { --btn-fill: var(--side); }

/* ---------- Contenu ---------- */
.entry-head { margin-bottom: 1.6rem; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .88rem; color: var(--muted); }
.entry-thumb { margin: 0 0 2rem; border-radius: 6px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.0625rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.9rem; }
.entry-content img { border-radius: 4px; }
.entry-content blockquote {
    padding: 1rem 1.4rem;
    border-inline-start: 4px solid var(--amber);
    background: var(--paper-alt);
    border-radius: 0 6px 6px 0;
    font-family: var(--serif);
    font-size: 1.2rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.entry-content .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed var(--muted); }
.page-links { margin: 1.5rem 0; font-weight: 600; }
.page-links a, .page-links > span { margin-inline-start: .5rem; }
.wp-caption, .gallery-caption { max-width: 100%; }
.sticky, .bypostauthor { outline: none; }

/* ---------- Recherche ---------- */
.search-box { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .75rem 1rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: var(--sheet);
    border: 1px solid #CFC5B8;
    border-radius: 4px;
}
.search-field:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }

/* ---------- Commentaires ---------- */
.notes { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px dashed var(--muted); }
.notes-title { margin: 0 0 1.5rem; font-size: 1.7rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-inline-start: 2rem; }
.note-body {
    background: var(--sheet);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-paper);
}
.note-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.note-head img { border-radius: 50%; display: block; }
.note-who { display: flex; flex-direction: column; line-height: 1.3; }
.note-author { font-weight: 600; }
.note-who time { font-size: .8rem; color: var(--muted); }
.note-wait { font-size: .88rem; color: var(--clay); font-style: italic; }
.note-text p:last-child { margin-bottom: 0; }
.note-reply { margin-top: .5rem; font-size: .88rem; font-weight: 600; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.5rem; margin: 0 0 1rem; }
.comment-reply-title small { font-family: var(--sans); font-size: .85rem; margin-inline-start: .8rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    font: inherit;
    color: var(--ink);
    background: var(--sheet);
    border: 1px solid #CFC5B8;
    border-radius: 4px;
}
.comment-form textarea { resize: vertical; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.form-note { font-size: .88rem; color: var(--muted); }
.req { color: var(--clay); }
.form-submit .submit {
    padding: .8rem 1.6rem;
    font: 600 .95rem var(--sans);
    color: #fff;
    background: var(--clay);
    border: 0;
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s;
}
.form-submit .submit:hover, .form-submit .submit:focus-visible { background: var(--amber); color: var(--navy); transform: translateY(-2px); }
.comments-navigation .nav-links, .comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-size: .9rem; }
.notes-closed { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { padding: 1rem 0 2rem; max-width: 720px; }
.notfound-code { font-family: var(--serif); font-size: 6rem; font-weight: 800; line-height: 1; color: var(--clay); margin: 0 0 .5rem; }
.notfound-back { margin-top: 1.5rem; }

.empty-note { color: var(--muted); font-style: italic; }
.empty-block { padding: 1.5rem 0; }

/* ---------- Accueil ---------- */
.front-wrap { padding-top: .6rem; }
.fp-block, .fp-latest { margin: 0 0 3rem; }

/* Bloc 1 — bannière */
.fp-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(420px, 64vh, 620px);
    margin: 0 0 3.5rem;
    border-radius: 6px;
    overflow: hidden;
    background: var(--navy);
    color: var(--paper);
}
.fp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 43, 54, .4);
}
.fp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    padding: 3rem 3.2rem 3.4rem;
}
.fp-hero-title {
    margin: 0 0 1rem;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 2px 18px rgba(28, 43, 54, .65);
}
.fp-hero-lead {
    margin: 0 0 1.8rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #F7F4EF;
    text-shadow: 0 1px 10px rgba(28, 43, 54, .8);
    max-width: 36rem;
}

/* Bloc 2 — chiffres */
.fp-stats {
    background-color: var(--paper-alt);
    background-image: repeating-linear-gradient(45deg, rgba(232, 225, 217, .5) 0 1.5px, transparent 1.5px 8px);
    border-radius: 6px;
    padding: 3rem 2.8rem 2.4rem;
}
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { min-width: 0; padding: .4rem 1.5rem; border-inline-start: 1px dashed var(--muted); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat-num {
    margin: 0 0 .4rem;
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--clay);
    white-space: nowrap;
}
.stat-label { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.stats-note { margin: 2rem 0 0; font-size: .82rem; color: var(--muted); font-style: italic; }

/* Derniers articles */
.fp-latest { padding: .5rem 0; }
.fp-latest-more { margin: 2.2rem 0 0; }

/* Bloc 3 — cartes thématiques */
.fp-topics {
    --btn-fill: var(--paper-alt);
    background-color: var(--paper-alt);
    background-image: repeating-linear-gradient(45deg, rgba(232, 225, 217, .5) 0 1.5px, transparent 1.5px 8px);
    border-radius: 6px;
    padding: 3rem 2.8rem;
}
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.topic-card {
    min-width: 0;
    background: var(--paper);
    border-top: 3px solid var(--clay);
    border-radius: 6px;
    padding: 1.8rem 1.6rem 1.6rem;
    transition: transform .25s ease, border-color .25s ease;
}
.topic-card:hover { transform: translateY(-4px); border-top-color: var(--amber); }
.topic-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    fill: none;
    stroke: var(--clay);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.topic-title { margin: 0 0 .6rem; font-size: 1.35rem; }
.topic-card p { margin: 0; font-size: .95rem; color: #3A4751; }

/* Bloc 4 — citation */
.fp-quote {
    background: var(--navy);
    color: var(--paper);
    border-radius: 6px;
    padding: 3.5rem 3.4rem;
    margin-bottom: 0;
}
.quote-body {
    margin: 0;
    padding-inline-start: 1.8rem;
    border-inline-start: 4px solid var(--amber);
    max-width: 52rem;
}
.quote-body p {
    margin: 0 0 1.2rem;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--paper);
}
.quote-author { font-size: .95rem; color: var(--muted-light); }

/* Séparateurs */
.sec-divider { margin: 0 auto 3rem; }
.sec-divider-dots { display: flex; justify-content: center; gap: .75rem; }
.sec-divider-dots span { display: block; width: 7px; height: 7px; background: var(--clay); }
.sec-divider-dots span:nth-child(2) { background: var(--amber); }
.sec-divider-dash { height: 0; border-top: 1px dashed var(--muted); width: 60%; }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--navy); color: #C9D2D8; padding: 3.5rem 0 0; border-top: 4px solid var(--amber); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.foot-col { min-width: 0; }
.site-foot .widget { margin-bottom: 1.5rem; }
.site-foot .widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-inline-start: 1rem;
    font-size: 1.15rem;
    color: var(--paper);
}
.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 7px;
    height: 7px;
    background: var(--amber);
}
.site-foot, .site-foot p, .site-foot li, .site-foot .textwidget { color: #C9D2D8; font-size: .93rem; }
.site-foot a { color: #EEF1F3; text-decoration-color: var(--amber); }
.site-foot a:hover { color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: .3rem 0; }
.site-foot .post-date { color: var(--muted-light); font-size: .8rem; }
.foot-bottom {
    margin-top: 2rem;
    padding: 1.3rem 0 1.6rem;
    border-top: 1px dashed rgba(247, 244, 239, .18);
}
.foot-bottom p { margin: 0; font-size: .85rem; color: var(--muted-light); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;
    max-width: 640px;
    padding: 1.1rem 1.4rem;
    background: var(--navy);
    color: var(--paper);
    border-top: 3px solid var(--amber);
    border-radius: 6px;
    box-shadow: 0 14px 30px -10px rgba(28, 43, 54, .5);
}
.cookie-text { flex: 1 1 280px; min-width: 0; margin: 0; font-size: .9rem; line-height: 1.5; color: var(--paper); }

/* ---------- Adaptatif ---------- */
@media (min-width: 961px) {
    .sec-head { margin-left: -.75rem; }
}
@media (max-width: 960px) {
    h1, .page-title, .fp-hero-title { font-size: 2.6rem; }
    .layout-single { width: 100%; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quote-body p { font-size: 1.7rem; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1, .page-title, .fp-hero-title { font-size: 2.05rem; }
    h2, .sec-title { font-size: 1.65rem; }
    .masthead-top { flex-wrap: wrap; padding: 1rem 0; gap: .8rem; }
    .brand-logo { width: 46px; height: 46px; }
    .brand-text { flex-basis: calc(100% - 60px); }
    .brand-name { font-size: 1rem; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        margin-left: auto;
        padding: .5rem .9rem;
        font: 600 .9rem var(--sans);
        color: var(--paper);
        background: transparent;
        border: 1px solid rgba(247, 244, 239, .35);
        border-radius: 4px;
        cursor: pointer;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--amber);
        position: relative;
    }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }
    .masthead-nav { display: none; }
    .masthead-nav.is-open { display: block; }
    .primary-nav .menu { flex-direction: column; gap: 0; padding: .4rem 0 .8rem; }
    .primary-nav .menu a { display: block; padding: .7rem 0; border-bottom: 1px dashed rgba(247, 244, 239, .14); }
    .site-main::after { width: 150px; height: 124px; right: 1rem; }
    .card-grid-3, .card-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .fp-hero { min-height: 440px; margin-bottom: 2.5rem; }
    .fp-hero-inner { padding: 2rem 1.5rem 2.2rem; }
    .fp-hero-lead { font-size: 1rem; }
    .fp-stats { padding: 2.2rem 1.4rem 1.8rem; }
    .stats-row { grid-template-columns: minmax(0, 1fr); row-gap: 1.4rem; }
    .stat, .stat:nth-child(3) { border-inline-start: 0; padding: 0 0 1.2rem; border-bottom: 1px dashed var(--muted); }
    .stat:last-child { border-bottom: 0; padding-bottom: 0; }
    .stat-num { font-size: 2.5rem; }
    .fp-topics { padding: 2.2rem 1.4rem; }
    .topic-card { padding: 1.5rem 1.3rem; }
    .fp-quote { padding: 2.4rem 1.5rem; }
    .quote-body { padding-inline-start: 1.2rem; }
    .quote-body p { font-size: 1.4rem; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .notes-list .children { padding-inline-start: 1rem; }
    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; }
    .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1rem 0; }
    .sec-divider-dash { width: 80%; }
}
