/*
Theme Name: dds_streetplanneur.com
Theme URI: https://streetplanneur.com/
Author: Camille Moreau
Description: Thème éditorial « cartographie urbaine » pour Streetplanneur : rues, places, immobilier commercial et espaces publics observés à hauteur de piéton.
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: strplan
*/

/* ==========================================================
   Jetons
   ========================================================== */
:root {
    --paper: #F4F6F8;
    --paper-alt: #E6EAEE;
    --asphalt: #1B2A3A;
    --asphalt-2: #2C3E50;
    --night: #101A24;
    --white: #FFFFFF;
    --ink: #1E2A36;
    --coral: #E4572E;
    --coral-dark: #C8431D;
    --steel: #4A90A4;
    --steel-dark: #3A7587;
    --muted: #6B7A88;
    --line: #D0D8E0;
    --dash: #B0BEC5;
    --font-head: "Space Grotesk", "Archivo", "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Inter", "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-btn: 4px;
    --radius-card: 6px;
    --shadow-card: 0 2px 8px rgba(27, 42, 58, 0.08);
    --shadow-card-hover: 0 10px 24px rgba(27, 42, 58, 0.14);
}

/* ==========================================================
   Règles [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%;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(to right, rgba(27, 42, 58, 0.04) 0, rgba(27, 42, 58, 0.04) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, rgba(27, 42, 58, 0.04) 0, rgba(27, 42, 58, 0.04) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-font-smoothing: antialiased;
}

/* Silhouette de quartier, coin inférieur droit */
body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 460px;
    height: 240px;
    max-width: 60%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    background: no-repeat right bottom / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 240'%3E%3Cg fill='%231B2A3A'%3E%3Crect x='0' y='150' width='46' height='90'/%3E%3Crect x='52' y='96' width='58' height='144'/%3E%3Crect x='116' y='130' width='40' height='110'/%3E%3Crect x='162' y='40' width='64' height='200'/%3E%3Crect x='232' y='112' width='48' height='128'/%3E%3Crect x='286' y='70' width='56' height='170'/%3E%3Crect x='348' y='140' width='38' height='100'/%3E%3Crect x='392' y='88' width='68' height='152'/%3E%3C/g%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 600;
    margin: 1.6em 0 0.6em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 700; margin-top: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; }

a {
    color: var(--steel);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--steel-dark); }

/* Soulignement animé de gauche à droite */
.entry-content a,
.card-excerpt a,
.widget a,
.crumbs a,
.archive-desc a,
.cmt-text a,
.comment-notes a,
.logged-in-as a,
.must-log-in a {
    background-image: linear-gradient(var(--coral), var(--coral));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.3s ease, color 0.2s ease;
}
.entry-content a:hover,
.card-excerpt a:hover,
.widget a:hover,
.crumbs a:hover,
.archive-desc a:hover,
.cmt-text a:hover,
.comment-notes a:hover,
.logged-in-as a:hover,
.must-log-in a:hover {
    background-size: 100% 1px;
}

:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
}

ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4em;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 0.95rem;
}
th, td {
    border: 1px solid var(--line);
    padding: 0.6em 0.8em;
    text-align: left;
    vertical-align: top;
}
th { background: var(--paper-alt); font-family: var(--font-head); font-weight: 600; }

blockquote {
    margin: 1.6em 0;
    padding: 0.2em 0 0.2em 16px;
    border-left: 3px solid var(--coral);
    color: var(--ink);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

hr {
    border: 0;
    border-top: 1px dashed var(--dash);
    margin: 2.4em 0;
}

pre, code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}
pre {
    background: var(--asphalt);
    color: #E6EAEE;
    padding: 1em 1.2em;
    border-radius: var(--radius-card);
    overflow-x: auto;
}

.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: -60px;
    z-index: 1000;
    background: var(--coral);
    color: var(--white);
    padding: 0.6em 1em;
    border-radius: var(--radius-btn);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

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

/* ==========================================================
   Boutons
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.72em 1.35em;
    border-radius: var(--radius-btn);
    border: 2px solid var(--coral);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(228, 87, 46, 0.25);
}
.btn--solid {
    background: var(--coral);
    color: var(--white);
}
.btn--solid:hover { color: var(--white); background: var(--coral-dark); border-color: var(--coral-dark); }
.btn--ghost {
    background: transparent;
    color: var(--coral);
}
.btn--ghost:hover { color: var(--coral-dark); }
.btn--light { color: var(--white); }
.btn--light:hover { color: var(--white); background: rgba(228, 87, 46, 0.18); }

/* ==========================================================
   En-tête
   ========================================================== */
