*, *:before, *:after {
	box-sizing: border-box;
}

.clear{
	clear: both;
}

#current_page_id, #content_pop_in{
	display: none;
	visibility: hidden;
}

#post-map .head-title {
  padding-left: 15px;
  margin-bottom: 25px;
  line-height: 1;
  border-left: 10px solid #54b5e3;
}
#post-map .head-title h1 {
  font-size: 24px;
  font-size: 2.4rem;
  margin-bottom: 5px;
}
#post-map .head-title .breadcrumbs a {
  padding-right: 18px;
  margin-right: 8px;
  position: relative;
  color: #9d9d9d;
  white-space: nowrap;
}
#post-map .head-title .breadcrumbs a:after {
  content: "";
  padding: 9px 0 0 6px;
  width: 0;
  height: 0;
  display: block;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -3px;
  background: url(/wp-content/themes/siryae/img/sprite.png) left -211px no-repeat;
}
#post-map .head-title .breadcrumbs .category {
  display: none;
}
#post-map #map {
  display: block;
  max-width: 100%;
  border: 0;
  position:relative;
  z-index:1;

  font-family: Helvetica, Arial, sans-serif;
  font-size: 93.75%;
}

.color1 #post-map .head-title{border-color: #54b5e3;}
.color1 #post-map .head-title .breadcrumbs{color:#54b5e3;}
/*.color1 #post-map ul li{list-style-type:none; list-style-image:url("/wp-content/themes/siryae/img/goute_color1.png");}*/
.color1 #post-map ul#entries li{list-style-image:none;}
.color1 #post-map #quizz ul li, .color1 #post-map #quizz ol li{list-style-image:none;}
.color1 #post-map a, .color1 #post-map a span{color:#54b5e3; font-weight:bold;}
.color1 #post-map a.switch{color:white!important;}
.color1 #post-map .desc a{color:white!important;}

.color2 #post-map .head-title{border-color: #f29400;}
.color2 #post-map .head-title .breadcrumbs{color:#f29400;}
/*.color2 #post-map ul li{list-style-type:none; list-style-image:url("/wp-content/themes/siryae/img/goute_color2.png");}*/
.color2 #post-map ul#entries li{list-style-image:none;}
.color2 #post-map #quizz ul li, .color2 #post-map #quizz ol li{list-style-image:none;}
.color2 #post-map .breadcrumbs a, .color2 #post-map .breadcrumbs a span{color:#f29400!important; font-weight:bold;}
.color2 #post-map .breadcrumbs a.switch{color:white!important;}
.color2 #post-map .desc a{color:white!important;}

.color3 #post-map .head-title{border-color:#97bf0d;}
.color3 #post-map .head-title .breadcrumbs{color:#97bf0d;}
/*.color3 #post-map ul li{list-style-type:none; list-style-image:url("/wp-content/themes/siryae/img/goute_color3.png");}*/
.color3 #post-map ul#entries li{list-style-image:none;}
.color3 #post-map #quizz ul li, .color3 #post-map #quizz ol li{list-style-image:none;}
.color3 #post-map a, .color3 #post-map a span{color:#97bf0d!important; font-weight:bold;}
.color3 #post-map a.switch{color:white!important;}
.color3 #post-map .desc a{color:white!important;}

.color4 #post-map .head-title{border-color:#8a5b9d;}
.color4 #post-map .head-title .breadcrumbs{color:#8a5b9d;}
/*.color4 #post-map ul li{list-style-type:none; list-style-image:url("/wp-content/themes/siryae/img/goute_color4.png");}*/
.color4 #post-map ul#entries li{list-style-image:none;}
.color4 #post-map #quizz ul li, .color4 #post-map #quizz ol li{list-style-image:none;}
.color4 #post-map a, .color4 #post-map a span{color:#8a5b9d; font-weight:bold;}
.color4 #post-map a.switch{color:white!important;}
.color4 #post-map .desc a{color:white!important;}

