/* ============================================================
   Framedis Blog -- CSS basique Foret Profonde (Lot 1.F stub)
   Sera enrichi/refondu en Lot 2 avec tous les composants editoriaux.
   ============================================================ */

:root {
    --fb-green: #2A4A1E;
    --fb-green-dark: #1E3618;
    --fb-cream: #F5F0E6;
    --fb-cream-light: #FAF6EE;
    --fb-gold: #B8924A;
    --fb-text: #1F2A1A;
    --fb-text-soft: #555;
    --fb-border: #E5DED1;
}

/* Page hero */
.fb-page-hero {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--fb-border);
    margin-bottom: 36px;
}
.fb-page-hero--theme {
    text-align: left;
    padding-top: 24px;
}
.fb-page-eyebrow {
    color: var(--fb-gold);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 8px;
}
.fb-page-title {
    color: var(--fb-green);
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 12px;
}
.fb-page-subtitle {
    color: var(--fb-text-soft);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto;
}

/* Breadcrumb */
.fb-breadcrumb {
    font-size: 0.85rem;
    color: var(--fb-text-soft);
    margin: 20px 0;
}
.fb-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.fb-breadcrumb li:not(:last-child)::after {
    content: " ›";
    color: var(--fb-border);
    margin-left: 6px;
}
.fb-breadcrumb a {
    color: var(--fb-green);
    text-decoration: none;
}
.fb-breadcrumb a:hover { text-decoration: underline; }
.fb-breadcrumb [aria-current="page"] {
    color: var(--fb-text);
    font-weight: 500;
}

/* Themes nav (pills horizontaux) */
.fb-themes-nav {
    margin: 0 0 32px;
}
.fb-themes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.fb-theme-pill a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--fb-border);
    border-radius: 999px;
    color: var(--fb-text);
    text-decoration: none;
    font-size: 0.9rem;
    background: white;
    transition: all 0.15s ease;
}
.fb-theme-pill a:hover {
    border-color: var(--fb-green);
    color: var(--fb-green);
}
.fb-theme-pill--active a {
    background: var(--fb-green);
    color: white;
    border-color: var(--fb-green);
}

/* Grid articles */
.fb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 0 0 48px;
}
.fb-grid--related {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Card */
.fb-card {
    background: white;
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.fb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 74, 30, 0.10);
}
.fb-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--fb-cream);
}
.fb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fb-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fb-card-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0;
}
.fb-card-title a {
    color: var(--fb-green);
    text-decoration: none;
}
.fb-card-title a:hover { text-decoration: underline; }
.fb-card-summary {
    font-size: 0.95rem;
    color: var(--fb-text-soft);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.fb-card-meta {
    font-size: 0.8rem;
    color: var(--fb-text-soft);
    margin-top: auto;
}

/* Article detail */
.fb-article-hero {
    margin-bottom: 32px;
}
.fb-article-meta {
    font-size: 0.85rem;
    color: var(--fb-text-soft);
    margin: 0 0 10px;
}
.fb-article-thema {
    color: var(--fb-gold);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}
.fb-article-title {
    color: var(--fb-green);
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 24px;
    max-width: 820px;
}
.fb-article-hero-img {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 5;
    background: var(--fb-cream);
}
.fb-article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article body */
.fb-article-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--fb-text);
}
.fb-article-content h2 {
    color: var(--fb-green);
    font-size: 1.55rem;
    margin: 36px 0 14px;
}
.fb-article-content h3 {
    color: var(--fb-green-dark);
    font-size: 1.2rem;
    margin: 26px 0 10px;
}
.fb-article-content p {
    margin: 0 0 16px;
}
.fb-article-content a {
    color: var(--fb-green);
    text-decoration: underline;
    text-decoration-color: var(--fb-gold);
    text-underline-offset: 3px;
}
.fb-article-content ul, .fb-article-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.fb-article-content li {
    margin-bottom: 6px;
}
.fb-article-content blockquote {
    border-left: 3px solid var(--fb-gold);
    padding-left: 18px;
    color: var(--fb-text-soft);
    font-style: italic;
    margin: 24px 0;
}

