/* ============================================================
   PRIVATE EVENTS V99.35 — LIGHT MEMBER PAGES POLISH
   Cible exclusivement les pages Membres en thème clair.
   Velvet et les autres catalogues restent inchangés.
   ============================================================ */

html[data-theme="light"] body.members-index-page {
    --pe35-member-card: #f5eaeb;
    --pe35-member-surface: rgba(255, 250, 247, 0.94);
    --pe35-member-border: rgba(108, 67, 84, 0.26);
    --pe35-member-border-strong: rgba(108, 67, 84, 0.38);
    --pe35-member-shadow: 0 8px 20px rgba(77, 48, 60, 0.10);
    --pe35-member-shadow-strong: 0 10px 24px rgba(77, 48, 60, 0.13);
    --pe35-member-text: #30242b;
    --pe35-member-text-soft: #68535e;
    --pe35-member-action-bg: #f8ecef;
    --pe35-member-action-border: rgba(108, 67, 84, 0.28);
    --pe35-member-action-text: #5b3f4c;
}

/* ------------------------------------------------------------
   Membres — thème clair, vue Grille
   Rend la lecture plus stable et les actions latérales plus cohérentes.
   ------------------------------------------------------------ */
html[data-theme="light"] body.members-index-page
.member-tiles-grid:not(.v9845-member-list-view) .member-tile {
    background: #ffffff;
    border-color: rgba(108, 67, 84, 0.22);
    box-shadow: 0 10px 24px rgba(77, 48, 60, 0.12);
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid:not(.v9845-member-list-view) .member-tile:hover {
    border-color: rgba(108, 67, 84, 0.34);
    box-shadow: 0 14px 30px rgba(77, 48, 60, 0.16);
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid:not(.v9845-member-list-view) .member-tile-info {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 11px 13px 11px 12px;
    border-radius: 13px;
    background: rgba(23, 16, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid:not(.v9845-member-list-view) .member-tile-info h2 {
    margin-bottom: 6px;
    font-size: clamp(0.92rem, 1.28vw, 1.10rem);
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid:not(.v9845-member-list-view) .member-tile-location {
    display: block;
    line-height: 1.28;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid:not(.v9845-member-list-view) .member-tile-quick-actions {
    top: 10px;
    right: 10px;
    gap: 6px;
    align-items: center;
}

/* ------------------------------------------------------------
   Membres — thème clair, vue Liste
   Recentre le cartouche, élargit le texte utile et uniformise l’axe des actions.
   ------------------------------------------------------------ */
html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile,
html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-main-link,
html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-visual {
    min-height: 120px;
    height: 120px;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile {
    background: var(--pe35-member-card) !important;
    border-color: var(--pe35-member-border) !important;
    box-shadow: var(--pe35-member-shadow) !important;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile:hover {
    background: #f8eeef !important;
    border-color: var(--pe35-member-border-strong) !important;
    box-shadow: var(--pe35-member-shadow-strong) !important;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-photo,
html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-placeholder {
    width: 96px;
    height: 120px;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-shade {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.08) 0,
        rgba(0, 0, 0, 0.11) 72px,
        rgba(245, 234, 235, 0.84) 92px,
        rgba(245, 234, 235, 0.97) 106px,
        var(--pe35-member-card) 128px,
        var(--pe35-member-card) 100%
    ) !important;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-info {
    top: 50% !important;
    right: 88px !important;
    bottom: auto !important;
    left: 108px !important;
    transform: translateY(-50%);
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px !important;
    background: var(--pe35-member-surface) !important;
    border: 1px solid var(--pe35-member-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(77, 48, 60, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--pe35-member-text) !important;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-info h2,
html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-info h2 * {
    margin: 0 !important;
    color: var(--pe35-member-text) !important;
    text-shadow: none !important;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-presence,
html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-presence span {
    color: #66535c !important;
    text-shadow: none !important;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-presence.is-online,
html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-presence.is-online span {
    color: #2d7550 !important;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-location,
html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-location span {
    display: block;
    color: var(--pe35-member-text-soft) !important;
    text-shadow: none !important;
    line-height: 1.28;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-open {
    right: 11px;
    bottom: 10px;
    color: #7a5d69 !important;
    text-shadow: none !important;
}

html[data-theme="light"] body.members-index-page
.member-tiles-grid.v9845-member-list-view .member-tile-quick-actions {
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    gap: 6px;
    align-items: center;
}

/* ------------------------------------------------------------
   Actions rapides claires sur pages Membres
   Même gabarit en Grille et Liste pour éviter les décalages.
   ------------------------------------------------------------ */
html[data-theme="light"] body.members-index-page
:is(.member-tile-message, .member-tile-lcs, .v801-card-follow) {
    background: var(--pe35-member-action-bg) !important;
    border-color: var(--pe35-member-action-border) !important;
    color: var(--pe35-member-action-text) !important;
    box-shadow: 0 3px 8px rgba(77, 48, 60, 0.07) !important;
}

html[data-theme="light"] body.members-index-page .member-tile-message,
html[data-theme="light"] body.members-index-page .v801-card-follow {
    width: 36px;
    height: 36px;
}

html[data-theme="light"] body.members-index-page .member-tile-lcs {
    width: 36px;
    min-width: 36px;
    height: 24px;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html[data-theme="light"] body.members-index-page button.member-tile-lcs:hover,
html[data-theme="light"] body.members-index-page button.member-tile-lcs:focus-visible,
html[data-theme="light"] body.members-index-page .member-tile-message:hover,
html[data-theme="light"] body.members-index-page .member-tile-message:focus-visible,
html[data-theme="light"] body.members-index-page .v801-card-follow:hover,
html[data-theme="light"] body.members-index-page .v801-card-follow:focus-visible {
    background: #f2dde3 !important;
    border-color: rgba(108, 67, 84, 0.40) !important;
    color: #4f3440 !important;
}

html[data-theme="light"] body.members-index-page .member-tile-message-self:hover {
    background: var(--pe35-member-action-bg) !important;
    border-color: var(--pe35-member-action-border) !important;
    color: var(--pe35-member-action-text) !important;
}

/* ------------------------------------------------------------
   Responsive mobile
   ------------------------------------------------------------ */
@media (max-width: 700px) {
    html[data-theme="light"] body.members-index-page
    .member-tiles-grid:not(.v9845-member-list-view) .member-tile-info {
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 9px 10px 9px 10px;
        border-radius: 11px;
    }

    html[data-theme="light"] body.members-index-page
    .member-tiles-grid:not(.v9845-member-list-view) .member-tile-quick-actions {
        top: 7px;
        right: 7px;
        gap: 5px;
    }

    html[data-theme="light"] body.members-index-page
    .member-tiles-grid.v9845-member-list-view .member-tile,
    html[data-theme="light"] body.members-index-page
    .member-tiles-grid.v9845-member-list-view .member-tile-main-link,
    html[data-theme="light"] body.members-index-page
    .member-tiles-grid.v9845-member-list-view .member-tile-visual {
        min-height: 112px;
        height: 112px;
    }

    html[data-theme="light"] body.members-index-page
    .member-tiles-grid.v9845-member-list-view .member-tile-photo,
    html[data-theme="light"] body.members-index-page
    .member-tiles-grid.v9845-member-list-view .member-tile-placeholder {
        width: 84px;
        height: 112px;
    }

    html[data-theme="light"] body.members-index-page
    .member-tiles-grid.v9845-member-list-view .member-tile-shade {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.10) 0,
            rgba(0, 0, 0, 0.12) 60px,
            rgba(245, 234, 235, 0.84) 80px,
            rgba(245, 234, 235, 0.97) 94px,
            var(--pe35-member-card) 116px,
            var(--pe35-member-card) 100%
        ) !important;
    }

    html[data-theme="light"] body.members-index-page
    .member-tiles-grid.v9845-member-list-view .member-tile-info {
        right: 82px !important;
        left: 92px !important;
        min-height: 68px;
        padding: 9px 10px !important;
        gap: 5px;
    }

    html[data-theme="light"] body.members-index-page .member-tile-message,
    html[data-theme="light"] body.members-index-page .v801-card-follow {
        width: 32px;
        height: 32px;
    }

    html[data-theme="light"] body.members-index-page .member-tile-lcs {
        width: 32px;
        min-width: 32px;
        height: 22px;
        font-size: 0.53rem;
    }
}

@media (max-width: 360px) {
    html[data-theme="light"] body.members-index-page
    .member-tiles-grid.v9845-member-list-view .member-tile-info {
        right: 78px !important;
        left: 89px !important;
    }
}
