/* Styles pour la page Article V2 */
/* Date: 18/07/2025 */

.article-page {
    min-height: 100vh;
    background: #ffffff; /* Fond blanc pur */
}

.article-page .main-content-section {
    padding: 4rem 0;
    background: #ffffff; /* Fond blanc pur */
}

.article-page .content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Colonne Principale */
.article-page .main-column {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.article-page .article-content-section {
    padding: 4rem 0;
    background: #ffffff;
}

.article-page .article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.article-page .article-main {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.article-page .article-featured-image {
    margin: 0 0 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-page .featured-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.article-page .article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-page .article-body h2,
.article-page .article-body h3,
.article-page .article-body h4 {
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-page .article-body p {
    margin-bottom: 1.5rem;
}

.article-page .article-body ul,
.article-page .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-page .article-body li {
    margin-bottom: 0.5rem;
}

.article-page .article-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.article-page .tags-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.article-page .tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-page .tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-page .article-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.article-page .action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.article-page .action-button:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

/* Barre Latérale */
.article-page .sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-page .sidebar-widget {
    background: #f8f9fa;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    border: none;
    margin-bottom: 1rem;
    padding: 2.25rem;
}

.article-page .widget-title {
    background: transparent;
    color: #333333;
    padding: 0 0 1rem 0;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: none;
}

/* Widget de recherche */
.article-page .widget_search {
    margin-bottom: 2rem;
}

.article-page .widget_search .input-group {
    display: flex;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    align-items: center;
}

.article-page .widget_search .input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.article-page .widget_search .field.form-control {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
    border-radius: 25px 0 0 25px;
}

.article-page .widget_search .input-group-append {
    display: flex;
    align-items: center;
}

.article-page .widget_search .btn-search {
    padding: 0.75rem;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    flex-shrink: 0;
}

.article-page .widget_search .btn-search:hover {
    background: #5a67d8;
}

.article-page .widget_search .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Widget Catégories */
.article-page .widget-categories {
    padding: 0;
}

.article-page .categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-page .category-item {
    border-bottom: 1px solid #e5e7eb;
}

.article-page .category-item:last-child {
    border-bottom: none;
}

.article-page .category-link {
    display: block;
    padding: 0.75rem 0;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.article-page .category-link:hover {
    color: #667eea;
}

.article-page .category-count {
    color: #adb5bd;
    font-size: 0.8rem;
}

/* Widget Articles Populaires */
.article-page .widget-popular-posts {
    padding: 0;
}

.article-page .popular-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.article-page .popular-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-page .popular-post-item:first-child {
    padding-top: 0;
}

.article-page .post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-page .post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-page .post-img-placeholder {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
}

.article-page .post-content {
    flex: 1;
    min-width: 0;
}

.article-page .post-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.article-page .post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-page .post-title a:hover {
    color: #6f42c1;
}

.article-page .post-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Widget Archives */
.article-page .widget-archives {
    padding: 0;
}

.article-page .archives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-page .archive-item {
    border-bottom: 1px solid #e5e7eb;
}

.article-page .archive-item:last-child {
    border-bottom: none;
}

.article-page .archive-link {
    display: block;
    padding: 0.75rem 0;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.article-page .archive-link:hover {
    color: #667eea;
}

/* Articles Connexes */
.article-page .related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-page .related-article {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-page .related-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-page .related-article-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.article-page .related-article-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-page .related-article-title a:hover {
    color: #6f42c1;
}

.article-page .related-article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.article-page .related-category {
    color: #667eea;
    font-weight: 500;
}

/* Statistiques */
.article-page .stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-page .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.article-page .stat-item:last-child {
    border-bottom: none;
}

.article-page .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
}

.article-page .stat-value {
    font-weight: 600;
    color: #1f2937;
}

/* Section Articles Connexes */
.article-page .related-articles-section {
    padding: 4rem 0;
    background: #f8f9fa;
    margin-top: 4rem;
}

.article-page .related-articles-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-page .related-articles-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3rem;
}

.article-page .related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-page .related-article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.article-page .related-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.article-page .related-article-card .card-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-page .related-article-card .card-img-placeholder {
    color: white;
    font-size: 2.5rem;
    opacity: 0.8;
}

.article-page .related-article-card .card-content {
    padding: 1.5rem;
}

.article-page .related-article-card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-page .related-article-card .card-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-page .related-article-card .card-title a:hover {
    color: #6f42c1;
}

.article-page .related-article-card .card-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-page .related-article-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.article-page .related-article-card .meta-category i,
.article-page .related-article-card .meta-date i {
    margin-right: 0.25rem;
    color: #adb5bd;
}

.article-page .related-article-card .meta-category a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-page .content-layout,
    .article-page .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-page .sidebar-column {
        order: -1;
    }
}

@media (max-width: 768px) {
    .article-page .main-content-section,
    .article-page .article-content-section {
        padding: 2rem 0;
    }
    
    .article-page .article-body {
        padding: 1.5rem;
    }
    
    .article-page .article-actions {
        flex-direction: column;
    }
    
    .article-page .action-button {
        justify-content: center;
    }
    
    .article-page .related-articles-grid {
        grid-template-columns: 1fr;
    }
} 