/* Toast LBS — classes préfixées lbs-toast-* (évite conflits Bootstrap .toast / .show) */
.lbs-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2147483000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: calc(100vw - 40px);
}

.lbs-toast-container .lbs-toast-notification {
    pointer-events: auto;
}

.lbs-toast-notification {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #28a745;
    padding: 16px 20px 18px;
    min-width: 320px;
    max-width: 400px;
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.lbs-toast-notification.lbs-toast-is-visible {
    transform: translateX(0);
    opacity: 1;
}

.lbs-toast-notification.lbs-toast-type-success { border-left-color: #28a745; }
.lbs-toast-notification.lbs-toast-type-error { border-left-color: #dc3545; }
.lbs-toast-notification.lbs-toast-type-warning { border-left-color: #ffc107; }
.lbs-toast-notification.lbs-toast-type-info { border-left-color: #17a2b8; }

.lbs-toast-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.lbs-toast-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    font-weight: 700;
    line-height: 1;
}

.lbs-toast-type-success .lbs-toast-icon { background: #28a745; }
.lbs-toast-type-error .lbs-toast-icon { background: #dc3545; }
.lbs-toast-type-warning .lbs-toast-icon { background: #ffc107; color: #333; }
.lbs-toast-type-info .lbs-toast-icon { background: #17a2b8; }

.lbs-toast-title {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
    padding-right: 1.5rem;
    line-height: 1.3;
}

.lbs-toast-message {
    color: #495057;
    font-size: 14px;
    line-height: 1.45;
    margin: 10px 0 0;
}

.lbs-toast-message a {
    color: #1d4ed8;
    text-decoration: underline;
}

.lbs-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
}

.lbs-toast-close:hover {
    color: #333;
    background: #f8fafc;
}

.lbs-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.12);
    transform-origin: left center;
    animation: lbs-toast-progress 5s linear forwards;
}

@keyframes lbs-toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
