/* ============================================================
   Forge des Guerriers — Blog template v2 (noir sur blanc, médiéval discret)
   Cible : body.single-post .entry-content article(.fdg-article)
   Charge conditionnel : is_singular('post')
   ============================================================ */

/* ---------- Fix bandes blanches dans le header sur single-post ----------
   ROOT CAUSE : le child theme `astra-child` a une règle base
     `body:not(.single-product), body:not(.single-product) .ast-container { background: var(--md-bg) !important; }`
   `.ast-container` est aussi présent À L'INTÉRIEUR du #masthead (.site-primary-header-wrap.ast-container).
   Sur les pages produit, :not(.single-product) exclut → header reste noir.
   Sur les blog posts, la règle matche → le .ast-container du header devient blanc → bandes.
   Fix : remettre le fond noir sur les wrappers du header pour les single-post. */
body.single-post #masthead,
body.single-post #masthead .ast-container,
body.single-post #masthead .ast-main-header-wrap,
body.single-post #masthead .main-header-bar-wrap,
body.single-post #masthead .ast-primary-header-bar,
body.single-post #masthead .site-primary-header-wrap,
body.single-post #masthead #ast-desktop-header,
body.single-post #masthead #ast-mobile-header,
body.fdg-blog-index #masthead,
body.fdg-blog-index #masthead .ast-container,
body.fdg-blog-index #masthead .ast-main-header-wrap,
body.fdg-blog-index #masthead .main-header-bar-wrap,
body.fdg-blog-index #masthead .ast-primary-header-bar,
body.fdg-blog-index #masthead .site-primary-header-wrap,
body.fdg-blog-index #masthead #ast-desktop-header,
body.fdg-blog-index #masthead #ast-mobile-header {
    background: #050505 !important;
    background-color: #050505 !important;
}

/* ---------- Reset wrappers Astra autour de l'article ----------
   IMPORTANT : on ne touche PAS le header (#masthead, .ast-header-*).
   On scope tout sous #content pour préserver la barre de navigation. */
body.single-post #content .ast-container,
body.single-post #content #primary,
body.single-post #content #main,
body.single-post #content .ast-article-single,
body.single-post #content .ast-post-format-,
body.single-post #content article.post {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
}

body.single-post #content {
    background: #ffffff;
    padding: 0;
}

/* H1 du thème : caché (le widget HTML rend déjà son propre H1) */
body.single-post .entry-header .entry-title {
    display: none !important;
}

/* Entry-meta du thème : on la replace sobre, centrée */
body.single-post .entry-header {
    max-width: 760px;
    margin: 56px auto 0;
    padding: 0 32px;
    text-align: center;
    border: none;
}
body.single-post .entry-meta {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    color: #6b6b6b;
    letter-spacing: 0.04em;
    margin: 0;
}
body.single-post .entry-meta a {
    color: #6b6b6b;
    border-bottom: none;
    text-decoration: none;
}
body.single-post .entry-meta a:hover {
    color: #1a1a1a;
}

/* ---------- Wrapper article principal ---------- */
body.single-post .entry-content article.fdg-article,
body.single-post .entry-content > article {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.75;
    color: #1a1a1a;
    background: #ffffff;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
}

body.single-post .entry-content .fdg-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 32px 96px;
    background: transparent;
}

/* Fallback : si .fdg-inner absent (article non transformé), borner directement l'article */
body.single-post .entry-content > article:not(.fdg-article) {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 32px 96px;
}

/* ---------- Typographie générale ---------- */
body.single-post .entry-content article p {
    margin: 0 0 1.4em;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1.75;
}

body.single-post .entry-content article strong {
    color: #0a0a0a;
    font-weight: 600;
}

body.single-post .entry-content article em {
    color: #4a4a4a;
    font-style: italic;
}

body.single-post .entry-content article a {
    color: #7a1f1a;
    text-decoration: none;
    border-bottom: 1px solid rgba(138, 111, 55, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
    background: transparent;
}
body.single-post .entry-content article a:hover {
    color: #5a1410;
    border-bottom-color: #7a1f1a;
}

/* ---------- H1 ---------- */
body.single-post .entry-content article h1 {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    font-size: clamp(28px, 4.6vw, 42px);
    line-height: 1.18;
    letter-spacing: 0.015em;
    text-align: center;
    color: #0a0a0a;
    margin: 24px 0 36px;
    padding: 0 8px;
    background: none;
    text-transform: none;
    position: relative;
}
/* Ornement central sous H1 */
body.single-post .entry-content article h1::after {
    content: "";
    display: block;
    margin: 18px auto 0;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8a6f37, transparent);
    position: relative;
}
body.single-post .entry-content article h1 + div.fdg-ornament,
body.single-post .entry-content article h1 + p:has(> span.fdg-ornament) {
    display: none; /* on supprime l'ancien ornement HTML : celui CSS::after suffit */
}

