/* =========================================================
   BNI GESTION
   PREMIUM NEWS SECTION
========================================================= */

:root {
    --bni-green: #008542;
    --bni-green-dark: #006b36;
    --bni-green-light: #eaf6ef;

    --bni-orange: #ff9800;

    --bni-black: #101820;
    --bni-gray: #657177;
    --bni-light: #f7f9f8;

    --transition:
        cubic-bezier(.22, .61, .36, 1);
}


/* =========================================================
   SECTION
========================================================= */

.bni-news {
    position: relative;

    padding: 20px 24px;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f7f9f8 100%);

    overflow: hidden;
}


/* =========================================================
   DECORATIONS
========================================================= */

.bni-news::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -300px;
    right: -200px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(0, 133, 66, .10) 0%,
            rgba(0, 133, 66, 0) 70%);

    pointer-events: none;
}


.bni-news::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    bottom: -200px;
    left: -150px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(255, 152, 0, .08) 0%,
            rgba(255, 152, 0, 0) 70%);

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.bni-news__container {
    position: relative;

    z-index: 2;

    width: min(1280px, 100%);

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.bni-news__header {
    margin-bottom: 55px;
}


.bni-news__eyebrow {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 18px;

    color: var(--bni-green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;
}


.bni-news__eyebrow-line {
    width: 38px;
    height: 2px;

    background: var(--bni-orange);

    flex-shrink: 0;
}


.bni-news__heading-row {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;
}


.bni-news__title {
    max-width: 700px;

    margin: 0;

    color: var(--bni-black);

    font-size: clamp(22px, 5vw, 38px);

    line-height: .98;

    font-weight: 700;

    letter-spacing: -3px;
}


.bni-news__title span {
    display: block;

    color: var(--bni-green);
}


.bni-news__title b {
    color: var(--bni-black) !important;
}


.bni-news__intro {
    max-width: 350px;

    padding-bottom: 4px;
}


.bni-news__intro p {
    margin: 0 0 22px;

    color: var(--bni-gray);

    font-size: 14px;

    line-height: 1.7;
}


.bni-news__all {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: var(--bni-black);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition: color .3s ease;
}


.bni-news__all span {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: #ffffff;

    background: var(--bni-green);

    border-radius: 50%;

    transition:
        transform .4s var(--transition),
        background .3s ease;
}


.bni-news__all:hover {
    color: var(--bni-green);
}


.bni-news__all:hover span {
    transform: rotate(45deg);

    background: var(--bni-orange);

    color: var(--bni-black);
}


/* =========================================================
   GRILLE PRINCIPALE
   IMPORTANT :
   LES DEUX COLONNES COMMENCENT AU MÊME TOP
========================================================= */

.bni-news__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr) minmax(0, .9fr);

    gap: 55px;

    /*
     * IMPORTANT
     * Empêche la colonne droite d'être centrée
     * verticalement par rapport au grand bloc gauche.
     */
    align-items: start;

    justify-items: stretch;

    width: 100%;

    margin: 0;

    padding: 0;
}


/* =========================================================
   GRAND ARTICLE GAUCHE
========================================================= */

.news-featured {
    position: relative;

    display: block;

    width: 100%;

    min-width: 0;

    min-height: 620px;

    height: 620px;

    overflow: hidden;

    background: #111;

    border-radius: 4px;

    align-self: start;

    margin: 0;

    padding: 0;
}


.news-featured__image {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;

    text-decoration: none;
}


.news-featured__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 1.2s var(--transition);
}


.news-featured:hover img {
    transform: scale(1.075);
}


/* =========================================================
   OVERLAY
========================================================= */

.news-featured__overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, .10) 0%,
            rgba(0, 0, 0, .02) 35%,
            rgba(0, 0, 0, .20) 50%,
            rgba(0, 0, 0, .88) 100%);

    pointer-events: none;
}


/* =========================================================
   FEATURED TOP
========================================================= */

.news-featured__top {
    position: absolute;

    top: 25px;
    left: 25px;
    right: 25px;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    z-index: 3;
}


.news-tag {
    padding: 9px 14px;

    color: #ffffff;

    background: var(--bni-green);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.2px;
}


.news-date {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    width: 64px;
    height: 68px;

    background: var(--bni-orange);

    color: var(--bni-black);

    line-height: 1;
}


.news-date strong {
    font-size: 28px;

    font-weight: 800;
}