/* Tableaux dans le content d'article — Forêt Profonde */
.fb-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.96rem;
    background: white;
    border: 1px solid var(--fb-border);
    border-radius: 10px;
    overflow: hidden;
    table-layout: auto;
}
.fb-article-content thead {
    background: var(--fb-cream);
}
.fb-article-content thead th {
    color: var(--fb-green);
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid var(--fb-border);
    vertical-align: top;
}
.fb-article-content tbody td,
.fb-article-content tbody th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--fb-border);
    vertical-align: top;
    text-align: left;
    line-height: 1.5;
}
.fb-article-content tbody tr:last-child td,
.fb-article-content tbody tr:last-child th {
    border-bottom: 0;
}
.fb-article-content tbody tr:nth-child(even) {
    background: rgba(245, 240, 230, 0.4);
}
.fb-article-content tbody tr:hover {
    background: rgba(42, 74, 30, 0.04);
}
/* Wrap responsive : scroll horizontal sur mobile si tableau dépasse */
@media (max-width: 768px) {
    .fb-article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 0.9rem;
    }
    .fb-article-content table thead,
    .fb-article-content table tbody,
    .fb-article-content table tr {
        white-space: normal;
    }
}

/* ════════════════════════════════════════════════════════════════════
   Inline product card (rendu via [PRODUCT_CARD:id])
   Card horizontale Forêt Profonde avec selector ± + bouton AJC silencieux
   (compatible JS framedis.js : .fr-pcard-add-form / .fr-pcard-qty-btn).
   ═══════════════════════════════════════════════════════════════════ */
