/* Service B2B — scène, carte, contacts */
/* Avant/après & B2B */
.wize-b2b {
	background: var(--color-surface-alt);
}

/* Homepage pattern — cartes légères conservées */
.wize-b2b .wize-step {
	background: var(--color-white);
	border: 1px solid var(--color-mint-2);
	box-shadow: var(--shadow-card);
}

.wize-b2b .wize-step__title {
	color: var(--color-sapin);
}

.wize-b2b .wize-step__text {
	color: var(--color-text-muted);
	opacity: 1;
}

/*
 * Page Service B2B — intro alignée sur les autres pages métier
 * (même typo / padding .wize-section que Services, Gammes, Process).
 */
.wize-b2b-intro {
	background: var(--color-surface);
}

.wize-b2b-scene {
	background: var(--color-surface);
	padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 112px);
	overflow: visible;
}

.wize-b2b-scene__layout {
	display: grid;
	gap: clamp(40px, 6vw, 64px);
	align-items: start;
}

@media (min-width: 900px) {
	.wize-b2b-scene__layout {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: clamp(48px, 6vw, 88px);
		align-items: start;
	}
}

.wize-b2b-scene__media {
	position: relative;
}

@media (min-width: 900px) {
	.wize-b2b-scene__media {
		position: sticky;
		top: calc(var(--wize-header-offset, 88px) + 20px);
	}
}

.wize-b2b-scene__figure {
	position: relative;
	isolation: isolate;
	max-width: 520px;
	margin-inline: auto;
	padding: 24px 8px 32px;
}

.wize-b2b-scene__figure.wize-figwrap::before {
	inset: -16px -32px -32px 16%;
	width: auto;
	height: auto;
	background: var(--color-mint);
	opacity: 1;
}

.wize-b2b-scene__figure.wize-figwrap::after {
	top: auto;
	bottom: 8%;
	right: -20px;
	width: 14px;
	height: 44%;
	background: var(--color-sapin);
	opacity: 1;
}

.wize-b2b-scene__figure .wize-obars {
	left: -8px;
	top: 38%;
}

.wize-b2b-scene__figure .wize-figwrap__ph {
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: 0 22px 56px rgba(20, 60, 55, 0.2);
	aspect-ratio: auto;
}

.wize-b2b-scene__figure .wize-figwrap__ph::before,
.wize-b2b-scene__figure .wize-figwrap__ph::after {
	content: "";
	position: absolute;
	width: 72px;
	height: 48px;
	z-index: 3;
	pointer-events: none;
	background-image: radial-gradient(var(--color-sapin) 1.6px, transparent 1.6px);
	background-size: 18px 16px;
	opacity: 0.38;
}

.wize-b2b-scene__figure .wize-figwrap__ph::before {
	top: -32px;
	left: 4%;
}

.wize-b2b-scene__figure .wize-figwrap__ph::after {
	bottom: -36px;
	right: 8%;
}

.wize-b2b-scene__figure .wize-media--b2b-app.wp-block-image {
	position: relative;
	z-index: 2;
	margin: 0;
}

.wize-b2b-scene__figure .wize-media--b2b-app.wp-block-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	border-radius: var(--radius-xl);
	box-shadow: none;
	background: var(--color-white);
	aspect-ratio: auto;
}

.wize-b2b-scene__content .wize-sec-head h2 {
	font-size: clamp(1.85rem, 3.8vw, 2.35rem);
	margin-bottom: 10px;
}

.wize-b2b-scene__content .wize-sec-head h3 {
	margin: 0 0 clamp(28px, 4vw, 40px);
	font-family: var(--font-serif);
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: var(--font-weight-regular);
	font-style: italic;
	color: var(--color-sapin);
	line-height: 1.35;
	opacity: 0.88;
}

.wize-b2b-scene__steps {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 4px;
}

.wize-b2b-scene .wize-step {
	display: grid;
	grid-template-columns: clamp(3rem, 5vw, 4.25rem) minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: clamp(16px, 2.5vw, 24px);
	row-gap: 8px;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: clamp(18px, 2.5vw, 26px) 0;
}

.wize-b2b-scene .wize-step + .wize-step {
	border-top: 1px solid var(--color-mint-2);
}

