/**
 * Eco Renov – finitions téléphone (≤ 767 px) et cartes photo (≤ 1024 px), Océan, 17/11/2026.
 */

/* 1. Cartes photo avec texte posé dessus (accueil « Ce que notre collaboration vous apporte », pages Rénovation
      intérieure / extérieure) : titres à interligne 1 (les lignes se touchaient) → 1,2. */
@media (max-width: 1024px) {
	html body .elementor-81 :is(.elementor-element-6041d840, .elementor-element-425aff13, .elementor-element-384930c3) .elementor-heading-title,
	html body :is(.elementor-235, .elementor-352) :is(.elementor-element-375572c4, .elementor-element-977dc27, .elementor-element-4c9741f, .elementor-element-8f87644) .elementor-heading-title {
		line-height: 1.2;
	}
}

@media (max-width: 767px) {
	/* 2. Les mêmes cartes photo : 450 px de haut pour quelques lignes de texte → 340 px. */
	html body .elementor-81 .elementor-element:is(.elementor-element-6041d840, .elementor-element-425aff13, .elementor-element-384930c3) {
		--min-height: 340px;
		min-height: 340px;
	}

	/* 3. Cartes numérotées 01–04 (accueil « Nos prestations », Rénovation intérieure / extérieure) : 60 px de vide
	      entre le numéro et le titre → 16 px. */
	html body .elementor-81 .elementor-element-1947d4e .e-con > .elementor-widget-heading:nth-child(2),
	html body :is(.elementor-235, .elementor-352) .elementor-element-f9baace .e-con > .elementor-widget-heading:nth-child(2) {
		margin-top: 0;
	}

	html body .elementor-81 .elementor-element-1947d4e .e-con.e-con,
	html body :is(.elementor-235, .elementor-352) .elementor-element-f9baace .e-con.e-con {
		--gap: 16px 16px;
		gap: 16px;
	}

	/* 5. Titres en deux temps (« Nos chantiers / parlent pour nous », « Des engagements au cœur / de chaque chantier »…) :
	      la ligne en italique avait 60 px de marge en dessous, en plus de l'espace de la section → 24 px. */
	html body .elementor:is([data-elementor-type="wp-page"]) .elementor-widget-heading:is(.elementor-element-469ec4e, .elementor-element-82309fd) {
		--padding-bottom: 0px;
		padding-bottom: 0;
		margin-bottom: 0;
	}

	html body .elementor-81 .elementor-element.elementor-element-ad2443b {
		--padding-top: 16px;
	}

	/* 6. Page 404 : les trois boutons à la même largeur (ils avaient trois largeurs différentes). */
	html body [data-elementor-type="error-404"] .elementor-widget-button {
		--container-widget-width: 100%;
		width: 100%;
	}

	html body [data-elementor-type="error-404"] .elementor-widget-button .elementor-button {
		width: 100%;
		justify-content: center;
	}
}

/* 7. Lisibilité du texte posé sur les photos claires (carte « Aménagement & redistribution des espaces » sur un plan
      blanc…) : légère ombre sous le texte. Titres à interligne 1 du bloc « Un interlocuteur unique » → 1,2. */
@media (max-width: 1024px) {
	html body .elementor-81 :is(.elementor-element-6041d840, .elementor-element-425aff13, .elementor-element-384930c3) :is(.elementor-heading-title, .elementor-widget-text-editor),
	html body :is(.elementor-235, .elementor-352) :is(.elementor-element-375572c4, .elementor-element-977dc27, .elementor-element-4c9741f, .elementor-element-8f87644) :is(.elementor-heading-title, .elementor-widget-text-editor) {
		text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
	}

	html body :is(.elementor-235, .elementor-352) .elementor-element-e16ea47 .elementor-heading-title {
		line-height: 1.2;
	}
}

/* 8. Valeurs (À propos), téléphone et tablette : moins de vide entre l'icône et le titre. */
@media (max-width: 1024px) {
	html body .elementor-156 .elementor-widget-icon-box .elementor-icon-box-title {
		margin-top: 0;
	}
}
