Spatio-temporal evolution of a Tertiary carbonate platform margin and adjacent basinal deposits