Introduction

In view of surface water scarcity in Saharan, arid and semiarid zones, groundwater remains the main source of water supply to meet domestic, agricultural, and industrial needs. During the last decades, this resource has experienced a qualitative and quantitative degradation due to the overexploitation and the drought episodes recurrence (Bahir et al. 2001, 2016; Ouhamdouch et al. 2016a, b; Re et al. 2013).

In the most coastal area, the groundwater is the main source of freshwater supply and is much exploited to respond to human demands. The high salinization and the pollution in groundwater systems from these areas are generally caused by the effects of seawater intrusion and also mostly ascribed to anthropogenic activities such as domestic wastes, agriculture, and industry, which have negatively affected economic activity and the livelihoods of the people of these areas (Carreira et al. 2014; Qin et al. 2013; Re et al. 2013; Ouhamdouch et al. 2017).

Stable isotopes of oxygen-18 and deuterium are considered to be transported conservatively in shallow aquifer (Vitvar et al. 2005). They are commonly used in combination with groundwater chemistry to identify the flow regimes, groundwater salinity origin, and recharge sources of a groundwater system on local and regional groundwater (Ayadi et al. 2016; Carreira et al. 2014; Clark and Fritz 1997; Edmunds and Tyler 2002; Farid et al. 2013). Indeed, the use of stable isotopes is an important complementary tool that allows the understanding of hydrogeochemical processes that affect water masse, such as mixing and evaporation (Tijani et al. 1996). In this regard, isotopic tracers have been used to highlight the origins of water and recharge mode.

The Ouazzi Wadi basin which was the subject of this study is located in northern part of Essaouira basin, about 20 km northeast of Essaouira city (Fig. 1). Ouazzi Wadi is a typical example of a semiarid climate region where groundwater resources are intensively exploited for human needs as a result of agricultural and demographic development.

Fig. 1
figure 1

Geographic location, geological map, and cross section of the study area

Several studies have been realized in the Essaouira basin having partially identified and characterized some of the main mechanisms causing degradation of water quality in some coastal areas of this region, based on the application of geochemical and isotopic approaches (Bahir et al. 2000, 2001; Ouhamdouch et al. 2017, 2018). These studies have demonstrated that: (1) the groundwater recharge in Essaouira basin is supported by water runoff and precipitation; (2) important contribution of water–rock interaction in groundwater mineralization; (3) anthropogenic contamination was also identified.

The main objective of this investigation is to exploit the isotopic and hydrogeochemical tools to highlight processes controlling the groundwater mineralization of the Ouazzi Wadi basin on the one hand and to determine their quality for drinking and irrigation purposes on the other hand. This, in turn, can guide future groundwater management plans in the region.

Study area

The Ouazzi Wadi basin is located in the north-eastern part of Essaouira city (Fig. 1). The basin is under semiarid climate with irregular rainfall of about 300 mm year−1 and the temperature oscillates about 20 °C (Ouhamdouch and Bahir 2017).

Geomorphologically, the Essaouira basin is less rugged, with a lower relief characterized by low hills and shaped by a sparse hydrographic network. As for the hydrogeological scope, the study area is a sedimentary basin, mainly composed of two main aquifers. The first is the Plio-Quaternary phreatic aquifer (downstream part, to the west) represented by conglomerates, alluviums, colluvium, and sandstones matrix with a primary hydraulic conductivity by porosity (3.2 × 10−2 m2/s) and a variant thickness of 5–60 m (Bahir et al. 2000). The substratum of this aquifer is formed by the Senonian gray marls, and the Plio-Quaternary can be in direct contact with the Triassic and Cretaceous formations (Lozes 1959). The results of pumping test studies in this aquifer showed that the Plio-Quaternary transmissivity ranged between 4.5 × 10−5 and 6 × 10−2 m2/s (Mennani 2001).