/* ---------- H2 ---------- */
body.single-post .entry-content article h2 {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.3;
    color: #0a0a0a;
    margin: 64px 0 18px;
    padding: 0 0 12px 0;
    border: none;
    border-bottom: 1px solid #d8d3c5;
    position: relative;
    text-align: left;
    letter-spacing: 0.015em;
}
body.single-post .entry-content article h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    background: #8a6f37;
}

/* ---------- H3 ---------- */
body.single-post .entry-content article h3 {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 500;
    font-size: 20px;
    color: #1a1a1a;
    margin: 40px 0 14px;
    letter-spacing: 0.01em;
}

/* ---------- Intro (drop cap) ---------- */
body.single-post .entry-content article p.fdg-intro {
    font-family: 'Lora', Georgia, serif;
    font-size: 20px;
    line-height: 1.7;
    color: #2a2a2a;
    font-style: italic;
    margin: 0 0 48px;
    padding: 0;
    background: none;
    border: none;
}
body.single-post .entry-content article p.fdg-intro::first-letter {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 64px;
    font-weight: 700;
    float: left;
    line-height: 0.9;
    padding: 8px 12px 0 0;
    color: #8a6f37;
    font-style: normal;
}

/* ---------- Sommaire / TOC ---------- */
body.single-post .entry-content article nav.fdg-toc {
    background: #fafaf6;
    border: 1px solid #e6e1d2;
    padding: 26px 32px;
    margin: 40px 0 56px;
    box-shadow: none;
    position: relative;
}
body.single-post .entry-content article nav.fdg-toc::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(138, 111, 55, 0.18);
    pointer-events: none;
}

body.single-post .entry-content article nav.fdg-toc .fdg-toc-title {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 18px;
    text-align: center;
    position: relative;
}
body.single-post .entry-content article nav.fdg-toc .fdg-toc-title::after {
    content: "✠";
    display: block;
    margin: 8px auto 0;
    font-size: 14px;
    color: #8a6f37;
    font-weight: normal;
}

