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

    --ink:#181818;
    --text:#292929;
    --muted:#737373;

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

    --green:#147747;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

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

    padding:0;

    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;
}


/* ============================================================
   CONTENEUR
   ============================================================ */

.container{
    width:100%;
    max-width:1240px;

    margin:0 auto;

    padding:
        24px
        20px
        48px;
}


/* ============================================================
   BANDEAU BNI / FG SUPPORT
   ============================================================ */

.directory-brand{
    position:relative;

    width:100%;
    min-height:96px;

    display:grid;

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

    align-items:center;

    gap:20px;

    padding:
        14px
        26px;

    margin-bottom:18px;

    background:#fff;

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

    border-radius:8px;

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


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

    display:flex;

    align-items:center;
}


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

    width:auto;
    height:auto;

    object-fit:contain;
}


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


.directory-brand-bni img{
    max-width:145px;
    max-height:62px;
}


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


.directory-brand-fg img{
    max-width:190px;
    max-height:48px;
}


.directory-brand-center{
    display:flex;

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

    text-align:center;
}


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

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

    padding:
        9px
        15px;

    background:
        var(--bni-red);

    color:#fff;

    border-radius:5px;

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

    font-weight:750;

    white-space:nowrap;
}


/* ============================================================
   INTRODUCTION
   ============================================================ */

