Introduction

Increasing population growth and agricultural activities threaten the groundwater and surface water resources of the Timahdite–Almis Guigou area by modifying its quantity and quality for drinking and agriculture.

In this area, the risk of pollution is linked to agricultural factors caused by the use of agricultural fertilizers and pesticides, and anthropogenic factors such as the discharge of waste and the use of septic tanks (Amrani 2016; Amrani et al. 2019). The objective of this study was to assess the groundwater quality of the fluvio-lacustrine and volcanic aquifer in the study area for drinking water and irrigation.

Many factors control the chemical quality of groundwater, including water–rock interaction, recharge, geological structure, lithology and geochemical processes in the aquifer. This interaction could lead to the degradation of groundwater from undesirable components that affect their quality (Drever 1997; Salama et al. 1999; Subramani et al. 2010; Hassen et al. 2016). Groundwater is also affected by human activities that introduce contaminants into the environment (Amrani et al. 2019; Kadaoui et al. 2019; Zakaria et al. 2020).

Understanding hydrochemistry and groundwater quality is important for effective management and protection of water resources. The hydrochemistry of groundwater has been used to identify and interpret their quality, the impact of anthropogenic activities and to determine their hydrochemistry (Jalali 2007; Subramani et al. 2010; Belkhiri and Mouni 2013; Sheikhy Narany 2014; Li et al. 2020).

In this work, we focus on the superficial aquifer of Timahdite–Almis Guigou which is considered with the liasic aquifer as the main reservoirs of water resources in this area. The evaluation of the quality of these resources is based on physical, chemical and bacteriological analyses.

Study area

The study area located between the villages of Timahdite and Almis Guigou is part of the transition zone between the tabular Middle Atlas and the folded Middle Atlas. It is located west of the meridian of Boulemane, between the coordinates Lambert X (518 and 559 km) and Y (270 and 330 km). Corresponds to a collapsed area bordered on the SE side by the reliefs of the crossing zone of the Atlasic Middle North Accident. It is limited to the north by the Sefrou and Anoceur limestone plateaus, to the east by the folded Middle Atlas, to the south by the Baqrit Syncline and to the west by the Azrou-Ifrane Causse (Fig. 1).

Fig. 1
figure 1

Geographical location of the study area

Geology of the study area

The Meso-Cenozoic lithostratigraphic series in the study area ranges from the upper Triassic to the Quaternary. This series is presented as follows (Fig. 2):

  • Red clay geological formations with evaporite traces, where a median basalt complex is inserted, whose age is attributed to the Upper Triassic—Lower Lias (Termier 1936; Salvan 1984; Ouarhache 1987; Fedan 1988; Hinaje 2004; Ouarhache et al. 2012);

  • These clay and basaltic formations are surmounted by liasic carbonates, first dolomitic and then calcareous (Colo 1961; Michard 1976; Martin 1981; El Arabi, 1987; Fedan 1988; Hinaje 2004);

  • The Dogger is composed of two formations; the Boulemane marls and the Bajocian cornice-limestones (Michard 1976; Fedan 1988; Fedan et al. 1989; Aït Slimane 1989; Charroud 1990; Akasbi et al. 2001);

  • The Cretaceous is formed of limestone and marl (Chbani 1984; Charroud 1990);

  • The Eocene formations are composed of pink limestones, gypseous marls and lacustrine limestones with Flint (Choubert et al. 1952; Du Dresnay 1969; Chbani 1984; Fedan 1988; Aït Slimane 1989; Charroud 1990);

  • The Plio-Quaternary is characterised by fluvio-lacustrine, travertine and volcanic continental formations (Moukadiri 1983; Harmand and Cantagrel 1984; Harmand and Moukadiri 1986; Fedan 1988; Aït Slimane 1989; Hinaje et al. 2001; Hinaje 2004; El Azzouzi et al. 2010; Amrani 2016).

Fig. 2
figure 2

Synthetic stratigraphic log of the study area (based on our fieldwork and the work of authors mentioned in the text)

Materials and methods

Groundwater sampling