.fb-pcard {
    display: flex;
    gap: 22px;
    background: var(--fb-cream-light);
    border: 1px solid var(--fb-border);
    border-left: 4px solid var(--fb-green);
    border-radius: 14px;
    padding: 22px;
    margin: 32px 0;
    align-items: stretch;
    box-shadow: 0 2px 6px rgba(42, 74, 30, 0.06);
}
.fb-pcard-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    display: block;
    border: 1px solid var(--fb-border);
}
.fb-pcard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.fb-pcard-thumb:hover img {
    transform: scale(1.04);
}
.fb-pcard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}
.fb-pcard-eyebrow {
    color: var(--fb-gold);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
}
.fb-pcard-title {
    display: block;
    color: var(--fb-green);
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 600;
    text-decoration: none;
    margin: 2px 0 4px;
}
.fb-pcard-title:hover { text-decoration: underline; }
.fb-pcard-desc {
    color: var(--fb-text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 6px;
}
.fb-pcard-priceline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.fb-pcard-price {
    color: var(--fb-text);
    font-size: 1.15rem;
    font-weight: 600;
}
.fb-pcard-avail {
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
}
.fb-pcard-avail--in_stock {
    background: rgba(42, 74, 30, 0.1);
    color: var(--fb-green);
}
.fb-pcard-avail--oos {
    background: rgba(184, 146, 74, 0.12);
    color: var(--fb-gold);
}

/* ──────────────────────────────────────────────────────────────────
   Form AJC — style aligné sur fiche produit (.fr-pqty + .fr-pa2c-cta)
   On utilise .fb-pcard .fr-pcard-qty / .fr-pcard-add pour battre la
   spécificité (0,2,0) des règles thème enfant pour miniatures de carte
   produit (.fr-pcard-add = cercle ambre 38×38, .fr-pcard-qty-btn = 30×30
   transparent). Le JS framedis.js cible toujours .fr-pcard-* donc on
   garde ces classes côté HTML.
   ────────────────────────────────────────────────────────────────── */
.fb-pcard-form { margin: 0; }
.fb-pcard-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Selector qty — reproduit .fr-pqty (carré arrondi 12px, blanc, 50px) */
.fb-pcard .fr-pcard-qty {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1.5px solid var(--fb-border);
    border-radius: 12px;
    overflow: hidden;
    height: 50px;
    padding: 0;
    flex: 0 0 auto;
}
.fb-pcard .fr-pcard-qty-btn {
    width: 40px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--fb-text);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    line-height: 1;
}
.fb-pcard .fr-pcard-qty-btn:hover {
    background: rgba(42, 74, 30, 0.08);
    color: var(--fb-green);
}
.fb-pcard .fr-pcard-qty-btn:active { transform: scale(0.95); }
.fb-pcard .fr-pcard-qty-display {
    min-width: 36px;
    height: 100%;
    border-left: 1px solid var(--fb-border);
    border-right: 1px solid var(--fb-border);
    font-size: 16px;
    font-weight: 600;
    color: var(--fb-text);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

/* Bouton AJC — reproduit .fr-pa2c-cta (carré arrondi 12px, vert, 50px, large) */
.fb-pcard .fr-pcard-add,
.fb-pcard button.fr-pcard-add {
    flex: 1;
    min-width: 200px;
    width: auto;
    height: 50px;
    border-radius: 12px;
    background: var(--fb-green);
    color: var(--fb-cream-light);
    border: 0;
    padding: 0 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}
.fb-pcard .fr-pcard-add:hover,
.fb-pcard button.fr-pcard-add:hover {
    background: var(--fb-green-dark);
    color: var(--fb-cream-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(42, 74, 30, 0.25);
}
.fb-pcard .fr-pcard-add:active {
    transform: translateY(0);
}
.fb-pcard .fr-pcard-add:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}
.fb-pcard .fr-pcard-add svg.fb-pcard-add-icon { flex-shrink: 0; display: inline-block; }
.fb-pcard .fr-pcard-add .fb-pcard-add-icon--success { display: none; }
.fb-pcard .fr-pcard-add.fr-pcard-add-success {
    background: #3d7a2a;
}
.fb-pcard .fr-pcard-add.fr-pcard-add-success .fb-pcard-add-icon--default { display: none; }
.fb-pcard .fr-pcard-add.fr-pcard-add-success .fb-pcard-add-icon--success { display: inline-block; }
.fb-pcard .fr-pcard-add.fr-pcard-add-error {
    background: #b54a3a;
}
.fb-pcard .fr-pcard-add.fr-pcard-add-loading {
    background: var(--fb-green-dark);
    opacity: 0.85;
}
.fb-pcard-add-label { display: inline; }

/* Internal links highlights */
.fb-internal-link {
    border-bottom: 1px solid var(--fb-gold);
}

/* Tags */
.fb-article-tags {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--fb-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fb-tag {
    background: var(--fb-cream);
    color: var(--fb-green);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
}

/* Related */
.fb-related {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--fb-border);
}
.fb-related-title {
    color: var(--fb-green);
    font-size: 1.6rem;
    margin: 0 0 24px;
}

/* Pagination */
.fb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--fb-border);
}
.fb-pagination a {
    color: var(--fb-green);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--fb-border);
}
.fb-pagination a:hover {
    background: var(--fb-cream);
}
.fb-pag-info {
    color: var(--fb-text-soft);
    font-size: 0.9rem;
}

/* Empty */
.fb-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--fb-text-soft);
    background: var(--fb-cream-light);
    border-radius: 12px;
}

/* Team bio */
.fb-team-bio {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--fb-text);
}

