/* ========================================
   ARTICLE SINGLE PAGE STYLES
   ======================================== */

/* Article Single Container */
.article-single {
    background: white;
}

/* Article Header */
.article-header {
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
    padding: 120px 0 40px;
    margin-top: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

.breadcrumb a {
    color: #660033;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #85e0e0;
}

.breadcrumb span {
    color: #ccc;
}

/* Article Title */
.article-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

/* Article Meta Header */
.article-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.article-meta-header span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #666;
}

.article-meta-header i {
    color: #660033;
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Social Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.article-share span {
    font-weight: 600;
    color: #666;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.email { background: #660033; }
.share-btn.print { background: #6c757d; }

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-left: 4px solid #660033;
    padding: 25px 30px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.table-of-contents h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.table-of-contents h3 i {
    color: #660033;
}

#toc-list {
    list-style: none;
    padding-left: 0;
}

#toc-list li {
    margin-bottom: 10px;
}

#toc-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

#toc-list a:hover {
    color: #660033;
    padding-left: 10px;
}

#toc-list li.active a {
    color: #660033;
    font-weight: 600;
}

/* Article Body */
.article-body {
    padding: 40px 0;
    background: white;
}

.article-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: white;
    z-index: -1;
}

.article-intro {
    margin-bottom: 40px;
}

.article-intro .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    font-weight: 400;
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
    scroll-margin-top: 100px;
}

.article-body h3 {
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #444;
    font-weight: 600;
    scroll-margin-top: 100px;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.article-body strong {
    color: #333;
    font-weight: 600;
}

/* Custom Lists */
.custom-list {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.custom-list li {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.custom-list i {
    color: #00cc66;
    font-size: 1.2rem;
    margin-top: 4px;
}

.custom-ordered-list {
    counter-reset: custom-counter;
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.custom-ordered-list li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 45px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.custom-ordered-list li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #660033, #85e0e0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Highlight Boxes */
.highlight-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    margin: 35px 0;
    border-radius: 12px;
    border-left: 5px solid;
}

.highlight-box.info {
    background: #e7f3ff;
    border-left-color: #0066cc;
}

.highlight-box.warning {
    background: #fff3cd;
    border-left-color: #ff9500;
}

.highlight-box.success {
    background: #d4edda;
    border-left-color: #00cc66;
}

.highlight-icon {
    font-size: 2rem;
}

.highlight-box.info .highlight-icon { color: #0066cc; }
.highlight-box.warning .highlight-icon { color: #ff9500; }
.highlight-box.success .highlight-icon { color: #00cc66; }

.highlight-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.highlight-content p {
    font-size: 1rem;
    margin-bottom: 0;
    color: #555;
}

/* Quote */
.article-quote {
    margin: 40px 0;
    padding: 30px 40px;
    background: #f8f9fa;
    border-left: 5px solid #660033;
    border-radius: 8px;
    font-style: italic;
}

.article-quote p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.article-quote cite {
    display: block;
    font-style: normal;
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-item {
    background: linear-gradient(135deg, #660033, #85e0e0);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 20px 25px;
    margin: 0;
    font-size: 1.15rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    color: #660033;
    font-size: 1.3rem;
}

.faq-answer {
    padding: 20px 25px;
    background: white;
}

.faq-answer p {
    margin-bottom: 0;
}

/* CTA Box */
.article-cta-box {
    background: linear-gradient(135deg, #660033 0%, #85e0e0 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 50px 0;
}

.article-cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.article-cta-box p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    opacity: 0.95;
    color: white;
}

.btn-cta-article {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #660033;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Article Footer */
.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-tags i {
    color: #660033;
}

.article-tags span {
    font-weight: 600;
    color: #666;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #660033;
    color: white;
}

.article-share-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-share-footer span {
    font-weight: 600;
    color: #666;
}

.share-btn-footer {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn-footer:hover {
    transform: translateY(-3px);
}

.share-btn-footer.facebook { background: #1877f2; }
.share-btn-footer.twitter { background: #1da1f2; }
.share-btn-footer.linkedin { background: #0a66c2; }

/* Related Articles */
.related-articles {
    background: #f8f9fa;
    padding: 60px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.related-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.related-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h3 a:hover {
    color: #660033;
}

.related-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Article Newsletter */
.article-newsletter {
    padding: 60px 0;
    background: white;
}

.newsletter-box {
    background: linear-gradient(135deg, #660033 0%, #85e0e0 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.newsletter-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.newsletter-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-box p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 30px;
    color: white;
}

.newsletter-form-article {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form-article input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
}

.newsletter-form-article button {
    background: white;
    color: #660033;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.newsletter-form-article button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #660033, #85e0e0);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-meta-header {
        font-size: 0.85rem;
    }

    .article-share {
        flex-wrap: wrap;
    }

    .article-body h2 {
        font-size: 1.6rem;
    }

    .article-body h3 {
        font-size: 1.3rem;
    }

    .article-body p,
    .custom-list li {
        font-size: 1rem;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form-article {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-box {
        padding: 35px 25px;
    }
}

/* ========================================
   AMÉLIORATIONS VISUELLES SUPPLÉMENTAIRES
   ======================================== */

/* Container Narrow */
.container-narrow {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Typographie améliorée */
.article-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 24px;
    line-height: 1.9;
}

.article-body strong {
    font-weight: 600;
    color: #660033;
}

/* Liens dans contenu */
.article-body a:not(.btn-cta-article):not(.tag):not(.article-read-more) {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 204, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.article-body a:not(.btn-cta-article):not(.tag):not(.article-read-more):hover {
    color: #85e0e0;
    text-decoration-color: #85e0e0;
}

/* Espacement sections */
.article-body h2 {
    margin-top: 60px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    position: relative;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #660033, #85e0e0);
}

.article-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #660033;
}

/* Images dans contenu */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin: 30px 0;
}

/* Code blocks (si présents) */
.article-body pre {
    background: #f8f9fa;
    border-left: 4px solid #660033;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-body code {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #660033;
}

.article-body pre code {
    background: transparent;
    padding: 0;
    color: #333;
}

/* Amélioration highlight boxes */
.highlight-box {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Stats grid amélioré */
.stats-grid {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* FAQ amélioré */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

/* Quote améliorée */
.article-quote {
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.article-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 80px;
    color: rgba(102, 0, 51, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Animations entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-intro,
.highlight-box,
.stats-grid,
.article-quote {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll smooth pour ancres */
html {
    scroll-behavior: smooth;
}

/* Selection de texte */
::selection {
    background: #85e0e0;
    color: white;
}

::-moz-selection {
    background: #85e0e0;
    color: white;
}

/* Amélioration boutons partage */
.share-btn,
.share-btn-footer {
    position: relative;
    overflow: hidden;
}

.share-btn::before,
.share-btn-footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.share-btn:hover::before,
.share-btn-footer:hover::before {
    width: 300px;
    height: 300px;
}

/* Amélioration newsletter box */
.newsletter-box {
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

/* Responsive amélioré */
@media (max-width: 992px) {
    .container-narrow {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .container-narrow {
        padding: 0 20px;
    }

    .article-body h2 {
        margin-top: 40px;
        font-size: 1.75rem;
    }

    .article-body h3 {
        margin-top: 30px;
        font-size: 1.4rem;
    }
}