The analysis data used in this work come from a water sampling campaign during the high water period. A set of 18 groundwater samples (16 wells and 2 springs) was chosen so that they were distributed along the study area (Fig. 3). These wells and springs are intended for irrigation of agricultural plots, for drinking water and for domestic use.

Fig. 3
figure 3

Representation of water sampling points in the study area

The analyses were carried out within 24 h of sampling. The parameters such as electrical conductivity (EC), temperature, hydrogen potential (pH) and dissolved oxygen (DO) were measured in the field immediately after sampling using a HANNA HI 9828 portable multi-parameter device. The bottles were rinsed with the groundwater to be sampled. Four samples were taken for bacteriological analysis in sterile glass bottles.

All water samples collected in the bottles were transported to a laboratory for hydrochemical and bacteriological analysis (laboratory of the Polydisciplinary Faculty of Taza). The physico-chemical parameters were analysed according to the methods recommended by Rodier et al. (2009). Bacteriological analysis, including Total Coliforms (TC), Faecal Coliforms (FC) and Faecal Streptococci (FS), was carried out according to the Moroccan standard methods ISO 9308-1 (2000) and ISO 7899-2, respectively (2000).

Groundwater hydrogeochemistry

For the description of the chemical composition of groundwater in the study area, we chose to represent the results of the chemical analyses on the Piper triangular diagram and the Gibbs diagram. In addition, the saturation index (SI) was also used to assess the hydrochemical characterization of groundwater.

- The trilinear diagram of Piper (1944) was drawn using the program DIAGRAMS version 6.5 (Simler 2009) to identify the hydrogeochemical facies of groundwater. In the Piper diagram, major ions are represented in the two base triangles as milliequivalent percentages of cation and anion. Total cations and total anions are each considered as 100%. The respective locations of cations and anions for analysis are projected into the diagonal field, which represents the total ionic relationship (Chadha 1999).

- The Gibbs diagram was used to study the relationship between water chemistry and aquifer lithology. Gibbs (1970) proposed two diagrams to illustrate hydrogeochemical processes in the geochemistry of groundwater, including water–rock interaction, precipitation and evaporation. For this purpose, the diagrams were plotted according to the concentrations of TDS as a function of the weight ratios of Na+/(Na+ + Ca2+) for the cations and Cl/(Cl + HCO3) for the anions.

- The saturation index (SI) was calculated using the hydrogeochemical program PHREEQC (Parkhurst and Appelo 1999). The equilibrium state of water with respect to a mineral phase can be determined by calculating the saturation index (SI) using analytical data (Garrels and Mackenzie 1967). The saturation index expresses the degree of chemical equilibrium between the water and the mineral in the matrix of the aquifer considered as a measure of the process of dissolution and/or precipitation concerning the water–rock interaction (Drever 1997). Using this program, we were able to calculate the saturation index of anhydrite, aragonite, calcite, dolomite, gypsum and halite. The groundwater saturation index is expressed as follows (Garrels and Mackenzie 1967):

$$ {\mathbf{IS}} = {\mathbf{log}}\left( {\frac{{{\mathbf{IAP}}}}{{{\mathbf{Kt}}}}} \right) $$
(1)

where IS: Saturation index. IAP: is the product of the ionic activity of the species that make up the mineralization. Kt: The equilibrium solubility constant.

Groundwater quality for drinking

To assess the quality of groundwater in the study area for drinking water supply, we based ourselves on the water quality index (WQI) and the quantification of parameters of faecal origin.

Water quality index (WQI)

To assess the water quality and its suitability for consumption, the water quality index (WQI) was calculated using the weighted arithmetic index method (Horton 1965; Brown et al. 1970). The human consumption standards suggested by WHO (2011) were taken for the estimation of the WQI. Ten (10) parameters were taken into account for the calculation of the water quality index, namely TDS, Na+, K+, Ca2+, Mg2+, Cl, HCO3, SO42−, NO2 and NO3.

