/* Styles pour le système de notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    max-width: 400px;
    transform: translateX(0);
    transition: transform 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 1;
    visibility: visible;
}

.notification-success {
    background: #10b981;
    border-left: 4px solid #059669;
}

.notification-error {
    background: #ef4444;
    border-left: 4px solid #dc2626;
}

.notification-info {
    background: #3b82f6;
    border-left: 4px solid #2563eb;
}

.notification-warning {
    background: #f59e0b;
    border-left: 4px solid #d97706;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.notification-content i {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    word-wrap: break-word;
    line-height: 1.4;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notification-close:active {
    transform: scale(0.95);
}

.notification-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Animation d'entrée */
.notification.show {
    transform: translateX(0);
}

/* Animation de sortie */
.notification.hide {
    transform: translateX(100%);
}

/* S'assurer que les notifications sont toujours visibles */
.notification {
    box-sizing: border-box;
    overflow: visible;
}

/* Ajuster la largeur maximale pour éviter la coupure */
@media (max-width: 480px) {
    .notification {
        max-width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification.hide {
        transform: translateY(-100%);
    }
    
    .notification-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}