.signal-bar {
    height: 4px;
    background: var(--coral);
}

.site-header {
    background: var(--asphalt);
    color: #DCE3EA;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 auto;
    color: var(--white);
}
.brand:hover { color: var(--white); }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { width: 48px; height: 48px; display: block; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; max-width: 78ch; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--white);
}
.brand-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #A7B5C2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-btn);
    padding: 0.55em 0.85em;
    font: 600 0.9rem var(--font-head);
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    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; }

.header-nav-row {
    border-top: 1px dashed rgba(176, 190, 197, 0.28);
}

.site-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 2rem;
}
.site-nav .nav-list a {
    display: inline-block;
    padding: 0.85rem 0;
    color: #DCE3EA;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.98rem;
    position: relative;
}
.site-nav .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.55rem;
    width: 100%;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.site-nav .nav-list a:hover { color: var(--white); }
.site-nav .nav-list a:hover::after,
.site-nav .nav-list .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .nav-list .current-menu-item > a { color: var(--white); }

/* ==========================================================
   Titres de section : trait de marquage + point corail
   ========================================================== */
.sec-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 2.2rem;
    font-size: clamp(1.6rem, 3.2vw, 2.15rem);
    font-weight: 700;
}
.sec-title::before {
    content: "";
    flex: 0 0 48px;
    height: 6px;
    align-self: center;
    background:
        radial-gradient(circle at calc(100% - 3px) 50%, var(--coral) 0, var(--coral) 3px, transparent 3.5px),
        linear-gradient(var(--coral), var(--coral)) no-repeat left center / calc(100% - 10px) 2px;
}

/* Point corail devant chaque H2 de contenu et de section */
.sec-title,
.entry-content h2,
.comments-title,
.comment-reply-title {
    position: relative;
}
.entry-content h2,
.comments-title,
.comment-reply-title {
    padding-left: 18px;
}
.entry-content h2::before,
.comments-title::before,
.comment-reply-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
}
.sec-title > * { min-width: 0; }

/* ==========================================================
   Page d'accueil
   ========================================================== */
.front-wrap {
    width: 85%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.fs { padding: 96px 0; }
.fs-stats { background: var(--paper-alt); }
.fs-latest { background: var(--paper); }
.fs-themes { background: var(--paper-alt); }

/* Hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    background: var(--asphalt);
    padding: 140px 0 120px;
    color: var(--white);
}
.fs-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(27, 42, 58, 0.94) 0%, rgba(27, 42, 58, 0.78) 48%, rgba(27, 42, 58, 0.5) 100%);
}
.fs-hero-inner { position: relative; z-index: 1; }
.fs-hero-title {
    color: var(--white);
    max-width: 16ch;
    margin: 0 0 1.4rem;
}
.fs-hero-lead {
    color: #C9D3DC;
    font-size: 1.15rem;
    max-width: 58ch;
    margin: 0 0 2.2rem;
}
.fs-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.fs-hero-rule {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px dashed var(--dash);
    opacity: 0.7;
}

/* Statistiques */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
    min-width: 0;
    padding: 0.6rem 1.6rem;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--coral);
    letter-spacing: -0.02em;
}
.stat-label {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* En-tête de section avec bouton */
.sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2.2rem;
}
.sec-head .sec-title { margin: 0; }

/* Ligne de découpe pointillée */
.fs-cut {
    border-top: 1px dashed var(--dash);
    height: 0;
}

/* Grille thématique */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}
.theme-card {
    position: relative;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2.2rem 2rem 2rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.theme-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--coral);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--coral);
}
.theme-card:hover::before { opacity: 1; }
.theme-icon { width: 48px; height: 48px; color: var(--steel); display: block; margin-bottom: 1.3rem; }
.theme-card-title { margin: 0 0 0.7rem; font-size: 1.3rem; }
.theme-card p { margin: 0; color: var(--ink); font-size: 1rem; }

/* Citation */
.fs-quote {
    background-color: var(--asphalt);
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 8px),
        linear-gradient(135deg, var(--asphalt) 0%, var(--asphalt-2) 100%);
    color: var(--white);
    padding: 110px 0;
}
.quote-box {
    margin: 0;
    padding: 0.4rem 0 0.4rem 28px;
    border-left: 3px solid var(--coral);
    max-width: 62rem;
}
.quote-box blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-style: normal;
}
.quote-box blockquote p {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    line-height: 1.28;
    letter-spacing: -0.015em;
    color: var(--white);
    margin: 0 0 1.4rem;
}
.quote-box figcaption {
    color: #9FB0BF;
    font-size: 1rem;
}

