/* =========================================================
   Krea3 Carte Perso - popup Leaflet harmonisee
   Fichier autonome a copier dans assets/css/krea3-carte-perso.css
   ========================================================= */

:root {
	--krea3-carte-perso-popup-bg: #fff;
	--krea3-carte-perso-title: var(--couleur-principale, #086868);
	--krea3-carte-perso-text: #555;
	--krea3-carte-perso-border: #d8e0e0;
	--krea3-carte-perso-shadow: rgba(0, 0, 0, 0.18);
	--krea3-carte-perso-btn: var(--couleur-principale, #086868);
	--krea3-carte-perso-btn-hover: var(--couleur-secondaire, #0b8a8a);
}

.leaflet-popup.krea3-leaflet-popup-carte-perso {
	max-width: min(540px, calc(100vw - 2rem)) !important;
}

.leaflet-popup.krea3-leaflet-popup-carte-perso .leaflet-popup-content-wrapper {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.leaflet-popup.krea3-leaflet-popup-carte-perso .leaflet-popup-content {
	box-sizing: border-box !important;
	margin: 0 !important;
	max-width: min(540px, calc(100vw - 2rem)) !important;
	padding: 0 !important;
	width: min(540px, calc(100vw - 2rem)) !important;
}

.leaflet-popup.krea3-leaflet-popup-carte-perso .leaflet-popup-tip {
	background: var(--krea3-carte-perso-popup-bg) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}

.leaflet-popup.krea3-leaflet-popup-carte-perso .leaflet-popup-close-button {
	color: #333 !important;
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	height: 2.2rem !important;
	line-height: 2.2rem !important;
	right: 0.65rem !important;
	top: 0.55rem !important;
	width: 2.2rem !important;
	z-index: 5 !important;
}

.krea3-popup-carte-perso {
	background: var(--krea3-carte-perso-popup-bg) !important;
	border: 1px solid var(--krea3-carte-perso-border) !important;
	border-radius: 22px !important;
	box-shadow: 0 22px 55px var(--krea3-carte-perso-shadow) !important;
	box-sizing: border-box !important;
	color: var(--krea3-carte-perso-text) !important;
	font-family: var(--police-secondaire, "Inter", "Segoe UI", Roboto, Arial, sans-serif) !important;
	max-width: 540px !important;
	padding: 1.5rem 1.7rem !important;
	width: 100% !important;
}

.krea3-popup-carte-perso .popup-general-wrapper {
	align-items: flex-start !important;
	display: flex !important;
	gap: 1.35rem !important;
	width: 100% !important;
}

.krea3-popup-carte-perso .popup-image,
.krea3-popup-carte-perso .krea3-popup-image {
	flex: 0 0 92px !important;
	margin: 0 !important;
}

.krea3-popup-carte-perso .popup-image img,
.krea3-popup-carte-perso .krea3-popup-image img {
	aspect-ratio: 1 / 1 !important;
	background: #fff !important;
	border-radius: 16px !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14) !important;
	display: block !important;
	height: auto !important;
	max-height: none !important;
	max-width: none !important;
	object-fit: contain !important;
	padding: 0.4rem !important;
	width: 92px !important;
}

.krea3-popup-carte-perso .popup-content,
.krea3-popup-carte-perso .krea3-popup-info {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	padding-right: 1.9rem !important;
}

.krea3-popup-carte-perso .popup-title,
.krea3-popup-carte-perso h3,
.krea3-popup-carte-perso h4 {
	color: var(--krea3-carte-perso-title) !important;
	font-family: var(--police-secondaire2, var(--police-secondaire, "Inter", Arial, sans-serif)) !important;
	font-size: clamp(1.25rem, 1.7vw, 1.55rem) !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	line-height: 1.2 !important;
	margin: 0 0 1.1rem !important;
}

.krea3-popup-carte-perso .popup-description,
.krea3-popup-carte-perso .krea3-popup-description {
	color: var(--krea3-carte-perso-text) !important;
	font-size: 0.94rem !important;
	line-height: 1.55 !important;
	margin: 0 0 1rem !important;
}

.krea3-popup-carte-perso .popup-address,
.krea3-popup-carte-perso .krea3-popup-adresse {
	align-items: flex-start !important;
	color: var(--krea3-carte-perso-text) !important;
	display: flex !important;
	font-size: 0.92rem !important;
	gap: 0.45rem !important;
	line-height: 1.45 !important;
	margin: 0 0 1.25rem !important;
}

.krea3-popup-carte-perso .popup-address i,
.krea3-popup-carte-perso .popup-address svg,
.krea3-popup-carte-perso .krea3-popup-adresse i,
.krea3-popup-carte-perso .krea3-popup-adresse svg {
	color: var(--krea3-carte-perso-title) !important;
	flex: 0 0 auto !important;
	margin-top: 0.18rem !important;
}

.krea3-popup-carte-perso .popup-buttons {
	align-items: center !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0.75rem !important;
	margin: 0 !important;
}

.krea3-popup-carte-perso .popup-btn,
.krea3-popup-carte-perso .krea3-popup-link {
	align-items: center !important;
	background: var(--krea3-carte-perso-btn) !important;
	border: 2px solid var(--krea3-carte-perso-btn) !important;
	border-radius: 999px !important;
	color: #fff !important;
	display: inline-flex !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	justify-content: center !important;
	line-height: 1 !important;
	min-height: 2.45rem !important;
	padding: 0 1.2rem !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
	white-space: nowrap !important;
}

.krea3-popup-carte-perso .popup-btn:hover,
.krea3-popup-carte-perso .popup-btn:focus,
.krea3-popup-carte-perso .krea3-popup-link:hover,
.krea3-popup-carte-perso .krea3-popup-link:focus {
	background: var(--krea3-carte-perso-btn-hover) !important;
	border-color: var(--krea3-carte-perso-btn-hover) !important;
	color: #fff !important;
	text-decoration: none !important;
}

@media screen and (max-width: 640px) {
	.leaflet-popup.krea3-leaflet-popup-carte-perso,
	.leaflet-popup.krea3-leaflet-popup-carte-perso .leaflet-popup-content {
		max-width: min(340px, calc(100vw - 1.5rem)) !important;
		width: min(340px, calc(100vw - 1.5rem)) !important;
	}

	.krea3-popup-carte-perso {
		border-radius: 18px !important;
		padding: 1.15rem !important;
	}

	.krea3-popup-carte-perso .popup-general-wrapper {
		align-items: center !important;
		flex-direction: column !important;
		gap: 1rem !important;
		text-align: center !important;
	}

	.krea3-popup-carte-perso .popup-image,
	.krea3-popup-carte-perso .krea3-popup-image {
		flex-basis: auto !important;
	}

	.krea3-popup-carte-perso .popup-content,
	.krea3-popup-carte-perso .krea3-popup-info {
		padding-right: 0 !important;
		width: 100% !important;
	}

	.krea3-popup-carte-perso .popup-address,
	.krea3-popup-carte-perso .krea3-popup-adresse,
	.krea3-popup-carte-perso .popup-buttons {
		justify-content: center !important;
	}
}
