/* ═══ Guide Comparatif — Optistream Theme ═══ */

/* ─── Hero Section ─── */
.hero-section {
    background: linear-gradient(135deg, #0a0a1a 0%, #0f1428 40%, #0a0e1e 100%);
    border-bottom: 1px solid rgba(37,121,232,0.15);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,121,232,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ─── Container ─── */
.container { max-width: 900px; margin: 0 auto; }

/* ─── Titles ─── */
.main-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    font-weight: 900 !important;
    color: #fafafa !important;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 0.8rem;
}
.section-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 2.5rem 0 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Product Ranking Section ─── */
.product-ranking-section {
    margin: 2rem 0;
}

/* ─── Product Card ─── */
.product-card {
    background: #16161e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
    position: relative;
}
.product-card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ─── Badges ─── */
.badge-best, .badge-value, .badge-budget, .streamer-pick {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35em 0.8em;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}
.badge-best {
    background: rgba(234,179,8,0.15);
    color: #eab308;
    border: 1px solid rgba(234,179,8,0.3);
}
.badge-value {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.25);
}
.badge-budget {
    background: rgba(96,165,250,0.12);
    color: #60a5fa;
    border: 1px solid rgba(96,165,250,0.25);
}
.streamer-pick {
    background: rgba(139,92,246,0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139,92,246,0.25);
}

/* ─── Product Info ─── */
.product-name {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0.5rem 0 1rem;
}
.product-highlight {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #2579e8;
    margin-bottom: 0.8rem;
}
.product-rating {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #eab308;
}
.price-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #4ade80;
    font-weight: 700;
}

/* ─── Product Image ─── */
.product-image, .intro-image-wrapper {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
}
.product-image img, .intro-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ─── Specs Table ─── */
.product-specs-table, .specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    margin: 1rem 0;
    background: #12121a;
}
.product-specs-table td, .specs-table td {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #c8c8d8;
}
.product-specs-table td:first-child, .specs-table td:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #8a8a9e;
    font-weight: 600;
    width: 40%;
    white-space: nowrap;
}
.product-specs-table tr:last-child td, .specs-table tr:last-child td {
    border-bottom: none;
}
.product-specs-table tr:hover td, .specs-table tr:hover td {
    background: rgba(37,121,232,0.04);
}

/* ─── Comparison Table ─── */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #16161e;
    margin: 2rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.comparison-table thead th {
    background: #1a1a28;
    color: #fff;
    padding: 12px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #2579e8;
    text-align: left;
}
.comparison-table td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #c8c8d8;
    font-size: 0.85rem;
}
.comparison-table tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}
.comparison-table tr:hover td {
    background: rgba(37,121,232,0.05);
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table a {
    color: #2579e8;
    font-weight: 600;
    text-decoration: none;
}
.comparison-table a:hover {
    text-decoration: underline;
}

/* ─── Pros & Cons ─── */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.2rem 0;
}
.pros-list {
    background: rgba(37,121,232,0.06);
    border-left: 3px solid #2579e8;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
}
.cons-list {
    background: rgba(239,68,68,0.06);
    border-left: 3px solid #ef4444;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
}
.pros-list h4, .cons-list h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}
.pros-list h4 { color: #2579e8; }
.cons-list h4 { color: #ef4444; }
.pros-list ul, .cons-list ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: none;
}
.pros-list li, .cons-list li {
    font-size: 0.85rem;
    color: #c8c8d8;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    position: relative;
    padding-left: 0.2rem;
}
.pros-list li::before { content: '✅ '; }
.cons-list li::before { content: '❌ '; }

/* ─── CTA Button ─── */
.product-cta {
    display: inline-block;
    background: linear-gradient(135deg, #2579e8, #1a5cbf);
    color: #fff !important;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37,121,232,0.25);
    margin: 0.5rem 0;
}
.product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,121,232,0.4);
    background: linear-gradient(135deg, #3089f8, #2579e8);
}

/* ─── Update Info ─── */
.update-info {
    background: #16161e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
}
.update-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #8a8a9e;
}
.update-date time { color: #2579e8; font-weight: 600; }
.modifications-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b0b0c0;
    margin: 0.8rem 0 0.4rem;
}
.modifications-list {
    margin: 0;
    padding-left: 1.2rem;
}
.modifications-list li {
    font-size: 0.8rem;
    color: #8a8a9e;
    margin-bottom: 0.3rem;
}
.modifications-list time { color: #b0b0c0; }

/* ─── Table of Contents ─── */
.table-of-contents {
    background: #16161e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}
.table-of-contents h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    border: none !important;
    padding: 0 !important;
}
.toc-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: toc;
}
.toc-list li {
    margin-bottom: 0.5rem;
    counter-increment: toc;
}
.toc-list li::before {
    content: counter(toc) ". ";
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #2579e8;
    font-weight: 700;
}
.toc-list a {
    color: #b0b0c0 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.toc-list a:hover { color: #2579e8 !important; }
.toc-list ul {
    padding-left: 1.5rem;
    margin-top: 0.3rem;
    list-style: none;
}
.toc-list ul li::before {
    content: "→ ";
    color: #5a5a6e;
}

/* ─── Content Sections ─── */
.content-section { margin: 2rem 0; }
.content-article {
    background: #16161e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

/* ─── Criteria Grid ─── */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.criteria-grid > div {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}

/* ─── Steps / Tips Lists ─── */
.steps-list, .tips-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.steps-list li, .tips-list li {
    color: #c8c8d8;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

/* ─── FAQ ─── */
.faq-item {
    background: #16161e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
}
.faq-item h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #e8e8ed !important;
    margin: 0 0 0.6rem !important;
}
.faq-item p {
    font-size: 0.9rem;
    color: #b0b0c0;
    margin: 0;
    line-height: 1.6;
}

/* ─── Author Block ─── */
.author-block {
    background: #16161e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
}
.author-content {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}
.author-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(37,121,232,0.3);
}
.author-info { flex: 1; }
.author-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 0.3rem;
}
.author-bio {
    font-size: 0.85rem;
    color: #8a8a9e;
    line-height: 1.5;
    margin: 0 0 0.6rem;
}
.author-social {
    display: flex;
    gap: 0.6rem;
}
.social-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #2579e8 !important;
    background: rgba(37,121,232,0.08);
    padding: 0.3em 0.7em;
    border-radius: 6px;
    text-decoration: none !important;
    border: 1px solid rgba(37,121,232,0.15);
}
.social-link:hover {
    background: rgba(37,121,232,0.15);
}

