{"id":329,"date":"2025-05-27T12:11:11","date_gmt":"2025-05-27T12:11:11","guid":{"rendered":"https:\/\/maroc.maroc.build-tech.be\/?page_id=329"},"modified":"2025-05-28T08:39:29","modified_gmt":"2025-05-28T08:39:29","slug":"test-carte","status":"publish","type":"page","link":"https:\/\/maroc.build-tech.be\/en\/test-carte\/","title":{"rendered":"Test carte"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"329\" class=\"elementor elementor-329\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4d5c6e4 e-flex e-con-boxed e-con e-parent\" data-id=\"4d5c6e4\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-432e640 elementor-widget elementor-widget-spacer\" data-id=\"432e640\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-4f1e7c1 e-flex e-con-boxed e-con e-parent\" data-id=\"4f1e7c1\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-758c779 elementor-widget elementor-widget-html\" data-id=\"758c779\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div id=\"map-wrap\">\r\n  <div id=\"map-inner\">\r\n    <svg id=\"map-svg\" viewbox=\"0 0 1920 1080\" preserveaspectratio=\"xMidYMid meet\">\r\n      <image href=\"https:\/\/maroc.build-tech.be\/wp-content\/uploads\/2025\/05\/Render_final_editable.jpg\" x=\"0\" y=\"0\" width=\"1920\" height=\"1080\"\/>\r\n      <g id=\"hotspots-layer\"><\/g>\r\n    <\/svg>\r\n    <div id=\"hotspot-list\"><\/div>\r\n    <!-- FICHE EN BAS (slider\/bottom bar) -->\r\n    <div id=\"hotspotInfoBottom\">\r\n      <button class=\"close-btn\" onclick=\"closeHotspotInfoBottom()\">&times;<\/button>\r\n      <div class=\"info-wrap\">\r\n        <h2 id=\"hotspotTitleBottom\"><\/h2>\r\n        <p id=\"hotspotTextBottom\"><\/p>\r\n      <\/div>\r\n      <div class=\"nav-arrows\">\r\n        <button id=\"prevBtn\" onclick=\"navHotspot(-1)\" aria-label=\"Pr\u00e9c\u00e9dent\">&larr;<\/button>\r\n        <span id=\"current-num\"><\/span>\r\n        <button id=\"nextBtn\" onclick=\"navHotspot(1)\" aria-label=\"Suivant\">&rarr;<\/button>\r\n      <\/div>\r\n    <\/div>\r\n  <\/div>\r\n<\/div>\r\n\r\n<style>\r\n\/* --- MAP et VIEWPORT --- *\/\r\nhtml, body {\r\n  padding: 0;\r\n  margin: 0;\r\n  box-sizing: border-box;\r\n  width: 100vw;\r\n  height: 100vh;\r\n  overflow-x: hidden;\r\n}\r\n#map-wrap {\r\n  width: 100vw;\r\n  height: 100vh;\r\n  max-width: 100vw;\r\n  max-height: 100vh;\r\n  overflow: hidden;\r\n  background: #fff;\r\n  position: relative;\r\n}\r\n#map-inner {\r\n  width: 100vw;\r\n  height: 100vh;\r\n  max-width: 100vw;\r\n  max-height: 100vh;\r\n  position: relative;\r\n  overflow: hidden;\r\n  display: flex;\r\n  flex-direction: column;\r\n  align-items: stretch;\r\n  justify-content: stretch;\r\n}\r\n\/* --- L'image et la carte --- *\/\r\n#map-svg {\r\n  width: 100vw !important;\r\n  height: 100vh !important;\r\n  display: block;\r\n  background: #fff;\r\n  object-fit: contain;\r\n  max-width: 100vw;\r\n  max-height: 100vh;\r\n}\r\n.hotspot-svg { cursor: pointer; transition: opacity 0.23s; }\r\n\r\n\/* --- HOTSPOTS bouton rouge --- *\/\r\n.hotspot-svg .dot {\r\n  fill: #ea2127;\r\n  stroke: #ffd600;\r\n  stroke-width: 5px;\r\n  filter: drop-shadow(0 0 10px #ea2127aa) drop-shadow(0 1px 12px #ffd60055);\r\n  transition: filter 0.23s, stroke 0.17s;\r\n}\r\n.hotspot-svg .num {\r\n  font-size: 2.1em;\r\n  fill: #222;\r\n  font-family: 'Montserrat', Arial, sans-serif;\r\n  font-weight: 900;\r\n  text-anchor: middle;\r\n  dominant-baseline: middle;\r\n  alignment-baseline: middle;\r\n  paint-order: stroke;\r\n  stroke: #ffd600;\r\n  stroke-width: 1.3px;\r\n  filter: drop-shadow(0 2px 5px #ffd600bb);\r\n  user-select: none;\r\n  pointer-events: none;\r\n  transition: font-weight 0.18s;\r\n}\r\n.hotspot-svg.selected .dot {\r\n  stroke: #222;\r\n  stroke-width: 3px;\r\n  filter: drop-shadow(0 0 8px #ea212755) drop-shadow(0 1px 8px #2225);\r\n}\r\n.hotspot-svg.selected .num {\r\n  font-weight: 500; \/* moins gras *\/\r\n  stroke: #fff;\r\n  fill: #222;\r\n}\r\n.hotspot-svg.faded { opacity: 0.13; }\r\n.hotspot-svg .pulse {\r\n  animation: pulseSheet 1.6s infinite;\r\n  filter: blur(1.2px);\r\n}\r\n@keyframes pulseSheet {\r\n  0% { opacity: 0.26; }\r\n  60% { opacity: 0.10; }\r\n  100% { opacity: 0.26; }\r\n}\r\n\r\n\/* --- SLIDER\/FICHE EN BAS --- *\/\r\n#hotspotInfoBottom {\r\n  display: none;\r\n  position: absolute;\r\n  left: 0;\r\n  right: 0;\r\n  bottom: 0;\r\n  width: 100vw;\r\n  max-width: 100vw;\r\n  min-height: 120px;\r\n  background: rgba(22,24,28,0.97);\r\n  color: #fff;\r\n  box-shadow: 0 -10px 32px #0007;\r\n  z-index: 50;\r\n  padding: 22px 34px 16px 34px;\r\n  box-sizing: border-box;\r\n  border-radius: 24px 24px 0 0;\r\n  opacity: 0;\r\n  transform: translateY(120%);\r\n  transition: all 0.33s cubic-bezier(.57,-0.13,.47,1.22);\r\n  display: flex;\r\n  flex-direction: row;\r\n  align-items: center;\r\n  justify-content: space-between;\r\n  pointer-events: none;\r\n}\r\n#hotspotInfoBottom.active {\r\n  display: flex;\r\n  opacity: 1;\r\n  transform: translateY(0);\r\n  pointer-events: auto;\r\n}\r\n#hotspotInfoBottom .close-btn {\r\n  background: none;\r\n  border: none;\r\n  font-size: 2.4em;\r\n  color: #fff;\r\n  cursor: pointer;\r\n  opacity: 0.89;\r\n  margin-right: 24px;\r\n  margin-left: 0;\r\n  transition: color 0.2s;\r\n  align-self: flex-start;\r\n}\r\n#hotspotInfoBottom .close-btn:hover { color: #ffd600; }\r\n#hotspotInfoBottom .info-wrap {\r\n  flex: 1 1 0px;\r\n  min-width: 0;\r\n}\r\n#hotspotTitleBottom {\r\n  font-size: 2em;\r\n  font-weight: bold;\r\n  margin: 0 0 7px 0;\r\n  color: #ffd600;\r\n}\r\n#hotspotTextBottom {\r\n  font-size: 1.12em;\r\n  color: #faf9f7;\r\n  margin: 0 0 0 0;\r\n  line-height: 1.55;\r\n}\r\n\/* --- FLECHES GROSSES --- *\/\r\n#hotspotInfoBottom .nav-arrows {\r\n  display: flex;\r\n  align-items: center;\r\n  gap: 12px;\r\n  margin-left: 34px;\r\n}\r\n#hotspotInfoBottom .nav-arrows button {\r\n  width: 62px;\r\n  height: 62px;\r\n  border-radius: 50%;\r\n  border: none;\r\n  font-size: 2.3em;\r\n  font-weight: 900;\r\n  color: #222;\r\n  background: #ffd600;\r\n  cursor: pointer;\r\n  box-shadow: 0 0 0 6px #ffd60080, 0 6px 18px #0003;\r\n  transition: background 0.18s, color 0.17s, box-shadow 0.2s;\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n  outline: none;\r\n}\r\n#hotspotInfoBottom .nav-arrows button:focus,\r\n#hotspotInfoBottom .nav-arrows button:hover {\r\n  background: #fff201;\r\n  color: #ea2127;\r\n  box-shadow: 0 0 0 8px #fff20180, 0 12px 24px #ffd60044;\r\n}\r\n#hotspotInfoBottom #current-num {\r\n  font-size: 1.22em; font-weight: bold;\r\n  min-width: 65px; text-align: center; color: #ffd600;\r\n  background: #fff1;\r\n  border-radius: 12px;\r\n  padding: 7px 0;\r\n}\r\n@media (max-width: 1100px) {\r\n  #hotspotInfoBottom { width: 100vw; border-radius: 0; }\r\n  #map-svg { width: 100vw !important; height: 100vh !important; }\r\n}\r\n<\/style>\r\n\r\n<script>\r\n\/\/ --- DATA ---\r\nconst hotspots = [\r\n  {cx:258, cy:367, title:\"Sports systems\", text:\"The flooring destined to the sport practice daily...\"},\r\n  {cx:636, cy:654, title:\"Bridges\", text:\"Waterproofing solutions for bridges and footbridges...\"},\r\n  {cx:1285, cy:206, title:\"Green Roof\", text:\"Systems for green roofs and terraces...\"},\r\n  {cx:442, cy:267, title:\"Zone 4\", text:\"Autre description...\"},\r\n  {cx:720, cy:320, title:\"Zone 5\", text:\"Description...\"},\r\n  {cx:990, cy:810, title:\"Zone 6\", text:\"Description...\"},\r\n  {cx:1190, cy:500, title:\"Zone 7\", text:\"Description...\"},\r\n  {cx:320, cy:900, title:\"Zone 8\", text:\"Description...\"},\r\n  {cx:1660, cy:580, title:\"Zone 9\", text:\"Description...\"},\r\n  {cx:1410, cy:920, title:\"Zone 10\", text:\"Description...\"}\r\n];\r\n\r\nfunction getDotR() {\r\n  return window.innerWidth <= 900 ? 28 : 19;\r\n}\r\nfunction getPulseR() {\r\n  return window.innerWidth <= 900 ? 37 : 25;\r\n}\r\nfunction getFontSize() {\r\n  return window.innerWidth <= 900 ? 30 : 26;\r\n}\r\n\r\n\/\/ Rendu SVG des points\r\nconst layer = document.getElementById('hotspots-layer');\r\nfunction renderHotspots(){\r\n  layer.innerHTML = '';\r\n  hotspots.forEach((pt,i)=>{\r\n    let g = document.createElementNS(\"http:\/\/www.w3.org\/2000\/svg\", \"g\");\r\n    g.setAttribute('class', 'hotspot-svg');\r\n    g.setAttribute('tabindex', 0);\r\n    g.setAttribute('data-index', i);\r\n    g.setAttribute('data-title', pt.title);\r\n    g.setAttribute('data-text', pt.text);\r\n    g.setAttribute('data-cx', pt.cx);\r\n    g.innerHTML = `\r\n      <circle class=\"pulse\" cx=\"${pt.cx}\" cy=\"${pt.cy}\" r=\"${getPulseR()}\" fill=\"#ea2127\"\/>\r\n      <circle class=\"dot\" cx=\"${pt.cx}\" cy=\"${pt.cy}\" r=\"${getDotR()}\"\/>\r\n      <text class=\"num\" x=\"${pt.cx}\" y=\"${pt.cy+1}\" text-anchor=\"middle\" dominant-baseline=\"middle\" alignment-baseline=\"middle\" style=\"font-size:${getFontSize()}px;\">${i+1}<\/text>\r\n    `;\r\n    g.onclick = g.onkeydown = function(e) {\r\n      if(e.type === \"click\" || (e.type===\"keydown\" && (e.key===\"Enter\"||e.key===\" \"))) {\r\n        openHotspot(i);\r\n      }\r\n    }\r\n    layer.appendChild(g);\r\n  });\r\n}\r\nrenderHotspots();\r\nwindow.addEventListener('resize', renderHotspots);\r\n\r\n\/\/ Annuaire (optionnel, cach\u00e9)\r\nconst listWrap = document.getElementById('hotspot-list');\r\nlet listHtml = `<ul>`;\r\nhotspots.forEach((pt, i)=>{\r\n  listHtml += `<li tabindex=\"0\" data-index=\"${i}\">\r\n    <span class=\"hotspot-list-dot\">${i+1}<\/span>\r\n    <span class=\"hotspot-list-title\">${pt.title}<\/span>\r\n  <\/li>`;\r\n});\r\nlistHtml += `<\/ul>`;\r\nlistWrap.innerHTML = listHtml;\r\ndocument.querySelectorAll('#hotspot-list li').forEach(li=>{\r\n  li.onclick = li.onkeydown = function(e){\r\n    if(e.type===\"click\" || (e.type===\"keydown\"&&(e.key===\"Enter\"||e.key===\" \"))) {\r\n      openHotspot(Number(li.dataset.index));\r\n      li.scrollIntoView({behavior:\"smooth\",block:\"center\"});\r\n    }\r\n  }\r\n});\r\n\r\n\/\/ --- SLIDER FICHE EN BAS ---\r\nlet activeIndex = null;\r\nfunction openHotspot(idx){\r\n  activeIndex = idx;\r\n  document.querySelectorAll('.hotspot-svg').forEach((g,i) => {\r\n    g.classList.toggle('selected', i===idx);\r\n    g.classList.toggle('faded', i!==idx);\r\n  });\r\n  document.querySelectorAll('#hotspot-list li').forEach((li,i)=>{\r\n    li.classList.toggle('active',i===idx);\r\n  });\r\n  showHotspotInfoBottom(hotspots[idx], idx);\r\n  document.getElementById('current-num').textContent = (idx+1)+'\/'+hotspots.length;\r\n  setTimeout(()=>{document.getElementById('hotspotInfoBottom').querySelector('.close-btn').focus();},180);\r\n}\r\nfunction closeHotspotInfoBottom(){\r\n  const sheet = document.getElementById('hotspotInfoBottom');\r\n  sheet.classList.remove('active');\r\n  setTimeout(()=>{\r\n    sheet.style.display = \"none\";\r\n    document.querySelectorAll('.hotspot-svg').forEach(g => g.classList.remove('faded','selected'));\r\n    document.querySelectorAll('#hotspot-list li').forEach(li=>li.classList.remove('active'));\r\n    activeIndex = null;\r\n  },220);\r\n}\r\nfunction navHotspot(direction){\r\n  let idx = activeIndex!==null ? activeIndex+direction : 0;\r\n  if(idx < 0) idx = hotspots.length-1;\r\n  if(idx >= hotspots.length) idx = 0;\r\n  openHotspot(idx);\r\n}\r\nfunction showHotspotInfoBottom(data, idx){\r\n  const sheet = document.getElementById('hotspotInfoBottom');\r\n  sheet.classList.add('active');\r\n  sheet.style.display = \"flex\";\r\n  document.getElementById('hotspotTitleBottom').innerText = data.title;\r\n  document.getElementById('hotspotTextBottom').innerText = data.text;\r\n}\r\n\/\/ Accessibilit\u00e9 clavier\r\ndocument.addEventListener('keydown', function(e){\r\n  if(activeIndex!==null) {\r\n    if(e.key === \"ArrowLeft\") navHotspot(-1);\r\n    if(e.key === \"ArrowRight\") navHotspot(1);\r\n    if(e.key === \"Escape\") closeHotspotInfoBottom();\r\n  }\r\n});\r\n<\/script>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-9cea0be e-flex e-con-boxed e-con e-parent\" data-id=\"9cea0be\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-920d6c4 elementor-widget elementor-widget-html\" data-id=\"920d6c4\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- CONTENEUR FULL WIDTH (\u00e0 mettre dans une section pleine largeur dans Elementor) -->\n<div id=\"map-wrap\">\n  <svg id=\"map-svg\" viewbox=\"0 0 1920 1080\">\n    <g id=\"zoom-group\">\n      <image href=\"https:\/\/maroc.build-tech.be\/wp-content\/uploads\/2025\/05\/Render_final_editable.jpg\" x=\"0\" y=\"0\" height=\"1080\" width=\"1920\"\/>\n      <g id=\"hotspots-layer\"><\/g>\n    <\/g>\n  <\/svg>\n  <div id=\"sidebarInfoSVG\">\n    <button class=\"close-btn\" onclick=\"closeSidebarInfoSVG()\" tabindex=\"0\">&times;<\/button>\n    <h2 id=\"sidebarTitleSVG\"><\/h2>\n    <p id=\"sidebarTextSVG\"><\/p>\n    <div class=\"nav-arrows\">\n      <button id=\"prevBtn\" onclick=\"navHotspot(-1)\" aria-label=\"Point pr\u00e9c\u00e9dent\">&larr;<\/button>\n      <span id=\"current-num\"><\/span>\n      <button id=\"nextBtn\" onclick=\"navHotspot(1)\" aria-label=\"Point suivant\">&rarr;<\/button>\n    <\/div>\n    <div id=\"drag-bar\"><\/div>\n  <\/div>\n<\/div>\n\n<style>\nhtml, body {\n  width: 100vw !important;\n  min-height: 100vh !important;\n  margin: 0 !important;\n  padding: 0 !important;\n  overflow-x: hidden !important;\n  background: #fff;\n}\n#map-wrap {\n  width: 100vw !important;\n  max-width: 100vw !important;\n  height: 100vh !important;\n  margin: 0 !important;\n  padding: 0 !important;\n  position: relative;\n  background: #fff;\n  overflow: hidden;\n  display: block;\n}\n#map-svg {\n  width: 100vw !important;\n  height: 100vh !important;\n  max-width: 100vw !important;\n  max-height: 100vh !important;\n  min-width: 100vw !important;\n  min-height: 100vh !important;\n  display: block !important;\n  object-fit: cover !important;\n  background: #fff;\n}\n.hotspot-svg { cursor:pointer; transition: opacity 0.3s cubic-bezier(.4,0,.2,1), filter .3s;}\n.hotspot-svg.faded { opacity:0.17; filter: blur(0.5px);}\n.hotspot-svg.selected .dot, .hotspot-svg.selected .num {\n  stroke:#ffd600; stroke-width:4px; fill:#ffd600 !important; filter: drop-shadow(0 0 6px #ffd600c0);\n}\n.hotspot-svg.selected .num { fill: #222 !important; }\n.hotspot-svg .pulse {\n  animation: svgPulse 1.7s cubic-bezier(.4,0,.2,1) infinite;\n  filter: blur(1.2px);\n}\n@keyframes svgPulse {\n  0% { opacity: 0.36; r: 24;}\n  60% { opacity: 0.11; r: 44;}\n  100% { opacity: 0.36; r: 24;}\n}\n.hotspot-svg .dot {\n  fill: #ea2127;\n  stroke: #fff;\n  stroke-width: 3px;\n  opacity: 0.98;\n  transition: all 0.22s;\n}\n.hotspot-svg .num {\n  font-size: 20px; fill:#fff; font-weight: bold; pointer-events: none;\n  text-anchor: middle; dominant-baseline: middle; alignment-baseline: middle;\n  paint-order: stroke; stroke: #222; stroke-width:2px;\n  user-select: none;\n}\n.hotspot-svg:hover .dot, .hotspot-svg:focus .dot {\n  fill: #fff; stroke: #ea2127; stroke-width: 4px; opacity: 1;\n}\n.hotspot-svg:hover .num, .hotspot-svg:focus .num {\n  fill: #ea2127; stroke: #fff;\n}\n#zoom-group {\n  transition: transform 0.65s cubic-bezier(.4,0,.2,1);\n}\n\n\/* Sidebar Desktop *\/\n#sidebarInfoSVG {\n  position: absolute; top: 0; right: 0;\n  width: 370px; height: 100%;\n  background: rgba(23,27,34,0.93); color: #fff;\n  box-shadow: -4px 0 24px #0003; backdrop-filter: blur(8px);\n  z-index: 1002; display: none;\n  flex-direction: column;\n  padding: 38px 36px 34px 36px;\n  font-family: Arial, sans-serif;\n  transition: opacity 0.38s cubic-bezier(.4,0,.2,1), transform .32s;\n  opacity: 0;\n  border-radius: 16px 0 0 16px;\n  will-change: transform, opacity;\n}\n#sidebarInfoSVG.active {\n  display: flex; opacity: 1; transform: none;\n}\n#sidebarInfoSVG .close-btn {\n  position: absolute; top: 18px; right: 24px; font-size: 32px;\n  color: #fff; background: none; border: none; cursor: pointer;\n  transition: color 0.17s;\n}\n#sidebarInfoSVG .close-btn:hover { color: #ffd600; }\n#sidebarInfoSVG h2 { margin-top: 10px; margin-bottom: 20px; font-size: 1.32em; font-weight: bold; letter-spacing: 0.2px;}\n#sidebarInfoSVG p { margin: 0; line-height: 1.56; }\n#sidebarInfoSVG .nav-arrows {\n  display: flex; justify-content: center; align-items: center;\n  gap: 24px; margin-top: 34px; font-size: 26px;\n}\n#sidebarInfoSVG .nav-arrows button {\n  background: #ffd600; border: none; border-radius: 50%; color: #222; font-size: 1.7em;\n  cursor: pointer; width: 52px; height: 52px; box-shadow: 0 3px 12px #0002;\n  transition: background 0.17s, color 0.17s, transform .18s;\n  display: flex; align-items: center; justify-content: center;\n}\n#sidebarInfoSVG .nav-arrows button:active { transform: scale(0.94);}\n#sidebarInfoSVG .nav-arrows button:focus { outline: 2px solid #ea2127;}\n#sidebarInfoSVG .nav-arrows span {\n  font-size: 1.25em; font-weight: bold; color: #fff; letter-spacing: 0.2px; min-width: 58px; text-align: center;\n}\n\n\/* --------- Mobile ONLY : Points XXL & Glow --------- *\/\n@media (max-width: 900px) {\n  .hotspot-svg .pulse { r: 37 !important; }\n  .hotspot-svg .dot { r: 24 !important; }\n  .hotspot-svg .num { font-size: 31px !important; }\n  .hotspot-svg .dot, .hotspot-svg .pulse {\n    filter: drop-shadow(0 0 16px #ea2127b8) drop-shadow(0 0 12px #fff7);\n  }\n  .hotspot-svg .dot { stroke-width: 5px !important;}\n  .hotspot-svg.selected .dot, .hotspot-svg.selected .pulse {\n    filter: drop-shadow(0 0 28px #ffd600b8) drop-shadow(0 0 18px #fff8);\n    stroke: #ffd600 !important;\n  }\n  .hotspot-svg.selected .num { fill:#222 !important;}\n}\n\n\/* --------- Bottom Sheet en mobile --------- *\/\n@media (max-width: 900px) {\n  #sidebarInfoSVG {\n    width: 98vw !important;\n    min-width: 0;\n    left: 0 !important;\n    right: 0 !important;\n    top: auto !important;\n    bottom: 0 !important;\n    border-radius: 18px 18px 0 0 !important;\n    padding: 22px 6vw 22px 6vw !important;\n    font-size: 15px;\n    height: auto !important;\n    max-height: 87vh !important;\n    box-shadow: 0 -6px 28px #0006;\n    transform: translateY(105%);\n    transition: transform .34s cubic-bezier(.4,0,.2,1), opacity .22s;\n    opacity: 0;\n    position: fixed !important;\n    z-index: 9999;\n    display: flex;\n    flex-direction: column;\n    animation: none !important;\n  }\n  #sidebarInfoSVG.active {\n    transform: translateY(0);\n    opacity: 1;\n  }\n  #sidebarInfoSVG .close-btn {\n    top: 12px; right: 14px; font-size: 29px;\n  }\n  #sidebarInfoSVG h2 { margin-top: 4px; font-size: 1.12em;}\n  #sidebarInfoSVG .nav-arrows { gap: 18px; margin-top: 22px;}\n  #sidebarInfoSVG .nav-arrows button { width: 42px; height: 42px; font-size:1.22em;}\n  #sidebarInfoSVG .nav-arrows span { font-size: 1.06em;}\n  #drag-bar {\n    display: block;\n    width: 54px; height: 6px; background: #ccc9; border-radius: 7px;\n    margin: 0 auto 13px auto; position: relative; top: -8px;\n  }\n}\n@media (min-width: 901px) {\n  #drag-bar { display: none !important;}\n}\n<\/style>\n\n<script>\nconst hotspots = [\n  {cx:258, cy:367, title:\"Sports systems\", text:\"The flooring destined to the sport practice daily...\"},\n  {cx:636, cy:654, title:\"Bridges\", text:\"Waterproofing solutions for bridges and footbridges...\"},\n  {cx:1285, cy:206, title:\"Green Roof\", text:\"Systems for green roofs and terraces...\"},\n  {cx:442, cy:267, title:\"Autre zone\", text:\"Description suppl\u00e9mentaire...\"}\n  \/\/ Ajoute tes autres points ici\n];\nconst svg = document.getElementById('map-svg');\nconst layer = document.getElementById('hotspots-layer');\nconst zoomGroup = document.getElementById('zoom-group');\nlet activeIndex = null;\n\nlayer.innerHTML = '';\nhotspots.forEach((pt,i)=>{\n  let g = document.createElementNS(\"http:\/\/www.w3.org\/2000\/svg\", \"g\");\n  g.setAttribute('class', 'hotspot-svg');\n  g.setAttribute('tabindex', 0);\n  g.setAttribute('data-index', i);\n  g.setAttribute('data-title', pt.title);\n  g.setAttribute('data-text', pt.text);\n  g.innerHTML = `\n    <circle class=\"pulse\" cx=\"${pt.cx}\" cy=\"${pt.cy}\" r=\"24\" fill=\"#ea2127\"\/>\n    <circle class=\"dot\" cx=\"${pt.cx}\" cy=\"${pt.cy}\" r=\"15\"\/>\n    <text class=\"num\" x=\"${pt.cx}\" y=\"${pt.cy+1}\" dominant-baseline=\"middle\" text-anchor=\"middle\" alignment-baseline=\"middle\">${i+1}<\/text>\n  `;\n  g.onclick = g.onkeydown = function(e) {\n    if(e.type === \"click\" || (e.type===\"keydown\" && (e.key===\"Enter\"||e.key===\" \"))) {\n      openHotspot(i);\n    }\n  }\n  g.onmouseover = function(){ highlightHotspot(i); }\n  g.onfocus = function(){ highlightHotspot(i);}\n  g.onmouseleave = function(){ if(activeIndex!==i) unhighlightHotspot(i);}\n  g.onblur = function(){ if(activeIndex!==i) unhighlightHotspot(i);}\n  layer.appendChild(g);\n});\n\n\/\/ Gestion de l'ouverture d'un point\nfunction openHotspot(idx){\n  activeIndex = idx;\n  document.querySelectorAll('.hotspot-svg').forEach((g,i) => {\n    g.classList.toggle('selected', i===idx);\n    g.classList.toggle('faded', i!==idx);\n  });\n  showSidebarInfoSVG(hotspots[idx], idx);\n  zoomOnHotspot(hotspots[idx]);\n  document.getElementById('current-num').textContent = (idx+1)+'\/'+hotspots.length;\n  setTimeout(()=>{ \/\/ focus pour accessibilit\u00e9\n    document.getElementById('sidebarInfoSVG').querySelector('.close-btn').focus();\n  }, 200);\n}\nfunction closeSidebarInfoSVG(){\n  document.getElementById('sidebarInfoSVG').classList.remove('active');\n  document.getElementById('sidebarInfoSVG').style.opacity = 0;\n  setTimeout(()=>{ document.getElementById('sidebarInfoSVG').style.display = \"none\"; },300);\n  document.querySelectorAll('.hotspot-svg').forEach(g => g.classList.remove('faded','selected'));\n  zoomReset();\n  activeIndex = null;\n}\nfunction navHotspot(direction){\n  let idx = activeIndex!==null ? activeIndex+direction : 0;\n  if(idx < 0) idx = hotspots.length-1;\n  if(idx >= hotspots.length) idx = 0;\n  openHotspot(idx);\n}\nfunction highlightHotspot(i){\n  layer.children[i].classList.add('selected');\n}\nfunction unhighlightHotspot(i){\n  layer.children[i].classList.remove('selected');\n}\n\/\/ Gestion clavier global\ndocument.addEventListener('keydown', function(e){\n  if(activeIndex!==null) {\n    if(e.key === \"ArrowLeft\") navHotspot(-1);\n    if(e.key === \"ArrowRight\") navHotspot(1);\n    if(e.key === \"Escape\") closeSidebarInfoSVG();\n  }\n});\n\/\/ Sidebar : Desktop (droite), Mobile (bottom-sheet)\nfunction showSidebarInfoSVG(data, idx){\n  const sidebar = document.getElementById('sidebarInfoSVG');\n  if(window.innerWidth <= 900){\n    sidebar.classList.add('bottom-sheet');\n    sidebar.classList.remove('left','right');\n  } else {\n    sidebar.classList.remove('bottom-sheet');\n    sidebar.classList.add('right');\n  }\n  sidebar.classList.add('active');\n  sidebar.style.display = \"flex\";\n  sidebar.style.opacity = 1;\n  document.getElementById('sidebarTitleSVG').innerText = data.title;\n  document.getElementById('sidebarTextSVG').innerText = data.text;\n}\n\/\/ ZOOM : Desktop uniquement\nfunction zoomOnHotspot(pt){\n  if(window.innerWidth <= 900) {\n    zoomGroup.setAttribute('transform', ''); \/\/ PAS de zoom mobile\n    return;\n  }\n  const zoom = 2.1;\n  const offsetX = Math.max(550, Math.min(1920-550, pt.cx));\n  const offsetY = Math.max(350, Math.min(1080-350, pt.cy));\n  const tx = 960-offsetX*zoom;\n  const ty = 540-offsetY*zoom;\n  zoomGroup.setAttribute('transform', `matrix(${zoom},0,0,${zoom},${tx},${ty})`);\n}\nfunction zoomReset(){\n  zoomGroup.setAttribute('transform','');\n}\n\n\/\/ Swipe down pour fermer la fiche sur mobile (option UX)\nlet startY = null;\ndocument.getElementById('sidebarInfoSVG').addEventListener('touchstart', e=>{\n  if(window.innerWidth > 900) return;\n  startY = e.touches[0].clientY;\n});\ndocument.getElementById('sidebarInfoSVG').addEventListener('touchmove', e=>{\n  if(window.innerWidth > 900 || startY===null) return;\n  let diff = e.touches[0].clientY - startY;\n  if(diff > 60){ closeSidebarInfoSVG(); startY=null; }\n});\ndocument.getElementById('sidebarInfoSVG').addEventListener('touchend', ()=>{ startY=null; });\n\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>&times; &larr; &rarr; &times; &larr; &rarr;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-329","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.2 (Yoast SEO v26.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Test carte - Build-tech<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/maroc.maroc.build-tech.be\/test-carte\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Test carte\" \/>\n<meta property=\"og:description\" content=\"&times; &larr; &rarr; &times; &larr; &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/maroc.maroc.build-tech.be\/test-carte\/\" \/>\n<meta property=\"og:site_name\" content=\"Build-tech\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-28T08:39:29+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/maroc.maroc.build-tech.be\/test-carte\/\",\"url\":\"https:\/\/maroc.maroc.build-tech.be\/test-carte\/\",\"name\":\"Test carte - Build-tech\",\"isPartOf\":{\"@id\":\"https:\/\/maroc.maroc.build-tech.be\/#website\"},\"datePublished\":\"2025-05-27T12:11:11+00:00\",\"dateModified\":\"2025-05-28T08:39:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/maroc.maroc.build-tech.be\/test-carte\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/maroc.maroc.build-tech.be\/test-carte\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/maroc.maroc.build-tech.be\/test-carte\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/maroc.maroc.build-tech.be\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Test carte\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/maroc.maroc.build-tech.be\/#website\",\"url\":\"https:\/\/maroc.maroc.build-tech.be\/\",\"name\":\"Build-tech\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/maroc.maroc.build-tech.be\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Test carte - Build-tech","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/maroc.maroc.build-tech.be\/test-carte\/","og_locale":"en_GB","og_type":"article","og_title":"Test carte","og_description":"&times; &larr; &rarr; &times; &larr; &rarr;","og_url":"https:\/\/maroc.maroc.build-tech.be\/test-carte\/","og_site_name":"Build-tech","article_modified_time":"2025-05-28T08:39:29+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/maroc.maroc.build-tech.be\/test-carte\/","url":"https:\/\/maroc.maroc.build-tech.be\/test-carte\/","name":"Test carte - Build-tech","isPartOf":{"@id":"https:\/\/maroc.maroc.build-tech.be\/#website"},"datePublished":"2025-05-27T12:11:11+00:00","dateModified":"2025-05-28T08:39:29+00:00","breadcrumb":{"@id":"https:\/\/maroc.maroc.build-tech.be\/test-carte\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/maroc.maroc.build-tech.be\/test-carte\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/maroc.maroc.build-tech.be\/test-carte\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/maroc.maroc.build-tech.be\/"},{"@type":"ListItem","position":2,"name":"Test carte"}]},{"@type":"WebSite","@id":"https:\/\/maroc.maroc.build-tech.be\/#website","url":"https:\/\/maroc.maroc.build-tech.be\/","name":"Build-tech","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/maroc.maroc.build-tech.be\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/maroc.build-tech.be\/en\/wp-json\/wp\/v2\/pages\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maroc.build-tech.be\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/maroc.build-tech.be\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/maroc.build-tech.be\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maroc.build-tech.be\/en\/wp-json\/wp\/v2\/comments?post=329"}],"version-history":[{"count":25,"href":"https:\/\/maroc.build-tech.be\/en\/wp-json\/wp\/v2\/pages\/329\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/maroc.build-tech.be\/en\/wp-json\/wp\/v2\/pages\/329\/revisions\/476"}],"wp:attachment":[{"href":"https:\/\/maroc.build-tech.be\/en\/wp-json\/wp\/v2\/media?parent=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}