/* Section "Conseils & vertus" sur fiche produit (Lot 3) */
.fb-product-summary {
    max-width: 1200px;
    margin: 48px auto;
    padding: 0 24px;
}
.fb-ps-inner {
    background: linear-gradient(135deg, var(--fb-cream-light) 0%, white 100%);
    border: 1px solid var(--fb-border);
    border-radius: 16px;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
}
.fb-ps-inner::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--fb-green);
}
.fb-ps-eyebrow {
    color: var(--fb-gold);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 8px;
}
.fb-ps-title {
    color: var(--fb-green);
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0 0 16px;
}
.fb-ps-body {
    color: var(--fb-text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.fb-ps-body p { margin: 0 0 12px; }
.fb-ps-body p:last-child { margin-bottom: 0; }
.fb-ps-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fb-green);
    color: white !important;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 500;
    transition: background 0.15s ease, transform 0.15s ease;
}
.fb-ps-cta:hover {
    background: var(--fb-green-dark);
    transform: translateX(2px);
}
.fb-ps-time { opacity: 0.8; font-size: 0.9rem; }
.fb-ps-arrow { font-size: 1.2rem; }
@media (max-width: 768px) {
    .fb-product-summary { margin: 32px auto; padding: 0 16px; }
    .fb-ps-inner { padding: 24px 20px; }
    .fb-ps-title { font-size: 1.25rem; }
}

/* Bloc "Derniers conseils" homepage (Lot 1 final) */
.fb-home-latest {
    background: var(--fb-cream-light);
    padding: 60px 24px;
    border-top: 1px solid var(--fb-border);
    border-bottom: 1px solid var(--fb-border);
}
.fb-home-latest-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.fb-home-latest-head {
    text-align: center;
    margin-bottom: 36px;
}
.fb-home-latest-eyebrow {
    color: var(--fb-gold);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 8px;
}
.fb-home-latest-title {
    color: var(--fb-green);
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 8px;
}
.fb-home-latest-sub {
    color: var(--fb-text-soft);
    margin: 0;
}
.fb-home-latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.fb-home-card {
    background: white;
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.fb-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 74, 30, 0.10);
}
.fb-home-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--fb-cream);
}
.fb-home-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fb-home-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fb-home-card-title { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.fb-home-card-title a { color: var(--fb-green); text-decoration: none; }
.fb-home-card-title a:hover { text-decoration: underline; }
.fb-home-card-summary {
    font-size: 0.9rem;
    color: var(--fb-text-soft);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.fb-home-card-cta {
    color: var(--fb-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
}
.fb-home-latest-foot {
    text-align: center;
}
.fb-home-latest-cta {
    display: inline-block;
    background: var(--fb-green);
    color: white !important;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 500;
    transition: background 0.15s ease;
}
.fb-home-latest-cta:hover { background: var(--fb-green-dark); }
@media (max-width: 768px) {
    .fb-home-latest { padding: 40px 16px; }
    .fb-home-latest-title { font-size: 1.5rem; }
}

/* Responsive */
@media (max-width: 768px) {
    .fb-page-title { font-size: 1.8rem; }
    .fb-article-title { font-size: 1.7rem; }
    .fb-article-hero-img { aspect-ratio: 4 / 3; }
    .fb-pcard {
        flex-direction: column;
        text-align: left;
        padding: 18px;
        gap: 16px;
    }
    .fb-pcard-thumb {
        width: 100%;
        height: 220px;
        align-self: center;
    }
    /* Mobile : selector qty + bouton AJC sur la MEME ligne (cohérent fiche produit) */
    .fb-pcard-actions {
        flex-direction: row;
        gap: 10px;
        align-items: stretch;
    }
    .fb-pcard .fr-pcard-qty {
        flex: 0 0 auto;
        width: 130px;
        max-width: 130px;
        padding: 0;
    }
    .fb-pcard .fr-pcard-qty-btn {
        width: 36px;
    }
    .fb-pcard .fr-pcard-add,
    .fb-pcard button.fr-pcard-add {
        flex: 1;
        min-width: 0;
        padding: 0 16px;
        font-size: 14px;
    }
    .fb-pcard .fr-pcard-add .fb-pcard-add-label {
        white-space: nowrap;
    }
}
/* Fallback ultra-petit ecran (iPhone SE 320px) : on empile pour eviter
   que le bouton AJC ne soit ecrase ou que le label deborde. */
@media (max-width: 380px) {
    .fb-pcard-actions {
        flex-direction: column;
    }
    .fb-pcard .fr-pcard-qty {
        width: 100%;
        max-width: 180px;
    }
    .fb-pcard .fr-pcard-add,
    .fb-pcard button.fr-pcard-add {
        width: 100%;
    }
}

/* ════════════════════════════════════════════════════════════════════
   Mode preview banner (article non publié visible via token)
   ═══════════════════════════════════════════════════════════════════ */
.fb-preview-banner {
    background: linear-gradient(90deg, #b54a3a 0%, #d96a55 100%);
    color: #fff;
    padding: 14px 24px;
    text-align: center;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(181, 74, 58, 0.18);
}
.fb-preview-banner strong { font-weight: 700; }
.fb-preview-banner > strong:first-child {
    background: rgba(255,255,255,0.18);
    padding: 3px 10px;
    border-radius: 6px;
    margin-right: 12px;
    display: inline-block;
}

/* ════════════════════════════════════════════════════════════════════
   Lot 2 polish — Layout 3-col + TOC + sticky product + share buttons + FAQ
   ═══════════════════════════════════════════════════════════════════ */

/* Layout 3 colonnes desktop : TOC | Content | Sticky product */
.fb-article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 240px;
    gap: 36px;
    margin-top: 32px;
    align-items: start;
}
/* Smooth scroll global pour les ancres TOC */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--fr-header-h, 80px) + 24px);
}

