/* Popup « Profil déjà proposé » (RponseBesoin) */

.cvt-ap-dialog .modal-dialog {
    max-width: 640px;
    width: calc(100% - 32px);
    margin-top: 8vh;
}

.cvt-ap-dialog .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28), 0 2px 8px rgba(15, 23, 42, .08);
    animation: cvt-ap-in .22s cubic-bezier(.2, .9, .3, 1.2);
}

.cvt-ap-dialog .modal-header,
.cvt-ap-dialog .modal-footer,
.cvt-ap-dialog .modal-content > header,
.cvt-ap-dialog .modal-content > footer {
    display: none !important;
}

.cvt-ap-dialog .modal-body {
    padding: 0 !important;
    max-height: none !important;
}

@keyframes cvt-ap-in {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: none; }
}

.cvt-ap {
    font-size: 13.5px;
    color: #0f172a;
}

/* En-tête */
.cvt-ap-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px 18px;
    background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
    border-bottom: 1px solid #fde2d2;
}

.cvt-ap-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 6px 16px rgba(239, 68, 68, .35);
}

.cvt-ap-titles {
    flex: 1;
    min-width: 0;
}

.cvt-ap-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #9a3412;
    line-height: 1.25;
}

.cvt-ap-subtitle {
    margin-top: 4px;
    color: #475569;
    line-height: 1.45;
}

.cvt-ap-subtitle strong {
    color: #0f172a;
}

.cvt-ap-close {
    flex: 0 0 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.cvt-ap-close:hover {
    background: rgba(15, 23, 42, .06);
    color: #0f172a;
}

/* Corps */
.cvt-ap-body {
    padding: 16px 22px 6px;
    background: #fff;
}

.cvt-ap-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

.cvt-ap-total {
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 12px;
    letter-spacing: 0;
}

.cvt-ap-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cvt-ap-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #f97316;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow .15s, border-color .15s, transform .15s;
}

.cvt-ap-item:hover {
    border-color: #cbd5e1;
    border-left-color: #ef4444;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}

.cvt-ap-item-main {
    flex: 1;
    min-width: 0;
}

.cvt-ap-item-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.cvt-ap-num {
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 1px 6px;
}

.cvt-ap-item-title {
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

a.cvt-ap-item-title:hover {
    color: #ea580c;
    text-decoration: none;
}

.cvt-ap-item-title .fa-external-link-alt {
    font-size: 10px;
    opacity: .45;
    margin-left: 2px;
}

.cvt-ap-item-title.is-empty {
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
}

.cvt-ap-item-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.cvt-ap-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none !important;
    white-space: nowrap;
}

.cvt-ap-pill .fas {
    font-size: 9.5px;
    opacity: .75;
}

.cvt-ap-pill.is-case { background: #f1f5f9; color: #334155; }
.cvt-ap-pill.is-info { background: #e0f2fe; color: #0369a1; }
.cvt-ap-pill.is-wait { background: #fef3c7; color: #b45309; }
.cvt-ap-pill.is-good { background: #dcfce7; color: #15803d; }
.cvt-ap-pill.is-bad { background: #fee2e2; color: #b91c1c; }
.cvt-ap-pill.is-neutral { background: #f1f5f9; color: #64748b; }

a.cvt-ap-pill:hover {
    filter: brightness(.95);
}

.cvt-ap-item-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    max-width: 42%;
}

.cvt-ap-who {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.cvt-ap-avatar {
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}

.cvt-ap-who-name {
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cvt-ap-date {
    font-size: 11.5px;
    color: #94a3b8;
    white-space: nowrap;
}

.cvt-ap-more {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px dashed #fdba74;
    border-radius: 10px;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.cvt-ap-more:hover {
    background: #ffedd5;
    border-color: #fb923c;
}

.cvt-ap-more-arrow {
    margin-left: auto;
    transition: transform .15s;
}

.cvt-ap-more:hover .cvt-ap-more-arrow {
    transform: translateX(3px);
}

/* Pied */
.cvt-ap-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 22px 18px;
    margin-top: 10px;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
}

.cvt-ap-question {
    color: #475569;
    font-weight: 500;
}

.cvt-ap-question .fas {
    color: #f97316;
}

.cvt-ap-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.cvt-ap-btn {
    border: 0;
    border-radius: 9px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .1s;
}

.cvt-ap-btn:active {
    transform: scale(.98);
}

.cvt-ap-btn-ghost {
    background: #fff;
    color: #334155;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.cvt-ap-btn-ghost:hover {
    background: #f1f5f9;
}

.cvt-ap-btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 4px 12px rgba(239, 68, 68, .3);
}

.cvt-ap-btn-danger:hover {
    box-shadow: 0 6px 16px rgba(239, 68, 68, .42);
}

@media (max-width: 560px) {
    .cvt-ap-item {
        flex-direction: column;
        align-items: stretch;
    }

    .cvt-ap-item-side {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        max-width: none;
    }

    .cvt-ap-actions {
        width: 100%;
    }

    .cvt-ap-btn {
        flex: 1;
    }
}
