/* Social Proof Notifications - Design B2B Moderne */
.social-proof-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.social-proof-notification {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 25px -3px rgba(0, 0, 0, 0.08),
        0 20px 40px -8px rgba(0, 0, 0, 0.12);
    max-width: 420px;
    min-width: 360px;
    pointer-events: auto;
    cursor: pointer;
    animation: slideInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.social-proof-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-proof-notification:hover::before {
    opacity: 1;
}

.social-proof-notification:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow:
        0 8px 16px -4px rgba(0, 0, 0, 0.08),
        0 20px 40px -8px rgba(0, 0, 0, 0.15),
        0 30px 60px -12px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.social-proof-notification.fade-out {
    animation: slideOutLeft 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Header */
.notification-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

/* Avatar avec badge premium */
.notification-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 2px solid white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.avatar-badge svg {
    width: 12px;
    height: 12px;
    color: white;
}

/* Metadata */
.notification-meta {
    flex: 1;
    min-width: 0;
}

.notification-name {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    width: 16px;
    height: 16px;
    color: #3b82f6;
    flex-shrink: 0;
}

.notification-role {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

/* Close button */
.notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-close svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.social-proof-notification:hover .notification-close {
    opacity: 1;
}

.notification-close:hover {
    background: #f1f5f9;
}

.notification-close:hover svg {
    color: #475569;
}

/* Body */
.notification-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Action badge */
.notification-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.notification-action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.notification-action strong {
    font-weight: 700;
}

.pro-badge {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.pro-badge svg {
    color: #3b82f6;
}

.premium-badge {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.premium-badge svg {
    color: #8b5cf6;
}

/* Footer */
.notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.notification-time,
.notification-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.notification-time svg,
.notification-location svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-450px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(-450px) scale(0.9);
        opacity: 0;
    }
}

/* Version mobile optimisée */
@media (max-width: 640px) {
    .social-proof-container {
        bottom: 80px;
        left: 8px;
        right: 8px;
        width: auto;
    }

    .social-proof-notification {
        max-width: 100%;
        min-width: auto;
        padding: 12px 14px;
        border-radius: 12px;
        box-shadow:
            0 4px 12px rgba(0, 0, 0, 0.1),
            0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .social-proof-notification:hover {
        transform: translateY(-2px);
        box-shadow:
            0 6px 16px rgba(0, 0, 0, 0.12),
            0 12px 32px rgba(0, 0, 0, 0.15);
    }

    .notification-header {
        margin-bottom: 8px;
        gap: 10px;
    }

    .notification-avatar {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .avatar-badge {
        width: 18px;
        height: 18px;
        bottom: -2px;
        right: -2px;
        border-radius: 5px;
    }

    .avatar-badge svg {
        width: 10px;
        height: 10px;
    }

    .notification-name {
        font-size: 13px;
        gap: 4px;
    }

    .notification-role {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .verified-badge {
        width: 13px;
        height: 13px;
    }

    .notification-body {
        gap: 8px;
    }

    .notification-action {
        padding: 8px 10px;
        font-size: 11px;
        gap: 6px;
        border-radius: 8px;
    }

    .notification-action svg {
        width: 13px;
        height: 13px;
    }

    .notification-action span {
        line-height: 1.3;
    }

    .notification-footer {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding-top: 6px;
    }

    .notification-time,
    .notification-location {
        font-size: 10px;
        gap: 3px;
    }

    .notification-time svg,
    .notification-location svg {
        width: 11px;
        height: 11px;
    }

    .notification-close {
        width: 26px;
        height: 26px;
        opacity: 1;
        background: rgba(248, 250, 252, 0.9);
        top: 10px;
        right: 10px;
    }

    .notification-close svg {
        width: 14px;
        height: 14px;
    }

    /* Animations mobile plus fluides */
    @keyframes slideInLeft {
        from {
            transform: translateX(-100%) scale(0.95);
            opacity: 0;
        }
        to {
            transform: translateX(0) scale(1);
            opacity: 1;
        }
    }

    @keyframes slideOutLeft {
        from {
            transform: translateX(0) scale(1);
            opacity: 1;
        }
        to {
            transform: translateX(-100%) scale(0.95);
            opacity: 0;
        }
    }
}

/* Optimisation pour tablettes */
@media (min-width: 641px) and (max-width: 1024px) {
    .social-proof-container {
        bottom: 20px;
        left: 16px;
    }

    .social-proof-notification {
        max-width: 380px;
        min-width: 320px;
        padding: 15px 18px;
    }

    .notification-avatar {
        width: 48px;
        height: 48px;
    }

    .notification-name {
        font-size: 14px;
    }

    .notification-role {
        font-size: 12px;
    }

    .notification-action {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* Optimisation pour très petits écrans */
@media (max-width: 380px) {
    .social-proof-container {
        bottom: 70px;
        left: 6px;
        right: 6px;
    }

    .social-proof-notification {
        padding: 10px 12px;
    }

    .notification-avatar {
        width: 36px;
        height: 36px;
    }

    .notification-name {
        font-size: 12px;
    }

    .notification-role {
        font-size: 10px;
    }

    .notification-action {
        padding: 7px 9px;
        font-size: 10px;
    }

    .notification-footer {
        gap: 6px;
    }

    .notification-time,
    .notification-location {
        font-size: 9px;
    }
}

/* Dark mode support - DÉSACTIVÉ pour garder les notifications claires sur mobile */
/* @media (prefers-color-scheme: dark) {
    .social-proof-notification {
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
        border-color: rgba(71, 85, 105, 0.5);
    }

    .notification-name {
        color: #f8fafc;
    }

    .notification-role {
        color: #cbd5e1;
    }

    .notification-avatar {
        background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    }

    .pro-badge {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
        color: #bfdbfe;
        border-color: #3b82f6;
    }

    .premium-badge {
        background: linear-gradient(135deg, #581c87 0%, #6b21a8 100%);
        color: #e9d5ff;
        border-color: #8b5cf6;
    }

    .notification-footer {
        border-top-color: #334155;
    }

    .notification-time,
    .notification-location {
        color: #cbd5e1;
    }

    .notification-close {
        background: transparent;
    }

    .notification-close:hover {
        background: #334155;
    }

    .notification-close svg {
        color: #cbd5e1;
    }
} */