.color5 #post-map .head-title{border-color:#ea6645;}
.color5 #post-map .head-title .breadcrumbs{color:#ea6645;}
/*.color5 #post-map ul li{list-style-type:none; list-style-image:url("/wp-content/themes/siryae/img/goute_color5.png");}*/
.color5 #post-map ul#entries li{list-style-image:none;}
.color5 #post-map #quizz ul li, .color5 #post-map #quizz ol li{list-style-image:none;}
.color5 #post-map a, .color5 #post-map a span{color:#ea6645!important; font-weight:bold;}
.color5 #post-map a.switch{color:white!important;}
.color5 #post-map .desc a{color:white!important;}

.color6 #post-map .head-title{border-color:#ea69a0;}
.color6 #post-map .head-title .breadcrumbs{color:#ea69a0;}
.color6 #post-map ul li{list-style-type:none; list-style-image:url("/wp-content/themes/siryae/img/goute_color6.png");}
.color6 #post-map ul#entries li{list-style-image:none;}
.color6 #post-map #quizz ul li, .color6 #post-map #quizz ol li{list-style-image:none;}
.color6 #post-map a, .color6 #post-map a span{color:#ea69a0!important; font-weight:bold;}
.color6 #post-map a.switch{color:white!important;}
.color6 #post-map .desc a{color:white!important;}

#post-map #map #legende-map ul li{list-style-type: none; list-style-image: none; padding: 1px 0;}
#post-map #map #legende-map ul{padding-top: 10px;}

#map {
	background-color: #c9b995;
}


.heaven-on-earth {
	fill: yellow;
}

/*.infobox {
	width: 651px;
	height: auto;
	padding-top: 10px;
	padding-right: 50px;
	padding-bottom: 10px;
	padding-left: 10px;
	position: absolute;
	top: -9999px;
	left: -9999px;
	border: solid 2px #8fd7e4;
	background-color: #8fd7e4;
	font-family: sans-serif;
	font-size: 24px;
	font-weight: bold;
	box-shadow:3px 3px 4px #dfdfdf;
	
}

.infobox-corner {
	width: 0;
	height: 0;
	border-left: 33px solid transparent;
	border-top: 33px solid #5caebd;
	clear: both;
	position: absolute;
	margin: 12px 0 0 -12px;

}

.infobox__close {
	width: 22px;
	height: 24px;
	text-align: center;
	font-size: 0.8em;
	line-height: 1.1em;
	color: #a6a6a6;
	background-color: #fff;
	position: absolute;
	top: 4px;
	right: 4px;
	text-decoration: none;
	display: block;
	-webkit-border-radius: 10px;
	   -moz-border-radius: 10px;
			
	border-radius: 10px;
	border: solid 1px #fff;
	}*/
	
.contentbox-left {
	width: auto;
	height: auto;
	padding-top: 10px;
	padding-right: 50px;
	padding-bottom: 10px;
	padding-left: 10px;
	position: absolute;
	top: -9999px;
	left: -9999px;
	background-color: #ffffff;
	font-family: sans-serif;
	font-size: 24px;
	font-weight: bold;
	box-shadow:3px 3px 4px #dfdfdf;
}

.dots {
	stroke-dasharray:2,5;
}

/*style de la tooltip*/
#map{
	position:relative;
	width: 880px; 
	height: 680px;
}

/* ── Zoom ──────────────────────────────────────────────────── */
#zoom-section {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 10;
}

#zoom-section a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	font-size: 22px;
	line-height: 1;
	font-weight: 300;
	color: #444;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background 0.15s, box-shadow 0.15s;
	user-select: none;
}

#zoom-section a:hover {
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	color: #54b5e3;
}

/* ── Légende ────────────────────────────────────────────────── */
#legende-map {
	position: absolute;
	bottom: 14px;
	left: 14px;
	background: rgba(255, 255, 255, 0.97);
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
	width: 186px;
	overflow: hidden;
	z-index: 10;
}

.legende-toggle-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 9px 12px;
	background: none;
	border: none;
	border-bottom: 1px solid #ececec;
	cursor: pointer;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #555;
	transition: background 0.15s;
}

.legende-toggle-btn:hover {
	background: #f7f7f7;
}

.legende-toggle-icon {
	transition: transform 0.2s;
	flex-shrink: 0;
}

