/* Styles pour la page article */
:root {
    --bleu-nuit: #1a237e;
    --rouge-nuit: #b71c1c;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --gris-fonce: #424242;
    --bleu-clair: #3f51b5;
    --rouge-clair: #e53935;
    --bleu-gradient: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --rouge-gradient: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--gris-clair);
    padding: 15px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--bleu-nuit);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: var(--rouge-nuit);
}

.breadcrumb i {
    font-size: 0.75rem;
    color: #999;
}

.breadcrumb span {
    color: #666;
}

/* Main article */
.article-main {
    padding: 60px 0 80px;
    background: var(--gris-clair);
    min-height: 100vh;
}

.article-detail {
    background: var(--blanc);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.article-header h1 {
    font-size: 2.8rem;
    color: var(--bleu-nuit);
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: var(--rouge-nuit);
}

/* Featured Image */
.article-featured-image {
    margin: 40px -60px;
    border-radius: 0;
    overflow: hidden;
    max-height: 500px;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gris-fonce);
    margin: 40px 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content h2 {
    font-size: 2rem;
    color: var(--bleu-nuit);
    margin: 40px 0 20px;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--bleu-nuit);
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.3rem;
    color: var(--bleu-nuit);
    margin: 25px 0 12px;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
}

.article-content a {
    color: var(--rouge-nuit);
    text-decoration: underline;
    transition: color 0.3s;
}

.article-content a:hover {
    color: var(--bleu-nuit);
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--rouge-nuit);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.article-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.article-content table th {
    background: var(--bleu-nuit);
    color: white;
    font-weight: 600;
}

.article-content table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Article Gallery */
.article-gallery {
    margin: 50px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 15px;
}

.article-gallery h3 {
    font-size: 1.8rem;
    color: var(--bleu-nuit);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--rouge-nuit);
}

/* Article Footer */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--rouge-gradient);
    color: var(--blanc);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.4);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share span {
    font-weight: 600;
    color: #666;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Articles similaires */
.related-articles {
    margin-top: 60px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.related-articles h2 {
    font-size: 2.2rem;
    color: var(--bleu-nuit);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    font-size: 1.2rem;
    color: var(--bleu-nuit);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.related-date {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .article-detail {
        padding: 40px;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }
    
    .article-featured-image {
        margin: 30px -40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .article-detail {
        padding: 30px 20px;
        border-radius: 10px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-featured-image {
        margin: 20px -20px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-back {
        justify-content: center;
    }
    
    .article-share {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .article-gallery {
        padding: 20px 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
