.proteines-mindmap-container {
  background-color: #FFFFFF;
  border-radius: 6px;
  padding: 20px;
  margin: 20px !important;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid #000;
  border-radius: 3px;
}

.proteines-mindmap-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  max-height: 600px;
  overflow: visible;
}

.proteines-mindmap-svg-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 600px;
  background-color: #FFFFFF;
  border-radius: 4px;
  overflow: visible;
}

.proteines-mindmap-svg {
  width: 100%;
  height: 100%;
  max-height: 600px;
  display: block;
  overflow: visible;
}

.proteines-mindmap-svg .mindmap-node-rect {
  transition: all 0.2s ease;
}

.proteines-mindmap-svg .mindmap-node-rect:hover {
  filter: brightness(0.95);
  stroke-width: 2;
}

.proteines-mindmap-svg .mindmap-connection {
  pointer-events: none;
}

.proteines-mindmap-center-btn {
  position: absolute;
  top: 15px;
  right: 70px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #FFFFFF !important;
  border: 1px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.proteines-mindmap-center-btn svg {
  width: 18px;
  height: 18px;
  stroke: #FFFFFF;
  display: block;
  margin: 0 auto;
}

.proteines-mindmap-center-btn:hover {
  background-color: #333333;
  color: #FFFFFF !important;
}

.proteines-mindmap-center-btn:hover svg {
  stroke: #FFFFFF;
}

.proteines-mindmap-reset-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  color: #FFFFFF !important;
  border: 1px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.proteines-mindmap-reset-btn svg {
  width: 18px;
  height: 18px;
  stroke: #FFFFFF;
  display: block;
  margin: 0 auto;
}

.proteines-mindmap-reset-btn:hover {
  background-color: #333333;
  color: #FFFFFF !important;
}

.proteines-mindmap-reset-btn:hover svg {
  stroke: #FFFFFF;
}

.proteines-mindmap-reset-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .proteines-mindmap-container {
    padding: 15px;
  }
  
  .proteines-mindmap-wrapper {
    height: 500px;
    max-height: 500px;
  }
  
  .proteines-mindmap-svg-container {
    max-height: 500px;
  }
  
  .proteines-mindmap-svg {
    max-height: 500px;
  }
  
  .proteines-mindmap-center-btn {
    top: 10px;
    right: 60px;
    width: 36px;
    height: 36px;
  }
  
  .proteines-mindmap-center-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .proteines-mindmap-reset-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
  
  .proteines-mindmap-reset-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .proteines-mindmap-container {
    padding: 10px;
  }
  
  .proteines-mindmap-wrapper {
    height: 400px;
    max-height: 400px;
  }
  
  .proteines-mindmap-svg-container {
    max-height: 400px;
  }
  
  .proteines-mindmap-svg {
    max-height: 400px;
  }
  
  .proteines-mindmap-center-btn {
    top: 8px;
    right: 50px;
    width: 32px;
    height: 32px;
  }
  
  .proteines-mindmap-center-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .proteines-mindmap-reset-btn {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }
  
  .proteines-mindmap-reset-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Touch support pour mobile */
@media (hover: none) and (pointer: coarse) {
  .proteines-mindmap-svg {
    touch-action: pan-x pan-y pinch-zoom;
  }
}
