/* CœursConnect — correctifs UI responsive centralisés. */

/* Navigation principale et hamburger. */
@media (min-width: 901px) {
    .premium-menu,
    .app-header > .app-mobile-menu-toggle,
    .app-mobile-drawer,
    .app-mobile-drawer-backdrop {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .premium-menu,
    .app-header > .app-mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin-left: 4px !important;
        border: 1px solid rgba(113, 91, 108, .16) !important;
        border-radius: 13px !important;
        background: var(--surface, #fff) !important;
        color: var(--ink, #2d2432) !important;
        box-shadow: 0 8px 22px rgba(54, 34, 49, .08) !important;
        line-height: 1 !important;
        font-size: 21px !important;
        position: relative !important;
        z-index: 10020 !important;
    }

    .premium-nav,
    .app-header {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .app-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 10040 !important;
    }

    .premium-nav .premium-logo,
    .app-header > .brand {
        min-width: 0 !important;
        flex: 0 1 auto !important;
    }

    .premium-nav .premium-nav-actions {
        min-width: max-content !important;
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }

    .premium-nav .premium-nav-actions .theme-switch { display: none !important; }
    .premium-nav .premium-menu { order: 3 !important; margin-left: 0 !important; }
    .app-header > .header-actions { display: none !important; }
    .app-header > .app-mobile-menu-toggle {
        margin-left: auto !important;
        z-index: 10060 !important;
    }

    /* Le signal actif reste directement sous le texte du menu mobile. */
    .premium-nav-links > a {
        position: relative !important;
        width: fit-content !important;
        align-self: flex-start !important;
        padding-bottom: 10px !important;
        border-bottom: 0 !important;
    }

    .premium-nav-links > a.active::after {
        content: "" !important;
        position: absolute !important;
        top: auto !important;
        right: auto !important;
        bottom: 3px !important;
        left: 0 !important;
        width: 100% !important;
        height: 2px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: linear-gradient(90deg, #ff668b, #f23870) !important;
        box-shadow: 0 2px 8px rgba(242, 56, 112, .32) !important;
        transform: none !important;
    }
}

@media (max-width: 380px) {
    .premium-nav { gap: 5px !important; }
    .premium-nav .premium-logo { font-size: 15px !important; }
}

/* Bouton de connexion premium : sombre, fin et lisible sur le héros. */
.premium-nav .premium-login.premium-login-pro {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .055) !important;
    color: rgba(255, 255, 255, .9) !important;
    box-shadow: none !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: .01em;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    align-self: center !important;
    flex: 0 0 auto !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.premium-nav .premium-login.premium-login-pro .premium-login-icon {
    display: inline-grid;
    place-items: center;
    position: static !important;
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #ff5f88 !important;
    box-shadow: none !important;
    transform: none !important;
}

.premium-nav .premium-login.premium-login-pro .premium-login-icon svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.premium-nav .premium-login.premium-login-pro .premium-login-label {
    display: inline !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    text-shadow: none !important;
    transform: none !important;
}

.premium-nav .premium-login.premium-login-pro .premium-login-spinner {
    display: none;
    flex: 0 0 11px;
    width: 11px;
    height: 11px;
    box-sizing: border-box;
    border: 1.5px solid rgba(255, 255, 255, .28);
    border-top-color: #ff668c;
    border-radius: 50%;
    animation: cc-login-spin .65s linear infinite;
}

.premium-nav .premium-login.premium-login-pro:hover {
    transform: none !important;
    border-color: rgba(255, 111, 147, .34) !important;
    background: rgba(255, 255, 255, .085) !important;
    box-shadow: none !important;
}

/* Le header passe sur fond clair après défilement : le bouton garde alors
   exactement les mêmes dimensions, avec un contraste doux mais lisible. */
.premium-nav.cc-nav-scrolled .premium-login.premium-login-pro {
    border-color: rgba(54, 42, 52, .12) !important;
    background: rgba(255, 255, 255, .72) !important;
    color: #403540 !important;
    box-shadow: 0 2px 10px rgba(47, 36, 48, .035) !important;
}

.premium-nav.cc-nav-scrolled .premium-login.premium-login-pro:hover {
    border-color: rgba(238, 63, 109, .22) !important;
    background: #fff !important;
    color: #2f2630 !important;
}

.premium-nav.cc-nav-scrolled .premium-login.premium-login-pro .premium-login-spinner {
    border-color: rgba(47, 38, 48, .16);
    border-top-color: #e84370;
}

.premium-nav .premium-login.premium-login-pro.is-loading {
    pointer-events: none !important;
    opacity: .78;
}

.premium-nav .premium-login.premium-login-pro.is-loading .premium-login-icon { display: none !important; }
.premium-nav .premium-login.premium-login-pro.is-loading .premium-login-spinner { display: inline-block; }

@keyframes cc-login-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .premium-nav .premium-login.premium-login-pro {
        gap: 4px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        padding: 0 7px !important;
        border-radius: 9px !important;
        font-size: 9px !important;
    }

    .premium-nav .premium-login.premium-login-pro .premium-login-label { font-size: 9px !important; }

    .premium-nav .premium-login.premium-login-pro .premium-login-icon {
        flex-basis: 12px;
        width: 12px;
        height: 12px;
    }

    .premium-nav .premium-login.premium-login-pro .premium-login-icon svg { width: 11px; height: 11px; }
}

@media (max-width: 380px) {
    .premium-nav .premium-login.premium-login-pro {
        height: 27px !important;
        min-height: 27px !important;
        max-height: 27px !important;
        gap: 3px !important;
        padding: 0 6px !important;
        font-size: 8.5px !important;
    }

    .premium-nav .premium-login.premium-login-pro .premium-login-label { font-size: 8.5px !important; }

    .premium-nav .premium-login.premium-login-pro .premium-login-icon {
        flex-basis: 11px;
        width: 11px;
        height: 11px;
    }
}

/* Méga-menu membre sur l’accueil connecté. */
.premium-home-relations { position: relative; display: flex; align-items: center; }

.premium-home-relations > .desktop-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.premium-home-relations > .desktop-nav-trigger span {
    font-size: .72em;
    transition: transform .18s ease;
}

.premium-home-relations > .desktop-nav-trigger[aria-expanded="true"] span { transform: rotate(180deg); }

.premium-home-relations > .member-mega-menu {
    top: calc(100% + 22px);
    left: 50%;
    width: min(760px, calc(100vw - 48px));
    transform: translateX(-50%);
}

@media (max-width: 900px) {
    .premium-home-relations { display: none !important; }
}

/* Cartes profils et répertoires. */
.profile-message-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(238, 63, 109, .22);
    border-radius: 11px;
    background: linear-gradient(135deg, #fff8fa, #fff0f4);
    color: #d93663 !important;
    box-shadow: 0 7px 18px rgba(141, 55, 83, .09);
    font-size: .76rem;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.profile-message-action svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-message-action:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ff5a80, #ed3f6d);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(237, 63, 109, .22);
}

.profile-message-action.is-plan-locked {
    border-color: transparent;
    background: #f1edf0;
    color: #7c6f79 !important;
    box-shadow: none;
}

.profile-message-label-short { display: none; }

.discovery-profile-grid,
.members-profile-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch;
}

.discovery-profile-grid > .profile-card { min-width: 0; }
.member-map-card { margin-top: 28px; }

@media (max-width: 900px) {
    .discovery-profile-grid { gap: 12px !important; }
}

@media (max-width: 720px) {
    .profile-message-action {
        width: 100%;
        min-width: 0;
        min-height: 32px;
        padding: 6px 7px;
        gap: 5px;
        border-radius: 9px;
        font-size: .7rem;
    }

    .profile-message-action svg { width: 13px; height: 13px; flex-basis: 13px; }
    .profile-message-label-full { display: none; }
    .profile-message-label-short { display: inline; }

    .discovery-profile-grid,
    .members-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .member-map-card { margin-top: 20px; }
}

/* Tiroir membre mobile : interaction tactile, hiérarchie claire et focus accessible. */
@media (max-width: 900px) {
    html.cc-mobile-menu-open,
    body.cc-mobile-menu-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    .app-mobile-drawer-backdrop[hidden],
    .app-mobile-drawer[hidden] {
        display: none !important;
    }

    .app-mobile-drawer-backdrop:not([hidden]) {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 10030 !important;
        background: rgba(28, 17, 28, .42) !important;
        opacity: 0;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        transition: opacity .2s ease;
    }

    .app-mobile-drawer-backdrop.is-open { opacity: 1; }

    .app-mobile-drawer:not([hidden]) {
        display: flex !important;
        position: fixed !important;
        top: calc(env(safe-area-inset-top, 0px) + 78px) !important;
        right: 12px !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
        left: 12px !important;
        z-index: 10050 !important;
        width: auto !important;
        max-width: 520px !important;
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 90px) !important;
        margin: 0 0 0 auto !important;
        padding: 14px !important;
        flex-direction: column !important;
        gap: 12px !important;
        overflow: hidden !important;
        border: 1px solid rgba(91, 67, 86, .13) !important;
        border-radius: 22px !important;
        background: rgba(255, 255, 255, .98) !important;
        color: var(--ink, #2d2432) !important;
        box-shadow: 0 24px 70px rgba(43, 25, 42, .24) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(.985);
        transform-origin: top right;
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .app-mobile-drawer.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .app-mobile-drawer-account {
        display: flex !important;
        align-items: center !important;
        gap: 11px !important;
        flex: 0 0 auto !important;
        padding: 4px 4px 13px !important;
        border-bottom: 1px solid rgba(91, 67, 86, .1) !important;
    }

    .app-mobile-drawer-account > div {
        display: grid !important;
        min-width: 0;
        gap: 2px;
    }

    .app-mobile-drawer-account strong {
        overflow: hidden;
        color: var(--ink, #2d2432) !important;
        font-size: .92rem !important;
        line-height: 1.2 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-mobile-drawer-account small {
        color: #897a86 !important;
        font-size: .72rem !important;
    }

    .app-mobile-drawer-nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        min-height: 0 !important;
        padding: 1px 2px 8px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(238, 63, 109, .3) transparent;
    }

    .app-mobile-drawer-nav .app-mobile-menu-heading {
        grid-column: 1 / -1 !important;
        margin: 8px 3px 1px !important;
        color: #a28f9d !important;
        font-size: .64rem !important;
        font-weight: 800 !important;
        letter-spacing: .12em !important;
        text-transform: uppercase !important;
    }

    .app-mobile-drawer-nav > a {
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
        min-width: 0 !important;
        min-height: 46px !important;
        padding: 9px 10px !important;
        border: 1px solid transparent !important;
        border-radius: 13px !important;
        background: #faf7f9 !important;
        color: #413542 !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .app-mobile-drawer-nav > a > span {
        display: inline-grid !important;
        place-items: center !important;
        flex: 0 0 26px !important;
        width: 26px !important;
        height: 26px !important;
        border-radius: 9px !important;
        background: #fff !important;
        color: #e94370 !important;
        box-shadow: 0 3px 10px rgba(83, 43, 69, .07) !important;
    }

    .app-mobile-drawer-nav > a > b {
        overflow: hidden;
        font-size: .76rem !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-mobile-drawer-nav > a:hover,
    .app-mobile-drawer-nav > a:focus-visible,
    .app-mobile-drawer-nav > a.active {
        border-color: rgba(238, 63, 109, .17) !important;
        background: #fff1f5 !important;
        color: #c92f5b !important;
        outline: none !important;
    }

    .app-mobile-drawer-nav > a.app-mobile-admin-access {
        grid-column: 1 / -1 !important;
        min-height: 50px !important;
        border-color: rgba(231, 62, 107, .22) !important;
        background: linear-gradient(135deg, #f4557d, #d93667) !important;
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(217, 54, 103, .2) !important;
    }

    .app-mobile-drawer-nav > a.app-mobile-admin-access > span {
        background: rgba(255, 255, 255, .18) !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    .app-mobile-drawer-nav > a.app-mobile-admin-access > b {
        white-space: normal !important;
    }

    .app-mobile-drawer-footer {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
        padding-top: 11px !important;
        border-top: 1px solid rgba(91, 67, 86, .1) !important;
    }

    .app-mobile-drawer-footer > * {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
        border: 1px solid rgba(91, 67, 86, .11) !important;
        border-radius: 12px !important;
        background: #fff !important;
        color: #514451 !important;
        font: inherit !important;
        font-size: .76rem !important;
        text-decoration: none !important;
        cursor: pointer !important;
        touch-action: manipulation;
    }

    .app-mobile-drawer-footer .danger-link {
        border-color: rgba(223, 55, 96, .14) !important;
        background: #fff3f6 !important;
        color: #cc315d !important;
    }
}

@media (max-width: 390px) {
    .app-mobile-drawer:not([hidden]) {
        right: 9px !important;
        left: 9px !important;
        padding: 11px !important;
        border-radius: 19px !important;
    }

    .app-mobile-drawer-nav { gap: 6px !important; }
    .app-mobile-drawer-nav > a { min-height: 44px !important; padding: 8px !important; }
    .app-mobile-drawer-nav > a > b { font-size: .71rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    .app-mobile-drawer,
    .app-mobile-drawer-backdrop { transition: none !important; }
}

/* Découvrir — ajustements ciblés V29. */
.discovery-page-pro .welcome-strip {
    position: relative;
    width: 100vw;
    min-height: 172px;
    margin: -38px calc(50% - 50vw) 0;
    padding: 28px max(24px, calc((100vw - 1180px) / 2));
    overflow: hidden;
    border-radius: 0;
    background-image: linear-gradient(90deg, rgba(33,18,38,.88), rgba(83,26,65,.72) 53%, rgba(43,20,45,.34)), url('../images/pages/hero-about.webp');
    background-position: center 42%;
    background-size: cover;
    box-shadow: 0 13px 34px rgba(38,22,43,.10);
}
.discovery-page-pro .welcome-strip h1 { font-size: clamp(30px,3vw,42px); }
.discovery-page-pro .welcome-strip .plan-meter { backdrop-filter: blur(12px); }
.discovery-toolbar { justify-content: flex-start; }
.discovery-toolbar > div:first-child { flex: 1; }
.discovery-profile-search { flex: 0 1 290px; }
.discovery-profile-search .cc-global-profile-search { width: 100%; min-width: 230px; }

html[data-theme="dark"] .discovery-page-pro .filter-bar label {
    color: #c9c0cd;
    border-color: #3b3441;
    background: #211c26;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-theme="dark"] .discovery-page-pro .filter-bar input,
html[data-theme="dark"] .discovery-page-pro .filter-bar select {
    color: #f4edf6;
    background-color: transparent;
}
html[data-theme="dark"] .discovery-page-pro .filter-bar input::placeholder { color: #978d9d; opacity: 1; }
html[data-theme="dark"] .discovery-page-pro .filter-bar select option { color: #f4edf6; background: #211c26; }
html[data-theme="dark"] .discovery-profile-search .cc-global-profile-search {
    border-color: #3b3441;
    background: #211c26;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
html[data-theme="dark"] .discovery-profile-search .cc-global-profile-search input { color: #f4edf6; }

@media (max-width: 980px) {
    .discovery-profile-search { flex-basis: 250px; }
    .discovery-toolbar { flex-wrap: wrap; }
    .discovery-toolbar .filter-bar { width: 100%; justify-content: flex-end; }
}
@media (max-width: 820px) {
    .discovery-page-pro .welcome-strip {
        min-height: 150px;
        margin-top: -22px;
        padding: 23px 14px;
    }
    .discovery-profile-search { width: 100%; flex-basis: 100%; }
    .discovery-profile-search .cc-global-profile-search { width: 100%; min-width: 0; }
    .discovery-toolbar .filter-bar { justify-content: stretch; }
    .discovery-profile-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
    .discovery-page-pro .welcome-strip { min-height: 142px; }
    .discovery-page-pro .welcome-strip .plan-meter { display: none; }
}

/* Lisibilité globale V30 — hausse mesurée des microtextes. */
body small { font-size: max(11px, .72em) !important; line-height: 1.45; }
.member-mega-grid section > small,
.member-mega-grid a small,
.profile-view-presence,
.presence,
.profile-plan-chip,
.profile-card .match-score { font-size: 10px !important; }
.member-mega-grid a strong { font-size: 11px !important; }

.messenger-conversation small,
.messenger-thread-menu button,
.messenger-thread-menu a,
.messenger-typing,
.messenger-reply-preview,
.composer-reply-preview,
.chat-bubble-contact small,
.chat-bubble-balloon blockquote,
.chat-bubble-attachment,
.chat-bubble-message-meta,
.chat-bubble-typing,
.chat-bubble-media.image span,
.chat-bubble-media a,
.chat-bubble-reply-preview small,
.chat-bubble-file-preview small,
.chat-bubble-tools-menu button small,
.chat-bubble-emoji-title { font-size: 10px !important; }
.chat-bubble-balloon,
.widget-bubble,
.message-bubble { font-size: 12px !important; line-height: 1.45; }
.chat-bubble-input textarea,
.messenger-composer textarea { font-size: 13px !important; }

.premium-nav .premium-login.premium-login-pro .premium-login-label {
    font-size: 13px !important;
    font-weight: 800 !important;
}
@media (max-width: 820px) {
    .premium-nav .premium-login.premium-login-pro .premium-login-label { font-size: 11px !important; }
}

/* Répertoire V31 — recherche sortie du menu et placée avant les profils. */
.members-count-line { align-items: center; }
.members-count-line > span { flex: 0 0 auto; }
.members-profile-search { width: min(330px, 31vw); margin-left: auto; }
.members-profile-search .cc-global-profile-search { width: 100%; min-width: 0; }
.members-count-line > small { margin-left: 12px !important; white-space: nowrap; }

/* Chat V31 — confort de lecture renforcé sans changer les dimensions. */
.message-bubble,
.widget-bubble,
.chat-bubble-balloon { font-size: 14px !important; line-height: 1.5 !important; }
.message-bubble time,
.message-bubble blockquote,
.widget-bubble blockquote,
.chat-bubble-balloon blockquote,
.chat-bubble-contact small,
.chat-bubble-message-meta,
.chat-bubble-typing,
.messenger-typing,
.messenger-conversation small,
.messenger-reply-preview,
.composer-reply-preview,
.chat-bubble-reply-preview small,
.chat-bubble-file-preview small,
.chat-bubble-attachment,
.chat-bubble-tools-menu button small { font-size: 11px !important; }
.chat-bubble-contact strong,
.messenger-conversation strong { font-size: 13px !important; }
.chat-bubble-input textarea,
.messenger-composer textarea,
.composer-input textarea { font-size: 14px !important; }

@media (max-width: 820px) {
    .members-count-line { flex-wrap: wrap; }
    .members-profile-search { order: 3; width: 100%; margin: 10px 0 2px; }
    .members-count-line > small { margin-left: auto !important; }
}

/* Relations V32 — page soft, raffinée et responsive. */
.friends-page-pro{min-height:calc(100vh - var(--header));padding-bottom:80px;background:linear-gradient(180deg,#fffafd 0,#fbf8fc 42%,#fff 100%)}
.friends-hero-pro{position:relative;min-height:210px;overflow:hidden;color:#fff;background-image:url('../images/pages/hero-about.webp');background-position:center 43%;background-size:cover;box-shadow:0 14px 34px rgba(35,21,39,.10)}
.friends-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(28,16,34,.88) 0%,rgba(54,24,48,.67) 48%,rgba(33,17,35,.25) 100%)}
.friends-hero-inner{position:relative;z-index:1;min-height:210px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding-top:28px;padding-bottom:28px}
.friends-hero-copy{max-width:720px}.friends-hero-eyebrow{display:flex;align-items:center;gap:9px;margin-bottom:10px;color:#ff91aa;font-size:11px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}.friends-hero-eyebrow:before{content:"";width:24px;height:2px;border-radius:99px;background:#ff6689}
.friends-hero-copy h1{margin:0;color:#fff;font-size:clamp(34px,4vw,48px);line-height:1.04;letter-spacing:-.045em;text-shadow:0 3px 18px rgba(0,0,0,.18)}.friends-hero-copy p{max-width:650px;margin:10px 0 0;color:rgba(255,255,255,.84);font-size:14px;line-height:1.6}
.friends-discover-btn{display:inline-flex;min-height:45px;align-items:center;gap:9px;padding:0 15px;color:#fff;border:1px solid rgba(255,255,255,.38);border-radius:999px;background:rgba(25,14,30,.28);box-shadow:0 10px 28px rgba(0,0,0,.10);backdrop-filter:blur(11px);font-size:12px;font-weight:780;transition:.2s}.friends-discover-btn:hover{color:#fff;border-color:rgba(255,255,255,.62);background:rgba(239,62,105,.72);transform:translateY(-1px)}.friends-discover-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.friends-discover-btn i{font-style:normal;font-size:17px}
.friends-content-pro{display:grid;gap:18px;padding-top:26px}.friends-panel{padding:0;overflow:hidden;border:1px solid rgba(86,58,79,.09);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 14px 38px rgba(52,31,63,.055)}
.friends-panel-heading{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:18px 22px;margin:0;border-bottom:1px solid #f1eaee}.friends-panel-heading>div{display:flex;align-items:center;gap:10px}.friends-panel-heading h2{margin:0;font-size:18px}.friends-section-icon{display:grid;width:34px;height:34px;place-items:center;color:#dc3c68;border-radius:11px;background:#fff0f5;font-size:17px}.friends-count{display:grid;min-width:24px;height:24px;padding:0 7px;place-items:center;color:#d83b67;border-radius:999px;background:#fff0f4;font-size:10px;font-weight:850}
.friends-request-list{padding:0 22px}.friends-request-list article{min-height:88px;padding:14px 0;gap:15px}.friends-person-avatar,.friends-card-avatar{display:block;flex:none}.friends-person-copy h3{margin:0 0 2px;font-size:15px}.friends-person-copy p{font-size:11px}.friends-person-copy small{font-size:10px!important}.friends-request-actions{margin-left:auto}
.friends-action-btn,.friends-card-btn{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid #e8dfe5;border-radius:11px;background:#fff;color:#4b3c48;font-size:11px;font-weight:780;transition:.18s}.friends-action-btn:hover,.friends-card-btn:hover{border-color:#f0a9bb;background:#fff6f8;transform:translateY(-1px)}.friends-action-btn svg,.friends-card-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.friends-action-btn.is-accept,.friends-card-btn.is-message{color:#fff;border-color:#e7436d;background:linear-gradient(135deg,#f55e80,#db3765);box-shadow:0 8px 18px rgba(220,55,101,.16)}.friends-action-btn.is-accept:hover,.friends-card-btn.is-message:hover{background:linear-gradient(135deg,#ef5277,#cf2f5c)}
.friends-list-panel{padding-bottom:20px}.friends-people-grid{padding:20px 22px 4px;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.friends-people-grid article{padding:20px 14px;border-color:#eee6eb;border-radius:18px;background:linear-gradient(180deg,#fff,#fffbfc);transition:.2s}.friends-people-grid article:hover{border-color:#f2c7d3;box-shadow:0 12px 26px rgba(60,34,53,.07);transform:translateY(-2px)}.friends-people-grid h3{font-size:15px}.friends-card-actions{display:flex;justify-content:center;gap:7px;margin-top:13px}.friends-card-btn{min-height:35px;padding:0 11px}
.profile-text-action{gap:5px}.profile-button-icon{display:inline-grid;min-width:14px;place-items:center;color:#dc456e;font-size:12px;line-height:1}.profile-text-action.active .profile-button-icon{color:inherit}
html[data-theme="dark"] .friends-page-pro{background:#100e16}html[data-theme="dark"] .friends-panel{border-color:#312a36;background:#19161e}html[data-theme="dark"] .friends-panel-heading{border-color:#302934}html[data-theme="dark"] .friends-people-grid article{border-color:#312a36;background:#1d1922}html[data-theme="dark"] .friends-action-btn,html[data-theme="dark"] .friends-card-btn{color:#eee8f0;border-color:#3d3542;background:#24202a}
@media(max-width:900px){.friends-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.friends-hero-pro,.friends-hero-inner{min-height:185px}.friends-hero-inner{align-items:flex-start;justify-content:center;flex-direction:column;gap:16px;padding-top:25px;padding-bottom:25px}.friends-hero-copy h1{font-size:32px}.friends-discover-btn{min-height:40px}.friends-content-pro{width:min(100% - 24px,680px);padding-top:16px}.friends-panel{border-radius:18px}.friends-panel-heading{padding:15px}.friends-request-list{padding:0 15px}.friends-request-list article{align-items:flex-start;flex-wrap:wrap}.friends-person-copy{min-width:calc(100% - 82px)}.friends-request-actions{width:100%;margin-left:0;padding-left:72px}.friends-request-actions form{flex:1}.friends-action-btn{width:100%}.friends-people-grid{padding:15px;grid-template-columns:1fr 1fr;gap:10px}}
@media(max-width:460px){.friends-hero-copy h1{font-size:28px}.friends-hero-copy p{font-size:12px}.friends-discover-btn{width:100%}.friends-request-actions{padding-left:0}.friends-people-grid{grid-template-columns:1fr}.friends-people-grid article{display:grid;grid-template-columns:auto 1fr;align-items:center;text-align:left}.friends-people-grid .friends-card-avatar{grid-row:1/4}.friends-people-grid .avatar{margin:0}.friends-card-actions{justify-content:flex-start}.friends-card-btn{flex:1}}

/* Relations V33 — blocage et retrait d’amitié. */
.friends-action-btn.is-block,.friends-card-btn.is-block{color:#bb3658;border-color:#f0cfda;background:#fff7f9}.friends-action-btn.is-block:hover,.friends-card-btn.is-block:hover{color:#fff;border-color:#d93b63;background:#d93b63}.friends-card-btn.is-remove{color:#8a5361;border-color:#ead9df;background:#fffafb}.friends-card-btn.is-remove:hover{color:#a92f50;border-color:#efbdca;background:#fff2f6}.friends-card-actions{flex-wrap:wrap}.friends-card-actions form{display:flex}.friends-card-actions form .friends-card-btn{width:100%}.friends-card-actions .is-remove{flex:1 1 100%}.friends-card-actions form:has(.is-remove){flex:1 1 100%}.friends-card-actions form:has(.is-block){flex:1}.friends-card-actions>a{flex:1}.friends-request-actions form{display:flex}
html[data-theme="dark"] .friends-action-btn.is-block,html[data-theme="dark"] .friends-card-btn.is-block,html[data-theme="dark"] .friends-card-btn.is-remove{color:#f1a4b8;border-color:#543241;background:#2c1c25}
@media(max-width:680px){.friends-request-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));padding-left:72px}.friends-request-actions form{min-width:0}.friends-request-actions .friends-action-btn{padding:0 8px}}
@media(max-width:460px){.friends-request-actions{grid-template-columns:1fr;padding-left:0}.friends-card-actions{grid-column:2}.friends-card-actions form:has(.is-remove){flex-basis:100%}}

/* Repères temporels cohérents sur la page complète et dans les bulles. */
.chat-bubble-day-separator {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 9px 0 6px;
    color: #8e8490;
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .01em;
}
.chat-bubble-day-separator::before,
.chat-bubble-day-separator::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(87, 65, 82, .11);
}
.chat-bubble-day-separator span {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    white-space: nowrap;
}
.chat-bubble-message-meta time { font-size: .56rem !important; }
.chat-shell .message-bubble time { font-size: .58rem !important; }
.chat-shell .date-separator { margin: 14px 0 12px !important; font-size: .62rem !important; font-weight: 750; }

/* Le même sélecteur complet sert aux réactions ; la palette de composition
   reste ouverte jusqu'à l'envoi pour permettre plusieurs choix successifs. */
.chat-bubble-emoji-picker.is-open,
.chat-shell [data-emoji-picker]:not([hidden]) { display: grid !important; }

/* Authentification sociale : spinner anti-double clic. */
[data-social-auth] { position: relative !important; }
[data-social-auth] .cc-social-spinner {
    display: none;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 2px solid rgba(91, 76, 88, .18);
    border-top-color: #ec3f6d;
    border-radius: 50%;
    animation: cc-social-spin .65s linear infinite;
}
[data-social-auth].is-loading { pointer-events: none !important; opacity: .78 !important; }
[data-social-auth].is-loading .cc-social-spinner { display: inline-block !important; }
[data-social-auth].is-loading > b:last-child { display: none !important; }
@keyframes cc-social-spin { to { transform: rotate(360deg); } }

/* Couche des bulles : un espace constant reste réservé devant le panel. */
.cc-chat-bubbles-layer {
    position: fixed !important;
    right: var(--cc-bubbles-right, 12px) !important;
    bottom: 12px !important;
    z-index: 10005 !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: flex-end !important;
    gap: var(--cc-bubbles-gap, 12px) !important;
    width: calc(100vw - var(--cc-bubbles-right, 12px) - 12px) !important;
    max-width: none !important;
    pointer-events: none !important;
    overflow: visible !important;
}
.cc-chat-bubbles-layer > .chat-bubble-window {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    flex: 0 0 min(330px, calc(100vw - 24px)) !important;
    width: min(330px, calc(100vw - 24px)) !important;
    max-width: 330px !important;
    margin: 0 !important;
    pointer-events: auto !important;
}

/* Les confirmations restent toujours au-dessus du panel, des bulles et des appels. */
body > .swal2-container,
.swal2-container {
    z-index: 30080 !important;
}

/* Tous les menus flottants s'ancrent à leur bouton et jamais au bas de la bulle. */
.chat-bubble-head-actions { position: relative !important; }
.chat-bubble-menu,
.chat-bubble-tools-menu,
.chat-bubble-reaction-picker,
.chat-bubble-emoji-picker,
.messenger-options-menu,
.chat-shell .emoji-picker {
    position: fixed !important;
    top: var(--cc-popover-top, 8px) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--cc-popover-left, 8px) !important;
    z-index: 12050 !important;
    margin: 0 !important;
    transform: none !important;
}
.chat-bubble-menu[hidden],
.chat-bubble-tools-menu[hidden],
.chat-bubble-reaction-picker[hidden],
.chat-bubble-emoji-picker[hidden],
.messenger-options-menu[hidden],
.chat-shell .emoji-picker[hidden],
.chat-bubble-webcam-stage[hidden],
.chat-bubble-recording[hidden] { display: none !important; }

.chat-bubble-menu {
    display: grid !important;
    width: min(232px, calc(100vw - 16px)) !important;
    max-height: min(430px, calc(100dvh - 16px)) !important;
    padding: 8px !important;
    overflow: auto !important;
    border: 1px solid rgba(79, 58, 73, .11) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .99) !important;
    box-shadow: 0 20px 55px rgba(48, 29, 44, .2) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.chat-bubble-menu > button,
.chat-bubble-menu > a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #514451 !important;
    font: inherit !important;
    font-size: .78rem !important;
    font-weight: 650 !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.chat-bubble-menu > button:hover,
.chat-bubble-menu > a:hover { background: #fff1f5 !important; color: #ce315c !important; }
.chat-bubble-menu > .danger { color: #d93962 !important; }
.chat-bubble-menu .locked { opacity: .55 !important; }

.chat-bubble-tools-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: min(260px, calc(100vw - 16px)) !important;
    padding: 12px !important;
    border: 1px solid rgba(79, 58, 73, .1) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 20px 55px rgba(48, 29, 44, .18) !important;
}
.chat-bubble-tools-menu > button {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    gap: 4px !important;
    min-height: 70px !important;
    padding: 8px !important;
    border: 1px solid rgba(85, 62, 79, .08) !important;
    border-radius: 13px !important;
    background: #fcf9fb !important;
    color: #514551 !important;
    cursor: pointer !important;
}
.chat-bubble-tools-menu > button span { font-size: 1.35rem !important; }
.chat-bubble-tools-menu > button small { font-size: .71rem !important; font-weight: 750 !important; }
.chat-bubble-tools-menu > button.locked { opacity: .52 !important; }
.chat-bubble-tools-menu > button.locked::after { content: "🔒"; position: absolute; margin: -42px 0 0 62px; font-size: .58rem; }

.chat-bubble-reaction-picker {
    display: flex !important;
    gap: 3px !important;
    width: max-content !important;
    max-width: calc(100vw - 16px) !important;
    padding: 6px !important;
    border: 1px solid rgba(79, 58, 73, .1) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 14px 38px rgba(48, 29, 44, .17) !important;
}
.chat-bubble-reaction-picker button { width: 34px !important; height: 34px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; font-size: 1.15rem !important; cursor: pointer !important; }
.chat-bubble-reaction-picker button:hover { background: #fff0f4 !important; transform: scale(1.13); }

.chat-shell .reaction-picker {
    position: fixed !important;
    top: var(--cc-popover-top, 8px) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--cc-popover-left, 8px) !important;
    z-index: 12050 !important;
    display: none !important;
    align-items: center !important;
    gap: 3px !important;
    width: max-content !important;
    padding: 6px !important;
    border: 1px solid rgba(79,58,73,.1) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 14px 38px rgba(48,29,44,.17) !important;
}
.chat-shell .reaction-picker.is-open { display: flex !important; }
.chat-shell .reaction-picker button { display: grid !important; place-items: center !important; width: 34px !important; height: 34px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; font-size: 1.15rem !important; cursor: pointer !important; }
.chat-shell .reaction-picker button:hover { background: #fff0f4 !important; transform: scale(1.1); }

/* Bibliothèque complète Emoji v17, avec grille de secours hors connexion. */
.chat-bubble-emoji-picker,
.chat-shell .emoji-picker {
    grid-template: minmax(0, 1fr) / minmax(0, 1fr) !important;
    width: min(355px, calc(100vw - 16px)) !important;
    height: min(410px, calc(100dvh - 24px)) !important;
    padding: 7px !important;
    overflow: hidden !important;
    border: 1px solid rgba(79, 58, 73, .1) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 24px 60px rgba(48, 29, 44, .2) !important;
}
.cc-emoji-picker-element {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: 100%;
    --border-radius: 13px;
    --background: #fff;
    --input-border-color: rgba(93, 67, 86, .12);
    --input-font-color: #3f333e;
    --outline-color: rgba(237, 63, 109, .25);
    --category-emoji-padding: .38rem;
    --emoji-padding: .33rem;
}
.cc-emoji-fallback {
    display: grid;
    grid-area: 1 / 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 38px 40px auto minmax(0, 1fr);
    gap: 5px;
    height: 100%;
    min-height: 0;
    padding: 5px;
    overflow: hidden;
}
.cc-emoji-local-search { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 11px; border: 1px solid rgba(79,58,73,.11); border-radius: 999px; background: #f7f5f7; color: #7f737d; }
.cc-emoji-local-search span { flex: none; font-size: .8rem; }
.cc-emoji-local-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #3e343d; font: inherit; font-size: .72rem; }
.cc-emoji-local-tabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-bottom: 1px solid rgba(79,58,73,.09); touch-action: pan-x; -webkit-overflow-scrolling: touch; }
.cc-emoji-local-tabs::-webkit-scrollbar { display: none; }
.cc-emoji-local-tabs button { display: grid; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; background: transparent; font-size: 1rem; cursor: pointer; }
.cc-emoji-local-tabs button:hover { background: #fff1f5; }
.cc-emoji-local-tabs button.is-active { border-bottom-color: #ed3f6d; background: #fff4f7; }
.cc-emoji-local-title { padding: 2px 4px 0; color: #766b74; font-size: .66rem; font-weight: 750; }
.cc-emoji-local-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 2px; min-height: 0; padding: 2px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cc-emoji-local-grid button { display: grid; min-width: 0; aspect-ratio: 1; padding: 2px; place-items: center; border: 0; border-radius: 8px; background: transparent; font-size: 1.25rem; cursor: pointer; }
.cc-emoji-local-grid button:hover { background: #fff0f4; }
.cc-emoji-library-ready .cc-emoji-fallback { display: none !important; }

/* La grille locale s'affiche immédiatement ; la librairie complète ne la
   remplace qu'après la définition effective du composant Web Component. */
html:not(.cc-emoji-library-ready) .cc-emoji-picker-element { display: none !important; }
html:not(.cc-emoji-library-ready) .cc-emoji-fallback { display: grid !important; }

/* Prévisualisation professionnelle avant envoi. */
.chat-bubble-file-preview:not([hidden]) {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 30px !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 10px 7px !important;
    padding: 8px !important;
    border: 1px solid rgba(236, 63, 109, .14) !important;
    border-radius: 13px !important;
    background: #fff7fa !important;
}
.chat-bubble-file-preview > span:first-child { display: none !important; }
.cc-file-preview-media { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 10px; background: #fff; color: #dc3863; }
.cc-file-preview-media img,
.cc-file-preview-media video { width: 100%; height: 100%; object-fit: cover; }
.cc-file-preview-media audio { width: 46px; }
.cc-file-type { font-size: .68rem; font-weight: 900; }
.chat-bubble-file-preview > div:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.chat-bubble-file-preview strong { overflow: hidden; font-size: .72rem !important; text-overflow: ellipsis; white-space: nowrap; }
.chat-bubble-file-preview small { color: #8f7c89; font-size: .62rem !important; }
.chat-bubble-file-preview button { width: 29px !important; height: 29px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #fff !important; color: #bd3158 !important; cursor: pointer !important; }

/* Capture caméra/webcam dans la bulle. */
.chat-bubble-webcam-stage {
    position: absolute !important;
    inset: 0 !important;
    z-index: 130 !important;
    display: grid !important;
    grid-template-rows: 1fr !important;
    gap: 0 !important;
    padding: 12px !important;
    border-radius: inherit !important;
    background: #171116 !important;
    color: #fff !important;
}
.chat-media-stage-head { position: absolute !important; z-index: 4 !important; top: 24px !important; right: 24px !important; left: 24px !important; display: flex !important; align-items: center !important; justify-content: flex-end !important; pointer-events: none !important; }
.chat-media-stage-head strong { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
.chat-media-stage-head button { display: inline-grid !important; place-items: center !important; flex: 0 0 38px !important; width: 38px !important; height: 38px !important; padding: 0 !important; border: 1px solid rgba(255,255,255,.42) !important; border-radius: 50% !important; background: rgba(19,19,22,.48) !important; color: #fff !important; box-shadow: 0 8px 24px rgba(0,0,0,.22) !important; backdrop-filter: blur(10px) !important; font-size: 1.15rem !important; line-height: 1 !important; cursor: pointer !important; pointer-events: auto !important; }
.chat-bubble-webcam-stage video { width: 100% !important; height: 100% !important; min-height: 0 !important; border-radius: 14px !important; background: #000 !important; object-fit: cover !important; }
.chat-bubble-webcam-stage > div:last-child { position: absolute !important; z-index: 3 !important; inset: 0 !important; pointer-events: none !important; }
.chat-bubble-webcam-stage > div:last-child button { position: absolute !important; display: grid !important; place-items: center !important; padding: 0 !important; color: #fff !important; cursor: pointer !important; pointer-events: auto !important; }
.chat-bubble-webcam-stage [data-bubble-camera-switch] { top: 24px !important; left: 24px !important; width: 40px !important; height: 40px !important; border: 0 !important; border-radius: 50% !important; background: rgba(0,0,0,.12) !important; box-shadow: none !important; backdrop-filter: blur(5px) !important; font-size: 1.7rem !important; }
.chat-bubble-webcam-stage > div:last-child .capture { bottom: 28px !important; left: 50% !important; width: 62px !important; height: 62px !important; border: 3px solid rgba(255,255,255,.72) !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 10px 28px rgba(0,0,0,.25), inset 0 0 0 5px rgba(0,0,0,.05) !important; transform: translateX(-50%) !important; }
.chat-bubble-webcam-stage [data-bubble-camera-switch][hidden] { display: none !important; }
.chat-bubble-send.is-loading { position: relative !important; display: inline-grid !important; place-items: center !important; color: transparent !important; pointer-events: none !important; }
.chat-bubble-send.is-loading::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 50%; animation: cc-social-spin .65s linear infinite; }

.chat-bubble-recording {
    position: absolute !important;
    right: 9px !important;
    bottom: 56px !important;
    left: 9px !important;
    z-index: 125 !important;
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px !important;
    border: 1px solid rgba(225, 47, 91, .18) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(49, 29, 43, .18) !important;
}
.recording-pulse { width: 11px; height: 11px; border-radius: 50%; background: #ef3f68; box-shadow: 0 0 0 0 rgba(239,63,104,.35); animation: cc-recording-pulse 1.15s infinite; }
.chat-bubble-recording > div { display: grid; gap: 1px; }
.chat-bubble-recording strong { font-size: .7rem !important; }
.chat-bubble-recording small { color: #e43965 !important; font-size: .66rem !important; font-variant-numeric: tabular-nums; }
.chat-bubble-recording button { min-height: 31px !important; padding: 5px 8px !important; border: 0 !important; border-radius: 9px !important; background: #f5f0f3 !important; color: #63535f !important; font-size: .62rem !important; font-weight: 750 !important; cursor: pointer !important; }
.chat-bubble-recording .recording-stop { background: #ef3f68 !important; color: #fff !important; }
@keyframes cc-recording-pulse { 70% { box-shadow: 0 0 0 9px rgba(239,63,104,0); } 100% { box-shadow: 0 0 0 0 rgba(239,63,104,0); } }

/* Panel Messenger et menu global. */
.messenger-drawer.is-open { display: block !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; transform: none !important; }
.messenger-options-menu {
    display: grid !important;
    width: min(270px, calc(100vw - 16px)) !important;
    max-height: calc(100dvh - 16px) !important;
    padding: 8px !important;
    overflow: auto !important;
    border: 1px solid rgba(79,58,73,.1) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 20px 55px rgba(48,29,44,.2) !important;
}

/* Le menu du panel reste dans son en-tête : il s'ouvre immédiatement sous
   les trois points, même lorsque le tiroir Messenger est animé/translaté. */
.messenger-panel-inner .messenger-global-actions { position: relative !important; }
.messenger-panel-inner .messenger-options-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 12060 !important;
    max-height: min(430px, calc(100dvh - 78px)) !important;
    transform: none !important;
}

/* Caméra intégrée à la page complète du chat. */
.chat-main { position: relative; }
.chat-page-camera-stage {
    position: absolute;
    inset: 0;
    z-index: 130;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 15px;
    background: #171116;
    color: #fff;
}
.chat-page-camera-stage[hidden] { display: none !important; }
.chat-page-camera-stage video { width: 100%; height: 100%; min-height: 0; border-radius: 17px; background: #000; object-fit: cover; }
.chat-page-camera-stage[data-facing="user"] video { transform: scaleX(-1); }
.chat-page-camera-controls { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.chat-page-camera-controls button { position: absolute; display: grid; place-items: center; padding: 0; color: #fff; cursor: pointer; pointer-events: auto; }
.chat-page-camera-controls [data-page-camera-switch] { top: 27px; left: 27px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.12); box-shadow: none; backdrop-filter: blur(5px); font-size: 1.9rem; }
.chat-page-camera-controls .capture { bottom: 30px; left: 50%; width: 68px; height: 68px; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; background: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.28), inset 0 0 0 6px rgba(0,0,0,.045); transform: translateX(-50%); }

/* Une fois connecté, les deux badges de téléchargement et le QR code ne sont
   plus affichés : la section se rééquilibre proprement sur deux colonnes. */
.mobile-app-section.is-authenticated { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) !important; }

/* Recherche générale des profils. Sur l'accueil, elle se place à droite du
   titre des profils féminins afin d'alléger complètement le menu principal. */
.cc-global-profile-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(250px, 22vw);
    min-width: 178px;
    height: 38px;
    padding: 0 4px 0 10px;
    border: 1px solid rgba(95,73,89,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 7px 20px rgba(58,37,52,.06);
}
.cc-global-profile-search-icon { color: #e43d6c; font-size: 1.05rem; }
.cc-global-profile-search input { min-width: 0; width: 100%; height: 100%; padding: 0 7px; border: 0; outline: 0; background: transparent; color: #3e323b; font: inherit; font-size: .7rem; }
.cc-global-profile-search > button { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg,#ff6086,#e93368); color: #fff; cursor: pointer; }
.cc-global-profile-results { position: absolute; top: calc(100% + 7px); right: 0; z-index: 13000; display: grid; width: min(330px, calc(100vw - 20px)); max-height: min(390px, 70dvh); padding: 7px; overflow: auto; border: 1px solid rgba(89,66,82,.12); border-radius: 16px; background: #fff; box-shadow: 0 22px 55px rgba(50,30,44,.2); }
.cc-global-profile-results[hidden] { display: none !important; }
.cc-global-profile-results a { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 9px; padding: 7px; border-radius: 11px; color: #493b45; text-decoration: none; }
.cc-global-profile-results a:hover,
.cc-global-profile-results a:focus { outline: 0; background: #fff1f5; }
.cc-global-profile-results a > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#ff7194,#d93768); color: #fff; font-weight: 800; }
.cc-global-profile-results b { display: grid; min-width: 0; gap: 2px; font-size: .72rem; }
.cc-global-profile-results small { overflow: hidden; color: #907e8a; font-size: .61rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.cc-global-profile-results p { margin: 0; padding: 16px 10px; color: #84727f; font-size: .7rem; text-align: center; }
.app-mobile-drawer > .cc-global-profile-search { width: auto; min-width: 0; margin: 0 14px 12px; border-radius: 13px; }
.app-mobile-drawer > .cc-global-profile-search .cc-global-profile-results { right: auto; left: 0; width: 100%; }
.showcase-heading-tools { display: grid; justify-items: end; gap: 8px; margin-left: auto; }
.cc-showcase-profile-search .cc-global-profile-search { width: min(310px, 28vw); min-width: 240px; }
.cc-showcase-profile-search .cc-global-profile-results { right: 0; left: auto; }

/* Appels audio/vidéo plein écran. */
html.cc-call-open,
html.cc-call-open body { overflow: hidden !important; }
.cc-image-viewer-open, .cc-image-viewer-open body { overflow: hidden !important; }
.cc-image-viewer { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom)); background: rgba(7,8,12,.92); backdrop-filter: blur(12px); }
.cc-image-viewer[hidden] { display: none !important; }
.cc-image-viewer img { display: block; width: auto; height: auto; max-width: min(92vw,1200px); max-height: 86vh; max-height: 86dvh; object-fit: contain; border-radius: 12px; box-shadow: 0 22px 70px rgba(0,0,0,.48); }
.cc-image-viewer-close { position: fixed; z-index: 2; top: max(14px,env(safe-area-inset-top)); right: 16px; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(18,20,26,.72); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.cc-download-icon { display: inline-grid; width: 25px; height: 25px; flex: none; place-items: center; margin-left: auto; border-radius: 8px; background: rgba(255,255,255,.2); font-size: 16px; font-weight: 900; }

/* Interface caméra premium, commune à la page chat et aux bulles. */
.chat-page-camera-stage,
.chat-bubble-webcam-stage {
    grid-template-rows: 74px minmax(0,1fr) 146px !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #000 !important;
    color: #fff !important;
}
.cc-camera-topbar {
    position: relative !important;
    z-index: 5 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(5,1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    width: 100% !important;
    padding: 12px 48px 10px 10px !important;
    background: #050505 !important;
    color: #f4f4f4 !important;
    font-size: 1.05rem !important;
}
.cc-camera-topbar b { color: #ffd52b !important; font-size: .62rem !important; font-weight: 700 !important; letter-spacing: .04em !important; }
.cc-camera-topbar .is-flash { color: #ffe000 !important; font-size: 1.3rem !important; }
.cc-camera-close {
    position: absolute !important;
    z-index: 9 !important;
    top: 17px !important;
    right: 13px !important;
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.11) !important;
    color: #fff !important;
    box-shadow: none !important;
    backdrop-filter: blur(9px) !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
}
.cc-camera-viewport {
    position: relative !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #080808 !important;
}
.chat-page-camera-stage .cc-camera-viewport video,
.chat-bubble-webcam-stage .cc-camera-viewport video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #080808 !important;
    object-fit: cover !important;
}
.chat-page-camera-stage[data-facing="user"] .cc-camera-viewport video { transform: scaleX(-1) !important; }
.cc-camera-bottom {
    position: relative !important;
    z-index: 5 !important;
    grid-row: 3 !important;
    display: grid !important;
    grid-template-rows: 42px 1fr !important;
    width: 100% !important;
    background: #050505 !important;
}
.cc-camera-modes {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    overflow: hidden !important;
    padding: 3px 13px 0 !important;
    color: rgba(255,255,255,.54) !important;
    font-size: .6rem !important;
    white-space: nowrap !important;
}
.cc-camera-modes strong { color: #ffd43b !important; font-size: .62rem !important; font-weight: 650 !important; }
.cc-camera-dock {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 4px 22px 14px !important;
    pointer-events: auto !important;
}
.cc-camera-dock button { position: static !important; display: grid !important; place-items: center !important; padding: 0 !important; border: 0 !important; color: #fff !important; cursor: pointer !important; pointer-events: auto !important; transform: none !important; }
.cc-camera-dock .capture {
    width: 66px !important;
    height: 66px !important;
    border: 4px solid #f7f7f7 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,.42), inset 0 0 0 4px rgba(0,0,0,.045) !important;
}
.cc-camera-gallery {
    width: 39px !important;
    height: 39px !important;
    overflow: hidden !important;
    border: 2px solid rgba(255,255,255,.85) !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg,#725348,#d2ad8e 47%,#435f77) !important;
}
.cc-camera-gallery span { width: 100% !important; height: 100% !important; background: linear-gradient(35deg,rgba(0,0,0,.3),transparent 55%) !important; }
.cc-camera-switch {
    width: 43px !important;
    height: 43px !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 1.75rem !important;
}
.chat-bubble-webcam-stage [data-bubble-camera-switch] { position: static !important; width: 43px !important; height: 43px !important; background: transparent !important; backdrop-filter: none !important; }

@media (max-width: 700px) {
    .chat-page-camera-stage,
    .chat-bubble-webcam-stage { grid-template-rows: 66px minmax(0,1fr) 136px !important; }
    .cc-camera-topbar { padding-top: 9px !important; }
    .cc-camera-close { top: 13px !important; right: 11px !important; }
    .cc-camera-modes { gap: 16px !important; padding-left: 8px !important; }
    .cc-camera-dock .capture { width: 62px !important; height: 62px !important; }
}
.cc-call-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 20050 !important;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
    background: #091013 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.cc-call-overlay[hidden] { display: none !important; }
.cc-call-overlay.is-open { display: block !important; opacity: 1; visibility: visible; }
.cc-call-remote-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.06); border-radius: 28px; background-color: #11191d; background-image: radial-gradient(circle at 20% 18%, rgba(255,255,255,.035) 0 2px, transparent 2.5px), radial-gradient(circle at 74% 31%, rgba(255,255,255,.025) 0 3px, transparent 3.5px), linear-gradient(135deg, rgba(40,62,68,.34), transparent 55%); background-size: 46px 46px, 68px 68px, 100% 100%; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.cc-call-remote-wrap > [data-cc-call-remote] { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.cc-call-overlay.has-remote:not(.is-audio) [data-cc-call-remote] { opacity: 1; }
.cc-call-fallback { position: absolute; inset: 0; display: grid; place-content: center; place-items: center; color: #fff; text-align: center; background: radial-gradient(circle at 50% 42%, rgba(73,110,120,.23), transparent 38%); transition: opacity .25s ease; }
.cc-call-overlay.has-remote:not(.is-audio) .cc-call-fallback { opacity: 0; pointer-events: none; }
.cc-call-avatar { display: grid; place-items: center; width: clamp(160px, 24vw, 230px); height: clamp(160px, 24vw, 230px); overflow: hidden; border: 2px solid rgba(255,255,255,.65); border-radius: 50%; background: linear-gradient(135deg, #ff6f94, #d92e64); box-shadow: 0 20px 58px rgba(0,0,0,.4), 0 0 0 5px rgba(255,255,255,.035); font-size: 3.6rem; }
.cc-call-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-call-top { position: absolute; top: max(20px, env(safe-area-inset-top)); right: 22px; left: 22px; z-index: 8; display: grid; grid-template-columns: 46px minmax(0,1fr) 46px; align-items: center; gap: 12px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.cc-call-top-action { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; background: rgba(31,45,50,.86); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.22); cursor: pointer; backdrop-filter: blur(10px); }
.cc-call-top-action svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cc-call-person { min-width: 0; text-align: center; }
.cc-call-person h2 { overflow: hidden; margin: 0; color: #fff; font-size: clamp(.95rem, 2.3vw, 1.25rem); font-weight: 700; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.cc-call-person p { margin: 3px 0 0; color: rgba(255,255,255,.66); font-size: .68rem; }
.cc-call-person time { font-variant-numeric: tabular-nums; }
.cc-call-recording { position: absolute; top: max(78px, calc(env(safe-area-inset-top) + 60px)); left: 50%; z-index: 8; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 28px); padding: 5px 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(10,17,20,.58); color: #fff; font-size: .6rem; transform: translateX(-50%); backdrop-filter: blur(10px); }
.cc-call-recording i { width: 7px; height: 7px; border-radius: 50%; background: #ffb7c5; }
.cc-call-recording b { font-size: .62rem; letter-spacing: .08em; }
.cc-call-recording small { color: rgba(255,255,255,.72); font-size: .57rem; }
.cc-call-recording.is-active { border-color: rgba(255,78,103,.68); background: rgba(151,13,39,.7); }
.cc-call-recording.is-active i { background: #ff385b; box-shadow: 0 0 0 5px rgba(255,56,91,.18); animation: cc-rec-pulse 1.25s infinite; }
.cc-call-recording.is-saved { background: rgba(19,112,72,.72); }
.cc-call-recording.is-saved i { background: #55e5a7; }
.cc-call-recording.is-error { background: rgba(126,78,16,.78); }
@keyframes cc-rec-pulse { 50% { opacity: .45; transform: scale(.78); } }
.recording-hold-form { display: grid; gap: 6px; min-width: 160px; margin-top: 7px; }
.recording-hold-form input { min-width: 155px; padding: 7px 8px; border: 1px solid #eadde4; border-radius: 8px; font-size: .68rem; }
.cc-call-local { position: absolute; top: 104px; right: 22px; z-index: 7; width: min(20vw, 176px); aspect-ratio: 3 / 4; border: 2px solid rgba(255,255,255,.68); border-radius: 20px; background: #182126; box-shadow: 0 16px 45px rgba(0,0,0,.38); object-fit: cover; transform: scaleX(-1); }
.cc-call-overlay.uses-back-camera .cc-call-local { transform: none; }
.cc-call-overlay.is-audio .cc-call-local { display: none !important; }
.cc-call-quality { position: absolute; right: 22px; bottom: 224px; z-index: 7; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.3); color: rgba(255,255,255,.76); font-size: .63rem; backdrop-filter: blur(8px); }
.cc-call-more-menu { position: absolute; right: max(18px, calc(50% - 205px)); bottom: max(226px, calc(env(safe-area-inset-bottom) + 215px)); z-index: 10; display: grid; gap: 4px; width: min(286px, calc(100% - 28px)); padding: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(20,31,36,.97); box-shadow: 0 20px 60px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.cc-call-more-menu[hidden] { display: none !important; }
.cc-call-more-menu button { display: grid; grid-template-columns: 42px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 9px; border: 0; border-radius: 14px; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.cc-call-more-menu button:hover { background: rgba(255,255,255,.07); }
.cc-call-more-menu button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.09); font-size: 1.15rem; }
.cc-call-more-menu button b { font-size: .72rem; }
.cc-call-more-menu button small { color: rgba(255,255,255,.55); font-size: .6rem; }
.cc-call-controls { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; z-index: 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 10px; width: min(420px, calc(100% - 28px)); padding: 18px 15px 15px; border: 1px solid rgba(255,255,255,.085); border-radius: 34px; background: rgba(20,31,36,.91); box-shadow: 0 22px 60px rgba(0,0,0,.42); transform: translateX(-50%); backdrop-filter: blur(20px); }
.cc-call-controls button { display: grid; place-items: center; align-content: start; gap: 6px; min-width: 0; min-height: 72px; padding: 0 2px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.cc-call-button-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #26363b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.035); transition: background .18s ease, color .18s ease, transform .18s ease; }
.cc-call-controls button:active .cc-call-button-icon { transform: scale(.94); }
.cc-call-button-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cc-call-controls [data-cc-call-more] svg circle { fill: currentColor; stroke: none; }
.cc-call-controls button small { display: block; min-height: 22px; color: rgba(255,255,255,.83); font-size: .58rem; line-height: 1.25; text-align: center; }
.cc-call-controls button.is-active .cc-call-button-icon { background: #32484f; }
.cc-call-controls button.is-off .cc-call-button-icon { background: #f1f5f6; color: #182326; }
.cc-call-controls button.is-unavailable { opacity: .42; }
.cc-call-controls .cc-call-hangup .cc-call-button-icon { background: linear-gradient(135deg, #ff315d, #e80042); color: #fff; box-shadow: 0 10px 26px rgba(232,0,66,.32); }
.cc-call-end-icon { font-size: 1.55rem; line-height: 1; transform: rotate(135deg); }
.cc-call-overlay.is-compact { inset: auto 14px calc(78px + env(safe-area-inset-bottom)) auto !important; width: 158px !important; height: 214px !important; padding: 0 !important; border-radius: 26px; background: transparent !important; box-shadow: 0 18px 50px rgba(0,0,0,.38); }
.cc-call-overlay.is-compact .cc-call-remote-wrap { border-radius: 26px; }
.cc-call-overlay.is-compact .cc-call-top { top: 9px; right: auto; left: 9px; display: block; }
.cc-call-overlay.is-compact .cc-call-top-action { width: 38px; height: 38px; }
.cc-call-overlay.is-compact .cc-call-person,
.cc-call-overlay.is-compact [data-cc-call-add],
.cc-call-overlay.is-compact .cc-call-recording,
.cc-call-overlay.is-compact .cc-call-local,
.cc-call-overlay.is-compact .cc-call-quality,
.cc-call-overlay.is-compact .cc-call-more-menu,
.cc-call-overlay.is-compact .cc-call-controls { display: none !important; }
.cc-call-overlay.is-compact .cc-call-fallback { padding: 42px 8px 10px; }
.cc-call-overlay.is-compact .cc-call-avatar { width: 96px; height: 96px; }

.cc-incoming-call-card {
    position: fixed !important;
    top: max(16px, env(safe-area-inset-top)) !important;
    right: 16px !important;
    z-index: 20070 !important;
    display: grid !important;
    grid-template-columns: 48px minmax(150px, 1fr) 42px 42px !important;
    align-items: center !important;
    gap: 9px !important;
    width: min(390px, calc(100vw - 32px)) !important;
    padding: 11px !important;
    border: 1px solid rgba(93,65,85,.12) !important;
    border-radius: 19px !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 24px 65px rgba(45,26,41,.26) !important;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
}
.cc-incoming-call-card[hidden] { display: none !important; }
.cc-incoming-call-card.is-visible { opacity: 1; transform: translateY(0); }
.cc-incoming-avatar { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg,#ff7598,#db3264); color: #fff; font-size: 1.35rem; }
.cc-incoming-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cc-incoming-call-card > div:nth-child(2) { display: grid; min-width: 0; gap: 1px; }
.cc-incoming-call-card small { color: #dd3a67; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cc-incoming-call-card strong { overflow: hidden; color: #362b34; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.cc-incoming-call-card span { color: #8b7986; font-size: .67rem; }
.cc-incoming-call-card > button { width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; font-size: 1.1rem; cursor: pointer; }
.cc-incoming-call-card .decline { background: #e14664; }
.cc-incoming-call-card .accept { background: #22ad67; animation: cc-call-ring 1.4s infinite; }
@keyframes cc-call-ring { 50% { box-shadow: 0 0 0 8px rgba(34,173,103,.12); transform: rotate(-7deg); } }

.voice-action.is-recording { width: auto !important; min-width: 58px !important; padding-inline: 8px !important; background: #ef3f68 !important; color: #fff !important; font-size: .62rem !important; font-variant-numeric: tabular-nums; }
.message-audio.cc-audio-player { display: grid !important; gap: 5px !important; min-width: min(280px, 72vw) !important; }
.message-audio.cc-audio-player audio { display: block; width: 100%; min-width: 210px; height: 36px; }
.message-audio.cc-audio-player > a { color: inherit; font-size: .66rem; opacity: .82; }

@media (max-width: 720px) {
    .cc-chat-bubbles-layer {
        right: 8px !important;
        bottom: 0 !important;
        left: 8px !important;
        width: auto !important;
    }
    .cc-chat-bubbles-layer > .chat-bubble-window {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: none !important;
        max-height: min(74dvh, 620px) !important;
    }
    .cc-chat-bubbles-layer > .chat-bubble-window:not(:last-child) { display: none !important; }
    .chat-bubble-emoji-picker,
    .chat-shell .emoji-picker { width: calc(100vw - 16px) !important; height: min(410px, 58dvh) !important; }
    .cc-emoji-local-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .chat-bubble-webcam-stage { position: fixed !important; inset: 0 !important; z-index: 20040 !important; padding: max(14px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)) !important; border-radius: 0 !important; }
    .chat-media-stage-head { position: relative !important; z-index: 2 !important; min-height: 42px !important; }
    .chat-bubble-webcam-stage > div:last-child { position: relative !important; z-index: 2 !important; flex-wrap: wrap !important; }
    .cc-call-overlay { padding: 0 !important; }
    .cc-call-remote-wrap { border-radius: 0 !important; }
    .cc-call-top { top: calc(14px + env(safe-area-inset-top)); right: 14px; left: 14px; grid-template-columns: 42px minmax(0,1fr) 42px; gap: 8px; }
    .cc-call-top-action { width: 42px; height: 42px; }
    .cc-call-top-action svg { width: 20px; height: 20px; }
    .cc-call-person h2 { font-size: .9rem; }
    .cc-call-person p { margin-top: 2px; font-size: .59rem; }
    .cc-call-recording { top: calc(69px + env(safe-area-inset-top)); }
    .cc-call-recording small { overflow: hidden; max-width: 132px; text-overflow: ellipsis; white-space: nowrap; }
    .cc-call-local { top: calc(96px + env(safe-area-inset-top)); right: 12px; width: 92px; border-radius: 16px; }
    .cc-call-fallback { place-content: center; padding: calc(90px + env(safe-area-inset-top)) 18px calc(214px + env(safe-area-inset-bottom)); }
    .cc-call-avatar { width: min(47vw, 188px); height: min(47vw, 188px); }
    .cc-call-controls { bottom: calc(16px + env(safe-area-inset-bottom)); gap: 12px 7px; width: calc(100% - 28px); max-width: 390px; padding: 17px 12px 14px; border-radius: 32px; }
    .cc-call-controls button { min-height: 70px; }
    .cc-call-button-icon { width: 50px; height: 50px; }
    .cc-call-controls button small { font-size: .56rem; }
    .cc-call-more-menu { right: 14px; bottom: calc(216px + env(safe-area-inset-bottom)); }
    .cc-call-quality { display: none; }
    .cc-call-overlay.is-compact { right: 12px !important; bottom: calc(74px + env(safe-area-inset-bottom)) !important; }
    .cc-incoming-call-card { top: calc(10px + env(safe-area-inset-top)) !important; right: 10px !important; width: calc(100vw - 20px) !important; grid-template-columns: 44px minmax(0,1fr) 40px 40px !important; }
    .mobile-app-section.is-authenticated { grid-template-columns: 1fr !important; }
    .chat-shell .voice-action { display: grid !important; }
}

@media (max-width: 560px) {
    .showcase-heading-tools { width: 100%; justify-items: stretch; margin-left: 0; }
    .cc-showcase-profile-search,
    .cc-showcase-profile-search .cc-global-profile-search { width: 100%; min-width: 0; }
    .cc-showcase-profile-search .cc-global-profile-results { right: auto; left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-call-overlay,
    .cc-incoming-call-card,
    .recording-pulse,
    .cc-incoming-call-card .accept { animation: none !important; transition: none !important; }
    .cc-call-recording.is-active i { animation: none !important; }
}

/* Mes amis — compteur de messages non lus, uniquement sur le bouton Message. */
.friends-card-btn.is-message{position:relative}.friends-card-btn.is-message:has(.friends-message-unread){padding-right:35px}.friends-message-unread{position:absolute;top:50%;right:8px;display:grid;min-width:19px;height:19px;padding:0 5px;place-items:center;transform:translateY(-50%);border:1px solid rgba(255,255,255,.7);border-radius:999px;background:#fff;color:#d83b67;box-shadow:0 3px 10px rgba(83,27,51,.18);font-size:9px;font-weight:900;line-height:1;pointer-events:auto}.friends-message-unread:hover{transform:translateY(-50%) scale(1.04)}
html[data-theme="dark"] .friends-message-unread{border-color:#5b3644;background:#2b1c24;color:#ff96b1}

/* Découvrir V34 — actions d'amitié + messages non lus sur les profils déjà amis. */
.discovery-profile-grid .profile-card.is-discovery-friend .profile-card-actions{
    align-items:stretch;
}
.discovery-profile-grid .profile-card.is-discovery-friend .profile-card-actions > a:not(.round-action),
.discovery-profile-grid .profile-card.is-discovery-friend .profile-card-actions > form{
    min-width:0;
}
.discovery-profile-grid .profile-card.is-discovery-friend .profile-friend-remove-form,
.discovery-profile-grid .profile-card.is-discovery-friend .profile-block-form{
    display:flex;
}
.discovery-profile-grid .profile-card.is-discovery-friend .profile-friend-remove-form .profile-text-action,
.discovery-profile-grid .profile-card.is-discovery-friend .profile-block-form .profile-text-action{
    width:100%;
}
.discovery-profile-grid .profile-card.is-discovery-friend .profile-remove-friend-action{
    color:#8d5362;
    border-color:#ead8df;
    background:#fffafb;
}
.discovery-profile-grid .profile-card.is-discovery-friend .profile-remove-friend-action:hover{
    color:#a82f50;
    border-color:#efbdca;
    background:#fff2f6;
}
.discovery-profile-grid .profile-card.is-discovery-friend .profile-block-action{
    color:#b93659;
    border-color:#f0cfda;
    background:#fff7f9;
}
.discovery-profile-grid .profile-card.is-discovery-friend .profile-block-action:hover{
    color:#fff;
    border-color:#d93b63;
    background:#d93b63;
}
.discovery-profile-grid .profile-card.is-discovery-friend .profile-message-action.is-discovery-message{
    position:relative;
    flex:1 1 100%;
    width:100%;
}
.discovery-profile-grid .profile-card.is-discovery-friend .profile-message-action.is-discovery-message:has(.profile-message-unread){
    padding-right:34px;
}
.profile-message-unread{
    position:absolute;
    top:50%;
    right:8px;
    display:grid;
    min-width:19px;
    height:19px;
    padding:0 5px;
    place-items:center;
    transform:translateY(-50%);
    border:1px solid rgba(255,255,255,.78);
    border-radius:999px;
    background:#fff;
    color:#d83b67;
    box-shadow:0 3px 10px rgba(83,27,51,.18);
    font-size:9px;
    font-weight:900;
    line-height:1;
}
html[data-theme="dark"] .discovery-profile-grid .profile-card.is-discovery-friend .profile-remove-friend-action,
html[data-theme="dark"] .discovery-profile-grid .profile-card.is-discovery-friend .profile-block-action{
    color:#f1a4b8;
    border-color:#543241;
    background:#2c1c25;
}
html[data-theme="dark"] .profile-message-unread{
    border-color:#5b3644;
    background:#2b1c24;
    color:#ff96b1;
}

@media (min-width:721px){
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-card-actions > a:not(.round-action),
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-card-actions > form{
        flex:1 1 calc(50% - 4px);
    }
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-message-action.is-discovery-message{
        flex-basis:100%;
    }
}

@media (max-width:720px){
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-message-action.is-discovery-message{
        grid-column:1 / -1;
    }
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-friend-remove-form,
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-block-form{
        min-width:0;
    }
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-remove-friend-action,
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-block-action{
        width:100%;
        min-width:0;
    }
}

@media (max-width:560px){
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-message-action.is-discovery-message{
        min-height:28px;
        padding:4px 27px 4px 5px;
        border-radius:8px;
        font-size:7.7px;
    }
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-message-action.is-discovery-message svg{
        width:11px;
        height:11px;
        flex-basis:11px;
    }
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-message-unread{
        right:5px;
        min-width:16px;
        height:16px;
        padding:0 4px;
        font-size:7px;
    }
}

@media (max-width:380px){
    .discovery-profile-grid .profile-card.is-discovery-friend .profile-message-action.is-discovery-message{
        font-size:7px;
    }
}


/* Mobile V35 — icônes des filtres Découvrir + lisibilité du chat uniquement. */
.discovery-gender-filter,
.age-filter{
    position:relative;
}
.discovery-filter-icon{
    display:grid;
    width:17px;
    min-width:17px;
    height:17px;
    place-items:center;
    margin-right:2px;
    color:#918790;
}
.discovery-filter-icon svg{
    width:14px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.age-filter .age-filter-separator{
    width:auto;
    min-width:auto;
    height:auto;
    margin:0 1px;
    color:#9a9098;
}

@media (max-width:820px){
    /* Le contenu des bulles est volontairement agrandi sans changer la taille des fenêtres. */
    .chat-bubble-balloon,
    .widget-bubble,
    .message-bubble{
        font-size:16px !important;
        line-height:1.52 !important;
    }
    .chat-bubble-balloon blockquote,
    .chat-bubble-message-meta,
    .chat-bubble-typing,
    .chat-bubble-reply-preview small,
    .chat-bubble-file-preview small,
    .chat-bubble-attachment,
    .chat-bubble-contact small{
        font-size:12px !important;
        line-height:1.4 !important;
    }
    .chat-bubble-contact strong{
        font-size:15px !important;
    }
    .chat-bubble-input textarea,
    .composer-input textarea{
        font-size:16px !important;
    }
}

/* Accueil V36 — uniquement l'espacement Femmes/Hommes et la lisibilité du footer. */
@media (min-width:821px){
    .premium-home #profils-femmes.profile-showcase{
        padding-bottom:34px;
    }
    .premium-home #profils-hommes.profile-showcase-men{
        padding-top:38px;
    }
}

.premium-home .premium-footer .footer-brand p,
.premium-home .premium-footer .footer-news p{
    font-size:12px;
    line-height:1.65;
}
.premium-home .premium-footer h3{
    font-size:13px;
}
.premium-home .premium-footer nav a{
    font-size:12px;
    line-height:1.5;
}
.premium-home .premium-footer .footer-news input{
    font-size:12px;
}
.premium-home .premium-footer .social-links a{
    font-size:12px;
}
.premium-home .premium-footer-bottom{
    font-size:11px;
}

@media (max-width:820px){
    .premium-home .premium-footer .footer-brand p,
    .premium-home .premium-footer .footer-news p,
    .premium-home .premium-footer nav a{
        font-size:12px;
    }
    .premium-home .premium-footer h3{
        font-size:13px;
    }
    .premium-home .premium-footer-bottom{
        font-size:11px;
        line-height:1.5;
    }
}

/* Chat V37 — lisibilité des messages reçus en mode sombre uniquement. */
html[data-theme="dark"] .chat-bubble-message.theirs .chat-bubble-balloon{
    color:#f7f3f6 !important;
    background:#2a2430 !important;
    border:1px solid #3b3341 !important;
}
html[data-theme="dark"] .chat-bubble-message.theirs .chat-bubble-balloon p,
html[data-theme="dark"] .chat-bubble-message.theirs .chat-bubble-balloon blockquote,
html[data-theme="dark"] .chat-bubble-message.theirs .chat-bubble-attachment,
html[data-theme="dark"] .chat-bubble-message.theirs .chat-bubble-media{
    color:inherit !important;
}
html[data-theme="dark"] .chat-bubble-message.theirs .chat-bubble-balloon blockquote{
    background:rgba(255,255,255,.07);
}
html[data-theme="dark"] .chat-bubble-message.theirs .chat-bubble-message-meta{
    color:#aeb5c0 !important;
}

/* Auth V38 — agrandissement ciblé des champs des pages /auth. */
.auth-premium-page .premium-floating-field{
    height:64px!important;
    padding-left:44px!important;
    border-radius:16px!important;
}
.auth-premium-page .auth-premium-form .premium-floating-field>input,
.auth-premium-page .auth-password-row .premium-floating-field>input{
    font-size:15px!important;
    padding-top:17px!important;
}
.auth-premium-page .premium-floating-field>span{
    left:44px!important;
    font-size:13px!important;
}
.auth-premium-page .premium-floating-field>input:focus~span,
.auth-premium-page .premium-floating-field>input:not(:placeholder-shown)~span{
    top:13px!important;
    font-size:9px!important;
}
.auth-premium-page .otp-digit{
    height:60px!important;
    min-height:60px!important;
    border-radius:14px!important;
    font-size:24px!important;
}
@media(max-width:560px){
    .auth-premium-page .premium-floating-field{height:60px!important}
    .auth-premium-page .auth-premium-form .premium-floating-field>input,
    .auth-premium-page .auth-password-row .premium-floating-field>input{font-size:14.5px!important}
    .auth-premium-page .otp-digit{height:55px!important;min-height:55px!important;font-size:22px!important}
}

/* Chat V38 — taille de lecture augmentée, sans modifier la géométrie des fenêtres. */
.chat-shell .message-bubble,
.chat-bubble-window .chat-bubble-balloon,
.widget-bubble{
    font-size:16px!important;
    line-height:1.55!important;
}
.chat-shell .message-bubble p,
.chat-bubble-window .chat-bubble-balloon p{font-size:inherit!important;line-height:inherit!important}
.chat-shell .message-bubble time,
.chat-shell .message-bubble blockquote,
.chat-bubble-window .chat-bubble-balloon blockquote,
.chat-bubble-window .chat-bubble-message-meta,
.chat-bubble-window .chat-bubble-typing,
.chat-bubble-window .chat-bubble-attachment,
.chat-bubble-window .chat-bubble-reply-preview small,
.chat-bubble-window .chat-bubble-file-preview small{
    font-size:12px!important;
    line-height:1.45!important;
}
.chat-bubble-window .chat-bubble-contact strong,
.messenger-conversation strong{font-size:14px!important}
.chat-bubble-window .chat-bubble-contact small,
.messenger-conversation small{font-size:12px!important}
.chat-bubble-input textarea,
.messenger-composer textarea,
.composer-input textarea{font-size:16px!important}
@media(max-width:820px){
    .chat-shell .message-bubble,
    .chat-bubble-window .chat-bubble-balloon,
    .widget-bubble{font-size:17px!important;line-height:1.55!important}
    .chat-bubble-input textarea,
    .composer-input textarea{font-size:17px!important}
}

/* Auth 2026-08-29 — un seul loader double, deux anneaux concentriques en sens inverse. */
[data-social-auth].is-loading::after,
.premium-login-pro.is-loading::after,
.cc-auth-form .cc-primary-btn.is-loading::after {
    content: none !important;
    display: none !important;
}
.cc-social-spinner,
.premium-login-spinner,
.cc-auth-dual-spinner {
    position: relative !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    animation: none !important;
}
.cc-social-spinner::before,
.premium-login-spinner::before,
.cc-auth-dual-spinner::before,
.cc-social-spinner::after,
.premium-login-spinner::after,
.cc-auth-dual-spinner::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    border-radius: 50%;
}
.cc-social-spinner::before,
.cc-auth-dual-spinner::before {
    inset: 0;
    border: 2px solid rgba(82,67,79,.17);
    border-top-color: #ed416f;
    animation: cc-dual-spin .72s linear infinite;
}
.cc-social-spinner::after,
.cc-auth-dual-spinner::after {
    inset: 4px;
    border: 1.5px solid rgba(237,65,111,.18);
    border-bottom-color: #ed416f;
    animation: cc-dual-spin-reverse .52s linear infinite;
}
[data-social-auth] .cc-social-spinner {
    display: none !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
}
[data-social-auth].is-loading .cc-social-spinner { display: inline-block !important; }
.cc-auth-dual-spinner {
    display: none !important;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
}
.cc-auth-form .cc-primary-btn.is-loading .cc-auth-dual-spinner { display: inline-block !important; }
.cc-auth-form .cc-primary-btn.is-loading .cc-auth-submit-arrow { display: none !important; }
.cc-auth-form .cc-primary-btn { gap: 9px; }
.premium-nav .premium-login.premium-login-pro .premium-login-spinner {
    display: none !important;
    flex: 0 0 15px !important;
    width: 15px !important;
    height: 15px !important;
    border: 0 !important;
}
.premium-nav .premium-login.premium-login-pro .premium-login-spinner::before {
    inset: 0;
    border: 1.7px solid rgba(255,255,255,.28);
    border-top-color: #ff7197;
    animation: cc-dual-spin .72s linear infinite;
}
.premium-nav .premium-login.premium-login-pro .premium-login-spinner::after {
    inset: 3.5px;
    border: 1.2px solid rgba(255,113,151,.22);
    border-bottom-color: #ff7197;
    animation: cc-dual-spin-reverse .5s linear infinite;
}
.premium-nav.cc-nav-scrolled .premium-login.premium-login-pro .premium-login-spinner::before { border-color: rgba(53,42,51,.17); border-top-color: #e84470; }
.premium-nav.cc-nav-scrolled .premium-login.premium-login-pro .premium-login-spinner::after { border-color: rgba(232,68,112,.18); border-bottom-color: #e84470; }
.premium-nav .premium-login.premium-login-pro.is-loading .premium-login-spinner { display: inline-block !important; }
@keyframes cc-dual-spin { to { transform: rotate(360deg); } }
@keyframes cc-dual-spin-reverse { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
    .cc-social-spinner::before,.cc-social-spinner::after,.premium-login-spinner::before,.premium-login-spinner::after,.cc-auth-dual-spinner::before,.cc-auth-dual-spinner::after { animation-duration: 1.45s !important; }
}

/* Profil + préférences de compatibilité — modules sobres, premium et responsives. */
.settings-page-profile-edit .profile-match-section {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 21px;
    overflow: hidden;
    border: 1px solid rgba(55,37,52,.08);
    border-radius: 22px;
    background: linear-gradient(145deg,#fff 0%,#fffafb 100%);
    box-shadow: 0 12px 34px rgba(62,41,55,.045);
}
.settings-page-profile-edit .profile-match-section--search {
    background: linear-gradient(145deg,#fff 0%,#fff6f9 100%);
    border-color: rgba(232,65,109,.10);
}
.settings-page-profile-edit .profile-match-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 180px;
    height: 180px;
    right: -90px;
    top: -100px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(239,68,113,.075),rgba(239,68,113,0) 70%);
    pointer-events: none;
}
.settings-page-profile-edit .profile-match-heading,
.settings-page-profile-edit .profile-match-grid,
.settings-page-profile-edit .profile-match-advice { position: relative; z-index: 1; }
.settings-page-profile-edit .profile-match-heading { display: flex; align-items: flex-start; gap: 13px; }
.settings-page-profile-edit .profile-match-heading-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(234,65,110,.11);
    border-radius: 14px;
    background: #fff;
    color: #e94370;
    box-shadow: 0 7px 20px rgba(234,65,110,.075);
}
.settings-page-profile-edit .profile-match-heading-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.settings-page-profile-edit .profile-match-kicker { display: block; margin: 1px 0 4px; color: #b06b81; font-size: .61rem; font-weight: 850; letter-spacing: .11em; }
.settings-page-profile-edit .profile-match-heading h2 { margin: 0; color: #2c222d; font-size: 1.15rem; letter-spacing: -.025em; }
.settings-page-profile-edit .profile-match-heading p { margin: 5px 0 0; color: #857985; font-size: .78rem; line-height: 1.55; }
.settings-page-profile-edit .profile-match-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.settings-page-profile-edit .profile-match-grid > label,
.settings-page-profile-edit .profile-match-range { display: grid; gap: 7px; min-width: 0; }
.settings-page-profile-edit .profile-match-grid > label > span,
.settings-page-profile-edit .profile-match-range > span { color: #4f4450; font-size: .75rem; font-weight: 800; }
.settings-page-profile-edit .profile-match-grid small,
.settings-page-profile-edit .profile-match-range small { color: #a58e98; font-size: .64rem; font-weight: 650; }
.settings-page-profile-edit .profile-match-grid select,
.settings-page-profile-edit .profile-match-grid input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid rgba(61,43,57,.105);
    border-radius: 13px;
    background: rgba(255,255,255,.92);
    color: #382f39;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.settings-page-profile-edit .profile-match-grid select:focus,
.settings-page-profile-edit .profile-match-grid input:focus { border-color: rgba(232,65,109,.32); background: #fff; box-shadow: 0 0 0 4px rgba(232,65,109,.07); }
.settings-page-profile-edit .profile-match-number > div { position: relative; }
.settings-page-profile-edit .profile-match-number > div input { padding-right: 45px; }
.settings-page-profile-edit .profile-match-number > div b,
.settings-page-profile-edit .profile-match-range label b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #ad929d; font-size: .7rem; font-weight: 800; pointer-events: none; }
.settings-page-profile-edit .profile-match-range > div { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 7px; align-items: center; }
.settings-page-profile-edit .profile-match-range label { position: relative; min-width: 0; }
.settings-page-profile-edit .profile-match-range label input { padding-right: 38px; }
.settings-page-profile-edit .profile-match-range > div > i { color: #ad9ca5; font-size: .7rem; font-style: normal; }
.settings-page-profile-edit .profile-match-advice { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border-radius: 13px; background: rgba(239,65,111,.055); color: #7e6973; }
.settings-page-profile-edit .profile-match-advice > span { color: #e94370; font-size: .9rem; line-height: 1.3; }
.settings-page-profile-edit .profile-match-advice p { margin: 0; font-size: .71rem; line-height: 1.5; }
.settings-page-profile-edit .profile-match-advice strong { color: #6c5360; }

/* Carte de compatibilité réellement calculée. */
.profile-sidebar .compatibility-card--dynamic { position: relative; overflow: hidden; text-align: center; }
.profile-sidebar .compatibility-card--dynamic::before { content:""; position:absolute; width:180px; height:180px; left:50%; top:-115px; transform:translateX(-50%); border-radius:50%; background:radial-gradient(circle,rgba(243,64,111,.11),rgba(243,64,111,0) 70%); pointer-events:none; }
.profile-sidebar .compatibility-card--dynamic .compatibility-ring {
    position: relative;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-content: center;
    width: 112px;
    height: 112px;
    margin: 2px auto 12px;
    box-sizing: border-box;
    border: 8px solid transparent;
    border-radius: 50%;
    background: linear-gradient(#fff,#fff) padding-box, conic-gradient(#f04470 calc(var(--compatibility) * 1%),#f8dbe4 0) border-box;
    box-shadow: inset 0 0 0 1px rgba(239,65,109,.03),0 10px 30px rgba(239,65,109,.09);
}
.profile-sidebar .compatibility-card--dynamic .compatibility-ring span { align-self:center; color:#f04470; font-size:1.72rem; line-height:1; font-weight:900; font-variant-numeric:tabular-nums; }
.profile-sidebar .compatibility-card--dynamic .compatibility-ring small { align-self:end; margin:0 0 2px 2px; color:#f04470; font-size:.82rem; font-weight:850; }
.profile-sidebar .compatibility-kicker { display:block; margin:0 0 5px; color:#b1798a; font-size:.59rem; font-weight:850; letter-spacing:.105em; }
.profile-sidebar .compatibility-card--dynamic h3 { margin:0 0 8px; color:#2c222d; font-size:1.06rem; letter-spacing:-.02em; }
.profile-sidebar .compatibility-card--dynamic p { margin:0 auto 13px; max-width:250px; color:#82747e; font-size:.76rem; line-height:1.55; }
.profile-sidebar .compatibility-card--dynamic ul { display:grid; gap:7px; margin:0; padding:0; list-style:none; text-align:left; }
.profile-sidebar .compatibility-card--dynamic li { display:flex; align-items:center; gap:8px; color:#5f535c; font-size:.73rem; }
.profile-sidebar .compatibility-card--dynamic li span { display:grid; place-items:center; width:20px; height:20px; flex:0 0 20px; border-radius:50%; background:#fff0f4; color:#e94370; font-size:.63rem; font-weight:900; }
.profile-sidebar .compatibility-coverage { display:block; margin-top:13px; padding-top:11px; border-top:1px solid rgba(61,44,57,.07); color:#a397a0; font-size:.62rem; line-height:1.45; }

@media (max-width: 640px) {
    .settings-page-profile-edit .profile-match-section { padding: 17px 14px; border-radius: 19px; }
    .settings-page-profile-edit .profile-match-grid { grid-template-columns: 1fr; }
    .settings-page-profile-edit .profile-match-heading { gap: 10px; }
    .settings-page-profile-edit .profile-match-heading-icon { width: 38px; height: 38px; flex-basis: 38px; }
}
html[data-theme="dark"] .settings-page-profile-edit .profile-match-section { background:linear-gradient(145deg,#211a22,#251c23);border-color:rgba(255,255,255,.07);box-shadow:none; }
html[data-theme="dark"] .settings-page-profile-edit .profile-match-heading h2,html[data-theme="dark"] .settings-page-profile-edit .profile-match-grid>label>span,html[data-theme="dark"] .settings-page-profile-edit .profile-match-range>span{color:#f4edf2}html[data-theme="dark"] .settings-page-profile-edit .profile-match-grid select,html[data-theme="dark"] .settings-page-profile-edit .profile-match-grid input{background:#181419;border-color:rgba(255,255,255,.09);color:#f4edf2}html[data-theme="dark"] .settings-page-profile-edit .profile-match-heading-icon{background:#1c171d}