body.single-post .entry-content article nav.fdg-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}
body.single-post .entry-content article nav.fdg-toc li {
    counter-increment: toc;
    padding: 8px 0;
    border-bottom: 1px dotted rgba(138, 111, 55, 0.25);
    position: relative;
    padding-left: 38px;
    font-size: 16px;
    line-height: 1.5;
}
body.single-post .entry-content article nav.fdg-toc li:last-child {
    border-bottom: none;
}
body.single-post .entry-content article nav.fdg-toc li::before {
    content: counter(toc, upper-roman) ".";
    position: absolute;
    left: 0;
    top: 8px;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 500;
    color: #8a6f37;
    font-size: 13px;
    width: 32px;
    text-align: right;
    padding-right: 6px;
}
body.single-post .entry-content article nav.fdg-toc a {
    color: #1a1a1a;
    border-bottom: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
body.single-post .entry-content article nav.fdg-toc a:hover {
    color: #7a1f1a;
    padding-left: 4px;
}

/* ---------- Image placeholder (aside.fdg-img reconstruit côté PHP) ---------- */
body.single-post .entry-content article aside.fdg-img {
    margin: 32px 0 36px;
    padding: 22px 22px;
    background: #fafaf6;
    border: 1px dashed #c8b27a;
    text-align: center;
    font-size: 14px;
    color: #4a4a4a;
    font-style: italic;
    line-height: 1.6;
    display: block;
}
body.single-post .entry-content article aside.fdg-img .fdg-img-glyph {
    font-size: 22px;
    display: block;
    margin-bottom: 6px;
    color: #8a6f37;
}
body.single-post .entry-content article aside.fdg-img .fdg-img-label {
    font-style: normal;
    color: #8a6f37;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.18em;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}
body.single-post .entry-content article aside.fdg-img em {
    color: #4a4a4a;
    font-style: italic;
    font-size: 14px;
}

/* ---------- Vraies images dans l'article ---------- */
body.single-post .entry-content article img:not(.fdg-img-glyph) {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px auto;
    border: 1px solid #e6e1d2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Listes (hors TOC, hors callout) ---------- */
body.single-post .entry-content article ul:not(nav.fdg-toc ul):not(aside.fdg-callout ul),
body.single-post .entry-content article ol:not(aside.fdg-callout ol) {
    margin: 0 0 1.6em;
    padding-left: 0;
    list-style: none;
    counter-reset: romanlist;
}

body.single-post .entry-content article ul:not(nav.fdg-toc ul):not(aside.fdg-callout ul) li,
body.single-post .entry-content article ol:not(aside.fdg-callout ol) li {
    position: relative;
    padding: 6px 0 6px 30px;
    line-height: 1.7;
    border: none;
    margin-bottom: 4px;
}

/* Puces UL : losange or */
body.single-post .entry-content article ul:not(nav.fdg-toc ul):not(aside.fdg-callout ul) li::before {
    content: "❖";
    position: absolute;
    left: 6px;
    top: 6px;
    color: #8a6f37;
    font-size: 13px;
}

/* Numérotation OL : chiffres or */
body.single-post .entry-content article ol:not(aside.fdg-callout ol) li {
    counter-increment: romanlist;
}
body.single-post .entry-content article ol:not(aside.fdg-callout ol) li::before {
    content: counter(romanlist) ".";
    position: absolute;
    left: 0;
    top: 6px;
    color: #8a6f37;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    font-size: 14px;
    width: 22px;
    text-align: right;
    padding-right: 4px;
}

/* ---------- Callouts (fdg-funfact, fdg-info, fdg-shop, fdg-warning) ---------- */
body.single-post .entry-content article aside.fdg-callout {
    margin: 36px 0;
    padding: 22px 28px;
    background: #faf7ee;
    border: 1px solid #e6dcbb;
    border-left: 3px solid #8a6f37;
    position: relative;
    font-size: 17px;
    line-height: 1.65;
    color: #2a2a2a;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    display: block;
}
body.single-post .entry-content article aside.fdg-callout .fdg-callout-label {
    display: inline-block;
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8a6f37;
    margin: 0 12px 10px 0;
    padding: 4px 12px;
    background: #ffffff;
    border: 1px solid #e6dcbb;
    vertical-align: 2px;
}
/* Variantes par classe */
body.single-post .entry-content article aside.fdg-callout.fdg-funfact { background: #faf7ee; border-left-color: #8a6f37; }
body.single-post .entry-content article aside.fdg-callout.fdg-info { background: #f4f6f3; border-left-color: #5a6e4e; border-color: #d8e0d5; }
body.single-post .entry-content article aside.fdg-callout.fdg-info .fdg-callout-label { color: #5a6e4e; border-color: #d8e0d5; }
body.single-post .entry-content article aside.fdg-callout.fdg-shop { background: #fcf6ed; border-left-color: #b88a3a; border-color: #ecdbb6; }
body.single-post .entry-content article aside.fdg-callout.fdg-shop .fdg-callout-label { color: #b88a3a; border-color: #ecdbb6; }
body.single-post .entry-content article aside.fdg-callout.fdg-warning { background: #fbf3f2; border-left-color: #7a1f1a; border-color: #e8d4d2; }
body.single-post .entry-content article aside.fdg-callout.fdg-warning .fdg-callout-label { color: #7a1f1a; border-color: #e8d4d2; }

/* ---------- Blockquote ---------- */
body.single-post .entry-content article blockquote {
    margin: 36px 0;
    padding: 18px 32px;
    border: none;
    border-left: 3px solid #8a6f37;
    background: transparent;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.55;
    color: #4a4a4a;
    position: relative;
}
body.single-post .entry-content article blockquote::before {
    content: "\201C";
    position: absolute;
    left: 14px;
    top: -4px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 38px;
    color: #c8b27a;
    line-height: 1;
}
body.single-post .entry-content article blockquote p {
    margin: 0;
    color: #4a4a4a;
    font-style: italic;
}
body.single-post .entry-content article blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    color: #6b6b6b;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.05em;
}
body.single-post .entry-content article blockquote cite::before {
    content: "— ";
    color: #8a6f37;
}

/* ---------- HR / séparateur ---------- */
body.single-post .entry-content article hr {
    border: none;
    height: auto;
    text-align: center;
    margin: 56px 0;
    background: linear-gradient(90deg, transparent, #d8d3c5 20%, #d8d3c5 80%, transparent);
    background-size: 100% 1px;
    background-position: center;
    background-repeat: no-repeat;
    overflow: visible;
}
body.single-post .entry-content article hr::after {
    content: "✠";
    display: inline-block;
    color: #8a6f37;
    font-size: 18px;
    padding: 0 24px;
    background: #ffffff;
    position: relative;
}

/* ---------- Tables ---------- */
body.single-post .entry-content article table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    font-size: 16px;
}
body.single-post .entry-content article table caption {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a6f37;
    margin-bottom: 12px;
    text-align: left;
}
body.single-post .entry-content article table th,
body.single-post .entry-content article table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e6e1d2;
    text-align: left;
    vertical-align: top;
}
body.single-post .entry-content article table th {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    background: #fafaf6;
    border-bottom: 2px solid #8a6f37;
}

/* ---------- Ornement de clôture ---------- */
body.single-post .entry-content article .fdg-inner::after,
body.single-post .entry-content > article:not(.fdg-article)::after {
    content: "✠";
    display: block;
    text-align: center;
    color: #8a6f37;
    font-size: 22px;
    margin: 64px 0 0;
}

/* ---------- Sup / sub ---------- */
body.single-post .entry-content article sup,
body.single-post .entry-content article sub {
    font-size: 0.7em;
    color: #4a4a4a;
}

/* ---------- Carrousel produits ---------- */
body.single-post .entry-content article .fdg-carousel {
    margin: 56px 0 64px;
    padding: 0;
    background: transparent;
    border: none;
    position: relative;
}
/* Titre du carrousel (kicker éditorial or, sans box) */
body.single-post .entry-content article .fdg-carousel-title {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #8a6f37;
    margin: 0 0 28px;
    text-align: center;
    position: relative;
}
body.single-post .entry-content article .fdg-carousel-title::before,
body.single-post .entry-content article .fdg-carousel-title::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #c8b27a;
    vertical-align: 4px;
    margin: 0 14px;
}
/* Grille auto-fit, cards plus hautes */
body.single-post .entry-content article .fdg-carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 24px;
    position: relative;
}
/* Cards : pas de bordure, juste une ombre douce qui s'amplifie au hover */
body.single-post .entry-content article .fdg-carousel-track > a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 0;
    background: #ffffff;
    border: none !important;
    border-radius: 0;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: 0 1px 6px rgba(20, 14, 6, 0.08);
    transition: transform 0.35s cubic-bezier(.2,.7,.3,1),
                box-shadow 0.35s cubic-bezier(.2,.7,.3,1);
    overflow: hidden;
    position: relative;
}
body.single-post .entry-content article .fdg-carousel-track > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20, 14, 6, 0.18);
}
/* Image : ratio 4/5 portrait (épées et katanas sont verticaux) */
body.single-post .entry-content article .fdg-carousel-track img {
    width: 100%;
    height: auto;
    margin: 0;
    border: none;
    box-shadow: none;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
body.single-post .entry-content article .fdg-carousel-track > a:hover img {
    transform: scale(1.04);
}
/* Wrap texte en bas de la card */
body.single-post .entry-content article .fdg-carousel-track > a > .fdg-product-name,
body.single-post .entry-content article .fdg-carousel-track > a > .fdg-product-cta {
    padding: 0 16px;
}
/* Titre produit : Lora italic léger, plus doux que Cinzel uppercase */
body.single-post .entry-content article .fdg-product-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    font-style: italic;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 18px 0 8px;
    letter-spacing: 0;
    text-transform: none;
}
/* CTA "Voir le produit →" : underline animée au hover */
body.single-post .entry-content article .fdg-product-cta {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    color: #8a6f37;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 18px;
    position: relative;
    display: inline-block;
    align-self: center;
}
body.single-post .entry-content article .fdg-product-cta::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background: #8a6f37;
    margin-top: 4px;
    transition: width 0.3s ease;
}
body.single-post .entry-content article .fdg-carousel-track > a:hover .fdg-product-cta::after {
    width: 100%;
}

/* ---------- Divider ornement (widget original) ---------- */
body.single-post .entry-content article .fdg-divider {
    text-align: center;
    margin: 56px 0;
    color: #8a6f37;
    font-size: 18px;
    background: linear-gradient(90deg, transparent, #d8d3c5 20%, #d8d3c5 80%, transparent);
    background-size: 100% 1px;
    background-position: center;
    background-repeat: no-repeat;
    overflow: visible;
    position: relative;
    height: auto;
}
body.single-post .entry-content article .fdg-divider::before {
    content: "✠";
    display: inline-block;
    padding: 0 24px;
    background: #ffffff;
}

/* ---------- Table wrap (scroll mobile) ---------- */
body.single-post .entry-content article .fdg-table-wrap {
    overflow-x: auto;
    margin: 32px 0;
    -webkit-overflow-scrolling: touch;
}

/* ---------- Conclusion ---------- */
body.single-post .entry-content article .fdg-conclusion {
    margin: 56px 0 24px;
    padding: 28px 32px;
    background: #fafaf6;
    border-left: 3px solid #8a6f37;
    border-top: 1px solid #e6e1d2;
    border-right: 1px solid #e6e1d2;
    border-bottom: 1px solid #e6e1d2;
    font-size: 17px;
    line-height: 1.7;
    color: #1a1a1a;
}
body.single-post .entry-content article .fdg-conclusion p:last-child {
    margin-bottom: 0;
}

/* ---------- Liens d'ancre (anchor offset pour TOC) ---------- */
body.single-post .entry-content article h2[id],
body.single-post .entry-content article h3[id] {
    scroll-margin-top: 80px;
}

/* ================================================================
   BLOG INDEX (liste des articles) — body.fdg-blog-index
   ================================================================ */
body.fdg-blog-index {
    background: #ffffff !important;
}
body.fdg-blog-index .site-main,
body.fdg-blog-index #primary,
body.fdg-blog-index #main {
    background: #ffffff !important;
    padding: 0 !important;
    max-width: none !important;
}
body.fdg-blog-index .entry-header {
    display: none !important;
}
body.fdg-blog-index .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
}

/* Wrapper section ==== */
body.fdg-blog-index .fdg-blog {
    background: #ffffff;
    padding: 0;
    margin: 0;
}
body.fdg-blog-index .fdg-blog .fdg-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 32px 96px;
}

