/* Page Actualités — Nouroul Houda Core */
.nh-news {
    overflow: clip;
    background: #fff;
    color: var(--nh-ink);
}

.nh-news *,
.nh-news *::before,
.nh-news *::after {
    box-sizing: border-box;
}

.nh-news :where(h1, h2, h3, p) {
    margin-top: 0;
}

.nh-news :where(h1, h2, h3) {
    color: var(--nh-ink) !important;
}

.nh-news :where(p, li) {
    color: var(--nh-body) !important;
}

.nh-news a {
    text-decoration: none;
}

.nh-news-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #00723a !important;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.nh-news-kicker::before {
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

/* Hero */
.nh-news-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(88px, 10vw, 150px) 0 clamp(92px, 11vw, 165px);
    background: #003823;
}

.nh-news-hero::after {
    position: absolute;
    right: -220px;
    bottom: -320px;
    z-index: -1;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(200, 242, 122, .2);
    border-radius: 50%;
    content: "";
}

.nh-news-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.nh-news-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
    gap: clamp(46px, 8vw, 110px);
    align-items: end;
}

.nh-news-hero__copy {
    max-width: 820px;
}

.nh-news-hero .nh-news-kicker {
    color: #c8f27a !important;
}

.nh-news-hero__copy h1 {
    max-width: 900px;
    margin-bottom: 28px;
    color: #fff !important;
    font-size: clamp(3.1rem, 7vw, 7.5rem);
    line-height: .88;
    letter-spacing: -.07em;
}

.nh-news-hero__copy h1 em {
    display: block;
    color: #c8f27a !important;
    font-style: normal;
}

.nh-news-hero__copy p {
    max-width: 710px;
    margin-bottom: 34px;
    color: rgba(255,255,255,.82) !important;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.76;
}

.nh-news-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.nh-news-hero__manifesto {
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 30px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 25px 80px rgba(0,0,0,.18);
    backdrop-filter: blur(14px);
}

.nh-news-hero__manifesto > span {
    display: block;
    margin-bottom: 28px;
    color: #c8f27a !important;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nh-news-hero__manifesto strong {
    display: block;
    margin-bottom: 22px;
    color: #fff !important;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.nh-news-hero__manifesto p {
    margin-bottom: 0;
    color: rgba(255,255,255,.72) !important;
    line-height: 1.72;
}

/* Featured */
.nh-news-featured {
    position: relative;
    z-index: 2;
    margin-top: clamp(-70px, -6vw, -95px);
    padding-bottom: clamp(70px, 8vw, 110px);
}

.nh-news-featured__card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    overflow: hidden;
    border: 1px solid #dcebdd;
    border-radius: 38px;
    background: #fff;
    box-shadow: 0 34px 100px rgba(0, 56, 35, .2);
}

.nh-news-featured__media {
    position: relative;
    min-height: 550px;
    overflow: hidden;
    background: #eaf6ed;
}

.nh-news-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.nh-news-featured__card:hover .nh-news-featured__media img {
    transform: scale(1.035);
}

.nh-news-featured__media--fallback,
.nh-news-card__media--fallback {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(200,242,122,.5), transparent 30%),
        linear-gradient(135deg, #005f2b, #00291b);
}

.nh-news-image-fallback {
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 34px;
    color: #fff !important;
    font-size: 2.4rem;
    font-weight: 950;
    letter-spacing: -.08em;
}

.nh-news-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vw, 78px);
}

.nh-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 28px;
    color: #537064 !important;
    font-size: .78rem;
    font-weight: 750;
}

.nh-news-meta span {
    color: #008000 !important;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nh-news-featured__label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #eaf6ed;
    color: #00632f !important;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.nh-news-featured__content h2 {
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 4.5vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.06em;
}

.nh-news-featured__content h2 a {
    color: #0b1f15 !important;
}

.nh-news-featured__content p {
    margin-bottom: 28px;
    font-size: 1.04rem;
    line-height: 1.76;
}

/* Tools */
.nh-news-tools {
    padding: 30px 0;
    border-block: 1px solid #dcebdd;
    background: #f8fcf9;
}

.nh-news-tools__inner {
    display: grid;
    grid-template-columns: minmax(320px, .68fr) minmax(0, 1.32fr);
    gap: 28px;
    align-items: center;
}

.nh-news-search {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    min-height: 58px;
    padding-left: 17px;
    border: 1px solid #cfe2d2;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,61,35,.06);
}

.nh-news-search > span {
    color: #00723a !important;
    font-size: 1.25rem;
    font-weight: 900;
}

.nh-news-search input {
    width: 100%;
    min-width: 0;
    height: 56px;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #173b2a !important;
    box-shadow: none !important;
    font: inherit;
}

.nh-news-search button {
    align-self: stretch;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #005f2b;
    color: #fff !important;
    font: inherit;
    font-size: .84rem;
    font-weight: 900;
    cursor: pointer;
}

.nh-news-categories {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 5px 2px 9px;
    scrollbar-width: thin;
}

.nh-news-categories a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #cfe2d2;
    border-radius: 999px;
    background: #fff;
    color: #315441 !important;
    font-size: .8rem;
    font-weight: 850;
    transition: .2s ease;
}

.nh-news-categories a:hover,
.nh-news-categories a:focus-visible,
.nh-news-categories a.is-active {
    border-color: #005f2b;
    background: #005f2b;
    color: #fff !important;
}

/* Latest grid */
.nh-news-latest {
    padding: clamp(78px, 9vw, 128px) 0;
}

.nh-news-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
    gap: 42px;
    align-items: end;
    margin-bottom: 52px;
}

.nh-news-section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    line-height: .92;
    letter-spacing: -.065em;
}

.nh-news-section-heading > p {
    margin-bottom: 4px;
    line-height: 1.72;
}

