/* Ajouts d'Entretien Lapointe par-dessus le gabarit : accueil, galerie de réalisations, page contact. */

/* ---------- Bandeau d'accueil (index.html) ---------- */
.el-hero {
	position: relative;
	display: flex;
	align-items: center;
	height: 68vh;
	min-height: 440px;
	max-height: 640px;
	overflow: hidden;
	background: #1d2a17;
	text-align: center;
}

.el-hero-photos img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.el-hero-photos img.el-actif {
	opacity: 1;
}

/* Voile sombre pour que le texte reste lisible sur toutes les photos */
.el-hero:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.66));
}

.el-hero-contenu {
	position: relative;
	z-index: 1;
	padding-top: 40px;
	padding-bottom: 40px;
}

.el-hero h1 {
	max-width: 900px;
	margin: 0 auto 16px;
	color: #ffffff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.el-hero p {
	max-width: 640px;
	margin: 0 auto 26px;
	color: #ffffff;
	font-size: 18px;
	line-height: 1.5;
}

.el-hero .el-hero-boutons {
	margin-bottom: 0;
}

.el-hero-boutons .theme_button {
	margin: 0 6px 10px;
}

.el-hero-boutons .theme_button.color1:hover,
.el-hero-boutons .theme_button.color1:focus {
	background-color: #367a0f;
	border-color: #367a0f;
	color: #ffffff;
}

.el-hero-boutons .el-bouton-clair {
	background-color: #ffffff;
	border-color: #ffffff;
	color: #323232;
}

.el-hero-boutons .el-bouton-clair:hover,
.el-hero-boutons .el-bouton-clair:focus {
	color: #367a0f;
}

@media (min-width: 768px) {
	.el-hero h1 {
		font-size: 44px;
	}

	.el-hero p {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.el-hero-photos img {
		transition: none;
	}
}

/* ---------- Saison (classe el-hiver ou el-ete posée sur <html> par un script de index.html) ---------- */
.el-hiver-seul {
	display: none;
}

.el-hiver .el-hiver-seul {
	display: block;
}

.el-hiver .el-ete-seul {
	display: none;
}

/* En hiver, la carte du déneigement passe devant */
.el-hiver .el-carte-hiver {
	order: -1;
}

/* ---------- Atouts et services (index.html) ---------- */
.el-atouts .row {
	row-gap: 30px;
}

.el-atout {
	height: 100%;
	text-align: center;
}

.el-atout i {
	display: block;
	margin-bottom: 16px;
	font-size: 48px;
	line-height: 1;
}

.el-atout h2 {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.2;
}

.el-atout p:last-child,
.el-service p:last-child {
	margin-bottom: 0;
}

.el-service .teaser_icon {
	margin-bottom: 14px;
	font-size: 56px;
}

.el-service h3 {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.2;
}

.el-photo-apropos {
	width: 100%;
	height: auto;
	border-radius: 5px;
}

/* Fond du bloc « Obtenez votre soumission » : une photo de l'entreprise plutôt que celle du gabarit */
.call_to_action.parallax {
	background-image: url(../images/web/accueil-pelouse-arbres.jpg);
}

/* Voile un peu plus sombre que celui du gabarit : la photo de pelouse est très claire */
.call_to_action.parallax:after {
	opacity: 0.76;
}

/* ---------- Questions fréquentes (index.html) ---------- */
.el-faq {
	max-width: 820px;
	margin: 0 auto;
}

.el-question {
	border-bottom: 1px solid #e1e1e1;
}

.el-question summary {
	position: relative;
	padding: 16px 34px 16px 0;
	color: #323232;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.el-question summary::-webkit-details-marker {
	display: none;
}

.el-question summary:after {
	content: "+";
	position: absolute;
	top: 11px;
	right: 4px;
	color: #449a13;
	font-size: 26px;
	font-weight: 400;
}

.el-question[open] summary:after {
	content: "\2013";
}

.el-question p {
	margin: 0 0 18px;
}

/* ---------- Barre fixe au bas de l'écran, sur cellulaire seulement ---------- */
.el-barre-mobile,
.el-barre-espace {
	display: none;
}

@media (max-width: 767px) {
	/* Réserve la hauteur de la barre pour qu'elle ne cache pas la fin de la page */
	.el-barre-espace {
		display: block;
		height: 56px;
	}

	/* z-index sous celui de l'en-tête (1000) : le menu ouvert passe par-dessus la barre */
	.el-barre-mobile {
		display: flex;
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 999;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
	}

	.el-barre-mobile a {
		flex: 1;
		padding: 18px 8px;
		font-size: 14px;
		font-weight: 700;
		line-height: 20px;
		text-align: center;
		text-decoration: none;
		text-transform: uppercase;
	}

	.el-barre-mobile .el-barre-appel {
		background: #ffffff;
		color: #323232;
	}

	.el-barre-mobile .el-barre-soumission {
		background: #449a13;
		color: #ffffff;
	}

	/* Le bouton « retour en haut » du gabarit remonte au-dessus de la barre */
	#toTop {
		right: 15px;
		bottom: 72px;
	}
}

/* ---------- Galerie (realisations.html) ---------- */
.el-galerie {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.el-photo {
	margin: 0;
	overflow: hidden;
	border-radius: 5px;
	background: #f5f5f5;
}

.el-photo a {
	display: block;
}

.el-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.el-photo figcaption {
	padding: 10px 14px;
	color: #323232;
	font-size: 15px;
}

.el-galerie-appel {
	margin-top: 50px;
	text-align: center;
}

.el-galerie-appel p {
	margin-bottom: 20px;
	font-size: 1.1em;
}

@media (max-width: 991px) {
	.el-galerie {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.el-galerie {
		grid-template-columns: 1fr;
	}
}

/* ---------- Page des services (services.html) ---------- */
.el-intro {
	max-width: 820px;
	margin-bottom: 40px;
	font-size: 18px;
	line-height: 1.6;
}

/* Les cartes d'une même rangée ont la même hauteur */
.el-carte {
	height: 100%;
}

.el-carte h2 {
	margin-top: 0;
	font-size: 24px;
	line-height: 1.2;
}

.el-carte ol {
	padding-left: 20px;
	margin-bottom: 20px;
}

.el-carte ol li {
	padding: 4px 0;
}

/* ---------- Secteurs desservis (secteurs.html, pelouse.html, deneigement.html) ---------- */
.el-villes {
	columns: 2;
	column-gap: 30px;
}

.el-villes li {
	break-inside: avoid;
}

/* Même espacement pour le premier élément, sinon les deux colonnes ne s'alignent pas */
.el-villes li:first-child {
	padding-top: 5px;
}

.el-villes li:first-child:before {
	top: 5px;
}

.el-secteurs-titre {
	margin-top: 1.5em;
	font-size: 22px;
	line-height: 1.2;
}

/* ---------- Page introuvable (404.html) ---------- */
.el-404 {
	text-align: center;
}

.el-404 .el-404-code {
	margin: 0 0 10px;
	color: #449a13;
	font-size: 90px;
	font-weight: 700;
	line-height: 1;
}

.el-404 .theme_button {
	margin: 0 4px 10px;
}

/* ---------- Page contact (contact.html) ---------- */
/* Champ piège anti-robots : invisible pour les humains, il doit rester vide */
.el-piege {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.el-coordonnees a[href^="tel:"] {
	font-size: 20px;
	font-weight: 700;
}

.el-carte-lien {
	margin-top: 20px;
}
