/**
 * Blog T&T — Refonte UX premium 2026
 * Palette : vert sauge · cream/ivoire · noir profond
 * Typo : Cormorant Garamond (serif premium) · Open Sans (body)
 */

/* ============ ANTI-DÉBORDEMENT GLOBAL (mobile) ============ */
/* Empêche tout débordement horizontal sur les pages blog */
html:has(body.ybc_blog),
html:has(body[id^="ybc_blog"]) {
    overflow-x: hidden;
    max-width: 100%;
}
body.ybc_blog,
body[id^="ybc_blog"] {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* ============ TOKENS DESIGN ============ */
:root {
    --tt-sage: #5b7c4f;
    --tt-sage-dark: #3f5836;
    --tt-sage-light: #94ad88;
    --tt-cream: #faf7f0;
    --tt-cream-deep: #f0eadb;
    --tt-ivory: #fbfaf5;
    --tt-ink: #1c1c18;
    --tt-mute: #6c6c66;
    --tt-line: #e5e1d4;
    --tt-shadow-sm: 0 1px 2px rgba(28, 28, 24, 0.04), 0 2px 6px rgba(28, 28, 24, 0.04);
    --tt-shadow-md: 0 6px 18px rgba(28, 28, 24, 0.08), 0 2px 6px rgba(28, 28, 24, 0.05);
    --tt-shadow-lg: 0 16px 38px rgba(28, 28, 24, 0.12), 0 4px 10px rgba(28, 28, 24, 0.06);
    --tt-radius: 4px;
    --tt-radius-card: 6px;
    --tt-serif: "Cormorant Garamond", "Cormorant", "Georgia", "Times New Roman", serif;
    --tt-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============ RESET BLOG WRAPPER ============ */
.tt-blog-page {
    background: var(--tt-ivory);
    color: var(--tt-ink);
    font-family: var(--tt-sans);
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
}

.tt-blog-page * {
    box-sizing: border-box;
}

.tt-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hide native sidebar (full-width design) */
#left-column,
#right-column,
.right-column,
.left-column,
.ybc_blog_sidebar {
    display: none !important;
}

#content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wrapper > .container,
#main > .container,
#content {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Reset legacy ybc_blog wrappers if présents */
.blog-page-wrapper,
.blog-top-bar,
.blog-content-wrapper-full {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
}

/* ============ FULL-BLEED helper (break out of parent containers) ============ */
.tt-blog-page > .tt-blog-hero,
.tt-blog-page > .tt-blog-filters,
.tt-blog-page > .tt-blog-newsletter {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
}

/* ============ HERO ============ */
.tt-blog-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(28, 28, 24, 0.55) 0%, rgba(28, 28, 24, 0.30) 100%),
        url('/img/cms/the-vert-sencha.webp') center/cover no-repeat;
    background-color: #2a3027;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 100px 24px;
}

.tt-blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}