The second is the Cenomanian-Turonian carbonate aquifer, and it is mainly constituted by limestones and dolomitic–limestones layers. The Cenomanian is the most important for its power, and its thickness can exceed 220 m. It is composed of gray marls, sandy marls, gypsiferous marls, limestones, sandy limestones, and dolomitic limestones (Jalal 2001). At the outcrop, the Turonian is presented by micritic limestones and dolomites with the abundance of silica. At depth, there is sometimes intercalation of marly beds (Ettachfine 1992). The Turonian also shows lateral variations of facies and power but in less important proportions than the Cenomanian. Pumping tests results carried out in the study area showed that transmissivity ranged between 2.20 × 10−4 m2/s and 2.7 × 10−1 m2/s in Sebt Kourimat region and around 9 × 10−3 m2/s in Ounagha region (Bahir et al. 2008). The dispersion of transmissivity values comes from the large heterogeneity of lithological facies and the quantitative and qualitative variations of fracturing. This aquifer is exploited by the rural population for drinking water supply and in a lesser extent to agricultural (Bahir et al. 2000). The geological structure of this sedimentary basin is marked by a succession of anticlines and synclines, affected by folded structures and deep faults under the influence of Atlas tectonic and Triassic salt diapers dynamics.

The piezometric map shows that groundwater flows mainly from SE to the NW in upstream and from E to W in downstream, along with the major axis of Ouazzi Wadi (Fig. 2). The natural discharge area of the aquifer is the Atlantic Ocean.

Fig. 2
figure 2

Sample location and piezometric map

Sampling and analytical procedures

Physico-chemical parameters

A total of 20 water samples have been collected in 2007 from the Plio-Quaternary (downstream) and Cenomanian-Turonian (upstream) aquifers (depth 9.20–170 m) of Ouazzi Wadi basin. The depth of the water table is measured by a piezometric probe (200 m range) (Fig. 2). Temperature, pH, and electric conductivity “EC” were measured on the field. Total alkalinity was determined a few times after collection in the laboratory. Samples have been filtered through 0.45-μm membranes. The filtered samples were collected in polyethylene bottles, which were prewashed with acid and rinsed by sampled well water. The chemical analyses (Ca, Mg, Na, K, Cl, SO4, and NO3) of the waters were performed at the Laboratory at Sciences Faculty of Semlalia of Marrakech (Morocco) by using the ion chromatography.

Saturation index

Calculation of saturation indices for the 20 samples was made using the geochemical modeling software PHREEQC for windows (Parkhurst and Appelo 1999). These indices are calculated according to the formula (1):

$${\text{SI}} = \log \frac{\text{IAP}}{{K_{i} }}$$
(1)

where SI saturation index, IAP ion activity product, and Ki the equilibrium solubility constant.

Sodium adsorption ratio (SAR) and sodium percentage (%Na)

SAR is an important parameter to assess the groundwater aptitude for irrigation. It is easily measurable by applying the formula (2) (USSL 1954):

$${\text{SAR}} = \frac{\text{Na}}{{\sqrt {\frac{{{\text{Ca}} + {\text{Mg}}}}{2}} }}$$
(2)

The %Na parameter is a common parameter for assessing the suitability of natural water for irrigation. This parameter is calculated according to the formula (3) (Wilcox 1955):

$$\% {\text{Na}} = \frac{{{\text{Na}} \times 100}}{{{\text{Ca}} + {\text{Mg}} + {\text{Na}} + {\text{K}}}}$$
(3)

Stable and radioactive isotopes

The δ2H and δ18O of the water samples were determined by using mass spectrometry following the methods proposed by Friedman (1953) and by Epstein and Mayeda (1953) for 2H and 18O, respectively, with a precision of ± 1‰ for δ2H and ± 0.1‰ for δ18O. The stable isotope data, δ2H and δ18O, are reported to V-SMOW (Vienna-Standard Mean Ocean Water) in ‰.

The tritium (3H) content was determined using the electrolytic enrichment followed by liquid scintillation counting method (IAEA 1976; Lucas and Unterweger 2000). The error associated with the 3H measurements varies with the 3H concentration in the water sample.

The 13C and 14C determinations were made on the TDIC (Total Dissolved Inorganic Carbon) of groundwater, precipitated in the field as BaCO3 at a pH higher than 9.0. The counting rates of the 14C (benzene) were measured using a liquid scintillation counter. 14C content is expressed in pMC (percentage of Modern Carbon). The 13C values, obtained in the TDIC by mass spectrometry, are reported in ‰ to V-PDB (Vienna–PeeDee Belemnite) standard, with an accuracy of ± 0.1‰.

