/* ==========================================================================
   50. PHOTOS DES COMMERCIAUX (retour client du 23/10/2026)
   Arthur Bachellier et Clément Sellier, en rond à côté de leurs coordonnées :
   - encadrés Elementor « Vos contacts par secteur » (rangée .ldp-contact-ligne :
     photo .ldp-contact-photo | départements + nom | bouton téléphone), sur
     l'accueil, les pages projets, terrains, réalisations, contact, actualités,
     agences et le modèle « Single agence » ;
   - fenêtres « Nous contacter » / « Demander un devis » (widgets HTML, deux
     modèles : .contact-block et .ldp-popup__contact), image .ldp-photo-contact.
   ========================================================================== */

/* Encadrés : photo | texte | bouton ; en tablette et mobile (≤ 1024 px) le bouton passe sous le nom
   (à 768 px les encadrés côte à côte n'ont pas la place des trois colonnes) */
html body .elementor-element.ldp-contact-ligne {
	display: grid !important;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	column-gap: 14px;
	align-items: center;
}
html body .ldp-contact-ligne > .elementor-widget.ldp-contact-photo {
	grid-column: 1;
	width: 56px;
	max-width: 56px;
	margin: 8px 0 !important;
}
html body .ldp-contact-ligne > .e-con {
	width: auto;
	min-width: 0;
}
html body .ldp-contact-photo img {
	display: block;
	width: 56px !important;
	height: 56px !important;
	max-width: none !important;
	border-radius: 50% !important;
	object-fit: cover;
	object-position: 50% 35%;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E2C9A0;
}
@media (max-width: 1024px) {
	html body .elementor-element.ldp-contact-ligne {
		grid-template-columns: 48px minmax(0, 1fr);
		column-gap: 12px;
	}
	html body .ldp-contact-ligne > .elementor-widget.ldp-contact-photo {
		width: 48px;
		max-width: 48px;
	}
	html body .ldp-contact-photo img {
		width: 48px !important;
		height: 48px !important;
	}
	html body .ldp-contact-ligne > .e-con:last-child {
		grid-column: 2;
		justify-self: start;                 /* bouton aligné sous le nom (page Contact : il partait à droite) */
		--justify-content: flex-start;
	}
}

/* Fenêtres, modèle de l'accueil (.contact-block : départements, nom, téléphone, e-mail) */
html body .contact-block:has(> .ldp-photo-contact) {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	column-gap: 14px;
	align-items: start;
}
html body .contact-block > .ldp-photo-contact {
	grid-row: 1 / span 4;
	margin-top: 2px;
}
html body .contact-block:has(> .ldp-photo-contact) > :not(.ldp-photo-contact) {
	grid-column: 2;
	justify-self: start;
}

/* Fenêtres, modèle des pages projets (.ldp-popup__contact : [départements + nom] | téléphone) */
html body .ldp-popup__contact > div:has(> .ldp-photo-contact) {
	display: grid;
	grid-template-columns: 56px auto;
	column-gap: 14px;
	align-items: center;
}
html body .ldp-popup__contact .ldp-photo-contact {
	grid-row: 1 / span 2;
}
html body .ldp-popup__contact > div:has(> .ldp-photo-contact) > :not(.ldp-photo-contact) {
	grid-column: 2;
	justify-self: start;
}

html body .ldp-photo-contact {
	display: block;
	width: 56px;
	height: 56px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 35%;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E2C9A0;
}

/* Fiche agence (modèle 311) : chaque ligne de conseiller est une carte arrondie dont le CSS du
   conteneur impose display:flex !important et un padding invalide (« px ») ; même disposition
   que les autres encadrés, avec une marge intérieure. Voir aussi 40-modeles-pied-de-page.css § 4a. */
html body .elementor-311 .e-con.elementor-element.ldp-contact-ligne {
	display: grid !important;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	column-gap: 16px !important;
	align-items: center !important;
	padding: 14px 18px !important;
}
html body .elementor-311 .ldp-contact-ligne > .elementor-widget.ldp-contact-photo {
	margin: 0 !important;
}
@media (max-width: 1024px) {
	html body .elementor-311 .e-con.elementor-element.ldp-contact-ligne {
		grid-template-columns: 48px minmax(0, 1fr);
		column-gap: 12px !important;
		padding: 12px 14px !important;
	}
	html body .elementor-311 .ldp-contact-ligne > .elementor-widget.ldp-contact-photo {
		width: 48px;
		max-width: 48px;
	}
	html body .elementor-311 .ldp-contact-photo img {
		width: 48px !important;
		height: 48px !important;
	}
	html body .elementor-311 .ldp-contact-ligne > .e-con:last-child {
		grid-column: 2;
	}
}

/* Accueil, « Votre projet » : l'encadré des contacts a été resserré à 40 % (retour du 23/10).
   Entre 1025 et 1365 px il n'a pas la place des trois colonnes → bouton sous le nom ;
   au-delà, « Départements 27,14,61 » tient sur une ligne. */
@media (min-width: 1025px) and (max-width: 1365px) {
	html body .elementor-30 .elementor-element-eaeff11 .elementor-element.ldp-contact-ligne {
		grid-template-columns: 56px minmax(0, 1fr);
	}
	html body .elementor-30 .elementor-element-eaeff11 .ldp-contact-ligne > .e-con:last-child {
		grid-column: 2;
		justify-self: start;
		--justify-content: flex-start;
		padding-top: 0;
	}
}
@media (min-width: 1366px) {
	html body .ldp-contact-ligne > .e-con:nth-child(2) > .elementor-widget-text-editor:first-child p {
		white-space: nowrap;
	}
}
