
/* ==========================================================
   GO-STYLES — COMMUNAUTÉ — ÉDITION MAISON 1.1
   ========================================================== */
body.gscim-maison{
    --gs-ink:#141414;
    --gs-paper:#f6f2ed;
    --gs-cream:#eee7de;
    --gs-gold:#b18459;
    --gs-gold2:#c79a6b;
    --gs-gold-dark:#775538;
    --gs-line:rgba(177,132,89,.42);
    --gs-shadow:0 18px 44px rgba(57,39,24,.08);
    background:var(--gs-paper)!important;
    color:var(--gs-ink)!important;
}
body.gscim-maison #content.site-content{background:var(--gs-paper)!important}
body.gscim-maison .site-content>.container{max-width:1220px!important}

/* ==========================================================
   PAGE GÉNÉRALE — HERO
   ========================================================== */
body.gscim-maison.directory.members .lm-site-header-section{
    margin:0!important;
    background:#17120f!important;
}
body.gscim-maison.directory.members .lm-site-header-section .lm-header-banner{
    height:360px!important;
    position:relative!important;
    overflow:hidden!important;
    background:#17120f!important;
}
body.gscim-maison.directory.members .lm-header-banner-overlay{
    position:absolute!important;
    inset:0!important;
    background-position:center 43%!important;
    background-size:cover!important;
    filter:saturate(.72) contrast(1.03)!important;
    transform:scale(1.015)!important;
}
body.gscim-maison.directory.members .lm-header-banner:after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    background:
      linear-gradient(90deg,rgba(20,15,11,.77) 0%,rgba(20,15,11,.48) 48%,rgba(20,15,11,.28) 100%),
      linear-gradient(180deg,rgba(20,15,11,.04),rgba(20,15,11,.36))!important;
    z-index:1!important;
}
body.gscim-maison.directory.members .rg-sub-header-inner-section{
    position:relative!important;
    z-index:2!important;
    height:100%!important;
    display:flex!important;
    align-items:flex-end!important;
}
body.gscim-maison.directory.members .lm-header-title-wrapper{
    padding-bottom:54px!important;
    max-width:1180px!important;
    width:100%!important;
}
body.gscim-maison.directory.members h1.lm-header-title{
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:clamp(52px,6vw,78px)!important;
    font-weight:400!important;
    line-height:.96!important;
    letter-spacing:-.045em!important;
    color:#fff!important;
    text-shadow:none!important;
    margin:0!important;
}
body.gscim-maison.directory.members .gscim-community-intro{
    max-width:620px!important;
    margin:18px 0 0!important;
    color:rgba(255,255,255,.88)!important;
    font-size:16px!important;
    line-height:1.6!important;
    letter-spacing:.01em!important;
}

/* ==========================================================
   PAGE GÉNÉRALE — ANNUAIRE
   ========================================================== */
body.gscim-maison.directory.members .members-directory-wrapper{
    padding:54px 0 82px!important;
}
body.gscim-maison.directory.members .members-directory-container{
    background:transparent!important;
}
body.gscim-maison.directory.members #buddypress .members-type-navs{
    border:0!important;
    background:transparent!important;
    padding:0 0 22px!important;
    margin:0!important;
}
body.gscim-maison.directory.members #buddypress .members-type-navs ul{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    gap:8px!important;
}
body.gscim-maison.directory.members #buddypress .members-type-navs li a{
    background:#fff!important;
    color:#5a4b40!important;
    border:1px solid rgba(177,132,89,.28)!important;
    border-radius:999px!important;
    padding:10px 16px!important;
    font-size:12px!important;
    font-weight:700!important;
    letter-spacing:.03em!important;
}
body.gscim-maison.directory.members #buddypress .members-type-navs li.selected a,
body.gscim-maison.directory.members #buddypress .members-type-navs li a:hover{
    background:var(--gs-gold-dark)!important;
    color:#fff!important;
    border-color:var(--gs-gold-dark)!important;
}

/* Filtres */
body.gscim-maison.directory.members #buddypress .bb-subnav-filters-container,
body.gscim-maison.directory.members #buddypress .subnav-filters{
    background:#fff!important;
    border:1px solid rgba(177,132,89,.25)!important;
    border-radius:18px!important;
    padding:14px 16px!important;
    margin:0 0 26px!important;
    box-shadow:none!important;
}
body.gscim-maison.directory.members #buddypress input[type="search"],
body.gscim-maison.directory.members .gs-member-search-input,
body.gscim-maison.directory.members #buddypress select{
    border-color:rgba(177,132,89,.36)!important;
    background:#fbfaf8!important;
    border-radius:999px!important;
}
body.gscim-maison.directory.members #buddypress input[type="search"]:focus,
body.gscim-maison.directory.members .gs-member-search-input:focus{
    border-color:var(--gs-gold)!important;
    box-shadow:0 0 0 3px rgba(177,132,89,.10)!important;
}

