/**
 * Charte typographique Blog - Voyant Medium
 * Style pour les articles du blog
 */

/* ═══════════════════════════════════════════════════════════════ */
/* BASE & TEXTE                                                    */
/* ═══════════════════════════════════════════════════════════════ */

.article-content {
    line-height: 1.8;
    color: #1f2937;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 1.5em;
    text-align: justify;
    hyphens: auto;
}

/* ═══════════════════════════════════════════════════════════════ */
/* TITRES                                                           */
/* ═══════════════════════════════════════════════════════════════ */

.article-content h1 {
    font-size: 2.5em;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.6em;
    margin-top: 1.5em;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.article-content h1:first-child {
    margin-top: 0;
}

.article-content h2 {
    font-size: 1.875em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.8em;
    margin-top: 2.5em;
    line-height: 1.3;
    letter-spacing: -0.01em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #c084fc;
}

.article-content h2:first-of-type {
    margin-top: 1.5em;
}

.article-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.8em;
    margin-top: 1.8em;
    line-height: 1.3;
}

.article-content h4 {
    font-size: 1.2em;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.6em;
    margin-top: 1.4em;
}

/* ═══════════════════════════════════════════════════════════════ */
/* LISTES                                                           */
/* ═══════════════════════════════════════════════════════════════ */

.article-content ul,
.article-content ol {
    margin-bottom: 1.5em;
    margin-left: 2em;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 0.8em;
    line-height: 1.7;
    color: #374151;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ul ul {
    margin-top: 0.8em;
    margin-bottom: 0;
}

.article-content ul ul li {
    list-style-type: circle;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content li p {
    margin-bottom: 0.5em;
    text-align: left;
}

/* ═══════════════════════════════════════════════════════════════ */
/* FORMATAGE TEXTE                                                  */
/* ═══════════════════════════════════════════════════════════════ */

.article-content strong,
.article-content b {
    font-weight: 700;
    color: #111827;
}

.article-content em,
.article-content i {
    font-style: italic;
    color: #4b5563;
}

.article-content code {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    color: #d97706;
}

.article-content pre {
    background-color: #1f2937;
    border-left: 4px solid #6366f1;
    border-radius: 6px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

.article-content pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    color: #f3f4f6;
}

/* ═══════════════════════════════════════════════════════════════ */
/* LIENS                                                            */
/* ═══════════════════════════════════════════════════════════════ */

.article-content a {
    color: #6366f1;
    text-decoration: underline;
    text-decoration-color: #a5b4fc;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.article-content a:hover {
    color: #4f46e5;
    text-decoration-color: #6366f1;
    background-color: #f0f4ff;
    border-radius: 2px;
    padding: 0 2px;
}

.article-content a:visited {
    color: #8b5cf6;
}

/* ═══════════════════════════════════════════════════════════════ */
/* BLOCS SPÉCIAUX                                                   */
/* ═══════════════════════════════════════════════════════════════ */

.article-content blockquote {
    border-left: 4px solid #c084fc;
    background-color: #faf5ff;
    padding: 1.5em;
    margin-bottom: 1.5em;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #6b21a8;
}

.article-content blockquote p {
    margin-bottom: 0.5em;
    text-align: left;
}

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

/* Bloc de note/info */
.article-content .note,
.article-content .info,
.article-content .highlight {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1.2em;
    margin-bottom: 1.5em;
    border-radius: 4px;
}

.article-content .note {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
}

.article-content .highlight {
    background-color: #fef3c7;
    border-left-color: #f59e0b;
}

/* ═══════════════════════════════════════════════════════════════ */
/* IMAGES                                                           */
/* ═══════════════════════════════════════════════════════════════ */

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-content figure {
    margin-bottom: 1.5em;
    text-align: center;
}

.article-content figcaption {
    font-size: 0.9em;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.8em;
}

/* ═══════════════════════════════════════════════════════════════ */
/* TABLEAU                                                          */
/* ═══════════════════════════════════════════════════════════════ */

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.article-content table thead {
    background-color: #f3e8ff;
    color: #5b21b6;
    font-weight: 600;
}

.article-content table th {
    padding: 1em;
    text-align: left;
    border-bottom: 2px solid #e9d5ff;
}

.article-content table td {
    padding: 0.9em 1em;
    border-bottom: 1px solid #f3e8ff;
}

.article-content table tbody tr:hover {
    background-color: #faf5ff;
    transition: background-color 0.2s ease;
}

.article-content table tbody tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════ */
/* ESPACEMENT & SÉPARATEURS                                        */
/* ═══════════════════════════════════════════════════════════════ */

.article-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2.5em 0;
    opacity: 0.5;
}

.article-content > * + * {
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                       */
/* ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .article-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-content h1 {
        font-size: 2em;
        margin-bottom: 0.8em;
        margin-top: 1.5em;
    }

    .article-content h2 {
        font-size: 1.5em;
        margin-top: 2em;
        margin-bottom: 0.8em;
    }

    .article-content h3 {
        font-size: 1.25em;
        margin-top: 1.5em;
    }

    .article-content ul,
    .article-content ol {
        margin-left: 1.5em;
    }

    .article-content blockquote {
        padding: 1em;
        margin-left: -1em;
        margin-right: -1em;
    }

    .article-content pre {
        padding: 1em;
        font-size: 0.85em;
    }

    .article-content table {
        font-size: 0.9em;
    }

    .article-content table th,
    .article-content table td {
        padding: 0.75em 0.5em;
    }
}

@media (max-width: 480px) {
    .article-content {
        font-size: 14px;
    }

    .article-content h1 {
        font-size: 1.75em;
    }

    .article-content h2 {
        font-size: 1.25em;
    }

    .article-content p {
        text-align: left;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* IMPRESSION                                                       */
/* ═══════════════════════════════════════════════════════════════ */

@media print {
    .article-content {
        color: #000;
    }

    .article-content a {
        color: #000;
        text-decoration: underline;
    }

    .article-content a::after {
        content: " (" attr(href) ")";
    }

    .article-content blockquote {
        border-left: 4px solid #000;
        background: transparent;
    }
}
