/* ═══════════════════════════════════════════════════════════
   NUTRIFORCE — Article de blog isolé (single.php)
   DA homepage : noir #0c0c0d, vert #1a472a, glassmorphism,
   typographie éditoriale, lecture confortable.
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   OVERRIDES CONTENEURS ASTRA (full-width)
   ───────────────────────────────────────────── */
html body.single-post .ast-container,
html body.single-post .site-content > .ast-container,
html body.single-post .site .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html body.single-post #primary,
html body.single-post .site-content #primary,
html body.single-post .ast-plain-container.ast-no-sidebar #primary,
html body.single-post .ast-container,
html body.single-post .ast-container-fluid,
html body.single-post .site-content,
html body.single-post .site-content > div,
html body.single-post .site,
html body.single-post #content,
html body.single-post .hfeed.site,
html body.single-post .ast-row {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 1 1 100% !important;
}

html body.single-post #primary,
html body.single-post .site-content #primary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Fix logo header (compense le retrait du wrapper Astra). Desktop only. */
@media (min-width: 922px) {
    body.single-post img.custom-logo {
        margin-left: 50px !important;
    }
}

html body.single-post .site-main,
html body.single-post .site-main > article {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.single-post .entry-header,
html body.single-post .ast-archive-description,
html body.single-post .page-title,
html body.single-post .ast-single-post-order {
    display: none !important;
}

.nf-post {
    --nf-post-green: #1a472a;
    --nf-post-black: #0c0c0d;
    --nf-post-bg: #f9f8f6;
    --nf-post-border: rgba(0, 0, 0, 0.08);
    --nf-post-muted: #757575;
    --nf-post-text: #1d1f1e;
    --nf-post-content-width: 760px;
    --nf-post-toc-width: 240px;
    /* Grille horizontale unifiée pour TOUTES les sections (alignement vertical) */
    --nf-post-section-max: 1200px;
    --nf-post-section-pad: 24px;

    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--nf-post-text);
}

/* Sécurité : tous les <section> de l'article prennent la pleine largeur */
.nf-post > section,
.nf-post > header.nf-post__hero,
.nf-post > .nf-post__body {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* ═════════ HERO ═════════ */
.nf-post__hero {
    background: var(--nf-post-bg);
    padding: 56px 0 0;
    border-bottom: 1px solid var(--nf-post-border);
}

.nf-post__hero-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 var(--nf-post-section-pad) 48px;
    text-align: center;
}

.nf-post__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--nf-post-muted);
    margin-bottom: 24px;
}

.nf-post__breadcrumb a {
    color: var(--nf-post-muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

.nf-post__breadcrumb a:hover {
    color: var(--nf-post-black);
}

.nf-post__breadcrumb span {
    opacity: 0.5;
}

.nf-post__cat {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(26, 71, 42, 0.08);
    border: 1px solid rgba(26, 71, 42, 0.18);
    color: var(--nf-post-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.nf-post__title {
    font-size: clamp(30px, 4.5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 900;
    color: var(--nf-post-black);
    margin: 0 0 18px;
    text-transform: none;
}

.nf-post__lede {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.55;
    color: rgba(12, 12, 13, 0.65);
    max-width: 680px;
    margin: 0 auto 28px;
    font-weight: 400;
}

.nf-post__meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--nf-post-muted);
}

.nf-post__meta-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nf-post-text);
}

.nf-post__meta-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nf-post__meta-by {
    color: var(--nf-post-muted);
    margin-right: 4px;
}

.nf-post__meta-author strong {
    font-weight: 700;
    color: var(--nf-post-black);
}

.nf-post__meta-dot {
    opacity: 0.4;
}

.nf-post__hero-media {
    max-width: var(--nf-post-section-max);
    margin: 0 auto;
    padding: 0 var(--nf-post-section-pad);
    transform: translateY(36px);
}

.nf-post__hero-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

/* ═════════ BODY (TOC + CONTENU) ═════════ */
.nf-post__body {
    padding: 88px 0 80px;
    background: #fff;
}

.nf-post__layout {
    max-width: var(--nf-post-section-max);
    margin: 0 auto;
    padding: 0 var(--nf-post-section-pad);
    display: grid;
    grid-template-columns: var(--nf-post-toc-width) minmax(0, var(--nf-post-content-width)) 1fr;
    column-gap: 56px;
    align-items: start;
}

/* La colonne contenu prend la 2e cellule (centrée), la 3e cellule équilibre la TOC */
.nf-post__main {
    grid-column: 2 / 3;
}

.nf-post__toc {
    grid-column: 1 / 2;
}

/* ── TOC sticky (PC) ── */
.nf-post__toc {
    position: relative;
}

.nf-post__toc-details {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-width: thin;
}

.nf-post__toc-summary {
    list-style: none;
    cursor: default; /* pas cliquable sur PC, c'est juste un titre */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--nf-post-border);
}

