/* =========================================================
   XDIRECTTCHAT - ADMIN SIGNALMENTS
   ========================================================= */

.xd-admin-page {
    width: 100%;
    padding: 30px 15px 50px;
    box-sizing: border-box;
}

.xd-admin-container {
    width: min(1100px, 100%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.xd-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.xd-admin-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.xd-admin-header h1 {
    margin: 0;
    color: #172554;
    font-size: 26px;
    line-height: 1.25;
    font-family: 'New Rocker';
}

.xd-admin-header p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
}

.xd-admin-counter {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 13px 18px;
    text-align: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
}

.xd-admin-counter strong {
    display: block;
    color: #2563eb;
    font-size: 24px;
    line-height: 1;
}

.xd-admin-counter span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.xd-empty {
    padding: 55px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.xd-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.xd-empty h2 {
    margin: 0;
    color: #334155;
    font-size: 20px;
}

.xd-empty p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
}


/* =========================================================
   LISTE
   ========================================================= */

.xd-report-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* =========================================================
   CARTE
   ========================================================= */

.xd-report-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.xd-report-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 24px rgba(15, 23, 42, 0.09);
}


/* =========================================================
   HEADER CARTE
   ========================================================= */

.xd-report-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f7;
}

.xd-report-number {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xd-report-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    font-size: 20px;
}

.xd-report-label {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 12px;
}

.xd-report-number strong {
    color: #1e293b;
    font-size: 18px;
}


/* =========================================================
   STATUT
   ========================================================= */

.xd-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.xd-status.nouveau {
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.xd-status.traite {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.xd-status.rejete {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.xd-status.inconnu {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}


/* =========================================================
   PERSONNES
   ========================================================= */

.xd-people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.xd-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
}

.xd-person-reported {
    background: #fffafa;
    border-color: #fee2e2;
}

.xd-person-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
}

.xd-person-info {
    min-width: 0;
}

.xd-person-info span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 12px;
}

.xd-person-info strong {
    display: block;
    overflow: hidden;
    color: #1e293b;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   INFORMATIONS
   ========================================================= */

.xd-report-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.xd-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.xd-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    background: #f1f5f9;
    border-radius: 9px;
}

.xd-info-item span:not(.xd-info-icon) {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 11px;
}

.xd-info-item strong {
    display: block;
    color: #334155;
    font-size: 13px;
}


/* =========================================================
   COMMENTAIRE
   ========================================================= */

.xd-report-comment {
    margin-top: 14px;
    padding: 14px;
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    border-radius: 10px;
}

