I am going to offer two suggestions:
If you own an Apple device, I have fallen in love with the Apple AirPods. I know they are a compromise device, but hear me out. These are phenomenal pieces of technology -- my wife got me a set for Christmas, and frankly, I am blown away by how good they are. First, to get it out of the way, the sound is "good enough". Don't take that as a compromise -- I like good sound as much as the next guy. But I've owned earbuds with fantastic sound that only sound that way until the ear seal unseats and I have to keep fidgeting to get them back to the right spot to sound great again. These sound "good enough" All The Time -- a whole lot less fidgeting is required. And, since they don't seal to the ear, you can hear ambient sounds more easily, as the OP requested.
Plus, they connect instantly to either my iPhone or my Apple Watch, whichever I happen to play sound with. I can pair them to my Macbook Pro simply be telling it to play through them, then switch back to my phone by telling it to use them. There is no re-pairing involved in any of these switches -- all the devices are paired when you pair one of the devices.
Pull one out and the music pauses automatically; put it back in and it resumes playing. Double-tap one ear to move to next song. Double-tap other ear to invoke Siri. The microphone works great. They do everythign well.
Roughly five hours playing time on a charge, and the case is a charger. You can get another ~3 hours simply by popping them in the case for fifteen minutes. Pop the case open near the phone and it will show you the charge of the case and the ear buds. Apple has nailed this one all the way around.
Finally, I know it's hard to believe, but they do in fact stay put. I work out with them in the gym and they have not fallen out once. That includes jump rope, laying down on a bench, bending over, leaning over sideways, etc. The only time one has come out is when I've literally knocked one out (taking off my shirt).
If you're willing to venture outside the earbud realm, I have had some AfterShokz Bluez
for several years. (Looks like the Trekz replaced the Bluez.) I use them while biking. They sit in front of the ear, rather than over or in the ear, and use bone-conduction to enhance the sound. They sound great, but allow all ambient sound in as well. I like them for biking so I can also hear everything that is happening around me at the same time.
I trained for Seattle to Portland (back-to-back 100 mile days) wearing these. That meant eight-hour days on the bike. They handled those entire rides without fading. Given your criteria, these might be worth considering.