/* ─── TOC sticky gauche ─── */
.fb-toc {
    position: sticky;
    top: calc(var(--fr-header-h, 80px) + 24px);
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 18px 18px 14px;
    background: var(--fb-cream-light);
    border: 1px solid var(--fb-border);
    border-left: 3px solid var(--fb-green);
    border-radius: 10px;
    font-size: 0.88rem;
}
.fb-toc-toggle {
    display: none; /* desktop : pas de toggle */
    background: transparent;
    border: 0;
    padding: 0;
    width: 100%;
    text-align: left;
    color: var(--fb-green);
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}
.fb-toc::before {
    content: "Sommaire";
    display: block;
    color: var(--fb-gold);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--fb-border);
}
.fb-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fb-toc-list li {
    margin: 0;
    padding: 0;
}
.fb-toc-link {
    display: block;
    padding: 7px 10px;
    color: var(--fb-text);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    line-height: 1.35;
    transition: all 0.15s ease;
}
.fb-toc-link:hover {
    background: rgba(42, 74, 30, 0.06);
    color: var(--fb-green);
}
.fb-toc-link.is-active {
    background: rgba(42, 74, 30, 0.1);
    color: var(--fb-green);
    border-left-color: var(--fb-green);
    font-weight: 600;
}

/* ─── Sticky product right ─── */
.fb-sticky-product {
    position: sticky;
    top: calc(var(--fr-header-h, 80px) + 24px);
    align-self: start;
}
.fb-sp-inner {
    background: var(--fb-cream-light);
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(42, 74, 30, 0.06);
}
.fb-sp-eyebrow {
    display: block;
    color: var(--fb-gold);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin-bottom: 12px;
}
.fb-sp-thumb {
    display: block;
    width: 180px;
    height: 180px;
    margin: 0 auto 14px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--fb-border);
}
.fb-sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.fb-sp-thumb:hover img {
    transform: scale(1.04);
}
.fb-sp-title {
    display: block;
    color: var(--fb-green);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 6px;
}
.fb-sp-title:hover { text-decoration: underline; }
.fb-sp-price {
    color: var(--fb-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.fb-sp-cta {
    display: block;
    background: var(--fb-green);
    color: var(--fb-cream-light) !important;
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.18s ease, transform 0.18s ease;
}
.fb-sp-cta:hover {
    background: var(--fb-green-dark);
    transform: translateY(-1px);
}

/* ─── Boutons partage social ─── */
.fb-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 18px;
    flex-wrap: wrap;
}
.fb-share-label {
    color: var(--fb-text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 4px;
}
.fb-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--fb-cream);
    border: 1px solid var(--fb-border);
    color: var(--fb-green);
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    padding: 0;
}
.fb-share-btn:hover {
    background: var(--fb-green);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(42, 74, 30, 0.2);
    border-color: var(--fb-green);
}
.fb-share-copy {
    background: var(--fb-cream);
}
.fb-share-copy-feedback {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fb-green);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.fb-share-copy.is-copied .fb-share-copy-feedback {
    opacity: 1;
}