.xd-comment-title {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.xd-comment-text {
    margin-top: 7px;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.xd-report-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #eef2f7;
}

.xd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 13px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.xd-button:hover {
    transform: translateY(-1px);
}

.xd-button-primary {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
}

.xd-button-primary:hover {
    background: #1d4ed8;
}

.xd-button-secondary {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.xd-button-secondary:hover {
    background: #dbeafe;
}

.xd-button-success {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.xd-button-success:hover {
    background: #dcfce7;
}

.xd-button-neutral {
    color: #475569;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.xd-button-neutral:hover {
    background: #f1f5f9;
}

.xd-button-danger {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.xd-button-danger:hover {
    background: #fee2e2;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.xd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 30px;
}

.xd-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 40px;
    min-height: 38px;
    padding: 7px 11px;
    box-sizing: border-box;
    color: #475569;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.xd-page-button:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.xd-page-button.active {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
    cursor: default;
}

.xd-page-dots {
    padding: 0 4px;
    color: #94a3b8;
}

.xd-pagination-info {
    margin-top: 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

.xd-pagination-info span {
    margin: 0 5px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 750px) {

    .xd-admin-page {
        padding: 15px 10px 35px;
    }

    .xd-admin-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
        border-radius: 15px;
    }

    .xd-admin-header h1 {
        font-size: 21px;
    }

    .xd-admin-counter {
        width: 100%;
        box-sizing: border-box;
    }

    .xd-report-card {
        padding: 15px;
        border-radius: 15px;
    }

    .xd-report-top {
        align-items: flex-start;
    }

    .xd-people-grid,
    .xd-report-info {
        grid-template-columns: 1fr;
    }

    .xd-report-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .xd-button {
        width: 100%;
    }

    .xd-button-primary {
        grid-column: 1 / -1;
    }

}


@media (max-width: 480px) {

    .xd-admin-header {
        padding: 15px;
    }

    .xd-admin-header h1 {
        font-size: 19px;
    }

    .xd-report-top {
        flex-direction: column;
        align-items: stretch;
    }

    .xd-status {
        align-self: flex-start;
    }

    .xd-report-number {
        align-items: flex-start;
    }

    .xd-person {
        padding: 10px;
    }

    .xd-person-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .xd-report-actions {
        grid-template-columns: 1fr;
    }

    .xd-button-primary {
        grid-column: auto;
    }

    .xd-pagination {
        gap: 5px;
    }

    .xd-page-button {
        min-height: 36px;
        padding: 6px 9px;
    }

}


/* =========================================================
   XDIRECTTCHAT - DÉTAIL SIGNALEMENT
   ========================================================= */


/* =========================================================
   HEADER
   ========================================================= */

.xd-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.xd-detail-header h1 {
    margin: 0;
    color: #172554;
    font-size: 26px;
    line-height: 1.3;
}

.xd-detail-header h1 span {
    color: #64748b;
}

.xd-detail-header p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
}


/* =========================================================
   ERREUR
   ========================================================= */

.xd-admin-error {
    width: min(700px, calc(100% - 30px));
    margin: 40px auto;
    padding: 18px;
    box-sizing: border-box;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    text-align: center;
}


/* =========================================================
   CARTE PRINCIPALE
   ========================================================= */

.xd-detail-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   PERSONNES
   ========================================================= */

.xd-detail-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.xd-detail-person {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.xd-detail-person-warning {
    background: #fffafa;
    border-color: #fee2e2;
}

.xd-detail-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.12);
}

.xd-detail-person > div {
    min-width: 0;
}

.xd-detail-person > div > span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
}

.xd-detail-person strong {
    display: block;
    overflow: hidden;
    color: #1e293b;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   INFORMATIONS
   ========================================================= */

.xd-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.xd-detail-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.xd-detail-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background: #eff6ff;
    border-radius: 9px;
}

.xd-detail-info > div {
    min-width: 0;
}

.xd-detail-info > div > span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 11px;
}

.xd-detail-info strong {
    display: block;
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   COMMENTAIRE
   ========================================================= */

.xd-detail-comment {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    border-radius: 10px;
}

.xd-detail-comment-title {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.xd-detail-comment-text {
    margin-top: 7px;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.xd-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #eef2f7;
}

.xd-detail-actions .xd-button {
    min-height: 39px;
}


/* =========================================================
   TITRE SECTION MESSAGES
   ========================================================= */

.xd-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0 12px;
}

.xd-section-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    font-size: 20px;
}

.xd-section-title h2 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
}

.xd-section-title p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12px;
}


/* =========================================================
   CARTE MESSAGES
   ========================================================= */

.xd-messages-card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   MESSAGE
   ========================================================= */

.xd-message {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
}

.xd-message:last-child {
    margin-bottom: 0;
}

.xd-message-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
}

.xd-message-content {
    min-width: 0;
    flex: 1;
}

.xd-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.xd-message-head strong {
    color: #334155;
    font-size: 13px;
}

.xd-message-head small {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 11px;
}

.xd-message-bubble {
    padding: 11px 13px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px 12px 12px 12px;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.xd-message-sender .xd-message-bubble {
    border-left: 3px solid #2563eb;
}

.xd-message-reported .xd-message-bubble {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
}


/* =========================================================
   AUCUN MESSAGE
   ========================================================= */

.xd-messages-empty {
    padding: 40px 20px;
    text-align: center;
}

.xd-messages-empty span {
    display: block;
    margin-bottom: 8px;
    font-size: 32px;
}

.xd-messages-empty p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .xd-detail-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .xd-detail-header h1 {
        font-size: 21px;
    }

    .xd-detail-card {
        padding: 16px;
        border-radius: 15px;
    }

    .xd-detail-people {
        grid-template-columns: 1fr;
    }

    .xd-detail-info-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .xd-section-title {
        margin-top: 20px;
    }

    .xd-messages-card {
        padding: 12px;
        border-radius: 15px;
    }

    .xd-message {
        gap: 8px;
    }

    .xd-message-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .xd-message-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .xd-message-head small {
        font-size: 10px;
    }

    .xd-detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .xd-detail-actions .xd-button {
        width: 100%;
    }

}


