/**
 * Styles pour la page de prédication
 * Conforme NG-420001 : Fichiers < 500 lignes
 */

/* Header */
.predication-header {
    position: relative;
    margin-bottom: 3rem;
    padding: 5px;
    overflow: auto;
}
.predication-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}
.predication-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}
.predication-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.predication-tags .tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.predication-tags .tag:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Image */
.predication-image {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
    max-width: 220px;
}
.predication-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.predication-image img:hover {
    transform: scale(1.02);
}

/* Layout */
.predication-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    align-items: start;
}
.predication-main-content {
    min-width: 0;
    background: white;
    padding: 2rem;
    border-radius: 8px;
}
.predication-single {
    margin-bottom: 3rem;
}

/* TOC */
.toc {
    position: sticky;
    top: 100px;
    background: #f8f9fa;
    padding: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.toc h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.toc li {
    margin: 0.75rem 0;
}
.toc a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
.toc a:hover {
    color: var(--primary-color);
    background: white;
    padding-left: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Content */
.predication-content {
    clear: none;
    overflow: auto;
}
.predication-content h2 {
    clear: none;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}
.predication-content h2 span[id] {
    position: relative;
    top: -120px;
    display: block;
    visibility: hidden;
}
.predication-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.4rem;
}
.predication-content blockquote {
    border-left: 3px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    border-radius: 4px;
}
.predication-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.predication-content ul,
.predication-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}
.predication-content strong {
    color: var(--text-color);
    font-weight: 600;
}
.predication-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 1.5rem auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .predication-wrapper {
        grid-template-columns: 1fr;
    }
    .toc {
        position: static;
        margin-bottom: 2rem;
        max-height: none;
    }
}
@media (max-width: 768px) {
    .predication-image {
        float: none;
        margin: 0 auto 1rem auto;
        max-width: 100%;
    }
}
