Are you combining Airbus and Boeing terms?
To begin with, Airbus dont combine fixed derates and flex, therefore they are permitted to use flex of 40%, not 25%.
TMAX is the standard temp envelope, you can extend into TMAXFLEX with an increased temp envelope. You can assume a temp hotter than TMAX, but you cant operate if the actual temp is hotter than Tmax.
Mutt