/* ─── Bottom Bar (Sticky) ─── */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(22,22,30,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(37,121,232,0.2);
    padding: 0.8rem 2rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.bottom-bar-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.bottom-bar-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 0;
}
.bottom-bar-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
}
.bottom-bar-text {
    min-width: 0;
}
.bottom-bar-text strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bottom-bar-text p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #8a8a9e;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bottom-bar-cta {
    display: inline-block;
    background: linear-gradient(135deg, #2579e8, #1a5cbf);
    color: #fff !important;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,121,232,0.25);
    transition: all 0.2s;
}
.bottom-bar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,121,232,0.4);
}

/* ─── Overflow wrapper (comparison table scroll) ─── */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

/* ─── Articles Similaires ─── */
.articles-similaires {
    background: #16161e !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-left: 3px solid #2579e8 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin: 2rem 0 !important;
}
.articles-similaires h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 0.8rem !important;
}
.articles-similaires a {
    color: #2579e8 !important;
}
.articles-similaires li {
    margin-bottom: 0.4rem;
}

/* ─── Force dark background on all guide elements (prevent white bleed from parent theme) ─── */
.os-article-content .hero-section,
.os-article-content .container,
.os-article-content .content-section,
.os-article-content .product-ranking-section,
.entry-content .hero-section,
.entry-content .container,
.entry-content .content-section,
.entry-content .product-ranking-section {
    background: transparent;
    color: #c8c8d8;
}

/* Force dark on all text inside guide */
.os-article-content .hero-section *,
.entry-content .hero-section * {
    color: inherit;
}

/* Override any white backgrounds from GeneratePress */
.os-article-content > .hero-section,
.os-article-content > .container,
.os-article-content > div,
.entry-content > .hero-section,
.entry-content > .container,
.entry-content > div {
    background-color: transparent !important;
}

