/* Blog Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    margin: 0;
    padding-top: 60px;
    font-size: 16px;
}

.blog-article {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2C5282;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 1rem;
}

.hero-image {
    margin: 2rem 0;
    text-align: center;
}

.article-hero {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.1);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2rem;
    text-align: left !important;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2C5282;
    margin: 3rem 0 1.5rem 0;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2.5rem 0 1rem 0;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem 0;
}

.content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.highlight-box {
    background: linear-gradient(135deg, #2C5282 0%, #3182ce 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.highlight-box ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F56565;
    font-weight: bold;
}

.warning-box {
    background: #fef2f2;
    border-left: 4px solid #F56565;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h3 {
    color: #dc2626;
    margin-top: 0;
}

.action-box {
    background: linear-gradient(135deg, #F56565 0%, #fc8181 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.action-box h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #F56565;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Calculateur Widget */
.calculator-widget {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.calculator-widget h3 {
    color: #2C5282;
    margin-top: 0;
    text-align: center;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator-form label {
    font-weight: 600;
    color: #374151;
}

.calculator-form input,
.calculator-form select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-calculate {
    background: #2C5282;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-calculate:hover {
    background: #2a4f7a;
}

.result-box {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    display: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-item h4 {
    font-size: 3rem;
    font-weight: 700;
    color: #F56565;
    margin: 0 0 0.5rem 0;
}

.stat-item p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Metrics Dashboard */
.metrics-dashboard {
    background: #1f2937;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.metrics-dashboard h3 {
    color: white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: #374151;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
}

.metric-card h4 {
    font-size: 0.9rem;
    color: #d1d5db;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.metric-trend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.metric-trend.positive {
    background: #10b981;
    color: white;
}

.metric-trend.negative {
    background: #F56565;
    color: white;
}

/* Tableaux Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.responsive-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
}

.responsive-table th {
    background: #2C5282;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.responsive-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.responsive-table tr:hover {
    background: #f8fafc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-container {
        padding: 1rem 15px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .highlight-box,
    .warning-box,
    .action-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .calculator-widget {
        padding: 1.5rem;
    }
    
    /* Tableaux Mobile */
    .responsive-table {
        min-width: auto;
        display: block;
        white-space: nowrap;
    }
    
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }
    
    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .responsive-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
    }
    
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #2C5282;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .article-container {
        max-width: 700px;
        padding: 1.5rem 20px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}