/* ---------- HERO ---------- */
body.fdg-blog-index .fdg-hero {
    text-align: center;
    margin: 0 auto 64px;
    max-width: 720px;
}
body.fdg-blog-index .fdg-hero-eyebrow {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #8a6f37;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}
body.fdg-blog-index .fdg-hero-eyebrow::before,
body.fdg-blog-index .fdg-hero-eyebrow::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #c8b27a;
    vertical-align: 4px;
    margin: 0 14px;
}
body.fdg-blog-index .fdg-hero h1 {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 600;
    font-size: clamp(36px, 5.5vw, 56px);
    line-height: 1.1;
    letter-spacing: 0.015em;
    color: #0a0a0a;
    margin: 0 0 22px;
    padding: 0;
    background: none;
    text-transform: none;
}
body.fdg-blog-index .fdg-hero p {
    font-family: 'Lora', Georgia, serif;
    font-size: 19px;
    line-height: 1.65;
    color: #4a4a4a;
    font-style: italic;
    margin: 0 auto 28px;
    max-width: 560px;
}
body.fdg-blog-index .fdg-hero-ornament {
    color: #8a6f37;
    font-size: 22px;
    margin-top: 8px;
    position: relative;
}
body.fdg-blog-index .fdg-hero-ornament::before,
body.fdg-blog-index .fdg-hero-ornament::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8b27a, transparent);
    vertical-align: 8px;
    margin: 0 16px;
}