The water quality index (WQI) was calculated in three steps:

  1. 1.

    A weight (wi) was attributed to each of the physico-chemical parameters according to its major importance in the evaluation of the quality of drinking water. Weights between 1 and 5 were assigned to each water parameter (Table 3).

  2. 2.

    The relative weight (Wi) calculated using the following equation:

    $$ {\varvec{Wi}} = \frac{{{\varvec{wi}}}}{{\mathop \sum \nolimits_{{{\varvec{i}} = 1}}^{{\varvec{n}}} {\varvec{wi}}}} $$
    (2)

    where Wi: the relative weight; wi: the weight of each parameter; n: number of parameters.

  3. 3.

    A quality score (qi) for each parameter is determined by dividing its concentration in each water sample by its limit values given by the WHO and the result is multiplied by 100:

    $$ \user2{qi } = \user2{ }\frac{{{\varvec{Ci}}}}{{{\varvec{Si}}}}\user2{ } \times 100\user2{ } $$
    (3)

    where.

qi: the quality score; Ci: the quantity of each physico-chemical parameter in each water sample (mg/l); Si: the drinking water standard for each chemical parameter (mg/l) as indicated by the WHO (2011).

The water quality index (WQI) is then calculated from the sum of the sub-indices (Sl) of each chemical parameter using the following equations:

$$ {\varvec{SIi}} = \user2{Wi } \times {\varvec{qi}} $$
(4)
$$ \user2{WQI } = \user2{ }\sum {\varvec{Sli}} $$
(5)

The calculated values of the water quality index (WQI) are generally classified into five categories (Table 1): excellent water quality, good water quality, poor water quality, very poor water quality and unsuitable water for drinking (Brown et al. 1972; Chatterji and Raziuddin 2002).

Table 1 Water quality index (WQI) and water quality status

From a bacteriological point of view, the study was based on the quantification of parameters of faecal origin: Faecal Streptococci (FS), Faecal Coliforms (FC) and Total Coliforms (TC). These parameters show the existence of organic pollution due to the presence of certain pathogenic germs. Faecal Streptococci and Faecal Coliforms are important because they live in abundance in the feces of warm-blooded animals and humans, and are good faecal indicators.

Groundwater quality for irrigation

To assess the suitability of groundwater for irrigation in the study area, salinity indices such as sodium absorption ratio (SAR), sodium percentage (Na%) and permeability index (PI) were calculated using the following equations:

  • Sodium Adsorption Ratio (SAR) (Richards 1954):

    $$ {\mathbf{SAR}} \left( {\frac{{{\mathbf{meq}}}}{{\mathbf{l}}}} \right) = \frac{{{\mathbf{Na}}^{ + } + {\mathbf{K}}^{ + } }}{{\sqrt {\frac{{\left( {{\mathbf{Ca}}^{2 + } + {\mathbf{Mg}}^{2 + } } \right)}}{2}} }} $$
    (6)
  • Percentage of sodium (Na%) (Wilcox 1955):

    $$ {\mathbf{Na}}^{ + } \left( \% \right) = \frac{{\left( {{\mathbf{Na}}^{ + } + {\mathbf{K}}^{ + } } \right) \times 100}}{{\left( {{\mathbf{Ca}}^{2 + } + {\mathbf{Mg}}^{2 + } + {\mathbf{Na}}^{ + } + {\mathbf{K}}^{ + } } \right) }} $$
    (7)
  • Permeability Index (PI) (Doneen 1964):

    $$ {\mathbf{IP}} \left( \% \right) = \frac{{{\mathbf{Na}}^{ + } + \sqrt {{\mathbf{HCO}}_{3}^{ - } } \times 100 }}{{{\mathbf{Ca}}^{2 + } + {\mathbf{Mg}}^{2 + } + {\mathbf{Na}}^{ + } }} $$
    (8)

The Richards (Riverside), Wilcox and Doneen diagrams were used to assess the suitability of groundwater in the study area for irrigation.

The Richards (Riverside) diagram was used using DIAGRAMS program version 6.5 (Simler 2009) to determine the common effect of the risk of EC salinity versus the corresponding sodium SAR risk.

The Wilcox diagram was used using DIAGRAMS program version 6.5 (Simler 2009) to examine the common effect of the hazard of sodium Na+ (%) versus the hazard of corresponding EC salinity.

The Doneen diagram was generated from the Microsoft Excel program by plotting the values of the total concentration of ions against their corresponding IP values.

