.confirm-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    background: rgba(0, 0, 0, 0.35);
}

.confirm-overlay.show {
    display: flex;
}

.confirm-modal {
    background: #fff;
    width: min(420px, 92vw);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.confirm-overlay.show .confirm-modal {
    transform: translateY(0);
    opacity: 1;
}

.confirm-header {
    padding: 14px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.confirm-title {
    margin: 0;
    font-size: 1.05rem;
}

.confirm-close {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 8px;
}

.confirm-body {
    padding: 10px 16px 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.confirm-actions {
    padding: 14px 16px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-actions button {
    width: auto;
    min-width: 100px;
    padding: 8px 12px;
    margin: 0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.btn-cancel {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: #fff;
}

.btn-danger {
    border: 1px solid #C1272D;
    background: #C1272D;
    color: #fff;
}

.btn-confirm,
.btn-cancel,
.btn-danger,
.confirm-close {
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease;
    cursor: pointer;
}

.btn-confirm:active,
.btn-cancel:active,
.btn-danger:active,
.confirm-close:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-confirm:hover,
.btn-cancel:hover,
.btn-danger:hover,
.confirm-close:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    filter: brightness(1.08);
}

.btn-danger:hover {
    background: #a81f24;
    box-shadow: 0 4px 14px rgba(193, 39, 45, 0.45);
}

.btn-confirm:hover {
    background: #006018;
    /* un peu plus foncé que ton vert */
    box-shadow: 0 4px 14px rgba(0, 117, 31, 0.45);
}

.btn-cancel:hover {
    background: #f2f2f2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}