/* Styles pour le contenu des articles - SIPN V2 */

.article-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* Titres */
.article-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: #003B7A;
    margin-top: 2em;
    margin-bottom: 0.75em;
    border-bottom: 3px solid #F47920;
    padding-bottom: 0.3em;
}

.article-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #F47920;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.article-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25em;
    font-weight: 600;
    color: #003B7A;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Paragraphes */
.article-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.article-content p.lead {
    font-size: 1.25em;
    font-weight: 600;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2em;
    padding-left: 1em;
    border-left: 4px solid #F47920;
}

/* Liens */
.article-content a {
    color: #F47920;
    text-decoration: none;
    border-bottom: 2px solid #F47920;
    transition: all 0.3s;
}

.article-content a:hover {
    color: #D66A1A;
    border-bottom-color: #D66A1A;
}

/* Citations */
.article-content blockquote {
    border-left: 5px solid #F47920;
    background: linear-gradient(to right, #FFF5EE 0%, white 100%);
    padding: 1.5em 2em;
    margin: 2em 0;
    font-style: italic;
    color: #555;
    font-size: 1.1em;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-content figure {
    margin: 2em 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 0.75em;
}

/* Code */
.article-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 1.5em;
    overflow-x: auto;
    margin: 2em 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e91e63;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Tableaux */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table thead {
    background: linear-gradient(135deg, #003B7A 0%, #0056b3 100%);
    color: white;
}

.article-content table th {
    padding: 1em;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content table td {
    padding: 1em;
    border-bottom: 1px solid #e5e7eb;
}

.article-content table tbody tr:hover {
    background: #f9fafb;
}

.article-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Listes */
.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.75em;
    line-height: 1.6;
}

.article-content ul li {
    list-style-type: none;
    position: relative;
}

.article-content ul li:before {
    content: "▸";
    color: #F47920;
    font-weight: bold;
    position: absolute;
    left: -1.5em;
}

/* Encadrés personnalisés */
.article-content .callout {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 1.5em 2em;
    margin: 2em 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-content .callout-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.article-content .callout-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.article-content .callout-danger {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.article-content .callout p:last-child {
    margin-bottom: 0;
}

/* Signature */
.article-content .signature {
    text-align: right;
    font-style: italic;
    color: #666;
    margin-top: 3em;
    padding-top: 1em;
    border-top: 2px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 1.75em;
    }
    
    .article-content h3 {
        font-size: 1.35em;
    }
    
    .article-content p.lead {
        font-size: 1.1em;
    }
    
    .article-content table {
        font-size: 0.9em;
    }
    
    .article-content table th,
    .article-content table td {
        padding: 0.75em 0.5em;
    }
}