.news-date small {
    margin-top: 5px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   FEATURED CONTENT
========================================================= */

.news-featured__content {
    position: absolute;

    left: 42px;
    right: 42px;
    bottom: 38px;

    z-index: 3;

    color: #ffffff;
}


.news-read {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 15px;

    color: rgba(255, 255, 255, .75);

    font-size: 11px;
}


.news-read span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--bni-orange);

    flex-shrink: 0;
}


.news-featured__content h3 {
    max-width: 720px;

    margin: 0;

    color: #ffffff;

    font-size: clamp(28px, 3vw, 43px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    font-weight: 700;
}


/* =========================================================
   FEATURED BOTTOM
========================================================= */

.news-featured__bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 30px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, .25);

    font-size: 12px;

    font-weight: 700;
}


.news-arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    color: var(--bni-black);

    background: #ffffff;

    border-radius: 50%;

    font-size: 20px;

    transition:
        transform .4s var(--transition),
        background .3s ease;
}


.news-featured:hover .news-arrow {
    transform: translateX(5px);

    background: var(--bni-orange);
}


/* =========================================================
   COLONNE DROITE
   IMPORTANT : TOUJOURS COMMENCER EN HAUT
========================================================= */

.news-side {
    display: flex !important;

    flex-direction: column !important;

    /*
     * SURTOUT PAS center
     */
    justify-content: flex-start !important;

    align-items: stretch !important;

    /*
     * Le point important :
     * la colonne droite est alignée sur le haut
     * de la grille.
     */
    align-self: start !important;

    width: 100%;

    height: auto;

    min-height: 0;

    margin: 0 !important;

    padding: 0 !important;

    box-sizing: border-box;
}


/* =========================================================
   PREMIER ARTICLE DROITE
========================================================= */

.news-side>.news-horizontal:first-child {
    margin-top: 0 !important;

    padding-top: 0 !important;

    transform: none;
}


/* =========================================================
   ARTICLES HORIZONTAUX DROITE
========================================================= */

.news-horizontal {
    display: grid;

    grid-template-columns:
        205px minmax(0, 1fr);

    gap: 25px;

    width: 100%;

    min-width: 0;

    min-height: 245px;

    height: 245px;

    margin: 0;

    padding: 0;

    align-self: start;

    box-sizing: border-box;
}


/* =========================================================
   IMAGE DROITE
========================================================= */

.news-horizontal__image {
    position: relative;

    display: block;

    width: 100%;
    height: 245px;

    margin: 0;

    padding: 0;

    overflow: hidden;

    background: #dddddd;

    text-decoration: none;
}


.news-horizontal__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s var(--transition);
}


.news-horizontal:hover .news-horizontal__image img {
    transform: scale(1.08);
}


/* =========================================================
   NUMERO
========================================================= */

.news-horizontal__number {
    position: absolute;

    left: 12px;
    bottom: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: #ffffff;

    background: var(--bni-green);

    font-size: 11px;

    font-weight: 800;

    z-index: 2;
}


/* =========================================================
   CONTENU DROITE
========================================================= */

.news-horizontal__content {
    display: flex;

    flex-direction: column;

    align-self: start;

    min-width: 0;

    margin: 0;

    padding: 7px 0 0;
}


/* =========================================================
   META
========================================================= */

.news-horizontal__meta {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-bottom: 17px;

    color: #98a1a4;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .5px;
}


