 /* Container pour les notifications */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 420px;
}

/* Style de base pour les notifications */
.notification {
    border-radius: 20px;
    padding: 22px 58px 22px 56px;
    font-weight: 600;
    position: relative;
    margin-bottom: 16px;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    border: 1px solid;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

/* Animation d'entrée */
.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Animation de sortie */
.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Success - Vert */
.notification.success {
    background: #ecfdf5;
    color: #047857;
    box-shadow: 0 20px 60px rgba(4, 120, 87, 0.1), 0 8px 24px rgba(4, 120, 87, 0.08);
    border-color: rgba(4, 120, 87, 0.08);
}

.notification.success::before {
    content: '✓';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Error - Rouge */
.notification.error {
    background: #fef2f2;
    color: #dc2626;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.1), 0 8px 24px rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.08);
}

.notification.error::before {
    content: '✕';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Warning - Orange */
.notification.warning {
    background: #fffbeb;
    color: #d97706;
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.1), 0 8px 24px rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.08);
}

.notification.warning::before {
    content: '⚠';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Info - Bleu */
.notification.info {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.1), 0 8px 24px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.08);
}

.notification.info::before {
    content: 'ℹ';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Message */
.notification-message {
    margin: 0;
}

/* Bouton de fermeture */
.notification-close {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
}

.notification.success .notification-close {
    background: rgba(4, 120, 87, 0.1);
}

.notification.error .notification-close {
    background: rgba(220, 38, 38, 0.1);
}

.notification.warning .notification-close {
    background: rgba(217, 119, 6, 0.1);
}

.notification.info .notification-close {
    background: rgba(37, 99, 235, 0.1);
}

.notification.success .notification-close:hover {
    background: rgba(4, 120, 87, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

.notification.error .notification-close:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

.notification.warning .notification-close:hover {
    background: rgba(217, 119, 6, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

.notification.info .notification-close:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

.notification-close::before,
.notification-close::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 12px;
}

.notification.success .notification-close::before,
.notification.success .notification-close::after {
    background: #047857;
}

.notification.error .notification-close::before,
.notification.error .notification-close::after {
    background: #dc2626;
}

.notification.warning .notification-close::before,
.notification.warning .notification-close::after {
    background: #d97706;
}

.notification.info .notification-close::before,
.notification.info .notification-close::after {
    background: #2563eb;
}

.notification-close::before {
    transform: rotate(45deg);
}

.notification-close::after {
    transform: rotate(-45deg);
}

/* Barre de progression */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 0 0 20px 20px;
    transition: width linear;
}

.notification.success .notification-progress {
    background: #10b981;
}

.notification.error .notification-progress {
    background: #ef4444;
}

.notification.warning .notification-progress {
    background: #f59e0b;
}

.notification.info .notification-progress {
    background: #3b82f6;
}