.wize-b2b-scene .wize-step__num {
	grid-column: 1;
	grid-row: 1 / 3;
	align-self: start;
	padding-top: 2px;
	display: block;
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	font-family: var(--font-serif);
	font-size: clamp(2rem, 3.8vw, 2.85rem);
	font-weight: var(--font-weight-regular);
	line-height: 1;
	color: var(--color-orange-1);
	margin: 0;
}

.wize-b2b-scene .wize-step__title {
	grid-column: 2;
	grid-row: 1;
	font-family: var(--font-serif);
	font-size: clamp(1.12rem, 1.7vw, 1.28rem);
	font-weight: var(--font-weight-semibold);
	color: var(--color-sapin);
	margin: 0;
	line-height: 1.22;
}

.wize-b2b-scene .wize-step__text {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	font-size: var(--font-size-body-sm);
	font-weight: var(--font-weight-light);
	line-height: 1.6;
	color: var(--color-text-muted);
	opacity: 1;
	max-width: 36em;
}

.wize-b2b-map {
	background: var(--color-surface);
	padding-block: clamp(56px, 8vw, 104px);
	overflow-x: clip;
}

.wize-b2b-map .wize-container.wize-b2b-map__layout,
.wize-b2b-map__layout {
	position: relative;
	display: grid;
	gap: clamp(40px, 6vw, 72px);
	align-items: start;
}

@media (min-width: 900px) {
	.wize-b2b-map .wize-container.wize-b2b-map__layout,
	.wize-b2b-map__layout {
		grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
		gap: clamp(40px, 5vw, 64px);
		align-items: center;
	}
}

@media (min-width: 1200px) {
	.wize-b2b-map .wize-container.wize-b2b-map__layout,
	.wize-b2b-map__layout {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
	}
}

