/* Article Modern Design - Design professionnel et attractif */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(to right, #fa709a 0%, #fee140 100%);
    --dark-blue: #1a202c;
    --medium-blue: #2d3748;
    --light-blue: #4a5568;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --bg-light: #f7fafc;
    --bg-lighter: #edf2f7;
    --accent-purple: #805ad5;
    --accent-pink: #ed64a6;
}

/* Article Introduction améliorée */
.article-intro {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.article-intro::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: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(-30px, -30px) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(180deg); }
}

.article-intro .hook-text {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.article-intro .promise {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.25rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

/* Table des matières moderne */
.toc-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.toc-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
}

.toc-container h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.toc-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.toc-list li:hover::before {
    transform: translateX(5px);
}

.toc-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toc-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.toc-list a:hover {
    color: white;
    transform: translateX(10px);
}

.toc-list a:hover::before {
    left: 0;
}

/* Lien actif dans la table des matières */
.toc-list a.active {
    color: white;
    background: var(--primary-gradient);
    font-weight: 700;
}

.toc-list a.active::before {
    left: 0;
}

/* Sections d'article améliorées */
.article-section {
    margin: 4rem 0;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--bg-lighter);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Espacement des paragraphes dans les sections */
.article-section p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-section p:last-child {
    margin-bottom: 0;
}

.article-section:nth-child(1) { animation-delay: 0.1s; }
.article-section:nth-child(2) { animation-delay: 0.2s; }
.article-section:nth-child(3) { animation-delay: 0.3s; }
.article-section:nth-child(4) { animation-delay: 0.4s; }
.article-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-section h2 {
    color: var(--dark-blue);
    margin-bottom: 2rem;
    font-size: 2.25rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

.article-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.article-section:hover h2::after {
    width: 120px;
}

/* Highlight Box moderne */
.highlight-box {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-left: none;
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(253, 203, 110, 0.3);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: translateX(10px);
}

.highlight-box::before {
    content: '💡';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.2;
}

.highlight-box p {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
}

/* Expert Insight Box redesign */
.expert-insight {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.expert-insight::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 20px;
    z-index: -1;
}

.expert-insight h4 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.expert-insight .metric {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.expert-insight .metric:hover {
    transform: scale(1.05);
}

/* CTA Buttons redesign */
.cta-inline {
    text-align: center;
    margin: 3.5rem 0;
    position: relative;
}

.btn-cta-soft {
    background: var(--bg-lighter);
    color: var(--text-primary);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.btn-cta-soft::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-gradient);
    transition: width 0.6s ease, height 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn-cta-soft:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-cta-soft:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta-soft span {
    position: relative;
    z-index: 1;
}

.btn-cta-inline, .btn-cta-strong {
    background: var(--primary-gradient);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-cta-strong {
    background: var(--secondary-gradient);
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-cta-inline:hover, .btn-cta-strong:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* Case Study Box moderne */
.case-study-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 3.5rem;
    margin: 4rem 0;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.case-study-box::before {
    content: '📊';
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 10rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.case-study-box h3 {
    color: white;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.case-grid > div {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.case-grid > div:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.case-grid h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.case-grid p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.case-grid .results {
    font-weight: 800;
    color: #4ade80;
    font-size: 1.2rem;
}

/* FAQ Section moderne */
.faq-section {
    background: var(--bg-light);
    border: none;
    border-radius: 25px;
    padding: 3.5rem;
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 800;
}

.faq-section > div {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-section > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-section h3 {
    color: var(--accent-purple);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.faq-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Final CTA ultra moderne */
.final-cta {
    background: var(--secondary-gradient);
    color: white;
    text-align: center;
    padding: 5rem 3rem;
    border-radius: 30px;
    margin: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(245, 87, 108, 0.3);
}

.final-cta::before,
.final-cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.final-cta::before {
    top: -150px;
    left: -150px;
}

.final-cta::after {
    bottom: -150px;
    right: -150px;
}

.final-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.btn-primary-large {
    background: white;
    color: var(--accent-pink);
    padding: 1.5rem 4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary-large:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

/* Liens dans le contenu */
.article-section a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.article-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.article-section a:hover {
    color: var(--accent-pink);
}

.article-section a:hover::after {
    width: 100%;
}

/* Listes améliorées */
.article-section ol,
.article-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-section ol li,
.article-section ul li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-section ol li::marker {
    color: var(--accent-purple);
    font-weight: 700;
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .article-intro {
        padding: 2.5rem 2rem;
    }
    
    .article-intro .hook-text {
        font-size: 1.5rem;
    }
    
    .toc-container {
        padding: 1.5rem;
    }
    
    .article-section h2 {
        font-size: 1.75rem;
    }
    
    .case-study-box {
        padding: 2.5rem 2rem;
    }
    
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .final-cta {
        padding: 4rem 2rem;
    }
    
    .final-cta h3 {
        font-size: 2rem;
    }
    
    .btn-primary-large {
        padding: 1.25rem 3rem;
        font-size: 1.1rem;
    }
}

/* Animation scroll reveal */
.aos-init {
    opacity: 0;
    transform: translateY(30px);
}

.aos-animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Print styles */
@media print {
    .toc-container,
    .cta-inline,
    .final-cta {
        display: none;
    }
    
    .article-section {
        page-break-inside: avoid;
    }
}