#legende-map.is-collapsed .legende-toggle-icon {
	transform: rotate(-90deg);
}

#legende-content {
	overflow: hidden;
	transition: max-height 0.25s ease;
	max-height: 300px;
}

#legende-map.is-collapsed #legende-content {
	max-height: 0;
}

#legende-map ul {
	list-style: none;
	margin: 0;
	padding: 6px 10px;
	border-bottom: 1px solid #f0f0f0;
}

#legende-map ul:last-child {
	border-bottom: none;
}

#legende-map ul li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: #444;
	line-height: 1.4;
	padding: 3px 0;
}

#legende-map ul li img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

/* ── Fade overlay ───────────────────────────────────────────── */
#fade {
	display: none;
	background: rgba(0, 0, 0, 0.35);
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 99990;
}

/* ── Popups ─────────────────────────────────────────────────── */
#popup_commune,
#popup_edifice {
	position: fixed;
	top: 50%;
	left: 50%;
	right: auto;
	bottom: auto;
	transform: translate(-50%, -50%);
	z-index: 100000;
	max-height: calc(100dvh - 32px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.popup_block {
	display: none;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size: 13px;
	opacity: 1 !important;
	width: min(680px, calc(100vw - 32px)) !important;
	max-width: min(680px, calc(100vw - 32px)) !important;
}

#popup_edifice.popup_block {
	width: min(640px, calc(100vw - 32px)) !important;
	max-width: min(640px, calc(100vw - 32px)) !important;
}

.infobox {
	display: block;
	width: auto !important;
	margin: 0 !important;
	padding: 18px 52px 18px 20px;
	background: linear-gradient(135deg, #54b5e3 0%, #2a9dd6 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	border: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
	border-radius: 0 !important;
	letter-spacing: 0.01em;
	line-height: 1.3;
}

.infobox-corner {
	display: none;
}

a.close_popup {
	position: absolute;
	top: 13px;
	right: 13px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	display: flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background 0.15s;
	z-index: 10;
	cursor: pointer;
}

a.close_popup:hover {
	background: rgba(255, 255, 255, 0.4);
}

a.close_popup img.btn_close {
	display: none !important;
}

a.close_popup::after {
	content: '\00D7';
	color: #fff;
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	margin-top: -1px;
}

/* ── Popup commune layout ───────────────────────────────────── */
#bloc-left {
	float: left;
	width: 48%;
	padding: 16px 16px 8px;
	box-sizing: border-box;
}

#bloc-left .part-top {
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 4px;
}

#bloc-left ul {
	margin: 0;
	padding: 8px 0 0;
}

#bloc-right {
	float: left;
	width: 52%;
	min-height: 180px;
	border-left: 1px solid #f0f0f0;
	padding: 16px;
	box-sizing: border-box;
}

#bloc-right .part-top {
	padding: 0;
}

#bloc-right h4 {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #999;
}

#bloc-bottom {
	clear: both;
	font-size: 13px;
	color: #555;
	border-top: 1px solid #f0f0f0;
	padding: 14px 18px 18px;
	line-height: 1.6;
}

#commune-title {
	font-size: 16px;
}

/* ── Popup édifice layout ───────────────────────────────────── */
#popup_edifice #bloc-left {
	width: 45%;
	padding: 16px;
	text-align: center;
	border-right: 1px solid #f0f0f0;
	border-left: none;
}

#popup_edifice #edifice-lienImage {
	width: 100%;
	text-align: center;
}

#popup_edifice #edifice-lienImage img {
	max-width: 100%;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#popup_edifice #bloc-left img {
	margin: 0 auto;
	display: block;
}

#popup_edifice #bloc-right {
	width: 55%;
	border-left: none;
	padding: 16px 18px;
}

#popup_edifice #bloc-right .navlist {
	padding-bottom: 0;
	margin: 0;
}

#popup_edifice .feature-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 3px 8px;
	margin: 0;
	padding: 10px 0 10px 30px;
	min-height: 0;
	background-image: url("/wp-content/themes/siryae/img/localisation.jpg");
	background-repeat: no-repeat;
	background-size: 18px;
	background-position: 0 11px;
	border-bottom: 1px solid #eef0f2;
	color: #333;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 400;
}

