
/*[ rs Sweetalert ]
///////////////////////////////////////////////////////////
*/
body .swal2-overlay {
    overflow-y: auto !important;
}

body .swal2-icon--success {
    border-color: var(--color-primary) !important;
}

body .swal2-icon--success__line {
    background-color: var(--color-primary) !important;
}

body .swal2-icon--success__ring {
    border: 4px solid var(--color-primary) !important;
}

body .swal2-button:focus,body .swal2-actions button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Le bouton de confirmation cumulait un fond sombre et un texte #0f0f0f :
   il etait illisible, et la regle de survol le figeait dans cet etat parce
   qu'elle etait groupee avec .swal2-confirm. Les etats sont desormais
   separes, et le bouton prend l'accent de marque comme toute action. */

body .swal2-button, body .swal2-actions button.swal2-styled{
    font-size: 13px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    /* 44 px : cible tactile minimale */
    min-height: 44px !important;
    padding: .625rem 1.75rem !important;
    border-radius: 999px !important;
    -webkit-transition: all 0.3s !important;
    -o-transition: all 0.3s !important;
    -moz-transition: all 0.3s !important;
    transition: all 0.3s !important;
}

body .swal2-actions button.swal2-confirm {
    background-color: var(--color-accent) !important;
    border: 1px solid var(--color-accent-border) !important;
    color: var(--color-on-accent) !important;      /* 10.36:1 */
}

body .swal2-actions button.swal2-confirm:hover,
body .swal2-actions button.swal2-confirm:focus {
    background-color: var(--color-accent-hover) !important;
    color: var(--color-on-accent) !important;
}

body .swal2-actions button.swal2-confirm:active {
    background-color: var(--color-accent-active) !important;
}

body .swal2-loading,body .swal2-input{
    min-height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem !important;
    border-radius: .2rem;
}

/* Annulation : surface neutre, pas une alerte — le rouge est reserve aux
   actions destructrices. */
body .swal2-actions button.swal2-cancel {
    background-color: var(--neutral-100) !important;
    border: 1px solid var(--neutral-300) !important;
    color: var(--neutral-800) !important;          /* 10.36:1 */
}

body .swal2-actions button.swal2-cancel:hover,
body .swal2-actions button.swal2-cancel:focus {
    background-color: var(--neutral-200) !important;
    color: var(--neutral-900) !important;
}

body .swal2-actions button.swal2-deny {
    background-color: var(--color-danger) !important;
    border: 1px solid var(--color-danger) !important;
    color: #FFFFFF !important;                     /* 6.54:1 */
}

body .swal2-title {
    color: #333333 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    padding: 0 15px !important;
}

body .swal2-text {
    color: #333333 !important;
    font-size: 15px !important;
    text-align: center !important;
}

body .swal2-footer {
    margin-top: 0 !important;
}

body .swal2-html-container,
body #swal2-html-container{
    overflow: unset;
}

body .swal2-input[type=number] {
    max-width: 100% !important;
}

body .swal2-popup.swal2-toast .swal2-title {
    margin: 0.5em 1em !important;
    padding: 0 !important;
    font-size: 1em !important;
    text-align: initial !important;
}