.tt-blog-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.tt-blog-hero-eyebrow {
    font-family: var(--tt-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
    display: inline-block;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.tt-blog-hero-title {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 22px 0;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.tt-blog-hero-sub {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 580px;
    margin: 0 auto;
    font-weight: 400;
}

/* ============ FILTRES TABS ============ */
.tt-blog-filters {
    background: var(--tt-ivory);
    border-bottom: 1px solid var(--tt-line);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    background: rgba(251, 250, 245, 0.95);
}

/* Carrousel horizontal swipeable */
.tt-filters-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tt-blog-filters-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
    margin: -4px -2px;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 24px;
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.tt-blog-filters-row::-webkit-scrollbar { display: none; }

.tt-blog-filters-row .tt-filter-pill {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.tt-filters-nav {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--tt-line);
    background: #fff;
    color: var(--tt-mute);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: var(--tt-shadow-sm);
    padding: 0;
}
.tt-filters-nav:hover {
    color: var(--tt-sage-dark);
    border-color: var(--tt-sage);
    box-shadow: var(--tt-shadow-md);
}
.tt-filters-nav[hidden] { display: none; }

@media (max-width: 768px) {
    .tt-filters-nav { display: none !important; }
    .tt-blog-filters-row {
        mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    }
}

.tt-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--tt-mute);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tt-filter-pill:hover {
    color: var(--tt-sage-dark);
    background: var(--tt-cream);
    text-decoration: none;
}

.tt-filter-pill.is-active {
    background: var(--tt-sage);
    color: #fff;
    border-color: var(--tt-sage);
}

.tt-filter-pill.is-active:hover {
    background: var(--tt-sage-dark);
    color: #fff;
}

/* Search inline */
.tt-blog-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative;
}

.tt-blog-search-input {
    width: 220px;
    padding: 8px 38px 8px 16px;
    border: 1px solid var(--tt-line);
    border-radius: 100px;
    font-size: 13px;
    color: var(--tt-ink);
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
    font-family: var(--tt-sans);
}

.tt-blog-search-input:focus {
    border-color: var(--tt-sage);
    box-shadow: 0 0 0 3px rgba(91, 124, 79, 0.15);
}

.tt-blog-search-input::placeholder {
    color: var(--tt-mute);
}

.tt-blog-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--tt-mute);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.tt-blog-search-btn:hover {
    color: var(--tt-sage);
}

/* ============ CONTENU ============ */
.tt-blog-content {
    padding: 64px 0 80px 0;
    background: var(--tt-ivory);
}

/* === FEATURED POST === */
.tt-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
    background: #fff;
    border-radius: var(--tt-radius-card);
    overflow: hidden;
    box-shadow: var(--tt-shadow-md);
    transition: box-shadow 0.3s ease;
}

.tt-featured-post:hover {
    box-shadow: var(--tt-shadow-lg);
}

.tt-featured-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: var(--tt-cream-deep);
    position: relative;
}

.tt-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.tt-featured-post:hover .tt-featured-img img {
    transform: scale(1.04);
}

.tt-featured-content {
    padding: 48px 56px 48px 8px;
}

.tt-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.tt-featured-tag {
    color: var(--tt-sage-dark);
    background: rgba(91, 124, 79, 0.10);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.tt-featured-cat {
    color: var(--tt-mute);
    position: relative;
    padding-left: 12px;
}

.tt-featured-cat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tt-sage-light);
    transform: translateY(-50%);
}

.tt-featured-title {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.005em;
    margin: 0 0 18px 0;
    color: var(--tt-ink);
}

.tt-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tt-featured-title a:hover {
    color: var(--tt-sage-dark);
    text-decoration: none;
}

.tt-featured-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: var(--tt-mute);
    margin: 0 0 28px 0;
}

.tt-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--tt-sage);
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.tt-featured-cta:hover {
    background: var(--tt-sage-dark);
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

.tt-featured-cta span {
    transition: transform 0.25s ease;
    display: inline-block;
}

.tt-featured-cta:hover span {
    transform: translateX(3px);
}

/* === GRILLE === */
.tt-blog-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 32px;
}

.tt-blog-item {
    margin: 0;
    padding: 0;
}

.tt-card {
    background: #fff;
    border-radius: var(--tt-radius-card);
    overflow: hidden;
    box-shadow: var(--tt-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.2, 0.6, 0.3, 1), box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tt-shadow-md);
}

.tt-card-img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--tt-cream-deep);
    position: relative;
}

.tt-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.tt-card:hover .tt-card-img img {
    transform: scale(1.05);
}

.tt-card-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tt-card-cat {
    margin-bottom: 12px;
}

.tt-card-cat a {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--tt-sage-dark);
    text-decoration: none;
    border: 1px solid rgba(91, 124, 79, 0.25);
    padding: 4px 11px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.tt-card-cat a:hover {
    background: var(--tt-sage);
    color: #fff;
    border-color: var(--tt-sage);
    text-decoration: none;
}

.tt-card-title {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 0 0 12px 0;
    color: var(--tt-ink);
}

