/* ============================================================
   PRIVATE EVENTS V99.43
   Theme clair : messagerie, mon profil, deconnexion, bulles chat
   ============================================================ */

/* ============================================================
   1) LISTE DES MESSAGES : structure claire et separations nettes
   ============================================================ */
html[data-theme="light"] body.messages-index-page .v71-conversation-list,
html[data-theme="light"] body.messages-index-page .v71-messaging-empty {
    background: #fffafc;
    border: 1px solid #dbcdd2;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(92, 69, 79, 0.08);
}

html[data-theme="light"] body.messages-index-page .v71-conversation-list {
    overflow: hidden;
}

html[data-theme="light"] body.messages-index-page .v954-conversation-item + .v954-conversation-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 76px;
    right: 0;
    height: 1px;
    background: #e6d9de;
}

html[data-theme="light"] body.messages-index-page .v71-conversation-row {
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
}

html[data-theme="light"] body.messages-index-page .v71-conversation-row:hover,
html[data-theme="light"] body.messages-index-page .v71-conversation-row:focus-visible {
    background: #fff1f6 !important;
}

html[data-theme="light"] body.messages-index-page .v71-conversation-row.has-unread {
    background: linear-gradient(90deg, #fdebf3 0%, #fffafc 42%) !important;
}

html[data-theme="light"] body.messages-index-page .v71-conversation-topline time,
html[data-theme="light"] body.messages-index-page .v71-conversation-bottomline p,
html[data-theme="light"] body.messages-index-page .v71-conversation-subject {
    color: #6c5c64;
}

html[data-theme="light"] body.messages-index-page .v71-unread-badge {
    background: linear-gradient(135deg, #d82f79, #b62461);
    color: #ffffff;
    border: 1px solid rgba(172, 22, 88, 0.22);
    box-shadow: 0 6px 14px rgba(190, 41, 103, 0.16);
}

html[data-theme="light"] body.messages-index-page .v71-webmaster-label {
    background: #432833;
    color: #f7e8ef;
}

/* Cases de selection coherentes avec le theme clair. */
html[data-theme="light"] body.messages-index-page .v954-chat-selector.v75-photo-select span {
    border: 1px solid #cbbec4;
    border-radius: 9px;
    background: linear-gradient(180deg, #f8f2f4, #eee6ea);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 5px 14px rgba(97, 71, 83, 0.10);
}

html[data-theme="light"] body.messages-index-page .v954-chat-selector.v75-photo-select input:checked + span {
    background: linear-gradient(135deg, #d92f79, #bb2564);
    border-color: #b42161;
}

html[data-theme="light"] body.messages-index-page .v954-chat-selector.v75-photo-select input:checked + span::after {
    color: #ffffff;
}

/* ============================================================
   2) BARRE BASSE DE SELECTION : fini l'effet fade du theme sombre
   ============================================================ */
html[data-theme="light"] body.messages-index-page .v9855-message-command-dock {
    border: 1px solid #d8c9cf;
    background: linear-gradient(180deg, rgba(255, 253, 253, 0.98), rgba(242, 232, 236, 0.98));
    box-shadow:
        0 18px 34px rgba(98, 75, 84, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(18px) saturate(1.06);
    backdrop-filter: blur(18px) saturate(1.06);
}

html[data-theme="light"] body.messages-index-page .v9855-message-command-dock > .v9855-selection-toggle {
    border: 1px solid #d8c5ce;
    background: linear-gradient(180deg, #fff8fb, #f5ebef);
    color: #4d3b43;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] body.messages-index-page .v9855-chat-bulk-bar .v934-bulk-summary strong {
    color: #6b5660;
}

html[data-theme="light"] body.messages-index-page .v9855-chat-bulk-bar .v934-bulk-link,
html[data-theme="light"] body.messages-index-page .v9855-chat-bulk-bar .v75-bulk-cancel {
    border: 1px solid #dcccd2;
    background: linear-gradient(180deg, #fffdfd, #f4edf0);
    color: #5b4952;
}

html[data-theme="light"] body.messages-index-page .v9855-chat-bulk-bar .v934-bulk-delete {
    border: 1px solid #c64a82 !important;
    background: linear-gradient(135deg, #e478a6, #cd3a7c) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(193, 55, 111, 0.18);
}

html[data-theme="light"] body.messages-index-page .v9855-chat-bulk-bar .v934-bulk-delete:disabled {
    opacity: 1;
    border-color: #e2d1d8 !important;
    background: linear-gradient(180deg, #f9f2f5, #f0e7eb) !important;
    color: #b29ea7 !important;
    box-shadow: none;
}

/* ============================================================
   3) MON PROFIL : suppression des codes visuels sombres residuels
   ============================================================ */
html[data-theme="light"] body.profile-edit-page .profile-panel,
html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-details {
    background: linear-gradient(180deg, #fffafb, #f7eff2);
    border: 1px solid #dccdd2;
    box-shadow: 0 14px 30px rgba(96, 73, 82, 0.08);
}

html[data-theme="light"] body.profile-edit-page .profile-label,
html[data-theme="light"] body.profile-edit-page .profile-header-copy h1,
html[data-theme="light"] body.profile-edit-page .profile-panel h2,
html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-summary-text strong,
html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-row strong {
    color: #3d3137;
}

html[data-theme="light"] body.profile-edit-page .profile-header-copy .muted,
html[data-theme="light"] body.profile-edit-page .character-counter,
html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-summary-text small,
html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-row small,
html[data-theme="light"] body.profile-edit-page .password-help {
    color: #76656d;
}

html[data-theme="light"] body.profile-edit-page .profile-main-avatar {
    border: 1px solid #d4c3c9;
    box-shadow: 0 10px 24px rgba(98, 72, 82, 0.10);
}

html[data-theme="light"] body.profile-edit-page .profile-type-badge,
html[data-theme="light"] body.profile-edit-page .location-picker-current {
    border: 1px solid #d5c7cd;
    background: #f7eff2;
    color: #5d4c54;
}

html[data-theme="light"] body.profile-edit-page .location-picker {
    background: #fff9fb;
    border: 1px solid #dbccd2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body.profile-edit-page .location-picker-heading h3,
html[data-theme="light"] body.profile-edit-page .location-picker-search label {
    color: #4a3a42;
}

html[data-theme="light"] body.profile-edit-page .location-search-button,
html[data-theme="light"] body.profile-edit-page .location-geolocate-button {
    border: 1px solid #d3c1c9;
    box-shadow:
        0 8px 18px rgba(98, 72, 82, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] body.profile-edit-page .location-picker-status {
    border: 1px solid #b8d5c0;
    background: #edf7ef;
    color: #365542;
}

html[data-theme="light"] body.profile-edit-page .profile-location-info > summary {
    border: 1px solid #d3c2c9;
    background: linear-gradient(180deg, #f6eef2, #ebe1e6);
    color: #5b4952;
}

html[data-theme="light"] body.profile-edit-page .profile-location-info[open] > summary {
    background: linear-gradient(180deg, #efb7cd, #e48db2);
    border-color: #d9739f;
    color: #ffffff;
}

html[data-theme="light"] body.profile-edit-page .profile-location-info-panel {
    background: #fffafc;
    border: 1px solid #ddd1d6;
    color: #62535a;
}

html[data-theme="light"] body.profile-edit-page .profile-password-details {
    border: 1px solid #dacbd1;
    background: #fff9fb;
    box-shadow: 0 10px 24px rgba(96, 72, 82, 0.06);
}

html[data-theme="light"] body.profile-edit-page .profile-password-details > summary {
    background: linear-gradient(180deg, #fffafc, #f4ecef);
    color: #473940;
}

html[data-theme="light"] body.profile-edit-page .profile-password-summary-chevron,
html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-chevron,
html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-row-chevron {
    color: #b26a8c;
}

html[data-theme="light"] body.profile-edit-page .profile-password-fields {
    border-top: 1px solid #e6dade;
}

html[data-theme="light"] body.profile-edit-page .password-toggle {
    border-radius: 10px;
    background: #f5edf0;
}

html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-summary-icon,
html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-row-icon {
    background: #f6e8ee;
    color: #aa3e71;
}

html[data-theme="light"] body.profile-edit-page .v9811-profile-transfer-row {
    border: 1px solid #ddd0d5;
    background: rgba(255, 255, 255, 0.82);
}

/* ============================================================
   4) MODALE DE DECONNEXION : vrai standard clair
   ============================================================ */
html[data-theme="light"] .pe9864-logout-backdrop {
    background: rgba(219, 202, 210, 0.54);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}

html[data-theme="light"] .pe9864-logout-card {
    border: 1px solid #d8c8cf;
    background: linear-gradient(180deg, #fffefe, #f5ebef);
    box-shadow:
        0 24px 58px rgba(96, 74, 83, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.94);
    color: #362b31;
}

html[data-theme="light"] .pe9864-logout-icon {
    background: #f8eaf0;
    border-color: #ecc2d3;
    color: #d54682;
}

html[data-theme="light"] .pe9864-logout-card h2 {
    color: #33282e;
}

html[data-theme="light"] .pe9864-logout-card p {
    color: #685861;
}

html[data-theme="light"] .pe9864-logout-cancel {
    color: #5a4a52;
    border: 1px solid #dcced3;
    background: linear-gradient(180deg, #fffdfd, #f1eaed);
}

html[data-theme="light"] .pe9864-logout-confirm {
    border: 1px solid #c84a82;
    background: linear-gradient(135deg, #e476a6, #cd3a7c);
    box-shadow: 0 10px 24px rgba(196, 53, 110, 0.18);
}

html[data-theme="light"] .pe9864-logout-button:focus-visible {
    outline-color: #d9578f;
}

/* ============================================================
   5) CONVERSATIONS : bulles claires, nettes et non issues du theme sombre
   ============================================================ */
html[data-theme="light"] body.v71-chat-body .message-bubble,
html[data-theme="light"] body.v71-chat-body .v71-webmaster-message-bubble {
    box-shadow: 0 10px 22px rgba(95, 72, 81, 0.10);
}

html[data-theme="light"] body.v71-chat-body .message-bubble-row.is-received .message-bubble,
html[data-theme="light"] body.v71-chat-body .v71-webmaster-message-row.is-received .v71-webmaster-message-bubble {
    background: #ffffff !important;
    border: 1px solid #d8cad0 !important;
    color: #2f252a !important;
}

html[data-theme="light"] body.v71-chat-body .message-bubble-row.is-sent .message-bubble,
html[data-theme="light"] body.v71-chat-body .v71-webmaster-message-row.is-sent .v71-webmaster-message-bubble {
    background: linear-gradient(180deg, #e985b0 0%, #d75f97 100%) !important;
    border: 1px solid #cb5a8e !important;
    color: #ffffff !important;
}

html[data-theme="light"] body.v71-chat-body .message-bubble-row.is-sent .message-bubble *,
html[data-theme="light"] body.v71-chat-body .v71-webmaster-message-row.is-sent .v71-webmaster-message-bubble *,
html[data-theme="light"] body.v71-chat-body .message-bubble-row.is-received .message-bubble *,
html[data-theme="light"] body.v71-chat-body .v71-webmaster-message-row.is-received .v71-webmaster-message-bubble * {
    color: inherit;
}

html[data-theme="light"] body.v71-chat-body .message-bubble-row.is-sent .message-meta,
html[data-theme="light"] body.v71-chat-body .message-bubble-row.is-sent .message-read-state,
html[data-theme="light"] body.v71-chat-body .v71-webmaster-message-row.is-sent .v71-message-time {
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] body.v71-chat-body .message-bubble-row.is-received .message-meta,
html[data-theme="light"] body.v71-chat-body .v71-webmaster-message-row.is-received .v71-message-time {
    color: #7b6972;
}

html[data-theme="light"] body.v71-chat-body .v71-ticket-context {
    color: inherit;
}

html[data-theme="light"] body.v71-chat-body .v71-ticket-context span {
    background: rgba(255, 255, 255, 0.68);
}

/* Cartes internes des demandes de photos privees. */
html[data-theme="light"] body.v71-chat-body .private-photo-request-message {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(216, 202, 208, 0.90);
    border-radius: 15px;
    background: rgba(255, 250, 252, 0.86);
    color: #5b4b53;
}

html[data-theme="light"] body.v71-chat-body .private-photo-request-heading {
    color: #4c3c43;
}

html[data-theme="light"] body.v71-chat-body .private-photo-request-grant-form select {
    background: #ffffff;
    border: 1px solid #d8c8cf;
    color: #40353a;
}

html[data-theme="light"] body.v71-chat-body .private-photo-request-accept {
    background: linear-gradient(135deg, #e577a7, #cf3c7d);
    border: 1px solid #c84e82;
    color: #ffffff;
}

html[data-theme="light"] body.v71-chat-body .private-photo-request-decline {
    background: #fffdfd;
    border: 1px solid #d9ccd1;
    color: #5e4f57;
}

html[data-theme="light"] body.v71-chat-body .private-photo-request-status.is-pending {
    background: #fff5da;
    border: 1px solid #ecd28d;
    color: #7b5c11;
}

html[data-theme="light"] body.v71-chat-body .private-photo-request-status.is-granted {
    background: #ebf7ef;
    border: 1px solid #b9dbbf;
    color: #2d6b3d;
}

html[data-theme="light"] body.v71-chat-body .private-photo-request-status.is-declined,
html[data-theme="light"] body.v71-chat-body .private-photo-request-status.is-cancelled {
    background: #f7edf1;
    border: 1px solid #ddc8d0;
    color: #735f68;
}

html[data-theme="light"] body.v71-chat-body .message-system-badge {
    background: #f3eaee;
    border: 1px solid #dccdd3;
    color: #5f4f58;
}