.nf-post__toc-summary::-webkit-details-marker {
    display: none;
}

.nf-post__toc-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nf-post-muted);
}

.nf-post__toc-chevron {
    /* Caché sur PC : la TOC est toujours ouverte */
    display: none;
    width: 18px;
    height: 18px;
    color: var(--nf-post-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nf-post__toc-list {
    list-style: none;
    counter-reset: nf-toc;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nf-post__toc-list > li {
    counter-increment: nf-toc;
    line-height: 1.4;
}

.nf-post__toc-list > li > a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 12px;
    border-left: 2px solid transparent;
    color: rgba(12, 12, 13, 0.62);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    border-radius: 0 6px 6px 0;
}

.nf-post__toc-list > li > a::before {
    content: counter(nf-toc, decimal-leading-zero);
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(12, 12, 13, 0.32);
    transition: color 0.18s ease;
    min-width: 22px;
}

.nf-post__toc-list > li > a:hover {
    color: var(--nf-post-black);
    background: rgba(0, 0, 0, 0.03);
}

.nf-post__toc-list > li > a:hover::before {
    color: var(--nf-post-black);
}

.nf-post__toc-list > li > a.is-active {
    color: var(--nf-post-green);
    border-left-color: var(--nf-post-green);
    background: rgba(26, 71, 42, 0.05);
    font-weight: 700;
}

.nf-post__toc-list > li > a.is-active::before {
    color: var(--nf-post-green);
}

.nf-post__toc-list .nf-post__toc-h3 {
    counter-increment: none;
}

.nf-post__toc-list .nf-post__toc-h3 > a {
    padding-left: 40px;
    font-size: 12.5px;
}

.nf-post__toc-list .nf-post__toc-h3 > a::before {
    content: "";
    min-width: 0;
    margin-right: -10px;
}

.nf-post__toc-empty {
    color: var(--nf-post-muted);
    font-size: 13px;
    font-style: italic;
}

/* ── Contenu principal ── */
.nf-post__main {
    min-width: 0;
}

/* Partage (haut) */
.nf-post__share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--nf-post-border);
}

.nf-post__share-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nf-post-muted);
    margin-right: 4px;
}

.nf-post__share-btn {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--nf-post-border);
    background: #fff;
    color: var(--nf-post-black);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    text-decoration: none;
    padding: 0;
}

.nf-post__share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.nf-post__share-btn:hover {
    background: var(--nf-post-black);
    border-color: var(--nf-post-black);
    color: #fff;
    transform: translateY(-2px);
}

.nf-post__share-copy.is-copied {
    background: var(--nf-post-green);
    border-color: var(--nf-post-green);
    color: #fff;
}

/* Contenu de l'article (typographie éditoriale).
   Pas de font-family : on herite du body (Astra), sinon les <li> (qui ne sont
   pas restyles par Astra) tombent en system-ui foireux. */
.nf-post__content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--nf-post-text);
}

.nf-post__content > * {
    margin: 0 0 1.4em;
}

