Device for analysing a sample, comprising a light source , an image sensor and a resonant holder , which is placed between the light source and the image sensor, such that the image sensor is configured to acquire an image (I) of the resonant holder, the resonant holder being intended to be placed in contact with a sample , the resonant holder comprising an area containing photonic crystals (16 k ), which are separate from one another, the resonant holder being such that: - the light source is configured to simultaneously illuminate various photonic crystals, in a spectral band of illumination lying between 200 nm and 1500 nm; - one resonant wavelength (λ k ) is associated with each photonic crystal, such that the transmission or reflection of the light, by each photonic crystal, is maximum at the resonant wavelength with which it is associated, the wavelengths of the photonic crystals defining a spectral band of resonance (Δλ r ); - at least two photonic crystals are configured to make contact with the same analyte present in the sample, said photonic crystals being associated with two different resonant wavelengths, the resonant wavelength associated with each photonic crystal depending on an amount of analyte in contact with the photonic crystal; the resonant holder being characterized in that each photonic crystal comprises: - produced through a thin layer , first holes (23 1 ) that have a first dimension (R 1 ), the first dimension being a radius or a diagonal, the first holes defining a first pattern; - produced through the thin layer , second holes (23 2 ) that have a second dimension (R 2 ), the second dimension being strictly smaller than the first dimension, the second holes defining a second periodic pattern; - the second pattern and the first pattern are offset with respect to each other, parallel to the surface of the holder, by a spatial offset that is variable between at least two different photonic crystals; such that the resonant wavelength associated with each photonic crystal depends on the first dimension, on the second dimension, and on the spatial offset. - the light source is configured to simultaneously illuminate various photonic crystals, in a spectral band of illumination lying between 200 nm and 1500 nm; - one resonant wavelength (λ k ) is associated with each photonic crystal, such that the transmission or reflection of the light, by each photonic crystal, is maximum at the resonant wavelength with which it is associated, the wavelengths of the photonic crystals defining a spectral band of resonance (Δλ r ); - at least two photonic crystals are configured to make contact with the same analyte present in the sample, said photonic crystals being associated with two different resonant wavelengths, the resonant wavelength associated with each photonic crystal depending on an amount of analyte in contact with the photonic crystal; - produced through a thin layer , first holes (23 1 ) that have a first dimension (R 1 ), the first dimension being a radius or a diagonal, the first holes defining a first pattern; - produced through the thin layer , second holes (23 2 ) that have a second dimension (R 2 ), the second dimension being strictly smaller than the first dimension, the second holes defining a second periodic pattern; - the second pattern and the first pattern are offset with respect to each other, parallel to the surface of the holder, by a spatial offset that is variable between at least two different photonic crystals; <EOS>