
/* =====================================================
   PAGE ACTUALITÉS — HÔPITAL BEST AFRICA
===================================================== */

.news-page {
    background: #fff;
    min-height: 400px;
}

/* =====================================================
   INTRODUCTION
   Même design que services.php
===================================================== */
 

.news-intro {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 25px;
}

.news-label {
    display: block;
    margin-bottom: 8px;
    color: var(--bleu);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.news-intro h1 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
}

.news-intro p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
/* =====================================================
   CONTENU DES ACTUALITÉS
===================================================== */

.news-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 5px 0 55px;
}

/* En-tête de la rubrique */

.news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.news-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--bleu);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.news-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
}

.news-count {
    color: var(--muted);
    font-size: 12px;
}

/* =====================================================
   GRILLE
===================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

/* =====================================================
   CARTE ACTUALITÉ
===================================================== */

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(15, 31, 107, .09);
}

/* Image */

.news-image {
    position: relative;
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: var(--pale);
}

.news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* Catégorie */

.news-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 5px;
    background: #fff;
    color: var(--bleu);
    font-size: 10px;
    font-weight: 800;
}

/* Texte */

.news-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

/* Date */

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 11px;
}

.news-date i {
    color: var(--bleu);
    font-size: 11px;
}

/* Titre */

.news-details h3 {
    margin: 0 0 8px;
    color: var(--deep);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

/* Résumé */

.news-details p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Lien */

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: auto;
    margin-left: auto;
    color: var(--bleu);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.news-link:hover {
    color: var(--bleu-fonce);
}

.news-link i {
    font-size: 10px;
    transition: transform .2s ease;
}

.news-link:hover i {
    transform: translateX(4px);
}

/* =====================================================
   PAGINATION
===================================================== */

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 30px;
}

.news-pagination a,
.news-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.news-pagination a:hover,
.news-pagination .active {
    border-color: var(--bleu);
    background: var(--bleu);
    color: #fff;
}

/* =====================================================
   AUCUNE ACTUALITÉ
===================================================== */

.news-empty {
    padding: 45px 20px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    text-align: center;
    background: #fafbff;
}

.news-empty i {
    margin-bottom: 12px;
    color: var(--bleu);
    font-size: 30px;
}

.news-empty h3 {
    margin: 0 0 6px;
    color: var(--deep);
    font-size: 17px;
}

.news-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* =====================================================
   RESPONSIVE — TABLETTE
===================================================== */

@media (max-width: 1000px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
}

/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */

@media (max-width: 600px) {
    .news-intro {
        padding: 28px 0 22px;
    }

    .news-content {
        padding-bottom: 40px;
    }

    .news-heading {
        align-items: flex-start;
    }

    .news-heading h2 {
        font-size: 18px;
    }

    .news-count {
        font-size: 11px;
        text-align: right;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .news-image {
        height: 205px;
    }

    .news-details {
        padding: 13px;
    }
}

/* Petits écrans */

@media (max-width: 420px) {
    .news-intro {
        padding-top: 28px;
    }

    .news-heading {
        flex-direction: column;
        gap: 5px;
    }

    .news-count {
        text-align: left;
    }

    .news-image {
        height: 185px;
    }
}