.empty-note {
    color: var(--muted);
    background: var(--white);
    border: 1px dashed var(--dash);
    border-radius: var(--radius-card);
    padding: 1.4rem 1.6rem;
}

/* ==========================================================
   Cartes d'articles
   ========================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}
.card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--coral);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--coral);
}
.card:hover::before { opacity: 1; }

.card-thumb { background: var(--paper-alt); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--paper-alt);
    background-image:
        linear-gradient(to right, rgba(27, 42, 58, 0.06) 0, rgba(27, 42, 58, 0.06) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, rgba(27, 42, 58, 0.06) 0, rgba(27, 42, 58, 0.06) 0.5px, transparent 0.5px);
    background-size: 16px 16px;
}
.card-thumb-empty svg { display: block; width: 46%; height: auto; }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.5rem;
    min-width: 0;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    margin-bottom: 0.8rem;
}
.post-date {
    color: var(--muted);
    font-size: 0.85rem;
}
.card-title {
    margin: 0 0 0.7rem;
    font-size: 1.22rem;
    line-height: 1.3;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--coral); }
.card-excerpt {
    color: #3A4856;
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt img,
.card-excerpt figure,
.card-excerpt iframe { display: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--coral);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.card-more:hover { color: var(--coral-dark); border-bottom-color: currentColor; }

/* Étiquettes de rubrique */
.tag-chip {
    display: inline-block;
    padding: 0.2em 0.65em;
    background: var(--paper-alt);
    color: var(--steel);
    border: 1px solid #C9D3DC;
    border-radius: 3px;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tag-chip:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
}

/* ==========================================================
   Pages internes : mise en page
   ========================================================== */
.page-wrap { padding: 2.2rem 0 5.5rem; }

.crumbs {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 2.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px dashed var(--dash);
}
.crumbs a { color: var(--steel); }
.crumb-sep { color: var(--coral); margin: 0 0.25em; }
.crumb-current { color: var(--ink); }

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

.page-head { margin-bottom: 2.2rem; }
.page-title { margin: 0; }
.archive-desc { color: var(--muted); margin-top: 0.8rem; }

/* Article */
.entry-head { margin-bottom: 2rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    margin-bottom: 1rem;
}
.entry-title { margin: 0; }
.entry-cover {
    margin: 0 0 2.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { max-width: 72ch; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--radius-card); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 0.5em; }
.entry-content .alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px dashed var(--dash);
}
.entry-tags-label { color: var(--muted); font-size: 0.9rem; margin-right: 0.3rem; }

.page-links { margin-top: 1.6rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 3rem;
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding: 1.1rem 1.3rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    color: var(--ink);
    transition: border-color 0.2s ease;
}
.post-nav-link:hover { border-color: var(--coral); color: var(--ink); }
.post-nav-next { grid-column: 2; text-align: right; }
.post-nav-dir { color: var(--coral); font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; }
.post-nav-title { font-family: var(--font-head); font-weight: 600; line-height: 1.35; }

/* ==========================================================
   Barre latérale
   ========================================================== */
.sidebar {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; color: var(--ink); }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar .widget-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    flex: 0 0 6px;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--line);
    line-height: 1.45;
}
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); font-size: 0.97rem; }
.sidebar .widget a:hover { color: var(--coral); }
.sidebar .widget .post-date,
.sidebar .widget time { color: var(--muted); font-size: 0.82rem; display: block; }
.sidebar .widget p { color: var(--ink); }
.sidebar .search-form { flex-direction: column; }

/* ==========================================================
   Recherche
   ========================================================== */
.search-form {
    display: flex;
    gap: 0.6rem;
    margin: 1.2rem 0;
    max-width: 560px;
}
.search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7em 0.9em;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
}
.search-field:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.2); }

/* ==========================================================
   Pagination (type => plain)
   ========================================================== */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.85rem;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pager a.page-numbers:hover {
    border-color: var(--coral);
    color: var(--coral);
    transform: translateY(-2px);
}
.pager .page-numbers.current {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
}
.pager .page-numbers.dots {
    background: none;
    border: 0;
    min-width: auto;
    padding: 0 0.3rem;
    color: var(--muted);
}

/* ==========================================================
   Commentaires
   ========================================================== */
