/* ==========================================
   ARTICLE STYLES — À AJOUTER À LA FIN DE COMMON.CSS
   ========================================== */

/* ── Hero Article ─────────────────────────── */
.article-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    margin-top: 70px;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(180, 65, 4, .08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 9, 19, .05) 0%, transparent 50%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ── Breadcrumb ───────────────────────────── */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    justify-content: center;
}

.breadcrumb-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-nav a:hover {
    color: var(--color-primary);
}

/* ── Titre H1 ─────────────────────────────── */
.article-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.25;
    display: inline-block;
    padding-bottom: .15em;
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--text-dark), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Meta (date, auteur…) ─────────────────── */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ── Corps de l'article ───────────────────── */
.article-content {
    padding: 80px 0;
    background: white;
}

.article-body {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.article-body h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin: 3rem 0 1.5rem 0;
    line-height: 1.3;
    position: relative;
    padding-bottom: 0.5rem;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

.article-body h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    position: relative;
}

.article-body ul li::marker {
    color: var(--color-primary);
    font-size: 1.2em;
}

.article-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ── Images ───────────────────────────────── */
.article-image {
    text-align: center;
    margin: 3rem 0;
}

.article-image img {
    width: 100%;
    max-width: 700px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.article-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.article-image figcaption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* ── Highlight Box (conseil / astuce) ─────── */
.highlight-box {
    background: linear-gradient(135deg, rgba(201, 104, 54, 0.05), rgba(201, 104, 54, 0.1));
    border-left: 4px solid var(--color-primary);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box strong {
    color: var(--color-primary);
}

/* ── Info Box (information neutre) ───────── */
.info-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid #0ea5e9;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.info-box strong {
    color: #0369a1;
}

/* ── CTA Section ──────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--bg-light), #f1f5f9);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    margin: 3rem 0;
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow);
}

.cta-section h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ── Tableau comparatif ───────────────────── */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.comparison-table th {
    text-align: left;
    padding: 1.2rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.comparison-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tbody tr:hover {
    background-color: rgba(201, 104, 54, 0.05);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* ── Lightbox ─────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ── Table des matières ───────────────────── */
.table-of-contents {
    background: var(--bg-light);
    border-left: 4px solid var(--color-primary);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0 3rem 0;
}

.table-of-contents h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.table-of-contents li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.table-of-contents a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.table-of-contents a:hover {
    color: var(--color-primary);
}

/* ── FAQ Accordion ────────────────────────── */
.faq-article-section {
    margin: 4rem 0 2rem 0;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.faq-article-section > h2 {
    text-align: center;
    margin-bottom: 2rem !important;
    color: var(--color-primary);
    font-size: 2rem;
}

/* Neutralise le trait de soulignement ::after du h2 global */
.faq-article-section > h2::after {
    display: none !important;
}

.faq-article-item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.faq-article-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-article-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(201, 104, 54, 0.12);
}

/* Question — utilise un <h3> pour le SEO */
.faq-article-question {
    background: white;
    padding: 1.4rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

.faq-article-question:hover {
    background: rgba(201, 104, 54, 0.04);
    color: var(--color-primary);
}

.faq-article-item.active .faq-article-question {
    color: var(--color-primary);
    background: rgba(201, 104, 54, 0.04);
}

/* Icône ▶ animée */
.faq-article-question::before {
    content: '▶';
    color: var(--color-primary);
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-top: 1px;
}

.faq-article-item.active .faq-article-question::before {
    transform: rotate(90deg);
}

/* Désactive le trait ::after hérité du h3 global */
.faq-article-question::after {
    display: none !important;
}

/* Réponse — collapse / expand */
.faq-article-answer {
    overflow: hidden;
    max-height: 0;
    padding: 0 1.5rem;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: white;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    border-top: 0px solid transparent;
    transition: max-height 0.35s ease, padding 0.35s ease, border-top 0.35s ease;
}

.faq-article-item.active .faq-article-answer {
    max-height: 600px;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ── Liens dans le corps de l'article ─────── */
.article-body a:not(.btn):not(.btn-primary):not(.btn-secondary) {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.article-body a:not(.btn):not(.btn-primary):not(.btn-secondary):hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
    .article-hero {
        padding: 60px 0 40px;
    }

    .article-content {
        padding: 60px 0;
    }

    .article-body {
        padding: 0 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .comparison-table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem;
    }

    .faq-article-section {
        padding: 2rem 1.25rem;
    }

    .faq-article-question {
        font-size: 0.95rem;
        padding: 1.2rem 1.25rem;
    }

    .cta-section {
        padding: 2rem 1.25rem;
    }
}