Results

Hydrogeochemical facies and water type

The representation of the major ion contents of the waters of the fluvio-lacustrine and volcanic aquifer on the triangular diagram of Piper (1944) (Fig. 4) shows that the majority of the samples have cations predominantly calcium and magnesium, while the dominant anions are bicarbonate and sulphates. By analysing the graph, we can distinguish two groups of water or two facies: the bicarbonates, calcium and magnesium facies; and the chlorinated, sulphate, calcium and magnesium facies.

Fig. 4
figure 4

Piper triangle diagram of groundwater in the study area

The bicarbonates, calcium and magnesium facies represent 66.66% of the water analysed; this is the most dominant facies in the study area. It generally represents low mineralized waters. The waters of this facies are derived from infiltrations from liasic carbonate rocks.

The facies chlorinated, sulphate, calcium and magnesium represent 33.33% of the waters analysed; it is the less dominant facies. It generally represents the most mineralized waters. The electrical conductivities of the waters range from 1160 to 1770 μs/cm. This facies are located near the fault passage zones, marked by intense grinding and by injections of red Triassic clays rich in evaporatites. The presence of this facies is due to the infiltration and dissolution of the clay evaporatitic rocks of the Upper Triassic—Infra-Lias near the faults.

Gibbs diagram

The analytical data plotted on the Gibbs diagrams (Fig. 5) reveal that all the water samples are in the water–rock interaction field. Therefore, water–rock interaction is the major geochemical process controlling groundwater mineralisation in the study area.

Fig. 5
figure 5

Gibbs diagram of the groundwater samples

Saturation index

The saturation state of the groundwater was determined using the hydrogeochemical model PHREEQC (Parkhurst and Appelo 1999). The significant results of all the samples analysed (Table 2) show that the waters are saturated with respect to aragonite, calcite and dolomite, but they are rather undersaturated with regard to anhydrite, gypsum and halite. The calculation of the mineral saturation index in water indicates that only carbonate minerals tend to precipitate. However, the evaporative minerals are always in an undersaturated state.

Table 2 Average values of calculated parameters

Groundwater quality for drinking

Water quality index (WQI)

The water quality index (WQI) was used to assess the quality of groundwater for drinking in the hydrogeological basin of Timahdite-Almis Guigou. The results of the chemical analyses of the groundwater in this area, in addition to the comparison with the human consumption standards suggested by the WHO (2011) and the weights attributed to the different physico-chemical parameters according to their relative importance in the overall quality of the drinking water, are represented in Table 3.

Table 3 WHO standards, assigned weights and relative weights for the calculation of the WQI

The weights were attributed according to their major importance in assessing water quality, and their implications for health when they have a high concentration in water (Sadat-Noori et al. 2013 and Hosseini-Moghari et al. 2015).

The calculated values of the (WQI) for the study area vary between 23.94 and 58.88. The area presents three types of groundwater quality, as shown in Table 4.

Table 4 Type of water based on the water quality index in the study area

From a bacteriological point of view, the study was based on the quantification of parameters of faecal origin: Faecal Streptococci (FS), Faecal Coliforms (FC) and Total Coliforms (TC). The results of the bacteriological analyses of the groundwater sampling points in the study area are illustrated in Table 5.

Table 5 Results of bacteriological analyses of groundwater

The water from wells P9, P12, P3, P4 and Tit Zill are found to be very rich in pathogenic germs. The number of faecal coliforms is highest in well P12. Indeed, this well captures the water table near the public landfill of Almis Guigou. As for wells P9, P3 and P4 on the Lamrijate plateau (Timahdite), Aït Hamza and Aït Ghanem, they are linked to the existence of septic tanks and the leaching of animal waste. Concerning the Tit Zill spring is also slightly contaminated by the infiltration of septic tanks, the infiltrations from Oued Guigou which is slightly polluted from Timahdite and the leaching of animal waste from Aït Ghanem.

Groundwater quality for irrigation