.news-small-tag {
    color: var(--bni-green);

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   TITRE DROITE
========================================================= */

.news-horizontal h3 {
    margin: 0 0 13px;

    color: var(--bni-black);

    font-size: 23px;

    line-height: 1.25;

    letter-spacing: -.5px;

    font-weight: 700;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.news-horizontal p {
    margin: 0;

    color: var(--bni-gray);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   LIEN DROITE
========================================================= */

.news-read-more {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    width: fit-content;

    margin-top: 22px;

    color: var(--bni-black);

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    transition:
        color .3s ease,
        gap .3s ease;
}


.news-read-more span {
    color: var(--bni-green);

    font-size: 17px;
}


.news-read-more:hover {
    gap: 13px;

    color: var(--bni-green);
}


/* =========================================================
   SEPARATEUR ENTRE LES DEUX ARTICLES
========================================================= */

.news-separator {
    flex-shrink: 0;

    width: 100%;

    height: 1px;

    margin: 2px 0;

    padding: 0;

    background:
        linear-gradient(90deg,
            #dce3dfa5,
            transparent);
}


/* =========================================================
   BOTTOM
========================================================= */

.bni-news__bottom {
    margin-top: 60px;
}


.bni-news__line {
    width: 100%;

    height: 1px;

    background: #dfe5e2;
}


.bni-news__bottom-content {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 18px;
}


.bni-news__bottom-content>span {
    color: #98a19e;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;
}


.bni-news__navigation {
    display: flex;

    gap: 8px;
}


.bni-news__navigation button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid #dfe5e2;

    background: #ffffff;

    color: var(--bni-black);

    border-radius: 50%;

    cursor: pointer;

    font-size: 16px;

    transition:
        color .3s ease,
        background .3s ease,
        border .3s ease,
        transform .3s ease;
}


.bni-news__navigation button:hover {
    color: #ffffff;

    background: var(--bni-green);

    border-color: var(--bni-green);

    transform: translateY(-3px);
}


/* =========================================================
   EMPTY
========================================================= */

.news-empty {
    grid-column: 1 / -1;

    padding: 60px 30px;

    text-align: center;

    color: var(--bni-gray);

    background: #ffffff;

    border: 1px solid #e5ebe7;
}


.news-empty p {
    margin: 0;

    font-size: 15px;
}


/* =========================================================
   ANIMATION
========================================================= */

.bni-news__header,
.news-featured,
.news-horizontal,
.bni-news__bottom {
    opacity: 0;

    transform: translateY(35px);

    animation:
        newsReveal .9s var(--transition) forwards;
}


.bni-news__header {
    animation-delay: .05s;
}


.news-featured {
    animation-delay: .15s;
}


.news-horizontal:nth-child(1) {
    animation-delay: .28s;
}


.news-horizontal:nth-child(3) {
    animation-delay: .40s;
}


.bni-news__bottom {
    animation-delay: .5s;
}


@keyframes newsReveal {

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .bni-news {
        padding: 90px 22px;
    }


    .bni-news__heading-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 25px;
    }


    .bni-news__intro {
        max-width: 550px;
    }


    .bni-news__grid {
        grid-template-columns: 1fr;

        gap: 40px;

        align-items: start;
    }


    .news-featured {
        min-height: 560px;

        height: 560px;
    }


    .news-side {
        width: 100%;

        height: auto;

        justify-content: flex-start !important;

        align-self: start !important;
    }


    .news-horizontal {
        grid-template-columns:
            250px minmax(0, 1fr);

        min-height: 250px;

        height: 250px;
    }


    .news-horizontal__image {
        height: 250px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .bni-news {
        padding: 70px 16px;
    }


    .bni-news__header {
        margin-bottom: 35px;
    }


    .bni-news__title {
        font-size: 43px;

        letter-spacing: -2px;
    }


    .bni-news__intro p {
        font-size: 13px;
    }


    .news-featured {
        min-height: 510px;

        height: 510px;

        border-radius: 3px;
    }


    .news-featured__top {
        top: 16px;

        left: 16px;

        right: 16px;
    }


    .news-featured__content {
        left: 20px;

        right: 20px;

        bottom: 22px;
    }


    .news-featured__content h3 {
        font-size: 27px;

        letter-spacing: -1px;
    }


    .news-featured__bottom {
        margin-top: 22px;
    }


    .news-horizontal {
        grid-template-columns:
            120px minmax(0, 1fr);

        gap: 17px;

        min-height: 160px;

        height: 160px;
    }


    .news-horizontal__image {
        height: 160px;
    }


    .news-horizontal h3 {
        font-size: 17px;

        line-height: 1.25;
        display: none;
    }


    .news-horizontal p {
        font-size: 12px;
        margin-top: 5px;
        padding-top: 0;

    }


    .news-horizontal__meta {
        margin-bottom: 10px;

        font-size: 8px;
    }


    .news-read-more {
        margin-top: 0;
        font-size: 10px;
    }


    .news-separator {
        margin: 22px 0;
    }


    .news-date {
        width: 56px;

        height: 60px;
    }


    .news-date strong {
        font-size: 23px;
    }


    .news-date small {
        font-size: 8px;
    }


    .bni-news__bottom {
        margin-top: 40px;
    }

}


/* =========================================================
   PETITS MOBILES
========================================================= */

@media (max-width: 400px) {

    .bni-news__title {
        font-size: 38px;
    }


    .news-horizontal {
        grid-template-columns:
            105px minmax(0, 1fr);

        gap: 14px;

        min-height: 145px;

        height: 145px;
    }


    .news-horizontal__image {
        height: 145px;
    }


    .news-horizontal h3 {
        font-size: 15px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bni-news__header,
    .news-featured,
    .news-horizontal,
    .bni-news__bottom {
        opacity: 1;

        transform: none;

        animation: none;
    }


    .news-featured__image img,
    .news-horizontal__image img {
        transition: none;
    }

}