.nf-post__content h2 {
    font-size: clamp(24px, 2.5vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 900;
    color: var(--nf-post-black);
    margin: 2.2em 0 0.7em;
    text-transform: none;
    scroll-margin-top: 90px;
}

.nf-post__content h2:first-child {
    margin-top: 0;
}

.nf-post__content h3 {
    font-size: clamp(19px, 1.7vw, 22px);
    line-height: 1.3;
    font-weight: 800;
    color: var(--nf-post-black);
    margin: 1.8em 0 0.6em;
    scroll-margin-top: 90px;
}

.nf-post__content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--nf-post-black);
    margin: 1.5em 0 0.5em;
}

.nf-post__content p {
    margin: 0 0 1.4em;
}

.nf-post__content a {
    color: var(--nf-post-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.18s ease;
}

.nf-post__content a:hover {
    color: var(--nf-post-black);
}

.nf-post__content strong {
    font-weight: 700;
    color: var(--nf-post-black);
}

.nf-post__content ul,
.nf-post__content ol {
    padding-left: 22px;
    margin: 0 0 1.4em;
}

.nf-post__content ul li,
.nf-post__content ol li {
    margin-bottom: 0.5em;
}

.nf-post__content ul li::marker {
    color: var(--nf-post-green);
}

.nf-post__content ol li::marker {
    color: var(--nf-post-green);
    font-weight: 700;
}

.nf-post__content blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    border-left: 4px solid var(--nf-post-green);
    background: var(--nf-post-bg);
    border-radius: 0 12px 12px 0;
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    color: var(--nf-post-black);
}

.nf-post__content blockquote p:last-child {
    margin-bottom: 0;
}

.nf-post__content img,
.nf-post__content figure {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2em auto;
    display: block;
}

.nf-post__content figure img {
    margin: 0;
    width: 100%;
}

.nf-post__content figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--nf-post-muted);
    margin-top: 10px;
    font-style: italic;
}

.nf-post__content pre {
    background: #0c0c0d;
    color: #f5f5f5;
    padding: 20px 22px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.nf-post__content code {
    background: rgba(26, 71, 42, 0.08);
    color: var(--nf-post-green);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}

.nf-post__content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.nf-post__content hr {
    border: 0;
    height: 1px;
    background: var(--nf-post-border);
    margin: 3em 0;
}

.nf-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 15px;
}

.nf-post__content th,
.nf-post__content td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--nf-post-border);
}

.nf-post__content th {
    font-weight: 800;
    color: var(--nf-post-black);
    background: var(--nf-post-bg);
}

/* Tags */
.nf-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--nf-post-border);
}

.nf-post__tag {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--nf-post-bg);
    border: 1px solid var(--nf-post-border);
    color: var(--nf-post-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.nf-post__tag:hover {
    border-color: var(--nf-post-black);
    color: var(--nf-post-black);
}

/* ═════════ ENCART AUTEUR ═════════ */
.nf-post__author-section {
    background: var(--nf-post-bg);
    padding: 64px 0;
}

.nf-post__author-card {
    max-width: var(--nf-post-section-max);
    margin: 0 auto;
    padding: 0 var(--nf-post-section-pad);
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.nf-post__author-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nf-post__author-body {
    min-width: 0;
}

.nf-post__author-eyebrow {
    display: inline-block;
    color: var(--nf-post-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nf-post__author-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--nf-post-black);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.2;
}

.nf-post__author-bio {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(12, 12, 13, 0.7);
    margin: 0 0 14px;
}

.nf-post__author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nf-post-black);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nf-post__author-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.18s ease;
}

.nf-post__author-link:hover svg {
    transform: translateX(3px);
}

/* ═════════ NEWSLETTER ═════════ */
.nf-post__newsletter {
    background: var(--nf-post-black);
    color: #fff;
    padding: 72px 0;
}

.nf-post__newsletter-inner {
    max-width: var(--nf-post-section-max);
    margin: 0 auto;
    padding: 0 var(--nf-post-section-pad);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
}

.nf-post__newsletter-eyebrow {
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.nf-post__newsletter-title {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    text-transform: none;
}

.nf-post__newsletter-title span {
    color: #2d7a48;
    font-style: italic;
}

.nf-post__newsletter-sub {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 480px;
}

.nf-post__newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px;
    min-width: 380px;
}

