/* Ajustements Agence Pixel (2026-10) */

/* Fiche entreprise : logo encadré en haut de la colonne des coordonnées */
.content_single_enterprices .logo_single_enterprise {
	align-items: center;
	background-color: #fff;
	border: 3px solid var(--wp--preset--color--custom-orange, #f2b149);
	box-sizing: border-box;
	display: flex;
	height: 200px;
	justify-content: center;
	margin: 0 0 40px;
	max-width: 320px;
	padding: 24px;
	width: 100%;
}

.content_single_enterprices .logo_single_enterprise img {
	display: block;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	width: 100%;
}

/* Fiche entreprise : rythme vertical resserré (groupes serrés, séparations nettes) */
body.single-entreprises .content_single_enterprices {
	padding-bottom: 64px !important;
	padding-top: 56px !important;
}

body.single-entreprises .content_single_enterprices .is-style-arrow-right a {
	margin-bottom: 48px;
}

body.single-entreprises .content_single_enterprices .logo_single_enterprise {
	margin-bottom: 32px;
}

body.single-entreprises .content_single_enterprices .info_enterprise {
	margin-bottom: 24px;
}

body.single-entreprises .content_single_enterprices .info_enterprise:last-child {
	margin-bottom: 0;
}

body.single-entreprises .content_single_enterprices .info_enterprise h6 {
	margin-bottom: 6px !important;
}

body.single-entreprises .content_single_enterprices .info_enterprise p {
	margin-bottom: 0;
}

body.single-entreprises .content_single_enterprices .button_arrow a {
	margin-top: 36px;
}

body.single-entreprises .gallery {
	padding-top: 64px !important;
}

/* Répertoire et marchés publics : liste resserrée */
body .carte_enterprices .container_enterprices .wrapper_filters,
body .section_map_marches .container_enterprices .wrapper_filters {
	margin-top: 64px;
}

body .carte_enterprices .container_enterprices .wrapper_entreprises,
body .section_map_marches .container_enterprices .wrapper_entreprises {
	padding-bottom: 64px;
	padding-top: 64px;
	row-gap: 40px;
}

body .carte_enterprices .container_enterprices .wrapper_entreprises a,
body .section_map_marches .container_enterprices .wrapper_entreprises a {
	padding-bottom: 40px;
}

body .carte_enterprices .container_enterprices .load-more-btn,
body .section_map_marches .container_enterprices .load-more-btn {
	margin-top: 0;
	padding-bottom: 80px;
}

/* Marchés publics : masquer le logo en double ajouté dans le contenu (les badges restent) */
.content_single_enterprices .row_wrapper_left.pixel-public-market .wp-block-image:not(:has(img[src*="MSRO"])):not(:has(img[src*="Aliments"])):not(:has(img[src*="Logo-EA"])) {
	display: none;
}

@media screen and (max-width: 991px) {
	.content_single_enterprices .logo_single_enterprise {
		height: 160px;
		max-width: 280px;
		padding: 20px;
	}

	/* Fiche entreprise : rythme vertical mobile */
	body.single-entreprises .content_single_enterprices {
		padding-bottom: 40px !important;
		padding-top: 32px !important;
	}

	body.single-entreprises .content_single_enterprices .is-style-arrow-right a {
		margin-bottom: 28px;
	}

	body.single-entreprises .content_single_enterprices .logo_single_enterprise {
		height: 140px;
		margin-bottom: 24px;
	}

	body.single-entreprises .content_single_enterprices .row_wrapper {
		gap: 28px;
	}

	body.single-entreprises .content_single_enterprices .button_arrow a {
		margin-top: 28px;
		padding: 20px 28px;
	}

	body.single-entreprises .gallery {
		padding-bottom: 40px !important;
		padding-top: 40px !important;
	}

	/* Répertoire et marchés publics : liste mobile */
	body .carte_enterprices .container_enterprices,
	body .section_map_marches .container_enterprices {
		background-color: #fff;
		padding-top: 40px;
	}

	body .carte_enterprices .container_enterprices .wrapper_filters,
	body .section_map_marches .container_enterprices .wrapper_filters {
		margin-top: 0;
	}

	body .carte_enterprices .container_enterprices .wrapper_entreprises,
	body .section_map_marches .container_enterprices .wrapper_entreprises {
		padding-bottom: 40px;
		padding-top: 40px;
		row-gap: 32px;
	}

	body .carte_enterprices .container_enterprices .wrapper_entreprises a,
	body .section_map_marches .container_enterprices .wrapper_entreprises a {
		gap: 20px;
		padding-bottom: 32px;
	}

	body .carte_enterprices .container_enterprices .wrapper_entreprises a::after,
	body .section_map_marches .container_enterprices .wrapper_entreprises a::after {
		margin-bottom: 0;
	}

	body .carte_enterprices .container_enterprices .wrapper_entreprises a figure,
	body .section_map_marches .container_enterprices .wrapper_entreprises a figure {
		aspect-ratio: 16 / 10;
	}

	body .carte_enterprices .container_enterprices .wrapper_entreprises a figure img,
	body .section_map_marches .container_enterprices .wrapper_entreprises a figure img {
		aspect-ratio: auto;
		height: 100%;
	}

	body .carte_enterprices .container_enterprices .load-more-btn,
	body .section_map_marches .container_enterprices .load-more-btn {
		padding-bottom: 48px;
	}

	/* Arrêts Croquez : vidéo au-dessus du texte sur mobile */
	.underMapHeader {
		flex-direction: column-reverse;
		flex-wrap: wrap !important;
		gap: 40px;
	}

	.underMapHeader > .wp-block-group {
		width: 100%;
	}

	.underMapHeader .wp-block-video {
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
		width: 100%;
	}

	/* Répertoire : logos entiers sur fond blanc */
	.carte_enterprices .container_enterprices .wrapper_entreprises a figure,
	.section_map_marches .container_enterprices .wrapper_entreprises a figure,
	.wp-block-acf-posts-3 .container_enterprices .wrapper_entreprises a figure {
		background-color: #fff;
		box-sizing: border-box;
		padding: 20px;
	}

	.carte_enterprices .container_enterprices .wrapper_entreprises a figure img,
	.section_map_marches .container_enterprices .wrapper_entreprises a figure img,
	.wp-block-acf-posts-3 .container_enterprices .wrapper_entreprises a figure img {
		object-fit: contain;
	}
}