/* =========================================================
   BNI GESTION
   PREMIUM HERO SLIDER
========================================================= */

:root {

    --bni-green: #247d47;
    --bni-green-dark: #145a35;
    --bni-orange: #f39200;

    --hero-white: #ffffff;

    --hero-height: min(820px, calc(100vh - 108px));

}


/* =========================================================
   HERO
========================================================= */

.bni-hero {

    position: relative;

    width: 100%;

    height: var(--hero-height);

    min-height: 650px;

    overflow: hidden;

    isolation: isolate;

    background:
        #123c2a;

    color: var(--hero-white);

}


/* =========================================================
   SLIDES
========================================================= */

.bni-hero__slides {

    position: absolute;

    inset: 0;

    z-index: 1;

}


.bni-hero__slide {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 1.1s cubic-bezier(.4,0,.2,1),
        visibility 1.1s ease;

}


.bni-hero__slide.is-active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* =========================================================
   IMAGE
========================================================= */

.bni-hero__media {

    position: absolute;

    inset: -4%;

    width: 108%;
    height: 108%;

    overflow: hidden;

}


.bni-hero__media img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transform:
        scale(1.10);

    filter:
        saturate(.88)
        contrast(1.04);

    transition:
        transform 8s cubic-bezier(.2,.65,.25,1),
        filter 1.2s ease;

}


.bni-hero__slide.is-active
.bni-hero__media img {

    transform:
        scale(1);

    filter:
        saturate(1)
        contrast(1);

}


/* =========================================================
   OVERLAY
========================================================= */

.bni-hero__overlay {

    position: absolute;

    inset: 0;

    z-index: 2;

    background:

        linear-gradient(
            90deg,
            rgba(3,38,26,.90) 0%,
            rgba(7,61,42,.76) 26%,
            rgba(11,73,57,.48) 52%,
            rgba(9,59,54,.24) 78%,
            rgba(5,39,34,.40) 100%
        );

}


/*
    Overlay inférieur
*/

.bni-hero__overlay::after {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            180deg,
            rgba(0,0,0,.15) 0%,
            transparent 35%,
            rgba(0,0,0,.38) 100%
        );

}


/* =========================================================
   GLOW
========================================================= */

.bni-hero__glow {

    position: absolute;

    z-index: 3;

    width: 600px;
    height: 600px;

    left: 5%;
    top: 50%;

    transform:
        translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(36,125,71,.25) 0%,
            rgba(36,125,71,.08) 45%,
            transparent 70%
        );

    filter:
        blur(30px);

    pointer-events: none;

}


/* =========================================================
   CONTAINER
========================================================= */

.bni-hero__container {

    position: relative;

    z-index: 5;

    width: 100%;
    height: 100%;

    max-width: 1440px;

    margin: 0 auto;

    padding:
        0 80px;

    display: flex;

    align-items: center;

}


/* =========================================================
   CONTENT
========================================================= */

.bni-hero__content {

    width: 100%;

    max-width: 850px;

    padding-bottom: 30px;

}


/* =========================================================
   EYEBROW
========================================================= */

.bni-hero__eyebrow {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 24px;

    color:
        rgba(255,255,255,.82);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 4px;

    opacity: 0;

    transform:
        translateY(25px);

}


.bni-hero__slide.is-active
.bni-hero__eyebrow {

    animation:
        heroReveal .8s
        cubic-bezier(.2,.7,.2,1)
        .15s
        forwards;

}


.bni-hero__eyebrow-line {

    width: 42px;
    height: 2px;

    background:
        var(--bni-orange);

    box-shadow:
        0 0 15px
        rgba(243,146,0,.35);

}


/* =========================================================
   TITLE
========================================================= */

.bni-hero__title {

    margin: 0;

    max-width: 900px;

    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(46px, 5.2vw, 76px);

    font-weight: 700;

    line-height: 1.02;

    letter-spacing: -3px;

    text-wrap: balance;

    text-shadow:
        0 8px 35px
        rgba(0,0,0,.22);

    opacity: 0;

    transform:
        translateY(45px);

}


.bni-hero__slide.is-active
.bni-hero__title {

    animation:
        heroReveal .95s
        cubic-bezier(.2,.7,.2,1)
        .28s
        forwards;

}


.bni-hero__title span {

    display: block;

    color:
        var(--bni-orange);

    text-shadow:
        0 5px 30px
        rgba(243,146,0,.18);

}


/* =========================================================
   DESCRIPTION
========================================================= */

.bni-hero__description {

    max-width: 680px;

    margin:
        28px 0 34px;

    color:
        rgba(255,255,255,.86);

    font-size: 16px;

    line-height: 1.75;

    font-weight: 400;

    text-shadow:
        0 2px 12px
        rgba(0,0,0,.25);

    opacity: 0;

    transform:
        translateY(30px);

}


.bni-hero__slide.is-active
.bni-hero__description {

    animation:
        heroReveal .85s
        cubic-bezier(.2,.7,.2,1)
        .45s
        forwards;

}