All the isotopic analyses were performed in the laboratories of IAEA-IHS (International Atomic Energy Agency—Isotope Hydrology Section) in Vienna, Austria.

The results of chemical and isotope analyses are grouped in Tables 1 and 3.

Table 1 Analytical result for physico-chemical and major ions

Results and discussion

Hydrogeochemical frameworks

Hydrochemical characterization and water type

A total of 20 groundwater samples were analyzed for physical [pH, T and electrical conductivity (EC)] and chemical (major ions) parameters. The results are summarized in Table 1. The pH of the analyzed samples varies between 6.55 and 7.80, with an average of 7.22. The water of the study area is a hypothermal type with an average of temperature of 22.29 °C. For the EC, it varies from 900 to 3900 μs/cm with an average of 2180 μs/cm. For anions, Cl and HCO3 are the major anions with average concentrations of 10.91 and 5.62 meq/L, respectively. Table 1 shows that the average SO4 content is 10.65 meq/L, but, except for two samples with concentrations of 49 meq/L, the average concentration becomes 5.04 meq/L and therefore lower than that of HCO3. As for cations, the main ions are Ca and Mg with concentrations 10.56 and 11.30 meq/L, respectively.

Piper diagram (1944) is a diagram for grouping samples and providing an idea of groundwater origin. The projection of 20 samples analyzed on the Piper diagram (Fig. 3) shows three water types: Mg–Ca–Cl type, Mg–Ca–HCO3 type, and SO4–Ca–Mg water type. The dispersion of the points in the Piper diagram suggests that the groundwater mineralization is of several origins.

Fig. 3
figure 3

Piper diagram of groundwater samples. C-T = Cenomanian-Turonian, P-Q = Plio-Quaternary

The results of the saturation indices obtained using the PHREEQC software (Parkhurst and Appelo 1999) are grouped in Fig. 4. However, the groundwater is undersaturated with respect to the halite, gypsum, and anhydrite. Nevertheless, they show positive saturation index values with respect to calcite and dolomite.

Fig. 4
figure 4

Saturation indices for several minerals

Gibbs diagrams (1970) are used to evaluate the processes responsible for the origin of dissolved chemical elements, such as rock weathering dominance, precipitation dominance, and evaporation dominance (Gibbs 1970). It is widely used and has given satisfactory results (Nagaraju et al. 2014; Li et al. 2015; Krishna et al. 2017). Tracing the correlation diagrams of Na/(Na + Ca) versus TDS and Cl/(Cl + HCO3) versus TDS (Fig. 5) shows that the chemical composition of groundwater is dominated by the evaporation and rock weathering phenomena.

Fig. 5
figure 5

Gibbs’ diagrams. C-T = Cenomanian-Turonian, P-Q = Plio-Quaternary

Calculation of the correlation is an important step in revealing the statistical link between two or more variables. As shown in Table 2, the Ca, Mg, and SO4 ions are positively correlated with TDS. This indicates the contribution of these ions to the mineralization of groundwater.

Table 2 Correlation matrix of the major ions and the TDS for the study area

Ca ion is positively correlated with Mg ion, with a correlation coefficient of 0.91 indicating that these two ions probably have the same origin. Ca–Mg correlation diagram (Fig. 6b) shows that the points are scattered around the dolomite dissolution line (line 1:1). Dolomite dissolution is supported by the negative saturation indices presented by some analyzed points (Fig. 5). For Ca and SO4, they are positively correlated with a correlation coefficient of 0.91 (Table 2). This suggests that these two ions have the same origin. The diagram of Ca versus SO4 (Fig. 6c) shows that some points are aligned on the straight line of slope 1, gypsum and anhydrite dissolution line. This phenomenon is supported by negative saturation indices with respect to gypsum and anhydrite (Fig. 5). Ca excess can be explained by the phenomenon of reverse cation exchange (Fig. 7). While SO4 excess for some samples perhaps explains the direct Cation Exchange process (Fig. 7). As shown in Table 2, Mg is positively correlated with SO4. The Mg–SO4 correlation diagram (Fig. 6d) shows an excess in Mg which can be explained by the reverse cation exchange phenomenon. Table 2 shows a very weak and negative correlation between Ca and HCO3, suggesting that the dissolution of calcite does not contribute to the groundwater mineralization in the study area. This hypothesis is supported by positive saturation indices with respect to calcite (Fig. 5).

