/* ============================================================================
   LogiFlotte — alerts inline (messages flash + alertes contextuelles).
   Structure : .alert.alert--{success|error|info|warning}
              éventuellement avec .alert-title et corps texte.
   ============================================================================ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.alert > svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-title {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.alert-body { flex: 1; }

.alert--success {
    background: var(--color-success-light);
    border-color: #86efac;
    color: #14532d;
}

.alert--error,
.alert--danger {
    background: var(--color-danger-light);
    border-color: #fca5a5;
    color: #991b1b;
}

.alert--info {
    background: var(--color-info-light);
    border-color: #67e8f9;
    color: #164e63;
}

.alert--warning {
    background: var(--color-warning-light);
    border-color: #fcd34d;
    color: #92400e;
}

/* -- Fermeture éventuelle -- */
.alert-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1.1rem;
}
.alert-close:hover { opacity: 1; }
