/* Popup Communiqué - style "pro" inspiré du modal Matching IA */

.communique-popup-dialog .modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    border: 0;
}

.communique-popup-dialog header.modal-header {
    background: linear-gradient(135deg, #00a7b8 0%, #007a8a 100%);
    color: #fff;
    border-bottom: 0;
    padding: 18px 22px;
}

.communique-popup-dialog header.modal-header .modal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.communique-popup-dialog header.modal-header [data-dismiss="modal"] {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 6px 10px;
}

.communique-popup-dialog .modal-body {
    background: #f6f8fb;
    padding: 18px 22px;
}

.communique-popup-dialog .modal-footer {
    background: #fff;
    border-top: 1px solid #e6e9ef;
    padding: 14px 22px;
}

.communique-popup-dialog .modal-footer .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
}

.communique-popup-dialog .modal-footer .btn-primary {
    background: linear-gradient(135deg, #00a7b8 0%, #007a8a 100%);
    border: 0;
    box-shadow: 0 6px 18px rgba(0, 122, 138, 0.25);
}

.communique-popup-dialog .modal-dialog {
    max-width: 980px;
    width: 90%;
}

.communique-popup {
    width: 100%;
}

.communique-popup__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.communique-popup__meta-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.communique-popup__meta-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

.communique-popup__category {
    background: rgba(255, 255, 255, 0.75);
    color: #0b3d45;
    border: 1px solid rgba(0, 167, 184, 0.22);
    font-weight: 800;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.communique-popup__submeta {
    margin: -6px 0 12px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.communique-popup__badge {
    background: rgba(0, 167, 184, 0.12);
    color: #006b77;
    border: 1px solid rgba(0, 167, 184, 0.22);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
}

.communique-popup__title {
    font-weight: 700;
    font-size: 16px;
    color: #1f2a37;
}

.communique-popup__card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-left: 4px solid #00a7b8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 16px 16px;
}

.communique-popup__content {
    max-height: 55vh;
    overflow: auto;
    color: #344054;
    font-size: 14px;
    line-height: 1.6;
    /* Wrap normally (line breaks for plain text are injected as <br> in JS). */
    white-space: normal;
    overflow-x: auto;
}

.communique-popup__content * {
    /* Avoid inherited/inline nowrap from WYSIWYG content. */
    white-space: inherit !important;
}

.communique-popup__content p {
    margin: 0 0 10px;
}

.communique-popup__content ul,
.communique-popup__content ol {
    margin: 0 0 10px 20px;
}

.communique-popup__footer {
    margin-top: 12px;
}

.communique-popup__dontshow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.communique-popup__dontshow input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00a7b8;
}

.communique-popup-dialog .modal-footer .communique-popup-footer-left {
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* Overlay (style proche du modal Matching IA) */
.communique-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Important: allow scroll/click on the page behind (like your Matching IA usage). */
    pointer-events: none;
}

.communique-popup-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.communique-popup-overlay__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
    pointer-events: auto;
}

.communique-popup-modal {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    border: 0;
}

.communique-popup-modal__header {
    background: linear-gradient(135deg, #00a7b8 0%, #007a8a 100%);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.communique-popup-modal__header-title {
    font-size: 18px;
    font-weight: 800;
}

.communique-popup-modal__close {
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    color: #fff;
    width: 42px;
    height: 36px;
    border-radius: 10px;
    font-size: 28px;
    line-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.communique-popup-modal__close:hover {
    background: rgba(255, 255, 255, 0.26);
}

.communique-popup-modal__body {
    background: #f6f8fb;
    padding: 18px 22px;
}

.communique-popup-modal__footer {
    background: #fff;
    border-top: 1px solid #e6e9ef;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.communique-popup-modal__btn.btn-primary {
    background: linear-gradient(135deg, #00a7b8 0%, #007a8a 100%);
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 22px;
    box-shadow: 0 6px 18px rgba(0, 122, 138, 0.25);
}

.communique-popup-modal__btn-link.btn-default {
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 18px;
}