@media (max-width: 450px) {

    .xd-detail-actions {
        grid-template-columns: 1fr;
    }

    .xd-detail-person {
        padding: 11px;
    }

    .xd-detail-avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .xd-message-bubble {
        font-size: 12px;
    }

}

/* =========================================================
   PAGE CONTACT SIGNALEMENT
   ========================================================= */

.xd-admin-page {
    width: 100%;
    padding: 30px 20px 50px;
    box-sizing: border-box;
    background: #f6f8fb;
	border-radius: 15px;
}

.xd-admin-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* =========================================================
   ERREUR
   ========================================================= */

.xd-admin-error {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    color: #334155;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.xd-admin-error > span {
    font-size: 22px;
}

.xd-admin-error strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 16px;
}

.xd-admin-error p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}


/* =========================================================
   HEADER
   ========================================================= */

.xd-contact-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.xd-admin-eyebrow {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.xd-contact-header h1 {
    margin: 0;
    color: #172033;
    font-size: 28px;
    line-height: 1.2;
}

.xd-contact-header p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
}

.xd-contact-report-id {
    flex: 0 0 auto;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.xd-contact-report-id strong {
    margin-left: 4px;
    color: #2563eb;
    font-size: 15px;
}


/* =========================================================
   CARTES
   ========================================================= */

.xd-contact-card {
    margin-bottom: 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.xd-contact-card-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.xd-contact-card-title > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background: #eff6ff;
    border-radius: 10px;
    font-size: 19px;
}

.xd-contact-card-title strong {
    display: block;
    margin-top: 2px;
    color: #172033;
    font-size: 16px;
}

.xd-contact-card-title small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   MEMBRES
   ========================================================= */

.xd-contact-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.xd-contact-person {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.xd-contact-person-warning {
    background: #fffaf3;
    border-color: #f5d9aa;
}

.xd-contact-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    font-size: 21px;
}

.xd-contact-avatar-blue {
    background: #eff6ff;
}

.xd-contact-avatar-orange {
    background: #fff1df;
}

.xd-contact-person-info {
    min-width: 0;
}

.xd-contact-person-info span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 12px;
}

.xd-contact-person-info strong {
    display: block;
    color: #172033;
    font-size: 15px;
    overflow-wrap: anywhere;
}


/* =========================================================
   INFORMATIONS
   ========================================================= */

.xd-contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.xd-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 10px;
}

.xd-contact-info-icon {
    font-size: 18px;
    line-height: 1.2;
}

.xd-contact-info-item small {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
}

.xd-contact-info-item strong {
    display: block;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}


/* =========================================================
   STATUT
   ========================================================= */

.xd-status {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-size: 13px !important;
}

.xd-status.nouveau {
    color: #c2410c !important;
}

.xd-status.traite {
    color: #15803d !important;
}

.xd-status.rejete {
    color: #64748b !important;
}

.xd-status.inconnu {
    color: #64748b !important;
}


/* =========================================================
   COMMENTAIRE
   ========================================================= */

.xd-contact-comment {
    margin-top: 16px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.xd-contact-comment-title {
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.xd-contact-comment-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}


/* =========================================================
   BLOC NOTIFICATION
   ========================================================= */

.xd-contact-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    color: #334155;
}

.xd-contact-notice > span {
    font-size: 20px;
}

.xd-contact-notice strong {
    color: #1e3a8a;
}

