

:root{
    --bni-red:#b5122b;
    --bni-red-dark:#8f0e21;
    --bni-red-deep:#720817;

    --ink:#1d1d1d;
    --text:#343434;
    --muted:#777777;

    --white:#ffffff;
    --soft:#f8f7f5;
    --line:#e5e1db;

    --green:#168249;
    --orange:#d97706;
}

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
}

body{
    margin:0;
    min-height:100vh;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    color:var(--text);

    background:
        radial-gradient(
            circle at 12% 5%,
            rgba(255,255,255,.10),
            transparent 27%
        ),
        radial-gradient(
            circle at 88% 90%,
            rgba(70,0,13,.32),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #8f0e21 0%,
            #b5122b 48%,
            #720817 100%
        );

    background-attachment:fixed;
}


/* ============================================================
   PAGE
   ============================================================ */

.home-shell{
    width:100%;
    max-width:1120px;

    margin:0 auto;

    padding:
        24px
        20px
        42px;
}


/* ============================================================
   BANDEAU COMMUN
   ============================================================ */

.home-brand{
    width:100%;
    min-height:94px;

    display:grid;

    grid-template-columns:
        minmax(150px,1fr)
        auto
        minmax(190px,1fr);

    align-items:center;

    gap:20px;

    padding:
        14px
        26px;

    margin-bottom:16px;

    background:#fff;

    border:
        1px solid
        rgba(255,255,255,.55);

    border-radius:8px;

    box-shadow:
        0 12px 32px
        rgba(63,0,13,.12);
}

.home-brand-logo{
    min-width:0;

    display:flex;
    align-items:center;
}

.home-brand-logo img{
    display:block;

    width:auto;
    height:auto;

    object-fit:contain;
}

.home-brand-bni{
    justify-content:flex-start;
}

.home-brand-bni img{
    max-width:140px;
    max-height:60px;
}

.home-brand-fg{
    justify-content:flex-end;
}

.home-brand-fg img{
    max-width:185px;
    max-height:46px;
}

.home-brand-center{
    display:flex;

    justify-content:center;
    align-items:center;

    text-align:center;
}

.home-brand-center strong{
    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:
        9px
        14px;

    background:
        var(--bni-red);

    color:#fff;

    border-radius:5px;

    font-size:12px;
    line-height:1.25;

    font-weight:750;

    white-space:nowrap;
}


/* ============================================================
   HERO
   ============================================================ */

.home-hero{
    width:100%;

    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    align-items:center;

    gap:30px;

    padding:
        25px
        24px;

    margin-bottom:14px;

    background:#fff;

    border:
        1px solid
        var(--line);

    border-left:
        4px solid
        var(--bni-red);

    border-radius:7px;

    box-shadow:
        0 11px 29px
        rgba(62,0,13,.09);
}

.home-kicker{
    margin-bottom:5px;

    color:
        var(--bni-red);

    font-size:9px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:.6px;
}

.home-hero h1{
    margin:0;

    color:
        var(--ink);

    font-size:28px;
    line-height:1.15;

    font-weight:750;

    letter-spacing:-.45px;
}

.home-hero p{
    max-width:680px;

    margin:
        7px
        0
        0;

    color:
        var(--muted);

    font-size:13px;
    line-height:1.6;
}

.home-hero-mark{
    width:56px;
    height:56px;

    display:flex;

    align-items:center;
    justify-content:center;

    background:
        #f8f4f1;

    color:
        var(--bni-red);

    border:
        1px solid
        #e6d9d9;

    border-radius:6px;
}

.home-hero-mark svg{
    width:27px;
    height:27px;

    fill:none;

    stroke:currentColor;

    stroke-width:1.8;

    stroke-linecap:round;
    stroke-linejoin:round;
}



/* ============================================================
   GALERIE DES ENTREPRISES
   ============================================================ */

.members-showcase{
    width:100%;

    margin-bottom:14px;

    padding:
        18px
        20px
        19px;

    background:#ffffff;

    border:
        1px solid
        var(--line);

    border-radius:7px;

    box-shadow:
        0 10px 27px
        rgba(62,0,13,.08);

    overflow:hidden;
}


.members-showcase-head{
    display:flex;

    align-items:flex-end;
    justify-content:space-between;

    gap:24px;

    margin-bottom:15px;
}


.members-showcase-kicker{
    margin-bottom:3px;

    color:
        var(--bni-red);

    font-size:8.5px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:.6px;
}


.members-showcase h2{
    margin:0;

    color:#252525;

    font-size:17px;
    line-height:1.25;

    font-weight:750;
}


.members-showcase-link{
    flex:0 0 auto;

    display:inline-flex;

    align-items:center;

    gap:6px;

    color:
        var(--bni-red);

    text-decoration:none;

    font-size:10px;

    font-weight:800;
}


.members-showcase-link:hover{
    text-decoration:underline;
}


