https://ec.europa.eu/home-affairs/si...estions_en.pdf
https://ec.europa.eu/home-affairs/wh...ow_to_apply_en
You must lodge the application for a Schengen visa at the Consulate of the country that you intend to visit, or – if you intend to visit more than one Schengen State, the Consulate of the country where you will spend the longest period.
So France is the right choice.
Actually it may be that the French consulate represents also Germany in your area (especially if you are only able to get an appointment with the French one) so anyway would be no problem at all.