.nf-post__newsletter-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 15px;
    padding: 12px 18px;
    min-width: 0;
}

.nf-post__newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.nf-post__newsletter-form button {
    background: #fff;
    color: var(--nf-post-black);
    border: 0;
    border-radius: 999px;
    padding: 0 26px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.nf-post__newsletter-form button:hover {
    background: #2d7a48;
}

/* ═════════ ARTICLES SUGGÉRÉS ═════════ */
.nf-post__related {
    padding: 80px 0;
    background: #fff;
}

.nf-post__related-inner {
    max-width: var(--nf-post-section-max);
    margin: 0 auto;
    padding: 0 var(--nf-post-section-pad);
}

.nf-post__related-title {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--nf-post-black);
    margin: 0 0 36px;
}

.nf-post__related-title span {
    color: var(--nf-post-green);
    font-style: italic;
}

.nf-post__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* Renforce la lisibilité des cartes dans le contexte single-post */
.nf-post__related-grid .nf-blog__card {
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.nf-post__related-grid .nf-blog__card:hover {
    border-color: rgba(0, 0, 0, 0.20);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ═════════ COMMENTAIRES (mode forum) ═════════ */
.nf-post__comments-wrap {
    background: var(--nf-post-bg);
    padding: 80px 0;
}

.nf-post__comments-inner {
    max-width: var(--nf-post-section-max);
    margin: 0 auto;
    padding: 0 var(--nf-post-section-pad);
}

/* Le bloc commentaires s'aligne sur les autres sections (1200px) */
.nf-post__comments-inner .nf-comments {
    max-width: 100%;
    margin: 0;
}

.nf-comments {
    background: transparent;
}

.nf-comments__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--nf-post-border);
}

.nf-comments__eyebrow {
    display: inline-block;
    color: var(--nf-post-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nf-comments__title {
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 900;
    color: var(--nf-post-black);
    margin: 0 0 8px;
    text-transform: none;
}

.nf-comments__sub {
    font-size: 14px;
    color: var(--nf-post-muted);
    margin: 0;
    max-width: 460px;
}

.nf-comments__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--nf-post-black);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.nf-comments__cta:hover {
    background: var(--nf-post-green);
    color: #fff;
    transform: translateY(-2px);
}

.nf-comments__cta svg {
    width: 16px;
    height: 16px;
}

/* Empty state */
.nf-comments__empty {
    text-align: center;
    padding: 56px 24px;
    background: #fff;
    border: 1px dashed var(--nf-post-border);
    border-radius: 18px;
    color: var(--nf-post-muted);
}

.nf-comments__empty svg {
    width: 36px;
    height: 36px;
    color: var(--nf-post-green);
    opacity: 0.6;
    margin-bottom: 12px;
}

.nf-comments__empty p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 440px;
}

.nf-comments__closed {
    text-align: center;
    padding: 24px;
    color: var(--nf-post-muted);
    font-size: 14px;
    font-style: italic;
}

/* Liste des commentaires */
.nf-comments__list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nf-comments__list .children {
    list-style: none;
    margin: 20px 0 0 28px;
    padding: 0 0 0 28px;
    border-left: 2px solid var(--nf-post-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Carte commentaire (générée par custom_forum_comment) */
.nf-comments__list .forum-comment {
    list-style: none;
}

.nf-comments__list .forum-comment-body {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--nf-post-border);
    border-radius: 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.nf-comments__list .forum-comment-body:hover {
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.nf-comments__list .forum-avatar-wrapper {
    flex-shrink: 0;
}

.nf-comments__list .forum-avatar-wrapper img,
.nf-comments__list .forum-avatar-wrapper .trustpilot-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.nf-comments__list .forum-comment-content {
    flex: 1;
    min-width: 0;
}

.nf-comments__list .forum-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.nf-comments__list .forum-comment-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.nf-comments__list .forum-comment-author,
.nf-comments__list .forum-comment-author a {
    font-weight: 800;
    color: var(--nf-post-black);
    text-decoration: none;
    font-size: 14px;
}

.nf-comments__list .forum-badge.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(26, 71, 42, 0.08);
    border: 1px solid rgba(26, 71, 42, 0.18);
    color: var(--nf-post-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nf-comments__list .forum-badge.author-badge svg {
    width: 10px;
    height: 10px;
}

.nf-comments__list .forum-comment-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--nf-post-muted);
    font-size: 12px;
}

.nf-comments__list .forum-comment-date svg {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.nf-comments__list .forum-comment-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nf-comments__list .forum-comment-actions a,
.nf-comments__list .forum-comment-actions .comment-reply-link,
.nf-comments__list .forum-comment-actions .edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--nf-post-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
}

.nf-comments__list .forum-comment-actions a:hover,
.nf-comments__list .forum-comment-actions .comment-reply-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--nf-post-black);
}