To assess and classify the quality of groundwater for irrigation in the study area, different parameters were calculated and interpreted, such as sodium adsorption ratio (SAR), percentage of sodium ( Na %) and permeability index (PI). The calculated values were represented on the Richards diagram (1954), the Wilcox diagram (1955) and the Doneen diagram (1964).

Sodium adsorption ratio (SAR)

The diagram from the US Salinity Laboratory (Richards 1954) is widely used to determine the common effect of EC salinity risk versus corresponding SAR sodium risk. The risk of soil salinization can be assessed by the electrical conductivity and the rate of alkalinization. Taking into account these two parameters, this author proposed a class diagram with sixteen classes corresponding to the saline-alkaline risks. This classification was used widely to characterize the water for irrigation.

Taking into account this classification, and after positioning the water points of the different campaigns on the Richards diagram according to the electrical conductivity and the SAR value, we were able to observe the presence of two groups (Fig. 6), C3.S1 and C4.S1.

Fig. 6
figure 6

Classification of irrigation waters on the Riverside diagram (Richards 1954)

The calculated SAR values of the groundwater samples in the study area vary between 0.28 and 6.63 with an average value of 3. Therefore, the SAR values are less than 10 and classified as excellent for the irrigation.

Percentage of sodium (Na%)

The calculation of Na% of the groundwater samples in the study area shows values between 5.65 and 20.07% with an average of 12.37%. The maximum Na% content for irrigation was fixed at 60% by the WHO. The groundwater samples are good for irrigation compared to the percentage of Na. According to the Wilcox classification (1955) based on the values of Na% and electrical conductivity (EC) (Fig. 7), all samples fell into the good and excellent class.

Fig. 7
figure 7

Wilcox diagram for water samples from the Timahdite–Almis Guigou basin

Permeability index (IP)

The permeability index calculated for the groundwater samples in the hydrogeological basin of Timahdite-Almis Guigou is between 30.09 and 76.03% with an average of 48.50%. The representation of the permeability index values on the Doneen diagram (1964), based on the total ionic concentration (TDS) and the permeability index (PI) (Fig. 8), showed that all groundwater samples are distributed in class I. This indicates that the groundwater is good for irrigation.

Fig. 8
figure 8

Doneen diagram for groundwater samples

Discussion

The hydrogeochemical study of the waters of the surface aquifer of the Timahdite–Almis Guigou basin has shown that the waters are moderately mineralized. The representation of the major ion contents of the waters of the fluvio-lacustrine and volcanic aquifer of Plio-quaternary age on the triangular diagram of Piper allows to distinguish two groups of waters or two facies: bicarbonate, calcium and magnesium facies and chlorinated, sulphated, calcium and magnesium facies.

According to these results, it can be said that water flows in the plio-quaternary system through the multiple-play boundary faults of the collapsed area Timahdite–Almis Guigou oriented N30. These faults favour the flow of groundwater from the carbonate liasic boundary zones to the subsident area at fluvio-lacustrine and volcanic fillings. During their journey at depth, the water resulting from infiltrations from carbonate rocks has a carbonate calcium and magnesium facies, while the waters that flowing near the fault planes with Triassic clay evaporite injections have a chlorinated, sulphated, calcium and magnesium facies (Amrani and Hinaje 2014a).

The Gibbs diagram clearly shows that the groundwater samples are in the area of rock alteration dominance or water–rock interaction. This confirms the idea that the dissolution of the Liassic carbonate and Triassic clay-evaporite formations is the process controlling the main chemical composition of the groundwater in the area of Timahdite–Almis Guigou. These results are consistent with those of Aghazadeh and Mogaddam (2010), Hassen et al. (2016) and Qian et al. (2016), respectively, in the Oshnavieh Area (Iran), in the case of Oum Ali-Thelepte aquifer, (Tunisia) and in an agro-pastoral area, Ordos Basin (China).

The calculation of the mineral saturation index in water indicates that only carbonate minerals tend to precipitate mainly in the form of dolomite (Amrani and Hinaje 2014b). The precipitation of these minerals results in equilibrium Ca2+ concentrations and dissolution of evaporated materials (Hamzaoui-Azaza et al. 2011; Hassen et al. 2016). On the other hand, evaporitic minerals are always in the state of undersaturation, suggesting that their concentrations of soluble components Na+, Cl, Ca2+, and SO42− are not limited by mineral equilibrium (Belkhiri et al. 2012; Hassen et al. 2016).

