/* =========================================================
   PALETTE BNI GESTION
========================================================= */

:root {
    --bni-dark: #176238;
    --bni-dark-2: #12532f;
    --bni-green: #247d47;
    --bni-green-light: #b7e54a;
    --bni-green-soft: #648b2b;

    --bni-bg: #f5f7f4;
    --bni-text: #14251c;
    --bni-muted: #68736d;
    --bni-border: #e1e7e2;
}


/* =========================================================
   HERO
========================================================= */

.actualite-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--bni-green-light);
}

.actualite-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actualite-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(90deg,
            rgba(7, 27, 18, .685) 0%,
            rgba(7, 27, 18, .815) 38%,
            rgba(16, 41, 29, .463) 70%,
            rgba(16, 41, 29, .774) 100%);
}

.actualite-hero__container {
    position: relative;
    z-index: 2;

    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;

    padding: 70px 0 65px;
}

.actualite-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #fff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 45px;
    opacity: .85;

    transition: .25s ease;
}

.actualite-back:hover {
    opacity: 1;
    color: var(--bni-green-light);
    transform: translateX(-4px);
}

.actualite-back span {
    font-size: 20px;
}

.actualite-hero__content {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1000px;
}

.actualite-hero__date {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 90px;
    color: #fff;
}

.date-day {
    font-size: 48px;
    line-height: .9;
    font-weight: 800;
}

.date-month {
    margin-top: 8px;

    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 800;

    color: var(--bni-green-light);
}

.date-year {
    margin-top: 5px;
    font-size: 12px;
    opacity: .65;
}

.actualite-hero__separator {
    width: 1px;
    height: 100px;
    background: rgba(255, 255, 255, .28);
}

.actualite-label {
    display: inline-block;

    color: var(--bni-green-light);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;

    margin-bottom: 14px;
}

.actualite-hero h1 {
    margin: 0;

    max-width: 850px;

    color: #fff;

    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;

    font-weight: 800;
    letter-spacing: -1.5px;
}


/* =========================================================
   DETAIL
========================================================= */

.actualite-detail {
    background: var(--bni-bg);
    padding: 80px 0 100px;
}

.actualite-detail__container {
    width: min(1200px, calc(100% - 40px));

    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 310px;

    gap: 60px;

    align-items: start;
}


/* =========================================================
   ARTICLE
========================================================= */

.actualite-article {
    background: #fff;
    overflow: hidden;

    box-shadow:
        0 20px 55px rgba(16, 41, 29, .09);
}

.actualite-main-image {
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.actualite-main-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    transition: transform .6s ease;
}

.actualite-article:hover .actualite-main-image img {
    transform: scale(1.02);
}


/* =========================================================
   META
========================================================= */

.actualite-meta {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 28px 45px 0;

    color: var(--bni-muted);

    font-size: 14px;
}

.actualite-meta__item {
    display: flex;
    align-items: center;
    gap: 9px;
}

.actualite-meta__item svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: var(--bni-green-soft);
    stroke-width: 1.7;
}

.actualite-meta__separator {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--bni-green-light);
}

.meta-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--bni-green-light);
}


/* =========================================================
   TITRE
========================================================= */

.actualite-article__title {
    padding: 0 45px;

    margin: 30px 0 25px;

    color: var(--bni-text);

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;

    font-weight: 800;
    letter-spacing: -.8px;
}


/* =========================================================
   CONTENU
========================================================= */

.actualite-content {
    padding: 0 45px 40px;

    color: #56635b;

    font-size: 17px;
    line-height: 1.9;
}

.actualite-content p {
    margin: 0 0 22px;
}

.actualite-content strong {
    color: var(--bni-text);
    font-weight: 800;
}

.actualite-content h2,
.actualite-content h3 {
    color: var(--bni-text);

    line-height: 1.3;

    margin-top: 35px;
    margin-bottom: 15px;
}

.actualite-content ul,
.actualite-content ol {
    padding-left: 25px;
    margin-bottom: 25px;
}

.actualite-content li {
    margin-bottom: 8px;
}


/* =========================================================
   GALERIE
========================================================= */

.actualite-gallery {
    margin: 0 45px 45px;

    padding-top: 35px;

    border-top: 1px solid var(--bni-border);
}


/* EN-TÊTE */

.actualite-gallery__header {
    margin-bottom: 25px;
}

.actualite-gallery__eyebrow {
    display: block;

    margin-bottom: 8px;

    color: var(--bni-green);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;
}

.actualite-gallery__header h3 {
    margin: 0 0 8px;

    color: var(--bni-text);

    font-size: 28px;

    line-height: 1.2;

    font-weight: 800;
}

.actualite-gallery__header p {
    margin: 0;

    color: var(--bni-muted);

    font-size: 14px;

    line-height: 1.6;
}


/* GRILLE */

.actualite-gallery__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* IMAGE */

.actualite-gallery__item {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius: 12px;

    background: #eef2ef;

    box-shadow:
        0 8px 25px rgba(16, 41, 29, .08);
}

.actualite-gallery__item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease,
        filter .5s ease;
}

.actualite-gallery__item:hover img {
    transform: scale(1.06);

    filter: brightness(.94);
}


/* EFFET SURVOL */

.actualite-gallery__item::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(180deg,
            transparent 55%,
            rgba(0, 0, 0, .18));

    pointer-events: none;
}


/* =========================================================
   VIDEO
========================================================= */

.actualite-video {
    margin: 10px 45px 45px;

    padding: 25px;

    background: #f1f6f1;

    border-radius: 14px;

    border: 1px solid #dfe8e1;
}