/* ---------- FILTRES (pills horizontales) ---------- */
body.fdg-blog-index .fdg-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 4px;
    margin: 0 0 56px;
    padding: 0;
    border: none;
    background: transparent;
}
body.fdg-blog-index .fdg-filters a {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a4a4a;
    padding: 10px 22px;
    text-decoration: none;
    border: 1px solid #e6e1d2;
    border-radius: 0;
    background: #ffffff;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    margin: 0 2px;
}
body.fdg-blog-index .fdg-filters a:hover {
    color: #8a6f37;
    border-color: #c8b27a;
}
body.fdg-blog-index .fdg-filters a.is-active {
    color: #ffffff;
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* ---------- GRID ---------- */
body.fdg-blog-index .fdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 32px;
    margin: 0;
}

/* ---------- CARD ARTICLE ---------- */
body.fdg-blog-index .fdg-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: none;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(20, 14, 6, 0.07);
    transition: transform 0.35s cubic-bezier(.2,.7,.3,1),
                box-shadow 0.35s cubic-bezier(.2,.7,.3,1);
    overflow: hidden;
    position: relative;
}
body.fdg-blog-index .fdg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(20, 14, 6, 0.18);
}

/* Media (image ou placeholder) */
body.fdg-blog-index .fdg-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f6f4ee;
}
body.fdg-blog-index .fdg-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
body.fdg-blog-index .fdg-card:hover .fdg-card-media img {
    transform: scale(1.06);
}
/* Placeholder (pas d'image featured) */
body.fdg-blog-index .fdg-card-media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(138, 111, 55, 0.35);
    background: linear-gradient(135deg, #f6f4ee 0%, #ebe6d5 100%);
}
/* Category badge */
body.fdg-blog-index .fdg-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a6f37;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border: 1px solid #e6dcbb;
}