.tt-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tt-card-title a:hover {
    color: var(--tt-sage-dark);
    text-decoration: none;
}

.tt-card-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--tt-mute);
    margin: 0 0 18px 0;
    flex: 1;
}

.tt-card-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tt-sage-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.tt-card-link:hover {
    color: var(--tt-sage);
    text-decoration: none;
    gap: 12px;
}

.tt-card-link span {
    transition: transform 0.2s ease;
    display: inline-block;
}

.tt-card-link:hover span {
    transform: translateX(3px);
}

/* === EMPTY STATE === */
.tt-blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--tt-mute);
}

.tt-blog-empty p {
    font-size: 18px;
    margin: 0 0 24px 0;
}

/* === PAGINATION === */
/* ybc_blog rend la pagination en <dev class="links"> (typo natif) avec <b>1</b><a>2</a><a class="next">… */
.tt-blog-pagination {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.tt-blog-pagination .links,
.tt-blog-pagination dev,
.tt-blog-pagination .pagination,
.tt-blog-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tt-blog-pagination .results {
    color: var(--tt-mute);
    font-size: 13px;
    letter-spacing: 0.3px;
}

.tt-blog-pagination a,
.tt-blog-pagination b,
.tt-blog-pagination span:not(.results),
.tt-blog-pagination .current,
.tt-blog-pagination li > a,
.tt-blog-pagination li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--tt-mute);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--tt-line);
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tt-blog-pagination a:hover {
    border-color: var(--tt-sage);
    color: var(--tt-sage-dark);
    background: var(--tt-cream);
    text-decoration: none;
}

.tt-blog-pagination b,
.tt-blog-pagination .current,
.tt-blog-pagination .active,
.tt-blog-pagination li.active > a,
.tt-blog-pagination li.active > span {
    background: var(--tt-sage);
    color: #fff;
    border-color: var(--tt-sage);
    font-weight: 600;
}

.tt-blog-pagination a span,
.tt-blog-pagination .results span {
    border: none;
    background: transparent;
    min-width: 0;
    height: auto;
    padding: 0;
    color: inherit;
}

/* ============ NEWSLETTER CTA ============ */
.tt-blog-newsletter {
    background:
        linear-gradient(135deg, rgba(91, 124, 79, 0.92) 0%, rgba(63, 88, 54, 0.95) 100%),
        url('/img/cms/the-vert-sencha-matcha.webp') center/cover no-repeat;
    background-color: var(--tt-sage);
    color: #fff;
    padding: 72px 24px;
    margin: 0;
}

.tt-newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.tt-newsletter-text h2 {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    margin: 0 0 14px 0;
    color: #fff;
    letter-spacing: -0.005em;
}

.tt-newsletter-text p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    max-width: 460px;
}

.tt-newsletter-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    max-width: 480px;
    justify-self: end;
}

.tt-newsletter-input {
    flex: 1;
    padding: 14px 22px;
    border: none;
    border-radius: 100px;
    background: #fff;
    color: var(--tt-ink);
    font-size: 14px;
    outline: none;
    font-family: var(--tt-sans);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tt-newsletter-input::placeholder {
    color: var(--tt-mute);
}

.tt-newsletter-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 100px;
    background: var(--tt-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--tt-sans);
    white-space: nowrap;
}