/* 4 cartes élégantes — écrase l'ancien CSS 5 colonnes / avatar 60px */
@media(min-width:1024px){
    body.gscim-maison.directory.members #buddypress ul#members-list.item-list.grid{
        display:grid!important;
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
        gap:20px!important;
    }
}
body.gscim-maison.directory.members #buddypress ul#members-list.item-list.grid>li{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
}
body.gscim-maison.directory.members #buddypress ul#members-list>li .list-wrap{
    position:relative!important;
    overflow:hidden!important;
    min-height:326px!important;
    padding:0 20px 24px!important;
    background:#fff!important;
    border:1px solid var(--gs-line)!important;
    border-radius:24px!important;
    box-shadow:none!important;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
body.gscim-maison.directory.members #buddypress ul#members-list>li .list-wrap:hover{
    transform:translateY(-4px)!important;
    border-color:var(--gs-gold)!important;
    box-shadow:var(--gs-shadow)!important;
}

/* bande image de couverture */
body.gscim-maison.directory.members #buddypress .wbtm-mem-cover-img{
    display:block!important;
    height:104px!important;
    margin:0 -20px 0!important;
    overflow:hidden!important;
    background:linear-gradient(135deg,#35271f,#9b704b)!important;
}
body.gscim-maison.directory.members #buddypress .wbtm-mem-cover-img img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
    filter:saturate(.70) contrast(.98)!important;
}

/* avatar doré chevauchant la couverture */
body.gscim-maison.directory.members #buddypress ul#members-list .item-avatar{
    margin:-54px auto 12px!important;
    position:relative!important;
    z-index:2!important;
    width:116px!important;
}
body.gscim-maison.directory.members #buddypress ul#members-list .item-avatar img.avatar,
body.gscim-maison.directory.members #buddypress ul.item-list.grid>li .item-avatar img{
    width:116px!important;
    height:116px!important;
    min-width:116px!important;
    min-height:116px!important;
    max-width:116px!important;
    max-height:116px!important;
    object-fit:cover!important;
    border-radius:50%!important;
    border:4px solid #fff!important;
    outline:2px solid var(--gs-gold2)!important;
    box-shadow:0 10px 25px rgba(49,31,18,.15)!important;
}

body.gscim-maison.directory.members #buddypress ul#members-list .item{
    text-align:center!important;
}
body.gscim-maison.directory.members #buddypress ul#members-list h2.list-title{
    margin:8px 0 4px!important;
}
body.gscim-maison.directory.members #buddypress ul#members-list h2.list-title a{
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:22px!important;
    line-height:1.1!important;
    font-weight:400!important;
    color:var(--gs-ink)!important;
    text-transform:none!important;
}
body.gscim-maison.directory.members #buddypress ul#members-list .item-meta{
    display:none!important;
}
body.gscim-maison.directory.members #buddypress ul#members-list .action-wrap,
body.gscim-maison.directory.members #buddypress ul#members-list .footer-button-wrap{
    margin-top:14px!important;
}
body.gscim-maison.directory.members #buddypress ul#members-list .action-wrap a,
body.gscim-maison.directory.members #buddypress ul#members-list .action-wrap button,
body.gscim-maison.directory.members #buddypress ul#members-list .footer-button-wrap a,
body.gscim-maison.directory.members #buddypress ul#members-list .footer-button-wrap button{
    border-radius:999px!important;
    border:1px solid rgba(177,132,89,.42)!important;
    background:#fff!important;
    color:var(--gs-gold-dark)!important;
    font-size:11px!important;
    font-weight:700!important;
    padding:8px 13px!important;
}
body.gscim-maison.directory.members #buddypress ul#members-list .action-wrap a:hover,
body.gscim-maison.directory.members #buddypress ul#members-list .action-wrap button:hover{
    background:var(--gs-gold-dark)!important;
    color:#fff!important;
}

/* ==========================================================
   PROFIL MEMBRE — VRAIE ÉDITION MAISON
   ========================================================== */