/* SVG icons in spec tables and labels */
.os-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px;
}
.os-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Icon colors by type */
.os-icon--brand svg { color: #8a8a9e; }
.os-icon--type svg { color: #60a5fa; }
.os-icon--switch svg { color: #eab308; }
.os-icon--trigger svg { color: #ef4444; }
.os-icon--connect svg { color: #4ade80; }
.os-icon--rgb svg { color: #a78bfa; }
.os-icon--weight svg { color: #8a8a9e; }
.os-icon--keyboard svg { color: #2579e8; }
.os-icon--star svg { color: #eab308; }
.os-icon--price svg { color: #4ade80; }
.os-icon--target svg { color: #ef4444; }
.os-icon--check svg { color: #4ade80; }
.os-icon--cross svg { color: #ef4444; }
.os-icon--trophy svg { color: #eab308; }
.os-icon--value svg { color: #4ade80; }
.os-icon--budget svg { color: #60a5fa; }
.os-icon--gaming svg { color: #a78bfa; }

/* Badge SVG icon alignment */
.badge-best .os-icon, .badge-value .os-icon, .badge-budget .os-icon {
    margin-right: 4px;
}

/* Pros/Cons with SVG instead of emoji ::before */
.pros-list li, .cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.pros-list li::before, .cons-list li::before {
    content: none;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .hero-section { padding: 2rem 1rem; }
    .pros-cons { grid-template-columns: 1fr; }
    .criteria-grid { grid-template-columns: 1fr; }
    .bottom-bar { padding: 0.6rem 1rem; }
    .bottom-bar-text { display: none; }
    .bottom-bar-icon { width: 36px; height: 36px; }
    .bottom-bar-cta { padding: 0.6rem 1.2rem; font-size: 0.8rem; }
    .product-card { padding: 1.2rem; }
    .author-content { flex-direction: column; align-items: center; text-align: center; }
    .comparison-table { font-size: 0.8rem; }
    .comparison-table th, .comparison-table td { padding: 8px 6px; }
}

/* ─── AGGRESSIVE dark background fix for ALL article content ─── */
.single .site-content,
.single .content-area,
.single .inside-article,
.single article,
.single .entry-content,
.single .entry-content *:not(img):not(svg):not(a):not(.product-cta):not(.badge-best):not(.streamer-pick):not(.budget-pick):not(.os-icon):not(code):not(.bottom-bar-cta) {
    background-color: transparent !important;
}
/* Parent theme GeneratePress overrides */
.single .inside-article {
    background: #0f0f1a !important;
}
.single article.post {
    background: #0f0f1a !important;
}
.single .site-main {
    background: #0f0f1a !important;
}
/* Catch-all for any remaining white */
.single .entry-content section,
.single .entry-content div:not(.product-cta):not(.os-icon) {
    background-color: transparent !important;
}

/* ─── Collapsible Table of Contents ─── */
.toc-collapsible {
    background: #16161e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0;
    margin: 1.5rem 0;
    overflow: hidden;
}
.toc-collapsible .toc-summary {
    cursor: pointer;
    padding: 1rem 1.5rem;
    font-family: Outfit, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8e8f0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background 0.2s;
}
.toc-collapsible .toc-summary:hover {
    background: rgba(255,255,255,0.03);
}
.toc-collapsible .toc-summary::-webkit-details-marker { display: none; }
.toc-collapsible .toc-summary::after {
    content: ▼;
    font-size: 0.7rem;
    color: #666;
    transition: transform 0.3s;
}
.toc-collapsible[open] .toc-summary::after {
    transform: rotate(180deg);
}
.toc-collapsible .toc-list {
    padding: 0 1.5rem 1.2rem;
    margin: 0;
    list-style: none;
    counter-reset: toc-counter;
}
.toc-collapsible .toc-list li {
    counter-increment: toc-counter;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.toc-collapsible .toc-list li:last-child { border-bottom: none; }
.toc-collapsible .toc-list li::before {
    content: counter(toc-counter) .;
    color: #2579e8;
    font-weight: 600;
    margin-right: 0.5rem;
    font-size: 0.85rem;
}
.toc-collapsible .toc-list a {
    color: #a0a0b8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}
.toc-collapsible .toc-list a:hover { color: #fff; }

/* Fix: Remove any border/outline from guide containers */
.entry-content .container,
.entry-content > div,
.os-article-content .container,
.os-article-content > div,
.entry-content .intro-image-wrapper,
.entry-content .content-section {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ─── Full Mobile Responsive Fix (Feb 28) ─── */
@media (max-width: 768px) {
    /* Container */
    .container, .content-article, .content-section {
        padding: 0 12px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Images responsive */
    .intro-image-wrapper, .product-image {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .intro-image, .product-image img, img.intro-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        border-radius: 8px !important;
    }
    
    /* Product cards */
    .product-card {
        padding: 16px !important;
        margin: 16px 0 !important;
        overflow: hidden !important;
    }
    .product-name {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }
    
    /* Specs tables */
    .product-specs-table, .specs-table {
        width: 100% !important;
        font-size: 0.8rem !important;
        display: block !important;
        overflow-x: auto !important;
    }
    .product-specs-table td, .specs-table td {
        padding: 8px 10px !important;
        word-break: break-word !important;
    }
    .product-specs-table td:first-child {
        white-space: nowrap !important;
        min-width: 100px !important;
    }
    
    /* Comparison table scroll */
    .comparison-table-wrapper, .comparison-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
    .comparison-table table {
        min-width: 600px !important;
    }
    
    /* Pros / Cons */
    .pros-cons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .pros-list, .cons-list {
        padding: 12px !important;
    }
    .pros-list h4, .cons-list h4 {
        font-size: 0.95rem !important;
    }
    
    /* TOC / Sommaire */
    .table-of-contents {
        padding: 16px !important;
        margin: 16px 0 !important;
    }
    .toc-list a {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
    
    /* Update info */
    .update-info {
        padding: 12px !important;
        margin: 12px 0 !important;
    }
    .modifications-list li {
        font-size: 0.8rem !important;
    }
    
    /* CTA buttons */
    .product-cta, a.product-cta {
        display: block !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
        margin: 12px 0 !important;
    }
    
    /* Section titles */
    .section-title, h2.section-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }
    h3.product-name, h3 {
        font-size: 1.1rem !important;
        word-wrap: break-word !important;
    }
    
    /* Price tag */
    .price-tag {
        font-size: 1rem !important;
    }
    
    /* Badges */
    .badge-best, .badge-value, .badge-budget, .streamer-pick {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }
    
    /* Author block */
    .author-block {
        padding: 16px !important;
    }
    .author-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .author-avatar img {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* FAQ */
    .faq-item {
        padding: 12px !important;
        margin: 8px 0 !important;
    }
    .faq-item h3 {
        font-size: 1rem !important;
    }
    
    /* Criteria grid */
    .criteria-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* SVG icons in tables */
    .product-specs-table svg, .comparison-table svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Prevent horizontal overflow */
    body, html {
        overflow-x: hidden !important;
    }
    .entry-content {
        overflow-x: hidden !important;
    }
    
    /* Rating */
    .product-rating {
        font-size: 0.95rem !important;
    }
}

/* ─── Small phones ─── */
@media (max-width: 420px) {
    .product-card { padding: 12px !important; }
    .section-title, h2.section-title { font-size: 1.15rem !important; }
    .product-name { font-size: 1rem !important; }
    .product-specs-table td { padding: 6px 8px !important; font-size: 0.75rem !important; }
    .comparison-table { font-size: 0.7rem !important; }
    .bottom-bar-cta { padding: 10px 16px !important; font-size: 0.8rem !important; }
}

/* ─── Fix double intro-image-wrapper + mobile layout (Feb 28 v2) ─── */
/* Force image wrappers to stack, not float */
.product-card .intro-image-wrapper {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
    clear: both !important;
}
.product-card .intro-image-wrapper .intro-image-wrapper {
    display: block !important;
    float: none !important;
    width: 100% !important;
}
.intro-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    object-fit: contain !important;
}

/* Product card must be single column */
.product-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* No float on anything inside product cards */
.product-card > * {
    float: none !important;
    max-width: 100% !important;
}

/* SVG icons inline with text */
.product-card p svg,
.price-tag svg,
.product-rating svg {
    vertical-align: middle !important;
    display: inline !important;
    margin-right: 4px !important;
}

/* Ensure all content is block-level in cards */
.product-card p,
.product-card h3,
.product-card table,
.product-card .pros-cons,
.product-card .product-cta {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Fix the wp-block-image or any WP wrapper that might float */
.wp-block-image, figure.wp-block-image {
    float: none !important;
    margin: 16px 0 !important;
    width: 100% !important;
}

/* ─── Bottom bar image fix (Feb 28 v3) ─── */
.bottom-bar img,
.bottom-bar .bottom-bar-icon,
.bottom-bar .intro-image,
.bottom-bar-left img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 6px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}
@media (max-width: 768px) {
    .bottom-bar img,
    .bottom-bar .bottom-bar-icon,
    .bottom-bar .intro-image,
    .bottom-bar-left img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
}

/* Bottom bar image fix v3 */
.bottom-bar img,
.bottom-bar .bottom-bar-icon,
.bottom-bar .intro-image,
.bottom-bar-left img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 6px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}
@media (max-width: 768px) {
    .bottom-bar img,
    .bottom-bar .bottom-bar-icon,
    .bottom-bar .intro-image,
    .bottom-bar-left img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
}

/* ─── Fix Idéal pour + CTA layout ─── */
.product-card > p:last-of-type,
.product-card > .product-cta {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.product-card > .product-cta {
    margin-top: 1rem !important;
    text-align: center !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-radius: 10px !important;
}

.product-card > .product-cta:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    transform: translateY(-2px) !important;
}

/* Pros-cons must not leak layout to siblings */
.pros-cons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}
.pros-cons + p,
.pros-cons ~ .product-cta {
    grid-column: unset !important;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr !important;
    }
    .product-card > .product-cta {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}
