:root {
    --purple: #6B46C1;
    --purple-light: #F3E8FF;
    --purple-dark: #553C9A;
    --text-color: #2D3748;
    --text-color-light: #718096;
    --border-color: #E2E8F0;
    --font-size-xs: 0.9rem;
    --font-size-s: 1rem;
    --font-size-m: 1.2rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 3rem;
}

/* =====================================================
   Zone principale article
====================================================== */
main.article-detail {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
}

/* =====================================================
   Image principale (hero)
====================================================== */
.article-hero-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   Titres
====================================================== */
.article-title {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: #2B0068;
    margin: 0 0 1rem;
    letter-spacing: -0.5px;
}

.article-section h2.article-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #2B0068;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--purple);
    padding-left: 0.75rem;
}

/* =====================================================
   Paragraphes
====================================================== */
.article-text {
    font-size: 1.08rem;
    margin-bottom: 1.25rem;
    color: #2D3748;
}

/* =====================================================
   Listes
====================================================== */
.article-list {
    margin: 1rem 0 2rem 1.5rem;
    padding-left: 0;
}

.article-list-item {
    font-size: 1.08rem;
    color: #2D3748;
    margin-bottom: 0.6rem;
    position: relative;
    line-height: 1.6;
    list-style: none;
}

.article-list-item::before {
    content: "•";
    color: var(--purple);
    font-weight: bold;
    display: inline-block;
    width: 1rem;
    margin-left: -1rem;
}

/* =====================================================
   Citation / encadré
====================================================== */
.article-highlight {
    background: var(--purple-light);
    border-left: 4px solid var(--purple);
    padding: 1rem 1.25rem;
    font-style: italic;
    color: #333;
    margin: 2rem 0;
    border-radius: 6px;
    font-size: 1.05rem;
}

/* =====================================================
   Conseils expert
====================================================== */
.expert-advice {
    background: linear-gradient(135deg, #1b013c 0%, #2d0068 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.expert-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.expert-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.expert-content .cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: white;
    color: #1b013c;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.expert-content .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* =====================================================
   Articles liés
====================================================== */
.related-articles {
    margin-top: 3rem;
    padding: 60px 0;
    background: #fff;
}

.related-articles h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--purple-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 18px;
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.article-category {
    background: rgba(107, 70, 193, 0.1);
    color: var(--purple-dark);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-date {
    color: #666;
    font-size: 0.8rem;
}

.article-content h3 {
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-content h3 a {
    color: var(--purple-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--purple);
}

.article-content p {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--purple-dark);
    transform: translateX(3px);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(2px);
}

/* =====================================================
   Responsive mobile
====================================================== */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

    .article-hero-image {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 15px;
    }

    .related-articles {
        padding: 40px 0;
    }

    .related-articles h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .article-content {
        padding: 15px;
    }

    .article-content h3 a {
        font-size: 1rem;
    }

    main.article-detail {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .article-section h2.article-title {
        font-size: 1.3rem;
    }
}

/* Article Container */
.article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem;
    background: #fff;
    margin-top: 2rem;
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto 1.5rem;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.article-reading-time {
    background: var(--purple-light);
    color: var(--purple-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.article-category {
    background: var(--purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.article-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.article-source {
    color: var(--text-color-light, #718096);
    font-size: 0.98rem;
    margin-left: 0.5rem;
}

.article-date {
    color: var(--text-color-light);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.article-author {
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.article-author strong {
    color: var(--purple);
    font-weight: 600;
}

.article-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75em;
    vertical-align: middle;
    display: inline-block;
    background: #f8f9fa;
    border: 2px solid var(--purple-light);
}

/* Styles spécifiques pour les images SVG */
.article-author img[src*=".svg"] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.75em;
    vertical-align: middle;
    display: inline-block;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    min-width: 32px;
    min-height: 32px;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.article-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.article-section ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.article-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.article-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--purple);
    font-weight: bold;
}

.article-section strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Article Highlight */
.article-highlight {
    background: var(--purple-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-highlight p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Trends Grid */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.trend-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.trend-card:hover {
    transform: translateY(-5px);
}

.trend-icon {
    width: 50px;
    height: 50px;
    background: var(--purple-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--purple);
    font-size: 1.5rem;
}

.trend-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.trend-card p {
    color: var(--text-color-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Stats Box */
.stats-box {
    background: var(--purple-light);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 0rem;
}

.stats-box p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Risks Container */
.risks-container {
    display: grid;
    gap: 1.5rem;
}

.risk-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.risk-item:hover {
    transform: translateX(10px);
}

.risk-icon {
    width: 40px;
    height: 40px;
    background: var(--purple-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 1.2rem;
}

.risk-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.risk-content p {
    color: var(--text-color-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Opportunities Grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.opportunity-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
}

.opportunity-icon {
    width: 60px;
    height: 60px;
    background: var(--purple-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--purple);
    font-size: 1.8rem;
}

.opportunity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.opportunity-card p {
    color: var(--text-color-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Example Box */
.example-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--purple-light);
    border-radius: 15px;
    margin-top: 2rem;
}

.example-icon {
    color: var(--purple);
    font-size: 1.5rem;
}

.example-box p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Conclusion Section */
.conclusion {
    background: var(--purple-light);
}

.conclusion-box {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.conclusion-box p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trends-grid,
    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article {
        padding: 1rem;
    }

    .article-image {
        height: 150px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-intro {
        font-size: 1.1rem;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .article-section p,
    .article-section li {
        font-size: 1rem;
    }

    .trends-grid,
    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .risk-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .risk-item:hover {
        transform: translateY(-5px);
    }
}

.btn-return {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    color: var(--purple, #6c46c1);
    padding: 0.2rem 0.7rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.15s, color 0.15s;
    box-shadow: none;
    outline: none;
}

.btn-return:hover, .btn-return:focus {
    background: var(--purple-light, #2a094d);
    color: var(--purple, #2e0585);
}

.btn-return i {
    font-size: 1.1em;
    margin-right: 0.2em;
    display: inline-block;
}

.cta-section {
    display: flex;
    justify-content: center;
    margin: 3.5rem 0 2.5rem 0;
}

.cta-content {
    background: #2a094d;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 18px rgba(42,9,77,0.10);
    text-align: center;
}

.cta-content h2, .cta-content p {
    color: #fff;
}

.cta-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.08rem;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: #2a094d;
    padding: 0.85rem 2.2rem;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(42,9,77,0.10);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    border: none;
    outline: none;
}

.cta-btn:hover, .cta-btn:focus {
    background: #e5dbff;
    color: #2a094d;
    box-shadow: 0 4px 16px rgba(42,9,77,0.16);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: var(--text-color-light);
}

.breadcrumb a {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--purple-dark);
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-color);
    font-weight: 500;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--purple);
}

.table-of-contents h2 {
    font-size: 1.2rem;
    color: var(--purple-dark);
    margin-bottom: 1rem;
    margin-top: 0;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.table-of-contents a:hover {
    color: var(--purple);
}

.article-hero-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(42,9,77,0.10);
    padding: 2.2rem 1.5rem 1.7rem 1.5rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}