body.gscim-maison.bp-user #buddypress #item-header{
    margin:32px 0 0!important;
}
body.gscim-maison.bp-user #buddypress #cover-image-container{
    position:relative!important;
    overflow:hidden!important;
    border:1px solid var(--gs-line)!important;
    border-radius:28px!important;
    background:#fff!important;
    box-shadow:var(--gs-shadow)!important;
}
body.gscim-maison.bp-user #buddypress #header-cover-image{
    height:320px!important;
    overflow:hidden!important;
    background:#251d18!important;
}
body.gscim-maison.bp-user #buddypress #header-cover-image img.header-cover-img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
    filter:saturate(.74) contrast(1.02)!important;
}
body.gscim-maison.bp-user #buddypress #header-cover-image:after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    background:linear-gradient(180deg,rgba(17,13,10,.03) 20%,rgba(17,13,10,.68) 100%)!important;
}
body.gscim-maison.bp-user #buddypress #item-header-cover-image{
    position:relative!important;
    z-index:3!important;
    margin-top:-105px!important;
    padding:0 34px 30px!important;
}
body.gscim-maison.bp-user #buddypress .wbtm-member-info-section{
    display:flex!important;
    align-items:flex-end!important;
    gap:25px!important;
}
body.gscim-maison.bp-user #buddypress #item-header-avatar{
    margin:0!important;
    flex:0 0 auto!important;
}
body.gscim-maison.bp-user #buddypress #item-header-avatar img.avatar{
    width:154px!important;
    height:154px!important;
    min-width:154px!important;
    min-height:154px!important;
    border-radius:50%!important;
    object-fit:cover!important;
    border:5px solid #fff!important;
    outline:2px solid var(--gs-gold2)!important;
    box-shadow:0 18px 38px rgba(39,27,18,.22)!important;
}
body.gscim-maison.bp-user #buddypress #item-header-content{
    flex:1!important;
    margin:0!important;
    padding:0 0 8px!important;
}
body.gscim-maison.bp-user #buddypress #item-header-content h2.user-nicename{
    display:inline-block!important;
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:clamp(42px,5vw,62px)!important;
    line-height:.98!important;
    font-weight:400!important;
    letter-spacing:-.04em!important;
    color:#fff!important;
    text-shadow:0 2px 16px rgba(0,0,0,.28)!important;
    margin:0!important;
}

/* CŒUR CONSERVÉ, mais réhabillé Maison */
body.gscim-maison.bp-user #item-header-content .rtm-profile-like-wrap{
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    margin:0 0 0 14px!important;
    vertical-align:middle!important;
    transform:translateY(-4px)!important;
}
body.gscim-maison.bp-user #item-header-content .rtm-heart-btn,
body.gscim-maison.bp-user #item-header-content .rtm-heart-btn:focus,
body.gscim-maison.bp-user #item-header-content .rtm-heart-btn:active,
body.gscim-maison.bp-user #item-header-content .rtm-heart-btn:visited{
    all:unset!important;
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    border-radius:50%!important;
    cursor:pointer!important;
    font-size:28px!important;
    line-height:1!important;
    color:#f0ddc7!important;
    background:rgba(255,255,255,.13)!important;
    border:1px solid rgba(255,255,255,.46)!important;
    transition:transform .18s ease,background .18s ease,color .18s ease!important;
}
body.gscim-maison.bp-user #item-header-content .rtm-heart-btn:hover{
    all:unset!important;
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    border-radius:50%!important;
    cursor:pointer!important;
    font-size:28px!important;
    line-height:1!important;
    color:#fff2df!important;
    background:rgba(177,132,89,.72)!important;
    border:1px solid rgba(255,255,255,.58)!important;
    transform:scale(1.06)!important;
}
body.gscim-maison.bp-user #item-header-content .rtm-heart-btn.liked,
body.gscim-maison.bp-user #item-header-content .rtm-heart-btn.liked:focus{
    all:unset!important;
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    border-radius:50%!important;
    cursor:pointer!important;
    font-size:28px!important;
    line-height:1!important;
    color:#fff6e9!important;
    background:var(--gs-gold-dark)!important;
    border:1px solid #d9b58f!important;
}
body.gscim-maison.bp-user #item-header-content .rtm-heart-btn.liked:hover{
    all:unset!important;
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    border-radius:50%!important;
    cursor:pointer!important;
    font-size:28px!important;
    line-height:1!important;
    color:#fff!important;
    background:#5f432d!important;
    border:1px solid #d9b58f!important;
}
body.gscim-maison.bp-user #item-header-content .rtm-like-count{
    color:rgba(255,255,255,.90)!important;
    font-size:11px!important;
    letter-spacing:.10em!important;
    text-transform:uppercase!important;
    font-weight:700!important;
}

/* bouton Connecter et actions */
body.gscim-maison.bp-user #buddypress #item-buttons button,
body.gscim-maison.bp-user #buddypress #item-buttons a{
    border:1px solid rgba(255,255,255,.62)!important;
    background:rgba(255,255,255,.94)!important;
    color:#4a3424!important;
    border-radius:999px!important;
    padding:9px 17px!important;
    font-size:11px!important;
    font-weight:700!important;
    letter-spacing:.04em!important;
    box-shadow:none!important;
}
body.gscim-maison.bp-user #buddypress #item-buttons button:hover{
    background:#fff!important;
    color:var(--gs-gold-dark)!important;
}

