/*
 * Play4Geek — surfaces membre / communauté / profils publics
 * Extrait de style.css (l. 16195+) — chargé conditionnellement.
 *
 * @package Play4Geek
 */

/* Member space */
.member-space-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.2rem 1rem 2rem;
}

.member-messages-page {
    max-width: 1380px;
}

.member-space-hero {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(130deg, var(--theme-surface-deep), var(--bg-blue));
}

.member-space-hero h1 {
    margin: 0 0 0.35rem;
}

.member-space-hero p {
    margin: 0;
    color: rgba(239, 246, 255, 0.9);
}

.member-space-notice {
    margin: 0 0 1rem;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
}

.member-space-notice.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.member-space-notice.is-error {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

.member-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.member-space-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1rem;
}

.member-space-nav {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem;
    align-self: start;
    position: sticky;
    top: 84px;
}

.member-space-nav h3 {
    margin: 0 0 0.6rem;
    color: var(--text-dark);
}

.member-space-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.4rem;
}

.member-space-nav a,
.member-nav-logout {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 38px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--muted-text);
    background: transparent;
    border: 1px solid var(--border-color);
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-space-nav a:hover,
.member-nav-logout:hover {
    color: var(--link-color);
    border-color: color-mix(in srgb, var(--link-color) 35%, transparent);
    background: color-mix(in srgb, var(--link-color) 8%, transparent);
}

.member-space-nav a.is-active {
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    color: var(--link-color);
}

.member-space-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    flex-shrink: 0;
    font-size: 0.92rem;
    color: var(--link-color);
    opacity: 0.88;
}

.member-space-nav a.is-active .member-space-nav-icon,
.member-nav-logout:hover .member-space-nav-icon {
    opacity: 1;
}

.member-nav-link-main {
    flex: 1;
    min-width: 0;
}

.member-space-nav a:has(.member-nav-badge) {
    justify-content: space-between;
}

.member-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.48rem;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--muted-text) 14%, transparent);
    color: var(--muted-text);
    flex-shrink: 0;
}

.member-nav-badge.is-active {
    background: rgba(22, 163, 74, 0.16);
    border-color: rgba(22, 163, 74, 0.35);
    color: #166534;
}

.member-nav-badge.is-expired {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.35);
    color: #9a3412;
}

.member-nav-logout {
    cursor: pointer;
}

.member-auth-card,
.member-profile-card {
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 14px;
    padding: 1.85rem 1.35rem 2rem;
    /* Texte lisible sur carte blanche (sans hÃ©riter du corps / thÃ¨me sombre) */
    color: #1f2937;
}

.member-gxp-wallet-card {
    margin-bottom: 1rem;
}

.member-gxp-wallet-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}

.member-gxp-wallet-line {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.member-gxp-wallet-value {
    font-size: 1.15rem;
    color: var(--bg-accent, #1d6fb8);
}

.member-gxp-wallet-actions {
    margin: 0.75rem 0 0;
}

.member-gxp-auctions-link {
    font-weight: 600;
}

.member-gxp-wallet-actions-sep {
    opacity: 0.65;
    padding: 0 0.15rem;
}

.member-gxp-ledger-card .member-gxp-ledger-lead {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.member-gxp-ledger-hint,
.member-gxp-ledger-muted,
.member-gxp-ledger-empty {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #4b5563;
}

.member-gxp-ledger-table-wrap {
    overflow-x: auto;
    margin: 0.5rem 0 1rem;
}

.member-gxp-ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.member-gxp-ledger-table th,
.member-gxp-ledger-table td {
    padding: 0.55rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid rgba(20, 89, 130, 0.12);
}

.member-gxp-ledger-table th {
    font-weight: 700;
    color: #374151;
}

.member-gxp-ledger-delta.is-positive {
    color: #047857;
    font-weight: 600;
}

.member-gxp-ledger-delta.is-negative {
    color: #b91c1c;
    font-weight: 600;
}

.member-gxp-ledger-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
}

.member-gxp-ledger-range {
    margin: 0;
    color: #374151;
}

.member-gxp-ledger-per-page-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.member-gxp-ledger-per-page-label {
    font-weight: 600;
    color: #374151;
}

.member-gxp-ledger-per-page-form select {
    min-width: 4.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(20, 89, 130, 0.25);
    background: #fff;
    font-size: 0.88rem;
}

.member-gxp-ledger-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    margin-top: 1rem;
    font-size: 0.88rem;
}

.member-gxp-ledger-page-prev,
.member-gxp-ledger-page-next {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(20, 89, 130, 0.28);
    text-decoration: none;
    color: var(--bg-accent, #1d6fb8);
    background: rgba(255, 255, 255, 0.9);
}

a.member-gxp-ledger-page-prev:hover,
a.member-gxp-ledger-page-next:hover {
    border-color: rgba(20, 89, 130, 0.5);
}

.member-gxp-ledger-page-prev.is-disabled,
.member-gxp-ledger-page-next.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(20, 89, 130, 0.12);
    color: #6b7280;
}

.member-gxp-ledger-page-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-gxp-ledger-page-list li {
    margin: 0;
    padding: 0;
}

.member-gxp-ledger-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding: 0 0.35rem;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    color: var(--bg-accent, #1d6fb8);
}

a.member-gxp-ledger-page-num:hover {
    border-color: rgba(20, 89, 130, 0.35);
    background: rgba(29, 111, 184, 0.06);
}

.member-gxp-ledger-page-num.is-current {
    border-color: rgba(20, 89, 130, 0.45);
    background: rgba(29, 111, 184, 0.12);
    color: #1e3a5f;
    cursor: default;
}

.member-gxp-ledger-page-ellipsis span {
    display: inline-block;
    padding: 0 0.2rem;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.member-gxp-ledger-page-meta {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
}

.member-gxp-bid-history-block {
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(20, 89, 130, 0.14);
}

.member-gxp-bid-history-heading {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    color: #1f2937;
}

.member-gxp-ledger-action-cell {
    vertical-align: top;
    max-width: 22rem;
}

.member-gxp-ledger-action-main a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.member-gxp-ledger-action-detail {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #6b7280;
}

.member-auth-card.is-active {
    border-color: rgba(30, 115, 190, 0.5);
}

.member-auth-card h2 {
    margin: 0 0 0.75rem;
    color: #111827;
}

.member-auth-form label:not(.member-auth-check) {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.member-auth-form,
.member-profile-form {
    display: grid;
    gap: 0.5rem;
}

.member-auth-form input[type="text"],
.member-auth-form input[type="email"],
.member-auth-form input[type="password"],
.member-auth-form input[type="url"],
.member-profile-form input[type="text"],
.member-profile-form input[type="email"],
.member-profile-form input[type="password"],
.member-profile-form input[type="url"],
.member-profile-form input[type="date"],
.member-profile-form textarea {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    padding: 0.55rem 0.7rem;
    color: #111827;
}

.member-profile-field-hint {
    margin: -0.2rem 0 0.15rem;
    font-size: 0.82rem;
    color: rgba(14, 32, 56, 0.62);
    line-height: 1.35;
}

.member-profile-tab-order-card {
    margin-top: 1.25rem;
}

.member-profile-sidebar-order-card {
    margin-top: 1rem;
}

.member-profile-tab-order-reset-forms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.member-profile-tab-order-reset-forms .member-profile-tab-order-reset-form {
    margin: 0;
}

.member-profile-tab-order-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.member-profile-tab-order-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 10px;
    background: #f8fafc;
    cursor: grab;
    user-select: none;
}

.member-profile-tab-order-item.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.member-profile-tab-order-handle {
    color: rgba(14, 32, 56, 0.45);
    flex-shrink: 0;
}

.member-profile-tab-order-icon {
    width: 1.35rem;
    text-align: center;
    color: var(--bg-accent, #1d6fb8);
    flex-shrink: 0;
}

.member-profile-tab-order-label {
    flex: 1;
    font-weight: 600;
}

.member-profile-tab-order-actions {
    margin: 0.65rem 0 0;
}

.member-profile-tab-order-reset-form {
    margin-top: -0.5rem;
}

.member-auth-form input::placeholder {
    color: #6b7280;
}

.member-profile-form textarea {
    min-height: 110px;
}

.member-about-consoles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.8rem;
}

.member-public-about {
    display: grid;
    gap: 0.6rem;
}

.member-public-about h3 {
    margin: 0.2rem 0 0;
}

.member-about-handles-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.member-about-handles-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.member-about-consoles-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.member-about-consoles-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.22);
    background: rgba(20, 89, 130, 0.08);
}

.member-about-edit-lead {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    color: rgba(14, 32, 56, 0.72);
    line-height: 1.45;
}

.member-about-handles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem 1rem;
    margin-bottom: 0.25rem;
}

.member-about-handles-grid label {
    font-weight: 600;
    font-size: 0.88rem;
}

.member-gaming-handles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.35rem 0 0.85rem;
}

.member-gaming-handle-field {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 16%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface-panel, #f8fafc) 92%, #fff);
    min-width: 0;
}

.member-gaming-handle-field__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.member-gaming-handle-field__icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: var(--bg-blue, #145982);
    font-size: 0.95rem;
}

.member-gaming-handle-field__icon.is-nintendo { color: #e60012; }

.member-gaming-handle-field__icon .p4g-platform-icon-glyph,
.member-gaming-handle-field__icon .mdi {
    font-size: 1.05rem;
    line-height: 1;
    display: inline-block;
}

.member-gaming-handle-field__icon .p4g-platform-icon-glyph::before {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.member-gaming-handle-field__icon.is-psn { color: #003791; }
.member-gaming-handle-field__icon.is-xbox { color: #107c10; }
.member-gaming-handle-field__icon.is-steam { color: #1b2838; }
.member-gaming-handle-field__icon.is-epic { color: #2f2d2e; }
.member-gaming-handle-field__icon.is-riot { color: #d13639; }
.member-gaming-handle-field__icon.is-battlenet { color: #148eff; }
.member-gaming-handle-field__icon.is-gog { color: #86328a; }
.member-gaming-handle-field__icon.is-ea { color: #ff4747; }
.member-gaming-handle-field__icon.is-ubisoft { color: #0070ff; }

.member-gaming-handle-field label {
    display: block;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(14, 32, 56, 0.92);
}

.member-gaming-handle-field input[type="text"] {
    width: 100%;
    min-height: 40px;
    margin: 0;
}

.member-gaming-handle-field:focus-within {
    border-color: color-mix(in srgb, var(--bg-blue, #145982) 42%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg-blue, #145982) 12%, transparent);
}

.member-about-consoles-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.member-console-card {
    border: 1px solid rgba(20, 89, 130, 0.18);
    border-radius: 12px;
    padding: 0.55rem 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    gap: 0.35rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-console-card.is-selected {
    border-color: rgba(30, 115, 190, 0.45);
    box-shadow: 0 2px 12px rgba(20, 89, 130, 0.12);
}

.member-console-card-visual {
    width: 100%;
    aspect-ratio: 1;
    max-height: 88px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(20, 89, 130, 0.12), rgba(30, 115, 190, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-console-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-console-card-icon {
    font-size: 2.1rem;
    color: rgba(20, 89, 130, 0.88);
}

.member-console-card-label {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    color: #1e3a4d;
}

.member-console-card-label input {
    margin-top: 0.15rem;
}

.member-console-card-upload {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: rgba(14, 32, 56, 0.65);
}

.member-console-card-upload-text {
    font-weight: 600;
}

.member-console-card-upload input[type="file"] {
    max-width: 100%;
    font-size: 0.72rem;
}

.member-public-about-text {
    margin: 0;
    line-height: 1.55;
    color: rgba(14, 32, 56, 0.88);
}

.member-public-about-text p {
    margin: 0 0 0.65rem;
}

.member-public-about-text p:last-child {
    margin-bottom: 0;
}

.member-public-about-empty {
    margin: 0;
    color: rgba(14, 32, 56, 0.62);
    font-style: italic;
}

.member-public-about-config {
    margin-top: 1.25rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(20, 89, 130, 0.14);
    background: linear-gradient(165deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.member-public-about-config:first-of-type {
    margin-top: 0.35rem;
}

.member-public-about-config h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    color: var(--bg-accent);
}

.member-public-about-config-sub {
    margin: 0.95rem 0 0.35rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: rgba(20, 89, 130, 0.95);
    letter-spacing: 0.01em;
}

.member-public-about-config--gaming > .member-public-about-config-sub:first-of-type {
    margin-top: 0.4rem;
}

.member-public-about-config--pc > .member-public-about-config-sub {
    margin-top: 0.45rem;
}

.member-pc-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin: 0.5rem 0 1rem;
}

.member-pc-config-field label {
    display: block;
    margin-bottom: 0.28rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(20, 89, 130, 0.92);
    line-height: 1.3;
}

.member-pc-config-field input[type="text"],
.member-pc-config-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.18);
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--bg-dark);
}

.member-pc-config-field textarea {
    resize: vertical;
    min-height: 3.5rem;
}

.member-pc-config-field--wide {
    grid-column: 1 / -1;
}

.member-pc-config-dl {
    margin: 0.25rem 0 0.75rem;
    display: grid;
    grid-template-columns: minmax(100px, 32%) minmax(0, 1fr);
    gap: 0.45rem 1rem;
    align-items: start;
}

.member-pc-config-dl dt {
    margin: 0;
    padding-top: 0.12rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(20, 89, 130, 0.88);
    line-height: 1.35;
}

.member-pc-config-dl dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(14, 32, 56, 0.92);
    word-break: break-word;
}

.member-pc-config-dl dd.is-multiline p {
    margin: 0 0 0.45rem;
}

.member-pc-config-dl dd.is-multiline p:last-child {
    margin-bottom: 0;
}

.member-sidebar-setup-pc-rows {
    list-style: none;
    margin: 0 0 0.35rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.member-sidebar-setup-pc-row {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    gap: 0.35rem 0.5rem;
    font-size: 0.76rem;
    line-height: 1.35;
    padding: 0.3rem 0.35rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(20, 89, 130, 0.08);
}

.member-sidebar-setup-pc-row-label {
    font-weight: 700;
    color: rgba(20, 89, 130, 0.88);
}

.member-sidebar-setup-pc-row-value {
    font-weight: 600;
    color: var(--bg-dark);
    word-break: break-word;
}

.member-sidebar-setup-pc-legacy {
    margin: 0.35rem 0 0;
    font-size: 0.76rem;
    line-height: 1.4;
    color: rgba(14, 32, 56, 0.82);
    font-style: italic;
}

.member-public-about-text--config-notes {
    margin-top: 0.25rem;
}

.member-public-about-config .member-about-handles-pills {
    margin-top: 0.35rem;
}

.member-public-about-config .member-about-consoles-showcase {
    margin-top: 0.35rem;
    margin-bottom: 0.15rem;
}

.member-about-config-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.5rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(20, 89, 130, 0.12);
    background: rgba(248, 251, 255, 0.65);
}

.member-about-config-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(14, 32, 56, 0.92);
    cursor: pointer;
}

.member-about-config-toggle input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.member-about-handles-pills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-about-handle-pill {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 140px;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.16);
    background: rgba(248, 251, 255, 0.95);
}

.member-about-handle-pill-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(20, 89, 130, 0.75);
}

.member-about-handle-pill-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bg-dark);
    word-break: break-word;
}

.member-about-consoles-showcase {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.member-about-console-showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 108px;
    text-align: center;
}

.member-about-console-showcase-visual {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(20, 89, 130, 0.14), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(20, 89, 130, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-about-console-showcase-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-about-console-showcase-icon {
    font-size: 2.25rem;
    color: rgba(20, 89, 130, 0.9);
}

.member-about-console-showcase-label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(14, 32, 56, 0.88);
}

.member-banner-preview {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    display: block;
}

.member-profile-media-preview--banner .member-banner-preview,
.member-profile-media-preview--banner .member-profile-media-preview-img {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
}

.member-profile-media-preview--banner.is-animated {
    background: #0e2038;
}

.member-profile-media-preview--banner .member-banner-preview--video,
.member-profile-media-preview--banner video.member-banner-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 0;
    border-radius: 0;
}

.member-banner-default-hint {
    margin: 0.35rem 0 0;
    max-width: 520px;
}

.member-profile-form-section {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    display: grid;
    gap: 0.5rem;
}

.member-profile-form-section + .member-profile-form-section {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 12%, transparent);
}

.member-profile-form-section-title {
    margin: 0 0 0.15rem;
    padding: 0;
    font-size: 1rem;
    font-weight: 800;
    color: inherit;
}

.member-profile-section-lead {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: color-mix(in srgb, currentColor 72%, transparent);
}

.member-profile-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
}

.member-profile-media-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 14%, transparent);
    background: color-mix(in srgb, var(--surface-panel, #f8fafc) 88%, transparent);
}

.member-profile-media-card--avatar {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: start;
}

.member-profile-media-card--banner {
    grid-column: auto;
}

.member-profile-media-preview {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--bg-blue, #145982) 22%, transparent);
    background: color-mix(in srgb, var(--bg-blue, #145982) 4%, #fff);
}

.member-profile-media-preview--avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0;
}

.member-profile-media-preview--banner {
    width: 100%;
    aspect-ratio: 3 / 1;
    max-height: 180px;
}

.member-profile-media-preview--banner.is-default::after {
    content: attr(data-default-label);
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
}

.member-profile-media-preview-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.member-profile-media-preview--avatar .member-profile-media-preview-img {
    border-radius: 50%;
}

.member-profile-media-body {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.member-profile-media-label {
    font-weight: 700;
    font-size: 0.92rem;
}

.member-profile-media-spec {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 600;
    color: color-mix(in srgb, var(--bg-blue, #145982) 78%, currentColor);
}

.member-profile-media-display,
.member-profile-media-note {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: color-mix(in srgb, currentColor 68%, transparent);
}

.member-profile-media-file-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    margin-top: 0.15rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 35%, transparent);
    background: color-mix(in srgb, var(--bg-blue, #145982) 10%, transparent);
    color: var(--bg-blue, #145982);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-profile-media-file-btn:hover {
    background: var(--button-bg, var(--bg-blue));
    border-color: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
}

.member-profile-media-file-btn input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.member-profile-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.15rem;
}

.member-profile-banner-actions .member-profile-media-file-btn,
.member-profile-banner-actions .member-profile-banner-klipy-toggle,
.member-profile-banner-actions .member-profile-banner-tenor-toggle {
    margin-top: 0;
}

.member-profile-banner-klipy-toggle,
.member-profile-banner-tenor-toggle {
    border: 0;
    font: inherit;
}

.member-profile-banner-klipy-picker,
.member-profile-banner-tenor-picker {
    margin-top: 0.65rem;
}

.member-profile-banner-tenor-picker .member-gif-choice img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-profile-media-link-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 0.45rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bg-blue, #145982);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.member-profile-media-link-btn:hover {
    color: var(--button-hover-bg, #145982);
}

.member-profile-media-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.member-profile-media-file-name {
    margin: 0;
    font-size: 0.78rem;
    color: color-mix(in srgb, currentColor 72%, transparent);
    word-break: break-word;
}

.member-profile-media-error {
    margin: 0.5rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.member-profile-media-error[hidden] {
    display: none !important;
}

.member-profile-media-info {
    margin: 0.5rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.member-profile-media-info[hidden] {
    display: none !important;
}

@media (max-width: 767.98px) {
    .member-profile-media-card--avatar {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .member-profile-media-preview--avatar {
        margin: 0 auto;
    }
}

.member-banner-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.member-banner-crop-modal[hidden] {
    display: none !important;
}

.member-banner-crop-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 28, 0.72);
    border: 0;
    padding: 0;
}

.member-banner-crop-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 16%, transparent);
    background: var(--surface-card, #fff);
    color: inherit;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
    padding: 1rem;
}

.member-banner-crop-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.member-banner-crop-modal__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--bg-blue, #145982) 72%, currentColor);
}

.member-banner-crop-modal__header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.member-banner-crop-modal__lead {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: color-mix(in srgb, currentColor 72%, transparent);
}

.member-banner-crop-modal__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 18%, transparent);
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.member-banner-crop-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 20%, transparent);
    background: #0f172a;
    touch-action: none;
    cursor: grab;
}

.member-banner-crop-viewport.is-dragging {
    cursor: grabbing;
}

.member-banner-crop-viewport::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.member-banner-crop-image {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    transform-origin: top left;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.member-banner-crop-controls {
    margin-top: 0.85rem;
}

.member-banner-crop-zoom-label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.member-banner-crop-zoom-label input[type='range'] {
    width: 100%;
}

.member-banner-crop-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 12%, transparent);
}

.member-banner-crop-modal__btn {
    min-height: 40px;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.member-banner-crop-modal__btn--ghost {
    border: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 24%, transparent);
    background: transparent;
    color: inherit;
}

.member-banner-crop-modal__btn--primary {
    border: 1px solid var(--button-bg, var(--bg-blue));
    background: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
}

.member-profile-form select {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    padding: 0.55rem 0.7rem;
    background: #fff;
}

.member-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.2rem;
    color: #374151;
}

.member-auth-check span {
    color: #374151;
}

.member-auth-form button,
.member-logout-btn {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    font-weight: 700;
    color: var(--button-text, #fff);
    background: var(--button-bg, var(--bg-blue));
}

.member-profile-form button:not(.member-composer-icon):not(.member-emoji-choice):not(.member-gif-choice):not(.member-gif-picker-clear):not(.member-klipy-picker-page-btn):not(.member-life-event-fb-choice):not(.member-life-event-fb-back):not(.member-life-event-fb-close):not(.member-life-event-fb-done):not(.member-life-event-fb-media-btn):not(.member-life-event-fb-media-remove):not(.member-composer-gallery-remove):not(.member-life-event-clear):not(.member-emoji-picker-nav-btn):not(.member-ma-choice):not(.member-ma-tab):not(.member-ma-done):not(.member-ma-clear):not(.member-poll-clear):not(.member-feed-poll-option-btn):not(.member-ma-dialog-dismiss):not(.member-ma-place-locate):not(.member-ma-place-suggestion):not(.member-place-done):not(.member-place-dialog-dismiss):not(.member-post-privacy-toggle):not(.member-post-privacy-option):not(.member-text-bg-picker-swatch):not(.member-text-bg-picker-clear):not(.member-text-bg-tool-btn):not(.member-text-bg-aa-btn):not(.member-composer-emoji-btn) {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    font-weight: 700;
    color: var(--button-text, #fff);
    background: var(--reviews-score-bg, var(--bg-blue));
}

.member-auth-form button:hover,
.member-logout-btn:hover {
    background: var(--button-hover-bg, var(--bg-accent));
    color: var(--button-text, #fff);
}

.member-profile-form button:not(.member-composer-icon):not(.member-emoji-choice):not(.member-gif-choice):not(.member-gif-picker-clear):not(.member-klipy-picker-page-btn):not(.member-life-event-fb-choice):not(.member-life-event-fb-back):not(.member-life-event-fb-close):not(.member-life-event-fb-done):not(.member-life-event-fb-media-btn):not(.member-life-event-fb-media-remove):not(.member-composer-gallery-remove):not(.member-life-event-clear):not(.member-emoji-picker-nav-btn):not(.member-ma-choice):not(.member-ma-tab):not(.member-ma-done):not(.member-ma-clear):not(.member-poll-clear):not(.member-feed-poll-option-btn):not(.member-ma-dialog-dismiss):not(.member-ma-place-locate):not(.member-ma-place-suggestion):not(.member-place-done):not(.member-place-dialog-dismiss):not(.member-post-privacy-toggle):not(.member-post-privacy-option):not(.member-text-bg-picker-swatch):not(.member-text-bg-picker-clear):not(.member-text-bg-tool-btn):not(.member-text-bg-aa-btn):not(.member-composer-emoji-btn):hover {
    background: color-mix(in srgb, var(--reviews-score-bg, var(--bg-blue)) 88%, #000);
    color: var(--button-text, #fff);
}

.member-profile-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.member-profile-avatar img {
    border-radius: 50%;
}

.member-profile-head h2 {
    margin: 0;
}

.member-profile-display-heading .member-name-with-badge {
    flex: 0 1 auto;
    max-width: 100%;
}

.member-profile-head p {
    margin: 0.2rem 0 0;
    color: rgba(14, 32, 56, 0.7);
}

.member-oauth-card {
    margin-bottom: 1rem;
}

.member-oauth-card h2 {
    margin: 0 0 0.4rem;
}

.member-oauth-intro {
    margin: 0 0 0.9rem;
    color: rgba(14, 32, 56, 0.7);
    font-size: 0.9rem;
    line-height: 1.45;
}

.member-oauth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

@media (max-width: 640px) {
    .member-oauth-grid {
        grid-template-columns: 1fr;
    }
}

.member-oauth-item {
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    background: rgba(246, 250, 255, 0.6);
}

.member-oauth-item h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.member-oauth-status {
    margin: 0 0 0.5rem;
    font-size: 0.86rem;
    color: rgba(14, 32, 56, 0.65);
}

.member-oauth-status.is-linked {
    color: rgba(14, 32, 56, 0.88);
    font-weight: 600;
}

.member-oauth-status.member-oauth-disabled {
    font-style: italic;
}

.member-oauth-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.35rem 0.85rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    background: var(--bg-blue);
    color: #fff !important;
}

.member-auth-linkline-oauth {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.member-auth-linkline-oauth .member-oauth-connect-btn,
.member-auth-form .member-oauth-connect-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    align-self: stretch;
    min-height: 42px;
    justify-content: center !important;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(14, 32, 56, 0.12);
}

.member-auth-form .member-auth-linkline-oauth {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
}

.member-auth-panel .member-auth-form .member-auth-linkline-oauth {
    width: 100% !important;
    margin: 0.5rem 0 0 !important;
    justify-items: stretch !important;
}

.member-auth-panel .member-auth-form .member-auth-linkline-oauth .member-oauth-connect-btn {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
}

.member-auth-form .member-oauth-connect-btn + .member-oauth-connect-btn {
    margin-top: 0.5rem;
}

.member-oauth-item .member-oauth-connect-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

.member-oauth-connect-btn.is-discord {
    background: #5865f2;
    border-color: #4d5add;
    color: #ffffff !important;
}

.member-oauth-connect-btn.is-discord:hover {
    background: #4f5bda;
    color: #ffffff !important;
    text-decoration: none;
}

.member-oauth-connect-btn.is-twitch {
    background: #9146ff;
    border-color: #7f3fe0;
    color: #ffffff !important;
}

.member-oauth-connect-btn.is-google {
    background: #fff;
    border-color: #dadce0;
    color: #3c4043 !important;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}

.member-oauth-connect-btn.is-google:hover {
    background: #f8f9fa;
    border-color: #d2d4d8;
    color: #202124 !important;
    text-decoration: none;
}

.member-oauth-connect-btn.is-google .fa-google {
    color: #4285f4;
}

.member-oauth-connect-btn.is-microsoft {
    background: #0078d4;
    border-color: #006cbd;
    color: #ffffff !important;
}

.member-oauth-connect-btn.is-microsoft:hover {
    background: #006cbd;
    color: #ffffff !important;
    text-decoration: none;
}

.member-oauth-connect-btn.is-steam {
    background: #1b2838;
    border-color: #171a21;
    color: #ffffff !important;
}

.member-oauth-connect-btn.is-steam:hover {
    background: #171a21;
    color: #ffffff !important;
    text-decoration: none;
}

.member-auth-linkline-oauth .member-oauth-connect-btn.is-steam {
    order: -2;
}

.member-auth-linkline-oauth .member-oauth-connect-btn.is-microsoft {
    order: -1;
}

/* Double authentification (2FA) */
.member-2fa-card,
.member-2fa-challenge-card {
    max-width: 640px;
}

.member-auth-2fa-title {
    margin: 0 0 0.85rem;
    text-align: center;
    font-size: 1.15rem;
    color: #1f2937;
}

.member-2fa-intro {
    margin: 0 0 1rem;
    color: var(--text-muted, #6b7280);
    font-size: 0.92rem;
    line-height: 1.45;
}

.member-2fa-status.is-enabled {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
    font-weight: 600;
}

.member-2fa-steps {
    margin: 0 0 1rem 1.1rem;
    color: #374151;
}

.member-2fa-setup-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.member-2fa-qr {
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(20, 89, 130, 0.16);
    background: #fff;
}

.member-2fa-secret {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: #f3f4f6;
    font-size: 0.95rem;
    word-break: break-all;
}

.member-2fa-subform {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 89, 130, 0.12);
}

.member-2fa-backup-notice {
    margin: 0 0 1rem;
    padding: 0.85rem;
    border-radius: 10px;
    background: rgba(30, 115, 190, 0.08);
    border: 1px solid rgba(30, 115, 190, 0.2);
}

.member-2fa-backup-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.45rem;
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
}

.member-2fa-backup-list code {
    display: block;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
}

.member-2fa-form input[name="member_2fa_code"],
.member-2fa-form input[name="member_2fa_setup_code"],
.member-2fa-disable-form input[name="member_2fa_disable_code"] {
    letter-spacing: 0.15em;
    font-size: 1.15rem;
    text-align: center;
}

.member-2fa-disable-btn {
    background: #b91c1c !important;
}

@media (max-width: 640px) {
    .member-2fa-setup-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

.member-auth-panel > .member-auth-linkline-oauth .member-oauth-connect-btn.is-microsoft,
.member-auth-panel .member-auth-form .member-auth-linkline-oauth .member-oauth-connect-btn.is-microsoft {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.member-auth-oauth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.65rem;
    color: var(--text-muted, #6b7280);
    font-size: 0.875rem;
    text-align: center;
}

.member-auth-oauth-divider::before,
.member-auth-oauth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.35;
}

.member-auth-oauth-divider span {
    flex-shrink: 0;
    padding: 0 0.15rem;
}

.member-oauth-connect-btn.is-twitch:hover {
    background: #7f3ee0;
    color: #ffffff !important;
    text-decoration: none;
}

.p4g-member-helloasso-block {
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(225, 29, 72, 0.22);
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.65), rgba(255, 255, 255, 0.5));
}

.p4g-member-helloasso-block:focus-within {
    border-color: rgba(225, 29, 72, 0.45);
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.12);
}

.member-oauth-disconnect-form {
    margin: 0;
}

.member-oauth-disconnect {
    min-height: 34px;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(20, 89, 130, 0.35);
    background: #fff;
    color: rgba(14, 32, 56, 0.85);
    font-weight: 600;
    cursor: pointer;
}

.member-space-content {
    min-width: 0;
}

/* Espace membre â€” Mon Stream & planning Twitch */
.member-twitch-stream-card .member-twitch-stream-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.member-twitch-stream-card h2 {
    margin: 0;
    flex: 1 1 auto;
}

.member-twitch-stream-channel {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.member-twitch-stream-live-badge {
    margin: 0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.member-twitch-stream-live-badge.is-live {
    background: color-mix(in srgb, var(--bg-blue) 15%, transparent);
    color: var(--bg-accent);
}

.member-twitch-stream-live-badge.is-offline {
    background: color-mix(in srgb, var(--muted-text) 14%, transparent);
    color: var(--muted-text);
}

.member-twitch-stream-panel .member-twitch-stream-head,
.member-public-twitch-stream-panel .member-twitch-stream-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.member-twitch-stream-head-main {
    min-width: 0;
}

.member-twitch-stream-head-main h3 {
    margin: 0 0 0.25rem;
}

.member-twitch-stream-head-status {
    justify-self: end;
    align-self: start;
}

.member-twitch-stream-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.65rem;
}

.member-twitch-stream-head-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.member-twitch-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--bg-accent) 20%, transparent);
    background: var(--surface-card, #fff);
    color: var(--bg-blue);
    text-decoration: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--bg-dark) 6%, transparent);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-twitch-icon-btn:hover {
    border-color: color-mix(in srgb, var(--bg-blue) 45%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 10%, transparent);
    color: var(--bg-accent);
}

.member-twitch-icon-btn .fa-calendar-days {
    color: var(--bg-accent);
}

.member-twitch-icon-btn:hover .fa-calendar-days {
    color: color-mix(in srgb, var(--bg-accent) 85%, var(--bg-dark));
}

.member-twitch-stream-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 1rem;
    align-items: stretch;
}

.member-twitch-stream-player {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.member-twitch-stream-chat-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0.75rem 0.85rem;
    background: color-mix(in srgb, var(--bg-accent) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--bg-accent) 12%, transparent);
    border-radius: 12px;
}

.member-twitch-chat-block-title {
    margin: 0 0 0.65rem;
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-accent);
}

.member-twitch-stream-chat-block .member-twitch-embed--chat {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
}

.member-twitch-stream-chat h3,
.member-twitch-stream-chat h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.member-twitch-embed {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0e0e10;
    border: 1px solid rgba(20, 89, 130, 0.18);
}

.member-twitch-embed--player {
    aspect-ratio: 16 / 9;
}

.member-twitch-embed--chat {
    min-height: 420px;
    height: 100%;
}

.member-twitch-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.member-twitch-stream-error {
    color: #b42318;
}

.member-stream-planning-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted-text);
}

.member-immersive-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0;
}

.member-immersive-toolbar-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.member-immersive-toolbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.22);
    background: #fff;
    color: var(--bg-accent);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(14, 32, 56, 0.06);
}

.member-immersive-toolbar-link:hover {
    border-color: rgba(20, 89, 130, 0.38);
    color: #0f3d5c;
}

.member-immersive-toolbar-link--primary {
    background: var(--bg-blue);
    border-color: var(--bg-blue);
    color: #fff;
}

.member-immersive-toolbar-link--primary:hover {
    color: #fff;
    filter: brightness(1.05);
}

.member-space-page--planning-full {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.member-stream-planning-page {
    width: 100%;
    min-width: 0;
}

.member-stream-planning-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--border-color);
}

.member-stream-planning-page-head-main {
    flex: 1 1 280px;
    min-width: 0;
}

.member-stream-planning-page-head h1 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--bg-accent);
}

.member-stream-planning-page-head h1 .fa-calendar-days {
    font-size: 0.92em;
    color: rgba(20, 89, 130, 0.75);
}

.member-stream-schedule-share {
    margin: 0 0 1.35rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--surface-panel);
}

.member-stream-planning-page .member-stream-schedule-share {
    margin-bottom: 1.5rem;
}

.member-public-stream-schedule-panel .member-stream-schedule-share {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.member-stream-schedule-share-label {
    margin: 0 0 0.65rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bg-accent);
}

.member-stream-schedule-share-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.65rem;
}

.member-stream-schedule-share-layout-label select {
    min-height: 2.5rem;
    padding: 0.35rem 2rem 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-card);
    color: var(--text-dark);
    font-size: 0.9rem;
}

.member-stream-schedule-share-field-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted-text);
}

.member-stream-schedule-share-color-label input[type="color"] {
    display: block;
    width: 3rem;
    height: 2.5rem;
    padding: 0.15rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-card);
    cursor: pointer;
}

.member-stream-schedule-share-bg-upload {
    cursor: pointer;
}

.member-stream-schedule-share-bg-upload input[disabled] + *,
.member-stream-schedule-share-bg-upload:has(input[disabled]) {
    opacity: 0.65;
    pointer-events: none;
}

.member-stream-schedule-share-bg-preview {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    color: var(--muted-text);
}

.member-stream-schedule-share-bg-preview img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(20, 89, 130, 0.16);
}

.member-stream-schedule-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.member-stream-schedule-share-hint {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted-text);
}

.member-stream-schedule-share-status {
    margin: 0.55rem 0 0;
    font-size: 0.85rem;
    color: var(--bg-accent);
}

.member-stream-schedule-share-status.is-error {
    color: #b42318;
}

.member-stream-schedule-share.is-busy {
    opacity: 0.85;
    pointer-events: none;
}

.member-stream-planning-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.member-stream-planning-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--bg-accent) 20%, transparent);
    background: var(--surface-card, #fff);
    color: var(--bg-accent);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--bg-dark) 5%, transparent);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.member-stream-planning-quick-link:hover {
    border-color: color-mix(in srgb, var(--bg-blue) 40%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 8%, transparent);
    color: var(--bg-blue);
}

.member-stream-planning-quick-link .fa-twitch {
    color: var(--bg-blue);
}

.member-stream-planning-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 100%;
    margin-top: 0.85rem;
}

.member-stream-planning-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.member-stream-planning-main {
    width: 100%;
    min-width: 0;
}

.member-stream-schedule-list-card--full {
    max-height: none;
}

.member-stream-schedule-list-card-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.member-stream-schedule-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.member-stream-schedule-empty-cta {
    margin-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.member-planning-modal {
    width: min(96vw, 640px);
    max-width: none;
    max-height: min(92vh, 900px);
    padding: 0;
    border: none;
    border-radius: 14px;
    background: transparent;
    overflow: visible;
    color: inherit;
}

.member-planning-modal--wide,
.member-planning-modal-panel--wide {
    width: min(96vw, 760px);
}

.member-planning-modal::backdrop {
    background: rgba(8, 18, 32, 0.55);
    backdrop-filter: blur(2px);
}

.member-planning-modal-panel {
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 900px);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--surface-card);
    box-shadow: 0 18px 48px rgba(8, 18, 32, 0.22);
    overflow: hidden;
}

.member-planning-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-panel);
}

.member-planning-modal-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.08rem;
    color: var(--bg-accent);
}

.member-planning-modal-lead {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--muted-text);
}

.member-planning-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-card);
    color: var(--muted-text);
    cursor: pointer;
}

.member-planning-modal-close:hover {
    border-color: color-mix(in srgb, var(--bg-accent) 28%, transparent);
    background: color-mix(in srgb, var(--bg-accent) 5%, transparent);
}

.member-planning-modal-body {
    padding: 1rem 1.15rem 1.15rem;
    overflow: auto;
}

.member-planning-modal .member-stream-planning-card {
    position: static;
    top: auto;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.member-planning-modal .member-stream-planning-card-head {
    display: none;
}

.member-stream-schedule-share--modal {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.member-planning-modal--share {
    width: min(96vw, 860px);
}

.member-planning-modal-panel--share {
    max-height: min(92vh, 720px);
}

.member-planning-modal-head--share {
    background: linear-gradient(135deg, color-mix(in srgb, var(--bg-dark) 97%, transparent) 0%, color-mix(in srgb, var(--bg-blue) 94%, transparent) 55%, color-mix(in srgb, var(--bg-blue) 35%, transparent) 100%);
    border-bottom: none;
    color: var(--text-light);
}

.member-planning-modal-head--share .member-planning-modal-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 249, 252, 0.72);
}

.member-planning-modal-head--share h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.25rem;
}

.member-planning-modal-head--share h2 .fa-share-nodes {
    font-size: 0.95em;
    color: color-mix(in srgb, var(--text-light) 80%, var(--bg-blue));
}

.member-planning-modal-head--share .member-planning-modal-lead {
    color: rgba(247, 249, 252, 0.82);
}

.member-planning-modal-head--share .member-planning-modal-close {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.member-planning-modal-head--share .member-planning-modal-close:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.member-planning-modal--share .member-planning-modal-body {
    padding: 1.1rem 1.15rem 1.2rem;
    background: var(--surface-panel, #f4f8fb);
}

.member-stream-schedule-share-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1rem;
    align-items: stretch;
}

.member-stream-schedule-share-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--surface-card);
    min-height: 100%;
}

.member-stream-schedule-share-panel--export {
    background: linear-gradient(180deg, var(--surface-card, #fff) 0%, color-mix(in srgb, var(--bg-blue) 4%, transparent) 100%);
    border-color: color-mix(in srgb, var(--bg-blue) 18%, transparent);
}

.member-stream-schedule-share-panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-accent);
}

.member-stream-schedule-share-panel-title .fa-sliders,
.member-stream-schedule-share-panel-title .fa-wand-magic-sparkles {
    color: var(--bg-blue);
    font-size: 0.92em;
}

.member-stream-schedule-share-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.member-stream-schedule-share-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.member-stream-schedule-share-field--color {
    grid-column: 1 / -1;
}

.member-stream-schedule-share--modal .member-stream-schedule-share-field select,
.member-stream-schedule-share--modal .member-stream-schedule-share-field input[type="color"] {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.18);
    background: #fff;
    color: var(--bg-dark);
    font-size: 0.92rem;
}

.member-stream-schedule-share--modal .member-stream-schedule-share-field input[type="color"] {
    width: 4rem;
    height: 2.65rem;
    padding: 0.2rem;
    cursor: pointer;
}

.member-stream-schedule-share-upload-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.15rem;
}

.member-stream-schedule-share-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    border: 1px dashed color-mix(in srgb, var(--bg-blue) 28%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 4%, transparent);
    color: var(--bg-blue);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.member-stream-schedule-share-upload-btn:hover {
    border-color: color-mix(in srgb, var(--bg-blue) 45%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 10%, transparent);
    color: var(--button-hover-bg, var(--bg-accent));
}

.member-stream-schedule-share-upload-hint {
    margin: 0;
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--bg-accent) 65%, transparent);
    text-align: center;
}

.member-stream-schedule-share-bg-preview--modal {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
}

.member-stream-schedule-share-bg-preview-frame {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--bg-accent) 14%, transparent);
    background: #eef3f8;
    aspect-ratio: 16 / 9;
}

.member-stream-schedule-share-bg-preview-frame.is-tiktok-aspect {
    aspect-ratio: 9 / 16;
    max-width: 120px;
    margin-inline: auto;
}

.member-stream-schedule-share-aspect-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(14, 32, 56, 0.68);
}

.member-stream-schedule-share-aspect-hint[hidden] {
    display: none;
}

.member-stream-schedule-share-bg-preview-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-stream-schedule-share-bg-preview-caption {
    margin: 0;
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--bg-accent) 70%, transparent);
    text-align: center;
}

.member-stream-schedule-share-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.member-stream-schedule-share-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(14, 32, 56, 0.82);
}

.member-stream-schedule-share-features .fa-check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
    font-size: 0.62rem;
}

.member-stream-schedule-share-status--modal {
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-accent) 6%, transparent);
    font-size: 0.84rem;
}

.member-stream-schedule-share-status--modal.is-error {
    background: rgba(180, 35, 24, 0.08);
}

.member-stream-schedule-share-cta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.member-stream-schedule-share-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    border: none;
    background: linear-gradient(135deg, var(--button-bg, var(--bg-blue)) 0%, var(--button-hover-bg, var(--bg-accent)) 100%);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--bg-accent) 22%, transparent);
}

.member-stream-schedule-share-cta-primary:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--button-hover-bg, var(--bg-accent)) 92%, var(--bg-dark)) 0%, color-mix(in srgb, var(--bg-dark) 88%, var(--bg-accent)) 100%);
}

.member-stream-schedule-share-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.55rem;
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    background: var(--surface-card, #fff);
    color: var(--bg-accent);
}

.member-stream-schedule-share-cta-secondary:hover {
    border-color: color-mix(in srgb, var(--bg-blue) 55%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 6%, transparent);
}

@media (max-width: 760px) {
    .member-stream-schedule-share-modal-grid {
        grid-template-columns: 1fr;
    }

    .member-stream-schedule-share-fields {
        grid-template-columns: 1fr;
    }

    .member-stream-schedule-share-field--color {
        grid-column: auto;
    }
}

/* Modale ajout / modification crÃ©neau */
.member-planning-modal--slot {
    width: min(96vw, 560px);
}

.member-planning-modal-panel--slot {
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 820px);
}

.member-planning-modal-head--slot {
    background: linear-gradient(135deg, color-mix(in srgb, var(--bg-dark) 97%, transparent) 0%, color-mix(in srgb, var(--bg-accent) 92%, transparent) 100%);
    border-bottom: none;
    color: var(--text-light);
}

.member-planning-modal-head--slot .member-planning-modal-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 249, 252, 0.72);
}

.member-planning-modal-head--slot h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.2rem;
}

.member-planning-modal-head--slot h2 .fa-plus {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.75em;
}

.member-planning-modal-head--slot .member-planning-modal-lead {
    color: rgba(247, 249, 252, 0.82);
}

.member-planning-modal-head--slot .member-planning-modal-close {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.member-planning-modal-body--slot {
    padding: 0;
    background: var(--surface-panel, #f4f8fb);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.member-stream-schedule-form--modal {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}

.member-stream-schedule-form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.15rem;
}

.member-stream-schedule-form--modal .member-stream-schedule-form-section {
    margin-bottom: 0.85rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(20, 89, 130, 0.12);
    background: #fff;
}

.member-stream-schedule-form--modal .member-stream-schedule-form-section--optional {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.member-stream-schedule-form--modal .member-stream-schedule-form-section-title {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.member-stream-schedule-form--modal .member-stream-schedule-form-section-title .fa-bullhorn {
    color: var(--bg-blue);
}

.member-stream-schedule-form--modal .member-stream-schedule-form-fields {
    gap: 0.85rem;
}

.member-stream-schedule-form--modal .member-stream-schedule-form-field label,
.member-stream-schedule-form--modal .member-twitch-category-picker > label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--bg-accent);
}

.member-stream-schedule-form--modal input[type="text"],
.member-stream-schedule-form--modal input[type="date"],
.member-stream-schedule-form--modal input[type="time"],
.member-stream-schedule-form--modal input[type="search"],
.member-stream-schedule-form--modal textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: #fff;
    color: var(--bg-dark);
    font-size: 0.95rem;
    line-height: 1.35;
}

.member-stream-schedule-form--modal textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.member-stream-schedule-form--modal .member-stream-schedule-form-field--title input[type="text"] {
    font-size: 1rem;
    font-weight: 600;
}

.member-stream-schedule-form--modal .member-stream-schedule-form-field-row--times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.member-stream-schedule-form--modal .member-stream-schedule-form-field--category .member-twitch-category-picker {
    margin-bottom: 0;
}

.member-stream-schedule-form--modal .member-twitch-category-search {
    width: 100%;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: #fff;
    color: var(--bg-dark);
    font-size: 0.95rem;
}

.member-stream-schedule-form--modal .member-profile-field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
}

.member-stream-schedule-form--modal .member-stream-schedule-time-hint {
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(20, 89, 130, 0.05);
    border: 1px solid rgba(20, 89, 130, 0.1);
    font-size: 0.78rem;
}

.member-stream-schedule-form-actions--modal {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 0.85rem 1.15rem 1.1rem;
    border-top: 1px solid rgba(20, 89, 130, 0.12);
    background: #fff;
}

.member-stream-schedule-form-actions--modal .btn {
    width: 100%;
    min-height: 2.75rem;
    justify-content: center;
    margin: 0;
}

.member-stream-schedule-form-submit {
    font-weight: 700;
}

.member-stream-schedule-form-cancel:not([hidden]) {
    display: inline-flex;
}

@media (max-width: 520px) {
    .member-stream-schedule-form--modal .member-stream-schedule-form-field-row--times {
        grid-template-columns: 1fr;
    }
}

.member-stream-planning-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.member-stream-planning-card {
    position: sticky;
    top: 1rem;
    align-self: start;
    padding: 1.15rem 1.2rem 1.35rem;
}

.member-stream-planning-card-head {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.member-stream-planning-card h2,
.member-stream-schedule-list-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--bg-accent);
}

.member-stream-planning-card-hint,
.member-stream-schedule-list-card-lead {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted-text);
}

.member-stream-schedule-list-card {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    max-height: calc(100vh - 7.5rem);
    padding: 1.15rem 1.2rem 1.25rem;
}

.member-stream-schedule-list-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    flex: 0 0 auto;
}

.member-stream-schedule-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--link-color) 14%, transparent);
    color: var(--link-color);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.member-stream-schedule-list-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.member-stream-schedule-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 220px;
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    background: color-mix(in srgb, var(--surface-panel) 88%, transparent);
}

.member-stream-schedule-empty-state > .fa-calendar-xmark {
    font-size: 2rem;
    color: var(--muted-text);
    opacity: 0.55;
}

.member-stream-schedule-empty-state .member-stream-schedule-empty {
    margin: 0;
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
}

.member-stream-schedule-empty-hint {
    margin: 0;
    max-width: 22rem;
    font-size: 0.86rem;
    color: var(--muted-text);
}

.member-stream-schedule-form-section {
    margin-bottom: 1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--surface-panel);
}

.member-stream-schedule-form-section:last-of-type {
    margin-bottom: 0.75rem;
}

.member-stream-schedule-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bg-accent);
}

.member-stream-schedule-form-section-title .fa-clock,
.member-stream-schedule-form-section-title .fa-gamepad {
    opacity: 0.85;
    font-size: 0.95em;
}

.member-stream-schedule-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.member-stream-schedule-form-field label,
.member-stream-schedule-form-field-row label {
    display: block;
    margin-bottom: 0.3rem;
}

.member-stream-schedule-form-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.member-stream-planning-card .member-stream-schedule-form .member-profile-field-hint {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.member-stream-planning-card .member-stream-schedule-time-hint {
    margin: 0;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
}

.member-stream-planning-card .member-twitch-category-picker {
    margin-bottom: 0;
}

.member-stream-planning-card .member-stream-schedule-form-actions {
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.member-stream-planning-card .member-stream-schedule-form-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
}

.member-stream-schedule-member .member-stream-schedule-by-day {
    gap: 1rem;
}

.member-stream-schedule-member .member-stream-schedule-day-block h4 {
    margin-bottom: 0.45rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border-color);
}

.member-stream-schedule-member .member-stream-schedule-slot {
    padding: 0.75rem 0.85rem;
}

.member-stream-schedule-member .member-stream-schedule-slot-actions {
    align-self: flex-start;
    justify-content: center;
}

/* Ancienne grille formulaire (autres Ã©crans Ã©ventuels) */
.member-stream-schedule-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.member-stream-schedule-form-grid--wide {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .member-stream-planning-layout {
        grid-template-columns: 1fr;
    }

    .member-stream-planning-card {
        position: static;
    }

    .member-stream-schedule-list-card {
        max-height: none;
    }
}

@media (max-width: 520px) {
    .member-stream-schedule-form-field-row {
        grid-template-columns: 1fr;
    }

    .member-stream-planning-page-head {
        flex-direction: column;
    }

    .member-stream-planning-toolbar {
        margin-top: 0.65rem;
    }

    .member-stream-planning-toolbar-btn,
    .member-stream-schedule-add-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .member-stream-schedule-list-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .member-stream-schedule-list-card-head-actions {
        justify-content: space-between;
    }

    .member-stream-schedule-form-grid {
        grid-template-columns: 1fr;
    }
}

.member-stream-schedule-by-day {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.member-stream-schedule-day-block h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--bg-accent);
}

.member-stream-schedule-slots {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.member-stream-schedule-layout-panel[hidden] {
    display: none !important;
}

.member-stream-schedule-slot {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--surface-card);
    box-shadow: 0 6px 18px rgba(8, 20, 35, 0.06);
}

.member-stream-schedule-by-day.is-view-list .member-stream-schedule-slot,
.member-stream-schedule-member .member-stream-schedule-slot {
    align-items: stretch;
}

.member-stream-schedule-slot-cover {
    flex: 0 0 auto;
    width: clamp(5.25rem, 16vw, 7.25rem);
    min-width: 0;
}

.member-stream-schedule-by-day.is-view-list .member-stream-schedule-slot-cover,
.member-stream-schedule-member .member-stream-schedule-slot-cover {
    width: clamp(5.25rem, 16vw, 7.25rem);
    max-width: 7.25rem;
}

.member-stream-schedule-slot-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    min-width: 0;
}

.member-stream-schedule-slot-details {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    width: 100%;
    min-width: 0;
}

.member-stream-schedule-live-title {
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.member-stream-schedule-game-title {
    margin: 0;
    font-size: clamp(0.88rem, 1.6vw, 1.02rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
}

.member-stream-schedule-slot-date-col {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    margin-left: auto;
    padding-left: 0.75rem;
    text-align: center;
    min-width: 4.5rem;
}

.member-stream-schedule-slot-date-weekday {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--muted-text);
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.member-stream-schedule-slot-date-daynum {
    display: block;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 800;
    line-height: 1;
    color: var(--link-color);
    letter-spacing: -0.02em;
}

.member-stream-schedule-slot-date-month {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--muted-text);
    text-transform: lowercase;
}

.member-stream-schedule-by-day.is-view-list .member-stream-schedule-game-cover,
.member-stream-schedule-member .member-stream-schedule-game-cover {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 6.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(20, 89, 130, 0.12);
    background: rgba(15, 23, 42, 0.06);
    line-height: 0;
}

.member-stream-schedule-by-day.is-view-list .member-stream-schedule-game-cover-img,
.member-stream-schedule-member .member-stream-schedule-game-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 6.5rem;
    object-fit: cover;
    object-position: center top;
}

.member-stream-schedule-by-day.is-view-list .member-stream-schedule-game-cover-fallback,
.member-stream-schedule-member .member-stream-schedule-game-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 6.5rem;
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    color: var(--bg-blue);
    font-size: 2rem;
    line-height: 1;
}

.member-stream-schedule-by-day.is-view-grid .member-stream-schedule-slot-cover {
    width: 100%;
    max-width: 5.5rem;
}

.member-stream-schedule-by-day.is-view-grid .member-stream-schedule-game-cover {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 11 / 15;
    max-height: 5.5rem;
    min-height: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(20, 89, 130, 0.12);
    background: rgba(15, 23, 42, 0.06);
    line-height: 0;
}

.member-stream-schedule-by-day.is-view-grid .member-stream-schedule-game-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
}

.member-stream-schedule-by-day.is-view-grid .member-stream-schedule-game-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 11 / 15;
    max-height: 5.5rem;
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    color: var(--bg-blue);
    font-size: 1.5rem;
    line-height: 1;
}

/* AperÃ§us compacts (sidebar / Ã  propos) : jaquette rÃ©duite */
.member-stream-schedule-by-day.is-compact .member-stream-schedule-slot-cover {
    width: clamp(4.5rem, 14vw, 5.75rem);
}

.member-stream-schedule-by-day.is-compact .member-stream-schedule-game-title {
    font-size: 0.72rem;
}

.member-stream-schedule-by-day.is-compact .member-stream-schedule-game-cover,
.member-stream-schedule-by-day.is-compact .member-stream-schedule-game-cover-img,
.member-stream-schedule-by-day.is-compact .member-stream-schedule-game-cover-fallback {
    min-height: 5.25rem;
}

.member-stream-schedule-by-day.is-compact .member-stream-schedule-slot-date-col {
    min-width: 3.25rem;
    padding-left: 0.5rem;
}

.member-stream-schedule-by-day.is-compact .member-stream-schedule-slot-date-daynum {
    font-size: 1.1rem;
}

.member-stream-schedule-time-hint {
    margin-top: 0.25rem;
}

.member-twitch-category-picker {
    position: relative;
    margin-bottom: 0.85rem;
}

.member-twitch-category-search {
    width: 100%;
    box-sizing: border-box;
}

.member-twitch-category-results {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin: 0.25rem 0 0;
    padding: 0.35rem;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.18);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(14, 32, 56, 0.12);
}

.member-twitch-category-result {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.member-twitch-category-result:hover,
.member-twitch-category-result:focus {
    background: color-mix(in srgb, var(--bg-blue) 10%, transparent);
}

.member-twitch-category-result img {
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
}

.member-twitch-category-preview {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-blue) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--bg-blue) 20%, transparent);
}

.member-twitch-category-preview img {
    border-radius: 6px;
    object-fit: cover;
}

.member-twitch-category-clear {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--bg-accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.member-stream-schedule-time {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--link-color);
    margin-bottom: 0.15rem;
}

.member-stream-schedule-game {
    display: block;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.member-stream-schedule-note {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--muted-text);
}

.member-stream-schedule-slot-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
    align-self: center;
}

.member-stream-schedule-edit,
.member-stream-schedule-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: #fff;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-stream-schedule-edit {
    color: var(--bg-accent, #1d6fb8);
}

.member-stream-schedule-edit:hover {
    background: rgba(30, 115, 190, 0.1);
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
}

.member-stream-schedule-delete {
    color: #b42318;
}

.member-stream-schedule-delete:hover {
    background: rgba(180, 35, 24, 0.08);
    border-color: rgba(180, 35, 24, 0.35);
}

.member-stream-schedule-delete-form {
    margin: 0;
}

.member-stream-schedule-slot.is-editing {
    border-color: rgba(30, 115, 190, 0.45);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg-blue) 12%, transparent);
}

.member-stream-schedule-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-top: 0.25rem;
}

.member-stream-schedule-empty {
    margin: 0;
    color: rgba(14, 32, 56, 0.62);
    font-style: italic;
}

.member-stream-schedule-twitch-link {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
}

.member-stream-schedule-twitch-link a {
    color: var(--link-color, var(--bg-blue));
    font-weight: 600;
    text-decoration: none;
}

.member-stream-schedule-twitch-link a:hover {
    text-decoration: underline;
}

.member-public-stream-schedule-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--muted-text);
}

.member-public-about-stream-schedule-teaser {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(20, 89, 130, 0.12);
}

.member-public-about-stream-schedule-teaser h3 {
    margin: 0 0 0.75rem;
}

.member-public-stream-schedule--teaser .member-stream-schedule-day-block:last-child,
.member-public-stream-schedule--sidebar .member-stream-schedule-day-block:last-child {
    margin-bottom: 0;
}

.member-public-stream-schedule--sidebar .member-stream-schedule-slot {
    padding: 0.5rem 0.6rem;
}

.member-public-stream-schedule--sidebar .member-stream-schedule-day-block h4 {
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.member-public-stream-schedule--sidebar .member-stream-schedule-slots {
    gap: 0.4rem;
}

.member-public-sidebar-block--stream-schedule .member-sidebar-link-btn {
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .member-twitch-stream-layout {
        grid-template-columns: 1fr;
    }

    .member-twitch-embed--chat {
        min-height: 360px;
    }
}

.member-referral-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: color-mix(in srgb, currentColor 78%, transparent);
    line-height: 1.45;
}

.member-referral-muted {
    margin: 0;
    color: color-mix(in srgb, currentColor 62%, transparent);
    font-style: italic;
}

.member-referral-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1.1rem;
}

.member-referral-stat {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-blue) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--bg-accent) 14%, transparent);
    min-width: 120px;
}

.member-referral-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--bg-accent) 85%, transparent);
}

.member-referral-stat-value {
    font-size: 1.35rem;
    color: var(--bg-accent);
}

.member-referral-url-label {
    display: block;
    font-weight: 600;
    margin: 0.35rem 0 0.25rem;
    font-size: 0.88rem;
    color: inherit;
}

.member-referral-url-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.member-referral-url-input {
    flex: 1 1 220px;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--bg-accent) 20%, transparent);
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
}

.member-referral-copy-btn {
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 45%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    color: var(--bg-blue);
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-referral-copy-btn:hover {
    background: var(--button-bg, var(--bg-blue));
    border-color: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
}

.member-referral-hint {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: color-mix(in srgb, currentColor 58%, transparent);
}

.member-referral-board-title {
    margin: 1.35rem 0 0.55rem;
    font-size: 1rem;
    color: inherit;
}

.member-referral-board {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.member-referral-board-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem 0.65rem;
    align-items: baseline;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface-card, #fff) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--bg-accent) 10%, transparent);
    font-size: 0.88rem;
}

.member-referral-board-row.is-self {
    border-color: color-mix(in srgb, var(--bg-blue) 45%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 7%, transparent);
}

.member-referral-rank {
    font-weight: 800;
    color: color-mix(in srgb, var(--bg-accent) 75%, transparent);
}

.member-referral-name {
    font-weight: 600;
    color: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-referral-meta {
    font-size: 0.78rem;
    color: color-mix(in srgb, currentColor 68%, transparent);
    white-space: nowrap;
}

/* Espace membre : Ã©vite le contenu Â« coincÃ© Â» Ã  droite (sidebar + colonne Ã©troite) sur tablette / mobile */
@media (max-width: 991.98px) {
    .member-space-layout {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .member-space-nav {
        position: static;
    }

    .member-space-content {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 960px) {
    .member-gaming-handles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .member-pc-config-grid {
        grid-template-columns: 1fr;
    }

    .member-gaming-handles-grid {
        grid-template-columns: 1fr;
    }

    /* minmax(160px, 1fr) peut forcer un scroll horizontal sur tÃ©lÃ©phone */
    .member-about-consoles-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
}

@media (max-width: 576px) {
    .member-space-page {
        padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
    }

    .member-space-hero {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .member-profile-card,
    .member-auth-card {
        padding: 1.35rem 0.85rem 1.6rem;
    }
}

@media (max-width: 360px) {
    .member-about-consoles-cards {
        grid-template-columns: 1fr;
    }
}

.member-public-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.45rem 1rem 2rem;
}

/* Profil public : moins dâ€™air sous la couverture â€” composer + onglets remontÃ©s */
.member-public-page .member-social-actions {
    margin-top: 0.45rem;
}

.member-public-tab-panel[data-panel="feed"] .member-feed-composer {
    margin: 0 0 1rem;
}

.member-public-page .member-friend-requests {
    margin-top: 0.55rem;
}

.member-public-page .member-space-notice {
    margin-bottom: 0.55rem;
}

.member-public-card {
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 14px;
    padding: 1rem;
    overflow: visible;
    min-width: 0;
    max-width: 100%;
}

/* Profil public : en-tÃªte pleine largeur, puis menu | contenu | blocs */
.member-public-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    min-width: 0;
}

.member-public-profile-grid > * {
    min-width: 0;
}

.member-public-profile-top,
.member-public-card--profile-head {
    grid-column: 1 / -1;
}

/* Corps sous lâ€™en-tÃªte : menu Ã  gauche (hors carte contenu) | zone principale | blocs */
.member-public-profile-shell,
.member-public-profile-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.member-public-profile-menu,
.member-public-profile-nav {
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.member-public-profile-stage {
    min-width: 0;
}

.member-public-card--profile-content {
    min-width: 0;
}

.member-public-profile-blocks,
.member-public-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

@media (min-width: 961px) {
    .member-public-profile-shell,
    .member-public-profile-body {
        grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(240px, 300px);
        gap: 1.15rem 1.35rem;
        transition: grid-template-columns 0.22s ease;
    }

    .member-public-profile-menu,
    .member-public-profile-nav {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        position: sticky;
        top: 1rem;
        z-index: 2;
    }

    .member-public-profile-stage {
        grid-column: 2;
        grid-row: 1;
    }

    .member-public-card--profile-content {
        grid-column: auto;
    }

    .member-public-profile-blocks,
    .member-public-sidebar {
        grid-column: 3;
        grid-row: 1;
        position: sticky;
        top: 1rem;
    }
}

.member-public-tabs-mobile-select-wrap {
    display: none;
}

.member-public-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.member-public-layout-main {
    min-width: 0;
}

/* RÃ©duire / agrandir le menu profil (desktop) */
@media (min-width: 961px) {
    .member-public-profile-menu {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .member-public-menu-collapse-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
        min-height: 36px;
        padding: 0.4rem 0.55rem;
        border: 1px solid rgba(20, 89, 130, 0.18);
        border-radius: 10px;
        background: #fff;
        color: var(--bg-accent);
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(14, 32, 56, 0.05);
        transition: background 0.15s ease, border-color 0.15s ease;
    }

    .member-public-menu-collapse-toggle:hover {
        border-color: rgba(20, 89, 130, 0.32);
        background: rgba(30, 115, 190, 0.06);
    }

    .member-public-profile-body.is-menu-collapsed,
    .member-public-profile-grid.is-menu-collapsed .member-public-profile-body {
        grid-template-columns: 56px minmax(0, 1fr) minmax(240px, 300px);
        transition: grid-template-columns 0.22s ease;
    }

    .member-public-profile-grid.is-menu-collapsed.is-stream-view .member-public-profile-body,
    .member-public-profile-grid.is-stream-view .member-public-profile-body.is-menu-collapsed {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .member-public-profile-body.is-menu-collapsed .member-public-menu-collapse-toggle {
        padding: 0.4rem;
    }

    .member-public-profile-body.is-menu-collapsed .member-public-menu-collapse-label {
        display: none;
    }

    .member-public-profile-body.is-menu-collapsed .member-public-tabs.member-public-tabs--rail {
        padding: 0.35rem 0.25rem;
    }

    .member-public-profile-body.is-menu-collapsed .member-public-tabs--rail.member-public-tabs--vertical .member-public-tab {
        justify-content: center;
        padding: 0.5rem 0.35rem;
    }

    .member-public-profile-body.is-menu-collapsed .member-public-tabs--rail.member-public-tabs--vertical .member-public-tab > span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .member-public-profile-body.is-menu-collapsed .member-public-tabs--rail.member-public-tabs--vertical .member-public-tab > i {
        margin: 0;
        font-size: 1rem;
    }

    .member-public-profile-grid.is-menu-collapsed.is-schedule-view .member-public-profile-body,
    .member-public-profile-grid.is-schedule-view .member-public-profile-body.is-menu-collapsed {
        grid-template-columns: 56px minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    .member-public-menu-collapse-toggle {
        display: none;
    }
}

/* Menu profil : colonne gauche sÃ©parÃ©e, carte blanche uniquement sur les onglets */
@media (min-width: 961px) {
    .member-public-tabs.member-public-tabs--rail {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        margin-top: 0;
        margin-bottom: 0;
        overflow-x: visible;
        overflow-y: auto;
        max-height: calc(100vh - 5.5rem);
        padding: 0.45rem;
        background: #fff;
        border: 1px solid rgba(20, 89, 130, 0.14);
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(14, 32, 56, 0.05);
        scrollbar-width: thin;
    }

    .member-public-tabs--rail.member-public-tabs--vertical .member-public-tab {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 0.48rem 0.62rem;
        min-height: auto;
        white-space: normal;
    }

    .member-public-tabs--rail.member-public-tabs--vertical .member-public-tab > span {
        flex: 1;
        min-width: 0;
    }

    .member-public-card--profile-tabs .member-public-tab-panels {
        min-width: 0;
    }
}

/* Mon Stream : mÃªme grille (menu gauche | contenu), sans blocs droite ; en-tÃªte conservÃ© */
@media (min-width: 961px) {
    .member-public-profile-grid.is-stream-view .member-public-profile-shell,
    .member-public-profile-grid.is-stream-view .member-public-profile-body {
        grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    }

    .member-public-profile-grid.is-stream-view .member-public-profile-blocks,
    .member-public-profile-grid.is-stream-view .member-public-sidebar {
        display: none !important;
    }
}

.member-public-profile-grid.is-stream-view .member-public-card--profile-content.member-public-card--profile-tabs {
    padding: 0.65rem;
}

.member-public-tab-panel--stream.is-active {
    padding: 0;
}

.member-public-profile-grid.is-stream-view .member-public-twitch-stream-panel {
    min-width: 0;
}

.member-public-profile-grid.is-stream-view .member-public-twitch-stream-panel .member-twitch-stream-head {
    margin-bottom: 0.75rem;
}

.member-public-profile-grid.is-stream-view .member-public-twitch-stream-panel .member-twitch-stream-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 0.85rem;
    align-items: stretch;
}

.member-public-profile-grid.is-stream-view .member-twitch-embed--player {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    width: 100%;
}

@media (max-width: 1100px) {
    .member-public-profile-grid.is-stream-view .member-public-twitch-stream-panel .member-twitch-stream-layout,
    .member-twitch-stream-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .member-twitch-stream-chat-block {
        height: auto;
    }

    .member-twitch-stream-chat-block .member-twitch-embed--chat {
        min-height: 400px;
        height: auto;
        flex: none;
    }
}

/* Planning stream : mÃªme grille que Mon Stream (menu | contenu), sans blocs droite */
@media (min-width: 961px) {
    .member-public-profile-grid.is-schedule-view .member-public-profile-shell,
    .member-public-profile-grid.is-schedule-view .member-public-profile-body {
        grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    }

    .member-public-profile-grid.is-schedule-view .member-public-profile-blocks,
    .member-public-profile-grid.is-schedule-view .member-public-sidebar {
        display: none !important;
    }
}

.member-public-profile-grid.is-schedule-view .member-public-card--profile-content.member-public-card--profile-tabs {
    padding: 0.65rem;
}

.member-public-tab-panel--schedule.is-active {
    padding: 0;
}

.member-public-profile-grid.is-schedule-view .member-public-stream-schedule-panel {
    min-width: 0;
}

.member-stream-schedule-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.member-stream-schedule-head-main h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--bg-accent);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.member-stream-schedule-lead,
.member-stream-schedule-channel {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted-text);
}

.member-stream-schedule-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.member-stream-schedule-view-toggle {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-card);
}

.member-stream-schedule-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.55rem;
    border: 0;
    background: transparent;
    color: var(--muted-text);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.member-stream-schedule-view-btn:hover {
    background: color-mix(in srgb, var(--link-color) 10%, transparent);
    color: var(--link-color);
}

.member-stream-schedule-view-btn.is-active {
    background: color-mix(in srgb, var(--link-color) 16%, transparent);
    color: var(--link-color);
}

.member-stream-schedule-view-btn + .member-stream-schedule-view-btn {
    border-left: 1px solid var(--border-color);
}

.member-stream-schedule-head-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.member-public-stream-schedule-panel .member-stream-schedule-by-day.is-view-list {
    gap: 1.25rem;
}

.member-public-stream-schedule-panel .member-stream-schedule-slot {
    padding: 0.85rem 0.95rem;
}

.member-stream-schedule-by-day.is-view-list .member-stream-schedule-slot {
    flex-wrap: nowrap;
}

.member-stream-schedule-by-day.is-view-grid {
    display: block;
}

.member-stream-schedule-week-shell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-stream-schedule-week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
}

.member-stream-schedule-week-range {
    margin: 0;
    min-width: 10rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--bg-accent);
}

.member-stream-schedule-week-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 22%, transparent);
    background: var(--surface-card, #fff);
    color: var(--bg-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--bg-dark) 6%, transparent);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.member-stream-schedule-week-btn:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--bg-blue) 38%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 8%, transparent);
    color: var(--button-hover-bg, var(--bg-accent));
}

.member-stream-schedule-week-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.member-stream-schedule-week-shell.is-week-loading .member-stream-schedule-week-grid-wrap {
    opacity: 0.55;
    pointer-events: none;
}

.member-stream-schedule-week-col.is-today {
    border-color: rgba(30, 115, 190, 0.45);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--bg-blue) 12%, transparent);
}

.member-stream-schedule-week-col.is-today .member-stream-schedule-week-col-head {
    background: rgba(30, 115, 190, 0.1);
}

.member-stream-schedule-week-col.is-today .member-stream-schedule-slot-date-daynum {
    color: var(--bg-accent, #1d6fb8);
}

.member-stream-schedule-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
}

.member-stream-schedule-week-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-card);
    overflow: hidden;
}

.member-stream-schedule-week-col.is-empty {
    opacity: 0.85;
}

.member-stream-schedule-week-col.is-empty .member-stream-schedule-week-col-head {
    background: var(--surface-panel);
}

.member-stream-schedule-week-col {
    min-height: 8.5rem;
}

.member-stream-schedule-week-col.has-slots {
    border-color: color-mix(in srgb, var(--link-color) 28%, var(--border-color));
    box-shadow: 0 1px 0 color-mix(in srgb, var(--link-color) 8%, transparent);
}

.member-stream-schedule-week-col-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.55rem 0.4rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-panel);
}

.member-stream-schedule-week-col-head .member-stream-schedule-slot-date-daynum {
    font-size: 1.25rem;
}

.member-stream-schedule-week-col .member-stream-schedule-slots {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0.55rem 0.45rem 0.65rem;
    flex: 1 1 auto;
}

.member-stream-schedule-week-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    margin: 0;
    padding: 0.65rem 0.35rem;
    min-height: 3.5rem;
    text-align: center;
    list-style: none;
}

.member-stream-schedule-week-empty-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--muted-text);
    opacity: 0.75;
}

.member-stream-schedule-empty-notice {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--surface-panel);
    font-size: 0.88rem;
    color: var(--muted-text);
}

.member-stream-schedule-member .member-stream-schedule-empty-notice {
    margin-bottom: 0.65rem;
}

.member-stream-schedule-member .member-stream-schedule-week-grid {
    min-width: 0;
}

.member-stream-schedule-by-day.is-view-grid .member-stream-schedule-slot {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    margin: 0;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.1);
    background: rgba(20, 89, 130, 0.03);
}

.member-stream-schedule-by-day.is-view-grid .member-stream-schedule-slot-cover {
    margin: 0 auto;
}

.member-stream-schedule-by-day.is-view-grid .member-stream-schedule-slot-main {
    width: 100%;
}

.member-stream-schedule-by-day.is-view-grid .member-stream-schedule-game-title {
    margin-top: 0.25rem;
}

.member-stream-schedule-slot-event-date {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(20, 89, 130, 0.68);
    text-transform: lowercase;
}

@media (max-width: 1100px) {
    .member-stream-schedule-week-grid {
        grid-template-columns: repeat(7, minmax(8.25rem, 1fr));
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .member-stream-schedule-week-col {
        scroll-snap-align: start;
    }
}

@media (max-width: 720px) {
    .member-stream-schedule-week-grid {
        grid-template-columns: repeat(7, minmax(7.5rem, 1fr));
    }

    .member-stream-schedule-week-col-head .member-stream-schedule-slot-date-weekday {
        font-size: 0.65rem;
    }

    .member-stream-schedule-week-col-head .member-stream-schedule-slot-date-daynum {
        font-size: 1.05rem;
    }
}

.member-public-sidebar-block {
    background: rgba(20, 89, 130, 0.04);
    border: 1px solid rgba(20, 89, 130, 0.12);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.member-public-sidebar-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-accent);
}

.member-sidebar-setup-section {
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(20, 89, 130, 0.11);
}

.member-public-sidebar-block--setup > .member-sidebar-setup-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.member-sidebar-setup-subtitle {
    margin: 0 0 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(20, 89, 130, 0.82);
}

.member-sidebar-setup-platform-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.member-sidebar-setup-platform-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(20, 89, 130, 0.11);
}

.member-sidebar-setup-platform-row-visual {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 89, 130, 0.07);
    border: 1px solid rgba(20, 89, 130, 0.12);
}

.member-sidebar-setup-platform-row-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-sidebar-setup-platform-row-icon {
    font-size: 1rem;
    color: rgba(20, 89, 130, 0.9);
}

.member-sidebar-setup-platform-row-label {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bg-dark);
}

.member-sidebar-setup-notes-detail {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.48;
    color: rgba(14, 32, 56, 0.9);
    max-height: 15rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.member-sidebar-setup-notes-detail p {
    margin: 0 0 0.45rem;
}

.member-sidebar-setup-notes-detail p:last-child {
    margin-bottom: 0;
}

.member-sidebar-setup-handles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.member-sidebar-setup-handle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.member-sidebar-setup-handle-label {
    font-weight: 700;
    color: rgba(20, 89, 130, 0.85);
}

.member-sidebar-setup-handle-value {
    font-weight: 600;
    color: var(--bg-dark);
    word-break: break-word;
}

.member-sidebar-empty {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(20, 40, 60, 0.72);
    line-height: 1.35;
}

.member-sidebar-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.member-sidebar-thumb-btn {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    aspect-ratio: 1;
    transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.member-sidebar-thumb-btn:hover {
    box-shadow: 0 0 0 2px rgba(20, 89, 130, 0.35);
    transform: translateY(-1px);
}

.member-sidebar-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-sidebar-collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.member-sidebar-collection-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    aspect-ratio: 3 / 4;
    transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.member-sidebar-collection-btn:hover {
    box-shadow: 0 0 0 2px rgba(20, 89, 130, 0.35);
    transform: translateY(-1px);
}

.member-sidebar-collection-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-sidebar-collection-fallback {
    color: rgba(20, 89, 130, 0.45);
    font-size: 1.35rem;
}

.member-sidebar-link-btn {
    display: block;
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.4rem 0.5rem;
    border: 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    color: var(--bg-blue);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.member-sidebar-link-btn:hover {
    background: color-mix(in srgb, var(--bg-blue) 20%, transparent);
    color: var(--button-hover-bg, var(--bg-accent));
}

.member-sidebar-online-list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 220px;
    overflow-y: auto;
}

.member-sidebar-online-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.member-sidebar-online-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.member-sidebar-online-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.member-sidebar-online-name {
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f3d5c;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.member-sidebar-online-name:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    /* Profil public Ã©troit : pleine largeur + en-tÃªte centrÃ© (alignÃ© sur la grille 1 colonne). */
    .member-public-page.site-main {
        width: 100%;
        max-width: 100%;
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    }

    .member-public-profile-grid,
    .member-public-profile-shell,
    .member-public-profile-body {
        grid-template-columns: 1fr;
        width: 100%;
        min-width: 0;
    }

    .member-public-profile-menu,
    .member-public-profile-nav {
        display: none;
    }

    .member-public-profile-stage,
    .member-public-card--profile-content,
    .member-public-profile-blocks,
    .member-public-sidebar {
        grid-column: 1;
        grid-row: auto;
    }

    .member-public-card {
        width: 100%;
        min-width: 0;
    }

    .member-public-page .member-social-stats {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Masque la barre dâ€™onglets horizontale (les boutons restent dans le DOM pour les clics programmatiques / sidebar) */
    .member-public-tabs.member-public-tabs--rail {
        display: none;
    }

    .member-public-tabs-mobile-select-wrap {
        display: block;
        position: relative;
        z-index: 5;
        margin-bottom: 0.85rem;
    }

    .member-public-tabs-mobile-picker-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 0.85rem;
        border-radius: 12px;
        border: 1px solid rgba(20, 89, 130, 0.22);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
        box-shadow: 0 2px 10px rgba(20, 89, 130, 0.08);
        font: inherit;
        font-weight: 700;
        font-size: 0.95rem;
        color: #0f3d5c;
        cursor: pointer;
        text-align: left;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .member-public-tabs-mobile-picker-toggle:hover {
        border-color: rgba(20, 89, 130, 0.38);
        box-shadow: 0 4px 14px rgba(20, 89, 130, 0.12);
    }

    .member-public-tabs-mobile-picker-toggle.is-open {
        border-color: rgba(30, 115, 190, 0.45);
        box-shadow: 0 4px 16px rgba(20, 89, 130, 0.16);
    }

    .member-public-tabs-mobile-picker-current {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
        flex: 1;
    }

    .member-public-tabs-mobile-picker-icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 10px;
        background: rgba(20, 89, 130, 0.1);
        color: var(--bg-accent);
        font-size: 1rem;
    }

    .member-public-tabs-mobile-picker-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .member-public-tabs-mobile-picker-chevron {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        height: 1.75rem;
        color: rgba(20, 89, 130, 0.55);
        font-size: 0.72rem;
        transition: transform 0.2s ease;
    }

    .member-public-tabs-mobile-picker-toggle.is-open .member-public-tabs-mobile-picker-chevron {
        transform: rotate(180deg);
    }

    .member-public-tabs-mobile-picker-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.35rem);
        max-height: min(70vh, 22rem);
        overflow-y: auto;
        padding: 0.35rem;
        border-radius: 12px;
        border: 1px solid rgba(20, 89, 130, 0.16);
        background: #fff;
        box-shadow: 0 12px 40px rgba(15, 45, 70, 0.18);
        -webkit-overflow-scrolling: touch;
    }

    .member-public-tabs-mobile-picker-menu[hidden] {
        display: none !important;
    }

    .member-public-tabs-mobile-option {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        box-sizing: border-box;
        padding: 0.72rem 0.65rem;
        margin: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        font: inherit;
        font-weight: 600;
        font-size: 0.92rem;
        color: rgba(14, 32, 56, 0.82);
        cursor: pointer;
        text-align: left;
        transition: background 0.12s ease, color 0.12s ease;
    }

    .member-public-tabs-mobile-option:hover {
        background: rgba(20, 89, 130, 0.07);
        color: var(--bg-accent);
    }

    .member-public-tabs-mobile-option.is-active {
        background: rgba(20, 89, 130, 0.1);
        color: var(--bg-accent);
    }

    .member-public-tabs-mobile-option-icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 10px;
        background: rgba(20, 89, 130, 0.08);
        color: var(--bg-accent);
        font-size: 1.05rem;
    }

    .member-public-tabs-mobile-option.is-active .member-public-tabs-mobile-option-icon {
        background: #fff;
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--bg-blue) 35%, transparent);
    }

    .member-public-tabs-mobile-option-label {
        flex: 1;
        min-width: 0;
    }

    .member-public-sidebar {
        position: static;
    }
}

.member-public-cover {
    margin: -1rem -1rem 0 -1rem;
    position: relative;
    padding-bottom: 0.2rem;
    overflow: visible;
}

.member-public-cover:not(.member-public-cover--no-banner) .member-public-banner {
    border-radius: 13px 13px 0 0;
}

.member-public-cover--no-banner .member-public-head {
    padding-top: 0.35rem;
    align-items: center;
}

.member-public-banner {
    width: 100%;
    height: 200px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
}

.member-public-banner--animated {
    overflow: hidden;
    background-image: none !important;
}

.member-public-banner__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* En-tÃªte profil public : colonne centrÃ©e par dÃ©faut ; les rÃ¨gles desktop sont aprÃ¨s ce bloc (min-width 961px) pour ne pas Ã©craser le mobile. */
.member-public-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    overflow: visible;
    padding: 0 0 0.55rem;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Chevauchement banniÃ¨re : -44px Ã©troit, -52px Ã  partir de 961px. */
.member-public-cover:not(.member-public-cover--no-banner) .member-public-avatar-ring {
    margin-top: -44px;
}

.member-public-cover--no-banner .member-public-avatar-ring {
    margin-top: 0;
}

.member-public-avatar-ring {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(14, 32, 56, 0.12);
    overflow: visible;
    line-height: 0;
}

.member-public-avatar-ring .member-avatar-status-avatar,
.member-public-avatar-ring .member-public-avatar {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    line-height: 0;
}

.member-avatar-status-wrap {
    position: relative;
    display: inline-block;
}

.member-public-avatar-ring .member-avatar-status-wrap {
    display: block;
    line-height: 0;
}

.member-avatar-status-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    z-index: 5;
    width: max-content;
    max-width: min(240px, 78vw);
    padding: 0.38rem 0.75rem;
    border: 2px solid rgba(14, 32, 56, 0.92);
    border-radius: 999px;
    background: #fff;
    color: rgba(14, 32, 56, 0.95);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: 2px 3px 0 rgba(14, 32, 56, 0.12);
    pointer-events: none;
}

.member-avatar-status-bubble-text {
    display: block;
    max-width: min(220px, 74vw);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-avatar-status-bubble::before,
.member-avatar-status-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.member-avatar-status-bubble::after {
    bottom: -11px;
    border-width: 11px 9px 0;
    border-color: rgba(14, 32, 56, 0.92) transparent transparent;
}

.member-avatar-status-bubble::before {
    bottom: -7px;
    z-index: 1;
    border-width: 8px 7px 0;
    border-color: #fff transparent transparent;
}

.member-avatar-status-wrap--directory .member-avatar-status-bubble {
    max-width: min(160px, 62vw);
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
}

.member-avatar-status-wrap--directory .member-avatar-status-bubble-text {
    max-width: min(148px, 58vw);
}

.member-avatar-status-avatar {
    position: relative;
    line-height: 0;
}

.member-avatar-status-wrap.is-editable .member-avatar-status-avatar {
    overflow: visible;
}

.member-avatar-status-edit-trigger {
    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(20, 89, 130, 0.92);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(14, 32, 56, 0.2);
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    line-height: 1;
    font: inherit;
}

.member-avatar-status-edit-trigger:hover {
    background: rgba(14, 32, 56, 0.95);
}

.member-avatar-status-edit-trigger i {
    font-size: 0.82rem;
}

.member-avatar-status-dialog {
    border: 0;
    padding: 0;
    max-width: min(440px, calc(100vw - 1.5rem));
    width: 100%;
    background: transparent;
    color: rgba(14, 32, 56, 0.95);
}

.member-avatar-status-dialog::backdrop {
    background: rgba(10, 22, 40, 0.55);
    backdrop-filter: blur(4px);
}

.member-avatar-status-modal {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow:
        0 24px 48px rgba(14, 32, 56, 0.22),
        0 0 0 1px rgba(20, 89, 130, 0.08);
}

.member-avatar-status-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.15rem 0.85rem;
    border-bottom: 1px solid rgba(20, 89, 130, 0.1);
}

.member-avatar-status-modal__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(20, 89, 130, 0.72);
}

.member-avatar-status-modal__header-text h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    color: rgba(14, 32, 56, 0.96);
}

.member-avatar-status-modal__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(20, 89, 130, 0.08);
    color: rgba(14, 32, 56, 0.75);
    cursor: pointer;
}

.member-avatar-status-modal__close:hover {
    background: rgba(20, 89, 130, 0.14);
    color: rgba(14, 32, 56, 0.95);
}

.member-avatar-status-modal__preview {
    padding: 1rem 1.15rem 0.35rem;
    background: linear-gradient(180deg, rgba(20, 89, 130, 0.06) 0%, rgba(20, 89, 130, 0.02) 100%);
}

.member-avatar-status-modal__preview-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 7.5rem;
    justify-content: flex-end;
    padding-bottom: 0.35rem;
}

.member-avatar-status-bubble--preview {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 0 auto 0.55rem;
    pointer-events: auto;
}

.member-avatar-status-bubble--preview.is-empty .member-avatar-status-bubble-text {
    opacity: 0.45;
    font-weight: 600;
}

.member-avatar-status-modal__preview-avatar {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(14, 32, 56, 0.16);
    background: rgba(20, 89, 130, 0.08);
}

.member-avatar-status-modal__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-avatar-status-modal__preview-hint {
    margin: 0.55rem 0 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.55);
}

.member-avatar-status-modal__preview-hint i {
    margin-right: 0.25rem;
    opacity: 0.85;
}

.member-avatar-status-modal__body {
    padding: 0.9rem 1.15rem 0.25rem;
}

.member-avatar-status-modal__label {
    display: block;
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(14, 32, 56, 0.72);
}

.member-avatar-status-modal__field {
    position: relative;
    margin-bottom: 0.85rem;
}

.member-avatar-status-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(20, 89, 130, 0.2);
    border-radius: 12px;
    padding: 0.72rem 3.25rem 0.72rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: #fff;
    color: rgba(14, 32, 56, 0.95);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-avatar-status-input:focus {
    outline: none;
    border-color: rgba(20, 89, 130, 0.55);
    box-shadow: 0 0 0 3px rgba(20, 89, 130, 0.14);
}

.member-avatar-status-modal__counter {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(14, 32, 56, 0.45);
    pointer-events: none;
}

.member-avatar-status-modal__counter.is-near-limit {
    color: rgba(180, 83, 9, 0.95);
}

.member-avatar-status-modal__presets-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(14, 32, 56, 0.5);
}

.member-avatar-status-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.member-avatar-status-preset {
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.16);
    background: rgba(20, 89, 130, 0.05);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.88);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.member-avatar-status-preset:hover {
    background: rgba(20, 89, 130, 0.12);
    border-color: rgba(20, 89, 130, 0.28);
}

.member-avatar-status-preset.is-selected {
    border-color: rgba(20, 89, 130, 0.45);
    background: rgba(20, 89, 130, 0.14);
}

.member-avatar-status-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.85rem 1.15rem 1.1rem;
    border-top: 1px solid rgba(20, 89, 130, 0.1);
    background: rgba(248, 250, 252, 0.85);
}

.member-avatar-status-modal__btn {
    min-height: 2.65rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}

.member-avatar-status-modal__btn--ghost {
    margin-right: auto;
    background: transparent;
    border-color: transparent;
    color: rgba(185, 28, 28, 0.92);
}

.member-avatar-status-modal__btn--ghost:hover {
    background: rgba(185, 28, 28, 0.08);
}

.member-avatar-status-modal__btn--primary {
    background: var(--reviews-score-bg, var(--bg-blue, #145982));
    color: var(--button-text, #fff);
    box-shadow: 0 4px 12px rgba(20, 89, 130, 0.25);
}

.member-avatar-status-modal__btn--primary:hover {
    filter: brightness(1.05);
}

.member-avatar-status-modal__btn--primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

body.theme-dark .member-avatar-status-bubble {
    background: rgba(22, 36, 58, 0.98);
    border-color: rgba(219, 232, 255, 0.35);
    color: rgba(240, 246, 255, 0.95);
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
}

body.theme-dark .member-avatar-status-bubble::after {
    border-top-color: rgba(219, 232, 255, 0.35);
}

body.theme-dark .member-avatar-status-bubble::before {
    border-top-color: rgba(22, 36, 58, 0.98);
}

body.theme-dark .member-avatar-status-modal {
    background: rgba(18, 30, 48, 0.98);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(219, 232, 255, 0.1);
}

body.theme-dark .member-avatar-status-modal__header,
body.theme-dark .member-avatar-status-modal__footer {
    border-color: rgba(219, 232, 255, 0.12);
}

body.theme-dark .member-avatar-status-modal__header-text h2,
body.theme-dark .member-avatar-status-dialog {
    color: rgba(240, 246, 255, 0.96);
}

body.theme-dark .member-avatar-status-modal__preview {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body.theme-dark .member-avatar-status-modal__close {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(219, 232, 255, 0.85);
}

body.theme-dark .member-avatar-status-modal__footer {
    background: rgba(0, 0, 0, 0.2);
}

body.theme-dark .member-avatar-status-preset {
    border-color: rgba(219, 232, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(219, 232, 255, 0.88);
}

body.theme-dark .member-avatar-status-input {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(219, 232, 255, 0.2);
    color: rgba(240, 246, 255, 0.95);
}

body.theme-dark .member-avatar-status-modal__label,
body.theme-dark .member-avatar-status-modal__presets-label,
body.theme-dark .member-avatar-status-modal__preview-hint {
    color: rgba(219, 232, 255, 0.62);
}

.member-public-avatar img,
.member-public-avatar-ring .member-avatar-status-avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.member-public-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 0.15rem;
}

.member-public-name-row {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
    width: 100%;
}

.member-name-with-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 auto;
}

.member-name-with-badge > h1,
.member-name-with-badge > h2 {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.member-public-identity .member-name-with-badge {
    justify-content: center;
    flex: 0 1 auto;
    max-width: 100%;
}

.member-public-identity .member-name-with-badge > h1,
.member-public-identity .member-name-with-badge > h2 {
    flex: none;
    text-align: center;
}

.member-public-identity .member-name-with-badge > .member-streamer-badge {
    flex: none;
}

.member-profile-name-text {
    min-width: 0;
}

.member-moderator-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.88em;
    color: #146293;
    line-height: 1;
}

.member-moderator-badge i {
    display: block;
    line-height: 1;
}

body.theme-dark .member-moderator-badge {
    color: #6ec8ff;
}

.member-streamer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-blue) 20%, transparent);
    color: var(--bg-blue);
    font-size: 0.82rem;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}

.member-streamer-badge i {
    display: block;
    line-height: 1;
}

body.theme-dark .member-streamer-badge {
    background: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    color: color-mix(in srgb, var(--text-light) 85%, var(--bg-blue));
}

.member-name-with-badge--inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    vertical-align: middle;
}

.member-name-with-badge--inline > a {
    min-width: 0;
}

.member-name-with-badge--directory .member-streamer-badge {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.78rem;
}

.member-public-bio-row {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem 1rem;
    margin-bottom: 0.35rem;
    width: 100%;
}

.member-public-bio {
    margin: 0;
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    text-align: center;
    color: rgba(14, 32, 56, 0.75);
}

.member-public-bio-row .member-public-socials {
    flex: 0 0 auto;
    flex-basis: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    align-self: center;
    justify-content: center;
}

.member-public-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

.member-public-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(20, 89, 130, 0.2);
    font-size: 1.05rem;
    color: var(--bg-accent);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-public-socials a:hover {
    background: rgba(20, 89, 130, 0.08);
    border-color: rgba(20, 89, 130, 0.35);
}

.member-public-socials a i {
    line-height: 1;
    display: block;
}

.member-social-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 0.35rem;
    color: rgba(14, 32, 56, 0.75);
    font-size: 0.86rem;
    align-items: center;
}

.member-social-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.member-social-stat i {
    font-size: 0.95rem;
    color: var(--bg-accent);
    opacity: 0.92;
}

.member-social-stat-value {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: rgba(14, 32, 56, 0.88);
}

.member-social-stat-label {
    font-weight: 600;
    color: rgba(14, 32, 56, 0.68);
}

/* Desktop profil public : aprÃ¨s les rÃ¨gles mobile (centrage) pour gagner au cascade. */
@media (min-width: 961px) {
    .member-public-head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        padding: 0 1rem 0.55rem;
        width: auto;
    }

    .member-public-cover:not(.member-public-cover--no-banner) .member-public-avatar-ring {
        margin-top: -52px;
    }

    .member-public-identity {
        align-items: flex-start;
        text-align: left;
        flex: 1;
        width: auto;
        max-width: none;
    }

    .member-public-name-row {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: auto;
    }

    .member-public-identity .member-name-with-badge {
        justify-content: flex-start;
        flex: 1 1 auto;
    }

    .member-public-identity .member-name-with-badge > h1,
    .member-public-identity .member-name-with-badge > h2 {
        flex: 1 1 auto;
        text-align: left;
    }

    .member-public-bio-row {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: auto;
    }

    .member-public-bio {
        flex: 1 1 14rem;
        width: auto;
        text-align: left;
    }

    .member-public-bio-row .member-public-socials {
        flex-basis: auto;
        width: auto;
        justify-content: flex-end;
    }

    .member-public-socials {
        justify-content: flex-end;
    }
}

body.theme-dark .member-social-stats {
    color: rgba(230, 237, 246, 0.82);
}

body.theme-dark .member-social-stat i {
    color: #7dd3fc;
}

body.theme-dark .member-social-stat-value {
    color: rgba(230, 237, 246, 0.92);
}

body.theme-dark .member-social-stat-label {
    color: rgba(230, 237, 246, 0.65);
}

body.theme-dark .member-public-bio {
    color: var(--muted-text);
}

body.theme-dark .member-public-socials a {
    background: rgba(10, 18, 32, 0.55);
    border-color: color-mix(in srgb, var(--bg-blue) 32%, transparent);
    color: color-mix(in srgb, var(--bg-blue) 70%, var(--text-dark));
}

body.theme-dark .member-public-socials a:hover {
    background: color-mix(in srgb, var(--bg-blue) 18%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 48%, transparent);
    color: var(--text-dark);
}

.member-social-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.member-social-action-btn {
    border: 1px solid var(--button-bg, var(--bg-blue));
    background: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
    border-radius: 999px;
    min-height: 36px;
    padding: 0.45rem 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-social-action-btn:hover {
    background: var(--button-hover-bg, var(--bg-accent));
    border-color: var(--button-hover-bg, var(--bg-accent));
    color: var(--button-text, #fff);
}

.member-social-action-btn.is-secondary {
    background: var(--surface-card, #fff);
    color: var(--bg-blue);
    border: 1px solid color-mix(in srgb, var(--bg-blue) 35%, transparent);
}

.member-social-action-btn.is-secondary:hover {
    background: color-mix(in srgb, var(--bg-blue) 10%, transparent);
    border-color: var(--bg-blue);
    color: var(--bg-blue);
}

.member-friend-requests {
    margin-top: 0.95rem;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 14%, transparent);
    background: color-mix(in srgb, var(--surface-panel, #f6faff) 95%, transparent);
    color: inherit;
}

.member-friend-requests h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    line-height: 1.3;
    color: inherit;
}

.member-friend-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
}

.member-friend-request-item + .member-friend-request-item {
    border-top: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 10%, transparent);
}

.member-friend-request-item span {
    font-weight: 600;
    color: inherit;
}

.member-friend-request-item form {
    margin: 0;
    flex-shrink: 0;
}

.member-friend-request-item form button {
    border: 1px solid var(--button-bg, var(--bg-blue));
    background: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
    border-radius: 999px;
    min-height: 32px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-friend-request-item form button:hover {
    background: var(--button-hover-bg, var(--bg-accent));
    border-color: var(--button-hover-bg, var(--bg-accent));
    color: var(--button-text, #fff);
}

.header-notifications {
    position: relative;
}

.header-notifications-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    position: relative;
}

.header-notifications-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

.header-notifications-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    width: min(360px, 92vw);
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    z-index: 120;
    color: var(--bg-dark);
}

.header-notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(20, 89, 130, 0.1);
}

.header-notifications-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-notifications-action {
    border: 0;
    background: transparent;
    color: var(--bg-blue);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.15s ease;
    padding: 0.15rem 0.25rem;
}

.header-notifications-action:hover:not(:disabled) {
    color: var(--button-hover-bg, var(--bg-accent));
}

.header-notifications-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.header-notifications-action--danger {
    color: #b42318;
}

.header-notifications-action--danger:hover:not(:disabled) {
    color: #912018;
}

.header-notifications-head form button {
    border: 0;
    background: transparent;
    color: var(--bg-blue);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
}

.header-notifications-head form button:hover {
    color: var(--button-hover-bg, var(--bg-accent));
}

.header-notifications-list {
    max-height: 320px;
    overflow: auto;
}

.header-notification-item {
    display: block;
    padding: 0.68rem 0.75rem;
    border-bottom: 1px solid rgba(20, 89, 130, 0.08);
}

.header-notification-item.is-unread {
    background: rgba(20, 89, 130, 0.06);
}

.header-notification-item small {
    display: block;
    margin-top: 0.2rem;
    color: rgba(14, 32, 56, 0.62);
}

.header-notifications-empty {
    margin: 0;
    padding: 0.75rem;
    color: rgba(14, 32, 56, 0.7);
}

.p4g-achievement-unlock-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 10040;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: min(100vw - 2rem, 360px);
    pointer-events: none;
}

.p4g-achievement-unlock-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 159, 64, 0.45);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.98));
    color: #fff7ed;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.34);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    pointer-events: auto;
}

.p4g-achievement-unlock-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.p4g-achievement-unlock-toast__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 159, 64, 0.16);
    color: #ffb347;
    overflow: hidden;
    flex-shrink: 0;
}

.p4g-achievement-unlock-toast__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p4g-achievement-unlock-toast__body {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.p4g-achievement-unlock-toast__kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 183, 77, 0.92);
}

.p4g-achievement-unlock-toast__title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.p4g-achievement-unlock-toast__p4g {
    font-size: 0.78rem;
    font-weight: 700;
    color: #86efac;
}

.p4g-achievement-unlock-toast__close {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.p4g-achievement-unlock-toast:hover {
    color: #fff7ed;
    border-color: rgba(255, 183, 77, 0.65);
}

@media (max-width: 640px) {
    .p4g-achievement-unlock-stack {
        right: 0.65rem;
        bottom: 0.65rem;
        width: min(100vw - 1.3rem, 360px);
    }
}

.member-feed-composer {
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem;
    background: var(--surface-panel);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.member-feed-composer .member-profile-form {
    min-width: 0;
    max-width: 100%;
    /* Une colonne minmax(0,1fr) Ã©vite que la piste prenne la largeur max-content du textarea (dÃ©bordement mobile). */
    grid-template-columns: minmax(0, 1fr);
}

.member-feed-composer .member-profile-form > * {
    min-width: 0;
    max-width: 100%;
}

.member-feed-composer .member-composer-life-event,
.member-feed-composer .member-composer-life-event--fb {
    min-width: 0;
    max-width: 100%;
}

.member-feed-composer .member-profile-form textarea,
.member-feed-composer textarea.member-post-composer-textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 14px;
    min-height: 110px;
    margin-bottom: 0.35rem;
}

.member-feed-composer .member-composer-text-bg-shell textarea.member-post-composer-textarea {
    margin-bottom: 0;
}

.member-feed-composer .member-composer-text-bg-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.member-feed-composer .member-profile-form > button[type="submit"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: var(--reviews-score-bg, var(--button-bg, var(--bg-blue)));
    color: var(--reviews-score-text, var(--button-text, #fff));
}

.member-feed-composer .member-profile-form > button[type="submit"]:hover {
    background: color-mix(in srgb, var(--reviews-score-bg, var(--button-bg, var(--bg-blue))) 88%, #000);
    color: var(--reviews-score-text, var(--button-text, #fff));
}

.member-feed-composer .member-composer-hint {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.member-feed-composer .member-gif-picker,
.member-feed-composer .member-emoji-picker,
.member-feed-composer .member-gif-preview,
.member-feed-composer .member-media-upload-preview {
    max-width: 100%;
    box-sizing: border-box;
}

.member-feed-composer h2 {
    margin: 0;
    font-size: 1rem;
}

.member-composer-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 0.75rem;
    margin-bottom: 0.55rem;
}

.member-composer-head h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.member-composer-privacy-block {
    display: contents;
}

.member-composer-privacy-block .member-composer-privacy-friends {
    flex: 1 1 100%;
    width: 100%;
}

.member-composer-privacy .member-post-privacy-toggle--chip {
    max-width: min(100%, 280px);
}

.member-composer-privacy .member-post-privacy-menu {
    min-width: min(92vw, 300px);
}

.member-profile-form .member-post-privacy-toggle,
.member-profile-form .member-post-privacy-option {
    min-height: unset;
    font-weight: inherit;
    font-family: inherit;
}

.member-profile-form .member-post-privacy-toggle {
    border: 1px solid rgba(20, 89, 130, 0.22);
    border-radius: 999px;
    background: rgba(246, 250, 255, 0.95);
    color: var(--bg-accent, #145982);
    padding: 0;
}

.member-profile-form .member-post-privacy-toggle--chip {
    min-height: 34px;
    padding: 0.28rem 0.55rem 0.28rem 0.42rem;
}

.member-profile-form .member-post-privacy-toggle--compact {
    width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 50%;
    padding: 0;
}

.member-profile-form .member-post-privacy-option {
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: rgba(14, 32, 56, 0.9);
    padding: 0.5rem 0.55rem;
    text-align: left;
}

.member-profile-form .member-post-privacy-option:hover {
    background: rgba(20, 89, 130, 0.06);
    border-color: rgba(20, 89, 130, 0.08);
    color: rgba(14, 32, 56, 0.9);
}

body.theme-dark .member-profile-form .member-post-privacy-toggle {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(159, 181, 211, 0.24);
    color: rgba(191, 219, 254, 0.95);
}

body.theme-dark .member-profile-form .member-post-privacy-option {
    color: rgba(226, 232, 240, 0.92);
}

.member-feed-video {
    margin-top: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
    line-height: 0;
}

.member-feed-video iframe {
    width: 100%;
    display: block;
    border: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 200px;
}

.member-feed-video .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.member-feed-video .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    min-height: unset;
}

/* Embeds sociaux (X / Twitter) dans le fil membre : pas de ratio 16:9. */
.member-feed-embed--rich,
.member-feed-video.member-feed-embed--rich {
    width: auto;
    max-width: min(100%, 550px);
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    background: transparent;
    line-height: normal;
}

.member-feed-embed--rich iframe,
.member-feed-video.member-feed-embed--rich iframe {
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0 auto;
    display: block;
}

.member-feed-embed--rich blockquote.twitter-tweet,
.member-feed-video.member-feed-embed--rich blockquote.twitter-tweet {
    margin: 0 auto !important;
}

/* Conteneur de la barre dâ€™outils (scroll horizontal uniquement en responsive â€” voir @media max 960px). */
.member-composer-tools-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.member-composer-toolbar-cluster > .member-composer-tools-scroll,
.member-composer-footer .member-composer-tools-scroll {
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
    width: auto;
    max-width: none;
}

/* Desktop : pas de bandeau scrollable, les boutons peuvent passer sur plusieurs lignes. */
.member-composer-tools-scroll .member-composer-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}

.member-composer-tools-scroll .member-composer-icon,
.member-composer-tools-scroll .member-life-event-tool-slot,
.member-composer-tools-scroll .member-ma-tool-slot {
    flex-shrink: 0;
}

@media (max-width: 960px) {
    /*
     * iOS Safari : dÃ©filement horizontal fiable avec conteneur en block + rangÃ©e en inline-flex
     * (Ã©vite les bugs de swipe sur une simple flex row). overflow-x: scroll force la zone scrollable.
     */
    .member-composer-tools-scroll {
        display: block;
        overflow-x: scroll;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: auto;
    }

    .member-composer-tools-scroll::-webkit-scrollbar {
        height: 3px;
    }

    .member-composer-tools-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .member-composer-tools-scroll::-webkit-scrollbar-thumb {
        background: transparent;
    }

    .member-composer-tools-scroll .member-composer-tools {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.45rem;
        width: max-content;
        max-width: none;
        min-width: min-content;
        vertical-align: top;
    }

    .member-composer-tools-scroll .member-composer-icon,
    .member-composer-tools-scroll .member-life-event-tool-slot {
        white-space: nowrap;
    }

    .member-composer-tools-scroll .member-ma-tool-slot {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        flex-shrink: 0;
        max-width: none;
        width: auto;
        white-space: nowrap;
    }

    .member-composer-gallery-preview.is-visible {
        margin-top: 0.75rem;
    }

    .member-composer-gallery-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
        gap: 0.5rem;
    }

    .member-feed-gallery-grid--3 .member-feed-gallery-item:first-child {
        grid-row: span 2;
        min-height: 220px;
    }

    .member-feed-gallery-item {
        min-height: 100px;
    }

    .member-feed-gallery-item img,
    .member-feed-gallery-item video {
        min-height: 100px;
    }
}

.member-composer-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.member-composer-icon {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: #fff;
    color: rgba(14, 32, 56, 0.78);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.member-composer-icon:hover {
    background: #f6fbff;
    border-color: rgba(20, 89, 130, 0.32);
}

.member-composer-icon:focus-visible {
    outline: 2px solid rgba(20, 89, 130, 0.35);
    outline-offset: 2px;
}

.member-composer-icon.is-disabled,
.member-composer-icon:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.35);
}

.member-composer-file {
    display: none;
}

.member-gif-picker {
    display: none;
    margin-bottom: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 0.5rem;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(246, 250, 255, 0.52) 45%,
        rgba(255, 255, 255, 0.38) 100%
    );
    backdrop-filter: blur(16px) saturate(1.35);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 8px 28px rgba(14, 32, 56, 0.08);
}

.member-emoji-picker {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 0.45rem;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(246, 250, 255, 0.52) 45%,
        rgba(255, 255, 255, 0.38) 100%
    );
    backdrop-filter: blur(16px) saturate(1.35);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 8px 28px rgba(14, 32, 56, 0.08);
}

.member-emoji-picker.is-open {
    display: flex;
}

.member-emoji-picker-cats {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.28rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    margin: 0 -0.1rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.member-emoji-picker-cats::-webkit-scrollbar {
    height: 4px;
}

.member-emoji-picker-cat {
    flex: 0 0 auto;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.48) 0%,
        rgba(246, 250, 255, 0.22) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 1px 2px rgba(20, 89, 130, 0.05);
}

.member-emoji-picker-cat:hover {
    border-color: rgba(20, 89, 130, 0.22);
    background: linear-gradient(
        155deg,
        rgba(20, 89, 130, 0.08) 0%,
        rgba(255, 255, 255, 0.42) 100%
    );
}

.member-emoji-picker-cat.is-active {
    border-color: rgba(20, 89, 130, 0.38);
    background: linear-gradient(
        155deg,
        rgba(20, 89, 130, 0.12) 0%,
        rgba(246, 250, 255, 0.45) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 0 1px rgba(20, 89, 130, 0.1);
}

.member-emoji-picker-swipe-hint {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.55);
    text-align: center;
}

@media (min-width: 640px) {
    .member-emoji-picker-swipe-hint {
        display: none !important;
    }
}

.member-emoji-picker-viewport {
    min-height: 9.5rem;
}

.member-emoji-picker-grid-wrap {
    touch-action: pan-y;
}

.member-emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.3rem;
}

.member-emoji-picker-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding-top: 0.15rem;
}

.member-emoji-picker-page-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.52) 0%,
        rgba(246, 250, 255, 0.28) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(14, 32, 56, 0.75);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 1px 2px rgba(20, 89, 130, 0.06);
}

.member-emoji-picker-page-btn:hover:not(:disabled) {
    border-color: rgba(20, 89, 130, 0.22);
    color: var(--bg-accent);
}

.member-emoji-picker-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.member-emoji-picker-page-status {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(14, 32, 56, 0.72);
    min-width: 4.5rem;
    text-align: center;
}

.member-emoji-choice {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.58) 0%,
        rgba(255, 255, 255, 0.22) 42%,
        rgba(246, 250, 255, 0.35) 100%
    );
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 1px 2px rgba(20, 89, 130, 0.06);
    min-height: 36px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.member-emoji-choice:hover {
    background: linear-gradient(
        155deg,
        rgba(20, 89, 130, 0.1) 0%,
        rgba(255, 255, 255, 0.42) 100%
    );
    border-color: rgba(20, 89, 130, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 2px 8px rgba(20, 89, 130, 0.1);
}

.member-gif-picker.is-open {
    display: block;
}

.member-gif-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    gap: 0.5rem;
}

.member-gif-picker-head strong {
    font-size: 0.86rem;
}

.member-gif-picker-search {
    width: 100%;
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 0.35rem 0.55rem;
    margin-bottom: 0.45rem;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(246, 250, 255, 0.28) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.member-gif-picker-clear {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.52) 0%,
        rgba(246, 250, 255, 0.28) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    min-height: 30px;
    padding: 0 0.55rem;
    font-size: 0.78rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 1px 2px rgba(20, 89, 130, 0.06);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-gif-picker-clear:hover {
    border-color: rgba(20, 89, 130, 0.22);
    background: linear-gradient(
        155deg,
        rgba(20, 89, 130, 0.08) 0%,
        rgba(255, 255, 255, 0.48) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 2px 8px rgba(20, 89, 130, 0.1);
}

.member-gif-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.35rem;
    max-height: 15.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.member-klipy-picker-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0.5rem 0 0.15rem;
}

.member-klipy-picker-page-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.52) 0%,
        rgba(246, 250, 255, 0.28) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(14, 32, 56, 0.75);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 1px 2px rgba(20, 89, 130, 0.06);
}

.member-klipy-picker-page-btn:hover:not(:disabled),
.member-klipy-picker-page-btn:focus-visible:not(:disabled) {
    border-color: rgba(20, 89, 130, 0.22);
    color: var(--bg-accent, #145982);
}

.member-klipy-picker-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.member-klipy-picker-page-status {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(14, 32, 56, 0.72);
    min-width: 5rem;
    text-align: center;
}

.member-gif-choice {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(20, 89, 130, 0.06) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 1px 3px rgba(14, 32, 56, 0.06);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.member-gif-choice:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(20, 89, 130, 0.12) 100%
    );
    border-color: rgba(20, 89, 130, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 4px 12px rgba(20, 89, 130, 0.12);
}

.member-gif-choice img,
.member-gif-choice .member-klipy-choice-video {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: cover;
    object-position: center;
}

.member-gif-picker-grid--sticker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.member-gif-picker-grid--sticker .member-gif-choice img,
.member-gif-picker-grid--sticker .member-gif-choice .member-klipy-choice-video {
    height: 108px;
    object-fit: contain;
    background: rgba(14, 32, 56, 0.04);
    padding: 0.2rem;
    box-sizing: border-box;
}

.member-gif-picker-grid--clip .member-gif-choice img,
.member-gif-picker-grid--clip .member-gif-choice .member-klipy-choice-video {
    height: 80px;
    object-fit: cover;
}

.member-klipy-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.5rem;
}

.member-klipy-type-tab {
    border: 1px solid rgba(20, 89, 130, 0.22);
    background: rgba(255, 255, 255, 0.85);
    color: rgba(14, 32, 56, 0.88);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.member-klipy-type-tab.is-active {
    background: color-mix(in srgb, var(--bg-blue) 16%, #fff);
    border-color: color-mix(in srgb, var(--bg-blue) 42%, transparent);
    color: var(--bg-blue);
}

.member-klipy-attribution {
    margin: 0.5rem 0 0;
    padding-top: 0.35rem;
    text-align: right;
    border-top: 1px solid color-mix(in srgb, var(--bg-blue) 12%, transparent);
}

.member-klipy-attribution-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    color: inherit;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.15s ease;
}

.member-klipy-attribution-link:hover {
    opacity: 1;
}

.member-klipy-attribution-mark {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.member-klipy-logo {
    display: block;
    width: auto;
    max-width: min(148px, 42vw);
    height: 22px;
    object-fit: contain;
    object-position: right center;
}

.member-klipy-logo--dark {
    display: none;
}

body.theme-dark .member-klipy-logo--light {
    display: none;
}

body.theme-dark .member-klipy-logo--dark {
    display: block;
}

.member-klipy-media--clip video,
.member-gif-preview video,
.member-comment-gif video {
    width: 100%;
    max-height: 280px;
    border-radius: 10px;
    display: block;
    background: #000;
}

.member-feed-klipy {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.65rem;
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg-blue, #145982) 5%, rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(20, 89, 130, 0.1);
}

.member-feed-klipy img,
.member-feed-klipy video {
    display: block;
    margin: 0 auto;
}

.member-feed-klipy--gif img,
.member-feed-gif .member-klipy-media--gif img,
.member-feed-gif.member-feed-klipy--gif img {
    width: 100%;
    max-width: 100%;
    max-height: min(440px, 72vh);
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}

.member-feed-klipy--clip video,
.member-feed-gif .member-klipy-media--clip video {
    width: 100%;
    max-width: 100%;
    max-height: min(440px, 72vh);
    object-fit: contain;
    object-position: center;
    background: #0e2038;
}

.member-feed-klipy--sticker,
.member-feed-gif.member-feed-klipy--sticker,
.member-feed-gif .member-klipy-media--sticker {
    background: transparent;
    border: 0;
    padding: 0.35rem 0;
}

.member-feed-klipy--sticker img,
.member-feed-gif .member-klipy-media--sticker img,
.member-feed-gif.member-feed-klipy--sticker img {
    width: auto;
    max-width: min(340px, 100%);
    max-height: min(340px, 58vh);
    height: auto;
    object-fit: contain;
    object-position: center;
}

.member-gif-choice.is-selected {
    border-color: rgba(20, 89, 130, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 0 2px color-mix(in srgb, var(--bg-blue) 28%, transparent);
}

.member-gif-picker-empty {
    margin: 0;
    grid-column: 1 / -1;
    font-size: 0.82rem;
    color: rgba(14, 32, 56, 0.68);
}

.member-gif-picker-error {
    color: #b42318;
}

.member-gif-preview {
    display: none;
    margin-bottom: 0.45rem;
}

.member-gif-preview.is-visible {
    display: block;
}

.member-gif-preview img,
.member-gif-preview video {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.member-gif-preview img {
    width: 100%;
    max-height: min(280px, 50vh);
    object-fit: contain;
    object-position: center;
    background: rgba(14, 32, 56, 0.04);
}

.member-gif-preview video {
    width: 100%;
    max-height: min(280px, 50vh);
    object-fit: contain;
    background: #0e2038;
}

.member-gif-preview--sticker img {
    width: auto;
    max-width: min(280px, 100%);
    max-height: min(280px, 45vh);
    object-fit: contain;
    background: transparent;
}

.member-media-upload-preview {
    display: none;
    margin: 0.5rem 0 0.65rem;
}

.member-media-upload-preview.is-visible {
    display: block;
}

.member-media-upload-preview img,
.member-media-upload-preview video {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(20, 89, 130, 0.18);
    background: rgba(15, 23, 42, 0.04);
}

.member-messages-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem;
}

.member-messages-threads {
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 12px;
    padding: 0.75rem;
    background: #f8fbff;
}

.member-messages-threads h3 {
    margin: 0 0 0.6rem;
}

.member-messages-new {
    margin: 0 0 0.7rem;
}

.member-messages-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.38rem 0.72rem;
    border-radius: 9px;
    border: 1px solid var(--button-bg, var(--bg-blue));
    background: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.member-messages-new-btn:hover {
    background: var(--button-hover-bg, var(--bg-accent));
    border-color: var(--button-hover-bg, var(--bg-accent));
}

.member-messages-thread-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.member-messages-thread-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.55rem;
    border-radius: 9px;
    border: 1px solid rgba(20, 89, 130, 0.14);
    color: #1f2937;
    background: #fff;
}

.member-messages-thread-main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.member-messages-thread-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: block;
}

.member-messages-thread-avatar {
    position: relative;
    display: inline-flex;
}

.member-messages-thread-avatar.is-online::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #ffffff;
}

.member-messages-thread-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-messages-thread-name em {
    margin-left: 0.35rem;
    font-style: normal;
    font-size: 0.72rem;
    color: #6b7280;
}

.member-messages-thread-link.is-active {
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    background: rgba(30, 115, 190, 0.1);
}

.member-messages-thread-link.is-archived {
    opacity: 0.88;
}

.member-messages-thread-link strong {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    line-height: 20px;
    text-align: center;
    padding: 0 4px;
}

.member-messages-panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.member-messages-conversation {
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 12px;
    padding: 0.85rem;
    background: #fbfdff;
}

.member-messages-conversation h3 {
    margin: 0 0 0.7rem;
}

.member-messages-presence {
    margin: -0.4rem 0 0.6rem;
    font-size: 0.8rem;
    color: #4b5563;
}

.member-messages-presence.is-typing {
    color: var(--bg-blue);
    font-weight: 700;
}

.member-message-thread-actions {
    display: flex;
    gap: 0.5rem;
    margin: -0.15rem 0 0.7rem;
}

.member-message-thread-actions button {
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border-radius: 9px;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 35%, transparent);
    background: var(--surface-card, #fff);
    font-weight: 700;
    color: var(--bg-blue);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.member-message-thread-actions button:hover {
    background: color-mix(in srgb, var(--bg-blue) 10%, transparent);
    border-color: var(--bg-blue);
}

.member-message-thread-actions button.is-danger {
    border-color: rgba(185, 28, 28, 0.32);
    color: #b91c1c;
}

.member-messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 520px;
    overflow: auto;
    padding-right: 0.25rem;
}

.member-message-item {
    border: 1px solid rgba(20, 89, 130, 0.12);
    border-radius: 14px;
    padding: 0.6rem 0.7rem;
    background: #fff;
    max-width: min(78%, 560px);
    align-self: flex-start;
}

.member-message-item.is-mine {
    background: rgba(30, 115, 190, 0.14);
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    align-self: flex-end;
}

.member-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.35rem;
}

.member-message-author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.member-message-author-avatar {
    position: relative;
    display: inline-flex;
}

.member-message-author img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: block;
}

.member-message-author-avatar.is-online::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #ffffff;
}

.member-message-head span {
    font-size: 0.78rem;
    color: #6b7280;
}

.member-message-item.is-mine .member-message-head span {
    color: rgba(30, 64, 175, 0.78);
}

.member-message-read-state {
    margin: 0.45rem 0 0;
    font-size: 0.74rem;
    color: var(--bg-blue);
    font-weight: 700;
}

.member-message-item {
    position: relative;
}

.member-message-bubble-reactions {
    position: absolute;
    right: 0.5rem;
    bottom: -0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 0.26rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 80%;
}

.member-message-bubble-reaction {
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: #ffffff;
    padding: 0.12rem 0.48rem;
    font-size: 0.96rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
    line-height: 1.1;
}

.member-message-bubble-reaction.is-mine {
    border-color: rgba(30, 115, 190, 0.42);
    background: #ffffff;
}

.member-message-bubble-reaction small {
    opacity: 0.75;
    font-size: 0.78rem;
}

.member-message-action-rail {
    position: absolute;
    top: 50%;
    right: -70px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.member-message-item.is-mine .member-message-action-rail {
    right: auto;
    left: -70px;
}

.member-message-react-toggle,
.member-message-hide-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: #ffffff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    font-size: 0.9rem;
}

.member-message-react-toggle:hover,
.member-message-hide-btn:hover {
    background: #edf4ff;
}

.member-message-reaction-popover {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.35rem;
    border: 1px solid rgba(20, 89, 130, 0.18);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    z-index: 3;
}

.member-message-item.is-mine .member-message-reaction-popover {
    right: auto;
    left: 36px;
}

.member-message-reaction-popover.is-open {
    display: inline-flex;
}

.member-message-react-btn {
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: #ffffff;
    border-radius: 999px;
    min-width: 34px;
    height: 34px;
    cursor: pointer;
    line-height: 1;
    font-size: 1.18rem;
}

.member-message-react-btn.is-mine {
    border-color: rgba(30, 115, 190, 0.45);
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
}

.member-hidden-messages {
    margin-top: 0.9rem;
}

.member-hidden-messages details {
    border: 1px dashed rgba(20, 89, 130, 0.28);
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    background: rgba(255, 255, 255, 0.7);
}

.member-hidden-messages summary {
    cursor: pointer;
    font-weight: 700;
}

.member-hidden-messages-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.member-hidden-message-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 9px;
    padding: 0.4rem 0.5rem;
    background: #ffffff;
}

.member-hidden-message-item p {
    margin: 0.18rem 0 0;
    font-size: 0.82rem;
    color: #4b5563;
}

.member-message-unhide-btn {
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 28%, transparent);
    background: rgba(30, 115, 190, 0.08);
    color: #1e40af;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
}

.member-message-unhide-btn:hover {
    background: rgba(30, 115, 190, 0.16);
}

.member-message-item h4 {
    margin: 0 0 0.3rem;
    font-size: 0.94rem;
}

.member-message-body p {
    margin: 0.25rem 0;
}

.member-message-gif {
    margin: 0.5rem 0 0;
}

.member-message-image {
    margin: 0.5rem 0 0;
}

.member-message-image img {
    max-width: min(360px, 100%);
    border-radius: 10px;
    display: block;
}

.member-message-gif img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

.member-message-compose-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: -0.1rem;
}

#member-message-image {
    display: none;
}

#member-message-content {
    min-height: 88px;
    resize: none;
    overflow: hidden;
}

.member-message-image-preview {
    display: none;
    margin-top: 0.45rem;
}

.member-message-image-preview.is-visible {
    display: block;
}

.member-message-image-preview img {
    max-width: min(260px, 100%);
    border-radius: 10px;
    display: block;
    border: 1px solid rgba(20, 89, 130, 0.18);
}

.member-message-recipient-suggest {
    position: relative;
    z-index: 5;
    margin-top: 0.15rem;
    max-height: 230px;
    overflow: auto;
}

.member-message-recipient-suggest .member-composer-suggest-item {
    width: 100%;
    justify-content: space-between;
}

.member-message-recipient-suggest .member-composer-suggest-item small {
    color: #6b7280;
    margin-left: 0.45rem;
    font-size: 0.78rem;
}

@media (max-width: 820px) {
    .member-message-item {
        max-width: 94%;
    }
}

.member-public-posts {
    margin-top: 1rem;
}

.member-public-posts h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.member-public-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.member-public-post-card {
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    background: rgba(248, 251, 255, 0.9);
}

.member-public-post-card a {
    font-weight: 600;
}

.member-articles-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-articles-shared-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(20, 89, 130, 0.14);
}

.member-article-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(108px, 148px);
    gap: 0.85rem 1rem;
    align-items: stretch;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--border-color, rgba(20, 89, 130, 0.14));
    background: var(--surface-card, linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)));
    box-shadow: 0 6px 18px rgba(8, 20, 35, 0.06);
    color: var(--text-dark, inherit);
}

.member-article-teaser-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}

.member-article-teaser-title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.3;
}

.member-article-teaser-title a {
    color: var(--text-dark, var(--bg-dark));
    text-decoration: none;
    font-weight: 700;
}

.member-article-teaser-title a:hover {
    color: var(--bg-accent);
    text-decoration: underline;
}

.member-article-teaser-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(20, 89, 130, 0.75);
}

.member-article-teaser-excerpt {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted-text, rgba(14, 32, 56, 0.78));
}

.member-article-teaser-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: var(--bg-blue);
    border: 1px solid rgba(20, 89, 130, 0.25);
    transition: background 0.15s ease, transform 0.12s ease;
}

.member-article-teaser-more:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.member-article-teaser-media {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.member-article-teaser-thumb-link {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(20, 89, 130, 0.12);
    background: rgba(15, 23, 42, 0.06);
    line-height: 0;
}

.member-article-teaser-img {
    width: 100%;
    height: 100%;
    min-height: 88px;
    max-height: 120px;
    object-fit: cover;
    object-position: center;
}

.member-article-teaser-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 88px;
    max-height: 120px;
    border-radius: 12px;
    border: 1px dashed var(--border-color, rgba(20, 89, 130, 0.22));
    background: color-mix(in srgb, var(--surface-panel, #f6f9ff) 90%, var(--bg-blue, #1e73be) 10%);
    color: var(--muted-text, rgba(20, 89, 130, 0.45));
    font-size: 1.75rem;
}

/* Onglet Articles du profil public : texte Ã  gauche, image Ã  droite */
.member-articles-list--in-profile .member-article-teaser {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 220px);
    gap: 0.85rem 1rem;
    align-items: stretch;
    min-width: 0;
}

.member-articles-list--in-profile .member-article-teaser-main {
    min-width: 0;
}

.member-articles-list--in-profile .member-article-teaser-media {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.member-articles-list--in-profile .member-article-teaser-thumb-link {
    position: relative;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-height: 6.5rem;
    overflow: hidden;
}

.member-articles-list--in-profile .member-article-teaser-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

.member-articles-list--in-profile .member-article-teaser-placeholder {
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-height: 6.5rem;
    max-height: none;
}

.member-public-tabs {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.45rem;
    margin-bottom: 0.55rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0.38rem;
    border-radius: 12px;
    background: rgba(20, 89, 130, 0.06);
    border: 1px solid rgba(20, 89, 130, 0.12);
    box-shadow: inset -22px 0 20px -18px rgba(20, 89, 130, 0.12);
}

.member-public-tabs::-webkit-scrollbar {
    height: 5px;
}

.member-public-tabs::-webkit-scrollbar-thumb {
    background: rgba(20, 89, 130, 0.28);
    border-radius: 999px;
}

.member-public-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    flex: 0 0 auto;
    min-height: 38px;
    border-radius: 9px;
    border: 1px solid transparent;
    text-decoration: none;
    box-sizing: border-box;
    background: transparent;
    padding: 0.4rem 0.88rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: rgba(14, 32, 56, 0.72);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.member-public-tab > i {
    font-size: 0.92rem;
    opacity: 0.92;
    flex-shrink: 0;
}

.member-public-tab:hover {
    background: rgba(255, 255, 255, 0.88);
    color: var(--bg-accent);
}

.member-public-tab.is-active {
    background: #fff;
    border-color: rgba(30, 115, 190, 0.38);
    color: var(--bg-accent);
    box-shadow: 0 2px 10px rgba(20, 89, 130, 0.14);
    font-weight: 700;
}

.member-public-tab:focus-visible {
    outline: 2px solid rgba(30, 115, 190, 0.45);
    outline-offset: 2px;
}

.member-public-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(20, 89, 130, 0.12);
    color: var(--bg-accent);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.member-public-tab.is-active .member-public-tab-count {
    background: rgba(20, 89, 130, 0.16);
}

.member-public-tabs-mobile-option .member-public-tab-count {
    margin-left: auto;
}

.member-collection-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.member-collection-panel-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-accent);
}

.member-collection-panel-count {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.68);
}

.member-sidebar-collection-count {
    display: inline-flex;
    align-items: center;
    margin-left: 0.45rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(20, 89, 130, 0.12);
    color: var(--bg-accent);
    font-size: 0.78rem;
    font-weight: 700;
    vertical-align: middle;
}

.member-profile-reviews-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.member-profile-reviews-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-accent);
}

.member-profile-reviews-count,
.member-profile-reviews-empty {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(14, 32, 56, 0.68);
}

.member-profile-reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.member-profile-review-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(14, 32, 56, 0.1);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-profile-review-row:hover {
    border-color: rgba(20, 89, 130, 0.35);
    box-shadow: 0 6px 18px rgba(14, 32, 56, 0.08);
}

.member-profile-review-cover {
    display: block;
    width: 72px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(14, 32, 56, 0.06);
    flex-shrink: 0;
}

.member-profile-review-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-profile-review-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(14, 32, 56, 0.35);
    font-size: 1.35rem;
}

.member-profile-review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.member-profile-review-game {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-accent);
    line-height: 1.25;
}

.member-profile-review-date {
    font-size: 0.82rem;
    color: rgba(14, 32, 56, 0.58);
}

.member-profile-review-score {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1rem;
    min-width: 4.25rem;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.member-profile-review-score-value {
    font-size: 1.35rem;
}

.member-profile-review-score-suffix {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.85;
}

.member-profile-review-score--high {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.member-profile-review-score--mid {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.member-profile-review-score--low {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

@media (max-width: 520px) {
    .member-profile-review-row {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 0.65rem 0.75rem;
    }

    .member-profile-review-cover {
        width: 56px;
    }

    .member-profile-review-score-value {
        font-size: 1.15rem;
    }
}

.member-public-tab-panel {
    display: none;
}

.member-public-tab-panel.is-active {
    display: block;
}

@media (min-width: 1100px) {
    .member-public-tabs:not(.member-public-tabs--vertical) {
        flex-wrap: wrap;
        overflow-x: visible;
        box-shadow: none;
    }
}

.member-friends-layout {
    display: grid;
    gap: 1.35rem;
}

.member-friends-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.member-friends-summary-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.14);
    background: rgba(246, 250, 255, 0.95);
    font-size: 0.82rem;
    color: rgba(14, 32, 56, 0.72);
}

.member-friends-summary-item strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: rgba(14, 32, 56, 0.92);
}

.member-friends-network {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.member-friends-panel {
    min-width: 0;
    padding: 0.85rem 0.9rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(20, 89, 130, 0.14);
    background: rgba(255, 255, 255, 0.96);
}

.member-friends-section--primary {
    padding-bottom: 0.15rem;
}

.member-friends-section-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: rgba(14, 32, 56, 0.9);
}

.member-friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.65rem;
}

.member-friends-grid--friends {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.member-friends-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.member-friends-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    max-height: min(420px, 52vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.member-friends-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.member-friends-row:hover,
.member-friends-row:focus-visible {
    background: rgba(20, 89, 130, 0.06);
    outline: none;
}

.member-friends-row-avatar img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.member-friends-row-body {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.member-friends-row-name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(14, 32, 56, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-friends-row-meta {
    font-size: 0.76rem;
    color: rgba(14, 32, 56, 0.58);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-friends-row-meta i {
    margin-right: 0.15rem;
}

.member-friends-row-chevron {
    font-size: 0.72rem;
    color: rgba(14, 32, 56, 0.35);
}

.member-friends-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.65rem 0.45rem;
    border-radius: 12px;
    border: 1px solid rgba(20, 89, 130, 0.14);
    background: rgba(255, 255, 255, 0.96);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-friends-card:hover {
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.member-friends-card-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.member-friends-grid--friends .member-friends-card-avatar img {
    width: 80px;
    height: 80px;
}

.member-friends-card-name {
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.25;
    color: rgba(14, 32, 56, 0.92);
    word-break: break-word;
}

.member-friends-card-meta {
    font-size: 0.74rem;
    color: rgba(14, 32, 56, 0.58);
    line-height: 1.3;
}

.member-friends-card-meta i {
    margin-right: 0.15rem;
    opacity: 0.85;
}

.member-friends-empty {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(14, 32, 56, 0.58);
}

.member-friends-birthday-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.55rem;
}

.member-friends-birthday-item {
    margin: 0;
}

.member-friends-birthday-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(20, 89, 130, 0.12);
    background: rgba(248, 251, 255, 0.9);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.member-friends-birthday-link:hover {
    border-color: rgba(30, 115, 190, 0.3);
    background: #fff;
}

.member-friends-birthday-link img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.member-friends-birthday-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
}

.member-friends-birthday-text strong {
    font-size: 0.92rem;
}

.member-friends-birthday-date {
    font-size: 0.82rem;
    color: rgba(14, 32, 56, 0.68);
}

.member-friends-birthday-age {
    margin-left: 0.35rem;
    font-weight: 700;
    color: var(--bg-blue, #1e73be);
}

.member-friends-birthday-age::before {
    content: '·';
    margin-right: 0.35rem;
    font-weight: 400;
    color: rgba(14, 32, 56, 0.35);
}

.member-friends-birthday-when {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-accent);
}

.member-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}

.member-collection-card {
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(8, 20, 35, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(8, 20, 35, 0.12);
}

.member-collection-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.member-collection-thumb {
    display: block;
    aspect-ratio: 3 / 4;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    padding: 0;
}

.member-collection-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
}

.member-collection-card h3 {
    margin: 0;
    padding: 0.68rem 0.68rem 0.35rem;
    font-size: 0.92rem;
    line-height: 1.32;
}

.member-collection-platform-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.38rem 0.45rem;
    padding: 0 0.68rem 0.72rem;
}

.member-collection-platform-tags--single {
    padding-top: 0.15rem;
}

.member-collection-platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    max-width: 100%;
    padding: 0.24rem 0.55rem 0.24rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(30, 115, 190, 0.2);
    background: rgba(30, 115, 190, 0.09);
    color: var(--bg-accent);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    vertical-align: middle;
}

.member-collection-platform-tag--accent {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(239, 68, 68, 0.1));
    border-color: rgba(234, 88, 12, 0.28);
    color: #9a3412;
}

.member-collection-platform-tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.15em;
    height: 1.15em;
    line-height: 1;
}

.member-collection-platform-tag-icon i {
    display: block;
    font-size: 0.82rem;
    line-height: 1;
}

.member-collection-platform-tag-label {
    min-width: 0;
    line-height: 1.2;
}

.member-collection-platform-fallback {
    margin: 0;
    padding: 0 0.68rem 0.72rem;
    font-size: 0.74rem;
    font-style: italic;
    color: rgba(14, 32, 56, 0.55);
}

@media (max-width: 680px) {
    .member-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }
}

.member-public-feed-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.member-feed-list {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.member-public-feed-area .member-feed-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    margin: 0.35rem 0 0;
    padding: 0;
}

.member-public-feed-area .member-feed-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 12px;
    background: #fff;
    color: var(--bg-accent);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(8, 20, 35, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.member-public-feed-area .member-feed-load-more:hover,
.member-public-feed-area .member-feed-load-more:focus-visible {
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    background: rgba(30, 115, 190, 0.1);
    color: var(--bg-accent, #1d6fb8);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--bg-blue) 12%, transparent);
}

.member-public-feed-area .member-feed-load-more.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.member-public-feed-area .member-feed-load-more-status {
    margin: 0;
    width: 100%;
    font-size: 0.82rem;
    color: rgba(20, 89, 130, 0.72);
    text-align: center;
}

.member-feed-card {
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 12px;
    padding: 0.75rem;
    background: #fff;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.member-feed-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
    align-items: center;
}

.member-composer-life-event--fb {
    margin: 0;
}

.member-composer-toolbar-cluster {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    min-width: 0;
    max-width: 100%;
}

.member-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
}

.member-composer-footer .member-composer-tools-scroll {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
}

.member-composer-footer .member-composer-tools {
    flex-wrap: nowrap;
    gap: 0.38rem;
    margin-bottom: 0;
}

.member-composer-footer .member-composer-icon,
.member-post-edit-toolbar-cluster .member-composer-icon {
    width: 38px;
    height: 38px;
    min-height: 38px;
    min-width: 38px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.member-composer-footer .member-composer-icon i,
.member-post-edit-toolbar-cluster .member-composer-icon i {
    font-size: 1.05rem;
    line-height: 1;
}

.member-composer-footer .member-ma-tool-btn .member-ma-tool-btn-emoji {
    font-size: 1.2rem;
    min-width: 0;
}

.member-composer-footer .member-ma-place-btn,
.member-post-edit-toolbar-cluster .member-ma-place-btn {
    max-width: none;
    width: 38px;
    min-width: 38px;
    background: rgba(16, 185, 129, 0.1);
}

.member-composer-footer .member-ma-place-btn-icon,
.member-post-edit-toolbar-cluster .member-ma-place-btn-icon {
    width: auto;
    height: auto;
    background: transparent;
    color: inherit;
}

.member-composer-footer .member-ma-place-btn-label,
.member-post-edit-toolbar-cluster .member-ma-place-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.member-composer-icon--media {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.1);
}

.member-composer-icon--media:hover {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.42);
    background: rgba(37, 99, 235, 0.16);
}

.member-composer-icon--gif {
    color: #9333ea;
    border-color: rgba(147, 51, 234, 0.28);
    background: rgba(147, 51, 234, 0.1);
}

.member-composer-icon--gif .member-composer-gif-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.72rem;
    height: 1.08rem;
    padding: 0 0.24rem;
    border-radius: 5px;
    background: #9333ea;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0.04em;
    line-height: 1;
    font-family: inherit;
}

.member-composer-icon--gif:hover {
    color: #7e22ce;
    border-color: rgba(147, 51, 234, 0.42);
    background: rgba(147, 51, 234, 0.16);
}

.member-composer-icon--gif:hover .member-composer-gif-mark {
    background: #7e22ce;
}

.member-composer-icon--life-event {
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.28);
    background: rgba(234, 88, 12, 0.1);
}

.member-composer-icon--life-event:hover {
    color: #c2410c;
    border-color: rgba(234, 88, 12, 0.42);
    background: rgba(234, 88, 12, 0.16);
}

.member-composer-icon--mood {
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.28);
    background: rgba(217, 119, 6, 0.1);
}

.member-composer-icon--mood:hover {
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.42);
    background: rgba(217, 119, 6, 0.16);
}

.member-composer-icon--place {
    color: #059669;
    border-color: rgba(5, 150, 105, 0.28);
    background: rgba(16, 185, 129, 0.1);
}

.member-composer-icon--place:hover {
    color: #047857;
    border-color: rgba(5, 150, 105, 0.42);
    background: rgba(16, 185, 129, 0.16);
}

.member-composer-icon--poll {
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.28);
    background: rgba(79, 70, 229, 0.1);
}

.member-composer-icon--poll:hover {
    color: #4338ca;
    border-color: rgba(79, 70, 229, 0.42);
    background: rgba(79, 70, 229, 0.16);
}

.member-composer-footer .member-composer-icon.is-active,
.member-post-edit-toolbar-cluster .member-composer-icon.is-active {
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 35%, transparent);
    filter: none;
}

.member-composer-submit {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 1.15rem;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    white-space: nowrap;
    background: var(--reviews-score-bg, var(--button-bg, var(--bg-blue)));
    color: var(--reviews-score-text, var(--button-text, #fff));
}

.member-composer-submit:hover {
    background: color-mix(in srgb, var(--reviews-score-bg, var(--button-bg, var(--bg-blue))) 88%, #000);
    color: var(--reviews-score-text, var(--button-text, #fff));
}

.member-feed-composer .member-composer-footer .member-composer-submit {
    width: auto;
    max-width: none;
}

.member-composer-toolbar-cluster .member-composer-tools {
    margin-bottom: 0;
}

.member-composer-toolbar-cluster .member-composer-tools-scroll .member-composer-tools {
    margin-bottom: 0;
}

.member-life-event-tool-slot {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
}

.member-life-event-tool-slot .member-composer-icon,
.member-life-event-tool-slot .member-life-event-clear--toolbar {
    flex-shrink: 0;
}

.member-life-event-tool-btn.is-active {
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 35%, transparent);
}

.member-ma-tool-btn.is-active {
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 35%, transparent);
}

.member-life-event-clear--toolbar {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 50%;
}

.member-ma-tool-slot {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
    width: auto;
    max-width: none;
}

.member-ma-tool-slot .member-composer-icon,
.member-ma-tool-slot .member-ma-clear--toolbar {
    flex-shrink: 0;
}

.member-ma-tool-btn.member-ma-place-btn {
    border-color: rgba(5, 150, 105, 0.28);
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    max-width: none;
}

.member-ma-place-btn:hover {
    border-color: rgba(5, 150, 105, 0.42);
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.member-ma-place-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: rgba(14, 124, 108, 0.14);
    color: rgba(10, 108, 92, 0.95);
}

.member-ma-place-btn-icon .member-ma-place-toolbar-emoji {
    font-size: 0.92rem;
    line-height: 1;
}

.member-ma-place-btn-icon .member-ma-place-toolbar-icon-fa {
    font-size: 0.78rem;
}

.member-ma-place-btn-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-ma-place-btn.is-active {
    border-color: rgba(5, 150, 105, 0.52);
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
}

.member-ma-place-btn.is-active .member-ma-place-btn-icon {
    background: transparent;
    color: inherit;
}

.member-ma-tool-btn .member-ma-tool-btn-emoji {
    font-size: 1.15rem;
    line-height: 1;
    min-width: 1.15rem;
}

.member-ma-clear--toolbar {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 50%;
}

.member-ma-top-spacer {
    width: 40px;
    flex-shrink: 0;
}

.member-ma-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 0 0 0.65rem;
    padding: 0 0.15rem;
}

.member-ma-tabs--3 {
    flex-wrap: wrap;
}

.member-ma-tabs--3 .member-ma-tab {
    flex: 1 1 30%;
    min-width: 0;
    font-size: 0.82rem;
    padding: 0.32rem 0.35rem;
}

.member-ma-tab {
    flex: 1;
    min-height: 38px;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.22);
    background: rgba(246, 249, 255, 0.85);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.member-ma-tab.is-active {
    border-color: rgba(20, 89, 130, 0.45);
    background: rgba(20, 89, 130, 0.12);
    color: var(--bg-accent);
}

.member-ma-tab-panel {
    margin-bottom: 0.5rem;
}

.member-ma-lead {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    color: rgba(14, 32, 56, 0.72);
}

.member-ma-note-label {
    display: block;
    margin: 0.65rem 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.78);
}

.member-ma-note-field {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.35rem;
    padding: 0.5rem 0.65rem;
    min-height: 2.75rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: #1a2b3d;
    font-size: 0.9rem;
    line-height: 1.35;
    resize: vertical;
}

.member-ma-note-field:focus {
    outline: none;
    border-color: rgba(20, 89, 130, 0.45);
    box-shadow: 0 0 0 2px rgba(20, 89, 130, 0.12);
}

.member-ma-notes-shared {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(20, 89, 130, 0.14);
}

.member-ma-place-locate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 0 0.65rem;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(14, 124, 108, 0.32);
    background: linear-gradient(165deg, rgba(14, 124, 108, 0.14) 0%, rgba(236, 253, 248, 0.95) 100%);
    color: rgba(8, 64, 54, 0.95);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(14, 124, 108, 0.1);
}

.member-ma-place-locate i {
    font-size: 1rem;
    opacity: 0.9;
}

.member-ma-place-locate:hover {
    border-color: rgba(14, 124, 108, 0.48);
    background: linear-gradient(165deg, rgba(14, 124, 108, 0.2) 0%, rgba(220, 252, 241, 0.98) 100%);
}

.member-ma-place-locate:disabled {
    opacity: 0.65;
    cursor: wait;
}

.member-ma-place-hint {
    min-height: 1.2em;
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: rgba(14, 32, 56, 0.65);
}

.member-ma-place-search-label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.78);
}

.member-ma-place-search {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.22);
    font-size: 0.9rem;
}

.member-ma-place-results {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}

.member-ma-place-results li {
    margin: 0;
    padding: 0;
}

.member-composer-toolbar-cluster .member-ma-place-preview--composer {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.member-ma-place-preview {
    margin: 0.75rem 0 0.35rem;
    padding: 0.55rem 0.6rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(20, 89, 130, 0.22);
    background: rgba(246, 250, 255, 0.96);
}

.member-ma-place-preview-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(14, 32, 56, 0.55);
}

.member-ma-place-preview-label {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bg-dark);
    line-height: 1.35;
}

.member-ma-place-preview-map {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 140px;
    background: rgba(20, 89, 130, 0.08);
}

.member-ma-place-preview-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.member-ma-place-suggestion {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--bg-dark);
    font-size: 0.84rem;
    line-height: 1.35;
    cursor: pointer;
}

.member-ma-place-suggestion:hover {
    border-color: rgba(20, 89, 130, 0.35);
    background: rgba(20, 89, 130, 0.06);
}

.member-ma-place-loading {
    padding: 0.5rem;
    color: rgba(14, 32, 56, 0.55);
    font-size: 0.85rem;
}

.member-ma-choice .member-ma-choice-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.member-post-edit-toolbar-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0 0.5rem;
}

.member-post-edit-toolbar-cluster .member-ma-place-preview--composer {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

/* Modale Â« Ã©vÃ©nement marquant Â» â€” carte claire (thÃ¨me Play4Geek), sombre si body.theme-dark */
.member-life-event-dialog--fb {
    border: none;
    padding: 0;
    max-width: min(420px, calc(100vw - 1.25rem));
    width: 100%;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    z-index: 100050;
    color-scheme: light;
}

.member-life-event-dialog--fb::backdrop {
    background: rgba(14, 32, 56, 0.38);
}

/* Humeur / activitÃ© + Â« Je suis lÃ  Â» : plus dâ€™espace que lâ€™Ã©vÃ©nement marquant (420px). */
.member-ma-dialog.member-life-event-dialog--fb {
    max-width: min(520px, calc(100vw - 1rem));
    border-radius: 14px;
}

.member-ma-dialog.member-life-event-dialog--fb .member-life-event-fb-panel {
    max-height: min(90vh, 720px);
    border-radius: 14px;
}

.member-ma-dialog.member-life-event-dialog--fb .member-life-event-fb-top {
    padding: 0.5rem 0.6rem 0.4rem;
}

.member-ma-dialog .member-life-event-fb-grid {
    gap: 0.42rem;
}

.member-ma-dialog .member-life-event-fb-choice {
    min-height: 4.85rem;
    padding: 0.48rem 0.28rem;
}

.member-life-event-fb-panel {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(246, 250, 255, 0.82) 42%,
        rgba(255, 255, 255, 0.76) 100%
    );
    backdrop-filter: blur(22px) saturate(1.22);
    -webkit-backdrop-filter: blur(22px) saturate(1.22);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 18px 48px rgba(14, 32, 56, 0.12);
    max-height: min(88vh, 640px);
    display: flex;
    flex-direction: column;
}

.member-life-event-fb-top {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem 0.35rem;
    flex-shrink: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.58) 0%,
        rgba(246, 250, 255, 0.38) 100%
    );
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.48);
}

.member-life-event-fb-back {
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(20, 89, 130, 0.07);
    color: var(--bg-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.15s ease;
}

.member-life-event-fb-back:hover {
    background: rgba(20, 89, 130, 0.12);
}

.member-life-event-fb-heading {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: center;
    color: var(--bg-dark);
    line-height: 1.25;
}

.member-life-event-fb-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(14, 32, 56, 0.45);
    cursor: pointer;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-life-event-fb-close:hover {
    background: rgba(20, 89, 130, 0.08);
    color: var(--bg-dark);
}

.member-life-event-fb-step {
    padding: 0 0.65rem 0.65rem;
    overflow-y: auto;
}

.member-life-event-fb-step--1 {
    padding-top: 0.15rem;
}

.member-life-event-fb-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    min-height: 3.2rem;
    margin: 0.25rem 0 0.65rem;
    padding: 0.45rem 0.35rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.1);
    background: linear-gradient(
        135deg,
        rgba(20, 89, 130, 0.06) 0%,
        rgba(246, 250, 255, 0.92) 42%,
        rgba(255, 255, 255, 0.88) 100%
    );
}

.member-life-event-fb-hero-deco {
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.88;
    filter: drop-shadow(0 1px 1px rgba(20, 89, 130, 0.12));
}

.member-life-event-fb-lead {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    color: var(--bg-dark);
}

.member-life-event-fb-sub {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
    color: rgba(14, 32, 56, 0.62);
}

.member-life-event-fb-rule {
    border: none;
    border-top: 1px solid rgba(20, 89, 130, 0.12);
    margin: 0 0 0.55rem;
}

.member-life-event-fb-section-label {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    color: rgba(14, 32, 56, 0.48);
    text-transform: uppercase;
}

.member-life-event-fb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

@media (max-width: 380px) {
    .member-life-event-fb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.member-life-event-fb-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    min-height: 4.6rem;
    padding: 0.45rem 0.2rem;
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.58) 0%,
        rgba(246, 250, 255, 0.28) 48%,
        rgba(255, 255, 255, 0.38) 100%
    );
    backdrop-filter: blur(8px) saturate(1.15);
    -webkit-backdrop-filter: blur(8px) saturate(1.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 1px 2px rgba(20, 89, 130, 0.05);
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.88);
    text-align: center;
    line-height: 1.2;
    transition:
        background 0.14s ease,
        border-color 0.14s ease,
        box-shadow 0.14s ease;
}

.member-life-event-fb-choice:hover,
.member-life-event-fb-choice:focus-visible {
    background: linear-gradient(
        155deg,
        rgba(20, 89, 130, 0.09) 0%,
        rgba(255, 255, 255, 0.52) 100%
    );
    border-color: rgba(20, 89, 130, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 2px 8px rgba(20, 89, 130, 0.08);
    outline: none;
}

.member-life-event-fb-choice.is-selected {
    background: linear-gradient(
        155deg,
        rgba(20, 89, 130, 0.14) 0%,
        rgba(246, 250, 255, 0.48) 100%
    );
    border-color: rgba(20, 89, 130, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 0 1px rgba(20, 89, 130, 0.12);
}

.member-life-event-fb-choice-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(20, 89, 130, 0.09) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 1.1rem;
}

.member-life-event-fb-choice-icon i {
    color: var(--bg-accent);
}

.member-life-event-fb-choice-label {
    display: block;
    width: 100%;
    hyphens: auto;
}

/* Ã‰tape 2 â€” formulaire */
.member-life-event-fb-step--2 {
    padding-top: 0.35rem;
}

.member-life-event-fb-media {
    position: relative;
    margin-bottom: 1.35rem;
}

.member-life-event-fb-media-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.member-life-event-fb-media-placeholder {
    min-height: 140px;
    border-radius: 10px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(246, 250, 255, 0.45) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px dashed rgba(20, 89, 130, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-life-event-fb-media-dots {
    display: inline-flex;
    gap: 0.35rem;
}

.member-life-event-fb-media-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(20, 89, 130, 0.22);
}

.member-life-event-fb-media-preview {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(14, 32, 56, 0.06);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-life-event-fb-media-preview.is-visible {
    display: flex;
}

.member-life-event-fb-media-preview-el {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

video.member-life-event-fb-media-preview-el {
    max-height: 220px;
    background: #000;
}

.member-life-event-fb-media-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.member-life-event-fb-media-btn {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.16);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(14, 32, 56, 0.72);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.member-life-event-fb-media-remove {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.14);
    background: rgba(20, 89, 130, 0.06);
    color: rgba(14, 32, 56, 0.75);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.member-life-event-fb-badge-wrap {
    display: flex;
    justify-content: center;
    margin-top: -1.6rem;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 2;
}

.member-life-event-fb-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--theme-gradient-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(20, 89, 130, 0.22);
    border: 3px solid #fff;
}

.member-life-event-fb-badge-icon {
    font-size: 1.35rem;
    color: #fff;
}

.member-life-event-fb-label {
    display: block;
    margin: 0 0 0.28rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(14, 32, 56, 0.58);
}

.member-life-event-fb-title-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: var(--bg-dark);
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.member-life-event-fb-title-input::placeholder {
    color: rgba(14, 32, 56, 0.38);
}

.member-life-event-fb-hint-dynamic {
    margin: 0 0 0.65rem;
    font-size: 0.76rem;
    line-height: 1.35;
    color: rgba(14, 32, 56, 0.52);
}

.member-life-event-fb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.member-life-event-fb-date-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: var(--bg-dark);
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
}

.member-life-event-fb-done {
    width: 100%;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.22);
    background: rgba(20, 89, 130, 0.1);
    color: var(--bg-accent);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.member-life-event-fb-done:hover {
    background: rgba(20, 89, 130, 0.16);
    border-color: rgba(20, 89, 130, 0.32);
}

/* Mode sombre site : reprend les surfaces du thÃ¨me */
body.theme-dark .member-life-event-dialog--fb {
    color-scheme: dark;
}

body.theme-dark .member-life-event-dialog--fb::backdrop {
    background: rgba(0, 0, 0, 0.62);
}

body.theme-dark .member-life-event-fb-panel {
    background: linear-gradient(
        165deg,
        rgba(16, 35, 63, 0.94) 0%,
        rgba(11, 29, 53, 0.88) 48%,
        rgba(16, 35, 63, 0.9) 100%
    );
    backdrop-filter: blur(26px) saturate(1.25);
    -webkit-backdrop-filter: blur(26px) saturate(1.25);
    border-color: rgba(120, 175, 235, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 20px 56px rgba(0, 0, 0, 0.45);
}

body.theme-dark .member-life-event-fb-top {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(120, 175, 235, 0.18);
}

body.theme-dark .member-life-event-fb-back {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark, #dbe8ff);
}

body.theme-dark .member-life-event-fb-back:hover {
    background: rgba(255, 255, 255, 0.14);
}

body.theme-dark .member-life-event-fb-heading {
    color: var(--text-dark, #dbe8ff);
}

body.theme-dark .member-life-event-fb-close {
    color: rgba(219, 232, 255, 0.55);
}

body.theme-dark .member-life-event-fb-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark, #dbe8ff);
}

body.theme-dark .member-life-event-fb-hero {
    border-color: var(--border-color, rgba(31, 61, 99, 0.65));
    background: linear-gradient(
        135deg,
        rgba(20, 89, 130, 0.18) 0%,
        rgba(16, 35, 63, 0.92) 50%,
        rgba(11, 29, 53, 0.88) 100%
    );
}

body.theme-dark .member-life-event-fb-lead {
    color: var(--text-dark, #dbe8ff);
}

body.theme-dark .member-life-event-fb-sub {
    color: var(--muted-text, rgba(144, 167, 197, 0.92));
}

body.theme-dark .member-life-event-fb-rule {
    border-top-color: var(--border-color, rgba(31, 61, 99, 0.65));
}

body.theme-dark .member-life-event-fb-section-label {
    color: var(--muted-text, #90a7c5);
}

body.theme-dark .member-life-event-fb-choice {
    color: rgba(219, 232, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(10px) saturate(1.15);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 1px 2px rgba(0, 0, 0, 0.12);
}

body.theme-dark .member-life-event-fb-choice:hover,
body.theme-dark .member-life-event-fb-choice:focus-visible {
    background: linear-gradient(
        155deg,
        rgba(100, 175, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border-color: rgba(120, 190, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.2);
}

body.theme-dark .member-life-event-fb-choice.is-selected {
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--bg-blue) 35%, transparent) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border-color: rgba(100, 180, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(60, 140, 220, 0.25);
}

body.theme-dark .member-life-event-fb-choice-icon {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.theme-dark .member-life-event-fb-choice-icon i {
    color: rgba(190, 220, 255, 0.95);
}

body.theme-dark .member-life-event-fb-media-placeholder {
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(11, 29, 53, 0.82) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--border-color, rgba(31, 61, 99, 0.65));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-life-event-fb-media-dots span {
    background: rgba(219, 232, 255, 0.35);
}

body.theme-dark .member-life-event-fb-media-btn {
    border-color: var(--border-color, rgba(31, 61, 99, 0.65));
    background: rgba(16, 35, 63, 0.88);
    color: rgba(219, 232, 255, 0.82);
}

body.theme-dark .member-life-event-fb-media-remove {
    border-color: var(--border-color, rgba(31, 61, 99, 0.65));
    background: rgba(255, 255, 255, 0.06);
    color: rgba(219, 232, 255, 0.82);
}

body.theme-dark .member-life-event-fb-media-preview {
    background: rgba(0, 0, 0, 0.25);
}

body.theme-dark .member-life-event-fb-badge {
    border-color: var(--surface-card, #10233f);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

body.theme-dark .member-life-event-fb-label {
    color: var(--muted-text, #90a7c5);
}

body.theme-dark .member-life-event-fb-title-input,
body.theme-dark .member-life-event-fb-date-input {
    background: rgba(11, 29, 53, 0.65);
    border-color: var(--border-color, rgba(31, 61, 99, 0.75));
    color: var(--text-dark, #dbe8ff);
}

body.theme-dark .member-life-event-fb-title-input::placeholder {
    color: rgba(219, 232, 255, 0.38);
}

body.theme-dark .member-life-event-fb-hint-dynamic {
    color: var(--muted-text, #90a7c5);
}

body.theme-dark .member-life-event-fb-done {
    background: color-mix(in srgb, var(--bg-blue) 22%, transparent);
    border-color: rgba(100, 180, 255, 0.28);
    color: rgba(219, 232, 255, 0.95);
}

body.theme-dark .member-life-event-fb-done:hover {
    background: rgba(30, 115, 190, 0.32);
    border-color: rgba(100, 180, 255, 0.42);
}

/* Pickers compositeur en mode sombre */
body.theme-dark .member-gif-picker,
body.theme-dark .member-emoji-picker {
    background: linear-gradient(
        165deg,
        rgba(16, 35, 63, 0.88) 0%,
        rgba(11, 29, 53, 0.78) 50%,
        rgba(16, 35, 63, 0.82) 100%
    );
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    border-color: rgba(120, 175, 235, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 28px rgba(0, 0, 0, 0.35);
}

body.theme-dark .member-emoji-choice {
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 1px 2px rgba(0, 0, 0, 0.15);
}

body.theme-dark .member-emoji-choice:hover {
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--bg-blue) 28%, transparent) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(100, 180, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.2);
}

body.theme-dark .member-gif-choice {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        color-mix(in srgb, var(--bg-blue) 12%, transparent) 100%
    );
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 1px 3px rgba(0, 0, 0, 0.18);
}

body.theme-dark .member-gif-choice:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14) 0%,
        color-mix(in srgb, var(--bg-blue) 22%, transparent) 100%
    );
    border-color: rgba(100, 180, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 14px rgba(0, 0, 0, 0.28);
}

body.theme-dark .member-gif-choice.is-selected {
    border-color: rgba(120, 190, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 2px rgba(60, 140, 220, 0.35);
}

body.theme-dark .member-klipy-picker-page-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 175, 235, 0.28);
    color: var(--link-hover-color, #8ec8ff);
}

body.theme-dark .member-klipy-picker-page-btn:hover:not(:disabled),
body.theme-dark .member-klipy-picker-page-btn:focus-visible:not(:disabled) {
    background: color-mix(in srgb, var(--bg-blue) 24%, rgba(11, 29, 53, 0.9));
    border-color: rgba(120, 190, 255, 0.4);
}

body.theme-dark .member-klipy-picker-page-status {
    color: var(--muted-text, rgba(220, 230, 245, 0.82));
}

body.theme-dark .member-gif-picker-search {
    border-color: rgba(120, 175, 235, 0.22);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(11, 29, 53, 0.45) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--text-dark, #dbe8ff);
}

body.theme-dark .member-gif-picker-clear {
    border-color: rgba(120, 175, 235, 0.22);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(11, 29, 53, 0.5) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.2);
    color: rgba(219, 232, 255, 0.88);
}

body.theme-dark .member-gif-picker-clear:hover {
    border-color: rgba(120, 190, 255, 0.38);
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--bg-blue) 22%, transparent) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

body.theme-dark .member-emoji-picker-cat,
body.theme-dark .member-emoji-picker-page-btn {
    border-color: rgba(120, 175, 235, 0.22);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(11, 29, 53, 0.45) 100%
    );
    color: rgba(219, 232, 255, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

body.theme-dark .member-emoji-picker-cat:hover {
    border-color: rgba(120, 190, 255, 0.35);
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--bg-blue) 22%, transparent) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
}

body.theme-dark .member-emoji-picker-cat.is-active {
    border-color: rgba(100, 180, 255, 0.42);
    background: linear-gradient(
        155deg,
        color-mix(in srgb, var(--bg-blue) 28%, transparent) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

body.theme-dark .member-emoji-picker-page-status {
    color: rgba(219, 232, 255, 0.72);
}

body.theme-dark .member-emoji-picker-swipe-hint {
    color: rgba(219, 232, 255, 0.45);
}

.member-feed-life-event {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: linear-gradient(110deg, rgba(20, 89, 130, 0.09) 0%, rgba(246, 250, 255, 0.95) 55%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(20, 89, 130, 0.14);
}

.member-feed-life-event-cover {
    margin: -0.55rem -0.65rem 0;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    background: rgba(14, 32, 56, 0.06);
}

.member-feed-life-event-cover-el {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

video.member-feed-life-event-cover-el {
    max-height: 320px;
    background: #000;
}

body.theme-dark .member-feed-life-event-cover {
    background: rgba(0, 0, 0, 0.35);
}

.member-feed-life-event-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.member-feed-life-event-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 89, 130, 0.12);
    color: var(--bg-accent);
    font-size: 1rem;
}

.member-feed-life-event-icon-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    box-sizing: border-box;
    /* Remonte le glyphe dans le cercle (html2canvas gÃ¨re mal transform sur <i>) */
    padding-bottom: 6px;
}

/* Font Awesome 6 : glyphe en ::before â€” flex + lÃ©ger top pour centrage optique / capture */
.member-feed-life-event-icon-slot > i {
    position: relative;
    top: -3px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    font-size: 1rem;
    line-height: 1;
    box-sizing: border-box;
}

.member-feed-life-event-icon-slot > i::before {
    position: relative;
    top: -1px;
}

.member-feed-life-event-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.member-feed-life-event-label {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--bg-dark);
    line-height: 1.25;
}

.member-feed-life-event-detail {
    font-size: 0.84rem;
    color: rgba(14, 32, 56, 0.78);
    line-height: 1.35;
}

.member-feed-life-event-date {
    font-size: 0.78rem;
    color: rgba(14, 32, 56, 0.58);
}

.member-feed-mood-activity {
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.08) 0%, rgba(246, 250, 255, 0.96) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.member-feed-mood-activity-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bg-dark);
    line-height: 1.35;
}

.member-feed-mood-activity-line + .member-feed-mood-activity-line {
    margin-top: 0.35rem;
}

.member-feed-mood-activity-note {
    margin: 0 0 0.35rem;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(99, 102, 241, 0.12);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(14, 32, 56, 0.88);
}

.member-feed-mood-activity-note + .member-feed-mood-activity-line--mood,
.member-feed-mood-activity-note + .member-feed-mood-activity-line--activity {
    margin-top: 0.15rem;
}

.member-feed-mood-activity-line + .member-feed-mood-activity-note {
    margin-top: 0.4rem;
}

.member-feed-mood-activity-emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.member-feed-place-card {
    margin: 0.65rem 0 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(14, 32, 56, 0.06);
}

.member-feed-place-card-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    background: linear-gradient(120deg, rgba(20, 89, 130, 0.08) 0%, rgba(246, 250, 255, 0.98) 100%);
    border-bottom: 1px solid rgba(20, 89, 130, 0.12);
}

.member-feed-place-card-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.member-feed-place-card-link {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--bg-accent);
    text-decoration: none;
}

.member-feed-place-card-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.member-feed-place-card-map {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    background: rgba(14, 32, 56, 0.06);
}

.member-feed-place-card-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.theme-dark .member-feed-mood-activity {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.14) 0%, rgba(11, 29, 53, 0.65) 100%);
    border-color: rgba(120, 175, 235, 0.22);
}

body.theme-dark .member-feed-mood-activity-line {
    color: rgba(232, 241, 255, 0.92);
}

body.theme-dark .member-feed-mood-activity-note {
    background: rgba(11, 29, 53, 0.45);
    border-color: rgba(120, 175, 235, 0.2);
    color: rgba(232, 241, 255, 0.92);
}

.member-feed-mood-activity-place-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.member-feed-mood-activity-place-link:hover {
    color: var(--bg-accent);
}

body.theme-dark .member-feed-mood-activity-place-link:hover {
    color: #9ecfff;
}

body.theme-dark .member-feed-place-card {
    border-color: rgba(120, 175, 235, 0.28);
    background: rgba(11, 29, 53, 0.55);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

body.theme-dark .member-feed-place-card-head {
    background: linear-gradient(120deg, rgba(30, 115, 190, 0.2) 0%, rgba(11, 29, 53, 0.75) 100%);
    border-bottom-color: rgba(120, 175, 235, 0.22);
}

body.theme-dark .member-feed-place-card-link {
    color: #9ecfff;
}

body.theme-dark .member-feed-place-card-map {
    background: rgba(0, 0, 0, 0.25);
}

body.theme-dark .member-ma-place-preview {
    border-color: rgba(120, 175, 235, 0.28);
    background: rgba(11, 29, 53, 0.45);
}

body.theme-dark .member-ma-place-preview-kicker {
    color: rgba(219, 232, 255, 0.55);
}

body.theme-dark .member-ma-place-preview-label {
    color: rgba(232, 241, 255, 0.94);
}

body.theme-dark .member-ma-tab {
    border-color: rgba(120, 175, 235, 0.28);
    background: rgba(11, 29, 53, 0.45);
    color: rgba(219, 232, 255, 0.88);
}

body.theme-dark .member-ma-tab.is-active {
    border-color: rgba(120, 190, 255, 0.42);
    background: color-mix(in srgb, var(--bg-blue) 22%, transparent);
    color: #dbe8ff;
}

body.theme-dark .member-ma-lead {
    color: rgba(219, 232, 255, 0.65);
}

body.theme-dark .member-ma-note-label {
    color: rgba(219, 232, 255, 0.78);
}

body.theme-dark .member-ma-note-field {
    border-color: rgba(120, 175, 235, 0.28);
    background: rgba(11, 29, 53, 0.45);
    color: rgba(232, 241, 255, 0.94);
}

body.theme-dark .member-ma-note-field:focus {
    border-color: rgba(120, 190, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(120, 175, 235, 0.18);
}

body.theme-dark .member-ma-notes-shared {
    border-top-color: rgba(120, 175, 235, 0.22);
}

body.theme-dark .member-ma-place-locate {
    border-color: rgba(72, 187, 160, 0.38);
    background: linear-gradient(165deg, rgba(14, 124, 108, 0.28) 0%, rgba(18, 30, 48, 0.9) 100%);
    color: #d1fae5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

body.theme-dark .member-ma-place-search {
    border-color: rgba(120, 175, 235, 0.28);
    background: rgba(11, 29, 53, 0.45);
    color: rgba(219, 232, 255, 0.92);
}

body.theme-dark .member-ma-place-suggestion {
    border-color: rgba(120, 175, 235, 0.22);
    background: rgba(11, 29, 53, 0.5);
    color: rgba(232, 241, 255, 0.92);
}

body.theme-dark .member-ma-place-hint {
    color: rgba(219, 232, 255, 0.55);
}

body.theme-dark .member-ma-place-search-label {
    color: rgba(219, 232, 255, 0.75);
}

body.theme-dark .member-ma-tool-btn.is-active {
    border-color: rgba(120, 190, 255, 0.38);
    color: #dbe8ff;
    background: color-mix(in srgb, var(--bg-blue) 18%, transparent);
}

body.theme-dark .member-ma-place-btn {
    border-color: rgba(72, 187, 160, 0.35);
    background: linear-gradient(165deg, rgba(14, 124, 108, 0.22) 0%, rgba(18, 30, 48, 0.92) 62%);
    color: rgba(210, 250, 238, 0.95);
}

body.theme-dark .member-ma-place-btn:hover {
    border-color: rgba(72, 187, 160, 0.5);
    background: linear-gradient(165deg, rgba(14, 124, 108, 0.28) 0%, rgba(18, 30, 48, 0.95) 62%);
}

body.theme-dark .member-ma-place-btn-icon {
    background: rgba(72, 187, 160, 0.18);
    color: rgba(167, 243, 208, 0.98);
}

body.theme-dark .member-ma-place-btn.is-active {
    border-color: rgba(72, 187, 160, 0.55);
    background: linear-gradient(165deg, rgba(14, 124, 108, 0.32) 0%, rgba(14, 124, 108, 0.12) 100%);
    color: #ecfdf5;
    box-shadow: 0 0 0 1px rgba(72, 187, 160, 0.2);
}

body.theme-dark .member-ma-place-btn.is-active .member-ma-place-btn-icon {
    background: rgba(72, 187, 160, 0.32);
}

/* Dark mode â€” cartes membre, config jeux, pseudos, feed & commentaires */
body.theme-dark .member-auth-card,
body.theme-dark .member-profile-card,
body.theme-dark .member-public-card,
body.theme-dark .community-page .member-public-card {
    background: var(--surface-card);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

body.theme-dark .community-search-field input[type="search"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 175, 235, 0.24);
    color: var(--text-dark);
}

body.theme-dark .community-search-field input[type="search"]:focus {
    border-color: rgba(120, 190, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(60, 140, 220, 0.18);
}

body.theme-dark .community-member-card .community-member-avatar img {
    border-color: var(--surface-card, #0f172a);
}

body.theme-dark .community-keyword-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(120, 175, 235, 0.22);
    color: rgba(196, 181, 253, 0.95);
}

body.theme-dark .member-friend-requests {
    background: color-mix(in srgb, var(--surface-card) 90%, transparent);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

body.theme-dark .member-friend-request-item + .member-friend-request-item {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-friend-request-item span {
    color: var(--text-dark);
}

body.theme-dark .member-profile-card h2,
body.theme-dark .member-profile-card h3,
body.theme-dark .member-public-card h2,
body.theme-dark .member-public-card h3,
body.theme-dark .member-friend-requests h2,
body.theme-dark .member-gxp-wallet-card h2,
body.theme-dark .member-gxp-ledger-table th {
    color: var(--text-dark);
}

body.theme-dark .member-gxp-ledger-hint,
body.theme-dark .member-gxp-ledger-muted,
body.theme-dark .member-gxp-ledger-empty {
    color: var(--muted-text);
}

body.theme-dark .member-gxp-ledger-table th,
body.theme-dark .member-gxp-ledger-table td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-auth-form input[type="text"],
body.theme-dark .member-auth-form input[type="email"],
body.theme-dark .member-auth-form input[type="password"],
body.theme-dark .member-auth-form input[type="url"],
body.theme-dark .member-profile-form input[type="text"],
body.theme-dark .member-profile-form input[type="email"],
body.theme-dark .member-profile-form input[type="password"],
body.theme-dark .member-profile-form input[type="url"],
body.theme-dark .member-profile-form input[type="date"],
body.theme-dark .member-profile-form textarea,
body.theme-dark .member-profile-form select {
    background: rgba(10, 18, 32, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
}

body.theme-dark .member-auth-form input::placeholder,
body.theme-dark .member-profile-form input::placeholder,
body.theme-dark .member-profile-form textarea::placeholder {
    color: rgba(219, 232, 255, 0.45);
}

body.theme-dark .member-profile-field-hint,
body.theme-dark .member-about-edit-lead,
body.theme-dark .member-public-about-text,
body.theme-dark .member-public-about-empty,
body.theme-dark .member-profile-section-lead,
body.theme-dark .member-profile-media-display,
body.theme-dark .member-profile-media-note,
body.theme-dark .member-profile-media-file-name {
    color: var(--muted-text);
}

body.theme-dark .member-profile-media-error {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(248, 113, 113, 0.45);
}

body.theme-dark .member-profile-media-info {
    color: #bfdbfe;
    background: rgba(30, 64, 175, 0.25);
    border-color: rgba(96, 165, 250, 0.35);
}

body.theme-dark .member-profile-form-section + .member-profile-form-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-profile-media-card {
    background: color-mix(in srgb, var(--surface-card) 90%, transparent);
    border-color: var(--border-color);
}

body.theme-dark .member-profile-media-preview {
    background: rgba(10, 18, 32, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .member-profile-media-spec {
    color: color-mix(in srgb, var(--bg-blue) 68%, var(--text-dark));
}

body.theme-dark .member-profile-media-file-btn {
    background: color-mix(in srgb, var(--bg-blue) 14%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 36%, transparent);
    color: color-mix(in srgb, var(--bg-blue) 72%, var(--text-dark));
}

body.theme-dark .member-profile-media-file-btn:hover {
    background: var(--button-bg, var(--bg-blue));
    border-color: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
}

body.theme-dark .member-banner-crop-modal__dialog {
    background: var(--surface-card);
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.theme-dark .member-banner-crop-modal__lead {
    color: var(--muted-text);
}

body.theme-dark .member-banner-crop-modal__close {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
}

body.theme-dark .member-banner-crop-modal__actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-banner-crop-modal__btn--ghost {
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-dark);
}

body.theme-dark .member-profile-head p {
    color: var(--muted-text);
}

body.theme-dark .member-profile-tab-order-item {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

body.theme-dark .member-profile-tab-order-handle {
    color: rgba(219, 232, 255, 0.45);
}

body.theme-dark .member-public-about-config {
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--bg-blue) 10%, var(--surface-card)) 0%,
        var(--surface-panel) 100%
    );
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-public-about-config h3 {
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-dark));
}

body.theme-dark .member-public-about-config-sub,
body.theme-dark .member-pc-config-field label,
body.theme-dark .member-pc-config-dl dt,
body.theme-dark .member-about-handles-grid label,
body.theme-dark .member-gaming-handle-field label {
    color: color-mix(in srgb, var(--bg-blue) 50%, var(--text-dark));
}

body.theme-dark .member-gaming-handle-field {
    background: rgba(10, 18, 32, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .member-gaming-handle-field input[type="text"] {
    background: rgba(8, 14, 26, 0.72);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-dark);
}

body.theme-dark .member-about-config-toggles {
    background: rgba(10, 18, 32, 0.45);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-about-config-toggle {
    color: var(--text-dark);
}

body.theme-dark .member-about-handle-pill {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .member-about-handle-pill-label {
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--muted-text));
}

body.theme-dark .member-about-handle-pill-value,
body.theme-dark .member-pc-config-dl dd,
body.theme-dark .member-sidebar-setup-platform-row-label,
body.theme-dark .member-sidebar-setup-handle-value,
body.theme-dark .member-sidebar-setup-pc-row-value {
    color: var(--text-dark);
}

body.theme-dark .member-about-consoles-badges span {
    background: color-mix(in srgb, var(--bg-blue) 14%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 28%, transparent);
    color: var(--text-dark);
}

body.theme-dark .member-console-card {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-console-card.is-selected {
    border-color: color-mix(in srgb, var(--bg-blue) 45%, transparent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

body.theme-dark .member-console-card-visual {
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--bg-blue) 18%, transparent),
        rgba(10, 18, 32, 0.35)
    );
}

body.theme-dark .member-console-card-icon {
    color: color-mix(in srgb, var(--bg-blue) 65%, var(--text-dark));
}

body.theme-dark .member-console-card-label {
    color: var(--text-dark);
}

body.theme-dark .member-console-card-upload {
    color: var(--muted-text);
}

body.theme-dark .member-pc-config-field input[type="text"],
body.theme-dark .member-pc-config-field textarea {
    background: rgba(10, 18, 32, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
}

body.theme-dark .member-about-console-showcase-visual {
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--bg-blue) 16%, transparent),
        rgba(10, 18, 32, 0.45)
    );
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-about-console-showcase-icon {
    color: color-mix(in srgb, var(--bg-blue) 60%, var(--text-dark));
}

body.theme-dark .member-about-console-showcase-label {
    color: var(--text-dark);
}

body.theme-dark .member-sidebar-setup-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-public-sidebar-title {
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-dark));
}

body.theme-dark .member-sidebar-setup-subtitle,
body.theme-dark .member-sidebar-setup-handle-label,
body.theme-dark .member-sidebar-setup-pc-row-label {
    color: color-mix(in srgb, var(--bg-blue) 50%, var(--muted-text));
}

body.theme-dark .member-sidebar-setup-platform-row,
body.theme-dark .member-sidebar-setup-pc-row {
    background: rgba(10, 18, 32, 0.45);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-sidebar-setup-platform-row-visual {
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-sidebar-setup-platform-row-icon {
    color: color-mix(in srgb, var(--bg-blue) 60%, var(--text-dark));
}

body.theme-dark .member-sidebar-setup-notes-detail,
body.theme-dark .member-sidebar-setup-pc-legacy,
body.theme-dark .member-sidebar-empty {
    color: var(--muted-text);
}

body.theme-dark .member-sidebar-thumb-btn,
body.theme-dark .member-sidebar-collection-btn {
    background: rgba(10, 18, 32, 0.55);
}

body.theme-dark .member-public-identity .member-name-with-badge > h1,
body.theme-dark .member-public-identity .member-name-with-badge > h2,
body.theme-dark .member-profile-name-text {
    color: var(--text-dark);
}

body.theme-dark .member-auth-2fa-title,
body.theme-dark .member-2fa-steps {
    color: var(--text-dark);
}

body.theme-dark .member-2fa-intro {
    color: var(--muted-text);
}

body.theme-dark .member-2fa-status.is-enabled {
    background: rgba(22, 163, 74, 0.18);
    color: #86efac;
}

body.theme-dark .member-2fa-secret {
    background: rgba(10, 18, 32, 0.55);
    color: var(--text-dark);
}

body.theme-dark .member-2fa-subform {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-2fa-backup-notice {
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 28%, transparent);
    color: var(--text-dark);
}

body.theme-dark .member-2fa-backup-list code {
    background: rgba(10, 18, 32, 0.65);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-referral-lead,
body.theme-dark .member-referral-muted {
    color: var(--muted-text);
}

body.theme-dark .member-referral-stat {
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 22%, transparent);
}

body.theme-dark .member-referral-stat-label {
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--muted-text));
}

body.theme-dark .member-referral-stat-value {
    color: color-mix(in srgb, var(--bg-blue) 65%, var(--text-dark));
}

body.theme-dark .member-referral-url-input {
    background: rgba(10, 18, 32, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
}

body.theme-dark .member-referral-board-title {
    color: var(--text-dark);
}

body.theme-dark .member-referral-board-row {
    background: color-mix(in srgb, var(--surface-card) 92%, transparent);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
}

body.theme-dark .member-referral-board-row.is-self {
    border-color: color-mix(in srgb, var(--bg-blue) 48%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 14%, transparent);
}

body.theme-dark .member-referral-rank {
    color: color-mix(in srgb, var(--bg-blue) 72%, var(--text-dark));
}

body.theme-dark .member-referral-name {
    color: var(--text-dark);
}

body.theme-dark .member-referral-meta,
body.theme-dark .member-referral-hint {
    color: var(--muted-text);
}

body.theme-dark .member-referral-url-label {
    color: var(--text-dark);
}

body.theme-dark .member-referral-copy-btn {
    background: color-mix(in srgb, var(--bg-blue) 16%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 38%, transparent);
    color: color-mix(in srgb, var(--bg-blue) 72%, var(--text-dark));
}

body.theme-dark .member-referral-copy-btn:hover {
    background: var(--button-bg, var(--bg-blue));
    border-color: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
}

body.theme-dark .member-public-tabs {
    background: rgba(10, 18, 32, 0.45);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset -22px 0 20px -18px rgba(0, 0, 0, 0.25);
}

body.theme-dark .member-public-tab {
    color: rgba(219, 232, 255, 0.72);
}

body.theme-dark .member-public-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-dark));
}

body.theme-dark .member-public-tab.is-active {
    background: var(--surface-card);
    border-color: color-mix(in srgb, var(--bg-blue) 38%, transparent);
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-dark));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

body.theme-dark .member-public-tab-count,
body.theme-dark .member-sidebar-collection-count {
    background: rgba(255, 255, 255, 0.1);
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-dark));
}

body.theme-dark .member-collection-panel-count {
    color: rgba(219, 232, 255, 0.72);
}

body.theme-dark .member-feed-card {
    background: var(--surface-card);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-feed-composer {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .member-feed-composer h2 {
    color: var(--text-dark);
}

body.theme-dark .member-feed-composer .member-profile-form > button[type="submit"] {
    background: var(--button-bg);
    color: var(--button-text);
}

body.theme-dark .member-feed-composer .member-profile-form > button[type="submit"]:hover {
    background: var(--button-hover-bg);
    color: var(--button-text);
}

body.theme-dark .member-feed-author .member-feed-author-time,
body.theme-dark .member-feed-type {
    color: var(--muted-text);
}

body.theme-dark .member-feed-type {
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .member-comments-box {
    background: rgba(10, 18, 32, 0.45);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-comments-empty {
    color: var(--muted-text);
}

body.theme-dark .member-comment-text p {
    color: var(--text-dark);
}

body.theme-dark .member-comment-compose {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-comment-input {
    background: rgba(10, 18, 32, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
}

body.theme-dark .member-comment-reply-cancel {
    background: rgba(10, 18, 32, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
}

body.theme-dark .member-feed-meta span {
    color: var(--muted-text);
}

body.theme-dark .member-feed-content,
body.theme-dark .member-feed-content p {
    color: var(--text-dark);
}

body.theme-dark .member-feed-content a {
    color: color-mix(in srgb, var(--bg-blue) 65%, var(--text-dark));
}

body.theme-dark .member-feed-content a:hover {
    color: var(--text-dark);
}

body.theme-dark .member-feed-content a.member-mention {
    background: color-mix(in srgb, var(--bg-blue) 14%, transparent);
    color: color-mix(in srgb, var(--bg-blue) 70%, var(--text-dark));
}

body.theme-dark .member-feed-content a.member-hashtag,
body.theme-dark .member-feed-content a[href*="keyword="] {
    color: color-mix(in srgb, #c4b5fd 75%, var(--text-dark));
}

body.theme-dark .member-comment-text a.member-mention {
    background: color-mix(in srgb, var(--bg-blue) 14%, transparent);
    color: color-mix(in srgb, var(--bg-blue) 70%, var(--text-dark));
}

body.theme-dark .member-comment-text a.member-hashtag,
body.theme-dark .member-comment-text a[href*="keyword="] {
    color: color-mix(in srgb, #c4b5fd 75%, var(--text-dark));
}

body.theme-dark .member-feed-shared-quote.hero-quote,
body.theme-dark .member-feed-card .member-feed-shared-quote.hero-quote {
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface-card) 94%, #ffffff 6%), var(--surface-panel));
    border-color: var(--border-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.theme-dark .member-feed-shared-quote .hero-quote-text {
    color: var(--text-dark);
}

body.theme-dark .member-feed-shared-quote .hero-quote-text::before,
body.theme-dark .member-feed-shared-quote .hero-quote-text::after {
    color: color-mix(in srgb, var(--link-color) 38%, transparent);
}

body.theme-dark .member-feed-shared-quote .hero-quote-author {
    color: var(--muted-text);
}

body.theme-dark .member-feed-shared-quote .hero-quote-author::before {
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--link-color) 62%, transparent), transparent);
}

/* â€”â€” Ã‰vÃ©nements partagÃ©s sur profil membre â€”â€” */
body.theme-dark .member-og-card,
body.theme-dark a.member-og-card,
body.theme-dark a.member-og-card.member-og-card-inline,
body.theme-dark .member-og-card.member-og-card--event {
    background: var(--surface-card);
    border-color: var(--border-color);
    color: var(--text-dark);
}

body.theme-dark .member-og-body h3,
body.theme-dark .member-og-card--event .member-og-body h3,
body.theme-dark .member-og-card--event .member-og-body h3 a {
    color: var(--text-dark);
}

body.theme-dark .member-og-body p,
body.theme-dark .member-og-card--event .member-og-body p {
    color: var(--muted-text);
}

body.theme-dark .member-og-site,
body.theme-dark .member-og-card--event .member-og-site {
    color: var(--muted-text);
}

body.theme-dark .member-og-card--event .p4g-event-card-label {
    color: var(--link-color);
}

body.theme-dark .member-og-card--event .p4g-event-card-date {
    background: color-mix(in srgb, var(--bg-blue) 22%, transparent);
    color: color-mix(in srgb, var(--link-color) 85%, #ffffff);
}

body.theme-dark .member-article-teaser,
body.theme-dark .member-article-teaser--event,
body.theme-dark .member-articles-list--in-profile .member-article-teaser {
    background: var(--surface-card);
    border-color: var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    color: var(--text-dark);
}

body.theme-dark .member-article-teaser-title a {
    color: var(--text-dark);
}

body.theme-dark .member-article-teaser-title a:hover {
    color: var(--link-hover-color);
}

body.theme-dark .member-article-teaser-excerpt,
body.theme-dark .member-article-teaser-date {
    color: var(--muted-text);
}

body.theme-dark .p4g-event-card-going {
    color: var(--link-color);
}

body.theme-dark .member-feed-card .member-og-list {
    gap: 0.6rem;
}

body.theme-dark .member-feed-card a.member-og-card,
body.theme-dark .member-feed-card a.member-og-card.member-og-card-inline,
body.theme-dark .member-feed-card a.member-og-card.member-og-card--event,
body.theme-dark .member-feed-card a.member-og-card:hover,
body.theme-dark .member-feed-card a.member-og-card:focus-visible {
    color: var(--text-dark);
    text-decoration: none;
}

body.theme-dark .member-feed-card a.member-og-card .member-og-body h3 {
    color: var(--text-dark);
}

body.theme-dark .member-articles-shared-block {
    border-top-color: var(--border-color);
}

body.theme-dark .member-articles-shared-block h2 {
    color: var(--text-dark);
}

body.theme-dark .member-article-teaser-placeholder {
    background: color-mix(in srgb, var(--surface-panel) 88%, var(--bg-blue) 12%);
    border-color: var(--border-color);
    color: var(--muted-text);
}

body.theme-dark .member-article-teaser--event .member-article-teaser-placeholder {
    color: var(--link-color);
}

body.theme-dark .member-feed-author .member-feed-author-action,
body.theme-dark .member-feed-author .member-feed-author-heading .member-feed-author-action {
    color: var(--link-color);
}

body.theme-dark .hero-quote {
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface-card) 94%, #ffffff 6%), var(--surface-panel));
    border-color: var(--border-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.theme-dark .hero-quote-text {
    color: var(--text-dark);
}

body.theme-dark .hero-quote-text::before,
body.theme-dark .hero-quote-text::after {
    color: color-mix(in srgb, var(--link-color) 38%, transparent);
}

body.theme-dark .hero-quote-author {
    color: var(--muted-text);
}

body.theme-dark .hero-quote-author::before {
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--link-color) 62%, transparent), transparent);
}

body.theme-dark .footer-quote-share-btn {
    border-color: color-mix(in srgb, var(--link-color) 38%, transparent);
    background: color-mix(in srgb, var(--link-color) 12%, var(--surface-panel));
    color: var(--link-color);
}

body.theme-dark .footer-quote-share-btn:hover,
body.theme-dark .footer-quote-share-btn:focus-visible {
    background: color-mix(in srgb, var(--link-color) 22%, var(--surface-panel));
    color: #fff;
}

body.theme-dark .member-feed-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-feed-action {
    background: rgba(10, 18, 32, 0.55);
    color: var(--text-dark);
}

body.theme-dark .member-feed-action:hover,
body.theme-dark .member-feed-action.is-active {
    background: color-mix(in srgb, var(--bg-blue) 18%, transparent);
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-dark));
}

body.theme-dark .member-comment-author {
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-dark));
}

body.theme-dark .member-comment-reply-action {
    color: color-mix(in srgb, var(--bg-blue) 65%, var(--text-dark));
}

body.theme-dark .member-post-edit-field-label {
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-dark));
}

body.theme-dark .member-post-edit-textarea-shell {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

body.theme-dark .member-post-edit-form textarea.member-post-edit-textarea {
    color: var(--text-dark);
}

body.theme-dark .member-post-edit-form textarea.member-post-edit-textarea::placeholder {
    color: rgba(219, 232, 255, 0.45);
}

body.theme-dark .member-post-edit-form-actions {
    background: var(--surface-panel);
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-auth-check,
body.theme-dark .member-auth-check span {
    color: var(--text-dark);
}

body.theme-dark .member-composer-icon {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .member-composer-icon:hover {
    filter: brightness(1.08);
}

body.theme-dark .member-composer-icon--media {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(37, 99, 235, 0.16);
}

body.theme-dark .member-composer-icon--gif {
    color: #c084fc;
    border-color: rgba(192, 132, 252, 0.35);
    background: rgba(147, 51, 234, 0.16);
}

body.theme-dark .member-composer-icon--gif .member-composer-gif-mark {
    background: #a855f7;
    color: #fff;
}

body.theme-dark .member-composer-icon--gif:hover .member-composer-gif-mark {
    background: #9333ea;
}

body.theme-dark .member-composer-icon--life-event {
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.35);
    background: rgba(234, 88, 12, 0.16);
}

body.theme-dark .member-composer-icon--mood {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(217, 119, 6, 0.16);
}

body.theme-dark .member-composer-icon--place {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(16, 185, 129, 0.16);
}

body.theme-dark .member-composer-icon--poll {
    color: #818cf8;
    border-color: rgba(129, 140, 248, 0.35);
    background: rgba(79, 70, 229, 0.16);
}

body.theme-dark .member-life-event-tool-btn.is-active {
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 35%, transparent);
}

/* Dark mode â€” messages privÃ©s */
body.theme-dark .member-messages-threads,
body.theme-dark .member-messages-conversation {
    background: var(--surface-panel);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-messages-threads h3,
body.theme-dark .member-messages-conversation h3,
body.theme-dark .member-messages-conversation-title {
    color: var(--text-dark);
}

body.theme-dark .member-messages-thread-link {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

body.theme-dark .member-messages-thread-link.is-active {
    background: color-mix(in srgb, var(--bg-blue) 16%, rgba(10, 18, 32, 0.55));
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
}

body.theme-dark .member-messages-thread-name em,
body.theme-dark .member-messages-presence {
    color: var(--muted-text);
}

body.theme-dark .member-messages-presence.is-typing {
    color: color-mix(in srgb, var(--bg-blue) 65%, var(--text-dark));
}

body.theme-dark .member-message-thread-actions button {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-dark));
}

body.theme-dark .member-message-thread-actions button:hover {
    background: color-mix(in srgb, var(--bg-blue) 14%, rgba(10, 18, 32, 0.55));
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
}

body.theme-dark .member-message-thread-actions button.is-danger {
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

body.theme-dark .member-message-item {
    background: rgba(10, 18, 32, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
}

body.theme-dark .member-message-item.is-mine {
    background: color-mix(in srgb, var(--bg-blue) 22%, rgba(10, 18, 32, 0.65));
    border-color: color-mix(in srgb, var(--bg-blue) 38%, transparent);
}

body.theme-dark .member-message-item h4,
body.theme-dark .member-message-body,
body.theme-dark .member-message-body p {
    color: var(--text-dark);
}

body.theme-dark .member-message-body a {
    color: color-mix(in srgb, var(--bg-blue) 65%, #dbe8ff);
}

body.theme-dark .member-message-body a:hover {
    color: color-mix(in srgb, var(--reviews-score-bg, #ff4d00) 70%, #dbe8ff);
}

body.theme-dark .member-message-head span,
body.theme-dark .member-message-author strong {
    color: var(--text-dark);
}

body.theme-dark .member-message-item.is-mine .member-message-head span {
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--muted-text));
}

body.theme-dark .member-message-read-state {
    color: color-mix(in srgb, var(--reviews-score-bg, #ff4d00) 75%, #fdba74);
}

body.theme-dark .member-message-bubble-reaction,
body.theme-dark .member-message-react-toggle,
body.theme-dark .member-message-hide-btn,
body.theme-dark .member-message-reaction-popover,
body.theme-dark .member-message-react-btn {
    background: rgba(10, 18, 32, 0.85);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-dark);
}

body.theme-dark .member-message-bubble-reaction.is-mine,
body.theme-dark .member-message-react-btn.is-mine {
    background: color-mix(in srgb, var(--bg-blue) 18%, rgba(10, 18, 32, 0.85));
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
}

body.theme-dark .member-message-react-toggle:hover,
body.theme-dark .member-message-hide-btn:hover {
    background: color-mix(in srgb, var(--bg-blue) 14%, rgba(10, 18, 32, 0.85));
}

body.theme-dark .member-message-author-avatar.is-online::after,
body.theme-dark .member-messages-thread-avatar.is-online::after {
    border-color: var(--surface-panel);
}

body.theme-dark .member-hidden-messages details {
    background: rgba(10, 18, 32, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
}

body.theme-dark .member-hidden-messages summary {
    color: var(--text-dark);
}

body.theme-dark .member-hidden-message-item {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

body.theme-dark .member-hidden-message-item p {
    color: var(--muted-text);
}

body.theme-dark .member-message-unhide-btn {
    background: color-mix(in srgb, var(--bg-blue) 14%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 30%, transparent);
    color: color-mix(in srgb, var(--bg-blue) 65%, var(--text-dark));
}

body.theme-dark .member-message-unhide-btn:hover {
    background: color-mix(in srgb, var(--bg-blue) 22%, transparent);
}

body.theme-dark .member-message-recipient-suggest .member-composer-suggest-item small {
    color: var(--muted-text);
}

body.theme-dark .member-messages-thread-empty,
body.theme-dark .member-messages-conversation-empty {
    color: var(--muted-text);
}

body.theme-dark .member-message-compose-toolbar .member-composer-icon {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-dark);
}

.member-feed-life-event--celebration .member-feed-life-event-icon {
    background: rgba(236, 72, 153, 0.18);
    color: #be185d;
}

.member-feed-life-event--gaming .member-feed-life-event-icon {
    background: rgba(59, 130, 246, 0.18);
    color: var(--bg-blue);
}

.member-feed-life-event--travel .member-feed-life-event-icon {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.member-feed-author {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.member-feed-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.member-feed-author strong {
    display: block;
    line-height: 1.2;
}

.member-feed-author > div > span:not(.member-name-with-badge) {
    display: block;
}

.member-feed-author strong.member-name-with-badge--inline,
.member-feed-author .member-feed-author-name-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    max-width: 100%;
    line-height: 1.2;
}

.member-feed-author .member-name-with-badge--inline {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    vertical-align: middle;
    max-width: 100%;
}

.member-feed-author .member-name-with-badge--inline > a {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.member-feed-author .member-name-with-badge--inline .member-streamer-badge,
.member-feed-author .member-name-with-badge--inline .member-moderator-badge {
    flex: 0 0 auto;
}

.member-feed-author .member-feed-author-heading {
    margin: 0;
    line-height: 1.35;
}

.member-feed-author .member-feed-author-heading .member-feed-author-name {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.member-feed-author .member-feed-author-heading .member-feed-author-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.member-feed-author .member-feed-author-time {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.82rem;
    color: rgba(14, 32, 56, 0.62);
}

.member-feed-type {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.46rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    font-size: 0.72rem;
    color: rgba(14, 32, 56, 0.68);
}

.member-feed-type-row {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
}

.member-post-privacy {
    position: relative;
    flex-shrink: 0;
}

.member-post-privacy-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(20, 89, 130, 0.22);
    border-radius: 999px;
    background: rgba(246, 250, 255, 0.95);
    color: var(--bg-accent, #145982);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-post-privacy-toggle:hover,
.member-post-privacy-toggle[aria-expanded="true"] {
    background: #fff;
    border-color: rgba(20, 89, 130, 0.38);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.member-post-privacy-toggle--compact {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
}

.member-feed-meta .member-post-privacy-toggle--compact,
.member-feed-type-row .member-post-privacy-toggle--compact {
    flex-shrink: 0;
}

.member-post-privacy-toggle-leading .member-post-privacy-icon {
    display: inline-block;
    line-height: 1;
}

.member-post-privacy-toggle--chip {
    min-height: 34px;
    padding: 0.28rem 0.55rem 0.28rem 0.42rem;
    gap: 0.35rem;
}

.member-post-privacy-toggle-leading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.member-post-privacy-toggle--compact .member-post-privacy-toggle-leading {
    width: 100%;
    height: 100%;
    font-size: 0.78rem;
}

.member-post-privacy-toggle-label {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9.5rem;
}

.member-post-privacy-toggle-caret {
    font-size: 0.62rem;
    opacity: 0.72;
    margin-left: 0.05rem;
}

.member-post-privacy--public .member-post-privacy-icon:not(.member-post-privacy-icon--public) {
    display: none;
}

.member-post-privacy--friends .member-post-privacy-icon:not(.member-post-privacy-icon--friends) {
    display: none;
}

.member-post-privacy--friends_custom .member-post-privacy-icon:not(.member-post-privacy-icon--friends_custom) {
    display: none;
}

.member-post-privacy--private .member-post-privacy-icon:not(.member-post-privacy-icon--private) {
    display: none;
}

.member-post-privacy-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 120;
    min-width: min(92vw, 290px);
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid rgba(20, 89, 130, 0.14);
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.member-post-privacy-menu-head {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0.45rem 0.55rem;
    border-bottom: 1px solid rgba(20, 89, 130, 0.1);
    margin-bottom: 0.35rem;
}

.member-post-privacy-menu-head strong {
    font-size: 0.88rem;
    color: rgba(14, 32, 56, 0.92);
}

.member-post-privacy-menu-head span {
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--muted-text, rgba(71, 85, 105, 0.88));
}

.member-post-privacy-form,
.member-post-privacy-options {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
}

.member-post-privacy-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    color: rgba(14, 32, 56, 0.9);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.member-post-privacy-option:hover {
    background: rgba(20, 89, 130, 0.06);
    border-color: rgba(20, 89, 130, 0.08);
}

.member-post-privacy-option.is-selected {
    background: color-mix(in srgb, var(--bg-blue, #1e73be) 10%, #fff);
    border-color: color-mix(in srgb, var(--bg-blue, #1e73be) 24%, transparent);
}

.member-post-privacy-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.member-post-privacy-option-icon--public {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.member-post-privacy-option-icon--friends {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.member-post-privacy-option-icon--friends_custom {
    background: rgba(168, 85, 247, 0.14);
    color: #7e22ce;
}

.member-post-privacy-option-icon--private {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}

.member-post-privacy-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.member-post-privacy-option-text strong {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
}

.member-post-privacy-option-text small {
    font-size: 0.74rem;
    line-height: 1.35;
    color: var(--muted-text, rgba(71, 85, 105, 0.88));
}

.member-post-privacy-option-check {
    font-size: 0.72rem;
    opacity: 0;
    color: var(--bg-accent, #145982);
    transition: opacity 0.12s ease;
}

.member-post-privacy-option.is-selected .member-post-privacy-option-check {
    opacity: 1;
}

.member-post-privacy-friends-panel {
    margin-top: 0.2rem;
    padding: 0.55rem 0.45rem 0.45rem;
    border-top: 1px solid rgba(20, 89, 130, 0.1);
}

.member-post-privacy-friends-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.member-post-privacy-friends-panel-head > i {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.14);
    color: #7e22ce;
    flex-shrink: 0;
    font-size: 0.78rem;
}

.member-post-privacy-friends-panel-head strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.1rem;
}

.member-post-privacy-friends-panel-head span {
    display: block;
    font-size: 0.74rem;
    line-height: 1.35;
    color: var(--muted-text, rgba(71, 85, 105, 0.88));
}

.member-post-privacy-friends-label,
.member-composer-privacy-friends-label {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted-text);
}

.member-post-privacy-friends-empty {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted-text);
}

.member-post-privacy-friends-list,
.member-composer-privacy-friends-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 180px;
    overflow: auto;
}

.member-post-privacy-friends-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 0.45rem;
    max-height: none;
    overflow: visible;
}

.member-post-privacy-friend-choice,
.member-composer-privacy-friend-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.12);
    background: rgba(255, 255, 255, 0.85);
    transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.member-post-privacy-friends-list--grid .member-composer-privacy-friend-choice {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
    padding: 0.55rem 0.35rem 0.45rem;
}

.member-post-privacy-friends-list--grid .member-composer-privacy-friend-choice span {
    font-size: 0.72rem;
    line-height: 1.25;
    word-break: break-word;
}

.member-post-privacy-friend-choice:has(input:checked),
.member-composer-privacy-friend-choice:has(input:checked) {
    border-color: color-mix(in srgb, var(--bg-blue, #1e73be) 42%, transparent);
    background: color-mix(in srgb, var(--bg-blue, #1e73be) 8%, #fff);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--bg-blue, #1e73be) 16%, transparent);
}

.member-post-privacy-friend-choice input,
.member-composer-privacy-friend-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.member-post-privacy-friend-choice img,
.member-composer-privacy-friend-choice img {
    border-radius: 999px;
}

.member-post-privacy-friends-save {
    margin-top: 0.55rem;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    background: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.member-composer-privacy {
    margin: 0;
}

.member-composer-privacy-friends {
    margin-top: 0.55rem;
    padding: 0.75rem;
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.95), rgba(255, 255, 255, 0.92));
}

body.theme-dark .member-post-privacy-toggle {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(159, 181, 211, 0.24);
    color: rgba(191, 219, 254, 0.95);
}

body.theme-dark .member-post-privacy-toggle:hover,
body.theme-dark .member-post-privacy-toggle[aria-expanded="true"] {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(159, 181, 211, 0.38);
}

body.theme-dark .member-post-privacy-menu {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(159, 181, 211, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

body.theme-dark .member-post-privacy-menu-head {
    border-bottom-color: rgba(159, 181, 211, 0.14);
}

body.theme-dark .member-post-privacy-menu-head strong,
body.theme-dark .member-post-privacy-option-text strong {
    color: rgba(241, 245, 249, 0.95);
}

body.theme-dark .member-post-privacy-option {
    color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .member-post-privacy-option:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.16);
}

body.theme-dark .member-post-privacy-option.is-selected {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.32);
}

body.theme-dark .member-composer-privacy-friends,
body.theme-dark .member-post-privacy-friend-choice,
body.theme-dark .member-composer-privacy-friend-choice {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(159, 181, 211, 0.16);
}

body.theme-dark .member-post-privacy-friend-choice:has(input:checked),
body.theme-dark .member-composer-privacy-friend-choice:has(input:checked) {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.34);
}

.member-feed-meta span {
    color: rgba(14, 32, 56, 0.66);
    font-size: 0.82rem;
}

.member-feed-content {
    color: rgba(14, 32, 56, 0.85);
}

.member-feed-shared-quote.hero-quote {
    width: 100%;
    max-width: 100%;
    justify-items: start;
    text-align: left;
    margin: 0.2rem 0 0.15rem;
    padding: 0.85rem 0.95rem;
}

.member-feed-shared-quote .hero-quote-text {
    padding: 0 1.5rem;
    text-align: left;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.member-feed-content a {
    color: rgba(20, 89, 130, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.member-feed-content a:hover {
    color: rgba(15, 70, 110, 1);
}

.member-feed-content a.member-mention {
    font-weight: 700;
    text-decoration: none;
    background: rgba(20, 89, 130, 0.1);
    padding: 0.05rem 0.25rem;
    border-radius: 6px;
}

.member-feed-content .member-mention.member-mention-everyone {
    display: inline-block;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(234, 88, 12, 0.14));
    color: rgba(91, 33, 182, 0.98);
    padding: 0.06rem 0.35rem;
    border-radius: 6px;
    border: 1px solid rgba(124, 58, 237, 0.35);
}

.member-composer-hint-mod {
    font-weight: 600;
    color: rgba(91, 33, 182, 0.92);
}

.member-feed-content a.member-hashtag {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    color: rgba(124, 58, 237, 0.98);
}

.member-feed-content a.member-hashtag:hover {
    color: rgba(91, 33, 182, 1);
    text-decoration: underline;
}

/* Renfort si class="member-hashtag" est absente aprÃ¨s filtrage HTML */
.member-feed-content a[href*="keyword="] {
    font-weight: 700;
    color: rgba(124, 58, 237, 0.98);
    text-underline-offset: 2px;
}

.member-composer-hint {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: var(--muted-text);
    line-height: 1.35;
}

.member-composer-suggest {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.22);
    background: #fff;
    box-shadow: 0 12px 28px rgba(14, 32, 56, 0.14);
}

.member-composer-suggest[hidden] {
    display: none !important;
}

.member-composer-suggest-item {
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.86rem;
    color: rgba(14, 32, 56, 0.88);
}

.member-composer-suggest-item:hover,
.member-composer-suggest-item.is-active {
    background: rgba(20, 89, 130, 0.1);
}

.member-feed-media {
    margin-top: 0.65rem;
}

.member-feed-media img {
    width: 100%;
    border-radius: 10px;
}

.member-feed-media.member-feed-gif:not(.member-feed-klipy) img {
    width: 100%;
    max-height: min(440px, 72vh);
    object-fit: contain;
    object-position: center;
}

.member-feed-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(20, 89, 130, 0.12);
    padding-top: 0.45rem;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.member-feed-actions-end {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.member-feed-actions form {
    margin: 0;
}

.member-feed-action {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    padding: 0.25rem 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(20, 89, 130, 0.08);
    color: rgba(14, 32, 56, 0.78);
    font-weight: 600;
}

.member-feed-action.is-active {
    background: rgba(30, 115, 190, 0.2);
    color: var(--bg-blue);
}

.member-post-manage-wrap {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.member-post-manage-toggle {
    flex-shrink: 0;
    min-width: 2.35rem;
    justify-content: center;
    padding: 0.25rem 0.55rem;
}

.member-post-manage-toggle i {
    font-size: 1.05rem;
    line-height: 1;
}

.member-post-manage-menu[hidden] {
    display: none !important;
}

.member-post-manage-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 11.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    background: var(--surface-card, #fff);
    border: 1px solid rgba(20, 89, 130, 0.2);
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(8, 20, 35, 0.16);
    padding: 0.3rem;
}

.member-post-manage-form {
    margin: 0;
    display: block;
}

.member-post-manage-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 36px;
    padding: 0.4rem 0.65rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.member-post-manage-item:hover,
.member-post-manage-item:focus-visible {
    background: rgba(30, 115, 190, 0.1);
    color: var(--bg-blue);
}

.member-post-manage-item--danger {
    color: #b91c1c;
}

.member-post-manage-item--danger:hover,
.member-post-manage-item--danger:focus-visible {
    background: rgba(185, 28, 28, 0.1);
    color: #991b1b;
}

.member-post-manage-item i {
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

body.theme-dark .member-post-manage-menu {
    background: var(--surface-card);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

body.theme-dark .member-post-manage-item {
    color: var(--text-dark);
}

.member-post-edit-modal:not([open]) {
    display: none !important;
}

.member-post-edit-modal[open] {
    display: block;
}

.member-post-edit-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}

.member-planning-modal--post-edit {
    width: min(96vw, 620px);
}

.member-planning-modal-panel--post-edit {
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 860px);
}

.member-planning-modal-head--post-edit {
    background: linear-gradient(135deg, color-mix(in srgb, var(--bg-dark) 97%, transparent) 0%, color-mix(in srgb, var(--bg-accent) 92%, transparent) 100%);
    border-bottom: none;
    color: var(--text-light);
}

.member-planning-modal-head--post-edit .member-planning-modal-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 249, 252, 0.72);
}

.member-planning-modal-head--post-edit h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.15rem;
}

.member-planning-modal-head--post-edit h2 .fa-pen-to-square {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.75em;
}

.member-planning-modal-head--post-edit .member-planning-modal-lead {
    color: rgba(247, 249, 252, 0.82);
}

.member-planning-modal-head--post-edit .member-planning-modal-close {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.member-planning-modal-head--post-edit .member-planning-modal-close:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
}

.member-planning-modal-body--post-edit {
    padding: 0;
    background: var(--surface-panel, #f4f8fb);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.member-post-edit-form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.15rem;
}

.member-post-edit-field-block {
    margin: 0 0 0.85rem;
}

.member-post-edit-field-label {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--bg-accent);
}

.member-post-edit-textarea-shell {
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--bg-accent) 18%, transparent);
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
    box-shadow: inset 0 1px 2px rgba(8, 18, 32, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-post-edit-textarea-shell:focus-within {
    border-color: color-mix(in srgb, var(--bg-accent) 42%, transparent);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--bg-accent) 10%, transparent),
        inset 0 1px 2px rgba(8, 18, 32, 0.05);
}

.member-post-edit-form textarea.member-post-edit-textarea {
    width: 100%;
    box-sizing: border-box;
    display: block;
    min-height: 200px;
    max-height: min(44vh, 340px);
    resize: vertical;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: transparent;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.98rem;
    line-height: 1.55;
    box-shadow: none;
}

.member-post-edit-form textarea.member-post-edit-textarea::placeholder {
    color: rgba(14, 32, 56, 0.42);
}

.member-post-edit-form textarea.member-post-edit-textarea:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.member-post-edit-form .member-post-edit-toolbar-cluster {
    margin-top: 0.75rem;
}

.member-post-edit-form-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 0.85rem 1.15rem 1.1rem;
    border-top: 1px solid color-mix(in srgb, var(--bg-accent) 12%, transparent);
    background: var(--surface-card, #fff);
}

.member-post-edit-form-actions .btn {
    width: 100%;
    min-height: 2.75rem;
    justify-content: center;
    margin: 0;
}

.member-post-edit-submit {
    font-weight: 700;
}

@media (min-width: 520px) {
    .member-post-edit-form-actions {
        flex-direction: row-reverse;
        justify-content: flex-start;
    }

    .member-post-edit-form-actions .btn {
        width: auto;
        min-width: 9.5rem;
    }
}

.member-post-delete {
    background: rgba(153, 27, 27, 0.9) !important;
    color: #fff !important;
}

.member-feed-action.is-done {
    background: rgba(34, 197, 94, 0.2);
    color: #166534;
}

.member-share-wrap {
    position: relative;
}

.member-share-menu[hidden] {
    display: none !important;
}

.member-share-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 15;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    max-width: min(720px, calc(100vw - 1.25rem));
    gap: 0.28rem;
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.2);
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(8, 20, 35, 0.16);
    padding: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.member-share-menu > * {
    flex-shrink: 0;
}

.member-share-menu a,
.member-share-menu .member-share-copy,
.member-share-menu .member-share-html-capture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--text-dark);
    border-radius: 7px;
    padding: 0;
    font-size: 0.95rem;
    text-decoration: none;
}

.member-share-menu a:hover,
.member-share-menu .member-share-copy:hover,
.member-share-menu .member-share-html-capture:hover {
    background: rgba(30, 115, 190, 0.1);
    color: var(--bg-blue);
}

.member-share-menu .member-share-html-capture:disabled {
    opacity: 0.55;
    cursor: wait;
}

.member-share-menu .member-share-menu-textbtn {
    width: auto;
    min-width: 34px;
    height: auto;
    min-height: 34px;
    padding: 0.25rem 0.45rem;
    gap: 0.35rem;
    justify-content: flex-start;
    white-space: nowrap;
}

.member-share-menu .member-share-menu-text {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.member-comments-box {
    display: none;
    margin-top: 0.75rem;
    padding: 0.85rem 0.9rem 0.95rem;
    border-radius: 12px;
    background: rgba(30, 115, 190, 0.05);
    border: 1px solid rgba(20, 89, 130, 0.12);
}

.member-comments-box.is-open {
    display: block;
}

.member-comments-empty {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    color: rgba(14, 32, 56, 0.58);
    font-style: italic;
}

.member-comments-list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.member-comments-list--nested {
    margin: 0.55rem 0 0;
    padding: 0.55rem 0 0 0.75rem;
    border-left: 2px solid color-mix(in srgb, var(--bg-blue) 22%, transparent);
    gap: 0.55rem;
}

.member-comment-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-comment-item.is-highlighted .member-comment-row {
    border-radius: 10px;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg-blue) 45%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 8%, transparent);
    transition: box-shadow 0.35s ease, background 0.35s ease;
}

.member-feed-card.is-highlighted {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg-blue) 45%, transparent);
    transition: box-shadow 0.35s ease;
}

.member-comment-form.is-submitting .member-comment-submit {
    opacity: 0.65;
    pointer-events: none;
}

.member-post-like-form.is-submitting .like-action {
    opacity: 0.65;
    pointer-events: none;
}

.member-comment-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.member-comment-avatar {
    flex: 0 0 auto;
}

.member-comment-avatar img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.member-comment-main {
    flex: 1 1 auto;
    min-width: 0;
}

.member-comment-head {
    margin: 0 0 0.15rem;
}

.member-comment-author {
    font-size: 0.88rem;
    line-height: 1.25;
    color: var(--bg-accent);
}

.member-comment-text {
    margin: 0;
}

.member-comment-text p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(14, 32, 56, 0.9);
    word-break: break-word;
}

.member-comment-text a.member-mention {
    font-weight: 700;
    text-decoration: none;
    background: rgba(20, 89, 130, 0.1);
    padding: 0.05rem 0.25rem;
    border-radius: 6px;
}

.member-comment-text .member-mention.member-mention-everyone {
    display: inline-block;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(234, 88, 12, 0.14));
    color: rgba(91, 33, 182, 0.98);
    padding: 0.06rem 0.35rem;
    border-radius: 6px;
    border: 1px solid rgba(124, 58, 237, 0.35);
}

.member-comment-text a.member-hashtag {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    color: rgba(124, 58, 237, 0.98);
}

.member-comment-text a.member-hashtag:hover {
    color: rgba(91, 33, 182, 1);
}

.member-comment-actions {
    margin: 0.35rem 0 0;
}

.member-comment-reply-action {
    border: 0;
    background: transparent;
    color: var(--bg-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.member-comment-reply-action:hover {
    text-decoration: underline;
}

.member-comment-compose {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(20, 89, 130, 0.14);
}

.member-comment-compose-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
}

.member-comment-compose-field {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-comment-input {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.22);
    padding: 0.5rem 0.65rem;
    font-size: 0.92rem;
    background: #fff;
    box-sizing: border-box;
}

.member-comment-compose-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
}

.member-comment-compose-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.member-comment-compose-toolbar .member-composer-icon {
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
}

.member-comment-compose-field .member-gif-picker,
.member-comment-compose-field .member-emoji-picker {
    margin-top: 0.15rem;
}

.member-comment-compose-field .member-gif-preview {
    margin-top: 0.35rem;
}

.member-comment-compose-field .member-gif-preview.is-visible img {
    max-width: min(220px, 100%);
    border-radius: 10px;
    display: block;
}

.member-comment-gif {
    margin-top: 0.45rem;
}

.member-comment-gif.member-feed-klipy,
.member-comment-gif .member-klipy-media {
    margin-top: 0.45rem;
}

.member-comment-gif img,
.member-comment-gif video {
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.member-comment-gif .member-klipy-media--gif img,
.member-comment-gif.member-feed-klipy--gif img {
    max-width: min(300px, 100%);
    max-height: min(320px, 50vh);
    width: auto;
    object-fit: contain;
}

.member-comment-gif .member-klipy-media--sticker img,
.member-comment-gif.member-feed-klipy--sticker img {
    max-width: min(240px, 100%);
    max-height: min(240px, 45vh);
    width: auto;
    object-fit: contain;
}

.member-comment-gif .member-klipy-media--clip video {
    max-width: min(300px, 100%);
    max-height: min(320px, 50vh);
    object-fit: contain;
}

.member-comment-compose-field .member-gif-preview.is-visible img,
.member-comment-compose-field .member-gif-preview.is-visible video {
    max-width: min(280px, 100%);
    object-fit: contain;
}

.member-comment-reply-cancel {
    display: none;
    min-height: 36px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    border-radius: 9px;
    padding: 0 0.72rem;
    background: rgba(20, 89, 130, 0.06) !important;
    color: rgba(14, 32, 56, 0.78) !important;
    font-weight: 600;
    cursor: pointer;
}

.member-comment-form.is-replying .member-comment-reply-cancel {
    display: inline-flex;
    align-items: center;
}

.member-comment-submit {
    min-height: 36px;
    border: 0;
    border-radius: 9px;
    padding: 0 1rem;
    background: var(--bg-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.member-public-twitch-stream-panel .member-twitch-stream-head h3 {
    margin: 0 0 0.25rem;
}

@media (max-width: 640px) {
    .member-comment-compose-actions {
        width: 100%;
    }

    .member-comment-submit,
    .member-comment-form.is-replying .member-comment-reply-cancel {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .member-gif-picker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .member-emoji-picker-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.member-auth-trigger {
    min-height: 34px;
    border: 1px solid rgba(20, 89, 130, 0.3);
    background: #fff;
    border-radius: 999px;
    padding: 0 0.7rem;
    font-weight: 700;
    color: rgba(14, 32, 56, 0.86);
}

.member-auth-shortcuts {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.member-auth-trigger.is-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-auth-trigger.is-icon i {
    font-size: 0.9rem;
    line-height: 1;
    pointer-events: none;
}

.drawer-member-menu .member-auth-trigger {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1100px) {
    .header-topbar {
        grid-template-columns: auto 1fr auto;
        gap: 0.65rem;
    }

    .header-left,
    .header-right {
        gap: 0.5rem;
    }

    .header-left {
        grid-column: 1;
    }

    .header-brand {
        grid-column: 1 / -1;
        justify-self: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }

    .header-right {
        grid-column: 3;
    }

    .header-brand .custom-logo-link img,
    .header-brand .custom-logo,
    .header-brand .site-logo-link--dual .site-logo-image,
    .header-brand .site-logo-link--switchable .site-logo-image--switchable {
        max-height: 44px;
        width: auto;
    }

    .header-brand .site-logo-link--switchable {
        height: 44px;
    }

    .header-right .social-links {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --p4g-sticky-site-header-height: 7.25rem;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 200;
    }

    .header-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.5rem;
        padding: 0.55rem 0.85rem;
        align-items: center;
    }

    .header-left,
    .header-right {
        display: inline-flex;
        min-width: 0;
        gap: 0.5rem;
        flex-wrap: nowrap;
        width: auto;
    }

    .header-right {
        justify-content: flex-end;
    }

    .header-left {
        grid-column: 1;
    }

    .header-brand {
        grid-column: 2;
        position: relative;
        left: auto;
        transform: none;
        justify-self: center;
    }

    .header-livedirect {
        display: none !important;
    }

    .header-right {
        grid-column: 3;
    }

    .header-brand .custom-logo-link img,
    .header-brand .custom-logo,
    .header-brand .site-logo-link--dual .site-logo-image,
    .header-brand .site-logo-link--switchable .site-logo-image--switchable {
        max-height: 36px;
        width: auto;
    }

    .header-brand .site-logo-link--switchable {
        height: 36px;
    }

    .member-auth-shortcuts {
        gap: 0.5rem;
    }

    .member-auth-trigger.is-icon,
    .menu-toggle,
    .header-notifications-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    /* Recherche : formulaire dans le menu latÃ©ral (drawer) uniquement */
    .header-right .search-toggle,
    .header-search-panel {
        display: none !important;
    }

    body.search-open {
        overflow: auto;
    }

    .header-topbar .member-space-link.member-space-link-profile {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

.member-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(5, 14, 26, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.member-auth-modal.is-open {
    display: flex;
}

.member-auth-modal-panel {
    width: min(100%, 460px);
    max-height: min(92vh, 720px);
    overflow-y: auto;
    background: #fff;
    /* Pas dâ€™hÃ©ritage du header (texte clair) : le panneau reste lisible sur fond blanc */
    color: #1f2937;
    border-radius: 16px;
    padding: 1.85rem 1.35rem 2rem;
    border: 1px solid rgba(20, 89, 130, 0.16);
    position: relative;
}

.member-auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.member-auth-logo img {
    max-height: 152px;
    max-width: min(100%, 380px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.member-auth-logo .logo-mark {
    min-width: 68px;
    width: auto;
    height: 68px;
    font-size: 1.2rem;
    border-radius: 16px;
}

.member-auth-logo .logo-text {
    font-size: 1.55rem;
    font-weight: 700;
    margin-left: 0;
}

.member-auth-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    border: 0;
    background: transparent;
    font-size: 1.15rem;
    line-height: 1;
    min-width: 34px;
    min-height: 34px;
    border-radius: 8px;
    color: #1f2937;
    z-index: 2;
}

.member-auth-modal-close:hover {
    background: rgba(20, 89, 130, 0.08);
}

.member-auth-tabs {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    padding: 0 2.5rem;
    justify-content: center;
}

.member-auth-tab {
    flex: 1;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: #f6f9fd;
    font-weight: 700;
    color: #1f2937;
}

.member-auth-tab.is-active {
    background: rgba(30, 115, 190, 0.14);
    border-color: rgba(30, 115, 190, 0.46);
    color: var(--bg-blue);
}

.member-auth-notice {
    margin: 0 0 0.7rem;
    border-radius: 8px;
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
}

.member-auth-notice.is-success {
    background: rgba(22, 163, 74, 0.12);
    color: #14532d;
}

.member-auth-notice.is-error {
    background: rgba(220, 38, 38, 0.11);
    color: #7f1d1d;
}

.member-auth-panel {
    display: none;
}

.member-auth-panel.is-active {
    display: block;
}

.member-auth-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.member-auth-panel form > input[type="hidden"] {
    display: none;
}

.member-auth-panel form > input[type="text"],
.member-auth-panel form > input[type="email"],
.member-auth-panel form > input[type="password"],
.member-auth-panel form > button[type="submit"],
.member-auth-panel form > .member-auth-oauth-divider,
.member-auth-panel form > .member-auth-linkline-oauth,
.member-auth-panel > .member-auth-oauth-divider,
.member-auth-panel > .member-auth-linkline-oauth {
    grid-column: 1 / -1;
}

.member-auth-panel form > .member-auth-oauth-divider {
    margin: 0.35rem 0 0;
}

.member-auth-panel > .member-auth-oauth-divider {
    margin: 0.75rem 0 0;
}

.member-auth-panel > .member-auth-linkline-oauth,
.member-auth-panel .member-auth-form .member-auth-linkline-oauth {
    width: 100% !important;
    margin: 0.35rem 0 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
    justify-items: stretch !important;
}

.member-auth-panel > .member-auth-linkline-oauth .member-oauth-connect-btn,
.member-auth-panel .member-auth-form .member-auth-linkline-oauth .member-oauth-connect-btn {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
}

.member-auth-panel input[type="text"],
.member-auth-panel input[type="email"],
.member-auth-panel input[type="password"] {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(20, 89, 130, 0.24);
    padding: 0.45rem 0.62rem;
    color: #111827;
}

.member-auth-panel input::placeholder {
    color: #6b7280;
}

.member-auth-panel button[type="submit"] {
    min-height: 42px;
    border-radius: 10px;
    border: 0;
    background: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
    font-weight: 700;
    transition: background 0.15s ease;
}

.member-auth-panel button[type="submit"]:hover {
    background: var(--button-hover-bg, var(--bg-accent));
}

.member-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    color: #374151;
    justify-self: start;
}

.member-auth-lost-link {
    font-size: 0.86rem;
    color: var(--bg-blue);
    text-decoration: none;
    justify-self: end;
}

.member-auth-lost-link:hover {
    text-decoration: underline;
}

.sitemap-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.sitemap-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem;
}

.sitemap-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.sitemap-card ul {
    margin: 0;
    padding-left: 1rem;
}

.sitemap-card li + li {
    margin-top: 0.3rem;
}

@media (max-width: 900px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Rejoindre la rÃ©daction : tout le texte vient de lâ€™Ã©diteur (blocs). */
.join-redaction-page.legal-page {
    max-width: 1260px;
}

/* Fil d'Ariane pages statiques (contact, etc.) */
.contact-page .page-breadcrumb {
    max-width: min(940px, 100%);
    margin: 0 auto 0.75rem;
    padding: 0 0.25rem;
}

/* Page Nous contacter (conteneur type legal-page-content, comme les autres pages) */
.contact-page.legal-page {
    max-width: 980px;
}

.contact-page .legal-page-content {
    margin-top: 0;
}

body:not(.theme-dark) .contact-page .legal-page-content {
    background: #ffffff;
    border: 1px solid rgba(20, 89, 130, 0.18);
    color: #111827;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.contact-page-title {
    margin: 0 0 1rem;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.contact-page-intro {
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-dark);
}

.contact-page-intro p {
    margin: 0 0 0.75rem;
}

.contact-page-editor.entry-content {
    color: inherit;
}

.contact-page-editor.entry-content > *:first-child {
    margin-top: 0;
}

.contact-page-editor.entry-content a {
    color: var(--bg-blue);
    font-weight: 600;
}

.contact-page-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.2rem;
}

.contact-page-list li {
    margin: 0.35rem 0;
}

.contact-page-list a {
    color: var(--bg-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-page-feedback {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.contact-page-feedback.is-success {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.35);
    color: #14532d;
}

.contact-page-feedback.is-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #7f1d1d;
}

.contact-page-form {
    margin-top: 0.25rem;
}

.contact-page-fieldset {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.contact-page-legend {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-page-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

.contact-page-field {
    margin-bottom: 1rem;
}

.contact-page-field label,
.contact-page-legend {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-page-field input,
.contact-page-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
}

.contact-page-field textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.55;
}

.contact-page-field input:focus,
.contact-page-field textarea:focus {
    outline: 2px solid rgba(30, 115, 190, 0.45);
    outline-offset: 1px;
}

.contact-required {
    color: #dc2626;
    font-weight: 700;
}

.contact-page-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-page-actions {
    margin-top: 0.25rem;
}

.contact-page-submit {
    min-height: 44px;
    padding: 0.55rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.contact-page-submit:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

.contact-page-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.78);
}

.contact-page-footer p {
    margin: 0 0 0.65rem;
}

.contact-page-social a {
    color: var(--bg-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 560px) {
    .contact-page-split {
        grid-template-columns: 1fr;
    }
}

body.theme-dark .contact-page-intro,
body.theme-dark .contact-page-title,
body.theme-dark .contact-page-field label,
body.theme-dark .contact-page-legend {
    color: var(--text-dark);
}

body.theme-dark .contact-page-field input,
body.theme-dark .contact-page-field textarea {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
}

body.theme-dark .contact-page-feedback.is-success {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(34, 197, 94, 0.45);
}

body.theme-dark .contact-page-feedback.is-error {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(248, 113, 113, 0.45);
}

body.theme-dark .contact-page-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: var(--muted-text);
}

body.theme-dark .contact-page-submit {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

body.theme-dark .contact-page-submit:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Scroll horizontal uniquement sur la liste des jeux (lien Tendances fixe Ã  gauche). */
.header-secondary .category-menu-nav {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.08);
}

.header-secondary .category-menu-nav::-webkit-scrollbar {
    height: 5px;
}

.header-secondary .category-menu-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.header-secondary .category-menu-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

.header-secondary .category-menu {
    flex-wrap: nowrap;
    overflow-x: visible;
    width: max-content;
    min-width: max-content;
}

.header-secondary .category-menu li {
    flex: 0 0 auto;
}

.header-secondary .category-menu a {
    display: inline-flex;
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.1;
}

.header-tendances-shortcut a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.15rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-light);
    background: transparent;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    opacity: 0.95;
}

.footer-tendances-band {
    background: var(--footer-tendances-bg, var(--header-secondary-bg, #513628));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.footer-tendances-inner {
    max-width: 1600px;
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    padding-inline-end: max(1.5rem, env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    box-sizing: border-box;
}

.footer-tendances-pill.is-title {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.35rem 0.15rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.68rem;
    font-weight: 800;
    background: transparent;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--footer-tendances-text, var(--text-light, #f7f1ea));
    opacity: 0.95;
}

.footer-tendances-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--footer-tendances-text, var(--text-light, #f7f1ea));
    background: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.footer-tendances-nav {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-inline-end: 1rem;
    scroll-padding-inline-end: 1rem;
}

.footer-tendances-menu {
    margin: 0;
    padding: 0;
    padding-inline-end: 0.35rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: visible;
    scrollbar-width: none;
    width: max-content;
    max-width: none;
}

.footer-tendances-menu::-webkit-scrollbar {
    display: none;
}

.footer-tendances-nav::-webkit-scrollbar {
    display: none;
}

.footer-tendances-menu li {
    margin: 0;
    list-style: none;
    flex: 0 0 auto;
}

.footer-tendances-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: var(--footer-tendances-text, var(--text-light, #f7f1ea));
    background: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.1;
}

@media (max-width: 720px) {
    .header-secondary-inner {
        justify-content: flex-start;
    }

    .footer-tendances-inner {
        padding: 0.55rem 1rem;
        padding-inline-end: max(1rem, env(safe-area-inset-right, 0px));
    }
}

.member-og-list {
    display: grid;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
}

.member-og-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 0.6rem;
    border: 1px solid var(--border-color, rgba(20, 89, 130, 0.16));
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-card, #fff);
    color: var(--text-dark, inherit);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.member-og-card-inline {
    margin-top: 0.35rem;
    text-decoration: none;
    color: inherit;
}

.member-og-thumb {
    display: block;
    background: #0c1b33;
}

.member-og-thumb img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.member-og-body {
    padding: 0.6rem 0.65rem;
}

.member-og-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.member-og-body p {
    margin: 0 0 0.45rem;
    color: var(--muted-text, rgba(14, 32, 56, 0.74));
}

.member-og-site {
    font-size: 0.78rem;
    color: var(--muted-text, rgba(14, 32, 56, 0.6));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-og-card.member-og-card--auction {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.member-og-card--auction .member-og-thumb {
    min-height: 120px;
}

.member-og-card--auction .member-og-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    min-width: 0;
}

.member-og-card--auction .member-og-body h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    line-height: 1.3;
    word-break: break-word;
}

.member-og-card--auction .member-og-body p {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    line-height: 1.4;
}

.p4g-auction-feed-card-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bg-blue, #1e73be);
}

.member-og-card--auction .member-og-site {
    margin-top: auto;
}

.member-og-card.member-og-card--article {
    align-items: stretch;
}

.member-og-card--article .member-og-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.75rem;
    background: linear-gradient(145deg, #102845, #1e73be);
}

.p4g-link-preview-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bg-blue, #1e73be);
}

.member-composer-link-preview {
    margin-top: 0.55rem;
}

.member-composer-link-preview[hidden] {
    display: none !important;
}

.member-composer-link-preview-inner .member-og-card {
    pointer-events: none;
}

.member-composer-link-preview-inner .member-og-card--article {
    margin-top: 0;
}

body.theme-dark .member-og-card--article .member-og-thumb--placeholder {
    background: linear-gradient(145deg, #0f172a, #1e3a5f);
}

body.theme-dark .p4g-link-preview-label {
    color: #8fc7ff;
}

.member-feed-card .member-og-list {
    margin-top: 0.5rem;
}

.member-feed-card .member-og-list .member-og-card--auction {
    margin-top: 0;
}

.member-feed-card a.member-og-card.member-og-card--auction {
    position: static;
    text-decoration: none;
    color: inherit;
}

.member-feed-card .member-feed-content + .member-og-list {
    margin-top: 0.5rem;
}

.member-feed-card .member-feed-video,
.member-feed-card .member-feed-video iframe,
.member-feed-card .member-feed-video .wp-block-embed__wrapper {
    max-width: 100%;
    box-sizing: border-box;
}

.member-feed-card .member-feed-video iframe {
    width: 100%;
}

@media (max-width: 760px) {
    .member-og-card.member-og-card--auction {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

body.theme-dark .member-og-card.member-og-card--auction,
body.theme-dark a.member-og-card.member-og-card--auction {
    background: var(--surface-card, #10233f);
    border-color: var(--border-color, #1f3d63);
    color: var(--text-dark, #dbe8ff);
}

body.theme-dark .member-og-card--auction .p4g-auction-feed-card-label {
    color: var(--bg-accent, #6eb3e0);
}

body.theme-dark .member-feed-card a.member-og-card.member-og-card--auction:hover,
body.theme-dark .member-feed-card a.member-og-card.member-og-card--auction:focus-visible {
    color: inherit;
}

.member-public-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.member-public-media-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.member-public-media-card:focus-visible {
    outline: 2px solid rgba(30, 115, 190, 0.55);
    outline-offset: 2px;
}

.member-public-media-card-inner {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
}

.member-public-media-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.member-public-media-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    font-size: 2.25rem;
    color: rgba(20, 89, 130, 0.45);
    background: rgba(20, 89, 130, 0.07);
}

/* Albums mÃ©dias profil (style Facebook) + galerie publications */
.member-fb-media {
    margin-bottom: 1.5rem;
}

.member-fb-media-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(51, 65, 85, 0.95);
    background: rgba(30, 115, 190, 0.08);
    border: 1px solid rgba(30, 115, 190, 0.2);
}

.member-fb-media-hint .fa-circle-info {
    margin-top: 0.15rem;
    color: var(--bg-blue, #1e73be);
}

.member-fb-albums-empty-owner {
    margin: 0 0 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px dashed rgba(148, 163, 184, 0.45);
}

.member-fb-albums-empty-owner-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.member-fb-albums-empty-owner-text {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    color: rgba(71, 85, 105, 0.9);
}

.member-fb-album-create-inline {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.95);
}

.member-fb-album-create-inline-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.member-fb-album-create-inline-lead {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.88);
}

.member-fb-album-create-inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-fb-album-inline-files {
    font-size: 0.88rem;
}

.member-sidebar-link-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #fff !important;
    background: var(--bg-blue, #1e73be);
}

.member-sidebar-link-btn--primary:hover {
    filter: brightness(1.06);
}

.member-fb-albums-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.member-fb-albums-toolbar-title,
.member-media-all-heading {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
}

.member-fb-albums-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 0;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: var(--bg-blue, #1e73be);
    transition: filter 0.15s ease;
}

.member-fb-albums-toolbar-btn:hover {
    filter: brightness(1.06);
}

.member-fb-albums-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
}

.member-fb-album-tile {
    display: flex;
    flex: 0 0 168px;
    width: 168px;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    background: var(--surface-card, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.member-fb-album-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.member-fb-album-tile--create {
    border: 2px dashed rgba(148, 163, 184, 0.65);
    background: var(--surface-card, #fff);
    box-shadow: none;
}

.member-fb-album-tile--create:hover {
    transform: none;
    border-color: #e8a87c;
    box-shadow: 0 2px 10px rgba(232, 168, 124, 0.2);
}

.member-fb-album-cover--create {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f5f8;
}

.member-fb-album-tile--create:hover .member-fb-album-cover--create {
    background: #f8f4f1;
}

.member-fb-album-tile-create-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #e8a87c;
}

.member-fb-album-tile-count--create {
    visibility: hidden;
}

.member-fb-album-tile--create .member-fb-album-tile-create-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8a87c;
    text-align: center;
}

.member-fb-album-tile-create-icon {
    font-size: 2.15rem;
    opacity: 0.85;
}

.member-fb-album-tile-create-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.member-fb-album-cover {
    display: grid;
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    background: #e2e8f0;
}

.member-fb-album-cover--1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.member-fb-album-cover--2 {
    grid-template-columns: 1fr 1fr;
}

.member-fb-album-cover--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.member-fb-album-cover--3 .member-fb-album-cover-cell:first-child {
    grid-row: span 2;
}

.member-fb-album-cover--4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.member-fb-album-cover-cell {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.member-fb-album-cover-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-fb-album-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: rgba(100, 116, 139, 0.45);
}

.member-fb-album-tile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.65rem 0.65rem;
}

.member-fb-album-tile-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    line-height: 1.3;
}

.member-fb-album-tile-count {
    font-size: 0.82rem;
    color: rgba(71, 85, 105, 0.88);
}

.member-fb-albums-empty {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    color: rgba(71, 85, 105, 0.9);
}

.member-fb-album-detail {
    margin-bottom: 1.25rem;
}

.member-fb-album-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.member-fb-album-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(241, 245, 249, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-blue, #1e73be);
    cursor: pointer;
}

.member-fb-album-back:hover {
    background: rgba(30, 115, 190, 0.1);
}

.member-fb-album-detail-titles {
    flex: 1 1 12rem;
    min-width: 0;
}

.member-fb-album-detail-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}

.member-fb-album-detail-sub {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: rgba(71, 85, 105, 0.9);
}

.member-fb-album-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.member-fb-album-add-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.member-fb-album-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: var(--bg-blue, #1e73be);
}

.member-fb-album-add-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.member-fb-album-add-submit {
    padding: 0.45rem 0.85rem;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(30, 115, 190, 0.12);
    color: var(--bg-blue, #1e73be);
}

.member-fb-album-upload-progress {
    flex: 1 1 100%;
    min-width: 200px;
    margin-top: 0.35rem;
}

.member-fb-album-upload-progress[hidden]:not(.is-active) {
    display: none;
}

.member-fb-album-upload-progress.is-active {
    display: block;
}

.member-fb-album-upload-progress-track {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.1);
}

.member-fb-album-upload-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--bg-blue, #1e73be);
    transition: width 0.15s ease;
}

.member-fb-album-upload-progress-text {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.member-fb-album-modal-form .member-fb-album-upload-progress {
    margin-top: 0.75rem;
}

.member-fb-album-delete-link {
    padding: 0.45rem 0.55rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #b91c1c;
    cursor: pointer;
}

.member-fb-album-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 4px;
}

.member-fb-album-photo {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
}

.member-fb-album-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.member-fb-album-photo:hover img {
    transform: scale(1.03);
}

.member-fb-album-photo-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    background: rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.member-fb-album-detail-empty {
    margin: 1rem 0;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.7);
    color: rgba(71, 85, 105, 0.95);
}

.member-fb-album-modal {
    width: min(520px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}

.member-fb-album-view-modal {
    width: min(720px, calc(100vw - 2rem));
}

.member-fb-album-view-modal-head {
    gap: 0.75rem;
}

.member-fb-album-view-modal-titles {
    flex: 1 1 auto;
    min-width: 0;
}

.member-fb-album-view-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.member-fb-album-view-modal-sub {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.9);
}

.member-fb-album-view-modal-body {
    padding: 0.75rem 1.15rem 1.15rem;
}

.member-fb-album-view-modal-body .member-fb-album-photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

@media (min-width: 640px) {
    .member-fb-album-view-modal-body .member-fb-album-photos {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .member-fb-album-view-modal-body .member-fb-album-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }
}

.member-fb-media--compact .member-fb-album-detail {
    display: none !important;
}

.member-fb-album-modal::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.member-fb-album-modal-form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
}

.member-fb-album-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.member-fb-album-modal-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.member-fb-album-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(241, 245, 249, 0.95);
    cursor: pointer;
    font-size: 1.1rem;
}

.member-fb-album-modal-body {
    padding: 1rem 1.15rem;
    overflow-y: auto;
}

.member-fb-album-modal-label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(51, 65, 85, 0.95);
}

.member-fb-album-modal-input {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 8px;
    font-size: 1rem;
}

.member-fb-album-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    border: 2px dashed rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    background: rgba(241, 245, 249, 0.45);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.member-fb-album-dropzone.is-dragover,
.member-fb-album-dropzone:hover {
    border-color: var(--bg-blue, #1e73be);
    background: rgba(30, 115, 190, 0.06);
}

.member-fb-album-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.member-fb-album-dropzone-icon {
    font-size: 2rem;
    color: var(--bg-blue, #1e73be);
}

.member-fb-album-dropzone-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.member-fb-album-dropzone-hint {
    font-size: 0.82rem;
    color: rgba(71, 85, 105, 0.88);
}

.member-fb-album-modal-preview {
    margin-top: 0.75rem;
}

.member-fb-album-modal-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 4px;
}

.member-fb-album-modal-preview-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
}

.member-fb-album-modal-preview-item img,
.member-fb-album-modal-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-fb-album-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

body.theme-dark .member-fb-album-tile {
    background: var(--surface-card, #1e293b);
}

body.theme-dark .member-fb-album-tile-title,
body.theme-dark .member-fb-album-detail-title,
body.theme-dark .member-fb-albums-toolbar-title {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .member-fb-album-modal {
    background: var(--surface-card, #1e293b);
    color: var(--text-light, #e8f1ff);
}

@media (max-width: 600px) {
    .member-fb-albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .member-fb-album-detail-actions {
        width: 100%;
        margin-left: 0;
    }
}

.member-composer-gallery-preview {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.member-composer-gallery-preview.is-visible {
    display: block;
    margin-top: 0.65rem;
}

.member-composer-gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.member-composer-gallery-preview-item,
.member-composer-single-media-preview {
    position: relative;
}

.member-composer-gallery-preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
}

.member-composer-gallery-preview-item.is-uploading {
    opacity: 0.85;
}

.member-composer-gallery-preview-item.has-upload-error {
    outline: 2px solid #dc2626;
}

.member-composer-gallery-upload-status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.2rem 0.35rem;
    font-size: 0.65rem;
    line-height: 1.2;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
}

.member-composer-gallery-upload-status.is-error {
    background: rgba(220, 38, 38, 0.88);
}

.member-composer-gallery-preview-item img,
.member-composer-gallery-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-composer-single-media-preview {
    display: inline-block;
    max-width: 100%;
    margin-top: 0.65rem;
    border-radius: 10px;
    overflow: hidden;
}

.member-composer-single-media-preview img,
.member-composer-single-media-preview video {
    display: block;
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    border-radius: 10px;
}

.member-composer-gallery-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.member-composer-gallery-remove:hover {
    background: rgba(185, 28, 28, 0.92);
}

.member-composer-gallery-remove i {
    font-size: 0.72rem;
    pointer-events: none;
}

.member-feed-gallery {
    margin: 0.65rem 0 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.member-feed-gallery-grid {
    display: grid;
    gap: 3px;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-auto-rows: minmax(110px, auto);
}

.member-feed-gallery-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.member-feed-gallery-grid--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.member-feed-gallery-grid--3 .member-feed-gallery-item:first-child {
    grid-row: span 2;
}

.member-feed-gallery-grid--4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.member-feed-gallery-grid--many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(110px, auto);
}

.member-feed-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: #0f172a;
    cursor: pointer;
    min-height: 110px;
    overflow: hidden;
}

.member-feed-gallery-item img,
.member-feed-gallery-item video {
    width: 100%;
    height: 100%;
    min-height: 110px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    display: block;
}

.member-feed-gallery-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    background: rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.member-feed-gallery-data {
    display: none !important;
}

.member-public-video-card-title {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--text-dark, #334155);
    text-align: left;
}

.member-public-videos-grid .member-public-video-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.member-oauth-resync-form {
    margin: 0.5rem 0 0.35rem;
}

.member-oauth-resync-btn {
    font-size: 0.88rem;
}

.member-social-links-head h2 {
    margin: 0 0 0.35rem;
}

.member-social-links-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(14, 32, 56, 0.72);
}

.member-social-links-grid {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .member-social-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.member-social-link-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-blue, #145982) 3%, #fff);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-social-link-field:focus-within {
    border-color: color-mix(in srgb, var(--bg-blue, #145982) 42%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg-blue, #145982) 12%, transparent);
}

.member-social-link-field label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1f2937;
}

.member-social-link-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.member-social-link-field.is-x .member-social-link-icon {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.member-social-link-field.is-instagram .member-social-link-icon {
    background: rgba(228, 64, 95, 0.12);
    color: #e4405f;
}

.member-social-link-field.is-facebook .member-social-link-icon {
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
}

.member-social-link-field.is-mastodon .member-social-link-icon {
    background: rgba(99, 100, 255, 0.12);
    color: #6364ff;
}

.member-social-link-field.is-bluesky .member-social-link-icon {
    background: rgba(0, 133, 255, 0.12);
    color: #0085ff;
}

.member-social-link-field.is-threads .member-social-link-icon {
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
}

.member-social-link-field.is-snapchat .member-social-link-icon {
    background: rgba(255, 252, 0, 0.35);
    color: #111827;
}

.member-social-link-field.is-tiktok .member-social-link-icon {
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
}

.member-social-link-field.is-youtube .member-social-link-icon {
    background: rgba(255, 0, 0, 0.1);
    color: #dc2626;
}

.member-social-link-field.is-twitch .member-social-link-icon {
    background: rgba(145, 70, 255, 0.12);
    color: #9146ff;
}

.member-social-link-field.is-discord .member-social-link-icon {
    background: rgba(88, 101, 242, 0.12);
    color: #5865f2;
}

.member-social-link-input {
    width: 100%;
    min-height: 40px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(20, 89, 130, 0.16);
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    color: #111827;
    background: #fff;
}

.member-social-link-input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--bg-blue, #145982) 45%, transparent);
}

.member-social-links-actions {
    margin: 1rem 0 0;
}

.member-social-links-submit {
    min-width: min(100%, 320px);
}

.member-social-links-form.member-profile-form button[type="submit"] {
    width: auto;
}

.member-public-media-card-play {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.72rem;
    pointer-events: none;
}

.member-sidebar-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-sidebar-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    font-size: 1.35rem;
    color: rgba(20, 89, 130, 0.5);
    background: rgba(20, 89, 130, 0.08);
}

.member-media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0.75rem;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

.member-media-lightbox:not([open]) {
    display: none;
}

.member-media-lightbox[hidden] {
    display: none !important;
}

.member-media-lightbox::backdrop {
    background: rgba(6, 12, 24, 0.78);
}

.member-media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(6, 12, 24, 0.78);
    cursor: pointer;
}

.member-media-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(96vw, 1080px);
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    background: #0b1220;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.member-media-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.member-media-lightbox-nav:hover,
.member-media-lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.member-media-lightbox-nav[hidden] {
    display: none !important;
}

.member-media-lightbox-prev {
    left: max(0.5rem, env(safe-area-inset-left, 0px));
}

.member-media-lightbox-next {
    right: max(0.5rem, env(safe-area-inset-right, 0px));
}

.member-media-lightbox-counter {
    position: absolute;
    top: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin: 0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
}

.member-media-lightbox-counter[hidden] {
    display: none !important;
}

.member-media-lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.member-media-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.member-media-lightbox-content {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.75rem 0.75rem 1rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.member-media-lightbox-img {
    max-width: 100%;
    max-height: min(85vh, 860px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.member-media-lightbox-video {
    width: 100%;
    max-width: 100%;
    max-height: min(82vh, 800px);
    border-radius: 8px;
    background: #000;
}

.member-media-lightbox-embed {
    width: 100%;
    max-width: 960px;
}

.member-media-lightbox-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: min(52vh, 540px) !important;
    max-height: 82vh !important;
    border: 0;
    border-radius: 8px;
}

.member-media-lightbox-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.member-media-lightbox-media {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: stretch;
}

.member-media-lightbox-panel--split {
    width: min(96vw, 1180px);
    background: #fff;
    color: #0f172a;
}

.member-media-lightbox-panel--split .member-media-lightbox-layout {
    min-height: min(82vh, 760px);
}

.member-media-lightbox-panel--split .member-media-lightbox-media {
    flex: 1 1 62%;
    background: #0b1220;
}

.member-media-lightbox-panel--split .member-media-lightbox-content {
    padding: 2.75rem 1rem 1rem;
}

.member-media-lightbox-panel--split .member-media-lightbox-img {
    max-height: min(76vh, 780px);
}

.member-media-lightbox-panel--split .member-media-lightbox-close {
    color: #fff;
    z-index: 4;
}

.member-media-lightbox-panel--split .member-media-lightbox-counter {
    left: auto;
    right: 3.25rem;
    transform: none;
}

.member-media-lightbox-comments {
    flex: 0 0 min(380px, 38%);
    width: min(380px, 38%);
    min-width: 280px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    color: #0f172a;
    border-left: 1px solid rgba(148, 163, 184, 0.28);
    overflow: hidden;
}

.member-media-lightbox-comments[hidden] {
    display: none !important;
}

.member-media-lightbox-comments-loading,
.member-media-lightbox-comments-error,
.member-media-lightbox-comments-login {
    margin: 0;
    padding: 1rem;
    font-size: 0.88rem;
    color: rgba(71, 85, 105, 0.95);
}

.member-media-lightbox-comments-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.member-media-lightbox-comments-title {
    margin: 0;
    padding: 0.85rem 1rem 0.65rem;
    font-size: 0.95rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.member-media-lightbox-comments-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.65rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.member-media-lightbox-comments-scroll .member-comments-list {
    margin: 0;
}

.member-media-lightbox-comments-inner .member-media-lightbox-comment-form,
.member-media-lightbox-comments-inner .member-comment-form {
    margin-top: auto;
    padding: 0.65rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: #fff;
}

body.theme-dark .member-media-lightbox-panel--split {
    background: #0f172a;
    color: #e2e8f0;
}

body.theme-dark .member-media-lightbox-comments {
    background: #111827;
    color: #e2e8f0;
    border-left-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .member-media-lightbox-comments-title,
body.theme-dark .member-media-lightbox-comments-inner .member-media-lightbox-comment-form,
body.theme-dark .member-media-lightbox-comments-inner .member-comment-form {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 860px) {
    .member-media-lightbox-panel--split {
        width: min(100vw, 100%);
        max-height: min(96vh, 900px);
    }

    .member-media-lightbox-panel--split .member-media-lightbox-layout {
        flex-direction: column;
        min-height: min(92vh, 900px);
    }

    .member-media-lightbox-panel--split .member-media-lightbox-media {
        flex: 0 0 auto;
        max-height: 52vh;
    }

    .member-media-lightbox-comments {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        border-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.28);
    }

    .member-media-lightbox-panel--split .member-media-lightbox-img {
        max-height: min(46vh, 520px);
    }
}

.member-auth-linkline {
    margin: 0.35rem 0 0;
}

.member-auth-linkline a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bg-blue);
}

.member-auth-linkline a:hover {
    text-decoration: underline;
}

.member-privacy-requests {
    margin-top: 1.25rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-blue, #145982) 4%, #fff);
}

.member-privacy-requests-head h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.member-privacy-requests-head p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(14, 32, 56, 0.72);
}

.member-privacy-requests-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .member-privacy-requests-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.member-privacy-request-form {
    margin: 0;
}

.member-privacy-request-btn {
    width: 100%;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.member-privacy-request-btn i {
    flex-shrink: 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

.member-privacy-request-btn--export {
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--bg-blue, #145982) 28%, transparent);
    color: var(--bg-blue, #145982);
}

.member-privacy-request-btn--export:hover,
.member-privacy-request-btn--export:focus-visible {
    background: color-mix(in srgb, var(--bg-blue, #145982) 8%, #fff);
    border-color: var(--bg-blue, #145982);
    color: var(--bg-blue, #145982);
    box-shadow: 0 4px 14px rgba(20, 89, 130, 0.12);
}

.member-privacy-request-btn--delete {
    background: #b91c1c;
    border: 1px solid #991b1b;
    color: #fff;
}

.member-privacy-request-btn--delete:hover,
.member-privacy-request-btn--delete:focus-visible {
    background: #991b1b;
    border-color: #7f1d1d;
    color: #fff;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.22);
}

.member-privacy-request-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--bg-blue, #145982) 40%, transparent);
    outline-offset: 2px;
}

.member-privacy-request-btn--delete:focus-visible {
    outline-color: rgba(185, 28, 28, 0.45);
}

.member-lost-card {
    margin-top: 1rem;
}

.member-space-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Profil dans le header : lien circulaire = mÃªme gabarit que cloche / recherche (Ã©vite la Â« pilule Â» autour de lâ€™avatar). */
.header-topbar .member-space-link.member-space-link-profile {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.header-topbar .member-space-link-profile .member-space-profile-text {
    display: none;
}

.header-topbar .member-space-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-topbar .member-space-avatar img {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.member-space-link-profile {
    width: auto;
    height: 44px;
    border-radius: 999px;
    padding: 0 0.65rem 0 0.28rem;
    gap: 0.45rem;
    text-decoration: none;
}

.member-space-profile-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 160px;
}

.member-profile-menu {
    position: relative;
    padding-bottom: 6px;
    margin-bottom: -6px;
    overflow: visible;
}

.member-space-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.member-space-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.member-space-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-profile-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--bg-dark);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    display: none;
    z-index: 120;
}

.member-profile-submenu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.member-profile-submenu li {
    margin: 0;
}

.member-profile-submenu a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.member-profile-submenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    flex-shrink: 0;
    font-size: 0.88rem;
    color: color-mix(in srgb, var(--text-light) 70%, var(--bg-blue));
    transition: color 0.15s ease;
}

.member-profile-submenu a span {
    min-width: 0;
}

.member-profile-submenu a:hover,
.member-profile-submenu a:focus-visible {
    background: color-mix(in srgb, var(--bg-blue) 16%, transparent);
    color: var(--bg-blue);
}

.member-profile-submenu a:hover .member-profile-submenu-icon,
.member-profile-submenu a:focus-visible .member-profile-submenu-icon {
    color: var(--bg-blue);
}

.member-profile-menu:hover .member-profile-submenu,
.member-profile-menu:focus-within .member-profile-submenu {
    display: block;
}

.drawer-member-menu {
    margin-bottom: 0.35rem;
}

.drawer-member-menu > li > a {
    font-weight: 700;
}

@media (max-width: 760px) {
    .member-auth-grid {
        grid-template-columns: 1fr;
    }

    .member-messages-layout {
        grid-template-columns: 1fr;
    }

    .member-about-consoles-grid {
        grid-template-columns: 1fr;
    }

    .member-profile-head {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .member-friends-network {
        grid-template-columns: 1fr;
    }

    .member-friends-birthday-list {
        grid-template-columns: 1fr;
    }

    .member-public-posts-grid {
        grid-template-columns: 1fr;
    }

    .member-article-teaser {
        grid-template-columns: 1fr;
    }

    .member-article-teaser-media {
        order: -1;
    }

    .member-articles-list--in-profile .member-article-teaser {
        grid-template-columns: minmax(0, 1fr) minmax(100px, 34vw);
        gap: 0.65rem 0.75rem;
    }

    .member-articles-list--in-profile .member-article-teaser-media {
        order: 0;
    }

    .member-article-teaser-img,
    .member-article-teaser-placeholder {
        max-height: 200px;
    }

    .member-articles-list--in-profile .member-article-teaser-img,
    .member-articles-list--in-profile .member-article-teaser-placeholder {
        max-height: none;
    }

    .member-stream-schedule-slot {
        flex-wrap: nowrap;
        gap: 0.65rem;
    }

    .member-stream-schedule-slot-cover {
        width: clamp(4.75rem, 28vw, 6.25rem);
    }

    .member-stream-schedule-game-cover,
    .member-stream-schedule-game-cover-img,
    .member-stream-schedule-game-cover-fallback {
        min-height: 5.75rem;
    }

    .member-public-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-og-card:not(.member-og-card--auction):not(.member-og-card--event) {
        grid-template-columns: 1fr;
    }

    .member-profile-submenu {
        right: 0;
        left: auto;
        min-width: 210px;
        max-width: min(240px, calc(100vw - 1rem));
        box-sizing: border-box;
    }

    .member-profile-submenu a span {
        white-space: nowrap;
    }
}

/* Game pages responsive polish */
@media (max-width: 900px) {
    .game-sheet-hero-inner,
    .game-sheet-overview-inner,
    .game-sheet-news-inner,
    .game-sheet-reviews .game-term-reviews-inner,
    .game-sheet-media .game-term-media-inner {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .game-sheet-banner {
        padding: 1rem;
        grid-template-columns: 112px 1fr;
        gap: 0.9rem;
    }

    .game-sheet-banner-cover {
        max-width: 112px;
    }

    .game-sheet-pegi-badge {
        width: 56px;
        height: 72px;
        top: 10px;
        right: 10px;
    }

    .game-collection-panel,
    .game-collection-form {
        max-width: 100%;
    }

    .game-sheet-meta-row {
        gap: 0.7rem;
    }

    .game-directory-filter {
        gap: 0.45rem;
        margin-top: 1rem;
    }

    .filter-link {
        min-width: 38px;
        padding: 0.45rem 0.7rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 640px) {
    .game-sheet-banner {
        grid-template-columns: 1fr;
    }

    .game-sheet-banner-cover {
        max-width: 150px;
    }

    .game-sheet-banner-platforms {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .game-sheet-banner-platforms__main {
        flex: 1 1 auto;
        min-width: 0;
    }

    .game-sheet-banner-platforms__main .game-sheet-platform-icons {
        justify-content: flex-start;
    }

    .game-sheet-banner-platforms__subscriptions {
        margin-left: auto;
        flex-shrink: 0;
    }

    .game-sheet-nav-bar {
        flex-direction: column;
    }

    .game-sheet-nav-side {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .game-sheet-collection-social {
        min-height: 44px;
        padding: 0.24rem 0.5rem 0.24rem 0.55rem;
    }

    .game-sheet-collection-social-caption {
        display: none;
    }

    .game-sheet-nav-actions {
        justify-content: flex-end;
    }

    .game-sheet-collection-trigger,
    .game-sheet-hype-trigger {
        min-width: 44px;
        min-height: 44px;
    }

    .game-collection-modal__platform-grid {
        grid-template-columns: 1fr;
    }

    .game-sheet-anchor-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.32rem;
    }

    .game-sheet-tab-link {
        white-space: nowrap;
        min-width: max-content;
        font-size: 0.78rem;
        padding: 0.42rem 0.62rem;
    }

    .game-sheet-meta-row {
        grid-template-columns: 1fr;
        gap: 0.14rem;
    }

    .game-sheet-meta-row span,
    .game-sheet-meta-row strong {
        text-align: left;
    }

    .home-releases-track {
        grid-auto-columns: 96px;
        gap: 0.55rem;
    }

    .releases-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .release-page-content {
        padding: 0.55rem;
    }

    .release-page-content h2,
    .release-page-content h3 {
        font-size: 0.86rem;
    }

    .game-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.68rem;
    }

    .game-directory-card h2 {
        font-size: 0.9rem;
    }

    .game-community-track {
        grid-auto-columns: calc((100% - (2 * 0.65rem)) / 3);
    }
}

@media (max-width: 420px) {
    .home-releases-track {
        grid-auto-columns: 88px;
    }

    .releases-page-grid {
        grid-template-columns: 1fr;
    }

    .game-directory-grid,
    .member-collection-grid {
        grid-template-columns: 1fr;
    }

    .game-collection-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Front page dark mode text contrast fixes */
body.theme-dark .recent-articles-heading h2,
body.theme-dark .recent-articles-heading .recent-heading-cta,
body.theme-dark .home-releases-head h2,
body.theme-dark .game-community-head h2,
body.theme-dark .home-release-card h3,
body.theme-dark .home-releases-month-title,
body.theme-dark .releases-month-title,
body.theme-dark .game-community-card h3,
body.theme-dark .home-critique-body h3 a,
body.theme-dark .home-critique-title a,
body.theme-dark .home-critique-head h2,
body.theme-dark .home-critique-more-link,
body.theme-dark .home-critique-detail-line,
body.theme-dark .home-critique-meta-pills span,
body.theme-dark .home-critique-meta,
body.theme-dark .home-critique-tags li,
body.theme-dark .home-critique-stats.post-meta,
body.theme-dark .home-critique-stats.post-meta span,
body.theme-dark .home-critique-stat,
body.theme-dark .home-critique-empty {
    color: #dbe8ff;
}

body.theme-dark .recent-articles-heading .recent-heading-cta:hover,
body.theme-dark .home-release-card-link:hover h3,
body.theme-dark .game-community-card a:hover h3,
body.theme-dark .home-critique-body h3 a:hover,
body.theme-dark .home-critique-title a:hover {
    color: #ffffff;
}

body.theme-dark .home-release-card-date .home-release-day,
body.theme-dark .release-page-day {
    color: #8fc7ff;
}

body.theme-dark .release-page-dow {
    color: #b8cce8;
}

body.theme-dark .releases-page-period {
    color: #c5d9f5;
}

body.theme-dark .releases-month-head,
body.theme-dark .home-releases-month-head {
    border-bottom-color: rgba(77, 163, 255, 0.35);
}

@media (min-width: 960px) {
    body.theme-dark .releases-month-nav {
        background: rgba(15, 23, 42, 0.72);
        border-color: rgba(77, 163, 255, 0.22);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    }
}

body.theme-dark .releases-month-panel {
    background: var(--surface-card);
    border-color: var(--border-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

body.theme-dark .releases-month-nav-link {
    color: #dbe8ff;
    border-color: rgba(77, 163, 255, 0.22);
    background: rgba(15, 23, 42, 0.4);
}

body.theme-dark .releases-month-nav-link:hover,
body.theme-dark .releases-month-nav-link:focus-visible {
    color: #ffffff;
    background: rgba(77, 163, 255, 0.22);
    border-color: rgba(77, 163, 255, 0.45);
}

body.theme-dark .release-page-date--muted {
    color: #9fb5d3;
}

body.theme-dark .recent-articles-head-line,
body.theme-dark .home-releases-head-line {
    background: #4da3ff;
}

body.theme-dark .home-releases-inner,
body.theme-dark .game-community-inner {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .sidebar-collection-widget {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .sidebar-collection-meta {
    color: #9fb5d3;
}

body.theme-dark .sidebar-collection-avatar {
    border-color: rgba(15, 23, 42, 0.9);
}

body.theme-dark .home-release-card p,
body.theme-dark .home-release-card-date,
body.theme-dark .home-releases-month-badge,
body.theme-dark .releases-month-sub,
body.theme-dark .releases-month-nav-title,
body.theme-dark .releases-month-nav-link,
body.theme-dark .game-community-meta,
body.theme-dark .game-community-subline,
body.theme-dark .game-community-card p,
body.theme-dark .home-release-empty,
body.theme-dark .home-critique-body p,
body.theme-dark .home-critique-excerpt {
    color: #9fb5d3;
}

body.theme-dark .game-community-recent-label {
    color: #8fc7ff;
}

body.theme-dark .home-releases-nav-btn {
    color: #bdd5f5;
}

body.theme-dark .home-releases-nav-btn:hover {
    background: rgba(77, 163, 255, 0.16);
    color: #ffffff;
}

body.theme-dark .news-section .post-read-more {
    color: #8fc7ff !important;
}

body.theme-dark .news-section .post-read-more:hover {
    color: #ffffff !important;
}

/* Single article dark mode polish */
body.theme-dark.single-post .single-article-page,
body.theme-dark.single-post .single-article {
    color: #dbe8ff;
}

body.theme-dark.single-post .article-breadcrumb,
body.theme-dark.single-post .single-article-header,
body.theme-dark.single-post .article-meta-bar,
body.theme-dark.single-post .single-article-content,
body.theme-dark.single-post .article-internal-links,
body.theme-dark.single-post .related-articles,
body.theme-dark.single-post .article-author-box,
body.theme-dark.single-post .article-rating-section,
body.theme-dark.single-post .article-navigation,
body.theme-dark.single-post .nav-previous,
body.theme-dark.single-post .nav-next {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark.single-post .breadcrumb-item,
body.theme-dark.single-post .single-article-excerpt,
body.theme-dark.single-post .article-stats,
body.theme-dark.single-post .author-name,
body.theme-dark.single-post .stat-item,
body.theme-dark.single-post .stat-separator,
body.theme-dark.single-post .single-article-content p,
body.theme-dark.single-post .single-article-content li,
body.theme-dark.single-post .related-articles-subtitle,
body.theme-dark.single-post .related-card-excerpt,
body.theme-dark.single-post .related-card-date,
body.theme-dark.single-post .article-author-kicker,
body.theme-dark.single-post .article-author-content p,
body.theme-dark.single-post .nav-arrow,
body.theme-dark.single-post .rating-subtitle {
    color: #9fb5d3;
}

body.theme-dark.single-post .single-article-title,
body.theme-dark.single-post .author-name a,
body.theme-dark.single-post .single-article-content h2,
body.theme-dark.single-post .single-article-content h3,
body.theme-dark.single-post .single-article-content h4,
body.theme-dark.single-post .article-internal-links h2,
body.theme-dark.single-post .related-articles-header h2,
body.theme-dark.single-post .related-card-body h3,
body.theme-dark.single-post .related-card-body h3 a,
body.theme-dark.single-post .article-author-content h3,
body.theme-dark.single-post .rating-title,
body.theme-dark.single-post .article-navigation a {
    color: #eaf3ff;
}

body.theme-dark.single-post .smiley-label {
    color: var(--text-dark, #dbe8ff);
}

body.theme-dark.single-post .smiley-count {
    color: var(--bg-blue);
}

body.theme-dark.single-post .smiley-btn.active .smiley-label,
body.theme-dark.single-post .smiley-btn.active .smiley-count {
    color: rgba(255, 255, 255, 0.95);
}

body.theme-dark.single-post .single-article-content blockquote {
    background: #0f2745;
    border-left-color: #4da3ff;
}

body.theme-dark.single-post .single-article-content code {
    background: #0f2745;
    color: #d9e9ff;
}

body.theme-dark.single-post .single-article-content pre {
    background: #08172b;
    color: #d9e9ff;
    border: 1px solid #1f3d63;
}

body.theme-dark.single-post .article-internal-link {
    background: #0f2745;
    color: #dbe8ff;
    border-color: #2a4f7a;
}

body.theme-dark.single-post .related-card {
    background: #10233f;
    border: 1px solid rgba(77, 163, 255, 0.18);
    box-shadow: 0 10px 26px rgba(2, 8, 20, 0.35);
}

body.theme-dark.single-post .related-card-footer {
    border-top-color: rgba(77, 163, 255, 0.2);
}

body.theme-dark.single-post .related-card {
    background: var(--surface-card);
    border-color: var(--border-color);
}

body.theme-dark.single-post .related-card-read {
    background: rgba(77, 163, 255, 0.14);
    color: #8fc7ff;
}

body.theme-dark.single-post .related-card-read:hover {
    background: var(--bg-blue);
    color: #fff;
}

body.theme-dark.single-post .author-name a {
    color: var(--link-color);
}

body.theme-dark.single-post .author-name a:hover {
    color: var(--link-hover-color);
}

body.theme-dark.single-post .share-icon {
    background: var(--surface-card);
    color: var(--text-dark);
    border-color: var(--border-color);
}

body.theme-dark.single-post .share-icon:hover {
    border-color: var(--link-color);
    color: var(--link-color);
}

body.theme-dark.single-post .author-avatar {
    background: var(--surface-card);
}

.back-to-top-btn {
    position: fixed;
    right: 18px;
    bottom: 84px;
    width: 64px;
    height: 64px;
    border: 1px solid color-mix(in srgb, var(--button-bg, var(--bg-blue)) 35%, transparent);
    border-radius: 999px;
    background: var(--button-bg, var(--bg-blue));
    color: var(--button-text, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--button-bg, var(--bg-blue)) 38%, transparent);
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.back-to-top-btn i {
    font-size: 1.28rem;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--button-hover-bg, var(--bg-accent));
    border-color: color-mix(in srgb, var(--button-hover-bg, var(--bg-accent)) 40%, transparent);
}

@media (max-width: 640px) {
    .back-to-top-btn {
        width: 54px;
        height: 54px;
        right: 12px;
        bottom: 72px;
    }
}

/* Keep reCAPTCHA visible but less intrusive near floating actions. */
.grecaptcha-badge {
    bottom: 10px !important;
    right: 10px !important;
    z-index: 9997;
    transform: scale(0.92);
    transform-origin: right bottom;
}

/* Review front layout refresh */
.pro-reviews-page {
    max-width: 1320px;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.pro-reviews-hero {
    border-radius: 18px;
    padding: 1.3rem 1.35rem;
    gap: 1.2rem;
    box-shadow: 0 18px 36px rgba(7, 18, 34, 0.2);
}

.pro-review-featured {
    border-radius: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0;
    box-shadow: 0 16px 34px rgba(7, 18, 34, 0.12);
    position: relative;
}

.pro-review-featured-thumb {
    min-height: 0;
}

.pro-review-featured-body {
    padding: 1.2rem 1.25rem;
    padding-right: 2.85rem;
}

.pro-review-featured-body h2 {
    font-size: clamp(1.22rem, 1.8vw, 1.72rem);
    line-height: 1.18;
}

.pro-review-featured-body p {
    line-height: 1.65;
}

.pro-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pro-review-card {
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.09);
    box-shadow: 0 12px 24px rgba(7, 18, 34, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

.pro-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(7, 18, 34, 0.14);
}

/* .pro-review-thumb : banniÃ¨re sur pages dÃ©diÃ©es ; l'archive utilise .pro-review-thumb-link */

.pro-review-body {
    padding: 0.95rem 1rem 1rem;
}

.pro-review-body h2 {
    font-size: 1.08rem;
    line-height: 1.33;
}

.pro-review-link {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.single-review-page {
    max-width: 1240px;
    padding: 1.3rem 1rem 2.8rem;
}

.single-review-layout {
    gap: 1.1rem;
}

.single-review-hero {
    border-radius: 22px;
    padding: 1.35rem;
}

.single-review-rating {
    min-height: 108px;
}

.single-review-rating-value {
    font-size: 2rem;
}

.single-review-meta span {
    font-weight: 600;
}

.single-review-highlights {
    gap: 0.55rem;
}

.single-review-main-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 1.1rem;
}

.single-review-content {
    border-radius: 18px;
    padding: 1.55rem;
    line-height: 1.78;
}

.single-review-summary {
    border-radius: 18px;
    padding: 1.1rem;
}

body.theme-dark .pro-review-featured,
body.theme-dark .pro-review-card,
body.theme-dark .pro-reviews-pagination a,
body.theme-dark .pro-reviews-pagination span {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .blog-pagination .page-numbers,
body.theme-dark .category-mag-pagination .page-numbers,
body.theme-dark .search-pagination .page-numbers {
    background: var(--surface-panel);
    border-color: var(--border-color);
    color: #dbe8ff;
}

body.theme-dark .pro-review-featured-label {
    background: rgba(77, 163, 255, 0.2);
    color: #dbe8ff;
}

body.theme-dark .pro-review-featured-body p,
body.theme-dark .pro-review-platform,
body.theme-dark .pro-review-meta {
    color: #9fb5d3;
}

body.theme-dark .pro-review-featured-body h2 a,
body.theme-dark .pro-review-link {
    color: #e8f3ff;
}

body.theme-dark .pro-review-link:hover {
    color: #9fcfff;
}

@media (max-width: 1024px) {
    .pro-review-featured {
        grid-template-columns: 1fr;
    }

    .pro-review-featured-media {
        display: flex;
        justify-content: center;
    }

    .single-review-main-grid {
        grid-template-columns: 1fr;
    }

    .single-review-summary {
        position: static;
    }
}

@media (max-width: 680px) {
    .pro-reviews-grid {
        grid-template-columns: 1fr;
    }

    .single-review-hero {
        grid-template-columns: 1fr;
    }
}

/* Single review conclusion block (magazine style) */
.single-review-conclusion {
    border: 1px solid rgba(20, 89, 130, 0.16);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.single-review-conclusion > h2 {
    margin: 0;
    padding: 1.2rem 1.35rem;
    font-size: 2rem;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.single-review-conclusion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
}

.single-review-conclusion-col {
    padding: 1rem 1.35rem 1.15rem;
}

.single-review-conclusion-col + .single-review-conclusion-col {
    border-left: 1px solid #e5e7eb;
}

.single-review-conclusion-col h3 {
    margin: 0 0 0.8rem;
    font-size: 1.1rem;
}

.single-review-conclusion-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.single-review-conclusion-col li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0.55rem;
    align-items: start;
    font-size: 1rem;
    line-height: 1.4;
}

.single-review-conclusion-col.is-pros li i {
    color: #4caf50;
    margin-top: 0.18rem;
}

.single-review-conclusion-col.is-cons li i {
    color: #e53935;
    margin-top: 0.18rem;
}

.single-review-editor-note {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid #e5e7eb;
}

.single-review-editor-note h3 {
    margin: 0 0 0.7rem;
    font-size: 1.95rem;
}

.single-review-editor-score-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.single-review-editor-score-ring {
    --score: 0;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#ff4d00 calc(var(--score) * 1%), #e5e7eb 0);
    position: relative;
}

.single-review-editor-score-ring::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: #fff;
}

.single-review-editor-score-ring strong {
    position: relative;
    z-index: 1;
    font-size: 1.85rem;
    color: #1f2937;
}

.single-review-editor-text {
    margin: 0;
    padding-top: 0.8rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1.03rem;
    line-height: 1.75;
}

.single-review-reader-note {
    padding: 1rem 1.35rem;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 0.8rem;
    align-items: center;
}

.single-review-reader-score-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 6px solid #5b6d84;
    border-right-color: #e5e7eb;
    border-bottom-color: #e5e7eb;
    display: grid;
    place-items: center;
    color: #2b3d54;
}

.single-review-reader-score-ring strong {
    font-size: 1.95rem;
}

.single-review-reader-note h4 {
    margin: 0;
    font-size: 1.8rem;
}

.single-review-reader-note a {
    display: inline-block;
    margin-top: 0.2rem;
    font-weight: 700;
    color: var(--bg-blue);
}

.single-review-reader-note p {
    margin: 0.22rem 0 0;
    color: #51647c;
}

body.theme-dark .single-review-conclusion {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .single-review-conclusion > h2,
body.theme-dark .single-review-conclusion-grid,
body.theme-dark .single-review-conclusion-col + .single-review-conclusion-col,
body.theme-dark .single-review-editor-note,
body.theme-dark .single-review-editor-text {
    border-color: rgba(159, 181, 211, 0.22);
}

body.theme-dark .single-review-conclusion > h2,
body.theme-dark .single-review-conclusion-col h3,
body.theme-dark .single-review-reader-note h4 {
    color: #eaf3ff;
}

body.theme-dark .single-review-conclusion-col li,
body.theme-dark .single-review-editor-text {
    color: #bdd5f5;
}

body.theme-dark .single-review-editor-score-ring::after {
    background: #0d2039;
}

body.theme-dark .single-review-editor-score-ring strong,
body.theme-dark .single-review-reader-score-ring {
    color: #eaf3ff;
}

body.theme-dark .single-review-reader-score-ring {
    border-color: #7389a8;
    border-right-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

body.theme-dark .single-review-reader-note p {
    color: #9fb5d3;
}

@media (max-width: 860px) {
    .single-review-conclusion-grid {
        grid-template-columns: 1fr;
    }

    .single-review-conclusion-col + .single-review-conclusion-col {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
    }

    body.theme-dark .single-review-conclusion-col + .single-review-conclusion-col {
        border-top-color: rgba(159, 181, 211, 0.22);
    }

    .single-review-reader-note {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

/* Community page */
.community-page {
    max-width: 1560px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 300px);
    gap: 1rem;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.community-left {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
}

.community-main {
    min-width: 0;
}

.community-sidebar {
    --community-sidebar-top: calc(var(--p4g-sticky-site-header-height, 8.5rem) + 0.75rem);
    position: sticky;
    top: var(--community-sidebar-top);
    align-self: start;
    min-width: 0;
    z-index: 5;
}

.community-sidebar--member {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

.community-sidebar--tools {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
}

.community-page .member-public-card {
    margin-bottom: 1rem;
}

.community-search-card h3,
.community-keywords-card h3,
.community-collection-card h3,
.community-friends-card h3,
.community-media-card h3,
.community-achievements-card h3,
.community-comments-card h3,
.community-online-card h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.community-media-card-title-link {
    color: inherit;
    text-decoration: none;
}

.community-media-card-title-link:hover,
.community-media-card-title-link:focus-visible {
    color: var(--bg-blue, #1e73be);
    text-decoration: underline;
}

.community-friends-count {
    display: inline-flex;
    align-items: center;
    margin-left: 0.45rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(20, 89, 130, 0.12);
    color: var(--bg-accent);
    font-size: 0.78rem;
    font-weight: 700;
    vertical-align: middle;
}

body.theme-dark .community-friends-count {
    background: rgba(148, 163, 184, 0.16);
    color: #8fc7ff;
}

.community-search-form {
    margin: 0;
}

.community-search-field {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.community-search-field input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid rgba(20, 89, 130, 0.22);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font-size: 0.86rem;
    background: rgba(255, 255, 255, 0.92);
    color: inherit;
}

.community-search-field input[type="search"]:focus {
    outline: none;
    border-color: rgba(20, 89, 130, 0.45);
    box-shadow: 0 0 0 2px rgba(20, 89, 130, 0.12);
}

.community-search-submit {
    flex: 0 0 auto;
    width: 2.5rem;
    border: 0;
    border-radius: 10px;
    background: var(--header-topbar-bg, var(--header-secondary-bg, var(--button-bg, var(--bg-blue))));
    color: var(--button-text, var(--text-light));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}

.community-search-submit:hover,
.community-search-submit:focus-visible {
    background: color-mix(in srgb, var(--header-topbar-bg, var(--header-secondary-bg, var(--button-bg, var(--bg-blue)))) 84%, #000);
    color: var(--button-text, var(--text-light));
}

.community-search-keywords {
    margin-top: 0.75rem;
}

.community-search-keywords-label {
    margin: 0 0 0.45rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-text);
}

.community-keyword-cloud--compact {
    gap: 0.35rem;
}

.community-search-banner {
    margin-bottom: 1rem;
}

.community-search-banner p {
    margin: 0;
    font-size: 0.92rem;
}

.community-member-card {
    padding: 0;
    overflow: hidden;
}

.community-member-banner {
    position: relative;
    height: 92px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 89, 130, 0.35), rgba(124, 58, 237, 0.28));
}

.community-member-banner img,
.community-member-banner video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-member-body {
    padding: 0 0.9rem 1rem;
    position: relative;
    z-index: 1;
}

.community-member-card .community-member-head {
    margin-bottom: 0.85rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.community-member-card:has(.community-member-banner) .community-member-avatar {
    margin-top: -2.45rem;
}

.community-member-card .community-member-avatar {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.community-member-card .community-member-meta {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.15rem;
}

.community-member-card .community-member-avatar img {
    display: block;
    width: 72px;
    height: 72px;
    border: 3px solid var(--surface-card, #fff);
    box-shadow: 0 4px 14px rgba(14, 32, 56, 0.14);
}

.community-member-card:not(:has(.community-member-banner)) .community-member-body {
    padding-top: 0.85rem;
}

.community-member-card:not(:has(.community-member-banner)) .community-member-head {
    align-items: center;
}

.community-member-card:not(:has(.community-member-banner)) .community-member-avatar {
    margin-top: 0;
}

.community-member-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.community-member-avatar img {
    border-radius: 999px;
}

.community-member-head strong {
    display: block;
}

.community-member-head p {
    margin: 0.15rem 0 0;
    color: var(--muted-text);
    font-size: 0.86rem;
}

.community-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-member-card .community-sidebar-actions {
    padding-top: 0.15rem;
}

.community-page .community-member-card .btn.community-settings-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--header-topbar-bg, var(--header-secondary-bg, var(--button-bg, var(--bg-blue))));
    color: var(--button-text, var(--text-light));
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.community-page .community-member-card .btn.community-settings-btn:hover,
.community-page .community-member-card .btn.community-settings-btn:focus-visible {
    background: color-mix(in srgb, var(--header-topbar-bg, var(--header-secondary-bg, var(--button-bg, var(--bg-blue)))) 84%, #000);
    color: var(--button-text, var(--text-light));
}

.community-page .member-feed-card {
    scroll-margin-top: 84px;
}

/* Fil communauté / profil — fond texte coloré contenu dans la carte du post */
.community-page .member-feed-card > .member-feed-text-bg,
.member-public-feed-area .member-feed-card > .member-feed-text-bg {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    min-height: clamp(180px, 30vw, 260px);
    background-clip: padding-box;
}

.community-page .member-feed-card > .member-feed-text-bg .member-feed-content--text-bg,
.community-page .member-feed-card > .member-feed-text-bg .member-feed-content--text-bg p,
.member-public-feed-area .member-feed-card > .member-feed-text-bg .member-feed-content--text-bg,
.member-public-feed-area .member-feed-card > .member-feed-text-bg .member-feed-content--text-bg p {
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    text-align: center;
}

.community-keyword-banner {
    margin-bottom: 1rem;
}

.community-keyword-banner p {
    margin: 0;
    font-size: 0.92rem;
}

.community-keywords-card h3 {
    margin: 0 0 0.75rem;
}

.community-keyword-cloud {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.community-keyword-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(20, 89, 130, 0.2);
    background: rgba(246, 250, 255, 0.95);
    color: rgba(91, 33, 182, 0.95);
}

.community-keyword-pill:hover {
    border-color: rgba(124, 58, 237, 0.45);
    color: rgba(76, 29, 149, 1);
}

.community-keyword-pill.is-current {
    border-color: rgba(124, 58, 237, 0.55);
    background: rgba(237, 233, 254, 0.9);
}

.community-keyword-count {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.75;
}

.community-keywords-empty {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted-text);
}

.community-collection-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.community-collection-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 0.35rem;
    transition: background 0.15s ease;
}

.community-collection-link:hover,
.community-collection-link:focus-visible {
    background: rgba(20, 89, 130, 0.06);
}

.community-collection-cover {
    flex: 0 0 auto;
    width: 48px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-collection-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-collection-cover-fallback {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.1rem;
}

.community-collection-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.community-collection-meta strong {
    font-size: 0.82rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.community-collection-meta > span {
    font-size: 0.72rem;
    color: var(--muted-text);
}

.community-collection-empty {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted-text);
}

.community-comments-card .sidebar-recent-comments-list {
    margin: 0;
}

.community-comments-card .sidebar-recent-comments-link {
    padding: 0.45rem 0;
}

.community-comments-card .sidebar-recent-comments-avatar {
    width: 40px;
    height: 40px;
}

.community-comments-card .sidebar-recent-comments-avatar-img,
.community-comments-card .sidebar-recent-comments-avatar .avatar {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.community-comments-empty {
    margin: 0;
}

.community-friends-avatars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.community-friends-avatars li {
    flex: 0 0 auto;
}

.community-friends-avatars a {
    display: block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    line-height: 0;
    transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.community-friends-avatars a:hover,
.community-friends-avatars a:focus-visible {
    box-shadow: 0 0 0 2px rgba(20, 89, 130, 0.45);
    transform: translateY(-1px);
}

.community-friends-avatars img {
    display: block;
    width: 44px;
    height: 44px;
    max-width: none;
    object-fit: cover;
    border-radius: 50%;
}

.community-friends-empty {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted-text);
}

.community-media-card .member-fb-media {
    margin-bottom: 0.75rem;
}

.community-media-profile-link {
    margin: 0;
    font-size: 0.82rem;
    text-align: center;
}

.community-media-profile-link a {
    color: var(--bg-blue, #1e73be);
    text-decoration: none;
}

.community-media-profile-link a:hover,
.community-media-profile-link a:focus-visible {
    text-decoration: underline;
}

.community-achievements-summary {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: var(--muted-text);
}

.community-achievements-empty {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    color: var(--muted-text);
}

.community-achievements-grid {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.community-achievement-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 0.2rem;
    transition: background 0.12s ease, transform 0.12s ease;
}

.community-achievement-badge:hover,
.community-achievement-badge:focus-visible {
    background: rgba(20, 89, 130, 0.08);
    transform: translateY(-1px);
}

.community-achievement-badge img,
.community-achievement-badge-fallback {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(20, 89, 130, 0.12);
    background: rgba(241, 245, 249, 0.9);
}

.community-achievement-badge-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: rgba(100, 116, 139, 0.72);
}

.community-achievement-badge-title {
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.community-achievements-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    text-align: center;
}

.community-achievements-links a {
    color: var(--bg-blue, #1e73be);
    text-decoration: none;
}

.community-achievements-links a:hover,
.community-achievements-links a:focus-visible {
    text-decoration: underline;
}

body.theme-dark .community-achievement-badge img,
body.theme-dark .community-achievement-badge-fallback {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(159, 181, 211, 0.16);
}

body.theme-dark .community-achievement-badge:hover,
body.theme-dark .community-achievement-badge:focus-visible {
    background: rgba(59, 130, 246, 0.12);
}

.community-media-card .member-fb-albums-grid {
    gap: 0.5rem;
}

.community-media-card .member-fb-album-tile {
    flex: 0 0 calc(50% - 0.25rem);
    width: calc(50% - 0.25rem);
    max-width: calc(50% - 0.25rem);
}

.community-media-card .member-fb-album-cover {
    aspect-ratio: 1;
    min-height: 0;
}

.community-media-card .member-fb-album-tile-meta {
    padding: 0.35rem 0.45rem 0.5rem;
}

.community-media-card .member-fb-album-tile-title,
.community-media-card .member-fb-album-tile-create-label {
    font-size: 0.78rem;
    line-height: 1.25;
}

.community-media-card .member-fb-album-tile-count {
    font-size: 0.72rem;
}

.community-media-card .member-fb-album-detail-head {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.community-media-card .member-fb-album-detail-title {
    font-size: 0.95rem;
}

.community-media-card .member-fb-album-detail-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.community-media-card .member-fb-album-add-btn {
    font-size: 0.78rem;
    justify-content: center;
}

.community-media-card .member-fb-album-detail .member-fb-album-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.community-online-card h3 {
    margin: 0 0 0.75rem;
}

.community-online-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.community-online-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.35rem;
    border-radius: 8px;
    background: rgba(20, 89, 130, 0.06);
}

.community-online-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.community-online-item a,
.community-online-item span {
    font-weight: 600;
    color: var(--bg-dark);
}

.community-online-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    flex: 0 0 auto;
}

@media (max-width: 1199px) and (min-width: 961px) {
    .community-layout {
        grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 240px);
        gap: 0.85rem;
    }
}

@media (max-width: 960px) {
    .community-page {
        width: 100%;
        max-width: 100%;
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
        padding-bottom: 2rem;
    }

    .community-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .community-left,
    .community-sidebar--member,
    .community-sidebar--tools {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        min-width: 0;
    }

    .community-sidebar {
        position: static;
        top: auto;
        z-index: auto;
    }

    .community-page .member-public-card {
        width: 100%;
        max-width: 100%;
    }

    .community-page .member-feed-card {
        scroll-margin-top: calc(var(--p4g-sticky-site-header-height, 7.25rem) + 0.5rem);
    }
}

@media (max-width: 620px) {
    .community-page {
        padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
    }

    .community-achievements-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-keyword-cloud {
        gap: 0.35rem;
    }

    .community-friends-avatars {
        justify-content: flex-start;
    }
}

/* Member directory page */
.member-directory-page {
    max-width: 1560px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 3rem;
}

.member-directory-intro.member-public-card {
    border-color: color-mix(in srgb, var(--bg-blue) 16%, transparent);
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--bg-blue) 7%, var(--surface-card, #fff)) 0%,
        var(--surface-card, #fff) 100%
    );
}

.member-directory-intro {
    margin-bottom: 1.25rem;
}

.member-directory-intro .member-directory-kicker {
    color: var(--bg-blue, #1e73be);
}

.member-directory-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 0.35rem;
}

.member-directory-intro h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.75rem, 3.2vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-dark, #13263f);
}

.member-directory-lead {
    margin: 0;
    max-width: 46rem;
    color: var(--muted-text);
    line-height: 1.65;
    font-size: 1rem;
}

.member-directory-page-content {
    margin: 0 0 0.25rem;
    max-width: 52rem;
    color: var(--muted-text);
    line-height: 1.7;
    font-size: 0.98rem;
}

.member-directory-page-content > *:first-child {
    margin-top: 0;
}

.member-directory-page-content > *:last-child {
    margin-bottom: 0;
}

.member-directory-search-panel-wrap {
    width: 100%;
    max-width: none;
    margin: 0 0 1.35rem;
}

.member-directory-search-panel {
    margin-top: 0;
    padding: 1rem 1.15rem 1rem;
    width: 100%;
    box-sizing: border-box;
    background: var(--surface-card, #fff);
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 14%, transparent);
    box-shadow: 0 4px 18px color-mix(in srgb, var(--bg-blue) 8%, transparent);
}

.member-directory-search {
    margin: 0;
    display: block;
}

.member-directory-search-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--bg-blue) 72%, var(--text-dark));
    margin-bottom: 0.55rem;
}

.member-directory-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: stretch;
    width: 100%;
}

.member-directory-search-row input {
    min-height: 42px;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 22%, transparent);
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    background: var(--surface-card, #fff);
    color: var(--text-dark, #13263f);
    font-size: 0.92rem;
    box-shadow: inset 0 1px 2px color-mix(in srgb, var(--bg-blue) 6%, transparent);
}

.member-directory-search-row input:focus {
    outline: 2px solid color-mix(in srgb, var(--bg-blue) 35%, transparent);
    outline-offset: 1px;
}

.member-directory-search-row button {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--bg-blue);
    padding: 0.45rem 0.95rem;
    background: var(--bg-blue);
    color: var(--button-text, #fff);
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.member-directory-search-row button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--bg-blue) 32%, transparent);
    background: var(--bg-accent);
    border-color: var(--bg-accent);
}

.member-directory-results-count {
    margin: 0.85rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid color-mix(in srgb, var(--bg-blue) 12%, transparent);
    font-size: 0.8rem;
    color: var(--muted-text, #3d526a);
    font-weight: 700;
}

.member-directory-results-card {
    border-radius: 20px;
}

.member-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.member-directory-card {
    border: 1px solid color-mix(in srgb, var(--bg-blue) 14%, transparent);
    border-radius: 16px;
    background: var(--surface-card, #fff);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    overflow: hidden;
}

.member-directory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--bg-blue) 14%, transparent);
}

/* Carte annuaire : mÃªme logique que le bandeau profil (banniÃ¨re + avatar chevauchÃ©). */
.member-directory-cover-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.member-directory-cover-link:hover,
.member-directory-cover-link:focus,
.member-directory-cover-link:focus-visible,
.member-directory-cover-link:active {
    text-decoration: none;
}

.member-directory-cover-link:hover .member-directory-identity h2 {
    color: var(--bg-blue, #1e73be);
    text-decoration: none;
}

.member-directory-cover {
    position: relative;
    margin: 0;
    padding-bottom: 0.15rem;
}

.member-directory-cover:not(.member-directory-cover--no-banner) .member-directory-banner {
    border-radius: 15px 15px 0 0;
}

.member-directory-cover--no-banner .member-directory-head {
    padding-top: 0.65rem;
    align-items: center;
}

.member-directory-banner {
    width: 100%;
    height: 108px;
    background-size: cover;
    background-position: center;
    margin: 0;
}

.member-directory-banner--animated {
    overflow: hidden;
    background-image: none !important;
}

.member-directory-banner__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.member-directory-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0 0.95rem 0.45rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.member-directory-cover:not(.member-directory-cover--no-banner) .member-directory-avatar-ring {
    margin-top: -36px;
}

.member-directory-cover--no-banner .member-directory-avatar-ring {
    margin-top: 0;
}

.member-directory-avatar-ring {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    background: var(--surface-card, #fff);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(14, 32, 56, 0.14);
    overflow: visible;
    line-height: 0;
}

.member-directory-avatar-ring .member-avatar-status-wrap {
    position: relative;
    display: block;
    line-height: 0;
}

.member-directory-avatar-ring .member-avatar-status-avatar,
.member-directory-avatar-ring .member-directory-avatar {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    line-height: 0;
}

.member-directory-avatar-ring::after {
    content: "";
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--surface-card, #fff);
    z-index: 2;
    pointer-events: none;
}

.member-directory-avatar-ring.is-online::after {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
}

.member-directory-avatar-ring.is-offline::after {
    background: #9ca3af;
}

.member-directory-avatar {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    line-height: 0;
}

.member-directory-avatar img,
.member-directory-avatar-ring .member-avatar-status-avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.member-directory-identity {
    min-width: 0;
    flex: 1;
    padding-top: 0.45rem;
    padding-bottom: 0.1rem;
}

.member-directory-identity h2 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark, #13263f);
    text-decoration: none;
    transition: color 0.15s ease;
}

.member-name-with-badge--directory {
    flex-wrap: nowrap;
    max-width: 100%;
}

.member-name-with-badge--directory .member-moderator-badge {
    font-size: 0.82em;
}

.member-directory-card-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-directory-excerpt {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.82rem;
    line-height: 1.45;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-directory-card-rest {
    display: grid;
    gap: 0.6rem;
    padding: 0.55rem 0.95rem 1rem;
}

.member-directory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: stretch;
}

.member-directory-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 32px;
    padding: 0.28rem 0.55rem 0.28rem 0.48rem;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 22%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 8%, transparent);
    color: var(--text-dark, #2a3f56);
    font-size: 0.72rem;
    font-weight: 700;
}

.member-directory-stat i {
    font-size: 0.95rem;
    color: var(--bg-blue, #1e73be);
    opacity: 0.92;
}

.member-directory-stat-value {
    font-variant-numeric: tabular-nums;
    font-size: 0.84rem;
}

.member-directory-stat-label {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.member-directory-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    width: 100%;
}

.member-directory-socials a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 28%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 10%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-blue, #1e73be);
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.member-directory-socials a svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
    margin: auto;
}

.member-directory-socials a:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--bg-blue) 18%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 45%, transparent);
    color: var(--link-hover-color, var(--bg-accent, var(--bg-blue)));
}

.member-directory-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.52rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--bg-blue);
    background: var(--bg-blue);
    color: var(--button-text, #fff);
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.member-directory-profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--bg-blue) 35%, transparent);
    background: var(--bg-accent);
    border-color: var(--bg-accent);
    color: var(--button-text, #fff);
}

.member-directory-profile-btn i {
    font-size: 0.78rem;
    opacity: 0.95;
}

body.theme-dark .member-directory-profile-btn {
    background: color-mix(in srgb, var(--bg-blue) 88%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 70%, transparent);
    color: var(--button-text, var(--text-light));
}

body.theme-dark .member-directory-profile-btn:hover {
    background: var(--bg-accent);
    border-color: var(--bg-accent);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

body.theme-dark .member-directory-intro.member-public-card {
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--bg-blue) 14%, rgba(22, 34, 52, 0.55)) 0%,
        rgba(22, 34, 52, 0.55) 100%
    );
    border-color: color-mix(in srgb, var(--bg-blue) 22%, transparent);
}

body.theme-dark .member-directory-intro h1 {
    color: var(--text-light);
}

body.theme-dark .member-directory-intro .member-directory-kicker {
    color: color-mix(in srgb, var(--bg-blue) 70%, var(--text-light));
}

body.theme-dark .member-directory-lead,
body.theme-dark .member-directory-page-content {
    color: rgba(230, 237, 246, 0.82);
}

body.theme-dark .member-directory-search-panel {
    background: rgba(22, 34, 52, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

body.theme-dark .member-directory-search-label {
    color: rgba(230, 237, 246, 0.78);
}

body.theme-dark .member-directory-search-row input {
    background: rgba(10, 18, 32, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
}

body.theme-dark .member-directory-results-count {
    color: rgba(230, 237, 246, 0.72);
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .member-directory-socials a {
    border-color: color-mix(in srgb, var(--bg-blue) 35%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 15%, transparent);
    color: color-mix(in srgb, var(--bg-blue) 55%, var(--text-light));
}

body.theme-dark .member-directory-socials a:hover {
    border-color: color-mix(in srgb, var(--bg-blue) 55%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 28%, transparent);
    color: var(--text-light);
}

body.theme-dark .member-directory-card {
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .member-directory-identity h2 {
    color: var(--text-light);
}

body.theme-dark .member-directory-excerpt {
    color: rgba(230, 237, 246, 0.72);
}

body.theme-dark .member-directory-avatar-ring {
    background: rgba(22, 34, 52, 0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

body.theme-dark .member-directory-avatar-ring::after {
    border-color: rgba(22, 34, 52, 0.96);
}

body.theme-dark .member-directory-avatar-ring.is-offline::after {
    background: #6b7280;
}

body.theme-dark .member-directory-stat {
    background: color-mix(in srgb, var(--bg-blue) 10%, transparent);
    border-color: color-mix(in srgb, var(--bg-blue) 22%, transparent);
    color: rgba(230, 237, 246, 0.88);
}

body.theme-dark .member-directory-stat i {
    color: color-mix(in srgb, var(--bg-blue) 65%, var(--text-light));
}

body.theme-dark .member-directory-cover-link:hover .member-directory-identity h2 {
    color: color-mix(in srgb, var(--bg-blue) 70%, var(--text-light));
    text-decoration: none;
}

@media (max-width: 1320px) {
    .member-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .member-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .member-directory-search-panel {
        padding: 1rem 1rem 1rem;
    }

    .member-directory-search-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .member-directory-search-row button {
        width: 100%;
    }

    .member-directory-grid {
        grid-template-columns: 1fr;
    }

    .member-directory-stats {
        gap: 0.35rem;
    }
}

@media (max-width: 820px) {
    /* Remonte lÃ©gÃ¨rement le contenu sur mobile. */
    .hero-fullpage {
        padding-top: 1.2rem;
    }

    .site-main,
    .member-space-page,
    .member-directory-page,
    .game-directory-page,
    .releases-page,
    .single-review-page,
    .p4g-auction-single-wrap,
    .p4g-auction-archive-wrap,
    .p4g-auction-landing,
    .p4g-auction-single-wrap {
        padding-top: 0.9rem;
    }

    .member-public-page.site-main,
    .community-page.site-main,
    .category-mag-page.site-main {
        padding-top: 0.35rem;
    }
}

/* EnchÃ¨res (points) â€” accent orange Play4Geek (--reviews-score-bg, Customizer) */
.p4g-auction-landing,
.p4g-auction-single-wrap,
.p4g-auction-archive-wrap {
    --p4g-auction-accent: var(--reviews-score-bg, #ff4d00);
    --p4g-auction-accent-light: color-mix(in srgb, var(--p4g-auction-accent) 62%, #ffffff);
    --p4g-auction-accent-deep: color-mix(in srgb, var(--p4g-auction-accent) 78%, #9a3412);
    --p4g-auction-accent-soft: color-mix(in srgb, var(--p4g-auction-accent) 12%, transparent);
    --p4g-auction-accent-muted: color-mix(in srgb, var(--p4g-auction-accent) 22%, transparent);
    --p4g-auction-accent-border: color-mix(in srgb, var(--p4g-auction-accent) 35%, transparent);
    --p4g-auction-accent-shadow: color-mix(in srgb, var(--p4g-auction-accent) 32%, transparent);
}

.p4g-auction-landing,
.p4g-auction-single-wrap,
.p4g-auction-archive-wrap {
    --p4g-auction-ink: var(--text-dark, #111827);
    --p4g-auction-muted: rgba(51, 65, 85, 0.92);
}

.p4g-auction-archive-head .p4g-auction-archive-title {
    margin-bottom: 0.35rem;
}

.p4g-auction-balance-banner {
    margin: 0;
    color: rgba(58, 74, 94, 0.92);
    font-size: 0.95rem;
}

.p4g-auction-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
}

.p4g-auction-card {
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-color, rgba(20, 40, 70, 0.12));
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 26px rgba(15, 27, 46, 0.06);
}

.p4g-auction-card-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.p4g-auction-card-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.p4g-auction-card-title {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.3;
}

.p4g-auction-card-excerpt {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted-text, #586b82);
    line-height: 1.45;
}

.p4g-auction-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.35rem;
}

.p4g-auction-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.p4g-auction-badge.is-open {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.p4g-auction-badge.is-closed {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.22);
}

.p4g-auction-min {
    font-size: 0.82rem;
    color: var(--muted-text, #586b82);
}

.p4g-auction-card-cta {
    font-weight: 600;
    margin-top: 0.25rem;
    color: var(--p4g-auction-accent);
}

.p4g-auction-card-terms,
.p4g-auction-single-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

a.p4g-auction-term {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--p4g-auction-accent-border);
    background: var(--p4g-auction-accent-soft);
    color: var(--p4g-auction-accent);
    text-decoration: none;
}

a.p4g-auction-term:hover {
    border-color: color-mix(in srgb, var(--p4g-auction-accent) 55%, transparent);
    background: var(--p4g-auction-accent-muted);
}

.p4g-auction-tax-back {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
}

.p4g-auction-tax-back a {
    font-weight: 600;
}

.p4g-auction-single-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
    width: 100%;
}

.p4g-auction-single-title-row .p4g-auction-like-wrap {
    flex: 0 0 auto;
    margin: 0;
}

.p4g-auction-single-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.25;
}

@media (max-width: 480px) {
    .p4g-auction-single-title-row {
        flex-wrap: wrap;
    }

    .p4g-auction-single-title-row .p4g-auction-like-wrap {
        margin-left: auto;
    }
}

.p4g-auction-single-media {
    margin: 0 0 1.35rem;
    padding: 0;
    max-width: min(100%, 520px);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-panel, #f4f7fb);
    border: 1px solid var(--border-color, rgba(20, 40, 70, 0.12));
    box-shadow: 0 10px 28px rgba(15, 27, 46, 0.06);
}

.p4g-auction-single-media .p4g-auction-single-img,
.p4g-auction-single-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 380px);
    object-fit: contain;
    vertical-align: middle;
}

.p4g-auction-game-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 0.65rem 0.85rem;
    align-items: start;
    margin: 0 0 1.35rem;
    max-width: min(100%, 660px);
}

.p4g-auction-game-media-main {
    min-width: 0;
}

.p4g-auction-game-media .p4g-auction-single-media {
    margin-bottom: 0.45rem;
}

.p4g-auction-game-fiche-link {
    margin: 0;
    font-size: 0.88rem;
}

.p4g-auction-game-fiche-link a {
    font-weight: 650;
    color: var(--bg-blue);
}

.p4g-auction-game-media-side {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    max-height: min(52vh, 380px);
    overflow-y: auto;
    padding: 0.1rem 0.05rem 0.1rem 0;
    scrollbar-width: thin;
}

.p4g-auction-game-thumb {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1;
}

.p4g-auction-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p4g-auction-game-thumb:hover,
.p4g-auction-game-thumb:focus-visible {
    border-color: var(--p4g-auction-accent-border);
    outline: none;
}

.p4g-auction-game-thumb.is-active {
    border-color: var(--p4g-auction-accent);
    box-shadow: 0 0 0 2px var(--p4g-auction-accent-soft);
}

@media (max-width: 540px) {
    .p4g-auction-game-media {
        grid-template-columns: 1fr;
    }

    .p4g-auction-game-media-side {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        overflow: visible;
    }

    .p4g-auction-game-thumb {
        width: calc(33.333% - 0.35rem);
        min-width: 72px;
        max-width: 112px;
    }
}

.p4g-auction-tabs {
    margin-top: 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-color, rgba(20, 40, 70, 0.12));
    background: var(--surface-card, #fff);
    overflow: hidden;
}

.p4g-auction-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem 0;
    border-bottom: 1px solid var(--border-color, rgba(20, 40, 70, 0.1));
    background: var(--surface-panel, #f4f7fb);
}

.p4g-auction-tabs-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.95rem;
    border-radius: 10px 10px 0 0;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--muted-text, #586b82);
    cursor: pointer;
}

.p4g-auction-tabs-btn.is-active {
    background: var(--surface-card, #fff);
    color: var(--p4g-auction-accent);
    box-shadow: 0 -1px 0 var(--surface-card, #fff), inset 0 -2px 0 var(--p4g-auction-accent);
}

.p4g-auction-tabs-panels {
    padding: 1rem 1.15rem 1.15rem;
}

.p4g-auction-tabs-panel[hidden] {
    display: none !important;
}

.p4g-auction-tabs-empty {
    margin: 0 0 1rem;
    color: var(--muted-text, #586b82);
    font-size: 0.92rem;
}

.p4g-auction-details-meta {
    margin: 1rem 0 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(20, 40, 70, 0.08);
    display: grid;
    gap: 0.45rem;
}

.p4g-auction-details-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    font-size: 0.88rem;
}

.p4g-auction-details-meta dt {
    margin: 0;
    font-weight: 600;
    color: var(--muted-text, #586b82);
}

.p4g-auction-details-meta dd {
    margin: 0;
    font-weight: 650;
    color: var(--text-dark, #1e293b);
}

.p4g-auction-tabs .p4g-auction-comments-wrap {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    max-width: none;
}

/* Pas de widgets Taboola dans lâ€™onglet DÃ©tails des enchÃ¨res */
.p4g-auction-tabs-panel[data-tab-panel="details"] .play4geek-taboola-zone,
.p4g-auction-tabs-panel[data-tab-panel="details"] [id^="taboola-"],
.p4g-auction-single-content .play4geek-taboola-zone,
.p4g-auction-single-content [id^="taboola-"],
.p4g-auction-single-content .trc_rbox,
.p4g-auction-single-content .tbl-feed-container {
    display: none !important;
}

.p4g-auction-single-desc {
    margin-top: 0.25rem;
    padding: 1rem 1.15rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--border-color, rgba(20, 40, 70, 0.12));
    background: var(--surface-card, #fff);
}

.p4g-auction-single-desc-heading {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-dark, #1e293b);
}

.p4g-auction-single-desc .p4g-auction-single-content {
    margin: 0;
}

.p4g-auction-comments-wrap {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color, rgba(20, 40, 70, 0.14));
    max-width: min(100%, 920px);
}

.p4g-auction-comments-wrap .comments-area {
    margin: 0;
}

.p4g-auction-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: start;
}

/* Tablettes / fenÃªtres Ã©troites : colonne latÃ©rale plus Ã©troite pour rester cÃ´te Ã  cÃ´te (comme en prod). */
@media (max-width: 1100px) {
    .p4g-auction-single-layout {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    }
}

@media (max-width: 820px) {
    .p4g-auction-single-layout {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    }
}

.p4g-auction-panel {
    background: var(--surface-panel, #f4f7fb);
    border: 1px solid var(--border-color, rgba(20, 40, 70, 0.12));
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.p4g-auction-panel-title {
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(58, 74, 94, 0.88);
}

.p4g-auction-countdown {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--p4g-auction-accent-muted);
    background: color-mix(in srgb, var(--p4g-auction-accent-soft) 65%, var(--surface-card, #fff));
}

.p4g-auction-countdown-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--p4g-auction-muted);
}

.p4g-auction-countdown-digits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    align-items: baseline;
}

.p4g-auction-countdown-segment {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
}

.p4g-auction-countdown-value {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--p4g-auction-accent);
    line-height: 1;
}

.p4g-auction-countdown-unit {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--p4g-auction-muted);
}

.p4g-auction-countdown.is-live .p4g-auction-countdown-value {
    color: var(--p4g-auction-accent-deep);
}

.p4g-auction-countdown.is-upcoming .p4g-auction-countdown-value {
    color: var(--p4g-auction-accent);
}

.p4g-auction-countdown.is-ended,
.p4g-auction-countdown.is-open-unlimited {
    background: var(--surface-card, #fff);
    border-color: var(--border-color, rgba(20, 40, 70, 0.12));
}

.p4g-auction-countdown-ended-date,
.p4g-auction-countdown-note {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--text-dark, #1e293b);
}

.p4g-auction-countdown.is-ended .p4g-auction-countdown-label {
    color: var(--p4g-auction-accent);
}

.p4g-auction-stat {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
}

.p4g-auction-bid-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.p4g-auction-bid-form input[type="number"] {
    flex: 1 1 120px;
    min-width: 0;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(20, 40, 70, 0.18);
}

.p4g-auction-bid-message {
    min-height: 1.25rem;
    margin: 0.45rem 0 0;
    font-size: 0.88rem;
}

.p4g-auction-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p4g-auction-recent .p4g-auction-panel-title {
    margin-bottom: 0.65rem;
}

.p4g-auction-like-wrap {
    margin: 0;
}

.p4g-auction-like-form {
    margin: 0;
}

.p4g-auction-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 40, 70, 0.14);
    background: var(--surface-card, #fff);
    color: var(--text-dark, #1e293b);
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
}

.p4g-auction-like-btn.is-active {
    border-color: var(--p4g-auction-accent-border);
    background: var(--p4g-auction-accent-soft);
    color: var(--p4g-auction-accent);
}

.p4g-auction-like-guest {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted-text, #586b82);
}

.p4g-auction-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(20, 40, 70, 0.08);
    font-size: 0.88rem;
}

.p4g-auction-recent-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.p4g-auction-recent-avatar {
    flex: 0 0 auto;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
}

.p4g-auction-recent-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p4g-auction-recent-ident {
    min-width: 0;
}

.p4g-auction-recent-name {
    font-weight: 650;
    color: var(--p4g-auction-accent);
    text-decoration: none;
}

.p4g-auction-recent-name:hover {
    text-decoration: underline;
}

.p4g-auction-recent-item:last-child {
    border-bottom: 0;
}

.p4g-auction-recent-ident .p4g-auction-recent-name:not(a) {
    font-weight: 600;
    color: rgba(45, 62, 82, 0.95);
}

.p4g-auction-recent-pts {
    color: rgba(58, 74, 94, 0.85);
    white-space: nowrap;
}

.p4g-auction-recent-empty {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted-text, #586b82);
}

.p4g-auction-share .p4g-auction-panel-title {
    margin-bottom: 0.65rem;
}

.p4g-auction-share-chips {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.p4g-auction-share-chips li {
    margin: 0;
}

.p4g-auction-share-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
    border: 1px solid rgba(20, 40, 70, 0.14);
    background: var(--surface-card, #fff);
    color: var(--text-dark, #1e293b);
    line-height: 1.2;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.p4g-auction-share-chip:hover {
    border-color: var(--p4g-auction-accent-border);
    box-shadow: 0 6px 14px rgba(15, 27, 46, 0.06);
}

.p4g-auction-share-chip-icon {
    display: inline-flex;
    font-size: 0.95rem;
    opacity: 0.92;
}

.p4g-auction-share-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.p4g-auction-share-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    font-size: 0.88rem;
}

.p4g-auction-copy-link.is-copied {
    border-color: var(--p4g-auction-accent);
}

.p4g-auction-discussion {
    scroll-margin-top: 1rem;
}

/* Une colonne uniquement sur petit mobile : Ã©vite lâ€™empilement trop tÃ´t pour les visiteurs / tous les rÃ´les. */
@media (max-width: 640px) {
    .p4g-auction-single-layout {
        grid-template-columns: 1fr;
    }
}

body.theme-dark .p4g-auction-single-desc {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .p4g-auction-single-desc-heading {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .p4g-auction-single-media {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .p4g-auction-card {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .p4g-auction-panel {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .p4g-auction-balance-banner,
body.theme-dark .p4g-auction-panel-title,
body.theme-dark .p4g-auction-stat {
    color: var(--text-light, #dbe8ff);
}

body.theme-dark .p4g-auction-countdown {
    background: color-mix(in srgb, var(--p4g-auction-accent-soft) 40%, var(--surface-panel));
    border-color: var(--p4g-auction-accent-muted);
}

body.theme-dark .p4g-auction-countdown-label {
    color: rgba(203, 213, 225, 0.88);
}

body.theme-dark .p4g-auction-countdown-ended-date,
body.theme-dark .p4g-auction-countdown-note {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .p4g-auction-countdown.is-ended,
body.theme-dark .p4g-auction-countdown.is-open-unlimited {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .p4g-auction-recent-name {
    color: #e8f1ff;
}

body.theme-dark .p4g-auction-tabs,
body.theme-dark .p4g-auction-tabs-btn.is-active {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .p4g-auction-tabs-nav {
    background: color-mix(in srgb, var(--surface-panel) 88%, #000);
    border-color: var(--border-color);
}

body.theme-dark .p4g-auction-tabs-btn {
    color: var(--muted-text);
}

body.theme-dark .p4g-auction-tabs-btn.is-active {
    color: var(--p4g-auction-accent);
}

body.theme-dark .p4g-auction-details-meta dt {
    color: var(--muted-text);
}

body.theme-dark .p4g-auction-details-meta dd {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .p4g-auction-like-btn {
    background: rgba(12, 22, 38, 0.6);
    border-color: var(--border-color);
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .p4g-auction-like-btn.is-active {
    border-color: var(--p4g-auction-accent-border);
    background: var(--p4g-auction-accent-soft);
    color: var(--p4g-auction-accent);
}

body.theme-dark .p4g-auction-bid-form input[type="number"] {
    background: rgba(12, 22, 38, 0.85);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e8f1ff;
}

/* Liste / dÃ©tail enchÃ¨res â€” largeur confort */
.p4g-auction-page-inner {
    width: 100%;
    max-width: min(1320px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem clamp(1rem, 3vw, 2rem) 2.75rem;
}

/* Hero enchÃ¨res â€” grille Ã©ditoriale + panneau Â« comment jouer Â» */
.p4g-auction-hero--pro {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(235, 242, 248, 0.65) 42%,
        rgba(255, 255, 255, 0.92) 100%
    );
    border-radius: 18px;
    padding: clamp(1.65rem, 3vw, 2.35rem) clamp(1.35rem, 3vw, 2.25rem);
    margin-bottom: 2.75rem;
    border: 1px solid var(--p4g-auction-accent-muted);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 18px 48px rgba(14, 32, 56, 0.07);
}

.p4g-auction-hero--pro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--p4g-auction-accent), var(--p4g-auction-accent-light) 55%, color-mix(in srgb, var(--p4g-auction-accent) 25%, transparent));
    pointer-events: none;
}

.p4g-auction-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: clamp(1.25rem, 3.5vw, 2.75rem);
    align-items: stretch;
}

@media (max-width: 1100px) {
    .p4g-auction-hero-shell {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    }
}

@media (max-width: 820px) {
    .p4g-auction-hero-shell {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    }
}

.p4g-auction-hero-copy {
    min-width: 0;
}

.p4g-auction-hero-kicker {
    margin: 0 0 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--p4g-auction-accent);
}

.p4g-auction-hero-title {
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.p4g-auction-hero-title-line {
    display: block;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--p4g-auction-ink);
}

.p4g-auction-hero-title-sub {
    display: block;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--p4g-auction-muted);
}

.p4g-auction-hero-lead {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.62;
    color: var(--p4g-auction-muted);
    max-width: 38rem;
}

.p4g-auction-hero-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.p4g-auction-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--p4g-auction-accent-muted);
    box-shadow: 0 4px 16px rgba(14, 32, 56, 0.06);
}

.p4g-auction-balance-pill-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--p4g-auction-muted);
}

.p4g-auction-balance-pill-value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.p4g-auction-balance-pill-num {
    font-size: 1.38rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--p4g-auction-accent);
}

.p4g-auction-balance-pill-cur {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--p4g-auction-muted);
}

.p4g-auction-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    background: linear-gradient(145deg, var(--p4g-auction-accent), var(--p4g-auction-accent-deep));
    color: #fff !important;
    border: none;
    box-shadow: 0 6px 18px var(--p4g-auction-accent-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.p4g-auction-hero-cta:hover {
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px var(--p4g-auction-accent-shadow);
}

.p4g-auction-hero-cta--ghost {
    background: transparent;
    color: var(--p4g-auction-accent) !important;
    border: 1px solid var(--p4g-auction-accent-border);
    box-shadow: none;
}

.p4g-auction-hero-cta--ghost:hover {
    background: var(--p4g-auction-accent-soft);
}

.p4g-auction-hero-aside {
    padding: 1.2rem 1.25rem 1.3rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--p4g-auction-accent-soft);
    box-shadow: 0 8px 28px rgba(14, 32, 56, 0.05);
}

.p4g-auction-aside-heading {
    margin: 0 0 1.05rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--p4g-auction-muted);
}

.p4g-auction-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p4g-auction-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    padding-bottom: 1.2rem;
}

.p4g-auction-timeline-item:last-child {
    padding-bottom: 0;
}

.p4g-auction-timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0.72rem;
    top: 2rem;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--p4g-auction-accent-muted), var(--p4g-auction-accent-soft));
}

.p4g-auction-timeline-marker {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--p4g-auction-accent);
    color: var(--p4g-auction-accent);
    font-size: 0.68rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.p4g-auction-timeline-body {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
}

.p4g-auction-timeline-title {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--p4g-auction-ink);
}

.p4g-auction-timeline-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--p4g-auction-muted);
}

.p4g-auction-timeline-link {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--p4g-auction-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.p4g-auction-timeline-link:hover {
    opacity: 0.88;
}

@media (max-width: 640px) {
    .p4g-auction-hero-shell {
        grid-template-columns: 1fr;
    }

    .p4g-auction-hero-aside {
        max-width: 100%;
    }
}

.p4g-auction-section {
    margin-bottom: 2.5rem;
}

.p4g-auction-section-title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--p4g-auction-ink);
}

.p4g-auction-section-accent {
    color: var(--p4g-auction-accent);
    font-weight: 800;
}

.p4g-auction-empty {
    border: 2px dashed var(--p4g-auction-accent-muted);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--p4g-auction-muted);
    background: rgba(235, 242, 248, 0.65);
}

.p4g-auction-empty--light {
    background: transparent;
}

.p4g-auction-empty p {
    margin: 0;
    font-size: 0.98rem;
}

/* Grille cartes : auto-fit + min() pour 2+ colonnes sur PC (Ã©vite une seule colonne pleine largeur). */
.p4g-auction-ongoing-grid {
    display: grid;
    width: 100%;
    gap: 1.15rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.p4g-auction-live-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--p4g-auction-accent-muted);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(14, 32, 56, 0.06);
}

.p4g-auction-live-card-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.p4g-auction-live-card-body {
    padding: 1rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.p4g-auction-live-card-title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.3;
}

.p4g-auction-live-card-title a {
    color: var(--p4g-auction-accent);
    font-weight: 700;
    text-decoration: none;
}

.p4g-auction-live-card-title a:hover {
    text-decoration: underline;
}

.p4g-auction-live-card-min {
    margin: 0;
    font-size: 0.84rem;
    color: var(--p4g-auction-muted);
}

.p4g-auction-live-card-cta {
    margin-top: 0.35rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--p4g-auction-accent);
    text-decoration: none;
}

.p4g-auction-live-card-cta:hover {
    text-decoration: underline;
}

.p4g-auction-live-card--upcoming {
    border-style: dashed;
}

.p4g-auction-live-card-badge {
    margin: 0 0 0.15rem;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--p4g-auction-accent-soft);
    color: var(--p4g-auction-accent);
}

.p4g-auction-live-card-start {
    margin: 0;
    font-size: 0.84rem;
    color: var(--p4g-auction-muted);
}

.p4g-auction-section--upcoming {
    padding-bottom: 0.25rem;
}

.p4g-auction-finished-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.p4g-auction-result-card {
    background: #fff;
    border: 1px solid var(--p4g-auction-accent-soft);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 6px 20px rgba(14, 32, 56, 0.04);
}

.p4g-auction-result-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--p4g-auction-accent);
    line-height: 1.3;
}

.p4g-auction-result-meta {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.45;
    color: var(--p4g-auction-muted);
}

.p4g-auction-result-meta.is-muted {
    color: rgba(100, 116, 139, 0.95);
}

.p4g-auction-result-name,
.p4g-auction-result-amount {
    color: var(--p4g-auction-accent);
    font-weight: 700;
}

body.theme-dark .p4g-auction-landing,
body.theme-dark .p4g-auction-single-wrap,
body.theme-dark .p4g-auction-archive-wrap {
    --p4g-auction-ink: var(--text-light, #dbe8ff);
    --p4g-auction-muted: rgba(203, 213, 225, 0.88);
}

body.theme-dark .p4g-auction-hero-title,
body.theme-dark .p4g-auction-section-title {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .p4g-auction-hero-lead,
body.theme-dark .p4g-auction-timeline-desc,
body.theme-dark .p4g-auction-result-meta {
    color: rgba(203, 213, 225, 0.92);
}

body.theme-dark .p4g-auction-hero-title-sub {
    color: rgba(203, 213, 225, 0.78);
}

body.theme-dark .p4g-auction-hero--pro {
    background: linear-gradient(
        155deg,
        rgba(16, 35, 63, 0.55) 0%,
        rgba(11, 29, 53, 0.88) 48%,
        rgba(7, 23, 43, 0.96) 100%
    );
    border-color: var(--p4g-auction-accent-muted);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 16px 48px rgba(0, 0, 0, 0.28);
}

body.theme-dark .p4g-auction-hero--pro::before {
    background: linear-gradient(90deg, var(--p4g-auction-accent), var(--p4g-auction-accent-light) 55%, color-mix(in srgb, var(--p4g-auction-accent) 25%, transparent));
}

body.theme-dark .p4g-auction-balance-pill {
    background: rgba(11, 29, 53, 0.92);
    border-color: var(--p4g-auction-accent-muted);
}

body.theme-dark .p4g-auction-hero-aside {
    background: rgba(16, 35, 63, 0.6);
    border-color: var(--p4g-auction-accent-soft);
}

body.theme-dark .p4g-auction-timeline-marker {
    background: rgba(11, 29, 53, 0.95);
}

body.theme-dark .p4g-auction-timeline-title {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .p4g-auction-result-card,
body.theme-dark .p4g-auction-live-card {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .p4g-auction-empty {
    border-color: rgba(148, 163, 184, 0.35);
    color: rgba(203, 213, 225, 0.88);
}

.p4g-auction-landing .p4g-auction-bid-form .btn,
.p4g-auction-single-wrap .p4g-auction-bid-form .btn,
.p4g-auction-archive-wrap .p4g-auction-bid-form .btn,
.p4g-auction-landing .p4g-auction-share-actions .btn:not(.p4g-auction-hero-cta--ghost),
.p4g-auction-single-wrap .p4g-auction-share-actions .btn:not(.p4g-auction-hero-cta--ghost) {
    background: linear-gradient(145deg, var(--p4g-auction-accent), var(--p4g-auction-accent-deep));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px var(--p4g-auction-accent-shadow);
}

.p4g-auction-landing .p4g-auction-bid-form .btn:hover,
.p4g-auction-single-wrap .p4g-auction-bid-form .btn:hover,
.p4g-auction-archive-wrap .p4g-auction-bid-form .btn:hover,
.p4g-auction-landing .p4g-auction-share-actions .btn:not(.p4g-auction-hero-cta--ghost):hover,
.p4g-auction-single-wrap .p4g-auction-share-actions .btn:not(.p4g-auction-hero-cta--ghost):hover {
    background: linear-gradient(145deg, var(--p4g-auction-accent-deep), var(--p4g-auction-accent));
    color: #fff;
}

.p4g-auction-archive-head .p4g-auction-archive-title,
.p4g-auction-single-title {
    color: var(--p4g-auction-ink);
}

.p4g-auction-bid-form input[type="number"]:focus {
    border-color: var(--p4g-auction-accent);
    box-shadow: 0 0 0 3px var(--p4g-auction-accent-soft);
    outline: none;
}

/* SuccÃ¨s / badges */
/* Archive catalogue â€” identitÃ© Â« studio Â» (liste ; profil = grille cartes inchangÃ©e) */
.p4g-achievements-page .p4g-achievements-archive-inner {
    max-width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.p4g-achievements-page--pro .p4g-achievements-hero,
.p4g-achievements-page--guest .p4g-achievements-hero,
.p4g-achievements-archive .p4g-achievements-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.15rem, 2vw, 2rem) clamp(1.35rem, 2vw, 1.75rem);
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid color-mix(in srgb, var(--bg-blue) 28%, transparent);
    background:
        linear-gradient(
            165deg,
            var(--surface-card, #ffffff) 0%,
            var(--bg-light, #ebf2f8) 48%,
            color-mix(in srgb, var(--bg-dark) 8%, transparent) 100%
        ),
        linear-gradient(135deg, color-mix(in srgb, var(--bg-blue) 14%, transparent) 0%, transparent 58%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 24px 56px color-mix(in srgb, var(--bg-dark) 18%, transparent);
}

.p4g-achievements-hero-atlas {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--bg-blue) 22%, transparent) 0%, transparent 42%),
        radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--bg-dark) 18%, transparent) 0%, transparent 38%),
        repeating-linear-gradient(-12deg, transparent, transparent 14px, color-mix(in srgb, var(--bg-dark) 5%, transparent) 14px, color-mix(in srgb, var(--bg-dark) 5%, transparent) 15px);
}

.p4g-achievements-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: center;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.p4g-achievements-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bg-blue);
}

.p4g-achievements-hero-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-dark, #111827);
}

.p4g-achievements-hero-title-dot {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: middle;
    color: var(--text-light, #f7f9fc);
    background: linear-gradient(135deg, var(--bg-blue) 0%, var(--bg-dark) 100%);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--bg-blue) 35%, transparent);
}

.p4g-achievements-hero-lead {
    margin: 0;
    max-width: 38rem;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--muted-text, #586b82);
}

.p4g-achievements-hero-spotlight {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.p4g-achievements-spotlight-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.p4g-achievements-spotlight-ring {
    position: relative;
    width: 132px;
    height: 132px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p4g-achievements-spotlight-chart {
    width: 132px;
    height: 132px;
    filter: drop-shadow(0 10px 22px color-mix(in srgb, var(--bg-blue) 22%, transparent));
}

.p4g-achievements-spotlight-bg {
    stroke: color-mix(in srgb, var(--text-dark, #111827) 10%, transparent);
}

.p4g-achievements-spotlight-prog {
    stroke: var(--bg-blue);
}

.p4g-achievements-spotlight-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--text-dark, #111827);
    line-height: 1;
}

.p4g-achievements-spotlight-pct-sym {
    font-size: 0.55em;
    font-weight: 800;
    opacity: 0.85;
}

.p4g-achievements-spotlight-cap {
    display: block;
    margin: 0;
    padding: 0 0.25rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-text, #586b82);
    line-height: 1.35;
    white-space: nowrap;
}

.p4g-achievements-metrics {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1.15rem;
    padding: 0.65rem 0.35rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-card, #ffffff) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-dark, #111827) 8%, transparent);
    backdrop-filter: blur(10px);
}

.p4g-achievements-metric {
    flex: 1 1 120px;
    min-width: 100px;
    padding: 0.55rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: center;
    text-align: center;
}

.p4g-achievements-metric-value {
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    background: var(--theme-gradient-vertical);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.p4g-achievements-metric-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-text, #586b82);
}

.p4g-achievements-metric-divider {
    width: 1px;
    align-self: stretch;
    min-height: 2.5rem;
    margin: auto 0;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--text-dark, #111827) 14%, transparent), transparent);
}

.p4g-achievements-progress-block {
    position: relative;
    margin-top: 0.25rem;
}

.p4g-achievements-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.p4g-achievements-progress-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--muted-text, #586b82);
}

.p4g-achievements-progress-count {
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--bg-blue);
}

.p4g-achievements-progress-track {
    position: relative;
    height: 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-dark, #111827) 8%, transparent);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.p4g-achievements-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bg-dark), var(--bg-blue) 55%, color-mix(in srgb, var(--bg-blue) 65%, #ffffff));
    box-shadow: 0 0 24px color-mix(in srgb, var(--bg-blue) 35%, transparent);
    transition: width 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.p4g-achievements-hero-grid--guest {
    align-items: start;
}

.p4g-achievements-guest-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 1.15rem;
}

.p4g-achievements-guest-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-light, #f7f9fc);
    background: linear-gradient(135deg, var(--bg-blue) 0%, var(--bg-dark) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 10px 28px color-mix(in srgb, var(--bg-blue) 38%, transparent);
    border: 1px solid color-mix(in srgb, var(--bg-blue) 55%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.p4g-achievements-guest-cta-primary:hover {
    color: var(--text-light, #f7f9fc);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 14px 34px color-mix(in srgb, var(--bg-blue) 45%, transparent);
}

.p4g-achievements-guest-cta-secondary {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bg-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.p4g-achievements-guest-cta-secondary:hover {
    color: var(--bg-dark);
}

.p4g-achievements-guest-spotlight {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.p4g-achievements-guest-spotlight-card {
    width: 100%;
    max-width: 280px;
    padding: 1.15rem 1.25rem;
    border-radius: 18px;
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--bg-blue) 28%, transparent);
    background:
        linear-gradient(155deg, color-mix(in srgb, var(--bg-blue) 10%, var(--surface-card, #fff)) 0%, var(--surface-card, #fff) 100%);
    box-shadow: 0 14px 36px color-mix(in srgb, var(--bg-dark) 14%, transparent);
}

.p4g-achievements-guest-spotlight-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.85rem;
    color: var(--bg-blue);
    filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--bg-blue) 35%, transparent));
}

.p4g-achievements-guest-spotlight-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-text, #586b82);
    margin-bottom: 0.45rem;
}

.p4g-achievements-guest-spotlight-meta {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-dark, #111827);
}

.p4g-achievements-guest-progress-note {
    margin: 0 0 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px dashed color-mix(in srgb, var(--bg-blue) 35%, transparent);
    background: color-mix(in srgb, var(--bg-blue) 6%, var(--surface-card, #fff));
}

.p4g-achievements-guest-progress-note p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted-text, #586b82);
}

.p4g-achievements-list-guest-hint {
    margin: 0.5rem 0 0;
    max-width: 36rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--muted-text, #586b82);
}

.p4g-achievements-toolbar-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--text-dark, #111827) 10%, transparent);
}

.p4g-achievements-toolbar-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-text, #586b82);
}

.p4g-achievements-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.p4g-achievements-filter {
    appearance: none;
    margin: 0;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted-text, #586b82);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.45rem 1.15rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.p4g-achievements-filter:hover {
    color: var(--bg-blue);
}

.p4g-achievements-filter.is-active {
    color: var(--text-dark, #111827);
    border-bottom-color: var(--bg-blue);
}

.p4g-achievements-list-shell {
    position: relative;
    background: var(--surface-card, #fff);
    border: 1px solid color-mix(in srgb, var(--text-dark, #111827) 10%, transparent);
    border-radius: 20px;
    padding: clamp(1rem, 2vw, 1.35rem);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 18px 48px color-mix(in srgb, var(--bg-dark) 12%, transparent);
}

.p4g-achievements-list-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bg-blue) 40%, transparent), transparent);
    opacity: 0.85;
}

.p4g-achievements-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.15rem 0.15rem 0;
}

.p4g-achievements-list-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bg-blue);
}

.p4g-achievements-list-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-dark, #111827);
}

.p4g-achievements-list-meta {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(235, 242, 248, 0.92);
    background: color-mix(in srgb, var(--bg-light, #ebf2f8) 92%, var(--bg-blue));
    color: var(--muted-text, #586b82);
}

.p4g-achievements-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.p4g-achievements-page--pro .p4g-achievement-row,
.p4g-achievements-archive .p4g-achievement-row {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.1rem 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.65) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.p4g-achievements-page--pro .p4g-achievement-row[hidden],
.p4g-achievements-archive .p4g-achievement-row[hidden],
.p4g-achievements-page--pro .p4g-achievement-row.is-filter-hidden,
.p4g-achievements-archive .p4g-achievement-row.is-filter-hidden {
    display: none !important;
}

.p4g-achievements-filter-empty {
    margin: 0.75rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    color: var(--text-muted, #64748b);
    text-align: center;
}

.p4g-achievements-page--pro .p4g-achievement-row::before,
.p4g-achievements-archive .p4g-achievement-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    bottom: 0.65rem;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.65), rgba(148, 163, 184, 0.25));
}

.p4g-achievements-page--pro .p4g-achievement-row.is-unlocked::before,
.p4g-achievements-archive .p4g-achievement-row.is-unlocked::before {
    background: linear-gradient(180deg, var(--bg-blue), var(--theme-blue-light));
    box-shadow: 0 0 14px rgba(30, 115, 190, 0.45);
}

.p4g-achievements-page--pro .p4g-achievement-row:hover,
.p4g-achievements-archive .p4g-achievement-row:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--bg-blue) 22%, transparent);
    box-shadow: 0 14px 36px rgba(14, 32, 56, 0.09);
}

.p4g-achievements-page--pro .p4g-achievement-row.is-unlocked,
.p4g-achievements-archive .p4g-achievement-row.is-unlocked {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.65) 100%);
}

.p4g-achievement-row-thumb {
    position: relative;
    flex: 0 0 88px;
    width: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(241, 245, 249, 0.95);
    align-self: center;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 8px 20px rgba(14, 32, 56, 0.06);
}

.p4g-achievement-row-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.p4g-achievement-row-img.is-dimmed {
    filter: grayscale(0.65) brightness(0.88) contrast(0.98);
}

.p4g-achievement-row-thumb.is-secret-mask .p4g-achievement-row-img.is-secret-blur,
.p4g-achievement-card-visual.is-secret-mask .p4g-achievement-card-img.is-secret-blur {
    filter: grayscale(0.45) blur(12px) brightness(0.9);
    transform: scale(1.08);
}

.p4g-achievement-single-thumb {
    margin: 0 0 1rem;
    max-width: min(100%, 440px);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(241, 245, 249, 0.95);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.p4g-achievement-single-thumb.is-secret-mask .p4g-achievement-single-thumb-img.is-secret-blur {
    filter: grayscale(0.45) blur(14px) brightness(0.88);
    transform: scale(1.05);
}

.p4g-achievement-single-thumb-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.p4g-achievement-single-secret-notice {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px dashed rgba(100, 116, 139, 0.45);
    background: rgba(248, 250, 252, 0.95);
    color: rgba(51, 65, 85, 0.95);
}

.p4g-achievement-row-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(100, 116, 139, 0.4);
}

.p4g-achievement-row-lock {
    position: absolute;
    bottom: 0.35rem;
    right: 0.35rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(14, 32, 56, 0.82);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.p4g-achievement-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    justify-content: center;
}

.p4g-achievement-row-title {
    margin: 0;
    font-size: 1.03rem;
    font-weight: 850;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--text-dark, #111827);
}

.p4g-achievement-row-desc,
.p4g-achievement-row-hint {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.5;
    color: rgba(71, 85, 105, 0.94);
}

.p4g-achievement-row-hint {
    font-size: 0.84rem;
    color: rgba(71, 85, 105, 0.85);
}

.p4g-achievement-row-meta {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(100, 116, 139, 0.95);
}

.p4g-achievement-row-status {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: rgba(71, 85, 105, 0.92);
}

.p4g-achievement-row-status.is-open {
    background: rgba(30, 115, 190, 0.1);
    border-color: color-mix(in srgb, var(--bg-blue) 22%, transparent);
    color: var(--bg-accent);
}

.p4g-achievements-page--pro .p4g-achievement-row-points,
.p4g-achievements-archive .p4g-achievement-row-points {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
    gap: 0.35rem 0.45rem;
    align-self: center;
    min-width: 5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid color-mix(in srgb, var(--bg-blue) 12%, transparent);
}

.p4g-achievements-page--pro .p4g-achievement-row-points::before,
.p4g-achievements-archive .p4g-achievement-row-points::before {
    content: attr(data-p4g-currency-short);
    flex: 1 0 100%;
    text-align: right;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(30, 115, 190, 0.78);
    line-height: 1;
}

.p4g-achievements-page--pro .p4g-achievement-row-value,
.p4g-achievements-archive .p4g-achievement-row-value {
    font-size: 1.35rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--bg-accent);
    line-height: 1;
}

.p4g-achievements-page--pro .p4g-achievement-row-cur,
.p4g-achievements-archive .p4g-achievement-row-cur {
    display: inline-flex;
}

.p4g-achievements-page--pro .p4g-achievement-row-cur-icon,
.p4g-achievements-archive .p4g-achievement-row-cur-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0 0.35rem;
    border-radius: 10px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--bg-blue) 0%, color-mix(in srgb, var(--bg-blue) 78%, #ffffff) 42%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--bg-blue) 22%, transparent);
}

/* Profil & autres contextes : grille cartes (styles historiques ci-dessous inchangÃ©s pour .p4g-achievement-card) */
.p4g-achievement-row-points {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    align-self: center;
}

.p4g-achievement-row-value {
    font-size: 1.25rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--bg-blue);
}

.p4g-achievement-row-cur {
    display: inline-flex;
}

.p4g-achievement-row-cur-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(145deg, var(--bg-blue), var(--theme-blue-deep));
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--bg-blue) 25%, transparent);
}

@media (max-width: 820px) {
    .p4g-achievements-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .p4g-achievements-hero-title-dot {
        margin-left: 0;
        margin-top: 0.35rem;
    }

    .p4g-achievements-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .p4g-achievements-metric-divider {
        display: none;
    }

    .p4g-achievements-metrics {
        padding: 0.5rem;
    }

    .p4g-achievements-toolbar-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .p4g-achievement-row {
        flex-wrap: wrap;
    }

    .p4g-achievements-page--pro .p4g-achievement-row-points,
    .p4g-achievements-archive .p4g-achievement-row-points {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        align-self: stretch;
        margin-top: 0.25rem;
        padding-top: 0.65rem;
        border-top: 1px dashed rgba(15, 23, 42, 0.1);
        background: rgba(248, 250, 252, 0.55);
    }

    .p4g-achievements-page--pro .p4g-achievement-row-points::before,
    .p4g-achievements-archive .p4g-achievement-row-points::before {
        flex: 1 0 100%;
        text-align: left;
        margin-bottom: 0.15rem;
    }
}

body.theme-dark .p4g-achievements-page--pro .p4g-achievements-hero,
body.theme-dark .p4g-achievements-page--guest .p4g-achievements-hero,
body.theme-dark .p4g-achievements-archive .p4g-achievements-hero {
    background:
        linear-gradient(165deg, rgba(16, 35, 63, 0.92) 0%, rgba(11, 29, 53, 0.98) 45%, rgba(7, 23, 43, 0.95) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--bg-blue) 18%, transparent) 0%, transparent 55%);
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

body.theme-dark .p4g-achievements-hero-title,
body.theme-dark .p4g-achievements-list-title,
body.theme-dark .p4g-achievement-row-title {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .p4g-achievements-spotlight-pct {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .p4g-achievements-spotlight-bg {
    stroke: rgba(148, 163, 184, 0.15);
}

body.theme-dark .p4g-achievements-spotlight-cap {
    color: var(--muted-text, #90a7c5);
}

body.theme-dark .p4g-achievements-spotlight-prog {
    stroke: var(--bg-blue);
}

body.theme-dark .p4g-achievements-hero-lead,
body.theme-dark .p4g-achievements-list-meta,
body.theme-dark .p4g-achievements-list-guest-hint,
body.theme-dark .p4g-achievement-row-desc,
body.theme-dark .p4g-achievement-row-hint {
    color: rgba(203, 213, 225, 0.88);
}

body.theme-dark .p4g-achievements-guest-spotlight-card {
    background: linear-gradient(155deg, rgba(16, 35, 63, 0.85) 0%, rgba(11, 29, 53, 0.65) 100%);
    border-color: rgba(59, 130, 246, 0.28);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

body.theme-dark .p4g-achievements-guest-spotlight-title {
    color: rgba(148, 163, 184, 0.95);
}

body.theme-dark .p4g-achievements-guest-spotlight-meta {
    color: rgba(226, 232, 240, 0.95);
}

body.theme-dark .p4g-achievements-guest-spotlight-icon {
    color: var(--theme-blue-light);
}

body.theme-dark .p4g-achievements-guest-progress-note {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(11, 29, 53, 0.55);
}

body.theme-dark .p4g-achievements-guest-progress-note p {
    color: rgba(203, 213, 225, 0.88);
}

body.theme-dark .p4g-achievements-guest-cta-secondary {
    color: #7dd3fc;
}

body.theme-dark .p4g-achievements-guest-cta-secondary:hover {
    color: #e0f2fe;
}

body.theme-dark .p4g-achievement-single-secret-notice {
    border-color: rgba(148, 163, 184, 0.38);
    background: rgba(15, 27, 46, 0.72);
    color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .p4g-achievement-single-thumb {
    background: rgba(15, 27, 46, 0.55);
}

body.theme-dark .p4g-achievements-metrics {
    background: rgba(11, 29, 53, 0.55);
    border-color: var(--border-color);
}

body.theme-dark .p4g-achievements-metric-label {
    color: rgba(203, 213, 225, 0.72);
}

body.theme-dark .p4g-achievements-metric-value {
    background: linear-gradient(180deg, #93c5fd 0%, var(--theme-blue-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.theme-dark .p4g-achievements-list-shell {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .p4g-achievements-filter {
    color: rgba(203, 213, 225, 0.78);
}

body.theme-dark .p4g-achievements-filter.is-active {
    color: #fff;
    border-bottom-color: var(--theme-blue-light);
}

body.theme-dark .p4g-achievements-page--pro .p4g-achievement-row,
body.theme-dark .p4g-achievements-page--guest .p4g-achievement-row,
body.theme-dark .p4g-achievements-archive .p4g-achievement-row {
    background: linear-gradient(135deg, rgba(11, 29, 53, 0.65) 0%, rgba(16, 35, 63, 0.45) 100%);
    border-color: var(--border-color);
}

body.theme-dark .p4g-achievements-page--pro .p4g-achievement-row.is-unlocked,
body.theme-dark .p4g-achievements-page--guest .p4g-achievement-row.is-unlocked,
body.theme-dark .p4g-achievements-archive .p4g-achievement-row.is-unlocked {
    background: linear-gradient(135deg, rgba(16, 35, 63, 0.85) 0%, rgba(11, 29, 53, 0.55) 100%);
}

body.theme-dark .p4g-achievement-row-points {
    background: rgba(11, 29, 53, 0.55);
    border-color: rgba(59, 130, 246, 0.25);
}

body.theme-dark .p4g-achievements-progress-track {
    background: rgba(148, 163, 184, 0.12);
}

body.theme-dark .p4g-achievements-progress-label {
    color: rgba(203, 213, 225, 0.85);
}

body.theme-dark .p4g-achievements-toolbar-wrap {
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

.p4g-achievements-archive-head {
    margin-bottom: 1.75rem;
}

.p4g-achievements-archive-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

.p4g-achievements-archive-intro {
    margin: 0;
    max-width: 42rem;
    color: rgba(71, 85, 105, 0.95);
    line-height: 1.5;
}

.p4g-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.1rem;
}

.p4g-achievement-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-card, #fff);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 27, 46, 0.06);
}

.p4g-achievement-card.is-locked {
    opacity: 0.92;
}

.p4g-achievement-card-visual {
    position: relative;
    aspect-ratio: 1;
    background: rgba(241, 245, 249, 0.85);
}

.p4g-achievement-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p4g-achievement-card-img.is-dimmed {
    filter: grayscale(0.55) brightness(0.92);
}

.p4g-achievement-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2.5rem;
    color: rgba(100, 116, 139, 0.55);
}

.p4g-achievement-card-lock {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.p4g-achievement-card-body {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.p4g-achievement-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.p4g-achievement-card-desc {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(71, 85, 105, 0.92);
    line-height: 1.45;
}

.p4g-achievement-card-date {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: rgba(100, 116, 139, 0.95);
}

.p4g-achievement-card-hint {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: rgba(71, 85, 105, 0.88);
    line-height: 1.4;
}

.p4g-achievements-empty {
    color: rgba(71, 85, 105, 0.92);
}

.member-profile-achievements-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.member-profile-achievements-lead {
    margin: 0;
    color: rgba(71, 85, 105, 0.95);
}

.member-profile-achievements-all {
    font-weight: 600;
    text-decoration: none;
}

.member-profile-achievements-all:hover {
    text-decoration: underline;
}

.member-profile-achievements-empty {
    margin: 0;
    color: rgba(71, 85, 105, 0.92);
}

.member-profile-achievements-grid {
    margin-top: 0.25rem;
}

body.theme-dark .p4g-achievement-card {
    background: var(--surface-panel);
    border-color: var(--border-color);
}

body.theme-dark .p4g-achievement-card-title {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .p4g-achievements-archive-intro,
body.theme-dark .p4g-achievement-card-desc,
body.theme-dark .p4g-achievement-card-hint,
body.theme-dark .member-profile-achievements-lead {
    color: rgba(203, 213, 225, 0.9);
}

/* â€”â€” Page Â« Ã€ propos Â» (page-a-propos.php) â€”â€” */
.page-about {
    padding: 1rem 1rem 3.5rem;
}

.page-about-article {
    max-width: 1100px;
    margin: 0 auto;
}

.page-about-header,
.page-about-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0 0 1.5rem;
}

.page-about-section-header {
    margin-top: 2.75rem;
    margin-bottom: 1.35rem;
}

.page-about-title,
.page-about-section-title {
    margin: 0;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark, #1e293b);
}

.page-about-title-line {
    flex: 1;
    min-width: 4rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--bg-blue), color-mix(in srgb, var(--bg-blue) 15%, transparent));
}

.page-about-intro {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-dark, #334155);
}

.page-about-intro p {
    margin: 0 0 1rem;
}

.page-about-intro p:last-child {
    margin-bottom: 0;
}

/* Images centrÃ©es dans lâ€™Ã©diteur (classique + Gutenberg). */
.page-about-intro img {
    max-width: 100%;
    height: auto;
}

.page-about-intro img.aligncenter,
.page-about-intro .aligncenter img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about-intro .wp-block-image.aligncenter,
.page-about-intro figure.wp-block-image.aligncenter {
    display: table;
    width: auto;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.page-about-intro .wp-block-image.aligncenter img,
.page-about-intro figure.wp-block-image.aligncenter img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-about-intro .wp-block-image:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) {
    max-width: 100%;
}

.page-about-social-box {
    margin: 1.75rem 0 0;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.page-about-social-text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-dark, #334155);
}

.page-about-social-link {
    color: var(--bg-blue);
    font-weight: 600;
    text-decoration: none;
}

.page-about-social-link:hover {
    text-decoration: underline;
}

.page-about-social-muted {
    color: rgba(71, 85, 105, 0.88);
    font-size: 0.92rem;
}

.page-about-team-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.25rem;
}

.page-about-team-empty {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: rgba(71, 85, 105, 0.95);
}

.page-about-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 0.85rem 1rem;
    align-items: start;
    padding: 1.1rem 1.15rem;
    border-radius: 12px;
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.28));
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.page-about-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(145deg, color-mix(in srgb, var(--bg-blue) 12%, transparent), rgba(30, 115, 190, 0.04));
    flex-shrink: 0;
}

.page-about-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-about-card-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--bg-blue);
}

.page-about-card-body {
    min-width: 0;
}

.page-about-card-name {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dark, #1e293b);
}

.page-about-card-name a {
    color: inherit;
    text-decoration: none;
}

.page-about-card-name a:hover {
    text-decoration: underline;
    color: var(--bg-blue);
}

.page-about-card-role {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--bg-blue);
}

.page-about-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(71, 85, 105, 0.95);
}

.page-about-card-meta li {
    margin: 0.15rem 0;
}

.page-about-card-meta a {
    color: var(--bg-blue);
    word-break: break-all;
}

.page-about-card-meta-icon {
    margin-right: 0.25rem;
    color: var(--bg-blue);
}

.page-about-card-socials {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.15rem;
}

.page-about-card-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    color: var(--bg-blue);
    background: rgba(30, 115, 190, 0.08);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.page-about-card-social:hover {
    background: color-mix(in srgb, var(--bg-blue) 18%, transparent);
    color: #155d94;
}

@media (max-width: 520px) {
    .page-about-card {
        grid-template-columns: 72px 1fr;
    }

    .page-about-card-photo {
        width: 72px;
        height: 72px;
    }

    .page-about-card-socials {
        padding-top: 0.35rem;
    }
}

body.theme-dark .page-about-title,
body.theme-dark .page-about-section-title,
body.theme-dark .page-about-card-name {
    color: var(--text-light, #e8f1ff);
}

body.theme-dark .page-about-card-name a {
    color: inherit;
}

body.theme-dark .page-about-card-name a:hover {
    color: #93c5fd;
}

body.theme-dark .page-about-team-empty {
    color: rgba(226, 232, 240, 0.85);
}

body.theme-dark .page-about-intro,
body.theme-dark .page-about-social-text {
    color: rgba(226, 232, 240, 0.92);
}

body.theme-dark .page-about-social-box {
    background: rgba(16, 35, 63, 0.55);
    border-color: var(--border-color, rgba(148, 163, 184, 0.22));
}

body.theme-dark .page-about-card {
    background: var(--surface-panel, rgba(16, 35, 63, 0.92));
    border-color: var(--border-color, rgba(148, 163, 184, 0.22));
}

body.theme-dark .page-about-card-meta {
    color: rgba(203, 213, 225, 0.9);
}

/* Author archive â€” full width, tests rÃ©daction + grille articles (sans sidebar) */
.author-page.author-page--single-col.pro-reviews-page {
    max-width: 1280px;
}

.author-page-hero.pro-reviews-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: 148px;
    padding: 1.35rem 1.35rem 1.28rem;
}

.author-page-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem 1.65rem;
    align-items: center;
}

.author-page-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.75rem;
    align-items: start;
    min-width: 0;
}

.author-page-hero-copy.pro-reviews-hero-copy {
    min-width: 0;
}

.author-page-hero-copy.pro-reviews-hero-copy h1 {
    margin-bottom: 0.42rem;
}

.author-page-bio {
    margin: 0;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
}

.author-page-hero-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    flex-shrink: 0;
}

.author-page-avatar-wrap img,
.author-page-avatar-wrap .avatar {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.author-page-bio--muted {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    opacity: 0.95;
}

.author-page-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    justify-content: flex-end;
}

.author-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 38px;
    padding: 0.38rem 0.88rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.author-page-badge-label {
    opacity: 0.92;
}

.author-page-badge-count {
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.author-page-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.author-page-badge--pro {
    border-color: rgba(147, 197, 253, 0.5);
}

.author-page-badge--news {
    border-color: rgba(52, 211, 153, 0.5);
}

.author-page-meta-links {
    margin: 0;
    text-align: right;
}

.author-page-profile-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.12rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #e0f2fe;
    text-decoration: none;
    line-height: 1.25;
}

.author-page-profile-link-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.author-page-profile-link-hint {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.author-page-profile-link:hover .author-page-profile-link-text {
    color: #fff;
}

.author-page-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

#author-tests.author-page-block {
    margin-top: 1.75rem;
    padding-top: 0;
    border-top: none;
}

.author-page-block .editorial-hero-heading {
    margin-bottom: 1.05rem;
}

.author-page-reviews-grid-wrap {
    margin-top: 0.35rem;
}

.author-page-articles-head.editorial-hero-heading {
    margin-bottom: 1.15rem;
}

.author-page-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem;
    align-items: stretch;
}

.author-page-post-card.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.author-page-post-card.post-card:hover {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.author-page-post-card .post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.35rem 1.4rem 1.45rem;
    color: #374151;
}

.author-page-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.author-page-post-meta--top {
    width: 100%;
    margin: 0 0 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    justify-content: space-between;
    gap: 0.65rem;
}

.author-page-post-meta--bottom {
    margin: 0.75rem 0 0.55rem;
    color: rgba(17, 24, 39, 0.62);
}

.author-page-post-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.author-page-post-meta__item i {
    opacity: 0.82;
    font-size: 0.88em;
}

.author-page-post-meta__sep {
    color: rgba(17, 24, 39, 0.28);
    user-select: none;
    font-weight: 600;
}

.author-page-post-cat {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--bg-blue) 12%, transparent);
    color: var(--bg-blue);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.author-page-post-cat:hover {
    background: rgba(30, 115, 190, 0.2);
    color: #0f172a;
}

.author-page-post-date {
    font-weight: 600;
    color: rgba(17, 24, 39, 0.58);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.author-page-post-excerpt {
    margin: 0 0 0.35rem;
    line-height: 1.58;
    color: rgba(17, 24, 39, 0.78);
}

.author-page .author-page-post-title,
.author-page .post-card h3.author-page-post-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.05rem, 1.1vw, 1.22rem);
    line-height: 1.3;
    font-weight: 700;
    color: #ea580c;
}

/* Titres dâ€™articles : orange (cartes claires) */
.author-page .author-page-post-card h3.author-page-post-title,
.author-page .author-page-post-card h3.author-page-post-title a {
    color: #ea580c !important;
    -webkit-text-fill-color: #ea580c;
}

.author-page .author-page-post-card h3.author-page-post-title a {
    text-decoration: none;
}

.author-page .author-page-post-card h3.author-page-post-title a:hover {
    color: #c2410c !important;
    -webkit-text-fill-color: #c2410c;
}

body.theme-dark .author-page-post-card .author-page-post-excerpt {
    color: rgba(15, 23, 42, 0.82);
}

.author-page-post-card .post-read-more {
    margin-top: auto;
    padding-top: 0.35rem;
    color: var(--bg-blue);
    font-weight: 700;
}

.author-page-post-card .post-read-more:hover {
    color: #0f172a;
}

.author-page-pagination.blog-pagination {
    margin-top: 1.35rem;
}

.author-page-empty {
    margin: 0.5rem 0 0;
    color: rgba(14, 32, 56, 0.72);
}

.author-page .pro-review-body h3 {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
    line-height: 1.35;
}

body.theme-dark .author-page-block {
    border-top-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .author-page-empty {
    color: rgba(203, 213, 225, 0.9);
}

body.theme-dark .author-page-post-card.post-card {
    background: #f8fafc;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

body.theme-dark .author-page-post-card.post-card:hover {
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

body.theme-dark .author-page-post-meta--top {
    border-bottom-color: rgba(148, 163, 184, 0.35);
}

body.theme-dark .author-page-post-meta--bottom {
    color: rgba(15, 23, 42, 0.62);
}

body.theme-dark .author-page-post-meta__sep {
    color: rgba(100, 116, 139, 0.55);
}

body.theme-dark .author-page-post-cat {
    background: color-mix(in srgb, var(--bg-blue) 18%, transparent);
    color: var(--bg-blue);
}

body.theme-dark .author-page-post-cat:hover {
    background: color-mix(in srgb, var(--bg-blue) 28%, transparent);
    color: #0f172a;
}

body.theme-dark .author-page-post-date {
    color: rgba(51, 65, 85, 0.85);
}

body.theme-dark .author-page-post-card .post-content {
    color: #334155;
}

body.theme-dark .author-page .author-page-post-card h3.author-page-post-title,
body.theme-dark .author-page .author-page-post-card h3.author-page-post-title a {
    color: #f97316 !important;
    -webkit-text-fill-color: #f97316;
}

body.theme-dark .author-page .author-page-post-card h3.author-page-post-title a:hover {
    color: #ea580c !important;
    -webkit-text-fill-color: #ea580c;
}

body.theme-dark .author-page-post-card .post-read-more {
    color: var(--bg-blue, var(--theme-blue-light));
}

body.theme-dark .author-page-post-card .post-read-more:hover {
    color: #f97316;
}

@media (max-width: 1060px) {
    .author-page-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .author-page-hero-main {
        grid-template-columns: 1fr;
    }

    .author-page-hero-aside {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }

    .author-page-badges {
        justify-content: flex-start;
    }

    .author-page-meta-links {
        text-align: left;
    }

    .author-page-profile-link {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .author-page-hero-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .author-page-hero-main {
        text-align: center;
    }

    .author-page-hero-copy.pro-reviews-hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .author-page-bio {
        max-width: none;
    }

    .author-page-hero-aside {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .author-page-badges {
        justify-content: center;
    }

    .author-page-meta-links {
        text-align: center;
    }

    .author-page-profile-link {
        align-items: center;
    }

    .author-page-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Profils publics distincts (membre / streamer / organisateur) */
.p4g-profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.p4g-profile-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.member-profile-type-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.member-profile-type-badge--streamer {
    background: color-mix(in srgb, var(--bg-blue) 15%, transparent);
    color: var(--bg-blue);
}

.member-profile-type-badge--organizer {
    background: color-mix(in srgb, var(--bg-accent) 15%, transparent);
    color: var(--bg-accent);
}

.p4g-stream-live-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.p4g-organizer-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p4g-organizer-event-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.p4g-organizer-event-meta {
    display: block;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* PWA shell — voir assets/css/play4geek-pwa-shell.css (enqueue global si PWA active). */

/* Publications texte avec fond coloré (style Facebook) */
.member-feed-text-bg {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0.35rem 0 0.75rem;
    border-radius: 16px;
    overflow: hidden;
    min-height: clamp(240px, 36vw, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.35rem, 3vw, 2rem) clamp(1rem, 3vw, 1.35rem);
    box-shadow: none;
}

.member-feed-text-bg .member-feed-content--text-bg {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    text-align: center;
    font-size: clamp(1.05rem, 3.2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--p4g-text-bg-color, #0f172a);
    text-shadow: var(--p4g-text-bg-shadow, none);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    align-self: center;
}

.member-feed-text-bg .member-feed-content--text-bg p {
    margin: 0 0 0.65rem;
    text-align: center;
}

.member-feed-text-bg .member-feed-content--text-bg p:last-child {
    margin-bottom: 0;
}

.member-feed-text-bg .member-feed-content--text-bg a,
.member-feed-text-bg .member-feed-content--text-bg .member-mention,
.member-feed-text-bg .member-feed-content--text-bg .member-hashtag,
.member-feed-text-bg .member-feed-content--text-bg a[href*="keyword="] {
    text-align: center;
}

.member-feed-text-bg .member-feed-content--text-bg a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

/* Centrage horizontal + vertical — fil, accueil, profil */
.member-feed-text-bg,
.home-community-posts-section .member-feed-card--home-carousel .member-feed-card-body > .member-feed-text-bg,
.community-page .member-feed-card > .member-feed-text-bg,
.member-public-feed-area .member-feed-card > .member-feed-text-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.member-feed-text-bg--light .member-feed-content--text-bg,
.member-feed-text-bg.member-feed-text-bg--light .member-feed-content--text-bg {
    color: var(--p4g-text-bg-color, #fff);
    text-shadow: var(--p4g-text-bg-shadow, 0 1px 3px rgba(0, 0, 0, 0.22));
}

.member-feed-text-bg--coral,
.member-composer-text-bg-shell--coral,
.member-text-bg-picker-swatch--coral {
    --p4g-text-bg-fill: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--sky,
.member-composer-text-bg-shell--sky,
.member-text-bg-picker-swatch--sky {
    --p4g-text-bg-fill: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--mint,
.member-composer-text-bg-shell--mint,
.member-text-bg-picker-swatch--mint {
    --p4g-text-bg-fill: linear-gradient(135deg, #059669 0%, #34d399 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--lavender,
.member-composer-text-bg-shell--lavender,
.member-text-bg-picker-swatch--lavender {
    --p4g-text-bg-fill: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--sunshine,
.member-composer-text-bg-shell--sunshine,
.member-text-bg-picker-swatch--sunshine {
    --p4g-text-bg-fill: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--rose,
.member-composer-text-bg-shell--rose,
.member-text-bg-picker-swatch--rose {
    --p4g-text-bg-fill: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--sunset,
.member-composer-text-bg-shell--sunset,
.member-text-bg-picker-swatch--sunset {
    --p4g-text-bg-fill: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--ocean,
.member-composer-text-bg-shell--ocean,
.member-text-bg-picker-swatch--ocean {
    --p4g-text-bg-fill: linear-gradient(135deg, #0052d4 0%, #4364f7 55%, #6fb1fc 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--grape,
.member-composer-text-bg-shell--grape,
.member-text-bg-picker-swatch--grape {
    --p4g-text-bg-fill: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--night,
.member-composer-text-bg-shell--night,
.member-text-bg-picker-swatch--night {
    --p4g-text-bg-fill: linear-gradient(135deg, #0b1020 0%, #1e293b 55%, #334155 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--play4geek,
.member-composer-text-bg-shell--play4geek,
.member-text-bg-picker-swatch--play4geek {
    --p4g-text-bg-fill: linear-gradient(135deg, #fd895a 0%, #e63946 48%, #1e73be 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--aurora,
.member-composer-text-bg-shell--aurora,
.member-text-bg-picker-swatch--aurora {
    --p4g-text-bg-fill:
        radial-gradient(circle at 18% 28%, rgba(147, 197, 253, 0.95) 0%, rgba(147, 197, 253, 0) 42%),
        radial-gradient(circle at 72% 22%, rgba(251, 207, 232, 0.92) 0%, rgba(251, 207, 232, 0) 38%),
        radial-gradient(circle at 55% 78%, rgba(196, 181, 253, 0.88) 0%, rgba(196, 181, 253, 0) 40%),
        linear-gradient(145deg, #fdf2f8 0%, #eff6ff 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--silk,
.member-composer-text-bg-shell--silk,
.member-text-bg-picker-swatch--silk {
    --p4g-text-bg-fill:
        linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
        linear-gradient(340deg, rgba(120, 90, 60, 0.18) 0%, transparent 48%),
        linear-gradient(135deg, #e8dcc8 0%, #d4c4a8 52%, #c9b896 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--fuchsia,
.member-composer-text-bg-shell--fuchsia,
.member-text-bg-picker-swatch--fuchsia {
    --p4g-text-bg-fill:
        linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, transparent 38%),
        linear-gradient(335deg, rgba(80, 0, 60, 0.25) 0%, transparent 45%),
        linear-gradient(135deg, #be185d 0%, #db2777 45%, #9d174d 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--storm,
.member-composer-text-bg-shell--storm,
.member-text-bg-picker-swatch--storm {
    --p4g-text-bg-fill:
        repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.06) 0 3px, transparent 3px 14px),
        linear-gradient(160deg, rgba(148, 163, 184, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #334155 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--mist,
.member-composer-text-bg-shell--mist,
.member-text-bg-picker-swatch--mist {
    --p4g-text-bg-fill:
        radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 70% 65%, rgba(148, 163, 184, 0.45) 0%, rgba(148, 163, 184, 0) 42%),
        linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--neon,
.member-composer-text-bg-shell--neon,
.member-text-bg-picker-swatch--neon {
    --p4g-text-bg-fill: linear-gradient(135deg, #84cc16 0%, #a3e635 42%, #fde047 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--pearl,
.member-composer-text-bg-shell--pearl,
.member-text-bg-picker-swatch--pearl {
    --p4g-text-bg-fill: linear-gradient(145deg, #fff7ed 0%, #fef3c7 55%, #fde68a 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--bokeh,
.member-composer-text-bg-shell--bokeh,
.member-text-bg-picker-swatch--bokeh {
    --p4g-text-bg-fill:
        radial-gradient(circle at 22% 28%, rgba(248, 113, 113, 0.75) 0%, rgba(248, 113, 113, 0) 28%),
        radial-gradient(circle at 78% 22%, rgba(96, 165, 250, 0.7) 0%, rgba(96, 165, 250, 0) 26%),
        radial-gradient(circle at 62% 72%, rgba(250, 204, 21, 0.55) 0%, rgba(250, 204, 21, 0) 24%),
        radial-gradient(circle at 38% 68%, rgba(244, 114, 182, 0.5) 0%, rgba(244, 114, 182, 0) 22%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background: var(--p4g-text-bg-fill);
}

.member-feed-text-bg--prism,
.member-composer-text-bg-shell--prism,
.member-text-bg-picker-swatch--prism {
    --p4g-text-bg-fill:
        repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 10px),
        linear-gradient(135deg, #22d3ee 0%, #a855f7 28%, #ec4899 56%, #facc15 100%);
    background: var(--p4g-text-bg-fill);
}

/* Contraste texte auto par fond (compositeur + fil) */
.member-feed-text-bg--coral,
.member-composer-text-bg-shell--coral,
.member-feed-text-bg--sky,
.member-composer-text-bg-shell--sky,
.member-feed-text-bg--lavender,
.member-composer-text-bg-shell--lavender,
.member-feed-text-bg--sunset,
.member-composer-text-bg-shell--sunset,
.member-feed-text-bg--ocean,
.member-composer-text-bg-shell--ocean,
.member-feed-text-bg--grape,
.member-composer-text-bg-shell--grape,
.member-feed-text-bg--night,
.member-composer-text-bg-shell--night,
.member-feed-text-bg--play4geek,
.member-composer-text-bg-shell--play4geek,
.member-feed-text-bg--fuchsia,
.member-composer-text-bg-shell--fuchsia,
.member-feed-text-bg--storm,
.member-composer-text-bg-shell--storm,
.member-feed-text-bg--bokeh,
.member-composer-text-bg-shell--bokeh {
    --p4g-text-bg-color: #ffffff;
    --p4g-text-bg-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.member-feed-text-bg--mint,
.member-composer-text-bg-shell--mint,
.member-feed-text-bg--sunshine,
.member-composer-text-bg-shell--sunshine,
.member-feed-text-bg--rose,
.member-composer-text-bg-shell--rose,
.member-feed-text-bg--aurora,
.member-composer-text-bg-shell--aurora,
.member-feed-text-bg--silk,
.member-composer-text-bg-shell--silk,
.member-feed-text-bg--mist,
.member-composer-text-bg-shell--mist,
.member-feed-text-bg--neon,
.member-composer-text-bg-shell--neon,
.member-feed-text-bg--pearl,
.member-composer-text-bg-shell--pearl,
.member-feed-text-bg--prism,
.member-composer-text-bg-shell--prism {
    --p4g-text-bg-color: #0f172a;
    --p4g-text-bg-shadow: 0 1px 2px rgba(255, 255, 255, 0.42);
}

.member-feed-text-bg--txt-white .member-feed-content--text-bg,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--txt-white"] {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.member-feed-text-bg--txt-black .member-feed-content--text-bg,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--txt-black"] {
    color: #0f172a;
    text-shadow: none;
}

.member-feed-text-bg--txt-cream .member-feed-content--text-bg,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--txt-cream"] {
    color: #fff8e7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.member-feed-text-bg--txt-yellow .member-feed-content--text-bg,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--txt-yellow"] {
    color: #fde047;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.member-feed-text-bg--txt-cyan .member-feed-content--text-bg,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--txt-cyan"] {
    color: #67e8f9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
}

.member-feed-text-bg--txt-pink .member-feed-content--text-bg,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--txt-pink"] {
    color: #fbcfe8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.member-feed-text-bg--txt-lime .member-feed-content--text-bg,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--txt-lime"] {
    color: #a3e635;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
}

.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--txt-"] .member-post-composer-textarea::placeholder,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--txt-"] .member-post-edit-textarea::placeholder {
    color: currentColor;
    opacity: 0.72;
}

.member-composer-text-bg-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 14px;
    overflow: visible;
    margin-bottom: 0.35rem;
    border: 1px solid rgba(20, 89, 130, 0.16);
}

.member-composer-text-bg-shell:not([class*="member-composer-text-bg-shell--"]) {
    background: #fff;
}

.member-composer-text-bg-shell .member-post-composer-textarea,
.member-composer-text-bg-shell .member-post-edit-textarea {
    width: 100%;
    min-height: 120px;
    margin-bottom: 0;
    border: 0;
    border-radius: 14px;
    resize: vertical;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, min-height 0.2s ease, box-shadow 0.2s ease;
    padding: 0.55rem 3rem 3rem 0.7rem;
    box-sizing: border-box;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.member-composer-text-bg-shell .member-post-composer-textarea:focus,
.member-composer-text-bg-shell .member-post-edit-textarea:focus,
.member-composer-text-bg-shell .member-post-composer-textarea:focus-visible,
.member-composer-text-bg-shell .member-post-edit-textarea:focus-visible {
    outline: none;
    box-shadow: none;
    border: 0;
}

.member-composer-text-bg-shell:focus-within:not([class*="member-composer-text-bg-shell--"]) {
    border-color: rgba(30, 115, 190, 0.45);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.12);
}

.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--"]:not(.member-composer-text-bg-shell--) {
    min-height: clamp(240px, 36vw, 300px);
    border-color: transparent;
    box-shadow: none;
    background: var(--p4g-text-bg-fill);
    color: var(--p4g-text-bg-color, #0f172a);
    text-shadow: var(--p4g-text-bg-shadow, none);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--"]:not(.member-composer-text-bg-shell--) .member-post-composer-textarea,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--"]:not(.member-composer-text-bg-shell--) .member-post-edit-textarea {
    min-height: clamp(240px, 36vw, 300px);
    border-color: transparent;
    background: transparent;
    text-align: center;
    font-size: clamp(1rem, 3.2vw, 1.2rem);
    font-weight: 700;
    line-height: 1.4;
    color: inherit;
    text-shadow: inherit;
    caret-color: currentColor;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--"]:not(.member-composer-text-bg-shell--):not([class*="member-composer-text-bg-shell--txt-"]) .member-post-composer-textarea::placeholder,
.member-composer-text-bg-shell[class*="member-composer-text-bg-shell--"]:not(.member-composer-text-bg-shell--):not([class*="member-composer-text-bg-shell--txt-"]) .member-post-edit-textarea::placeholder {
    color: currentColor;
    opacity: 0.68;
}

.member-composer-text-bg-shell--light {
    color: var(--p4g-text-bg-color, #fff);
    text-shadow: var(--p4g-text-bg-shadow, 0 1px 3px rgba(0, 0, 0, 0.22));
}

body.theme-dark .member-composer-text-bg-shell:not([class*="member-composer-text-bg-shell--"]) {
    background: rgba(10, 18, 32, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
}

body.theme-dark .member-composer-text-bg-shell .member-post-composer-textarea,
body.theme-dark .member-composer-text-bg-shell .member-post-edit-textarea {
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
}

body.theme-dark .member-composer-text-bg-shell:focus-within:not([class*="member-composer-text-bg-shell--"]) {
    border-color: rgba(125, 211, 252, 0.45);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.14);
}

.member-text-bg-tool-btn.is-active,
.member-text-bg-aa-btn.is-active {
    box-shadow: 0 0 0 2px var(--bg-blue, #1e73be), 0 2px 8px rgba(15, 23, 42, 0.18);
}

.member-composer-text-bg-shell .member-text-bg-controls {
    position: absolute;
    bottom: 0.65rem;
    left: 0.65rem;
    z-index: 5;
    display: block;
    pointer-events: none;
}

.member-composer-text-bg-shell .member-text-bg-controls > * {
    pointer-events: auto;
}

.member-composer-text-bg-shell .member-text-bg-tool-slot {
    position: relative;
    display: inline-flex;
}

.member-composer-text-bg-shell.is-text-bg-picker-open .member-text-bg-controls {
    z-index: 80;
}

.member-composer-text-bg-shell.is-text-bg-picker-open .member-composer-emoji-controls {
    z-index: 1;
}

.member-composer-text-bg-shell.is-text-bg-picker-open .member-composer-emoji-btn {
    opacity: 0;
    pointer-events: none;
    transform: none;
}

.member-composer-text-bg-shell.is-emoji-picker-open .member-composer-emoji-controls {
    z-index: 80;
}

.member-composer-text-bg-shell.is-emoji-picker-open .member-text-bg-controls {
    z-index: 1;
}

.member-composer-text-bg-shell.is-emoji-picker-open .member-text-bg-aa-btn {
    opacity: 0;
    pointer-events: none;
    transform: none;
}

.member-composer-text-bg-shell .member-composer-emoji-controls {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    z-index: 5;
    display: block;
    pointer-events: none;
}

.member-composer-text-bg-shell .member-composer-emoji-controls > * {
    pointer-events: auto;
}

.member-composer-text-bg-shell .member-composer-emoji-tool-slot {
    position: relative;
    display: inline-flex;
}

.member-composer-emoji-btn {
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(20, 89, 130, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #64748b;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.member-composer-emoji-btn:hover {
    transform: scale(1.05);
    color: var(--bg-blue, #1e73be);
}

.member-composer-emoji-btn.is-active,
.member-composer-emoji-btn[aria-expanded="true"] {
    color: var(--bg-blue, #1e73be);
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.22);
}

.member-composer-emoji-btn.is-disabled,
.member-composer-emoji-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.member-composer-emoji-picker.member-emoji-picker {
    display: none;
    margin: 0;
    width: min(360px, calc(100vw - 20px));
    min-width: 0;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
}

.member-composer-emoji-picker.member-emoji-picker.is-open {
    display: flex;
}

.member-composer-emoji-picker.member-emoji-picker.is-floating {
    position: fixed;
    z-index: 10050;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
}

body.theme-dark .member-composer-emoji-btn {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.24);
    color: rgba(226, 232, 240, 0.92);
}

.member-text-bg-aa-btn {
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    background:
        conic-gradient(from 210deg, #f472b6 0deg, #fb923c 52deg, #facc15 104deg, #4ade80 156deg, #38bdf8 208deg, #a78bfa 260deg, #f472b6 360deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.member-text-bg-aa-btn:hover {
    transform: scale(1.05);
}

.member-text-bg-aa-btn-label {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.04em;
}

.member-text-bg-controls {
    position: static;
}

.member-text-bg-tool-slot {
    position: relative;
    display: inline-flex;
}

.member-composer-text-bg-shell .member-text-bg-picker {
    top: auto;
    bottom: calc(100% + 0.4rem);
    left: 0;
    right: auto;
}

.member-text-bg-picker.is-floating {
    position: fixed;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 10050;
    margin: 0;
    box-sizing: border-box;
}

.member-text-bg-picker {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.35rem);
    left: 0;
    width: min(360px, calc(100vw - 20px));
    min-width: 0;
    max-width: calc(100vw - 20px);
    margin-top: 0;
    padding: 0.75rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(20, 89, 130, 0.14);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    box-sizing: border-box;
}

.member-feed-composer,
.member-post-edit-form-scroll {
    position: relative;
}

.member-text-bg-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.member-text-bg-picker-lead {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.62);
}

.member-text-bg-picker-lead--text {
    margin-top: 0.65rem;
}

.member-text-bg-picker:not(.is-text-color-enabled) .member-text-bg-picker-lead--text,
.member-text-bg-picker:not(.is-text-color-enabled) .member-text-bg-picker-grid--text {
    opacity: 0.45;
    pointer-events: none;
}

.member-text-bg-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
    width: 100%;
}

.member-text-bg-picker-grid--text {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-text-bg-picker-swatch {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    min-height: 2.5rem;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 2px 8px rgba(15, 23, 42, 0.12);
}

.member-text-bg-picker .member-text-bg-picker-swatch:not(.member-text-bg-picker-swatch--txt) {
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.member-profile-form .member-text-bg-picker .member-text-bg-picker-swatch[data-text-bg],
.member-post-edit-form .member-text-bg-picker .member-text-bg-picker-swatch[data-text-bg] {
    min-height: 0;
    padding: 0;
    border-radius: 10px;
    background: var(--p4g-text-bg-fill, #cbd5e1) !important;
    color: transparent !important;
}

.member-profile-form .member-composer-text-bg-shell .member-composer-emoji-btn,
.member-post-edit-form .member-composer-text-bg-shell .member-composer-emoji-btn {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #64748b !important;
}

body.theme-dark .member-profile-form .member-composer-text-bg-shell .member-composer-emoji-btn,
body.theme-dark .member-post-edit-form .member-composer-text-bg-shell .member-composer-emoji-btn {
    background: rgba(15, 23, 42, 0.88) !important;
    color: rgba(226, 232, 240, 0.92) !important;
}

.member-profile-form .member-composer-text-bg-shell .member-text-bg-aa-btn,
.member-post-edit-form .member-composer-text-bg-shell .member-text-bg-aa-btn {
    background:
        conic-gradient(from 210deg, #f472b6 0deg, #fb923c 52deg, #facc15 104deg, #4ade80 156deg, #38bdf8 208deg, #a78bfa 260deg, #f472b6 360deg) !important;
    color: #fff !important;
}

.member-profile-form .member-composer-text-bg-shell .member-text-bg-aa-btn:hover,
.member-post-edit-form .member-composer-text-bg-shell .member-text-bg-aa-btn:hover {
    background:
        conic-gradient(from 210deg, #f472b6 0deg, #fb923c 52deg, #facc15 104deg, #4ade80 156deg, #38bdf8 208deg, #a78bfa 260deg, #f472b6 360deg) !important;
    color: #fff !important;
    filter: brightness(1.04);
}

.member-profile-form .member-text-bg-picker .member-text-bg-picker-swatch[data-text-bg]:hover,
.member-post-edit-form .member-text-bg-picker .member-text-bg-picker-swatch[data-text-bg]:hover {
    background: var(--p4g-text-bg-fill, #cbd5e1) !important;
    color: transparent !important;
    filter: brightness(1.06);
}

.member-text-bg-picker .member-text-bg-picker-swatch:hover {
    transform: scale(1.04);
}

.member-text-bg-picker-clear {
    min-height: auto;
    border: 0;
    border-radius: 0;
    padding: 0.15rem 0.35rem;
    background: transparent !important;
    color: var(--bg-blue, #1e73be) !important;
    font-weight: 700;
    cursor: pointer;
}

.member-profile-form .member-text-bg-picker .member-text-bg-picker-clear:hover,
.member-post-edit-form .member-text-bg-picker .member-text-bg-picker-clear:hover {
    background: transparent !important;
    color: var(--bg-blue, #1e73be) !important;
    filter: brightness(0.92);
}

.member-text-bg-picker-swatch.is-selected {
    border-color: var(--bg-blue, #1e73be);
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.25);
}

.member-text-bg-picker-swatch--txt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: inherit;
    line-height: normal;
    background: #f8fafc;
}

.member-text-bg-picker-swatch-letter {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.member-text-bg-picker-swatch--txt-auto {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 48%, #0f172a 52%, #0f172a 100%);
}

.member-text-bg-picker-swatch--txt-auto .member-text-bg-picker-swatch-letter {
    color: #64748b;
}

.member-text-bg-picker-swatch--txt-white {
    background: #ffffff;
}

.member-text-bg-picker-swatch--txt-white .member-text-bg-picker-swatch-letter {
    color: #0f172a;
}

.member-text-bg-picker-swatch--txt-black {
    background: #0f172a;
}

.member-text-bg-picker-swatch--txt-black .member-text-bg-picker-swatch-letter {
    color: #ffffff;
}

.member-text-bg-picker-swatch--txt-cream {
    background: #fff8e7;
}

.member-text-bg-picker-swatch--txt-cream .member-text-bg-picker-swatch-letter {
    color: #92400e;
}

.member-text-bg-picker-swatch--txt-yellow {
    background: #fde047;
}

.member-text-bg-picker-swatch--txt-yellow .member-text-bg-picker-swatch-letter {
    color: #713f12;
}

.member-text-bg-picker-swatch--txt-cyan {
    background: #67e8f9;
}

.member-text-bg-picker-swatch--txt-cyan .member-text-bg-picker-swatch-letter {
    color: #0e7490;
}

.member-text-bg-picker-swatch--txt-pink {
    background: #fbcfe8;
}

.member-text-bg-picker-swatch--txt-pink .member-text-bg-picker-swatch-letter {
    color: #9d174d;
}

.member-text-bg-picker-swatch--txt-lime {
    background: #a3e635;
}

.member-text-bg-picker-swatch--txt-lime .member-text-bg-picker-swatch-letter {
    color: #365314;
}

.member-text-bg-picker-hint {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(15, 23, 42, 0.62);
}

body.theme-dark .member-text-bg-picker {
    background: var(--surface-panel, #1a2332);
    border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .member-text-bg-picker-hint {
    color: rgba(232, 240, 255, 0.68);
}

body.theme-dark .member-text-bg-picker-lead {
    color: rgba(232, 240, 255, 0.62);
}

.home-community-posts-section .member-feed-text-bg .member-feed-content--text-bg,
.home-community-posts-section .member-feed-text-bg .member-feed-content--text-bg p {
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    text-align: center;
}

.home-community-posts-section .member-feed-card--home-carousel .member-feed-card-body:has(> .member-feed-text-bg) {
    overflow: hidden;
    min-height: 0;
}

.home-community-posts-section .member-feed-card--home-carousel .member-feed-card-body > .member-feed-text-bg {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    padding: clamp(0.85rem, 2.5vw, 1.35rem) clamp(0.75rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 680px) {
    .member-text-bg-picker.is-floating {
        width: calc(100vw - 20px) !important;
        max-width: 400px;
    }

    .member-text-bg-picker-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .member-text-bg-picker-swatch {
        min-height: 2.85rem;
    }

    .member-composer-emoji-picker.member-emoji-picker.is-floating {
        width: calc(100vw - 20px) !important;
        max-width: 400px;
    }

    .member-composer-emoji-picker .member-emoji-picker-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .member-composer-emoji-picker .member-emoji-choice {
        min-height: 2.35rem;
        font-size: 1.2rem;
    }

    .member-feed-text-bg {
        min-height: clamp(200px, 48vw, 280px);
        padding: 1.15rem 0.85rem;
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
        box-shadow: none;
    }

    .community-page .member-feed-card > .member-feed-text-bg,
    .member-public-feed-area .member-feed-card > .member-feed-text-bg {
        min-height: clamp(160px, 42vw, 220px);
        border-radius: 8px;
    }

    .member-feed-text-bg .member-feed-content--text-bg {
        font-size: clamp(0.95rem, 4.2vw, 1.25rem);
        line-height: 1.45;
    }

    .member-composer-text-bg-shell[class*="member-composer-text-bg-shell--"]:not(.member-composer-text-bg-shell--) {
        min-height: clamp(200px, 50vw, 280px);
    }

    .member-composer-text-bg-shell[class*="member-composer-text-bg-shell--"]:not(.member-composer-text-bg-shell--) .member-post-composer-textarea,
    .member-composer-text-bg-shell[class*="member-composer-text-bg-shell--"]:not(.member-composer-text-bg-shell--) .member-post-edit-textarea {
        min-height: clamp(200px, 50vw, 280px);
        font-size: clamp(0.95rem, 4.2vw, 1.15rem);
        padding: 0.5rem 2.65rem 2.65rem 0.55rem;
    }

    .member-composer-text-bg-shell .member-text-bg-controls {
        left: 0.5rem;
        bottom: 0.5rem;
    }

    .member-composer-text-bg-shell .member-composer-emoji-controls {
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .home-community-posts-section .member-feed-card--home-carousel .member-feed-card-body > .member-feed-text-bg {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0.85rem 0.65rem;
    }

    .member-composer-footer {
        gap: 0.5rem;
    }

    .member-composer-footer .member-composer-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .member-composer-submit {
        min-height: 36px;
        padding: 0 0.95rem;
        font-size: 0.84rem;
    }
}
