/* Notifications (voir js/notification.js) : en bas à droite, au-dessus des fenêtres modales. */
.conteneur-notifications {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    pointer-events: none;
}

.conteneur-notifications .notification {
    /* Bootstrap 4.6 donne aux toasts flex-basis: 350px, qui deviendrait leur hauteur dans ce conteneur vertical */
    flex: 0 0 auto;
    width: 30em;
    max-width: calc(100vw - 40px);
    margin-top: .5rem;
    margin-bottom: 0;
    pointer-events: auto;
    color: #fff;
    border: 0;
    border-radius: .25rem;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
    font-size: .875rem;
    opacity: 0;
    transition: opacity .15s linear;
}

.conteneur-notifications .notification.showing,
.conteneur-notifications .notification.show {
    display: block;
    opacity: 1;
}

.conteneur-notifications .notification.hide {
    display: none;
}

/* Styles complets ici : certaines pages (ex. _LayoutPublic) ne chargent pas le CSS Bootstrap 4.6 */
.conteneur-notifications .notification .toast-body {
    display: flex;
    align-items: flex-start;
    padding: .75rem;
}

.conteneur-notifications .notification-message {
    flex: 1;
    white-space: pre-line;
    word-break: break-word;
}

.conteneur-notifications .notification .close {
    margin-left: .75rem;
    color: inherit;
    text-shadow: none;
    opacity: .8;
}

.conteneur-notifications .notification-success { background-color: #28a745; }
.conteneur-notifications .notification-error { background-color: #dc3545; }
.conteneur-notifications .notification-warning { background-color: #ffc107; color: #212529; }
.conteneur-notifications .notification-info { background-color: #17a2b8; }