.nf-comments__list .forum-comment-actions svg {
    width: 12px;
    height: 12px;
}

.nf-comments__list .forum-comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--nf-post-text);
}

.nf-comments__list .forum-comment-text p {
    margin: 0 0 0.7em;
}

.nf-comments__list .forum-comment-text p:last-child {
    margin-bottom: 0;
}

.nf-comments__list .comment-awaiting-moderation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 200, 0, 0.10);
    border: 1px solid rgba(255, 200, 0, 0.35);
    border-radius: 999px;
    color: #8a6800;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.nf-comments__list .comment-awaiting-moderation svg {
    width: 14px;
    height: 14px;
}

/* Pagination commentaires */
.nf-comments__pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 32px 0 40px;
    flex-wrap: wrap;
}

.nf-comments__pagination a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--nf-post-border);
    color: var(--nf-post-black);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.18s ease;
}

.nf-comments__pagination a:hover {
    border-color: var(--nf-post-black);
}

/* Formulaire de réponse */
.nf-comments__respond-wrap {
    margin-top: 40px;
}

#nf-respond .comment-respond {
    background: #fff;
    border: 1px solid var(--nf-post-border);
    border-radius: 18px;
    padding: 32px;
}

#nf-respond .comment-reply-title,
#nf-respond .comments-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--nf-post-black);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#nf-respond .comment-reply-title svg {
    width: 18px;
    height: 18px;
    color: var(--nf-post-green);
}

#nf-respond .comment-reply-title small {
    font-size: 13px;
    font-weight: 600;
}

#nf-respond .comment-reply-title small a {
    color: var(--nf-post-muted);
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
}

#nf-respond .comment-reply-title small a:hover {
    background: rgba(0, 0, 0, 0.10);
    color: var(--nf-post-black);
}

#nf-respond .comment-notes {
    font-size: 13px;
    color: var(--nf-post-muted);
    margin: 0 0 20px;
}

#nf-respond .logged-in-as {
    font-size: 13px;
    color: var(--nf-post-muted);
    margin: 0 0 18px;
}

#nf-respond .logged-in-as a {
    color: var(--nf-post-green);
    text-decoration: none;
    font-weight: 600;
}

#nf-respond .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

#nf-respond .comment-form-comment,
#nf-respond .comment-form-cookies-consent,
#nf-respond .form-submit {
    grid-column: 1 / -1;
}

#nf-respond .comment-form p {
    margin: 0;
}

#nf-respond .comment-form label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nf-post-muted);
    margin-bottom: 6px;
}

#nf-respond .comment-form input[type="text"],
#nf-respond .comment-form input[type="email"],
#nf-respond .comment-form input[type="url"],
#nf-respond .comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--nf-post-border);
    border-radius: 12px;
    background: var(--nf-post-bg);
    color: var(--nf-post-text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.18s ease, background 0.18s ease;
    outline: none;
}

#nf-respond .comment-form input:focus,
#nf-respond .comment-form textarea:focus {
    border-color: var(--nf-post-green);
    background: #fff;
}

#nf-respond .comment-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

#nf-respond .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--nf-post-muted);
}

#nf-respond .comment-form-cookies-consent input {
    margin: 0;
    width: auto;
}

#nf-respond .comment-form-cookies-consent label {
    margin: 0;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--nf-post-muted);
}

#nf-respond .form-submit {
    margin-top: 8px;
}

