/* =============================================
   SYSTEME DE NOTIFICATIONS
   ============================================= */

.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.notification__content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.notification__icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification__message {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.notification__close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.notification__close:hover {
    color: #333;
}

/* Notification types */
.notification--success {
    border-left: 4px solid #28a745;
}

.notification--success .notification__icon {
    color: #28a745;
}

.notification--error {
    border-left: 4px solid #dc3545;
}

.notification--error .notification__icon {
    color: #dc3545;
}

.notification--warning {
    border-left: 4px solid #ffc107;
}

.notification--warning .notification__icon {
    color: #ffc107;
}

.notification--info {
    border-left: 4px solid #17a2b8;
}

.notification--info .notification__icon {
    color: #17a2b8;
}

/* =============================================
   VALIDATION DU FORMULAIRE
   ============================================= */

.concern-form__fields .has-error input,
.concern-form__fields .has-error textarea,
.concern-form__fields .has-error select {
    border-color: #dc3545;
}

.concern-form__fields .has-error input:focus,
.concern-form__fields .has-error textarea:focus,
.concern-form__fields .has-error select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Animation pour les notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