.tt-newsletter-btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .tt-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 24px;
    }
    .tt-featured-post {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .tt-featured-img {
        aspect-ratio: 16 / 9;
    }
    .tt-featured-content {
        padding: 36px 36px 40px;
    }
    .tt-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .tt-newsletter-text p {
        margin: 0 auto;
    }
    .tt-newsletter-form {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .tt-blog-hero {
        min-height: 360px;
        padding: 60px 20px;
    }
    .tt-blog-content .tt-container,
    .tt-blog-newsletter .tt-container {
        padding: 0 24px;
    }
    .tt-blog-hero-eyebrow {
        font-size: 11px;
        letter-spacing: 3px;
    }
    .tt-blog-filters {
        padding: 14px 0;
        position: relative;
    }
    .tt-blog-filters-row {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .tt-blog-filters-row::-webkit-scrollbar {
        display: none;
    }
    .tt-blog-search {
        display: none;
    }
    .tt-blog-content {
        padding: 40px 0 56px;
    }
    .tt-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .tt-featured-post {
        margin-bottom: 48px;
    }
    .tt-featured-content {
        padding: 28px 24px 32px;
    }
    .tt-featured-meta {
        gap: 8px;
    }
    .tt-featured-excerpt {
        font-size: 15px;
    }
    .tt-blog-newsletter {
        padding: 56px 20px;
    }
    .tt-newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    .tt-newsletter-btn {
        width: 100%;
    }
    .tt-card-body {
        padding: 22px 22px 24px;
    }
    .tt-card-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .tt-blog-hero {
        min-height: 300px;
        padding: 56px 20px;
    }
    .tt-container {
        padding: 0 20px;
    }
    .tt-filter-pill {
        padding: 7px 14px;
        font-size: 12px;
    }
    .tt-card-title {
        font-size: 19px;
    }
    .tt-featured-title {
        font-size: 26px;
    }
    .tt-blog-newsletter {
        padding: 48px 20px;
    }
}

/* ============ ACCESSIBILITY ============ */
.tt-blog-page a:focus-visible,
.tt-blog-page button:focus-visible,
.tt-blog-page input:focus-visible {
    outline: 2px solid var(--tt-sage);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .tt-blog-page *,
    .tt-blog-page *::before,
    .tt-blog-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================ */
/* === ARTICLE DETAIL — Refonte UX 2026     === */
/* ============================================ */

.tt-article {
    background: var(--tt-ivory);
    color: var(--tt-ink);
    font-family: var(--tt-sans);
    line-height: 1.75;
    width: 100%;
    margin: 0;
    padding: 0;
}

.tt-article * { box-sizing: border-box; }

/* Prevent any content overflow on mobile */
.tt-article-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}
.tt-article-body img,
.tt-article-body video,
.tt-article-body iframe,
.tt-article-body embed,
.tt-article-body object {
    max-width: 100%;
    height: auto;
}
.tt-article-body table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tt-article-body pre,
.tt-article-body code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.tt-article-body a {
    word-break: break-word;
}

/* Full-bleed pour hero + sections fond */
.tt-article > .tt-article-hero,
.tt-article > .tt-article-products,
.tt-article > .tt-article-related,
.tt-article > .tt-article-newsletter {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: none;
}

/* === HERO === */
.tt-article-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-color: #2a3027;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 120px 24px 72px;
    margin: 0;
    overflow: hidden;
}
.tt-article-hero:not(.tt-article-hero--image) {
    background:
        linear-gradient(135deg, var(--tt-sage-dark) 0%, var(--tt-sage) 100%);
}
.tt-article-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tt-breadcrumb {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    align-items: center;
}
.tt-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.tt-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.tt-breadcrumb-sep { color: rgba(255,255,255,0.5); }

.tt-article-cats {
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.tt-article-cat {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.2);
}
.tt-article-cat:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    text-decoration: none;
}

.tt-article-title {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 22px 0;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.25);
    max-width: 820px;
}

.tt-article-meta {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.tt-article-meta-sep { opacity: 0.5; }

/* === ARTICLE BODY === */
.tt-article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}

.tt-article-lead {
    font-family: var(--tt-serif);
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.55;
    color: var(--tt-ink);
    font-style: italic;
    margin: 0 0 40px 0;
    padding-left: 22px;
    border-left: 3px solid var(--tt-sage);
    font-weight: 400;
}

.tt-article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #2a2a26;
}

.tt-article-body > *:first-child { margin-top: 0; }
.tt-article-body > *:last-child { margin-bottom: 0; }

