/* ===== Page Actualités — Chrijdid.ma ===== */

/* ---------- Banniere ---------- */
.news-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 460px;
    padding: 190px 0 80px;
    background-color: #161e2d;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: heroImageReveal 0.6s ease-out forwards;
}
.news-hero > .container {
    position: relative;
    z-index: 2;
}
.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 30, 45, 0.7);
    z-index: 1;
}
.news-hero-inner {
    max-width: 680px;
}
.news-hero-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
}
.news-hero-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ---------- Filtres de categories ---------- */
.news-filters-section {
    padding: 40px 0 0;
}
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.news-filter {
    display: inline-block;
    border: 1.5px solid #e4e4e4;
    background-color: #ffffff;
    color: #161e2d;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}
.news-filter:hover {
    border-color: var(--color-bordeaux);
    color: var(--color-bordeaux);
}
.news-filter.active {
    background-color: var(--color-bordeaux);
    border-color: var(--color-bordeaux);
    color: #ffffff;
}

/* ---------- Article vedette ---------- */
.news-featured-section {
    padding-top: 36px;
    padding-bottom: 36px;
}
.news-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(22, 30, 45, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.news-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(22, 30, 45, 0.14);
}
.news-featured-media {
    position: relative;
}
.news-featured-media img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block;
    background-color: var(--color-gray-light);
}
.news-featured-content {
    padding: 44px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-featured-title {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: #161e2d;
    margin: 14px 0 14px;
}
.news-featured-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 20px;
}

/* ---------- Badges et meta commun ---------- */
.news-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: var(--color-bordeaux);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #8a939b;
    font-weight: 600;
}
.news-meta .icon {
    margin-right: 5px;
    color: var(--color-turquoise);
}
.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-bordeaux);
    transition: gap 0.25s ease, color 0.25s ease;
}
.news-readmore .icon {
    font-size: 12px;
    transition: transform 0.25s ease;
}
.news-readmore:hover {
    color: var(--color-bordeaux-dark);
    gap: 12px;
}

/* ---------- Grille d'articles ---------- */
.news-grid-section {
    padding-top: 0;
}
/* Sans article a la une (filtre par categorie), les cartes suivent
   directement les filtres : on reprend le meme espacement */
.news-filters-section + .news-grid-section {
    padding-top: 36px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card {
    background-color: #ffffff;
    border: 1px solid #edeff2;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 20px 42px rgba(22, 30, 45, 0.1);
}
.news-card-media {
    position: relative;
    display: block;
}
.news-card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background-color: var(--color-gray-light);
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-media img {
    transform: scale(1.06);
}
.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}
.news-card-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
}
.news-card-title a {
    color: #161e2d;
    transition: color 0.25s ease;
}
.news-card:hover .news-card-title a {
    color: var(--color-bordeaux);
}
.news-card-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card .news-readmore {
    margin-top: auto;
}

.news-load-more {
    text-align: center;
    margin-top: 48px;
}

/* ---------- Newsletter ---------- */
.news-newsletter {
    padding-top: 20px;
}
.news-newsletter-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    background-color: var(--color-bordeaux);
    border-radius: 24px;
    padding: 54px 56px;
}
.news-newsletter-content .about-title {
    color: #ffffff;
}
.news-newsletter-content .about-text {
    color: rgba(255, 255, 255, 0.72);
}
.news-newsletter-form {
    position: relative;
    display: flex;
    gap: 10px;
}
.news-newsletter-form input {
    flex: 1;
    min-width: 0;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 15px 22px;
    color: #ffffff;
    font-size: 14px;
}
.news-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.news-newsletter-form input:focus {
    outline: none;
    border-color: var(--color-turquoise);
}
.news-newsletter-form .about-btn {
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 991px) {
    .news-hero {
        min-height: 380px;
        padding: 160px 0 60px;
    }
    .news-hero-title {
        font-size: 32px;
    }
    .news-featured {
        grid-template-columns: 1fr;
    }
    .news-featured-media img {
        min-height: 260px;
    }
    .news-featured-content {
        padding: 34px 30px;
    }
    .news-newsletter-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }
    .news-newsletter-form {
        flex-direction: column;
    }
    .news-newsletter-form .about-btn {
        justify-content: center;
    }
}
@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Fiche article ===== */
.article-hero {
    min-height: 380px;
    padding: 190px 0 60px;
}
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin-bottom: 22px;
    transition: color 0.2s ease;
}
.article-back:hover {
    color: #ffffff;
}
.article-hero-badge {
    display: inline-block;
    background-color: var(--color-turquoise);
    color: #161e2d;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.article-hero-title {
    font-size: 40px;
    line-height: 1.25;
    font-weight: 800;
    color: #ffffff;
    max-width: 820px;
    margin-bottom: 20px;
}
.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}
.article-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-body-section {
    padding-top: 70px;
    padding-bottom: 70px;
}
.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #4b5567;
}
.article-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #161e2d;
    margin: 36px 0 16px;
}
.article-content p {
    margin-bottom: 18px;
}
.article-content ul {
    margin: 0 0 18px;
    padding-left: 20px;
}
.article-content li {
    margin-bottom: 10px;
}
.article-content img {
    width: 100%;
    border-radius: 16px;
    margin: 28px 0;
}

.article-related-section {
    padding-top: 0;
}
.article-related-title {
    font-size: 26px;
    font-weight: 700;
    color: #161e2d;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 767px) {
    .article-hero {
        min-height: 320px;
        padding: 150px 0 50px;
    }
    .article-hero-title {
        font-size: 28px;
    }
}