/* =========================================================
   ACTION
========================================================= */

.bni-hero__actions {

    display: flex;

    align-items: center;

    opacity: 0;

    transform:
        translateY(25px);

}


.bni-hero__slide.is-active
.bni-hero__actions {

    animation:
        heroReveal .8s
        cubic-bezier(.2,.7,.2,1)
        .62s
        forwards;

}


/* =========================================================
   BUTTON
========================================================= */

.bni-hero__button {

    position: relative;

    min-height: 56px;

    padding:
        0 8px
        0 24px;

    display: inline-flex;

    align-items: center;

    gap: 25px;

    overflow: hidden;

    color: #fff;

    background:
        var(--bni-green);

    border:
        1px solid
        rgba(255,255,255,.55);

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.15);

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;

}


.bni-hero__button::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            100deg,
            var(--bni-orange),
            #ffad2e
        );

    transform:
        translateX(-102%);

    transition:
        transform .5s
        cubic-bezier(.77,0,.175,1);

}


.bni-hero__button:hover {

    color: #fff;

    transform:
        translateY(-4px);

    border-color:
        var(--bni-orange);

    box-shadow:
        0 18px 45px
        rgba(0,0,0,.25);

}


.bni-hero__button:hover::before {

    transform:
        translateX(0);

}


.bni-hero__button > span:first-child {

    position: relative;

    z-index: 2;

}


/* =========================================================
   BUTTON ICON
========================================================= */

.bni-hero__button-icon {

    position: relative;

    z-index: 2;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255,255,255,.14);

    transition:
        transform .4s ease,
        background .4s ease;

}


.bni-hero__button-icon svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;

}


.bni-hero__button:hover
.bni-hero__button-icon {

    transform:
        translateX(4px);

    background:
        rgba(255,255,255,.2);

}


/* =========================================================
   NAVIGATION
========================================================= */

.bni-hero__navigation {

    position: absolute;

    z-index: 10;

    right: 55px;

    top: 50%;

    transform:
        translateY(-50%);

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.bni-hero__nav {

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.25);

    background:
        rgba(255,255,255,.07);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    color: #fff;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;

}


.bni-hero__nav:hover {

    background:
        var(--bni-orange);

    border-color:
        var(--bni-orange);

}


.bni-hero__nav--prev:hover {

    transform:
        translateX(-4px);

}


.bni-hero__nav--next:hover {

    transform:
        translateX(4px);

}


.bni-hero__nav svg {

    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;

}


/* =========================================================
   COUNTER
========================================================= */

.bni-hero__counter {

    position: absolute;

    z-index: 10;

    right: 55px;

    bottom: 105px;

    display: flex;

    align-items: baseline;

    gap: 8px;

    color:
        rgba(255,255,255,.5);

    font-size: 12px;

    letter-spacing: 2px;

}


.bni-hero__counter-current {

    color: #fff;

    font-size: 26px;

    font-weight: 700;

}


.bni-hero__counter-separator {

    color:
        var(--bni-orange);

}


.bni-hero__counter-total {

    font-size: 11px;

}


/* =========================================================
   PAGINATION
========================================================= */

.bni-hero__pagination {

    position: absolute;

    z-index: 10;

    left: 80px;

    bottom: 55px;

    display: flex;

    align-items: flex-start;

    gap: 12px;

}


.bni-hero__dot {

    width: 70px;

    padding: 0;

    display: flex;

    flex-direction: column;

    gap: 9px;

    border: 0;

    background: transparent;

    color:
        rgba(255,255,255,.42);

    cursor: pointer;

    text-align: left;

}


.bni-hero__dot span {

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

}


.bni-hero__dot i {

    position: relative;

    width: 100%;
    height: 2px;

    overflow: hidden;

    background:
        rgba(255,255,255,.25);

}


.bni-hero__dot i::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        var(--bni-orange);

    transform:
        scaleX(0);

    transform-origin:
        left;

}


.bni-hero__dot.is-active {

    color: #fff;

}


.bni-hero__dot.is-active i::after {

    transform:
        scaleX(1);

    transition:
        transform 6.5s linear;

}


/* =========================================================
   SCROLL
========================================================= */

.bni-hero__scroll {

    position: absolute;

    z-index: 10;

    right: 55px;

    bottom: 54px;

    display: flex;

    align-items: center;

    gap: 14px;

    color:
        rgba(255,255,255,.55);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 3px;

}


.bni-hero__scroll-line {

    width: 55px;

    height: 1px;

    overflow: hidden;

    background:
        rgba(255,255,255,.25);

}


.bni-hero__scroll-line span {

    display: block;

    width: 30%;

    height: 100%;

    background:
        var(--bni-orange);

    animation:
        scrollMove 2.2s
        ease-in-out
        infinite;

}


/* =========================================================
   PROGRESS
========================================================= */

.bni-hero__progress {

    position: absolute;

    left: 0;
    right: 0;

    bottom: 0;

    z-index: 20;

    height: 3px;

    background:
        rgba(255,255,255,.12);

}


