to think about or be interested in something for a short time but not very seriously
Example:
- She flirted with the idea of becoming an actress when she was younger.
- She flirted briefly with the idea of telling him the truth.
to take risks or not worry about a dangerous situation that may happen
Example:
- to flirt with danger/death/disaster