#popup_edifice .feature-row:last-child {
	border-bottom: none;
}

#popup_edifice .feature-row-stacked {
	flex-direction: column;
	gap: 6px;
}

#popup_edifice .feature-label {
	color: #6b7280;
	font-weight: 400;
	white-space: nowrap;
}

#popup_edifice .feature-value {
	color: #1f2937;
	font-weight: 700;
}

#popup_edifice .feature-list,
#popup_edifice .feature-value ul {
	list-style: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

#popup_edifice .feature-list li,
#popup_edifice .feature-value li {
	display: block;
	position: relative;
	margin: 0;
	padding: 3px 0 3px 16px;
	min-height: 0;
	background: none;
	color: #1f2937;
	font-weight: 600;
	line-height: 1.4;
}

#popup_edifice .feature-list li::before,
#popup_edifice .feature-value li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.65em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #54b5e3;
}

#popup_edifice .bloc-bottom {
	padding: 12px 18px;
}

#popup_edifice .bloc-bottom ul {
	padding: 0;
	margin: 0;
}

#popup_edifice .bloc-bottom li {
	list-style-type: none;
}

#popup_edifice .bloc-bottom li a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #54b5e3;
	font-weight: 600;
	font-size: 13px;
	padding: 6px 14px;
	border: 1.5px solid #54b5e3;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
}

#popup_edifice .bloc-bottom li a:hover {
	background: #54b5e3;
	color: #fff;
}

/* ── Listes popup ───────────────────────────────────────────── */
.navlist {
	list-style: none;
	padding: 0;
	margin: 0;
}

ul li {
	font-size: 13px;
}

.navlist li {
	line-height: 1.4;
	padding: 5px 0 5px 40px;
	background-repeat: no-repeat;
	background-size: 22px;
	background-position: 0 center;
	color: #333;
	min-height: 32px;
	display: flex;
	align-items: center;
}

li.hab {
	background-image: url("/wp-content/themes/siryae/img/pic-hab.jpg");
	font-weight: 700;
}

li.branch {
	background-image: url("/wp-content/themes/siryae/img/raccord.jpg");
	font-weight: 700;
}

li.volume {
	background-image: url("/wp-content/themes/siryae/img/volume.jpg");
	font-weight: 700;
}

li.reseau {
	background-image: url("/wp-content/themes/siryae/img/distance.jpg");
	font-weight: 700;
}

li .light {
	font-weight: 400 !important;
}

li.puces {
	padding: 4px 0 4px 40px;
	background-image: url("/wp-content/themes/siryae/img/localisation.jpg");
	background-repeat: no-repeat;
	background-size: 20px;
	background-position: 0 center;
	min-height: 34px;
	height: auto;
	line-height: 1.4;
	display: block;
}

.graisse {
	font-weight: 700;
}

li.lien {
	background-image: url("/wp-content/themes/siryae/img/lnk.jpg");
	background-repeat: no-repeat;
	background-size: 16px;
	background-position: 0 center;
	padding-left: 26px;
	height: auto;
	min-height: 28px;
}

li.lien a {
	color: #54b5e3;
	text-decoration: none;
	font-weight: 600;
}

li.lien a:hover {
	text-decoration: underline;
}

#edifice-treat ul {
	margin-bottom: 8px;
	padding: 0;
}

#edifice-treat ul li {
	margin-bottom: 4px;
	padding-left: 14px;
}

html {
	font-family: sans-serif;
}

/* ── Légende toggle JS ──────────────────────────────────────── */

.canvas .wrapper.outer > .background {
    fill: #000000;
}
.canvas .wrapper.inner > .background {
    fill: #CCCCCC;
    cursor: move;
}
.canvas .background {
    fill: #F6F6F6;
    stroke: #333333;
    cursor: move;
}
.canvas .panCanvas {
    cursor: move;
}

.canvas .minimap .frame .background {
    stroke: #111111;
    stroke-width: 4px;
    fill-opacity: 0.4;
    fill: #000000;
    fill: url(#minimapGradient);
    filter: url(#minimapDropShadow);
    cursor: move;
}

#map.interactive-map--svg-mode {
	overflow: hidden;
}

#map .interactive-map-viewport {
	display: block;
	width: 100%;
	height: 680px;
	overflow: hidden;
	cursor: default;
	touch-action: none;
	user-select: none;
}

