Rain-fed pastoral systems are tightly connected to meteorological conditions. It is, therefore, likely that climate change, including changing atmospheric CO2 concentration, temperature, precipitation and patterns of climate extremes, will greatly affect pastoral systems. However, exact impacts on the productivity and carbon dynamics of these systems are still poorly understood, particularly over longtime scales. The present study assesses the potential effects of future climatic conditions on productivity and soil organic carbon (SOC) stocks of mowed and rotationally grazed grasslands in France. We used the CenW ecosystem model to simulate carbon, water, and nitrogen cycles in response to changes in environmental drivers and management practices. We first evaluated model responses to individual changes in each key meteorological variable to get better insights into the role and importance of each individual variable. Then, we used 3 sets of meteorological variables corresponding to 3 Representative Concentration Pathways (RCP 2.6, RCP 4.5 and RCP 8.5) for long-term model runs from 1975 to 2100. Finally, we used the same three RCPs to analyze the responses of modelled grasslands to extreme climate events. We found that increasing temperature slightly increased grasslands productivities but strongly reduced SOC stocks. A reduction in precipitation led to reductions of biomass and milk production but increased SOC. Conversely, doubling CO2 concentration strongly increased biomass and milk production and marginally reduced SOC. These SOC trends were unexpected. They arose because both increasing precipitation and CO2 increased photosynthetic carbon gain, but they had an even greater effect on the proportion of biomass that could be grazed. The amount of carbon remaining on site and able to contribute to SOC formation was actually reduced under both higher precipitation and CO2. The simulations under the three RCPs indicated that grassland productivity was increased, but that required higher N fertilizer application rates and also led to substantial SOC losses. We thus conclude that, while milk productivity may continue at current rates under climate change, or even increase slightly, there could be some soil C losses over the 21st century. In addition, under the highest-emission scenario, the increasing importance of extreme climate conditions (heat waves and droughts) might render conditions at our site in some years as unsuitable for milk production. It highlights the importance of tailoring farming practices to achieve the dual goals of maintaining agricultural production while safeguarding soil C stocks.