.comments {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px dashed var(--dash);
}
.comments-title { margin-top: 0; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 2rem; }
.cmt-body {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}
.cmt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-bottom: 0.6rem; }
.cmt-avatar { border-radius: 50%; width: 44px; height: 44px; }
.cmt-author { font-family: var(--font-head); font-weight: 600; }
.cmt-date { color: var(--muted); font-size: 0.85rem; }
.cmt-wait { color: var(--coral); font-size: 0.9rem; }
.cmt-text p:last-child { margin-bottom: 0.4rem; }
.cmt-reply a { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--coral); }
.comment-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; }
.comments-closed { color: var(--muted); }

.comment-respond { margin-top: 2rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 0.3rem; font-size: 0.95rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.2); }
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit {
    padding: 0.75em 1.4em;
    background: var(--coral);
    color: var(--white);
    border: 2px solid var(--coral);
    border-radius: var(--radius-btn);
    font: 600 1rem var(--font-head);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.comment-form .submit:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(228, 87, 46, 0.25); }
.comment-notes, .logged-in-as, .must-log-in { color: var(--muted); font-size: 0.92rem; }

/* ==========================================================
   404
   ========================================================== */
.notfound { padding: 1rem 0 2rem; }
.notfound-code {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(4.5rem, 14vw, 8rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--coral);
    margin: 0 0 1rem;
}
.notfound-text { max-width: 58ch; color: #3A4856; margin-top: 1rem; }

/* ==========================================================
   Pied de page
   ========================================================== */
.site-footer {
    background: var(--night);
    color: #B7C2CD;
    font-size: 0.95rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 3rem;
    padding: 4rem 0 3rem;
}
.footer-col { min-width: 0; }
.site-footer .widget { margin-bottom: 1.8rem; color: #B7C2CD; }
.site-footer .widget:last-child { margin-bottom: 0; }
.site-footer .widget-title {
    color: var(--white);
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed rgba(176, 190, 197, 0.25);
}
.site-footer .widget p,
.site-footer .widget .textwidget { color: #B7C2CD; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { padding: 0.35rem 0; }
.site-footer .widget a { color: #9CCFDC; }
.site-footer .widget a:hover { color: var(--white); }
.site-footer .widget time,
.site-footer .widget .post-date { color: #8394A4; }
.footer-base {
    border-top: 1px solid rgba(176, 190, 197, 0.14);
    padding: 1.3rem 0;
}
.copyright { margin: 0; color: #8394A4; font-size: 0.88rem; }

/* ==========================================================
   Bandeau cookies
   ========================================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: var(--asphalt);
    color: #DCE3EA;
    border-top: 3px solid var(--coral);
    box-shadow: 0 -6px 20px rgba(16, 26, 36, 0.25);
}
.cookie-inner {
    width: min(92%, 1240px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1rem 0;
}
.cookie-text { margin: 0; font-size: 0.92rem; line-height: 1.5; color: #DCE3EA; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ==========================================================
   Adaptatif
   ========================================================== */
@media (max-width: 960px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-grid { 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-left: 0; padding-left: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .layout-single .content-area { width: 100%; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-desc { display: none; }

    .nav-toggle { display: inline-flex; }
    .header-nav-row { border-top: 0; }
    .site-nav { display: none; }
    .site-nav.is-open {
        display: block;
        border-top: 1px dashed rgba(176, 190, 197, 0.28);
        padding-bottom: 0.6rem;
    }
    .site-nav .nav-list { flex-direction: column; gap: 0; }
    .site-nav .nav-list a { padding: 0.7rem 0; }
    .site-nav .nav-list a::after { bottom: 0.4rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .front-wrap { width: 92%; }
    .fs { padding: 64px 0; }
    .fs-hero { padding: 96px 0 84px; }
    .fs-quote { padding: 72px 0; }
    .card-grid,
    .card-grid--list,
    .theme-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat { border-left: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
    .stat:first-child { border-top: 0; padding-top: 0; }
    .theme-card { padding: 1.8rem 1.5rem; }
    .quote-box { padding: 0.3rem 0 0.3rem 18px; }
    .footer-cols { grid-template-columns: minmax(0, 1fr); padding: 3rem 0 2.2rem; }
    .brand-name { font-size: 0.88rem; }
    .brand-logo { width: 40px; height: 40px; }
    .sec-title::before { flex-basis: 32px; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; }
    .cookie-inner { flex-direction: column; align-items: stretch; }
    .search-form { flex-direction: column; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .comment-list .children { margin-left: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