.directory-intro{
    width:100%;

    display:flex;

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

    gap:25px;

    padding:
        22px
        25px;

    margin-bottom:14px;

    background:#fff;

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

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

    border-radius:7px;

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


.header{
    min-width:0;

    margin:0;

    text-align:left;

    color:var(--ink);
}


.header h1{
    margin:0;

    color:#1d1d1d;

    font-size:26px;
    line-height:1.2;

    font-weight:750;

    letter-spacing:-.4px;
}


.header p{
    margin:
        6px
        0
        0;

    color:var(--muted);

    font-size:13px;
    line-height:1.5;

    font-weight:500;
}


/* ============================================================
   PDF
   ============================================================ */

.pdf-box{
    flex:0 0 auto;

    margin:0;

    text-align:right;
}


.pdf-btn{
    min-height:40px;

    display:inline-flex;

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

    padding:
        9px
        13px;

    background:
        var(--bni-red);

    color:#fff;

    border:
        1px solid
        var(--bni-red);

    border-radius:4px;

    text-decoration:none;

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

    font-weight:750;

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


.pdf-btn::before{
    content:"PDF";

    margin-right:8px;

    padding:
        3px
        4px;

    background:
        rgba(255,255,255,.15);

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

    border-radius:2px;

    font-size:8px;

    letter-spacing:.4px;
}


.pdf-btn:hover{
    background:
        var(--bni-red-dark);

    border-color:
        var(--bni-red-dark);

    transform:
        translateY(-1px);
}


/* ============================================================
   RECHERCHE
   ============================================================ */

.filter-box{
    width:100%;

    padding:
        19px
        21px;

    margin-bottom:16px;

    background:#fff;

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

    border-radius:7px;

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


.filter-title{
    margin-bottom:13px;

    color:#252525;

    font-size:15px;

    font-weight:750;

    text-align:left;
}


.filter-title::before{
    content:"";

    display:inline-block;

    width:4px;
    height:14px;

    margin-right:8px;

    vertical-align:-2px;

    background:
        var(--bni-red);
}


.filter-form{
    display:grid;

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

    gap:11px;

    align-items:end;
}


.form-group{
    min-width:0;
}


.form-group label{
    display:block;

    margin-bottom:6px;

    color:#444;

    font-size:11px;

    font-weight:750;
}


.form-group input,
.form-group select{
    width:100%;
    min-height:42px;

    padding:
        9px
        11px;

    background:#fff;

    color:#252525;

    border:
        1px solid
        #d5d0ca;

    border-radius:4px;

    font-family:inherit;

    font-size:14px;

    font-weight:500;

    outline:none;

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


.form-group input:hover,
.form-group select:hover{
    border-color:#bcb6ae;
}


.form-group input:focus,
.form-group select:focus{
    border-color:
        var(--bni-red);

    box-shadow:
        0 0 0 3px
        rgba(181,18,43,.08);
}


.filter-actions{
    display:flex;

    gap:7px;
}


.search-btn,
.reset-btn{
    min-height:42px;

    display:inline-flex;

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

    padding:
        9px
        13px;

    border-radius:4px;

    font-family:inherit;

    font-size:12px;

    font-weight:750;

    text-decoration:none;

    white-space:nowrap;

    cursor:pointer;
}


.search-btn{
    background:
        var(--bni-red);

    color:#fff;

    border:
        1px solid
        var(--bni-red);
}


.search-btn:hover{
    background:
        var(--bni-red-dark);

    border-color:
        var(--bni-red-dark);
}


.reset-btn{
    background:#fff;

    color:#555;

    border:
        1px solid
        #d8d3cc;
}


.reset-btn:hover{
    background:#f7f5f2;

    border-color:#bfb8b0;
}


.counter{
    margin-top:13px;

    padding-top:11px;

    border-top:
        1px solid
        #eeeae5;

    color:#7b7b7b;

    text-align:left;

    font-size:11px;

    font-weight:600;
}


.counter span{
    color:
        var(--bni-red);

    font-size:14px;

    font-weight:800;
}


/* ============================================================
   GRILLE ANNUAIRE
   ============================================================ */

.members-grid{
    display:grid;

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

    gap:14px;

    align-items:stretch;
}


/* ============================================================
   FICHE MEMBRE
   ============================================================ */

.card{
    position:relative;

    min-width:0;

    display:grid;

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

    gap:18px;

    align-items:start;

    margin:0;

    padding:
        19px;

    background:#fff;

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

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

    border-radius:6px;

    box-shadow:
        0 10px 27px
        rgba(61,0,12,.085);

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


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

    box-shadow:
        0 15px 32px
        rgba(61,0,12,.13);

    border-color:#d9ced0;

    border-left-color:
        var(--bni-red);
}


/* ============================================================
   PHOTO + LOGO
   ============================================================ */

.images{
    width:98px;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:9px;
}


.image-frame{
    width:88px;

    overflow:hidden;

    display:flex;

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

    background:#fff;

    border:
        1px solid
        #e1ddd7;

    border-radius:5px;
}


.photo-frame{
    height:88px;

    background:#f3f2f0;
}


.photo-img{
    display:block;

    width:100%;
    height:100%;

    object-fit:cover;

    object-position:center;
}


.logo-frame{
    height:61px;

    padding:7px;

    background:#fff;
}


.logo-img{
    display:block;

    max-width:100%;
    max-height:100%;

    object-fit:contain;

    object-position:center;
}


/* ============================================================
   CONTENU MEMBRE
   ============================================================ */

.content{
    min-width:0;
}


.name{
    margin:
        1px
        0
        2px;

    color:
        var(--bni-red);

    font-size:19px;
    line-height:1.2;

    font-weight:800;

    letter-spacing:-.25px;
}


.societe{
    margin-bottom:12px;

    color:#242424;

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

    font-weight:750;
}


.info{
    margin:0;

    padding:
        5px
        0;

    color:#525252;

    border-bottom:
        1px solid
        #f0ede9;

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

    overflow-wrap:anywhere;
}


.label{
    margin-right:4px;

    color:#85807a;

    font-size:10px;

    font-weight:750;

    text-transform:uppercase;

    letter-spacing:.25px;
}


/* ============================================================
   SITES INTERNET
   ============================================================ */

.links{
    display:flex;

    flex-wrap:wrap;

    gap:6px;

    margin-top:12px;
}


.links a{
    display:inline-flex;

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

    min-height:32px;

    margin:0;

    padding:
        6px
        9px;

    background:#fff;

    color:
        var(--bni-red);

    border:
        1px solid
        #e2bcc3;

    border-radius:4px;

    text-decoration:none;

    font-size:10px;

    font-weight:750;

    overflow-wrap:anywhere;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}


.links a:hover{
    background:
        var(--bni-red);

    color:#fff;

    border-color:
        var(--bni-red);
}


/* ============================================================
   ACTIONS SUPER ADMIN
   ============================================================ */

.admin-actions{
    display:flex;

    flex-wrap:wrap;

    gap:6px;

    margin-top:12px;

    padding-top:11px;

    border-top:
        1px solid
        #ebe7e2;
}


.admin-actions a,
.admin-actions button{
    display:inline-flex;

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

    min-height:32px;

    margin:0;

    padding:
        6px
        9px;

    border-radius:4px;

    text-decoration:none;

    font-size:10px;

    font-weight:750;
}


.edit-btn{
    background:#272727;

    color:#fff;
}


.edit-btn:hover{
    background:#111;
}


.delete-btn{
    background:#fff;

    color:
        var(--bni-red);

    border:
        1px solid
        #e2bcc3;
}


.delete-btn:hover{
    background:#fff3f5;

    border-color:#d998a3;
}


.admin-actions button{
    font-family:inherit;
    cursor:pointer;
}


.member-inactive-label{
    display:inline-flex;

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

    min-height:32px;

    padding:
        6px
        9px;

    border:
        1px solid
        #d8d3cd;

    border-radius:5px;

    background:#f5f3f0;
    color:#6f6a65;

    font-size:12px;
    font-weight:750;
}


.member-action-message{
    margin:
        0
        0
        18px;

    padding:
        12px
        14px;

    border-radius:6px;

    font-size:13px;
    font-weight:750;

    line-height:1.5;
}


.member-action-message.success{
    background:#edf8f1;

    border:
        1px solid
        #a9d8bb;

    color:#12633b;
}


.member-action-message.error{
    background:#fff1f3;

    border:
        1px solid
        #e8b1ba;

    color:#8f0e21;
}


/* ============================================================
   AUCUN RESULTAT
   ============================================================ */

.empty{
    width:100%;

    padding:
        22px;

    background:#fff;

    color:#555;

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

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

    border-radius:6px;

    box-shadow:
        0 10px 27px
        rgba(61,0,12,.08);

    text-align:center;

    font-size:13px;

    font-weight:650;
}


/* ============================================================
   FOCUS ACCESSIBLE
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible{
    outline:
        3px solid
        rgba(181,18,43,.18);

    outline-offset:2px;
}


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

@media(max-width:950px){

    .members-grid{
        grid-template-columns:1fr;
    }

    .directory-brand{
        grid-template-columns:
            130px
            1fr
            170px;
    }

    .filter-form{
        grid-template-columns:
            minmax(0,1fr)
            210px;
    }

    .filter-actions{
        grid-column:1/-1;

        justify-content:flex-end;
    }
}


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

@media(max-width:700px){

    .container{
        padding:
            13px
            12px
            32px;
    }

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

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

        min-height:0;

        gap:
            12px
            14px;

        padding:
            14px;

        border-radius:6px;
    }

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

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

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

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

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

    .directory-brand-center strong{
        padding:
            8px
            12px;

        font-size:11px;

        white-space:normal;
    }


    .directory-intro{
        align-items:flex-start;

        padding:
            18px
            16px;

        border-radius:6px;
    }

    .header h1{
        font-size:21px;
    }

    .header p{
        font-size:12px;
    }


    .filter-box{
        padding:
            17px
            15px;

        border-radius:6px;
    }

    .filter-form{
        grid-template-columns:1fr;
    }

    .filter-actions{
        grid-column:auto;

        justify-content:stretch;
    }

    .search-btn,
    .reset-btn{
        flex:1;
    }


    .members-grid{
        gap:10px;
    }

    .card{
        grid-template-columns:
            88px
            minmax(0,1fr);

        gap:14px;

        padding:
            15px;

        border-radius:5px;
    }

    .images{
        width:88px;
    }

    .image-frame{
        width:78px;
    }

    .photo-frame{
        height:78px;
    }

    .logo-frame{
        height:55px;
    }

    .name{
        font-size:17px;
    }
}


/* ============================================================
   PETIT MOBILE
   ============================================================ */

@media(max-width:480px){

    .directory-intro{
        flex-direction:column;

        gap:12px;
    }

    .pdf-box{
        width:100%;

        text-align:left;
    }


    .pdf-btn{
        width:100%;
    }


    .filter-actions{
        flex-direction:column;
    }


    .card{
        grid-template-columns:1fr;
    }


    .images{
        width:100%;

        flex-direction:row;

        justify-content:flex-start;

        gap:8px;
    }


    .image-frame{
        width:72px;
    }


    .photo-frame{
        height:72px;
    }


    .logo-frame{
        height:72px;
    }


    .name{
        margin-top:2px;
    }


    .links a{
        max-width:100%;
    }
}


/* ============================================================
   BNI DIRECTORY MEMBER ROLE V2
   Toutes les fonctions BNI sont affichees en vert.
   Annuaire public uniquement.
   ============================================================ */

.member-bni-role{
    width:max-content;
    max-width:100%;

    display:inline-flex;

    align-items:center;

    margin:
        -4px
        0
        13px;

    padding:
        5px
        8px;

    box-sizing:border-box;

    background:
        #edf8f2;

    color:
        #147447;

    border:
        1px solid
        #c5e6d3;

    border-radius:4px;

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

    font-weight:800;

    letter-spacing:.15px;
}


@media(max-width:520px){

    .member-bni-role{
        font-size:9.5px;
    }

}