The results of the bacteriological contamination by faecal Streptococci, faecal Coliforms and total Coliforms show that the waters of the studied wells are very rich in pathogenic germs. Our results are comparable with those obtained by Kadaoui et al. (2019) concerning the assessment of physico-chemical and bacteriological groundwater quality in irrigated Triffa Plain, North-East of Morocco. This contamination is linked to the existence of septic tanks and the leaching of animal waste.

The Water Quality Index (WQI) values of the groundwater samples calculated in the study area are considered to be of generally good quality. The "poor quality" samples are characterised by high concentrations of sodium, chlorides and nitrates. Based on the distribution of the points, the human activities (domestic discharges and agricultural activities) are the main sources of the deterioration of the quality of the groundwater in these sampling sites.

The concentration of sodium, chlorides and nitrates decreases with the direction of groundwater flow and at the depth of the water table; suggesting dilution of these ions by self-purification. These observations are similar to those of Sadat-Noori et al. (2013) in the study of Groundwater quality assessment using the Water Quality Index and GIS in Saveh-Nobaran aquifer in Iran and Chen et al. (2019) in the study of Hydrogeochemical Characteristics and Quality Assessment of Groundwater in an Irrigated area, Northwest China.

The results of the analytical data plotted on the salinity diagram (Richards 1954) taking into account the conductivity values to the SAR show that the waters are represented mainly in classes C3. S1 and C4. S1. Class C3S1 indicates water with high salinity and low sodium content, which can be used for irrigation of almost all types of soil with low risk of exchangeable sodium (Aghazadeh and Mogaddam 2010), and class C4S1 indicates water with very high salinity and low sodium content; suitable for plants with good salt tolerance but unsuitable for irrigation in soils with restricted drainage (Yang et al. 2020). Overall, these waters are suitable for irrigation in the study area.

The quality of groundwater for irrigation generally depends on the relative values of EC, Na+ and other cations and anions (Todd 1980). The representation of groundwater samples on the Wilcox diagram (1955), based on Na% and electrical conductivity (EC) values, showed that all samples fell into the good and excellent class for agriculture. The studies by Aghazadeh and Mogaddam (2010), and Hassen et al. (2016) also found similar results to those in the Oshnavieh Area of northwest Iran and in the Oum Ali-Thelepte aquifer in central Tunisia.

The permeability index (PI) is used to assess the quality of groundwater for irrigation. The representation of the groundwater samples on the Doneen diagram (1964), based on total ionic concentration (TDS) and permeability index (PI), shows that all groundwater samples fell into class I. Therefore, the groundwater in the study area is good for irrigation. Similar results were found in the Ganges river basin areas of Bangladesh by Islam and Mostafa (2021).

Conclusion

In the present study, the groundwater of the hydrogeological basin of Timahdite–Almis Guigou was analysed to determine their physico-chemical and bacteriological characteristics, with the aim of assessing the quality of groundwater for drinking and for agriculture.

The representation of major ion contents of the Piper diagram shows that the hydrogeochemical facies of the groundwater are the chlorinated, sulphated, calcium and magnesium facies, and the bicarbonate, calcium and magnesium facies.

The result of the saturation index calculation shows that the water samples are saturated with carbonate minerals and undersaturated with evaporite minerals. According to Gibbs diagrams, the samples fall within the weathering domain of rocks and the chemical quality of the water is related to the lithology of the study area.

The high presence of germs is an indicator of faecal contamination which poses a threat to the inhabitants. These results confirm the impact of agricultural intensification and domestic wastewater discharges. The calculated water quality index shows that the samples are generally considered to be of good quality for drinking.

On the basis of the sodium adsorption ratio (SAR), the evaluation of the EC, the percentage of sodium (Na%) and the permeability index (PI), the groundwater samples are suitable for irrigation.

From this study, it can be deduced that the groundwater in the Timahdite–Almis Guigou area can be used for drinking water and for irrigation of agricultural plots.