.wize-b2b-map__visual {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.wize-b2b-map__canvas {
	position: relative;
	isolation: isolate;
	max-width: none;
	margin-inline: 0;
	width: 100%;
	padding: 16px clamp(16px, 2.5vw, 32px) 20px;
	overflow: visible;
}

.wize-b2b-map__figure {
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
}

/* Décor mint derrière la carte uniquement (pas sous labels / panneau) */
.wize-b2b-map__figure.wize-figwrap::before {
	inset: 8px -20px 28% 10%;
	background: var(--color-mint);
	z-index: 0;
}

.wize-b2b-map__figure.wize-figwrap::after {
	top: auto;
	bottom: 14%;
	right: -14px;
	width: 12px;
	height: 38%;
	background: var(--color-sapin);
	z-index: 0;
}

.wize-b2b-map__figure.wize-figwrap .wize-figwrap__ph {
	position: relative;
	z-index: 1;
	box-shadow: 0 20px 52px rgba(20, 60, 55, 0.16);
	aspect-ratio: auto;
	background: var(--color-white);
	overflow: visible !important;
	padding: 18px;
	box-sizing: border-box;
	border-radius: var(--radius-lg);
}

.wize-b2b-map__visual .wize-media--b2b-map.wp-block-image {
	margin: 0 !important;
	height: auto;
}

.wize-b2b-map__figure,
.wize-b2b-map__figure .wize-figwrap__ph {
	height: auto;
	max-height: none;
}

/* Carte entière — ratio natif forcé (évite l’étirement sizes=auto / crop 4:3) */
.wize-b2b-map__figure .wize-figwrap__ph .wize-media.wp-block-image img,
.wize-b2b-map__figure .wize-figwrap__ph .wize-media--b2b-map.wp-block-image img,
.wize-b2b-map__visual .wize-media--b2b-map.wp-block-image img {
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	max-height: none !important;
	display: block;
	aspect-ratio: 968 / 956;
	object-fit: contain;
	object-position: center top;
	border-radius: var(--radius-md);
	background: var(--color-white);
}

/* Pins calés sur le cadre photo (figwrap__ph), pas le canvas paddé */
.wize-b2b-map__figure .wize-figwrap__ph {
	position: relative;
}

.wize-b2b-map__figure .wize-figwrap__ph.is-layout-flow > * {
	margin-block: 0;
}


.wize-b2b-map__hotspots {
	position: absolute;
	inset: 18px;
	z-index: 4;
	pointer-events: none;
}

.wize-b2b-map__marker {
	position: absolute;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
	transform: translate(-50%, -50%);
	z-index: 5;
}

.wize-b2b-map__marker:hover,
.wize-b2b-map__marker:focus-visible,
.wize-b2b-map__marker.is-active {
	z-index: 9;
}

.wize-b2b-map__marker-dot {
	display: block;
	width: 16px;
	height: 16px;
	margin: 1px;
	border-radius: 50%;
	background: var(--color-orange-1);
	border: 2px solid var(--color-white);
	box-shadow: 0 2px 10px rgba(20, 60, 55, 0.28);
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.wize-b2b-map__marker-dot::after {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	border: 1.5px solid var(--color-orange-1);
	opacity: 0.35;
	animation: wize-b2b-ping 2.2s ease-out infinite;
}

.wize-b2b-map__marker:hover .wize-b2b-map__marker-dot,
.wize-b2b-map__marker:focus-visible .wize-b2b-map__marker-dot,
.wize-b2b-map__marker.is-active .wize-b2b-map__marker-dot {
	background: var(--color-sapin);
	transform: scale(1.15);
	box-shadow: 0 4px 16px rgba(20, 60, 55, 0.35);
}

.wize-b2b-map__marker:focus-visible {
	outline: none;
}

.wize-b2b-map__marker:focus-visible .wize-b2b-map__marker-dot {
	outline: 2px solid var(--color-focus);
	outline-offset: 3px;
}

.wize-b2b-map__marker.is-active .wize-b2b-map__marker-dot::after {
	border-color: var(--color-sapin);
}

/* Label flottant à côté du pin — largeur au contenu, carte s’allonge autour */
.wize-b2b-map__marker-label {
	position: absolute;
	left: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(-4px);
	width: max-content;
	max-width: none;
	min-width: 0;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	background: var(--color-white);
	border: 1px solid var(--color-mint-2);
	border-left: 3px solid var(--color-orange-1);
	box-shadow: 0 10px 28px rgba(20, 60, 55, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	z-index: 8;
	text-align: left;
	white-space: normal;
}

.wize-b2b-map__marker-label::after {
	content: "";
	position: absolute;
	right: 100%;
	top: 50%;
	margin-top: -6px;
	border: 6px solid transparent;
	border-right-color: var(--color-white);
}

.wize-b2b-map__marker:hover .wize-b2b-map__marker-label,
.wize-b2b-map__marker:focus-visible .wize-b2b-map__marker-label,
.wize-b2b-map__marker.is-active .wize-b2b-map__marker-label {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
	pointer-events: auto;
}

/* Pins à droite : label vers la gauche */
.wize-b2b-map__marker--rhone-alpes .wize-b2b-map__marker-label,
.wize-b2b-map__marker--ile-de-france .wize-b2b-map__marker-label {
	left: auto;
	right: calc(100% + 12px);
	transform: translateY(-50%) translateX(4px);
}

.wize-b2b-map__marker--rhone-alpes .wize-b2b-map__marker-label::after,
.wize-b2b-map__marker--ile-de-france .wize-b2b-map__marker-label::after {
	right: auto;
	left: 100%;
	border-right-color: transparent;
	border-left-color: var(--color-white);
}

.wize-b2b-map__marker--rhone-alpes:hover .wize-b2b-map__marker-label,
.wize-b2b-map__marker--rhone-alpes:focus-visible .wize-b2b-map__marker-label,
.wize-b2b-map__marker--rhone-alpes.is-active .wize-b2b-map__marker-label,
.wize-b2b-map__marker--ile-de-france:hover .wize-b2b-map__marker-label,
.wize-b2b-map__marker--ile-de-france:focus-visible .wize-b2b-map__marker-label,
.wize-b2b-map__marker--ile-de-france.is-active .wize-b2b-map__marker-label {
	transform: translateY(-50%) translateX(0);
}

.wize-b2b-map__marker-label-title,
.wize-b2b-map__marker-label-status,
.wize-b2b-map__marker-label-role,
.wize-b2b-map__marker-label-name,
.wize-b2b-map__marker-label-email,
.wize-b2b-map__marker-label-phone {
	display: block;
}

.wize-b2b-map__marker-label-title {
	font-family: var(--font-sans);
	font-size: 0.92rem;
	font-weight: var(--font-weight-semibold);
	color: var(--color-orange-1);
	line-height: 1.25;
	white-space: nowrap;
}

.wize-b2b-map__marker-label-status,
.wize-b2b-map__marker-label-role {
	display: none;
}

.wize-b2b-map__marker-label-name {
	margin-top: 4px;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: var(--font-weight-semibold);
	line-height: 1.35;
	color: var(--color-ink);
	white-space: nowrap;
}

.wize-b2b-map__marker-label-email {
	margin-top: 4px;
	font-family: var(--font-sans);
	font-size: 12px;
	line-height: 1.35;
	color: var(--color-text-muted);
	white-space: nowrap;
}

.wize-b2b-map__marker-label-phone {
	margin-top: 4px;
	font-family: var(--font-sans);
	font-size: 12px;
	line-height: 1.35;
	color: var(--color-text-muted);
	white-space: nowrap;
	word-break: keep-all;
}

/*
 * Positions = centroïdes des régions orange (image 968×956).
 * Carte décalée à droite (légende à gauche) — % relatifs au cadre image.
 * Nord≈Hauts-de-France, Rhône-Alpes≈Auvergne-Rhône-Alpes.
 */
.wize-b2b-map__marker--nord {
	top: 17%;
	left: 63%;
}

.wize-b2b-map__marker--normandie {
	top: 24.5%;
	left: 47.5%;
}

.wize-b2b-map__marker--ile-de-france {
	top: 30%;
	left: 62%;
}

.wize-b2b-map__marker--rhone-alpes {
	top: 56%;
	left: 74%;
}

@keyframes wize-b2b-ping {
	0% {
		transform: scale(0.6);
		opacity: 0.5;
	}
	70% {
		transform: scale(1.55);
		opacity: 0;
	}
	100% {
		transform: scale(1.55);
		opacity: 0;
	}
}

/* Colonne droite — couverture + checklist */
.wize-b2b-map__aside {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 0;
}

.wize-b2b-map__aside .wize-sec-head {
	margin-bottom: 28px;
	max-width: 34em;
}

.wize-b2b-map__aside .wize-sec-head h2 {
	font-size: clamp(1.85rem, 3.8vw, 2.45rem);
	margin-bottom: 16px;
	color: var(--color-sapin);
}

.wize-b2b-map__aside .wize-sec-head p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: clamp(1rem, 1.4vw, 1.0625rem);
	line-height: 1.65;
}

.wize-b2b-map__aside .wize-checklist {
	margin: 0;
	max-width: 28em;
}

.wize-b2b-map__aside .wize-checklist li {
	font-family: var(--font-sans);
	font-size: clamp(0.95rem, 1.3vw, 1.02rem);
	color: var(--color-sapin);
	margin-bottom: 14px;
	line-height: 1.4;
}

.wize-b2b-map__aside .wize-checklist li:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.wize-b2b-map__marker,
	.wize-b2b-map__marker-dot,
	.wize-b2b-map__marker-label {
		transition: none;
	}

	.wize-b2b-map__marker-dot::after {
		animation: none;
		display: none;
	}

	.wize-b2b-scene__figure .wize-figwrap__ph::before,
	.wize-b2b-scene__figure .wize-figwrap__ph::after {
		display: none;
	}
}

/* Source contacts — lu par JS, masqué visuellement */
.wize-b2b-contacts--source {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wize-b2b-contacts--source .wize-b2b-contact {
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	box-shadow: none;
}

.wize-b2b-contact[hidden] {
	display: none;
}

.wize-b2b-contact__fields:empty,
.wize-b2b-contact__role:empty,
.wize-b2b-contact__name:empty,
.wize-b2b-contact__email:empty,
.wize-b2b-contact__phone:empty {
	display: none;
}

.wize-b2b-contact__fields:not(:has(:not(:empty))) {
	display: none;
}

@media (max-width: 389px) {
	.wize-b2b-map__layout,
	.wize-b2b-scene__layout {
		min-width: 0;
	}

	.wize-b2b-map__visual,
	.wize-b2b-scene__media {
		min-width: 0;
	}

	.wize-b2b-map__canvas {
		min-width: 0;
		overflow: visible;
	}

}