#map.interactive-map--dragging .interactive-map-viewport,
#map.interactive-map--dragging .interactive-map-viewport svg,
#map .interactive-map-viewport.interactive-map-viewport--drag,
#map .interactive-map-viewport.interactive-map-viewport--drag svg {
	cursor: move !important;
}

#map .interactive-map-viewport.interactive-map-viewport--zone-hover,
#map .interactive-map-viewport.interactive-map-viewport--zone-hover svg,
#map .interactive-map-viewport svg .interactive-map-zone,
#map .interactive-map-viewport svg .interactive-map-zone * {
	cursor: pointer !important;
}

#map .interactive-map-viewport svg text,
#map .interactive-map-viewport svg tspan,
#map .interactive-map-viewport svg textPath {
	pointer-events: none;
}

#map .interactive-map-viewport svg {
	display: block;
	width: 100%;
	height: 100%;
}

#map .interactive-map-zone--commune,
#map .interactive-map-zone--commune path,
#map .interactive-map-zone--commune polygon,
#map .interactive-map-zone--commune rect {
	cursor: pointer !important;
}

#map .interactive-map-zone--commune path,
#map .interactive-map-zone--commune polygon,
#map .interactive-map-zone--commune rect {
	transition: fill 0.15s ease, opacity 0.15s ease;
}

#map:not(.interactive-map--dragging) .interactive-map-zone--commune:hover path,
#map:not(.interactive-map--dragging) .interactive-map-zone--commune:hover polygon,
#map:not(.interactive-map--dragging) .interactive-map-zone--commune:hover rect,
#map:not(.interactive-map--dragging) .interactive-map-zone--commune.interactive-map-zone--hover path,
#map:not(.interactive-map--dragging) .interactive-map-zone--commune.interactive-map-zone--hover polygon,
#map:not(.interactive-map--dragging) .interactive-map-zone--commune.interactive-map-zone--hover rect,
#map:not(.interactive-map--dragging) .interactive-map-zone--commune.interactive-map-zone--hover,
#map:not(.interactive-map--dragging) path.interactive-map-zone--commune.interactive-map-zone--hover,
#map:not(.interactive-map--dragging) polygon.interactive-map-zone--commune.interactive-map-zone--hover,
#map:not(.interactive-map--dragging) rect.interactive-map-zone--commune.interactive-map-zone--hover {
	fill: #e5f0d8 !important;
}

#map .interactive-map-zone--edifice,
#map .interactive-map-zone--edifice path,
#map .interactive-map-zone--edifice polygon,
#map .interactive-map-zone--edifice rect,
#map .interactive-map-zone--edifice circle {
	cursor: pointer !important;
}

#map .interactive-map-error {
	padding: 20px;
	margin: 0;
	text-align: center;
}

body.interactive-map-popin-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	#popup_commune,
	#popup_edifice {
		max-height: calc(100dvh - 24px);
	}

	.popup_block {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100dvh - 24px);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	#popup_edifice.popup_block {
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
	}

	.infobox {
		font-size: 14px;
		padding: 14px 44px 14px 16px;
		line-height: 1.35;
	}

	#bloc-left,
	#bloc-right,
	#popup_edifice #bloc-left,
	#popup_edifice #bloc-right {
		float: none;
		width: 100%;
		min-height: 0;
		border-left: none;
		border-right: none;
	}

	#bloc-right {
		border-top: 1px solid #f0f0f0;
	}

	#popup_edifice #bloc-left {
		border-right: none;
		border-bottom: 1px solid #f0f0f0;
	}

	#bloc-bottom,
	#popup_edifice .bloc-bottom {
		padding: 12px 16px 16px;
	}

	.navlist li,
	.puces {
		padding-left: 32px;
		background-size: 18px;
		min-height: 28px;
	}

	#popup_edifice #edifice-lienImage img {
		max-height: 220px;
		width: auto;
		object-fit: contain;
	}
}