.xd-contact-notice p {
    margin: 3px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   CHAMP MESSAGE
   ========================================================= */

.xd-contact-field label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.xd-contact-field textarea {
    display: block;
    width: 100%;
    min-height: 190px;
    box-sizing: border-box;
    padding: 13px 14px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.xd-contact-field textarea::placeholder {
    color: #94a3b8;
}

.xd-contact-field textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
}

.xd-contact-help {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}


/* =========================================================
   MESSAGE RETOUR
   ========================================================= */

.xd-contact-result {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.xd-contact-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.xd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.xd-button:hover {
    transform: translateY(-1px);
}

.xd-button-primary {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.18);
}

.xd-button-primary:hover {
    background: #1d4ed8;
}

.xd-button-secondary {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}

.xd-button-secondary:hover {
    background: #f8fafc;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .xd-contact-header {
        flex-direction: column;
    }

    .xd-contact-report-id {
        align-self: flex-start;
    }

    .xd-contact-info-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .xd-admin-page {
        padding: 20px 12px 35px;
    }

    .xd-contact-header h1 {
        font-size: 23px;
    }

    .xd-contact-card {
        padding: 18px;
        border-radius: 12px;
    }

    .xd-contact-people {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 450px) {

    .xd-contact-header h1 {
        font-size: 21px;
    }

    .xd-contact-card {
        padding: 15px;
    }

    .xd-contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .xd-button {
        width: 100%;
    }

    .xd-contact-report-id {
        width: 100%;
        box-sizing: border-box;
    }

}


/* =========================================================
   MENU ADMIN — xDirectTchat
   ========================================================= */

.block-generale-admin-menu {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto 25px;
    padding: 0 15px;
    box-sizing: border-box;
}


/* =========================================================
   CONTENEUR DU MENU
   ========================================================= */

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   BOUTONS
   ========================================================= */

.admin-menu a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 40px;
    padding: 9px 14px;

    box-sizing: border-box;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    background: #f8fafc;
    color: #334155;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

.admin-menu a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;

    transform: translateY(-2px);

    box-shadow:
        0 4px 10px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   BOUTON ACTIF
   ========================================================= */

.admin-menu a.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(37, 99, 235, 0.20);
}


/* Empêche le hover de casser le bouton actif */

.admin-menu a.active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   BADGE SIGNALEMENTS
   ========================================================= */

.menu-message-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    box-sizing: border-box;

    border-radius: 20px;

    background: #ef4444;
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}


/* Badge dans un bouton actif */

.admin-menu a.active .menu-message-badge {
    background: #ffffff;
    color: #2563eb;
}


/* =========================================================
   BOUTON SIGNALLEMENTS
   ========================================================= */

.admin-menu a[href="/admin/messages-signalements"] {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

.admin-menu a[href="/admin/messages-signalements"]:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}


/* Si le bouton signalements est actif */

.admin-menu a[href="/admin/messages-signalements"].active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.admin-menu a[href="/admin/messages-signalements"].active:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}


/* =========================================================
   PETIT EFFET AU CLIC
   ========================================================= */

.admin-menu a:active {
    transform: translateY(0);
    box-shadow: none;
}


/* =========================================================
   RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .block-generale-admin-menu {
        padding: 0 10px;
    }

    .admin-menu {
        justify-content: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .admin-menu a {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .block-generale-admin-menu {
        padding: 0 8px;
    }

    .admin-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .admin-menu a {
        width: 100%;
        min-height: 44px;
        padding: 9px 8px;

        white-space: normal;
        text-align: center;

        font-size: 12px;
    }

}


/* =========================================================
   PETITS ÉCRANS
   ========================================================= */

@media (max-width: 380px) {

    .admin-menu {
        grid-template-columns: 1fr;
    }

    .admin-menu a {
        min-height: 42px;
    }

}

/* =========================================================
   SALONS
   ========================================================= */

.xd-salons-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.xd-salon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 20px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.05);
}

.xd-salon-main {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 0;
}

.xd-salon-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    flex: 0 0 54px;

    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 13px;

    font-size: 26px;
}

.xd-salon-content {
    min-width: 0;
}

.xd-salon-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.xd-salon-title h2 {
    margin: 0;
    color: #172033;
    font-size: 17px;
}

.xd-salon-status {
    display: inline-flex;
    align-items: center;

    padding: 4px 9px;
    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;
}

.xd-salon-status.actif {
    background: #f0fdf4;
    color: #15803d;
}

.xd-salon-status.inactif {
    background: #f1f5f9;
    color: #64748b;
}

.xd-salon-description {
    margin: 7px 0 10px;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.xd-salon-description.empty {
    font-style: italic;
    color: #94a3b8;
}

.xd-salon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xd-salon-meta span {
    padding: 5px 9px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;

    color: #64748b;
    font-size: 11px;
}

.xd-salon-meta strong {
    color: #334155;
}

.xd-salon-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.xd-button-warning {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.xd-button-warning:hover {
    background: #ffedd5;
    border-color: #fdba74;
}

.xd-button-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.xd-button-success:hover {
    background: #dcfce7;
    border-color: #86efac;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .xd-salon-card {
        flex-direction: column;
        align-items: stretch;
    }

    .xd-salon-actions {
        justify-content: flex-start;
    }

}


@media (max-width: 600px) {

    .xd-salon-main {
        flex-direction: column;
    }

    .xd-salon-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .xd-salon-actions .xd-button {
        width: 100%;
    }

}


@media (max-width: 420px) {

    .xd-salon-actions {
        grid-template-columns: 1fr;
    }

}

.xd-salon-form {
    width: 100%;
}

.xd-form-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15,23,42,.05);
}