.tt-article-body h2 {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--tt-ink);
    margin: 56px 0 20px 0;
}
.tt-article-body h3 {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.3;
    color: var(--tt-ink);
    margin: 40px 0 14px 0;
}
.tt-article-body h4 {
    font-family: var(--tt-sans);
    font-weight: 600;
    font-size: 18px;
    color: var(--tt-ink);
    margin: 32px 0 12px 0;
    letter-spacing: -0.005em;
}

.tt-article-body p {
    margin: 0 0 22px 0;
}
.tt-article-body p:last-child { margin-bottom: 0; }

.tt-article-body strong { color: var(--tt-ink); font-weight: 600; }
.tt-article-body em, .tt-article-body i { font-style: italic; }

.tt-article-body a {
    color: var(--tt-sage-dark);
    text-decoration: underline;
    text-decoration-color: rgba(91,124,79,0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}
.tt-article-body a:hover {
    color: var(--tt-sage);
    text-decoration-color: var(--tt-sage);
}

.tt-article-body ul,
.tt-article-body ol {
    margin: 0 0 22px 0;
    padding-left: 24px;
}
.tt-article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.tt-article-body ul li::marker { color: var(--tt-sage); }
.tt-article-body ol li::marker { color: var(--tt-sage); font-weight: 600; }

.tt-article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 36px auto;
    border-radius: var(--tt-radius-card);
    box-shadow: var(--tt-shadow-md);
}

.tt-article-body blockquote {
    margin: 36px 0;
    padding: 28px 32px;
    border-left: 4px solid var(--tt-sage);
    background: var(--tt-cream);
    font-family: var(--tt-serif);
    font-size: 19px;
    line-height: 1.55;
    font-style: italic;
    color: var(--tt-ink);
    border-radius: 0 var(--tt-radius-card) var(--tt-radius-card) 0;
}
.tt-article-body blockquote p:last-child { margin-bottom: 0; }

.tt-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
}
.tt-article-body table th,
.tt-article-body table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--tt-line);
    text-align: left;
}
.tt-article-body table th {
    font-weight: 600;
    background: var(--tt-cream);
    color: var(--tt-ink);
}

/* === TAGS === */
.tt-article-tags {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--tt-line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.tt-article-tags-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--tt-mute);
    font-weight: 600;
    margin-right: 6px;
}
.tt-article-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--tt-cream);
    color: var(--tt-sage-dark);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--tt-line);
}
.tt-article-tag:hover {
    background: var(--tt-sage);
    color: #fff;
    border-color: var(--tt-sage);
    text-decoration: none;
}

/* === PARTAGE === */
.tt-article-share {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--tt-line);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.tt-article-share-label {
    font-size: 13px;
    color: var(--tt-mute);
    font-weight: 500;
}
.tt-article-share-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}
.tt-article-share-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--tt-mute);
    border: 1px solid var(--tt-line);
    transition: all 0.2s ease;
    text-decoration: none;
}
.tt-article-share-list a:hover {
    background: var(--tt-sage);
    color: #fff;
    border-color: var(--tt-sage);
    transform: translateY(-2px);
}

/* === SECTIONS BAS DE PAGE === */
.tt-article-products,
.tt-article-related {
    padding: 72px 0;
    background: var(--tt-cream);
}
.tt-article-products + .tt-article-related {
    background: var(--tt-ivory);
}
.tt-article-section-title {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--tt-ink);
    text-align: center;
    margin: 0 0 48px 0;
}
.tt-products-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .tt-article-hero { min-height: 380px; padding: 96px 20px 56px; }
    .tt-article-wrap { padding: 60px 20px 50px; }
    .tt-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .tt-article-hero { min-height: 340px; padding: 80px 24px 48px; }
    .tt-article-title { font-size: 32px; }
    .tt-article-wrap {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
    .tt-article-body {
        font-size: 16px;
        padding: 60px;
        text-align: justify;
    }
    .tt-article-body,
    .tt-article-body * {
        max-width: 100%;
        box-sizing: border-box;
    }
    .tt-article-lead { font-size: 17px; padding-left: 14px; text-align: left; }
    .tt-article-body h2 { font-size: 24px; margin: 40px 0 16px; text-align: left; }
    .tt-article-body h3 { font-size: 20px; margin: 32px 0 12px; text-align: left; }
    .tt-article-body img { margin: 28px auto; max-width: 100%; height: auto; }
    .tt-article-body ul,
    .tt-article-body ol { text-align: left; }
    .tt-article-tags { margin-top: 40px; padding: 24px 38px 0; }
    .tt-article-share { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 38px; }
    .tt-article-products,
    .tt-article-related { padding: 56px 24px; }
    .tt-article-products .tt-container,
    .tt-article-related .tt-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .tt-products-grid { grid-template-columns: 1fr; }
    .tt-article-section-title { margin-bottom: 32px; }
}