Fig. 6
figure 6

Correlation diagram a Na versus Cl b Ca versus Mg c Ca versus SO4 d Mg versus SO4 and e Ca versus HCO3. C-T = Cenomanian-Turonian, P-Q = Plio-Quaternary

Fig. 7
figure 7

Correlation diagram a [(Ca + Mg) − (HCO3 + SO4)] versus [(Na + K) − Cl] b (Ca + Mg) versus (HCO3 + SO4). C-T = Cenomanian-Turonian, P-Q = Plio-Quaternary

Cl contents are positively correlated with Na contents with a correlation coefficient of 0.80 (Table 2). This suggests that these two ions have the same origin. The Na versus Cl diagram (Fig. 6a) shows that some points are located near the 1:1 line reflecting the participation of halite dissolution in the groundwater mineralization of the study area. This hypothesis is confirmed by negative saturation indices with respect to halite (Fig. 5). Further points are located below the 1:1 line, suggesting the contribution of other phenomena to the groundwater mineralization in the study area. The Na deficiency can be explained by the excess of Ca and Mg following the base exchange process (Fig. 7). As shown in Fig. 6a, the samples from the Plio-Quaternary aquifer (toward the Atlantic Ocean) are aligned on the right sw–fw. This reflects the marine influence on groundwater mineralization in the study area.

Figure 7b shows that the samples of the Cenomanian-Turonian aquifer are distributed around the 1:1 line, which indicates the dissolution of carbonate (especially the dolomite) and evaporitic (gypsum and anhydrite) minerals. Samples located above the 1:1 line indicate an excess of Ca and Mg leading to the reverse base exchange phenomenon. To confirm that the cation exchange process contributes to the groundwater mineralization in the study area, we used the correlation diagram (Ca + Mg − HCO3 − SO4) versus (Na + K − Cl) (Fig. 7a). This shows that the slope of the correlation line is − 0.71 confirming that ion exchange can be a phenomenon contributing to the groundwater mineralization. The majority of the points are localized toward the positive ordinates and toward the negative abscissae; this reflects an enrichment of Ca and Mg with respect to Na following the fixation of Na and release of Ca and Mg by the aquifer matrix. However, according to this diagram, the groundwater mineralization of the study area is controlled by the cation exchange phenomenon that is added to the dissolution process and to the marine influence.

Groundwater quality for drinking purposes

Evaluation of the groundwater quality with drinking purposes was made by comparing the physico-chemical parameters of the analyzed samples with the thresholds set by WHO (2008). The results obtained are grouped in Table 1. With the exception of Na and pH, that present the values lower than the limits fixed by WHO (2008), the electrical conductivity and the rest of the ions have values exceeding the threshold set by WHO (2008). Due to the food nature of the agriculture practiced in the study area, intake by plants and fertilizers is negligible or nonexistent. However, high levels of NO3 would come from domestic pollutants, as this pollution is a one-off phenomenon. Only the catchment points are polluted, and this pollution originates from the traditional methods of drawing. These result in a significant amount of water flowing around the catchment wells, constituting quasi-permanent pools that are enriched in NO3 by livestock waste during watering. However, the consumption of groundwater in the study area requires a treatment before use as drinking water.

Groundwater quality for irrigation purposes

SAR is an important parameter to assess groundwater for irrigation purposes. It is widely used in many zones and has yielded satisfactory results (Al-Ahmadi 2013; Giuseppe et al. 2014; Gowrisankar et al. 2017). In the study area, the samples from the Cenomanian-Turonian aquifer fall into the categories C3S1 and C3S4, while those from the Plio-Quaternary aquifer fall into the category C4S1 (Fig. 8). However, groundwater in the study area remains suitable for plants with high salinity.

Fig. 8
figure 8

