/* Optistream Premium Guides — scoped to Guides d'Achat */
body.single-post{--og-bg:#0c0c11;--og-surface:#121219;--og-surface-2:#0d0d13;--og-line:rgba(255,255,255,.09);--og-line-soft:rgba(255,255,255,.055);--og-text:#f5f6f8;--og-muted:#9297a7;--og-accent:#2583ff;--og-success:#48d597;--og-danger:#ff5b67;--og-radius:12px}
body.single-post article{color:#c8cbd4;font-size:1rem;line-height:1.78}
body.single-post article *{box-sizing:border-box}
body.single-post article a{color:#72adff;text-underline-offset:3px}
body.single-post article strong{color:var(--og-text)}
body.single-post article .container{width:100%;max-width:800px;margin-inline:auto;padding:0}

/* Intro éditoriale */
body.single-post article .hero-section{position:relative;margin:0 0 24px;padding:24px 26px;background:var(--og-surface);border:1px solid var(--og-line);border-radius:var(--og-radius);text-align:left;overflow:hidden}
body.single-post article .hero-section:before{content:"";position:absolute;top:-1px;left:26px;width:54px;height:2px;background:var(--og-accent)}
body.single-post article .main-title{margin:0 0 14px!important;color:var(--og-text)!important;font-family:'Outfit',sans-serif!important;font-size:clamp(1.35rem,3vw,1.7rem)!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.025em!important}
body.single-post article .hero-section .section-title{margin:18px 0 8px!important;padding:0!important;border:0!important;font-size:1.02rem!important}
body.single-post article .hero-section p{margin:0 0 12px;color:#bec2cd}

/* Dates et sommaire */
body.single-post article .update-info{margin:18px 0;padding:16px 18px;background:var(--og-surface-2);border-left:2px solid var(--og-accent);border-radius:0 8px 8px 0;color:var(--og-muted)}
body.single-post article .update-date,
body.single-post article .modifications-title{font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.04em}
body.single-post article .modifications-list{margin:10px 0 0;padding-left:18px}
body.single-post article .modifications-list li{margin:5px 0;font-size:.82rem}
body.single-post article .toc-collapsible{margin:20px 0;background:var(--og-surface);border:1px solid var(--og-line);border-radius:9px;overflow:hidden}
body.single-post article .toc-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;cursor:pointer;color:#d7dae2;font-weight:650;list-style:none}
body.single-post article .toc-summary::-webkit-details-marker{display:none}
body.single-post article .toc-summary:after{content:"+";font-family:'JetBrains Mono',monospace;color:var(--og-accent);font-size:1rem}
body.single-post article .toc-collapsible[open] .toc-summary:after{content:"−"}
body.single-post article .toc-list{margin:0;padding:0 18px 16px 36px}
body.single-post article .toc-list li{margin:7px 0;color:var(--og-muted)}
body.single-post article .toc-list a{font-size:.88rem;text-decoration:none}

/* Titres et sections */
body.single-post article .product-ranking-section{margin:24px 0}
body.single-post article .section-title{display:flex;align-items:center;gap:8px;margin:36px 0 16px!important;padding-top:22px!important;border-top:1px solid var(--og-line-soft)!important;color:var(--og-text)!important;font-family:'Outfit',sans-serif!important;font-size:1.35rem!important;font-weight:700!important;line-height:1.3!important}
body.single-post article .content-section,
body.single-post article .content-article{margin:26px 0;padding:0;background:transparent;border:0;border-radius:0}
body.single-post article .content-section>p,
body.single-post article .content-article>p{max-width:72ch}

/* Cartes produits */
body.single-post article .product-card{position:relative;display:block;width:100%;margin:0 0 18px;padding:22px;background:var(--og-surface);border:1px solid var(--og-line);border-radius:var(--og-radius);overflow:hidden;transition:border-color .18s,transform .18s}
body.single-post article .product-card:hover{border-color:rgba(37,131,255,.30);transform:translateY(-1px)}
body.single-post article .product-name{margin:4px 0 12px!important;color:var(--og-text)!important;font-family:'Outfit',sans-serif!important;font-size:1.16rem!important;font-weight:680!important;line-height:1.4!important}
body.single-post article :is(.badge-best,.badge-value,.badge-budget,.streamer-pick){display:inline-flex;align-items:center;gap:5px;margin:0 0 9px;padding:5px 8px;border:1px solid var(--og-line);border-radius:5px;background:rgba(255,255,255,.025);font-family:'JetBrains Mono',monospace;font-size:.64rem;font-weight:650;letter-spacing:.055em;text-transform:uppercase}
body.single-post article .badge-best{color:#efc94f;border-color:rgba(239,201,79,.28)}
body.single-post article .badge-value{color:var(--og-success);border-color:rgba(72,213,151,.25)}
body.single-post article .badge-budget{color:#72adff;border-color:rgba(114,173,255,.25)}
body.single-post article .streamer-pick{color:#a98aff;border-color:rgba(169,138,255,.25)}
body.single-post article .product-card>p{margin:13px 0;line-height:1.68}
body.single-post article .product-rating,
body.single-post article .price-tag{display:inline-flex;align-items:center;gap:5px;margin:5px 20px 8px 0;font-family:'JetBrains Mono',monospace;font-size:.8rem;font-weight:650}
body.single-post article .product-rating{color:#efc94f}
body.single-post article .price-tag{color:var(--og-success)}

/* Images — taille maîtrisée, jamais étirées */
body.single-post article :is(.intro-image-wrapper,.product-image){display:flex!important;align-items:center!important;justify-content:center!important;width:min(100%,560px)!important;max-width:560px!important;margin:16px auto!important;padding:14px!important;background:var(--og-surface-2)!important;border:1px solid var(--og-line-soft)!important;border-radius:9px!important;overflow:hidden!important}
body.single-post article :is(.intro-image,.product-image img){display:block!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:320px!important;margin:auto!important;object-fit:contain!important;border-radius:6px!important}
body.single-post article figure.wp-block-image{max-width:680px;margin:20px auto}
body.single-post article figure.wp-block-image img{width:auto;max-width:100%;max-height:420px;object-fit:contain}

/* Specs et tableaux */
body.single-post article :is(.product-specs-table,.specs-table){width:100%;margin:16px 0;border-collapse:separate;border-spacing:0;background:var(--og-surface-2);border:1px solid var(--og-line);border-radius:9px;overflow:hidden}
body.single-post article :is(.product-specs-table,.specs-table) :is(th,td){padding:10px 12px!important;border:0!important;border-bottom:1px solid var(--og-line-soft)!important;background:transparent!important;color:#c4c8d2;font-size:.79rem;line-height:1.45;text-align:left}
body.single-post article :is(.product-specs-table,.specs-table) td:first-child{width:38%;color:#9398a8;font-family:'JetBrains Mono',monospace;font-size:.69rem;font-weight:600;letter-spacing:.02em}
body.single-post article :is(.product-specs-table,.specs-table) tr:last-child td{border-bottom:0!important}
body.single-post article .comparison-table{display:table;width:100%;margin:20px 0;border-collapse:separate;border-spacing:0;background:var(--og-surface);border:1px solid var(--og-line);border-radius:9px;overflow:hidden}
body.single-post article .comparison-table th{padding:11px 10px!important;background:#171720!important;border:0!important;border-bottom:1px solid rgba(37,131,255,.55)!important;color:#e9ebf0!important;font-family:'JetBrains Mono',monospace;font-size:.65rem;text-transform:uppercase;letter-spacing:.04em;text-align:left}
body.single-post article .comparison-table td{padding:10px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--og-line-soft)!important;color:#bdc1cc;font-size:.76rem;vertical-align:middle}
body.single-post article .comparison-table tr:last-child td{border-bottom:0!important}
body.single-post article .comparison-table-wrapper{width:100%;margin:20px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:9px}

/* Avantages / inconvénients */
body.single-post article .pros-cons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
body.single-post article :is(.pros-list,.cons-list){padding:14px 16px;border-radius:7px;background:var(--og-surface-2);border:1px solid var(--og-line-soft)}
body.single-post article .pros-list{border-left:2px solid var(--og-success)}
body.single-post article .cons-list{border-left:2px solid var(--og-danger)}
body.single-post article :is(.pros-list,.cons-list) h4{margin:0 0 8px!important;font-size:.8rem!important}
body.single-post article .pros-list h4{color:var(--og-success)!important}
body.single-post article .cons-list h4{color:var(--og-danger)!important}
body.single-post article :is(.pros-list,.cons-list) ul{margin:0;padding:0;list-style:none}
body.single-post article :is(.pros-list,.cons-list) li{display:flex;gap:7px;margin:6px 0;color:#b8bdc8;font-size:.78rem;line-height:1.5}

/* CTA unique et sobre */
body.single-post article .product-cta{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:100%;min-height:42px;margin:10px 0 2px!important;padding:10px 15px!important;background:var(--og-accent)!important;border:1px solid var(--og-accent)!important;border-radius:6px!important;box-shadow:0 6px 18px rgba(37,131,255,.16)!important;color:#fff!important;font-family:'Outfit',sans-serif;font-size:.82rem;font-weight:650;text-align:center;text-decoration:none!important;transition:background .16s,transform .16s}
body.single-post article .product-cta:hover{background:#1f72df!important;transform:translateY(-1px)}

/* FAQ, listes et grilles */
body.single-post article .faq-item{margin:0;padding:15px 0;background:transparent;border:0;border-bottom:1px solid var(--og-line-soft);border-radius:0}
body.single-post article .faq-item:first-child{border-top:1px solid var(--og-line-soft)}
body.single-post article .faq-item h3{margin:0 0 6px!important;font-size:.96rem!important;color:#e8eaf0!important}
body.single-post article .faq-item p{margin:0;color:#aeb3c0;font-size:.86rem}
body.single-post article :is(.criteria-grid,.budget-tiers,.streaming-requirements){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.single-post article :is(.tips-list,.steps-list,.criteria-list,.brands-list){padding-left:22px}
body.single-post article :is(.tips-list,.steps-list,.criteria-list,.brands-list) li{margin:9px 0}

/* Icônes */
body.single-post article .os-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;flex:0 0 17px!important;margin:0 5px 0 0!important;vertical-align:middle!important;overflow:hidden!important}
body.single-post article .os-icon svg{display:block!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;fill:currentColor!important}
body.single-post article .os-icon--brand{color:#8f94a3}
body.single-post article :is(.os-icon--type,.os-icon--keyboard,.os-icon--budget){color:#72adff}
body.single-post article :is(.os-icon--connect,.os-icon--price,.os-icon--check){color:var(--og-success)}
body.single-post article :is(.os-icon--trigger,.os-icon--cross){color:var(--og-danger)}
body.single-post article :is(.os-icon--star,.os-icon--switch,.os-icon--trophy){color:#efc94f}
body.single-post article :is(.os-icon--rgb,.os-icon--gaming){color:#a98aff}

/* Éléments dupliqués déjà fournis par le template */
body.single-post article .author-block,
body.single-post article .articles-similaires{display:none!important}

/* Barre d'affiliation desktop */
body.single-post article .bottom-bar{position:fixed!important;z-index:9999!important;left:50%!important;right:auto!important;bottom:14px!important;top:auto!important;transform:translateX(-50%)!important;display:block!important;width:min(760px,calc(100% - 32px))!important;max-width:760px!important;margin:0!important;padding:9px 11px!important;background:rgba(13,13,19,.96)!important;border:1px solid var(--og-line)!important;border-radius:9px!important;box-shadow:0 14px 42px rgba(0,0,0,.45)!important;backdrop-filter:blur(12px)}
body.single-post article .bottom-bar-content{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.single-post article .bottom-bar-left{display:flex;align-items:center;gap:9px;min-width:0}
body.single-post article .bottom-bar-icon{width:34px!important;height:34px!important;max-width:34px!important;object-fit:contain;border-radius:5px}
body.single-post article .bottom-bar-text{min-width:0}
body.single-post article .bottom-bar-text :is(h4,p){margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.single-post article .bottom-bar-text h4{font-size:.75rem!important;color:#e5e7ec!important}
body.single-post article .bottom-bar-text p{font-family:'JetBrains Mono',monospace;font-size:.58rem;color:var(--og-muted)}
body.single-post article .bottom-bar-cta{flex:0 0 auto;padding:8px 11px;background:var(--og-accent);border-radius:5px;color:#fff!important;font-size:.72rem;font-weight:650;text-decoration:none!important}

@media(max-width:768px){
 body.single-post article{font-size:.96rem;line-height:1.7}
 body.single-post article .hero-section{padding:19px 17px;margin-bottom:18px}
 body.single-post article .hero-section:before{left:17px}
 body.single-post article .main-title{font-size:1.3rem!important}
 body.single-post article .product-card{padding:15px;margin-bottom:14px;border-radius:9px}
 body.single-post article .product-name{font-size:1.02rem!important}
 body.single-post article :is(.intro-image-wrapper,.product-image){max-width:100%;padding:10px;margin:12px auto}
 body.single-post article :is(.intro-image,.product-image img){max-height:240px!important}
 body.single-post article .pros-cons{grid-template-columns:1fr}
 body.single-post article :is(.criteria-grid,.budget-tiers,.streaming-requirements){grid-template-columns:1fr}
 body.single-post article :is(.product-specs-table,.specs-table){display:table!important;table-layout:fixed}
 body.single-post article :is(.product-specs-table,.specs-table) td{padding:8px!important;word-break:break-word}
 body.single-post article :is(.product-specs-table,.specs-table) td:first-child{width:36%;white-space:normal}
 body.single-post article .comparison-table{display:block;min-width:680px;overflow-x:visible}
 body.single-post article .product-cta{display:flex!important;width:100%!important}
 body.single-post article .bottom-bar{display:none!important}
 body.single-post:has(.product-card) .os-sidebar{display:none!important}
}

/* OPTISTREAM GUIDE IMAGE SYSTEM START */
body.single-post article .os-featured-img{width:100%;max-width:760px;margin:0 auto 2rem;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#0d0d13}
body.single-post article .os-featured-img img{display:block;width:100%!important;height:100%!important;max-height:430px!important;object-fit:cover!important}
body.single-post article .os-article-content :is(figure.wp-block-image,.wp-caption){width:auto!important;max-width:720px!important;margin:1.5rem auto!important}
body.single-post article .os-article-content :is(figure.wp-block-image,.wp-caption) img{display:block;width:auto!important;max-width:100%!important;height:auto!important;max-height:460px!important;margin:auto!important;object-fit:contain!important;border-radius:9px}
body.single-post article .os-article-content>p>img{display:block;width:auto!important;max-width:min(100%,720px)!important;height:auto!important;max-height:460px!important;margin:1.5rem auto!important;object-fit:contain!important;border-radius:9px}
@media(max-width:768px){
 body.single-post article .os-featured-img{max-width:100%;margin-bottom:1.35rem;aspect-ratio:16/9;border-radius:9px}
 body.single-post article .os-featured-img img{max-height:280px!important}
 body.single-post article .os-article-content :is(figure.wp-block-image,.wp-caption) img,
 body.single-post article .os-article-content>p>img{max-height:320px!important;border-radius:7px}
}
/* OPTISTREAM GUIDE IMAGE SYSTEM END */