#nf-respond .submit,
#nf-respond input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nf-post-black);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

#nf-respond .submit:hover,
#nf-respond input[type="submit"]:hover {
    background: var(--nf-post-green);
    transform: translateY(-2px);
}

/* ═════════ RESPONSIVE ═════════ */
/* ═════════ RESPONSIVE — Tablette (1024px) ═════════ */
@media (max-width: 1024px) {
    /* Layout linéaire : TOC en accordéon, puis contenu */
    .nf-post__layout {
        grid-template-columns: 1fr;
        max-width: var(--nf-post-section-max);
    }
    .nf-post__toc,
    .nf-post__main {
        grid-column: 1 / -1;
        max-width: var(--nf-post-content-width);
        margin: 0 auto;
        width: 100%;
    }

    /* TOC en accordéon repliable (fermée par défaut) */
    .nf-post__toc-details {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: var(--nf-post-bg);
        border: 1px solid var(--nf-post-border);
        border-radius: 14px;
        margin-bottom: 28px;
    }

    .nf-post__toc-summary {
        cursor: pointer;
        margin: 0;
        padding: 16px 18px;
        border-bottom: 0;
        border-radius: 14px;
        transition: background 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .nf-post__toc-summary:hover {
        background: rgba(0, 0, 0, 0.02);
    }

    .nf-post__toc-title {
        font-size: 12px;
    }

    .nf-post__toc-chevron {
        display: block;
    }

    .nf-post__toc-details[open] .nf-post__toc-chevron {
        transform: rotate(180deg);
    }

    .nf-post__toc-details[open] .nf-post__toc-summary {
        border-bottom: 1px solid var(--nf-post-border);
        border-radius: 14px 14px 0 0;
    }

    .nf-post__toc-list {
        padding: 12px 14px 16px;
    }
    .nf-post__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
    .nf-post__newsletter-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .nf-post__newsletter-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .nf-post__newsletter-form {
        margin: 0 auto;
        max-width: 480px;
        min-width: 0;
        width: 100%;
    }
}

/* ═════════ RESPONSIVE — Tablette portrait / gros mobiles (768px) ═════════ */
@media (max-width: 768px) {
    .nf-post {
        --nf-post-section-pad: 20px;
    }

    /* HERO : compact mais aéré */
    .nf-post__hero {
        padding: 32px 0 0;
    }
    .nf-post__hero-inner {
        padding-bottom: 32px;
    }
    .nf-post__breadcrumb {
        font-size: 12px;
        gap: 6px;
        margin-bottom: 18px;
    }
    .nf-post__title {
        font-size: clamp(26px, 6vw, 34px);
        line-height: 1.15;
    }
    .nf-post__lede {
        font-size: 15px;
        margin-bottom: 22px;
    }
    .nf-post__meta {
        font-size: 12px;
        gap: 6px;
    }
    .nf-post__meta-author img {
        width: 32px;
        height: 32px;
    }
    .nf-post__meta-dot {
        opacity: 0.3;
    }
    .nf-post__hero-media {
        padding: 0 var(--nf-post-section-pad);
        transform: translateY(20px);
    }
    .nf-post__hero-media img {
        border-radius: 14px;
        aspect-ratio: 4 / 3;
    }

    /* BODY : moins de padding vertical */
    .nf-post__body {
        padding: 52px 0 48px;
    }
    .nf-post__share {
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 22px;
        margin-bottom: 22px;
    }
    .nf-post__share-label {
        width: 100%;
        margin-bottom: 4px;
    }
    .nf-post__share-btn {
        width: 40px;
        height: 40px;
    }

    /* CONTENU : taille de lecture confortable */
    .nf-post__content {
        font-size: 16px;
        line-height: 1.7;
    }
    .nf-post__content h2 {
        font-size: 22px;
        margin: 1.6em 0 0.5em;
    }
    .nf-post__content h3 {
        font-size: 18px;
        margin: 1.4em 0 0.4em;
    }
    .nf-post__content blockquote {
        padding: 18px 20px;
        font-size: 16px;
        margin: 1.5em 0;
    }
    .nf-post__content img,
    .nf-post__content figure {
        margin: 1.5em auto;
        border-radius: 12px;
    }
    .nf-post__tags {
        margin-top: 32px;
        padding-top: 24px;
    }

    /* AUTEUR : empilé, centré */
    .nf-post__author-section {
        padding: 48px 0;
    }
    .nf-post__author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .nf-post__author-avatar {
        width: 80px;
        height: 80px;
    }
    .nf-post__author-name {
        font-size: 20px;
    }

    /* NEWSLETTER : compact */
    .nf-post__newsletter {
        padding: 48px 0;
    }
    .nf-post__newsletter-title {
        font-size: 24px;
    }
    .nf-post__newsletter-sub {
        font-size: 14px;
    }

    /* RELATED : 1 colonne, gap mobile-friendly */
    .nf-post__related {
        padding: 48px 0;
    }
    .nf-post__related-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    .nf-post__related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* COMMENTAIRES : compact */
    .nf-post__comments-wrap {
        padding: 48px 0;
    }
    .nf-comments__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 28px;
        padding-bottom: 22px;
    }
    .nf-comments__title {
        font-size: 22px;
    }
    .nf-comments__cta {
        width: 100%;
        justify-content: center;
    }
}

