/**
 * Styles pour le contenu des articles de blog
 * Cohérent avec le design Tailwind du site Emotions Hypnose
 */

.article-content {
    line-height: 1.75;
    color: #374151; /* text-gray-700 */
}

/* Titres */
.article-content h1 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-content h2 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 600; /* font-semibold */
    color: #2d5a27; /* primary-600 */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    border-bottom: 2px solid #86efac; /* primary-300 */
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    color: #374151; /* text-gray-700 */
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content h4 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #4b5563; /* text-gray-600 */
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-content h5 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #6b7280; /* text-gray-500 */
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-content h6 {
    font-size: 1rem; /* text-base */
    font-weight: 600; /* font-semibold */
    color: #6b7280; /* text-gray-500 */
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Paragraphes */
.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Liens */
.article-content a {
    color: #2d5a27; /* primary-600 */
    text-decoration: underline;
    text-decoration-color: #86efac; /* primary-300 */
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #1e3a1a; /* primary-700 */
    text-decoration-color: #2d5a27; /* primary-600 */
}

/* Listes */
.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style-type: none;
}

.article-content ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.article-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669; /* accent-600 */
    font-weight: 600;
}

.article-content ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.article-content ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.article-content li p {
    margin-bottom: 0.5rem;
}

/* Listes imbriquées */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Citations */
.article-content blockquote {
    border-left: 4px solid #2d5a27; /* primary-600 */
    background-color: #f0fdf4; /* primary-50 */
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}

.article-content blockquote p {
    margin-bottom: 0.75rem;
    font-size: 1.125rem; /* text-lg */
    color: #374151; /* text-gray-700 */
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content blockquote em {
    font-style: normal;
    font-weight: 500;
    color: #6b7280; /* text-gray-500 */
    font-size: 0.875rem; /* text-sm */
}

/* Code */
.article-content code {
    background-color: #f3f4f6; /* bg-gray-100 */
    color: #dc2626; /* text-red-600 */
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.article-content pre {
    background-color: #1f2937; /* bg-gray-800 */
    color: #f9fafb; /* text-gray-50 */
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* Tableaux */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-content th,
.article-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
}

.article-content th {
    background-color: #2d5a27; /* primary-600 */
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content tr:nth-child(even) {
    background-color: #f9fafb; /* bg-gray-50 */
}

.article-content tr:hover {
    background-color: #f0fdf4; /* primary-50 */
}

/* Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-content figure {
    margin: 2rem 0;
    text-align: center;
}

.article-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280; /* text-gray-500 */
    font-style: italic;
}

/* Séparateurs */
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #2d5a27, transparent);
    margin: 3rem 0;
}

/* Mise en évidence */
.article-content strong {
    font-weight: 600;
    color: #111827; /* text-gray-900 */
}

.article-content em {
    font-style: italic;
    color: #374151; /* text-gray-700 */
}

.article-content mark {
    background-color: #fef3c7; /* bg-yellow-100 */
    color: #92400e; /* text-yellow-800 */
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Éléments spéciaux */
.article-content .cta-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.article-content .cta-box h3 {
    color: #0c4a6e;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-content .cta-box p {
    color: #0f172a;
    margin-bottom: 1rem;
}

.article-content .cta-box strong {
    color: #0c4a6e;
}

.article-content .cta-box em {
    color: #64748b;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .article-content h1 {
        font-size: 1.875rem; /* text-3xl */
    }
    
    .article-content h2 {
        font-size: 1.5rem; /* text-2xl */
    }
    
    .article-content h3 {
        font-size: 1.25rem; /* text-xl */
    }
    
    .article-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .article-content .cta-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .article-content table {
        font-size: 0.875rem;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.5rem 0.75rem;
    }
}

/* Animations */
.article-content h2,
.article-content h3 {
    scroll-margin-top: 2rem;
}

.article-content a,
.article-content .cta-box {
    transition: all 0.2s ease-in-out;
}

/* Print styles */
@media print {
    .article-content {
        color: #000;
    }
    
    .article-content a {
        color: #000;
        text-decoration: underline;
    }
    
    .article-content .cta-box {
        border: 1px solid #000;
        background: #fff;
    }
}