.members-showcase-link svg{
    width:14px;
    height:14px;

    fill:none;
    stroke:currentColor;

    stroke-width:2;

    stroke-linecap:round;
    stroke-linejoin:round;
}


/* ============================================================
   FENETRE DU DEFILEMENT
   ============================================================ */

.members-marquee{
    position:relative;

    width:100%;

    overflow:hidden;

    padding:
        2px
        0;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0,
            #000 28px,
            #000 calc(100% - 28px),
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0,
            #000 28px,
            #000 calc(100% - 28px),
            transparent 100%
        );
}


.members-marquee-track{
    display:flex;

    width:max-content;

    will-change:transform;

    animation:
        bniMembersMarquee
        42s
        linear
        infinite;
}


.members-marquee:hover
.members-marquee-track{
    animation-play-state:paused;
}


.members-marquee-group{
    display:flex;

    align-items:stretch;

    flex:0 0 auto;

    gap:12px;

    padding-right:12px;
}


/* ============================================================
   LOGO INDIVIDUEL
   ============================================================ */

.member-logo-card{
    width:168px;
    min-width:168px;
    height:108px;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    background:
        #faf9f7;

    color:#333333;

    border:
        1px solid
        #e4dfd9;

    border-radius:5px;

    text-decoration:none;

    transition:
        border-color .16s ease,
        background .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}


.member-logo-card:hover{
    background:#ffffff;

    border-color:
        #d6b7bc;

    transform:
        translateY(-2px);

    box-shadow:
        0 7px 16px
        rgba(68,0,13,.08);
}


.member-logo-visual{
    height:76px;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:
        10px
        14px;

    background:#ffffff;
}


.member-logo-visual img{
    display:block;

    max-width:138px;
    max-height:55px;

    width:auto;
    height:auto;

    object-fit:contain;
}


.member-logo-name{
    flex:1;

    display:flex;

    align-items:center;
    justify-content:center;

    min-width:0;

    padding:
        5px
        8px;

    border-top:
        1px solid
        #ebe7e2;

    color:#706b67;

    text-align:center;

    font-size:8.5px;

    font-weight:700;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}


/* ============================================================
   ANIMATION
   ============================================================ */

@keyframes bniMembersMarquee{

    from{
        transform:
            translateX(0);
    }

    to{
        transform:
            translateX(-50%);
    }

}


/* ============================================================
   TABLETTE / MOBILE
   ============================================================ */

@media(max-width:650px){

    .members-showcase{
        padding:
            16px
            14px;

        border-radius:6px;
    }


    .members-showcase-head{
        align-items:flex-start;

        gap:12px;
    }


    .members-showcase h2{
        font-size:15px;
    }


    .member-logo-card{
        width:145px;
        min-width:145px;
        height:96px;
    }


    .member-logo-visual{
        height:67px;

        padding:
            9px
            12px;
    }


    .member-logo-visual img{
        max-width:120px;
        max-height:48px;
    }


    .member-logo-name{
        font-size:8px;
    }


    .members-marquee-track{
        animation-duration:36s;
    }

}


@media(max-width:440px){

    .members-showcase-head{
        flex-direction:column;

        align-items:flex-start;

        gap:5px;
    }


    .member-logo-card{
        width:134px;
        min-width:134px;
    }

}


/* ============================================================
   ACCESSIBILITE : PAS DE MOUVEMENT FORCE
   ============================================================ */

@media(prefers-reduced-motion:reduce){

    .members-marquee{
        overflow-x:auto;

        -webkit-mask-image:none;
        mask-image:none;
    }


    .members-marquee-track{
        animation:none;
    }


    .members-marquee-group[aria-hidden="true"]{
        display:none;
    }

}



/* ============================================================
   ACTIONS
   ============================================================ */

.home-actions{
    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:14px;
}

