/**
 * JurojiNet - Guide d'Achat CSS
 * UNIQUEMENT les styles spécifiques aux guides
 * 
 * IMPORTANT: Ce fichier doit être chargé APRÈS single.css
 * Les styles communs (header, TOC, share, author, nav, related, comments) 
 * sont déjà dans single.css et s'appliquent automatiquement
 */

/* ==========================================================================
   BLOQUER GOOGLE ADS DANS CERTAINES ZONES
   ========================================================================== */
.product-card .google-auto-placed,
.product-card .adsbygoogle,
.product-card__pros-cons .google-auto-placed,
.product-card__pros-cons .adsbygoogle,
.product-card__specs .google-auto-placed,
.product-card__specs .adsbygoogle,
.guide-verdict .google-auto-placed,
.guide-verdict .adsbygoogle,
.guide-table .google-auto-placed,
.guide-table .adsbygoogle,
.faq-item .google-auto-placed,
.faq-item .adsbygoogle,
.criteria-card .google-auto-placed,
.criteria-card .adsbygoogle {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   SOMMAIRE MOBILE - Override charte indigo
   ========================================================================== */
.single-guide .article-toc-mobile {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.single-guide .article-toc-mobile__toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border: none;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.single-guide .article-toc-mobile__toggle:hover {
    background: #f3f4f6;
}

.single-guide .article-toc-mobile__toggle svg {
    width: 18px;
    height: 18px;
    color: #6366f1;
    transition: transform 0.2s;
}

.single-guide .article-toc-mobile__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.single-guide .article-toc-mobile__list {
    list-style: none;
    margin: 0;
    padding: 8px 16px 12px;
    border-top: 1px solid #e5e7eb;
}

.single-guide .article-toc-mobile__list li {
    margin: 0;
    padding: 0;
}

.single-guide .article-toc-mobile__list a {
    display: block;
    padding: 6px 0 6px 12px;
    color: #4b5563;
    font-size: 0.85rem;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.single-guide .article-toc-mobile__list a:hover,
.single-guide .article-toc-mobile__list a.active {
    color: #6366f1;
    border-left-color: #6366f1;
}

/* ==========================================================================
   INTRO GUIDE
   ========================================================================== */
.guide-intro {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.guide-intro p {
    margin-bottom: 1rem;
}

.guide-intro p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   TABLEAU COMPARATIF
   ========================================================================== */
.guide-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.guide-table th,
.guide-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.guide-table th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.guide-table tbody tr {
    transition: background 0.2s;
}

.guide-table tbody tr:hover {
    background: #f9fafb;
}

.guide-table__product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-table__thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #f3f4f6;
    object-fit: cover;
    flex-shrink: 0;
}

.guide-table__name {
    font-weight: 600;
    color: #111827;
}

.guide-table__badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
}

.guide-table__badge--top {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.guide-table__badge--value {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.guide-table__badge--budget {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.guide-table__badge--pro {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.guide-table__badge--custom {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

.guide-table__price {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #111827;
}

/* Colonne "Pour qui" — classe utilitaire pour masquer en responsive */
.guide-table__pourqui {
    /* visible par défaut */
}

/* Colonne Action / CTA */
.guide-table__action {
    white-space: nowrap;
    text-align: center;
}

.guide-table__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #6366f1;
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.guide-table__btn:hover {
    background: #4f46e5;
    color: #fff;
}

.guide-table__btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
}

.product-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    z-index: 1;
}

.product-card__badge--top {
    background: #16a34a;
}

.product-card__badge--value {
    background: #6366f1;
}

.product-card__badge--budget {
    background: #d97706;
}

.product-card__badge--pro {
    background: #7c3aed;
}

.product-card__badge--custom {
    background: #4b5563;
}

.product-card__header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.product-card__image {
    width: 120px;
    height: 120px;
    background: #f3f4f6;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card__info {
    flex: 1;
    min-width: 0;
}

.product-card__category {
    font-size: 0.75rem;
    color: #6366f1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.product-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111827;
}

.product-card__subtitle {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.product-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #111827;
}

.product-card__price-old {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-card__body {
    margin-bottom: 20px;
}

.product-card__specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-card__spec {
    font-size: 0.85rem;
}

.product-card__spec-label {
    color: #9ca3af;
}

.product-card__spec-value {
    font-weight: 600;
    color: #111827;
}

.product-card__pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.product-card__list-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.product-card__list-title--pros {
    color: #16a34a;
}

.product-card__list-title--cons {
    color: #dc2626;
}

.product-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-card__list li {
    font-size: 0.875rem;
    color: #4b5563;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.product-card__list--pros li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
}

.product-card__list--cons li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
}

.product-card__footer {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.product-card__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.product-card__btn--primary {
    background: #6366f1;
    color: #fff;
}

.product-card__btn--primary:hover {
    background: #4f46e5;
}

.product-card__btn--secondary {
    background: #f9fafb;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.product-card__btn--secondary:hover {
    background: #f3f4f6;
}

.product-card__btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   CRITÈRES
   ========================================================================== */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 1rem;
}

.criteria-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.criteria-card__icon {
    width: 40px;
    height: 40px;
    background: #6366f1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.criteria-card__icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.criteria-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.criteria-card__text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1rem;
}

.faq-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item__question {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: background 0.2s;
    gap: 12px;
}

.faq-item__question:hover {
    background: #f3f4f6;
}

.faq-item__icon {
    width: 20px;
    height: 20px;
    color: #6366f1;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    padding: 0 20px 16px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.7;
    display: none;
}

.faq-item__answer p {
    margin: 0 0 12px;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

.faq-item.active .faq-item__answer {
    display: block;
}

/* ==========================================================================
   VERDICT
   ========================================================================== */
.guide-verdict {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 2rem 0;
}

.guide-verdict h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.guide-verdict__text {
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.7;
}

.guide-verdict__picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.guide-verdict__pick {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    border-radius: 8px;
}

.guide-verdict__pick-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
    display: block;
}

.guide-verdict__pick-value {
    font-weight: 700;
    color: #6366f1;
    font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE - 768px
   ========================================================================== */
@media (max-width: 768px) {
    .product-card__header {
        flex-direction: column;
    }

    .product-card__image {
        width: 100%;
        height: 160px;
    }

    .product-card__pros-cons {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card__footer {
        flex-direction: column;
    }

    /* Tableau comparatif : masquer "Pour qui", garder le CTA */
    .guide-table__pourqui {
        display: none;
    }

    .guide-table th,
    .guide-table td {
        padding: 10px 12px;
    }
    
    .guide-table__thumb {
        width: 40px;
        height: 40px;
    }
    
    .guide-table__btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-verdict__picks {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RESPONSIVE - 480px
   ========================================================================== */
@media (max-width: 480px) {
    .product-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .product-card__badge {
        top: 12px;
        right: 12px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .product-card__image {
        height: 140px;
    }
    
    .product-card__title {
        font-size: 1.1rem;
    }
    
    .product-card__price {
        font-size: 1.25rem;
    }
    
    .product-card__specs {
        padding: 12px;
        gap: 6px;
        grid-template-columns: 1fr 1fr;
    }
    
    .product-card__spec {
        font-size: 0.8rem;
    }
    
    .product-card__list li {
        font-size: 0.8rem;
    }
    
    .product-card__footer {
        padding-top: 16px;
        gap: 10px;
    }
    
    .product-card__btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .criteria-card {
        padding: 16px;
    }
    
    .criteria-card__icon {
        width: 36px;
        height: 36px;
    }
    
    .criteria-card__icon svg {
        width: 18px;
        height: 18px;
    }
    
    .criteria-card__title {
        font-size: 0.9rem;
    }
    
    .criteria-card__text {
        font-size: 0.8rem;
    }
    
    .faq-item__question {
        padding: 14px 16px;
        font-size: 0.875rem;
    }
    
    .faq-item__answer {
        padding: 0 16px 14px;
        font-size: 0.85rem;
    }
    
    .guide-verdict {
        padding: 16px;
    }
    
    .guide-verdict h2 {
        font-size: 1rem;
    }
    
    .guide-verdict__text {
        font-size: 0.875rem;
    }
    
    .guide-verdict__pick {
        padding: 10px 12px;
    }
    
    .guide-verdict__pick-value {
        font-size: 0.875rem;
    }

    /* Tableau : layout carte empilée sur très petit écran */
    .guide-table-wrapper {
        overflow-x: visible;
    }
    
    .guide-table,
    .guide-table thead,
    .guide-table tbody,
    .guide-table th,
    .guide-table td,
    .guide-table tr {
        display: block;
    }
    
    .guide-table thead {
        display: none;
    }
    
    .guide-table tbody tr {
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .guide-table tbody tr:hover {
        background: #f3f4f6;
    }
    
    .guide-table td {
        padding: 0;
        border: none;
    }
    
    .guide-table__product {
        gap: 10px;
    }
    
    .guide-table__thumb {
        width: 44px;
        height: 44px;
    }
    
    .guide-table__name {
        font-size: 0.95rem;
    }
    
    .guide-table__price {
        font-size: 1.1rem;
    }
    
    .guide-table__pourqui {
        display: none;
    }
    
    .guide-table__action {
        text-align: left;
    }
    
    .guide-table__btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
}