@media (max-width: 480px) {
    .tt-article-hero { min-height: 300px; padding: 64px 20px 40px; }
    .tt-article-title { font-size: 28px; }
    .tt-article-wrap {
        padding: 40px 20px 32px;
    }
    .tt-article-lead { font-size: 16px; padding-left: 14px; margin-bottom: 32px; }
    .tt-article-body h2 { font-size: 22px; margin: 36px 0 14px; }
    .tt-article-body h3 { font-size: 18px; margin: 28px 0 10px; }
    .tt-article-body blockquote { padding: 22px 20px; font-size: 17px; }
    .tt-article-products,
    .tt-article-related { padding: 48px 20px; }
}

/* ============================================ */
/* === ARTICLE LAYOUT 2 COLS + SIDEBAR     === */
/* ============================================ */

/* Layout 2 colonnes : article + sidebar */
.tt-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 72px;
    box-sizing: border-box;
    align-items: start;
}

/* Override : tt-article-wrap n'a plus son propre max-width quand inside layout */
.tt-article-layout .tt-article-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.tt-article-main { min-width: 0; }

/* === SIDEBAR === */
.tt-article-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* === WIDGET de base === */
.tt-widget {
    background: #fff;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius-card);
    padding: 24px 22px;
    box-shadow: var(--tt-shadow-sm);
}

.tt-widget-title {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    color: var(--tt-ink);
    margin: 0 0 18px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tt-line);
    letter-spacing: -0.005em;
}

/* === WIDGET Articles populaires === */
.tt-widget-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tt-widget-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tt-widget-post-img {
    flex-shrink: 0;
    display: block;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--tt-cream-deep);
}

.tt-widget-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tt-widget-post:hover .tt-widget-post-img img {
    transform: scale(1.06);
}

.tt-widget-post-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tt-widget-post-title {
    font-family: var(--tt-serif);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    color: var(--tt-ink);
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tt-widget-post-title:hover {
    color: var(--tt-sage-dark);
    text-decoration: none;
}

.tt-widget-post-meta {
    font-size: 11px;
    color: var(--tt-mute);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-weight: 600;
}

/* === WIDGET Catégories === */
.tt-widget-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tt-widget-cat {
    border-bottom: 1px solid var(--tt-line);
}

.tt-widget-cat:last-child {
    border-bottom: none;
}

.tt-widget-cat a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    color: var(--tt-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tt-widget-cat a:hover {
    color: var(--tt-sage-dark);
    text-decoration: none;
}

.tt-widget-cat a::before {
    content: "—";
    margin-right: 10px;
    color: var(--tt-sage);
    transition: margin 0.2s ease;
}

.tt-widget-cat a:hover::before {
    margin-right: 14px;
}

.tt-widget-cat.is-active a {
    color: var(--tt-sage-dark);
    font-weight: 600;
}

.tt-widget-cat-count {
    background: var(--tt-cream);
    color: var(--tt-mute);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 8px;
}

/* === WIDGET Newsletter === */
.tt-widget-newsletter {
    background: linear-gradient(135deg, var(--tt-sage) 0%, var(--tt-sage-dark) 100%);
    color: #fff;
    border-color: transparent;
}

.tt-widget-newsletter .tt-widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.25);
}

