/* article-styles.css — Styles pour la page article (extrait de article.php inline) */

.article-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    padding: 40px 20px;
    width: 100%;
    text-align: center;
}

.article-hero h1 {
    font-size: 3rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.article-meta-section {
    background-color: #f8f8f8;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.article-breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-breadcrumb .separator {
    margin: 0 8px;
    color: #777;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.article-categorie {
    background-color: #000;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-date, .article-readtime {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
}

.article-date i, .article-readtime i {
    margin-right: 5px;
}

.article-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

.article-main {
    max-width: 800px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 15px;
}

.article-content h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #000;
}

.article-content p {
    margin-bottom: 20px;
}

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

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

.article-share {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.article-share-label {
    margin-right: 15px;
    font-weight: 600;
}

.article-share-icons {
    display: flex;
    gap: 10px;
}

.article-share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.article-share-icon:hover {
    background-color: #000;
    color: white;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.article-tag {
    background-color: #f5f5f5;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}

.article-tag:hover {
    background-color: #000;
    color: white;
}

.article-author-box {
    display: none;
}

.article-related {
    margin-bottom: 60px;
}

.article-related h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.article-related h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #000;
}

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

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.related-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.related-categorie {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #000;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.related-content {
    padding: 20px;
}

.related-title {
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.article-sidebar {
    position: relative;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #000;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.trending-item:hover {
    transform: translateY(-3px);
}

.trending-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-right: 15px;
}

.trending-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.category-item:hover {
    background-color: #000;
    color: white;
}

.category-name {
    font-weight: 600;
}

.category-count {
    background-color: white;
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Newsletter sidebar - shared with actualites */
.blog-sidebar-widget {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.blog-widget-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    font-weight: 700;
    color: #111;
}

.blog-widget-title:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #333;
}

.blog-newsletter {
    text-align: center;
}

.blog-newsletter p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-newsletter-input {
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.blog-newsletter-input:focus {
    outline: none;
    border-color: #bbb;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.blog-newsletter-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.blog-newsletter-button:hover {
    background-color: #555;
}

@media (max-width: 992px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        height: 350px;
    }
    .article-hero h1 {
        font-size: 2.2rem;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}
