/**
 * Page Actualités — même langage visuel que la section #ht-actualites de l'accueil
 */
body.ht-spa-active #ht-page-content .ht-actualites-page {
    overflow-x: hidden;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .ht-page-hero {
    min-height: 44vh;
    background-position: center;
    background-size: cover;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .ht-page-hero::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35));
}

body.ht-spa-active header.fixed ~ main#ht-page-content > .ht-actualites-page > .ht-page-hero:first-child {
    padding-top: 100px;
}

/* Corps — fond crème comme l'accueil */
body.ht-spa-active #ht-page-content .ht-actualites-page__section {
    padding: 80px 0 100px !important;
    background-color: #f5f3f0 !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page__section > .ht-wrap {
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Titre section (style .main_title accueil) */
body.ht-spa-active #ht-page-content .ht-actualites-page .main_title {
    position: relative;
    text-align: center;
    margin: 0 auto 48px;
    padding: 0 20px;
    max-width: 920px;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .main_title h2,
body.ht-spa-active #ht-page-content .ht-actualites-page .main_title h2.title {
    display: inline-block;
    position: relative;
    font-family: 'Nunito', sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    color: #606060 !important;
    text-transform: none !important;
    margin: 0 0 14px !important;
    padding: 0 0 16px !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .main_title.text-center h2::after,
body.ht-spa-active #ht-page-content .ht-actualites-page .main_title.text-center h2.title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 52px;
    height: 3px;
    background: #deb666;
    border-radius: 2px;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .main_title .main_description {
    font-family: 'Lato', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: #858a99 !important;
    max-width: 36rem;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Grille articles */
body.ht-spa-active #ht-page-content .ht-actualites-page .ht-actualites-listing__grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    align-items: stretch;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .ht-actualites-listing__col {
    display: flex;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item {
    flex: 1;
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item figure {
    flex: 1 1 auto;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item figure > a {
    display: block;
    height: 340px;
    width: 100%;
    overflow: hidden;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item figure img.ht-actualites-img,
body.ht-spa-active #ht-page-content .ht-actualites-page .news-item figure img.img-responsive {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (hover: hover) {
    body.ht-spa-active #ht-page-content .ht-actualites-page .news-item figure img {
        transition: transform 0.45s ease;
    }

    body.ht-spa-active #ht-page-content .ht-actualites-page .news-item:hover figure img {
        transform: scale(1.04);
    }
}

/* Overlay léger sur image (comme gradient-overlay accueil) */
body.ht-spa-active #ht-page-content .ht-actualites-page .news-item figure::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
    opacity: 0.85;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item .news-item-details {
    padding: 22px 20px 26px;
    background: #fff;
    flex: 0 0 auto;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-meta {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b69854;
    line-height: 1.4;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-meta a {
    color: #b69854 !important;
    text-decoration: none;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-meta a:hover {
    color: #8a7342 !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-title {
    font-family: 'Nunito', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 10px !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-title a {
    color: #606060 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-title a:hover {
    color: #b69854 !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-excerpt {
    margin: 0 0 14px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #858a99 !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-more {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #deb666 !important;
    text-decoration: none !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-more:hover {
    color: #b69854 !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page .news-item-more i {
    font-size: 10px;
    margin-left: 4px;
}

/* Chargement / vide */
body.ht-spa-active #ht-page-content .ht-actualites-page__loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #858a99;
    font-size: 15px;
}

body.ht-spa-active #ht-page-content .ht-actualites-page__loading p {
    margin: 0 !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page__empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 4px;
    margin: 0 15px;
    width: 100%;
}

body.ht-spa-active #ht-page-content .ht-actualites-page__empty h3 {
    font-family: 'Nunito', sans-serif !important;
    font-size: 22px !important;
    color: #606060 !important;
    margin: 0 0 0.5rem !important;
}

body.ht-spa-active #ht-page-content .ht-actualites-page__empty p {
    margin: 0 !important;
    color: #858a99 !important;
}

/* Annule marges globales SPA dans les cartes */
body.ht-spa-active #ht-page-content .ht-actualites-page .news-item p {
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    body.ht-spa-active #ht-page-content .ht-actualites-page .news-item figure > a {
        height: 280px;
    }
}

@media (max-width: 767px) {
    body.ht-spa-active #ht-page-content .ht-actualites-page__section {
        padding: 56px 0 72px !important;
    }

    body.ht-spa-active #ht-page-content .ht-actualites-page .main_title h2,
    body.ht-spa-active #ht-page-content .ht-actualites-page .main_title h2.title {
        font-size: 26px !important;
    }

    body.ht-spa-active #ht-page-content .ht-actualites-page .news-item figure > a {
        height: 260px;
    }
}