.xd-form-title {
    margin-bottom: 22px;
    color: #172033;
    font-size: 17px;
    font-weight: 700;
}

.xd-form-group {
    margin-bottom: 18px;
}

.xd-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.xd-form-group input,
.xd-form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    background: #ffffff;
    color: #1e293b;

    font-family: inherit;
    font-size: 14px;

    outline: none;
}

.xd-form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
}

.xd-form-group input:focus,
.xd-form-group textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59,130,246,.10);
}

.xd-form-group small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}

.xd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.xd-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #334155;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.xd-checkbox input {
    width: 17px;
    height: 17px;
}

.xd-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 600px) {

    .xd-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .xd-form-card {
        padding: 18px;
    }

    .xd-form-actions {
        flex-direction: column;
    }

    .xd-form-actions .xd-button {
        width: 100%;
    }

}

/* Même style que la page d'ajout */

.xd-salon-form {
    width: 100%;
}

.xd-form-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15,23,42,.05);
}

.xd-form-title {
    margin-bottom: 22px;
    color: #172033;
    font-size: 17px;
    font-weight: 700;
}

.xd-form-group {
    margin-bottom: 18px;
}

.xd-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.xd-form-group input,
.xd-form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    background: #ffffff;
    color: #1e293b;

    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.xd-form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.5;
}

.xd-form-group input:focus,
.xd-form-group textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59,130,246,.10);
}

.xd-form-group small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}

.xd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.xd-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.xd-checkbox input {
    width: 17px;
    height: 17px;
}

.xd-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 600px) {

    .xd-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .xd-form-card {
        padding: 18px;
    }

    .xd-form-actions {
        flex-direction: column;
    }

    .xd-form-actions .xd-button {
        width: 100%;
    }

}

.xd-emoji-picker {
    margin: -27px 0 20px 0;	
}


.xd-live-page {
    width: 100%;
    padding: 20px 15px 40px;
    box-sizing: border-box;
    background: #f6f8fb;
}

.xd-live-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* Header */

.xd-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.xd-live-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xd-live-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 27px;
    box-shadow: 0 4px 12px rgba(15,23,42,.05);
}

.xd-live-eyebrow {
    margin: 0 0 3px;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.xd-live-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: 23px;
}

.xd-live-description {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13px;
}

.xd-live-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
}

.xd-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}


/* Live box */

.xd-live-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(15,23,42,.06);
}


/* Toolbar */

.xd-live-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #eef2f7;
    background: #fafbfc;
}

.xd-live-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.xd-live-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 20px;
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
}


/* Messages */

.xd-live-messages {
    height: calc(100vh - 330px);
    min-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background: #f8fafc;
}

.xd-live-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.xd-live-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.xd-live-message-body {
    min-width: 0;
    flex: 1;
}

.xd-live-message-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.xd-live-pseudo {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.xd-live-time {
    color: #94a3b8;
    font-size: 11px;
}

.xd-live-bubble {
    display: inline-block;
    max-width: min(750px, 90%);
    padding: 9px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.xd-live-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.xd-live-action {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
    transition: .15s ease;
}

.xd-live-action:hover {
    transform: translateY(-1px);
}

.xd-live-delete:hover {
    border-color: #fecaca;
    background: #fef2f2;
}

.xd-live-ban:hover {
    border-color: #fed7aa;
    background: #fff7ed;
}


/* Système */

.xd-live-system {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.xd-live-system span {
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-style: italic;
}


/* Vide */

.xd-live-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #94a3b8;
    font-size: 14px;
}


/* Bannissement */

.xd-ban-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15,23,42,.45);
}

.xd-ban-modal.open {
    display: flex;
}

.xd-ban-box {
    width: 100%;
    max-width: 430px;
    padding: 22px;
    box-sizing: border-box;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15,23,42,.20);
}