/* navigation et contenu : calme, ivoire, or */
body.gscim-maison.bp-user #buddypress .bp-wrap{
    background:transparent!important;
}
body.gscim-maison.bp-user #buddypress #object-nav{
    background:#fff!important;
    border:1px solid var(--gs-line)!important;
    border-radius:20px!important;
    padding:12px!important;
    box-shadow:none!important;
}
body.gscim-maison.bp-user #buddypress #object-nav ul{
    display:flex!important;
    flex-direction:column!important;
    gap:4px!important;
}
body.gscim-maison.bp-user #buddypress #object-nav li a{
    border-radius:12px!important;
    color:#55483e!important;
    font-size:12px!important;
    font-weight:600!important;
    padding:11px 13px!important;
}
body.gscim-maison.bp-user #buddypress #object-nav li.current a,
body.gscim-maison.bp-user #buddypress #object-nav li.selected a,
body.gscim-maison.bp-user #buddypress #object-nav li a:hover{
    background:var(--gs-gold-dark)!important;
    color:#fff!important;
}
body.gscim-maison.bp-user #buddypress #item-body{
    background:#fff!important;
    border:1px solid var(--gs-line)!important;
    border-radius:22px!important;
    padding:28px!important;
    box-shadow:none!important;
}
body.gscim-maison.bp-user .rtm-profile-card{
    background:#fbfaf8!important;
    border:1px solid rgba(177,132,89,.24)!important;
    border-radius:18px!important;
    padding:24px!important;
    box-shadow:none!important;
}
body.gscim-maison.bp-user .rtm-profile-card-value.rtm-pseudo,
body.gscim-maison.bp-user .rtm-profile-card-likes .rtm-likes-stat-number{
    color:var(--gs-gold-dark)!important;
}
body.gscim-maison.bp-user .rtm-profile-card-likes .rtm-likes-stat-box{
    border-color:rgba(177,132,89,.26)!important;
    background:#fff!important;
}
body.gscim-maison.bp-user .rtm-profile-card-likes .rtm-likes-stat-box:hover{
    border-color:var(--gs-gold)!important;
    background:#f8f1e9!important;
}

/* l'ancien bouton rose ne doit plus exister visuellement */
body.gscim-maison .view-profile-btn{
    background:var(--gs-gold-dark)!important;
    color:#fff!important;
    border-radius:999px!important;
    box-shadow:none!important;
}
body.gscim-maison .view-profile-btn:hover{
    background:#5f432d!important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media(max-width:1023px) and (min-width:641px){
    body.gscim-maison.directory.members #buddypress ul#members-list.item-list.grid{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:18px!important;
    }
}
@media(max-width:640px){
    body.gscim-maison.directory.members .lm-site-header-section .lm-header-banner{height:300px!important}
    body.gscim-maison.directory.members .lm-header-title-wrapper{padding:0 20px 38px!important}
    body.gscim-maison.directory.members h1.lm-header-title{font-size:48px!important}
    body.gscim-maison.directory.members #buddypress ul#members-list.item-list.grid{
        display:grid!important;
        grid-template-columns:1fr!important;
        gap:16px!important;
    }

    body.gscim-maison.bp-user #buddypress #header-cover-image{height:230px!important}
    body.gscim-maison.bp-user #buddypress #item-header-cover-image{
        margin-top:-66px!important;
        padding:0 18px 22px!important;
    }
    body.gscim-maison.bp-user #buddypress .wbtm-member-info-section{
        flex-direction:column!important;
        align-items:center!important;
        text-align:center!important;
        gap:10px!important;
    }
    body.gscim-maison.bp-user #buddypress #item-header-avatar img.avatar{
        width:126px!important;height:126px!important;min-width:126px!important;min-height:126px!important;
    }
    body.gscim-maison.bp-user #buddypress #item-header-content{
        width:100%!important;
        background:#fff!important;
        border-radius:18px!important;
        padding:16px!important;
    }
    body.gscim-maison.bp-user #buddypress #item-header-content h2.user-nicename{
        color:var(--gs-ink)!important;
        text-shadow:none!important;
        font-size:40px!important;
    }
    body.gscim-maison.bp-user #item-header-content .rtm-profile-like-wrap{
        display:flex!important;
        justify-content:center!important;
        margin:10px 0 0!important;
        transform:none!important;
    }
    body.gscim-maison.bp-user #item-header-content .rtm-like-count{color:var(--gs-gold-dark)!important}
    body.gscim-maison.bp-user #item-header-content .rtm-heart-btn,
    body.gscim-maison.bp-user #item-header-content .rtm-heart-btn:focus,
    body.gscim-maison.bp-user #item-header-content .rtm-heart-btn:active,
    body.gscim-maison.bp-user #item-header-content .rtm-heart-btn:visited{
        color:var(--gs-gold-dark)!important;
        background:#f5eee7!important;
        border-color:rgba(177,132,89,.40)!important;
    }
    body.gscim-maison.bp-user #buddypress #item-body{padding:18px!important}
}
