/* PRIVATE EVENTS V99.61 — Workspaces Desktop V1.
   Aucun effet sous 1200 px. */
@media (min-width: 1200px) {
    /* -------- Messagerie Desktop V2, sans iframe -------- */
    body.pe-v9958-desktop-shell.messages-index-page .v71-messaging-page {
        width: min(1580px, calc(100% - 56px));
    }

    .v9960-messaging-workspace {
        grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
        gap: 20px;
        height: calc(100vh - 182px);
        min-height: 650px;
        max-height: 860px;
    }

    .v9960-messaging-chat-pane {
        isolation: isolate;
    }

    .v9961-messaging-chat-host,
    .v9961-messaging-chat-loading {
        position: absolute;
        inset: 0;
    }

    .v9961-messaging-chat-host[hidden],
    .v9961-messaging-chat-loading[hidden] {
        display: none !important;
    }

    .v9961-messaging-chat-loading {
        z-index: 3;
        display: grid;
        place-content: center;
        justify-items: center;
        gap: 12px;
        color: rgba(225,207,216,.76);
        background: rgba(12,11,15,.42);
    }

    .v9961-messaging-chat-loading::before {
        content: "";
        width: 32px;
        height: 32px;
        border: 3px solid rgba(225,147,184,.18);
        border-top-color: #d45d98;
        border-radius: 50%;
        animation: v9961-spin .75s linear infinite;
    }

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

    .v9961-messaging-chat-host {
        z-index: 2;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    .v9961-messaging-chat-host .v71-chat-shell {
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .v9961-messaging-chat-host .v71-chat-header {
        flex: 0 0 auto;
        min-height: 74px;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(226,147,184,.12);
        background: rgba(20,17,22,.54);
        backdrop-filter: blur(12px);
    }

    .v9961-messaging-chat-host .v71-chat-back {
        display: none !important;
    }

    .v9961-messaging-chat-host .v71-chat-messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 20px 24px 18px;
        overflow: auto !important;
        scrollbar-width: thin;
    }

    .v9961-messaging-chat-host .v71-chat-composer {
        position: relative !important;
        inset: auto !important;
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 12px 16px 14px !important;
        border-top: 1px solid rgba(226,147,184,.12);
        background: rgba(18,14,19,.94) !important;
        backdrop-filter: blur(14px);
    }

    .v9961-messaging-chat-host .v71-chat-composer-main {
        gap: 10px;
    }

    .v9961-messaging-chat-host .v71-chat-composer textarea {
        min-height: 46px;
        max-height: 140px;
    }

    .v9961-messaging-chat-host .message-send-button {
        min-width: 110px;
    }

    .v9961-messaging-chat-host .v71-chat-day-separator {
        margin: 12px 0;
    }

    /* -------- Recherche : vrai formulaire desktop -------- */
    body.pe-v9958-desktop-shell.v9898-search-page-body .v9898-search-page {
        width: min(1260px, calc(100% - 72px));
        max-width: none;
        margin-inline: auto;
        padding: 44px 0 72px;
    }

    body.pe-v9958-desktop-shell .v9898-search-header {
        width: 100%;
        max-width: none;
        margin: 0 0 18px;
        padding: 22px 26px;
        border: 1px solid rgba(226,147,184,.16);
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(94,31,62,.38), rgba(35,20,30,.46));
    }

    body.pe-v9958-desktop-shell .v9898-search-header h1 {
        font-size: clamp(1.75rem, 2vw, 2.3rem);
        margin-bottom: 2px;
    }

    body.pe-v9958-desktop-shell .v9898-search-form {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 24px;
        border-radius: 18px;
        border: 1px solid rgba(226,147,184,.16);
        background: rgba(27,17,24,.72);
        box-shadow: 0 18px 44px rgba(0,0,0,.12);
    }

    body.pe-v9958-desktop-shell .v9898-search-form .v847-search-kind-field {
        max-width: 380px;
        margin-bottom: 18px;
    }

    body.pe-v9958-desktop-shell .v9898-search-form .v847-search-fields {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 18px;
        align-items: end;
    }

    body.pe-v9958-desktop-shell .v9898-search-form .v847-search-fields[hidden] {
        display: none !important;
    }

    body.pe-v9958-desktop-shell .v9898-search-form .v847-search-field,
    body.pe-v9958-desktop-shell .v9898-search-form .v847-search-checks {
        min-width: 0;
        margin: 0;
    }

    body.pe-v9958-desktop-shell .v9898-search-form .v847-search-wide {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 12px 22px;
        padding: 15px 16px;
        border: 1px solid rgba(226,147,184,.11);
        border-radius: 13px;
        background: rgba(255,255,255,.025);
    }

    body.pe-v9958-desktop-shell .v9898-search-actions {
        display: grid;
        grid-template-columns: minmax(180px, .75fr) minmax(260px, 1.25fr);
        gap: 12px;
        width: min(720px, 100%);
        margin: 22px auto 0;
    }

    /* -------- Paramètres : dashboard desktop -------- */
    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-page {
        width: min(1320px, calc(100% - 72px));
        max-width: none;
        margin-inline: auto;
        padding: 42px 0 72px;
    }

    body.pe-v9958-desktop-shell .v9894-settings-header {
        max-width: 920px;
        margin: 0 auto 24px;
        text-align: center;
    }

    body.pe-v9958-desktop-shell .v9894-settings-header h1 {
        justify-content: center;
        font-size: clamp(2rem, 2.2vw, 2.55rem);
    }

    body.pe-v9958-desktop-shell .v9894-settings-menu {
        width: 100%;
        max-width: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    body.pe-v9958-desktop-shell .v9894-settings-menu-row {
        min-height: 108px;
        margin: 0 !important;
        padding: 18px 20px;
        border-radius: 17px;
    }

    body.pe-v9958-desktop-shell .v9894-settings-menu-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    body.pe-v9958-desktop-shell .v9894-settings-menu-copy strong {
        font-size: 1rem;
    }

    body.pe-v9958-desktop-shell .v9894-settings-menu-copy small {
        margin-top: 4px;
        font-size: .78rem;
        line-height: 1.35;
    }

    /* -------- Profil : composition PC élargie -------- */
    body.pe-v9958-desktop-shell.profile-edit-page > main.container {
        width: min(1220px, calc(100% - 72px));
        max-width: none;
        margin-inline: auto;
        padding-top: 40px;
        padding-bottom: 80px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-header {
        width: min(980px, 100%);
        max-width: none;
        margin: 0 auto 28px;
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: center;
        gap: 24px;
        text-align: left;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-main-avatar {
        width: 104px;
        height: 104px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-header-copy {
        align-items: start;
        text-align: left;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-header-copy h1 {
        font-size: clamp(2.25rem, 2.7vw, 3rem);
        margin: 2px 0 6px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-layout {
        width: min(900px, 100%);
        max-width: none;
        margin: 0 auto;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-panel {
        width: 100%;
        max-width: none;
        padding: 28px 30px;
        border-radius: 20px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-panel > h2 {
        font-size: 1.45rem;
        margin-bottom: 22px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form input,
    body.pe-v9958-desktop-shell.profile-edit-page #profile-form select,
    body.pe-v9958-desktop-shell.profile-edit-page #profile-form textarea {
        font-size: .94rem;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #description {
        min-height: 180px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .v9811-profile-transfer-section {
        width: min(900px, 100%);
        max-width: none;
        margin: 18px auto 0;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .v9811-profile-transfer-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    /* Thème clair */
    html[data-theme="light"] .v9961-messaging-chat-loading {
        color: #806d76;
        background: rgba(255,250,248,.74);
    }

    html[data-theme="light"] .v9961-messaging-chat-host .v71-chat-header {
        border-bottom-color: rgba(108,67,84,.12);
        background: rgba(255,250,248,.78);
    }

    html[data-theme="light"] .v9961-messaging-chat-host .v71-chat-composer {
        border-top-color: rgba(108,67,84,.12);
        background: rgba(255,248,246,.94) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell .v9898-search-header,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9898-search-form {
        border-color: rgba(108,67,84,.16);
        background: rgba(255,250,248,.80);
        box-shadow: 0 18px 40px rgba(77,48,60,.07);
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell .v9898-search-form .v847-search-wide {
        border-color: rgba(108,67,84,.11);
        background: rgba(255,255,255,.52);
    }
}

@media (min-width: 1560px) {
    body.pe-v9958-desktop-shell .v9898-search-form .v847-search-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.pe-v9958-desktop-shell .v9894-settings-menu {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