.xd-ban-box h2 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 19px;
}

.xd-ban-box p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 13px;
}

.xd-ban-options {
    display: grid;
    gap: 8px;
}

.xd-ban-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    cursor: pointer;
}

.xd-ban-option:hover {
    background: #f8fafc;
}

.xd-ban-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.xd-button {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.xd-button-secondary {
    background: #ffffff;
    border-color: #dbe1ea;
    color: #475569;
}

.xd-button-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}


/* Responsive */

@media (max-width: 700px) {

    .xd-live-page {
        padding: 12px 8px 25px;
    }

    .xd-live-header {
        align-items: flex-start;
    }

    .xd-live-status {
        display: none;
    }

    .xd-live-title h1 {
        font-size: 19px;
    }

    .xd-live-icon {
        width: 44px;
        height: 44px;
        font-size: 23px;
    }

    .xd-live-messages {
        height: calc(100vh - 280px);
        min-height: 450px;
        padding: 10px;
    }

    .xd-live-bubble {
        max-width: 100%;
    }

    .xd-live-actions {
        display: flex;
        margin: 5px 0 0;
    }
}

/* =========================================================
   XDIRECTTCHAT - ADMIN MEMBRES
   ========================================================= */

/* ---------------------------------------------------------
   FILTRES
   --------------------------------------------------------- */

.xd-members-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.xd-members-search {
    flex: 1;
    min-width: 0;
}

.xd-members-search input,
.xd-members-role select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xd-members-search input:focus,
.xd-members-role select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.xd-members-search input::placeholder {
    color: #9ca3af;
}

.xd-members-role {
    width: 210px;
    flex-shrink: 0;
}

.xd-members-role select {
    cursor: pointer;
}


/* ---------------------------------------------------------
   RÉSUMÉ
   --------------------------------------------------------- */

.xd-members-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.xd-members-summary-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.xd-members-summary-card strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.xd-members-summary-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
}


/* ---------------------------------------------------------
   LISTE DES MEMBRES
   --------------------------------------------------------- */

.xd-members-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.xd-member-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.xd-member-card:hover {
    border-color: #d1d9e6;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.xd-member-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.xd-member-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef2f7;
    border: 2px solid #e5e7eb;
}

.xd-member-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xd-member-content {
    min-width: 0;
    flex: 1;
}

.xd-member-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
}

