/* Styles pour la page de détail des actualités */

/* Contenu principal de l'article */
.blog-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.blog-content p {
    margin-bottom: 1.2rem;
}

.blog-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.blog-content em {
    font-style: italic;
    color: #7f8c8d;
}

.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.75rem; }
.blog-content h3 { font-size: 1.5rem; }
.blog-content h4 { font-size: 1.25rem; }
.blog-content h5 { font-size: 1.1rem; }
.blog-content h6 { font-size: 1rem; }

.blog-content ul, .blog-content ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #7f8c8d;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.blog-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.blog-content a:hover {
    border-bottom-color: #3498db;
}

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

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-content th,
.blog-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.blog-content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.blog-content tr:hover {
    background-color: #f8f9fa;
}

.blog-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

.blog-content pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* Section des images de l'actualité */
.actualite-images {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.actualite-images .image-item {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.actualite-images .image-item:hover {
    transform: translateY(-5px);
}

.actualite-images .image-item h6 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 500;
}

.actualite-images .image-item img {
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.actualite-images .image-item:hover img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

/* Responsive design */
@media (max-width: 768px) {
    .actualite-images .row {
        flex-direction: column;
    }
    
    .actualite-images .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .actualite-images .image-item img {
        max-height: 150px;
    }
}

@media (max-width: 576px) {
    .actualite-images {
        padding: 1rem;
    }
    
    .actualite-images .image-item {
        padding: 0.5rem;
    }
    
    .actualite-images .image-item img {
        max-height: 120px;
    }
}
