To protect the roof from rainwater in winter and high temperatures in summer:
Waterproofing: Materials such as bitumen (liquid or rolls), or polyurethane (foam) are used, which is excellent because it combines waterproofing and thermal insulation together.
Thermal insulation: Rock wool or extruded polystyrene boards are used to reduce electricity consumption and mitigate summer heat.