.tt-widget-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0 0 16px 0;
}

.tt-widget-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tt-widget-form input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: var(--tt-ink);
    font-size: 13px;
    font-family: var(--tt-sans);
    outline: none;
}

.tt-widget-form input[type="email"]::placeholder {
    color: var(--tt-mute);
}

.tt-widget-form button {
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: var(--tt-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--tt-sans);
}

.tt-widget-form button:hover {
    background: #000;
    transform: translateY(-1px);
}

.tt-widget-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.tt-widget-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    margin: 2px 0;
}
.tt-widget-consent input[type="checkbox"] {
    margin: 2px 0 0 0;
    flex-shrink: 0;
    accent-color: var(--tt-ink);
}
.tt-widget-consent a {
    color: #fff;
    text-decoration: underline;
}
.tt-widget-consent a:hover {
    color: #fff;
    opacity: 0.85;
}

.tt-widget-msg {
    font-size: 12px;
    margin: 4px 0 0 0;
    line-height: 1.4;
    color: rgba(255,255,255,0.95);
    min-height: 16px;
}
.tt-widget-msg.ok { color: #d4ffba; }
.tt-widget-msg.err { color: #ffd6d6; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .tt-article-layout {
        grid-template-columns: 1fr;
        gap: 56px;
        padding: 64px 24px 56px;
    }
    .tt-article-sidebar {
        position: static;
        top: auto;
        max-width: 720px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tt-article-layout {
        padding: 0;
        gap: 0;
        max-width: 100%;
    }
    .tt-article-sidebar {
        padding: 24px 38px 56px;
        gap: 24px;
        max-width: 100%;
    }
    .tt-widget {
        padding: 22px 20px;
    }
    .tt-widget-title { font-size: 20px; }
    .tt-widget-post-img { width: 64px; height: 64px; }
    .tt-widget-post-title { font-size: 14px; }
}

/* ============================================ */
/* === TABLE DES MATIÈRES (TOC widget)     === */
/* ============================================ */
.tt-widget-toc[hidden] { display: none; }

.tt-toc-list {
    list-style: none;
    counter-reset: tt-toc;
    margin: 0;
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.tt-toc-item {
    counter-increment: tt-toc;
    line-height: 1.4;
}

.tt-toc-item a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    color: var(--tt-mute);
    text-decoration: none;
    font-size: 13px;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -2px;
    transition: all 0.2s ease;
}

.tt-toc-item a::before {
    content: counter(tt-toc, decimal-leading-zero);
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--tt-sage-light);
    line-height: 1.6;
    padding-top: 1px;
    transition: color 0.2s ease;
}

.tt-toc-item--h3 {
    counter-increment: none;
}
.tt-toc-item--h3 a {
    padding-left: 28px;
    font-size: 12.5px;
}
.tt-toc-item--h3 a::before {
    content: "—";
    color: var(--tt-line);
    font-size: 11px;
    font-weight: 400;
}

.tt-toc-item a:hover {
    color: var(--tt-ink);
    border-left-color: var(--tt-sage-light);
    text-decoration: none;
}

.tt-toc-item a.is-active {
    color: var(--tt-sage-dark);
    border-left-color: var(--tt-sage);
    font-weight: 600;
}
.tt-toc-item a.is-active::before {
    color: var(--tt-sage);
}

@media (max-width: 1024px) {
    .tt-toc-list { max-height: none; }
}

@media (max-width: 768px) {
    .tt-widget-toc { padding: 18px 20px; }
    .tt-widget-toc .tt-widget-title { font-size: 18px; margin-bottom: 12px; padding-bottom: 10px; }
    .tt-toc-item a { padding: 7px 0 7px 12px; font-size: 13.5px; }
}

/* Smooth scroll natif (en plus du JS) */
html { scroll-behavior: smooth; }