.actualite-video__header {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 20px;
}

.video-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--bni-dark);
}

.video-icon svg {
    width: 22px;
    height: 22px;

    fill: none;

    stroke: var(--bni-green-light);

    stroke-width: 1.7;
}

.actualite-video__header strong {
    display: block;

    color: var(--bni-text);

    font-size: 16px;
}

.actualite-video__header span:not(.video-icon) {
    display: block;

    margin-top: 3px;

    color: #7a847e;

    font-size: 13px;
}

.youtube-container {
    position: relative;

    width: 100%;

    padding-bottom: 56.25%;

    height: 0;

    overflow: hidden;

    border-radius: 10px;

    background: #111;
}

.youtube-container iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   BAS
========================================================= */

.actualite-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 0 45px;

    padding: 25px 0;

    border-top: 1px solid var(--bni-border);
}

.actualite-return {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--bni-green);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition: .25s;
}

.actualite-return:hover {
    color: var(--bni-green-soft);

    transform: translateX(-4px);
}

.actualite-share {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #8a938e;

    font-size: 13px;
}

.actualite-share button {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dfe5e1;

    border-radius: 50%;

    background: #fff;

    cursor: pointer;

    transition: .25s;
}

.actualite-share button:hover {
    background: var(--bni-dark);

    border-color: var(--bni-dark);
}

.actualite-share svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: var(--bni-green);

    stroke-width: 1.7;
}

.actualite-share button:hover svg {
    stroke: var(--bni-green-light);
}


/* =========================================================
   SIDEBAR
========================================================= */

.actualite-sidebar {
    position: sticky;

    top: 30px;

    display: flex;

    flex-direction: column;

    gap: 20px;
}

.actualite-sidebar__card {
    padding: 35px;

    background:
        linear-gradient(145deg,
            #247d47,
            #176238);

    color: #fff;

    position: relative;

    overflow: hidden;
}

.actualite-sidebar__card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    right: -90px;
    bottom: -90px;

    background: rgba(183, 229, 74, .12);
}

.sidebar-eyebrow {
    color: var(--bni-green-light);

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: 800;
}

.actualite-sidebar__card h3 {
    margin: 18px 0;

    font-size: 25px;

    line-height: 1.25;
}

.actualite-sidebar__card p {
    color: rgba(255, 255, 255, .7);

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 25px;
}

.actualite-sidebar__card a {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: var(--bni-green-light);

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;
}

.actualite-sidebar__card a span {
    font-size: 20px;
}


/* =========================================================
   DATE SIDEBAR
========================================================= */

.actualite-sidebar__date {
    padding: 30px;

    background: #fff;

    border: 1px solid #e4e9e5;

    border-radius: 16px;

    text-align: center;
}

.actualite-sidebar__date>span {
    display: block;

    color: #89938d;

    font-size: 10px;

    letter-spacing: 2px;

    font-weight: 800;

    margin-bottom: 10px;
}

.actualite-sidebar__date strong {
    display: block;

    color: var(--bni-dark);

    font-size: 55px;

    line-height: 1;

    font-weight: 800;
}

.actualite-sidebar__date div {
    margin-top: 8px;

    color: var(--bni-green-soft);

    font-size: 12px;

    letter-spacing: 1.5px;

    font-weight: 800;
}


/* =========================================================
   RESPONSIVE TABLETTE
========================================================= */

@media (max-width: 900px) {

    .actualite-detail__container {
        grid-template-columns: 1fr;
    }

    .actualite-sidebar {
        position: static;

        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .actualite-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 650px) {

    .actualite-hero {
        min-height: 440px;
    }

    .actualite-hero__container {
        width: min(100% - 30px, 1200px);

        padding-bottom: 45px;
    }

    .actualite-hero__content {
        gap: 15px;
    }

    .actualite-hero__date {
        min-width: 60px;
    }

    .date-day {
        font-size: 35px;
    }

    .actualite-hero__separator {
        height: 75px;
    }

    .actualite-hero h1 {
        font-size: 30px;
    }

    .actualite-detail {
        padding: 40px 0 60px;
    }

    .actualite-detail__container {
        width: min(100% - 24px, 1200px);
    }

    .actualite-main-image {
        height: 280px;
    }

    .actualite-meta,
    .actualite-article__title,
    .actualite-content {
        padding-left: 22px;
        padding-right: 22px;
    }

    .actualite-article__title {
        font-size: 28px;
    }

    .actualite-content {
        font-size: 16px;
        line-height: 1.8;
    }


    /* GALERIE MOBILE */

    .actualite-gallery {
        margin-left: 22px;
        margin-right: 22px;

        padding-top: 28px;
    }

    .actualite-gallery__grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .actualite-gallery__item {
        aspect-ratio: 16 / 11;

        border-radius: 10px;
    }

    .actualite-gallery__header h3 {
        font-size: 24px;
    }


    /* VIDEO */

    .actualite-video {
        margin-left: 22px;
        margin-right: 22px;

        padding: 15px;
    }


    /* BAS */

    .actualite-bottom {
        margin-left: 22px;
        margin-right: 22px;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }


    /* SIDEBAR */

    .actualite-sidebar {
        display: flex;
    }
}


/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 400px) {

    .actualite-hero__content {
        align-items: flex-start;
    }

    .actualite-hero__date {
        min-width: 50px;
    }

    .date-day {
        font-size: 30px;
    }

    .date-month {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .actualite-hero h1 {
        font-size: 26px;
    }

    .actualite-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .actualite-gallery__item {
        aspect-ratio: 4 / 3;
    }
}