.nh-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.nh-news-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dcebdd;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 46px rgba(0,61,35,.075);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.nh-news-card:hover {
    transform: translateY(-7px);
    border-color: #b8d8be;
    box-shadow: 0 24px 65px rgba(0,61,35,.14);
}

.nh-news-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1.52 / 1;
    overflow: hidden;
    background: #eaf6ed;
}

.nh-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.nh-news-card:hover .nh-news-card__media img {
    transform: scale(1.045);
}

.nh-news-card__media .nh-news-image-fallback {
    width: 78px;
    height: 78px;
    border-radius: 23px;
    font-size: 1.55rem;
}

.nh-news-card__category {
    position: absolute;
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 8px 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0,56,35,.92);
    color: #fff !important;
    font-size: .66rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.nh-news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 26px 28px;
}

.nh-news-card__body time {
    margin-bottom: 13px;
    color: #688075 !important;
    font-size: .74rem;
    font-weight: 700;
}

.nh-news-card__body h3 {
    margin-bottom: 15px;
    font-size: clamp(1.3rem, 2vw, 1.72rem);
    line-height: 1.16;
    letter-spacing: -.035em;
}

.nh-news-card__body h3 a {
    color: #0b1f15 !important;
}

.nh-news-card__body p {
    margin-bottom: 25px;
    line-height: 1.68;
}

.nh-news-card__body .nh-text-link {
    margin-top: auto;
}

.nh-news-pagination {
    margin-top: 54px;
}

.nh-news-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nh-news-pagination a,
.nh-news-pagination span {
    display: grid;
    min-width: 46px;
    min-height: 46px;
    place-items: center;
    padding: 9px 14px;
    border: 1px solid #d1e4d5;
    border-radius: 999px;
    background: #fff;
    color: #315441 !important;
    font-weight: 850;
}

.nh-news-pagination .current,
.nh-news-pagination a:hover,
.nh-news-pagination a:focus-visible {
    border-color: #005f2b;
    background: #005f2b;
    color: #fff !important;
}

.nh-news-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(45px, 8vw, 82px);
    border: 1px solid #dcebdd;
    border-radius: 34px;
    background: #f4faf5;
    text-align: center;
}

.nh-news-empty > span {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: #005f2b;
    color: #c8f27a !important;
    font-size: 1.6rem;
}

.nh-news-empty h3 {
    margin-bottom: 14px;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.nh-news-empty p {
    margin-bottom: 25px;
}

/* Editorial commitment */
.nh-news-commitment {
    position: relative;
    overflow: hidden;
    padding: clamp(78px, 9vw, 125px) 0;
    background: #eef8f0;
}

.nh-news-commitment__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(45px, 8vw, 95px);
    align-items: start;
}

.nh-news-commitment h2 {
    margin-bottom: 0;
    font-size: clamp(2.4rem, 5.4vw, 5.6rem);
    line-height: .94;
    letter-spacing: -.065em;
}

.nh-news-commitment__principles {
    display: grid;
    gap: 14px;
}

.nh-news-commitment__principles article {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-height: 108px;
    padding: 20px 24px;
    border: 1px solid #cfe2d2;
    border-radius: 24px;
    background: #fff;
}

.nh-news-commitment__principles strong {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    background: #c8f27a;
    color: #00291b !important;
    font-size: .9rem;
}

.nh-news-commitment__principles span {
    color: #234334 !important;
    font-weight: 800;
    line-height: 1.55;
}

/* CTA */
.nh-news-cta {
    padding: clamp(64px, 8vw, 100px) 0;
    background: #fff;
}

.nh-news-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: clamp(38px, 6vw, 70px);
    border-radius: 34px;
    background: #003823;
    box-shadow: 0 28px 80px rgba(0,56,35,.2);
}

.nh-news-cta__inner span {
    display: block;
    margin-bottom: 10px;
    color: #c8f27a !important;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.nh-news-cta__inner h2 {
    max-width: 800px;
    margin-bottom: 0;
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -.055em;
}

/* Safe reveal */
[data-nh-news-reveal] {
    opacity: 1;
    transform: none;
}

[data-nh-news-reveal].is-visible {
    animation: nh-news-reveal .72s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes nh-news-reveal {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

@media (max-width: 1024px) {
    .nh-news-hero__grid,
    .nh-news-featured__card,
    .nh-news-commitment__grid {
        grid-template-columns: 1fr;
    }

    .nh-news-hero__manifesto {
        max-width: 680px;
    }

    .nh-news-featured__media {
        min-height: 430px;
    }

    .nh-news-tools__inner,
    .nh-news-section-heading {
        grid-template-columns: 1fr;
    }

    .nh-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .nh-news-hero {
        padding-top: 72px;
    }

    .nh-news-hero__copy h1 {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .nh-news-featured {
        margin-top: -48px;
    }

    .nh-news-featured__card {
        border-radius: 27px;
    }

    .nh-news-featured__media {
        min-height: 290px;
    }

    .nh-news-featured__content {
        padding: 31px 25px 35px;
    }

    .nh-news-tools__inner {
        gap: 17px;
    }

    .nh-news-search {
        grid-template-columns: 31px minmax(0, 1fr);
        border-radius: 22px;
    }

    .nh-news-search button {
        grid-column: 1 / -1;
        min-height: 48px;
        border-radius: 0;
    }

    .nh-news-grid {
        grid-template-columns: 1fr;
    }

    .nh-news-card__media {
        aspect-ratio: 1.55 / 1;
    }

    .nh-news-commitment__principles article {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 17px;
    }

    .nh-news-commitment__principles strong {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .nh-news-cta__inner {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-nh-news-reveal].is-visible {
        animation: none;
    }
}