.bni-hero__progress span {

    display: block;

    width: 0;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--bni-green),
            var(--bni-orange)
        );

    box-shadow:
        0 0 12px
        rgba(243,146,0,.5);

}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes heroReveal {

    from {

        opacity: 0;

        transform:
            translateY(35px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


@keyframes scrollMove {

    0% {

        transform:
            translateX(-120%);

    }

    50% {

        transform:
            translateX(250%);

    }

    100% {

        transform:
            translateX(250%);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    :root {

        --hero-height:
            calc(100vh - 82px);

    }


    .bni-hero {

        min-height: 620px;

    }


    .bni-hero__container {
        padding:
            0 70px;

    }


    .bni-hero__title {

        font-size:
            clamp(42px, 6vw, 64px);

    }


    .bni-hero__navigation {

        right: 25px;

    }


    .bni-hero__pagination {

        left: 70px;

    }
    .hero__counter , .bni-hero__counter-current, .bni-hero__counter-total, .bni-hero__counter-separator {
        display: none !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    :root {

        --hero-height:
            calc(100svh - 72px);

    }


    .bni-hero {

        min-height: 600px;

        height:
            calc(100svh - 72px);

    }


    /* Image */

    .bni-hero__media {

        inset: -5%;

        width: 110%;
        height: 110%;

    }


    .bni-hero__media img {

        object-position:
            58% center;

    }


    /* Overlay */

    .bni-hero__overlay {

        background:

            linear-gradient(
                180deg,
                rgba(4,38,27,.48) 0%,
                rgba(5,55,38,.62) 42%,
                rgba(3,34,26,.90) 100%
            );

    }


    .bni-hero__glow {

        width: 400px;
        height: 400px;

        left: 50%;

        top: 45%;

        transform:
            translate(-50%, -50%);

    }


    /* Container */

    .bni-hero__container {

        padding:
            30px 25px 140px;

        align-items:
            center;

    }


    .bni-hero__content {

        max-width:
            100%;

        padding: 0;

    }


    /* Eyebrow */

    .bni-hero__eyebrow {

        margin-bottom: 17px;

        font-size: 9px;

        letter-spacing: 3px;

    }


    .bni-hero__eyebrow-line {

        width: 25px;

    }


    /* Title */

    .bni-hero__title {

        max-width:
            100%;

        font-size:
            clamp(34px, 10vw, 48px);

        line-height:
            1.05;

        letter-spacing:
            -1.5px;

    }


    .bni-hero__title span {

        margin-top: 4px;

    }


    /* Description */

    .bni-hero__description {

        max-width:
            100%;

        margin:
            22px 0 27px;

        font-size:
            13.5px;

        line-height:
            1.65;

    }


    /* Button */

    .bni-hero__button {

        min-height:
            50px;

        padding-left:
            18px;

        gap:
            15px;

        font-size:
            12px;

    }


    .bni-hero__button-icon {

        width: 38px;
        height: 38px;

    }


    /* Navigation */

    .bni-hero__navigation {

        top: auto;

        right: 25px;

        bottom: 95px;

        transform: none;

        flex-direction: row;

        gap: 7px;

    }


    .bni-hero__nav {

        width: 40px;
        height: 40px;

        background:
            rgba(255,255,255,.09);

    }


    .bni-hero__nav svg {

        width: 17px;
        height: 17px;

    }


    /* Counter */

    .bni-hero__counter {

        top: 30px;

        right: 25px;

        bottom: auto;

    }


    .bni-hero__counter-current {

        font-size: 21px;

    }


    /* Pagination */

    .bni-hero__pagination {

        left: 25px;

        bottom: 34px;

        gap: 8px;

    }


    .bni-hero__dot {

        width: 42px;

        gap: 6px;

    }


    .bni-hero__dot span {

        font-size: 8px;

    }


    /* Scroll */

    .bni-hero__scroll {

        display: none;

    }


    /* Progress */

    .bni-hero__progress {

        height: 2px;

    }

}


/* =========================================================
   PETIT MOBILE
========================================================= */

@media (max-width: 400px) {

    .bni-hero {

        min-height:
            560px;

    }


    .bni-hero__container {

        padding:
            25px 20px 135px;

    }


    .bni-hero__title {

        font-size:
            32px;

    }


    .bni-hero__description {

        font-size:
            12.5px;

    }


    .bni-hero__navigation {

        right: 20px;

        bottom: 87px;

    }


    .bni-hero__pagination {

        left: 20px;

        bottom: 29px;

    }

}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bni-hero__slide,
    .bni-hero__media img,
    .bni-hero__eyebrow,
    .bni-hero__title,
    .bni-hero__description,
    .bni-hero__actions,
    .bni-hero__button,
    .bni-hero__button-icon,
    .bni-hero__nav {

        animation: none !important;

        transition: none !important;

    }


    .bni-hero__scroll-line span {

        animation: none !important;

    }

}