/* ═════════ RESPONSIVE — Mobile (640px) ═════════ */
@media (max-width: 640px) {
    .nf-post__hero {
        padding-top: 24px;
    }
    .nf-post__breadcrumb {
        font-size: 11px;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        justify-content: flex-start;
        margin-left: -4px;
        padding-left: 4px;
    }
    .nf-post__breadcrumb::-webkit-scrollbar {
        display: none;
    }
    .nf-post__title {
        font-size: clamp(24px, 7vw, 30px);
    }
    .nf-post__lede {
        font-size: 14.5px;
    }
    .nf-post__hero-media {
        padding: 0 12px;
    }
    .nf-post__hero-media img {
        border-radius: 12px;
    }

    /* NEWSLETTER : form en colonne, plus tactile */
    .nf-post__newsletter-form {
        flex-direction: column;
        background: transparent;
        border: 0;
        padding: 0;
        gap: 10px;
    }
    .nf-post__newsletter-form input[type="email"] {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 999px;
        padding: 14px 20px;
        font-size: 16px; /* iOS no-zoom */
        text-align: center;
    }
    .nf-post__newsletter-form button {
        padding: 14px 26px;
        font-size: 14px;
        width: 100%;
    }

    /* COMMENTAIRES : avatars + spacing mobile */
    .nf-comments__list .forum-comment-body {
        padding: 16px;
        gap: 12px;
        border-radius: 14px;
    }
    .nf-comments__list .forum-avatar-wrapper img,
    .nf-comments__list .forum-avatar-wrapper .trustpilot-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px;
    }
    .nf-comments__list .forum-comment-header {
        gap: 8px;
        margin-bottom: 6px;
    }
    .nf-comments__list .forum-comment-author,
    .nf-comments__list .forum-comment-author a {
        font-size: 13.5px;
    }
    .nf-comments__list .forum-comment-text {
        font-size: 14.5px;
    }
    .nf-comments__list .children {
        margin: 14px 0 0 8px;
        padding-left: 14px;
        gap: 14px;
    }

    /* FORMULAIRE COMMENTAIRE : pleine largeur, tactile */
    #nf-respond .comment-respond {
        padding: 22px 18px;
        border-radius: 14px;
    }
    #nf-respond .comment-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    #nf-respond .comment-form input[type="text"],
    #nf-respond .comment-form input[type="email"],
    #nf-respond .comment-form input[type="url"],
    #nf-respond .comment-form textarea {
        font-size: 16px; /* iOS no-zoom */
    }
    #nf-respond .submit,
    #nf-respond input[type="submit"] {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* ═════════ RESPONSIVE — Très petits écrans (380px) ═════════ */
@media (max-width: 380px) {
    .nf-post {
        --nf-post-section-pad: 16px;
    }
    .nf-post__hero-media {
        padding: 0 8px;
    }
}