.home-card{
    min-width:0;

    display:flex;
    flex-direction:column;

    padding:
        21px;

    background:#fff;

    color:
        var(--text);

    border:
        1px solid
        var(--line);

    border-radius:7px;

    text-decoration:none;

    box-shadow:
        0 10px 26px
        rgba(62,0,13,.08);

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

.home-card:hover{
    transform:
        translateY(-2px);

    border-color:
        #dab8be;

    box-shadow:
        0 14px 31px
        rgba(62,0,13,.12);
}

.home-card-top{
    display:flex;

    align-items:center;

    gap:13px;

    margin-bottom:14px;
}

.home-icon{
    width:43px;
    height:43px;

    flex:0 0 43px;

    display:flex;

    align-items:center;
    justify-content:center;

    background:
        #f8f4f1;

    color:
        var(--bni-red);

    border:
        1px solid
        #e7dcda;

    border-radius:5px;
}

.home-icon svg{
    width:21px;
    height:21px;

    fill:none;

    stroke:currentColor;

    stroke-width:1.8;

    stroke-linecap:round;
    stroke-linejoin:round;
}

.home-card-label{
    color:
        #8d8580;

    font-size:8px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:.55px;
}

.home-card h2{
    margin:
        2px
        0
        0;

    color:
        #252525;

    font-size:18px;
    line-height:1.25;

    font-weight:750;
}

.home-card-description{
    margin:
        0
        0
        16px;

    color:
        #727272;

    font-size:12px;
    line-height:1.6;
}


/* ============================================================
   EVENEMENT
   ============================================================ */

.home-card-event{
    border-top:
        3px solid
        var(--bni-red);
}

.event-name{
    margin:
        0
        0
        12px;

    color:
        #313131;

    font-size:14px;
    line-height:1.45;

    font-weight:750;
}

.event-meta{
    display:grid;

    gap:7px;

    margin-bottom:14px;
}

.event-meta-row{
    display:flex;

    align-items:flex-start;

    gap:8px;

    color:#666;

    font-size:11px;
    line-height:1.45;
}

.event-meta-row strong{
    color:#393939;
}

.event-meta-row svg{
    width:15px;
    height:15px;

    flex:0 0 15px;

    margin-top:1px;

    fill:none;
    stroke:
        var(--bni-red);

    stroke-width:1.8;

    stroke-linecap:round;
    stroke-linejoin:round;
}


/* Statut */

.event-status{
    display:flex;

    align-items:center;

    gap:7px;

    width:max-content;
    max-width:100%;

    margin-bottom:11px;

    padding:
        6px
        9px;

    background:#f8f6f3;

    color:#595551;

    border:
        1px solid
        #e4dfda;

    border-radius:4px;

    font-size:9.5px;

    font-weight:750;
}

.status-dot{
    width:8px;
    height:8px;

    flex:0 0 8px;

    border-radius:50%;
}

.status-dot.urgence-green{
    background:
        var(--green);
}

.status-dot.urgence-orange{
    background:
        var(--orange);
}

.status-dot.urgence-red{
    background:
        var(--bni-red);
}


/* Countdown */

.home-countdown{
    margin:
        0
        0
        14px;

    padding:
        9px
        11px;

    background:
        #292929;

    color:#fff;

    border-radius:4px;

    text-align:center;

    font-size:11px;

    font-weight:750;
}

.home-countdown strong{
    color:#fff;
}


/* ============================================================
   CTA DES CARTES
   ============================================================ */

.home-card-link{
    display:flex;

    align-items:center;

    gap:7px;

    margin-top:auto;

    padding-top:3px;

    color:
        var(--bni-red);

    font-size:10.5px;

    font-weight:800;
}

.home-card-link svg{
    width:15px;
    height:15px;

    fill:none;
    stroke:currentColor;

    stroke-width:2;

    stroke-linecap:round;
    stroke-linejoin:round;

    transition:
        transform .16s ease;
}

.home-card:hover .home-card-link svg{
    transform:
        translateX(3px);
}


/* ============================================================
   FOOTER
   ============================================================ */

.home-footer{
    margin-top:17px;

    color:
        rgba(255,255,255,.78);

    text-align:center;

    font-size:9.5px;
    line-height:1.5;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media(max-width:780px){

    .home-shell{
        padding:
            14px
            12px
            30px;
    }

    .home-brand{
        grid-template-columns:
            120px
            1fr
            155px;

        padding:
            13px
            16px;
    }

    .home-brand-bni img{
        max-width:105px;
        max-height:48px;
    }

    .home-brand-fg img{
        max-width:145px;
        max-height:39px;
    }

    .home-brand-center strong{
        padding:
            7px
            9px;

        font-size:10px;
    }

    .home-hero{
        padding:
            21px
            19px;
    }
}


@media(max-width:650px){

    .home-brand{
        grid-template-columns:
            minmax(90px,1fr)
            minmax(135px,1.35fr);

        grid-template-areas:
            "bni fg"
            "title title";

        min-height:0;

        gap:
            11px
            14px;

        padding:14px;

        border-radius:6px;
    }

    .home-brand-bni{
        grid-area:bni;
    }

    .home-brand-fg{
        grid-area:fg;
    }

    .home-brand-center{
        grid-area:title;
    }

    .home-brand-center strong{
        white-space:normal;

        text-align:center;
    }

    .home-hero{
        grid-template-columns:1fr;

        gap:16px;

        border-radius:6px;
    }

    .home-hero h1{
        font-size:23px;
    }

    .home-hero-mark{
        display:none;
    }

    .home-actions{
        grid-template-columns:1fr;
    }

    .home-card{
        padding:18px;

        border-radius:6px;
    }
}


@media(max-width:420px){

    .home-card-top{
        align-items:flex-start;
    }

    .event-status{
        width:100%;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        scroll-behavior:auto !important;
        transition:none !important;
    }

}

