ecriture flags scenario principal