/* Body de la card */
body.fdg-blog-index .fdg-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
body.fdg-blog-index .fdg-card-meta {
    font-family: 'Lora', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    color: #6b6b6b;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
body.fdg-blog-index .fdg-card-meta span {
    display: inline-block;
}
body.fdg-blog-index .fdg-card-title {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.3;
    color: #0a0a0a;
    margin: 0 0 12px;
    padding: 0;
    background: none;
    border: none;
    letter-spacing: 0.01em;
    text-transform: none;
}
body.fdg-blog-index .fdg-card-title::after {
    display: none;
}
body.fdg-blog-index .fdg-card-excerpt {
    font-family: 'Lora', Georgia, serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 18px;
    flex: 1;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.fdg-blog-index .fdg-card-more {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a6f37;
    margin-top: auto;
    align-self: flex-start;
    position: relative;
    padding-right: 18px;
}
body.fdg-blog-index .fdg-card-more::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
}
body.fdg-blog-index .fdg-card:hover .fdg-card-more::after {
    transform: translateX(4px);
}

/* ---------- Pagination (si présente) ---------- */
body.fdg-blog-index .fdg-pagination {
    margin: 56px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
body.fdg-blog-index .fdg-pagination a,
body.fdg-blog-index .fdg-pagination span {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 13px;
    font-weight: 500;
    color: #4a4a4a;
    padding: 10px 16px;
    text-decoration: none;
    border: 1px solid #e6e1d2;
    background: #ffffff;
    min-width: 42px;
    text-align: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}
body.fdg-blog-index .fdg-pagination a:hover {
    color: #8a6f37;
    border-color: #c8b27a;
}
body.fdg-blog-index .fdg-pagination .current,
body.fdg-blog-index .fdg-pagination [aria-current="page"] {
    color: #ffffff;
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* ---------- Mobile blog index ---------- */
@media (max-width: 720px) {
    body.fdg-blog-index .fdg-blog .fdg-inner {
        padding: 36px 18px 64px;
    }
    body.fdg-blog-index .fdg-hero {
        margin-bottom: 40px;
    }
    body.fdg-blog-index .fdg-hero p {
        font-size: 17px;
    }
    body.fdg-blog-index .fdg-filters {
        margin-bottom: 36px;
    }
    body.fdg-blog-index .fdg-filters a {
        padding: 8px 14px;
        font-size: 11px;
    }
    body.fdg-blog-index .fdg-grid {
        gap: 22px;
        grid-template-columns: 1fr;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
    body.single-post .entry-content .fdg-inner,
    body.single-post .entry-content > article:not(.fdg-article) {
        padding: 18px 22px 72px;
    }
    body.single-post .entry-content article {
        font-size: 17px;
    }
    body.single-post .entry-content article p {
        font-size: 17px;
    }
    body.single-post .entry-content article p.fdg-intro {
        font-size: 18px;
    }
    body.single-post .entry-content article p.fdg-intro::first-letter {
        font-size: 52px;
        padding: 6px 10px 0 0;
    }
    body.single-post .entry-content article nav.fdg-toc {
        padding: 20px 20px;
    }
    body.single-post .entry-content article nav.fdg-toc li {
        padding-left: 32px;
        font-size: 15px;
    }
    body.single-post .entry-content article blockquote {
        padding: 14px 22px;
        font-size: 18px;
    }
    body.single-post .entry-content article aside.fdg-callout {
        padding: 18px 22px;
        font-size: 16px;
    }
    body.single-post .entry-content article aside.fdg-img {
        padding: 18px 18px;
    }
    body.single-post .entry-header {
        margin: 36px auto 0;
        padding: 0 22px;
    }
}