.xd-member-title strong {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.xd-member-role {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.xd-member-role.admin {
    color: #7c2d12;
    background: #ffedd5;
    border: 1px solid #fed7aa;
}

.xd-member-role.moderateur {
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.xd-member-role.utilisateur {
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.xd-member-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 14px;
    color: #6b7280;
    font-size: 12px;
}

.xd-member-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.xd-member-email {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    overflow-wrap: anywhere;
}


/* ---------------------------------------------------------
   ACTIONS
   --------------------------------------------------------- */

.xd-member-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    flex-shrink: 0;
}

.xd-member-actions .xd-button {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12px;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   PAGINATION MEMBRES
   --------------------------------------------------------- */

.xd-members-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.xd-members-pagination a,
.xd-members-pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    box-sizing: border-box;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xd-members-pagination a:hover,
.xd-members-pagination button:hover {
    background: #f8fafc;
    border-color: #bfdbfe;
    color: #2563eb;
}

.xd-members-pagination .active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.xd-members-pagination .active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}


/* =========================================================
   MODAL INFOS MEMBRE
   ========================================================= */

.xd-member-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.xd-member-modal {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.xd-member-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #ffffff;
    color: #6b7280;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xd-member-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}


/* ---------------------------------------------------------
   CONTENU INFOS
   --------------------------------------------------------- */

.xd-member-info {
    padding: 28px;
}

.xd-member-info-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 45px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.xd-member-info-avatar {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    overflow: hidden;
    border-radius: 50%;
    background: #eef2f7;
    border: 3px solid #e5e7eb;
}

.xd-member-info-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xd-member-info-header h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
}

.xd-member-info-header p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}


/* ---------------------------------------------------------
   GRILLE DES INFORMATIONS
   --------------------------------------------------------- */

.xd-member-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.xd-member-info-grid > div {
    padding: 13px 14px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 10px;
}

.xd-member-info-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.xd-member-info-grid span {
    display: block;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}


/* ---------------------------------------------------------
   DESCRIPTION
   --------------------------------------------------------- */

.xd-member-info-description {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 10px;
}

.xd-member-info-description strong {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.xd-member-info-description p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* ---------------------------------------------------------
   ERREUR INFOS
   --------------------------------------------------------- */

.xd-member-info-error {
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
}


/* ---------------------------------------------------------
   ACTIONS DU MODAL
   --------------------------------------------------------- */

.xd-member-info-ban,
.xd-member-info-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    margin-top: 20px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xd-member-info-ban {
    margin-right: 8px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.xd-member-info-ban:hover {
    background: #ffedd5;
    border-color: #fdba74;
}

.xd-member-info-ok {
    border: 1px solid #dbe1e8;
    background: #ffffff;
    color: #374151;
}

.xd-member-info-ok:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* =========================================================
   RESPONSIVE TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .xd-member-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .xd-member-main {
        width: 100%;
    }

    .xd-member-actions {
        width: 100%;
        justify-content: flex-start;
        padding-left: 80px;
    }

}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .xd-members-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .xd-members-role {
        width: 100%;
    }

    .xd-members-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .xd-members-summary-card {
        padding: 16px;
    }

    .xd-member-card {
        padding: 15px;
    }

    .xd-member-main {
        gap: 12px;
    }

    .xd-member-avatar {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .xd-member-title strong {
        font-size: 15px;
    }

    .xd-member-actions {
        padding-left: 0;
        gap: 6px;
    }

    .xd-member-actions .xd-button {
        flex: 1 1 auto;
    }

    .xd-member-modal-overlay {
        align-items: flex-start;
        padding: 10px;
    }

    .xd-member-modal {
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .xd-member-info {
        padding: 20px 16px;
    }

    .xd-member-info-header {
        gap: 13px;
        padding-right: 40px;
    }

    .xd-member-info-avatar {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .xd-member-info-header h2 {
        font-size: 18px;
    }

    .xd-member-info-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   PETIT MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .xd-members-filters {
        padding: 13px;
        border-radius: 11px;
    }

    .xd-member-card {
        border-radius: 11px;
    }

    .xd-member-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .xd-member-email {
        font-size: 12px;
    }

    .xd-member-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .xd-member-actions .xd-button {
        width: 100%;
        min-width: 0;
    }

    .xd-members-pagination {
        gap: 5px;
    }

    .xd-members-pagination a,
    .xd-members-pagination button {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }

    .xd-member-info {
        padding: 18px 13px;
    }

    .xd-member-info-header {
        align-items: flex-start;
    }

    .xd-member-info-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .xd-member-info-header h2 {
        font-size: 17px;
    }

    .xd-member-info-grid > div {
        padding: 11px 12px;
    }

    .xd-member-info-ban,
    .xd-member-info-ok {
        width: 100%;
        margin-right: 0;
    }

}

/* =========================================================
   CORRECTION MODAL INFOS MEMBRE
   Le modal doit rester totalement caché tant que hidden est actif
   ========================================================= */

.xd-member-modal-overlay[hidden] {
    display: none !important;
}

/* =========================================================
   LOGS D'ERREUR
========================================================= */

.xd-logs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.xd-logs-actions form {
    margin: 0;
}

.xd-log-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
}

.xd-log-message.success {
    background: #e8f7ed;
    color: #18733a;
    border: 1px solid #b8e3c5;
}

.xd-log-message.error {
    background: #fdecec;
    color: #a51d1d;
    border: 1px solid #f2b8b8;
}

.xd-log-modal {
    width: min(1100px, 95vw);
    max-width: 1100px;
}

.xd-log-view {
    width: 100%;
}

.xd-log-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-right: 30px;
}

.xd-log-view-header h2 {
    margin: 5px 0 0;
    word-break: break-word;
}

.xd-log-content {
    width: 100%;
    max-height: 70vh;
    overflow: auto;
    background: #111;
    border-radius: 10px;
    padding: 18px;
    box-sizing: border-box;
}

.xd-log-content pre {
    margin: 0;
    color: #f1f1f1;
    font-family:
        Consolas,
        Monaco,
        "Courier New",
        monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

/* FILTRES DERNIERES VISITES */

.xd-visites-filtres {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

.xd-visites-filtre {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xd-visites-filtre label {
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

.xd-visites-filtre select {
    min-width: 190px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.xd-visites-filtre select:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24,119,242,.10);
}

.xd-visites-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.xd-visites-reset:hover {
    border-color: #dc3545;
    color: #dc3545;
}

@media (max-width: 600px) {

    .xd-visites-filtres {
        align-items: stretch;
        flex-direction: column;
    }

    .xd-visites-filtre select {
        width: 100%;
    }

    .xd-visites-reset {
        width: 100%;
    }
}

/* ==========================================================================
   ADMIN — BADGES
   ========================================================================== */


/* --------------------------------------------------------------------------
   Carte badge
   -------------------------------------------------------------------------- */

.xd-badge-card {
    align-items: center;
}


/* --------------------------------------------------------------------------
   Icône du badge
   -------------------------------------------------------------------------- */

.xd-badge-icone {
    width: 72px;
    height: 72px;
    min-width: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 38px;
    line-height: 1;

    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;

    margin-right: 16px;
}


/* --------------------------------------------------------------------------
   Description
   -------------------------------------------------------------------------- */

.xd-badge-card .xd-member-email {
    white-space: normal;
    line-height: 1.5;
    color: #6b7280;
}


/* --------------------------------------------------------------------------
   Formulaire badge
   -------------------------------------------------------------------------- */

.xd-badge-modal {
    width: 100%;
    max-width: 560px;
}


.xd-badge-form-group {
    margin-bottom: 18px;
}


.xd-badge-form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;

    color: #374151;
}


.xd-badge-form-group input,
.xd-badge-form-group textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #fff;
    color: #111827;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.xd-badge-form-group input:focus,
.xd-badge-form-group textarea:focus {
    outline: none;

    border-color: #6366f1;

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, .12);
}


.xd-badge-form-group textarea {
    min-height: 110px;

    resize: vertical;
}


/* --------------------------------------------------------------------------
   Message formulaire
   -------------------------------------------------------------------------- */

.xd-badge-form-message {
    margin-bottom: 16px;

    padding: 11px 13px;

    border-radius: 8px;

    background: #fef2f2;
    border: 1px solid #fecaca;

    color: #b91c1c;

    font-size: 14px;
    line-height: 1.4;
}


/* --------------------------------------------------------------------------
   Actions modal
   -------------------------------------------------------------------------- */

.xd-badge-modal .xd-member-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;

    margin-top: 22px;
}


/* --------------------------------------------------------------------------
   Boutons actions
   -------------------------------------------------------------------------- */

.xd-badge-card .xd-member-actions {
    flex-wrap: wrap;
}


.xd-badge-card .xd-member-actions .xd-button {
    white-space: nowrap;
}


/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.xd-pagination {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 25px;
}


/* --------------------------------------------------------------------------
   Responsive tablette
   -------------------------------------------------------------------------- */

@media (max-width: 800px) {

    .xd-badge-card {
        align-items: flex-start;
    }

    .xd-badge-icone {
        width: 60px;
        height: 60px;
        min-width: 60px;

        font-size: 32px;

        border-radius: 14px;

        margin-right: 12px;
    }

}


/* --------------------------------------------------------------------------
   Responsive mobile
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {

    .xd-badge-card {
        flex-direction: column;
    }


    .xd-badge-card .xd-member-main {
        width: 100%;
    }


    .xd-badge-icone {
        width: 58px;
        height: 58px;
        min-width: 58px;

        font-size: 30px;

        margin-right: 10px;
    }


    .xd-badge-card .xd-member-actions {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;

        gap: 8px;

        margin-top: 15px;
    }


    .xd-badge-card .xd-member-actions .xd-button {
        width: 100%;
        justify-content: center;
    }


    .xd-badge-modal {
        max-width: calc(100% - 30px);
    }


    .xd-badge-modal .xd-member-modal-actions {
        flex-direction: column-reverse;
    }


    .xd-badge-modal .xd-member-modal-actions .xd-button {
        width: 100%;
        justify-content: center;
    }


    .xd-pagination {
        gap: 5px;
    }

}


/* --------------------------------------------------------------------------
   Très petit écran
   -------------------------------------------------------------------------- */

@media (max-width: 400px) {

    .xd-badge-card .xd-member-main {
        flex-direction: column;
    }


    .xd-badge-icone {
        margin-right: 0;
        margin-bottom: 12px;
    }

}