Salinity versus alkalinity hazard in the US salinity diagram. C-T = Cenomanian-Turonian, P-Q = Plio-Quaternary

As for the %Na parameter, the values calculated in the study area vary between 3.77 and 42.95% (Fig. 9). The projection of the analyzed samples on the %Na versus EC (Fig. 9) diagram shows that the points are in the three categories “Good to Permissible”, “Doubtful to Unsuitable”, and “Unsuitable”. However, groundwater in the study area remains valid for plants with high Na and high salinity.

Fig. 9
figure 9

Suitability of groundwater for irrigation in Wilcox diagram. C-T = Cenomanian-Turonian, P-Q = Plio-Quaternary

Isotopic frameworks

The stable isotopes oxygen-18 and deuterium are two essential elements to determine the groundwater origin. They also provide information on processes that may affect water before or during infiltration, such as evaporation phenomenon (Geyh 2000). The use of these elements in combination with physico-chemical parameters makes it possible to decipher the mechanisms controlling groundwater mineralization (Ben Cheikh et al. 2014; IAEA 1981, 1983).

The result of oxygen-18 and deuterium analyses of groundwater samples indicate that the oxygen-18 contents range between − 6.20 and − 3.82‰, and deuterium contents vary from − 38.37 to − 20.69‰ (Table 3).

Table 3 Isotopic data of sampled groundwater

Results from the investigated area are shown in Fig. 10 in relation to the Global Meteoric Water Line (GMWL) (δ2H=8× δ18O+10) (Craig 1961) and the Local Meteoric Water Line (LMWL) (δ2H=7.55 δ18O+9.2) (Bahir et al. 2000). The close proximity to the meteoric water lines suggests that the water was of meteoric origin.

Fig. 10
figure 10

δ2H–δ18O stable isotope diagram of the analyzed groundwater samples. C-T = Cenomanian-Turonian, P-Q = Plio-Quaternary

All points are placed above the GMWL, reflecting a direct recharge without evaporation.

When the points analyzed for 2H and 18O draw a line of slope 8 in diagram 2H versus 18O, it means that these waters are of meteoric origin. Whereas when the slope is less than 8, this reflects evaporation during or/and after the rainfall (Al-Charideh et al. 2009). For the study area, we note that the calculated slope of 2H/18O is 7.76 and 7.40 for the water from the Cenomanian-Turonian and Plio-Quaternary aquifer, respectively. This confirms that recharge of aquifers in the study area is ensured by direct infiltration of rainwater.

Diagram of chloride versus oxygen-18 (Fig. 11a) shows that the chloride concentrations are not correlated with the oxygen-18 contents, and this highlights the importance of the dissolution phenomenon in the study area. In addition, the calculated correlation coefficients between Cl and 18O of samples from the Cenomanian-Turonian and Plio-Quaternary aquifers are R2 = 0.045 and R2 = 0.003, respectively. This suggests that evaporation appears to be a nonsignificant process involved in the groundwater mineralization in the study area.

Fig. 11
figure 11

a δ18O versus Cl diagram, b δ18O versus 3H, c δ13C versus 14C, d δ18O versus 14C. C-T = Cenomanian-Turonian, P-Q = Plio-Quaternary

The tritium is one of the radioactive isotopes used to estimate the water age. However, a recent recharge of such an aquifer may be marked by tritium contents greater than 1, whereas water with tritium content less than 1 is considered as water resulting from an age recharge before nuclear tests (Mazor 1991). Tritium activities were measured on samples to establish the groundwater residence time. According to Clark and Fritz (1997), the presence of detectable activities of tritium in groundwater highlights the modern infiltration of rainwater in these aquifers. In fact, tritium values in the study area range from 0.18 to 3.43 TU for the 2007 campaign and from 0.00 to 1.5 TU for the 2016 campaign (Fig. 11b, Table 3). The presence of measurable tritium concentrations (> 1 TU) is observed in the Cenomanian-Turonian aquifer of the study area, confirming the presence of recent waters (6, 7, 8, and 9). But, the results of the 2016 campaign show that all the samples, with the exception of sample 8, have very low tritium contents (< 1 TU). This can be explained by the precipitations scarcity that has known the study area in last years. However, the waters sampled in 2016 are the result of a recharge that takes place before the nuclear tests of the 50 s. This reflects a low renewal of aquifers in the study area.

