LONDON — A court in France has ruled that a man who died from a heart attack after having sex during a business trip had suffered a work-related accident and that his employer was liable. The man, who was identified in court documents only as Xavier, traveled in to the Loiret region in central France as a security technician for the rail engineering company TSO. After work one night, he had sex with a woman at her house before returning to his hotel. He later died from a heart attack said to have been linked to the encounter. The court in Paris said the law protected employees engaged in everyday activities for the entirety of any such trip, unless they interrupted planned business activities. Finding that TSO could not show a schedule proving that the man was supposed to be working at the time, the court upheld the insurance fund claim.