A CNN adapted to time series for the classification of Supernovae