The age estimation of groundwater is an important step toward better management and protection of this resource. An aquifer with water of considerable age means that the renewal rate of this aquifer is low. Nevertheless, a significant turnover rate suggests a recent recharge. 14C radioactive isotope, which has the capacity to date water up to an age of 30,000 years, is the most commonly used element for groundwater dating (Edmunds 2009). A carbonate matrix of such aquifer or even the presence of a carbonate layer in this aquifer makes the dating method of groundwater by 14C very difficult.

A common and straightforward way to estimate the initial 14C activity is by relating the δ13C content of the DIC in the groundwater to the mixed carbon from carbonate rocks, using carbon from soil CO2 and a fractionation factor between the different carbonate phases as a function of temperature (Gonfiantini and Zuppi 2003).

Data for water samples from the study area range from − 5.12 to − 10.82‰. Variations in δ13C of DIC in this area are plotted as a function of the 14C activities (Fig. 11c). However, there do not appear to be appreciable trends in δ13C of DIC within individual hydrochemical zones what may indicate that source waters recharged to the aquifers are similarly influenced by the isotopic composition of carbonate minerals and by the relative abundances of different plants in the recharge areas. However, the increase in 14C activities and 13C enrichment could be explained by the mixing of biogenic CO2 and carbonate mineral matrix.

The age values for water of the study vary between the actual to 2300 BP. Even if radiocarbon is an indispensable tool in the age tracing of groundwater, results must always be approached with caution. The reliability of results depends strongly on the complexity of the geochemistry of the aquifer. According to the correspondence 14C (%)/infiltration period scaling by several authors in North Africa (Guendouz et al. 2003; Kamel et al. 2008), the 18O content (‰) are plotted against 14C (pMC) for Cenomanian-Turonian and Plio-Quaternary groundwaters in the study area (Fig. 11d). The activities of 14C between 2 and 20 pMC in the analyzed waters correspond to the late Pleistocene recharge period where the climate is wetter and colder than the current. The presence of groundwater with a 14C activity of 20–60 pMC with an average isotopic composition of − 5.5‰ versus SMOW for oxygen-18 indicates a relatively newer Holocene recharge. Groundwater with 14C activity above 70 pMC suggests actual recharge. However, the study area contains both fossil water and recent water. This corroborates the result obtained from relation 3H versus oxygen-18.

Conclusion

The geological setting of Ouazzi Wadi basin and the flow of Ouazzi Wadi, during rainfall, plays an important role in the geochemical and hydrodynamic characteristics in the studied area. Hydrogeochemistry and isotope hydrology of groundwater in this area have provided useful insights into their origin, mineralization processes, and recharge mechanisms.

Hydrogeochemical approach revealed that the observed groundwater mineralization is linked to (1) dissolution phenomenon of evaporitics minerals (halite, gypsum, and anhydrite) and of carbonates minerals (dolomite), (2) cations exchange processes, and (3) marine effect. Groundwater quality for drinking purpose has been evaluated and the consumption of groundwater in the study area requires a treatment before use as drinking water. As for irrigation purpose, groundwater in the study area remains suitable for plants supporting high salinity.

The stable isotope signatures indicate that the groundwater samples are of a meteoric origin. These tracers reveal the recharge of the aquifer is assured by direct infiltration of precipitations without notable evaporation. The high tritium contents (3H > 1 TU) are observed at the water points 7, 8 and 9 (near the Sebt Kourimat village = recharge zone of the aquifer) for the 2007 campaign. The comparison of the 3H contents for the same samples from the 2007 and the 2016 cohorts shows a decrease in 3H. This diminution can be explained by the precipitations scarcity that has known the study area in recent years. However, the waters sampled in 2016 are the result of a recharge that takes place before the nuclear tests of the 50 s, reflecting a low renewal of aquifers studied. Age evaluations using radioisotope techniques vary between the actual age to Pleistocene.

However, the scientific results of this study could be exploited for a water management of the area to sustainably develop the exploitation of the resource, taking into accounts its dynamics and renewability.