/* Arrière-plan flouté de la popup de confirmation */
.confirm-dialog::backdrop {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Boîte principale de la popup avec effet 4 bordures */
.confirm-dialog {
    border-top: 4px solid #ec4899;
    border-right: 4px solid #fbbf24;
    border-bottom: 4px solid #10b981;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    background: #e9f1f7;
    padding: 32px 40px;
    max-width: 500px;
    width: min(90vw, 500px);
    margin: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Titres internes (h2 et h3) */
.confirm-dialog h2,
.confirm-dialog h3 {
    color: #1f6f99;
    font-size: clamp(1.4rem, 4vw, 1.6rem);
    font-weight: 800;
    margin: 0 0 16px 0;
    text-align: center;
}

/* Texte descriptif */
.confirm-dialog p {
    color: #1f6f99;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 24px 0;
}

/* Alignement du bouton */
.confirm-dialog div,
.confirm-dialog .actions {
    text-align: center;
}

/* Bouton OK de validation avec effet 3D */
.confirm-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    border: 1px solid rgba(2, 10, 20, 0.35);
    border-bottom-width: 4px;
    border-radius: 8px;
    background: linear-gradient(180deg, #1f4f76 0%, #0b3150 100%);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 0 rgba(2, 10, 20, 0.2), 0 8px 16px rgba(3, 12, 26, 0.15);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

/* État de survol */
.confirm-ok:hover,
.confirm-ok:focus {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 5px 0 rgba(2, 10, 20, 0.2), 0 12px 20px rgba(3, 12, 26, 0.2);
}

/* État de clic (Enfoncement réaliste) */
.confirm-ok:active {
    transform: translateY(3px);
    border-bottom-width: 2px;
    box-shadow: 0 1px 0 rgba(2, 10, 20, 0.2), 0 2px 4px rgba(3, 12, 26, 0.1);
    margin-bottom: 2px;
}

@media screen and (max-width: 576px) {
    .popup-confirm-container {
        width: 90% !important;
        padding: 24px 16px !important;
        border-radius: 12px !important;
    }

    .popup-confirm-title {
        font-size: 1.25rem !important;
    }

    .popup-confirm-btn {
        width: 100% !important;
        padding: 12px !important;
    }
}