.notif-bell {
    position: relative;
    display: inline-block;
}

.notif-bell__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notif-bell__trigger:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Le badge rouge */
.notif-bell__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #E63946;
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px white;
}

/* Le dropdown */
.notif-bell__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notif-bell--open .notif-bell__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header du dropdown */
.notif-bell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.notif-bell__header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.notif-bell__mark-all {
    background: transparent;
    border: none;
    color: #F77F00;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.notif-bell__mark-all:hover {
    text-decoration: underline;
}


.notif-bell__list {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
}


.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s ease;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #fafafa;
}

.notif-item--unread {
    background: #fff9f0;
}

.notif-item--unread:hover {
    background: #fff3e0;
}

.notif-item__icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    border: 1px solid #eee;
}

.notif-item__body {
    flex: 1;
    min-width: 0;
}

.notif-item__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.notif-item__message {
    margin: 0 0 4px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.notif-item__time {
    margin: 0;
    font-size: 11px;
    color: #999;
}

.notif-bell__empty {
    padding: 40px 20px;
    text-align: center;
}

.notif-bell__empty p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.notif-bell__footer {
    display: block;
    padding: 12px 20px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #eee;
    color: #F77F00;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
}

.notif-bell__footer:hover {
    background: #f0f0f0;
}

@media (max-width: 480px) {
    .notif-bell__dropdown {
        width: calc(100vw - 32px);
        right: -80px;
    }
}