/* ─── FAQ accordéon ─── */
.fb-faq {
    margin: 16px 0 24px;
}
.fb-faq-item {
    background: white;
    border: 1px solid var(--fb-border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.18s ease;
}
.fb-faq-item[open] {
    box-shadow: 0 2px 8px rgba(42, 74, 30, 0.08);
    border-color: var(--fb-green);
}
.fb-faq-q {
    padding: 14px 18px 14px 44px;
    color: var(--fb-green);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
    transition: background 0.15s ease;
}
.fb-faq-q::-webkit-details-marker { display: none; }
.fb-faq-q:hover {
    background: var(--fb-cream-light);
}
.fb-faq-q::before {
    content: "+";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--fb-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.25s ease;
}
.fb-faq-item[open] .fb-faq-q::before {
    content: "−";
    background: var(--fb-gold);
}
.fb-faq-a {
    padding: 4px 18px 18px 44px;
    color: var(--fb-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ─── Responsive Lot 2 ─── */
@media (max-width: 1324px) {
    /* Tablette : TOC en haut horizontal, plus de sticky product (intégré au flux) */
    .fb-article-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .fb-toc {
        position: static;
        max-height: none;
        margin-bottom: 28px;
        order: 1;
    }
    .fb-article-body { order: 2; }
    .fb-sticky-product {
        position: static;
        order: 3;
        margin: 28px auto;
        max-width: 320px;
        width: 100%;
    }
}
@media (max-width: 900px) {
    /* Mobile : padding horizontal global pour eviter que le contenu touche
       les bords du viewport (cf screens owner 2026-05-20). Le hero image
       article reste edge-to-edge via margin negatif compensatoire. */
    .fb-breadcrumb,
    .fb-article,
    .fb-related,
    .fb-home-latest,
    .fb-page-hero,
    .fb-grid,
    .fb-pagination,
    .fb-empty,
    .fb-themes-nav {
        padding-left: 18px;
        padding-right: 18px;
    }
    /* Mobile : centrer les pills thematiques + permettre wrap multilignes */
    .fb-themes-list {
        justify-content: center;
    }
    .fb-article-hero-img {
        margin-left: -18px;
        margin-right: -18px;
        border-radius: 0;
    }
    /* Mobile : TOC dropdown collapsable */
    .fb-toc {
        padding: 12px 16px;
    }
    .fb-toc::before { display: none; }
    .fb-toc-toggle {
        display: flex;
    }
    .fb-toc-toggle svg {
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }
    .fb-toc[aria-expanded="true"] .fb-toc-toggle svg,
    .fb-toc.is-open .fb-toc-toggle svg {
        transform: rotate(180deg);
    }
    .fb-toc-list {
        display: none;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid var(--fb-border);
    }
    .fb-toc.is-open .fb-toc-list {
        display: block;
    }
    .fb-toc-link {
        font-size: 0.9rem;
        padding: 9px 10px;
    }
    .fb-share {
        gap: 6px;
    }
    .fb-share-label {
        flex-basis: 100%;
        margin-bottom: 4px;
    }
    .fb-faq-q {
        font-size: 0.95rem;
        padding-right: 14px;
    }
    .fb-faq-a {
        font-size: 0.92rem;
    }
}
