.content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 50px;
}

.services-tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  width: 25%;
}

.hexagon-container:not(:first-child) {
  margin-top: -50px;
}

.hexagon-container {
  position: relative;
  width: 200px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  outline: none;
}

.hexagon-container:hover:not(:focus) {
  transform: scale(1.05);
  cursor: pointer;
}

.hexagon-container:hover:not(:focus) svg path {
  stroke-width: 75;
  stroke: url(#paint0_hover_1);
}

.hexagon-container:nth-child(2):hover:not(:focus) svg path {
  stroke: url(#paint0_hover_2);
}

.hexagon-container:nth-child(3):hover:not(:focus) svg path {
  stroke: url(#paint0_hover_3);
}

.hexagon-container:hover:not(:focus) .hexagon-content {
  color: #444444;
}

.hexagon-middle {
  transform: translateX(-100px);
  transition: transform 0.3s ease;
}

.hexagon-container.hexagon-middle:hover:not(:focus) {
  transform: translateX(-100px) scale(1.05);
}

.hexagon-container.hexagon-middle:focus {
  transform: translateX(-100px) scale(1.05);
}

svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
}

.hexagon-content {
  position: relative;
  z-index: 3;
  color: #aaaaaa;
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  transition: color 0.3s ease;
}

.hexagon-container:focus svg path {
  stroke: url(#paint0_focus);
  fill: none;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
}

.hexagon-container:focus .hexagon-content {
  color: black;
  transition: color 0.3s ease;
}

.text-content {
  flex: 3;
  padding: 20px;
  max-width: 75%;
}

.text-content h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #333;
  font-size: 22px;
  position: relative;
  padding-bottom: 12px;
}

.text-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: var(--primary);
}

.text-content p {
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 16px;
  color: #555;
}

.text-content h3:not(:first-child) {
  margin-top: 32px;
}

.service-text {
  display: none;
}

.service-text.active {
  display: block;
}

.default-text {
  display: none;
}

.default-text.active {
  display: block;
}

.section-title:hover {
  color: #333;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 30px;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .section-title {
    margin-bottom: 15px;
    font-size: 20px;
  }

  .text-content {
    max-width: 100%;
    order: 2;
    padding: 10px;
  }

  .text-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    padding-bottom: 8px;
  }

  .text-content p {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .text-content h3:not(:first-child) {
    margin-top: 20px;
  }

  .services-tabs {
    order: 1;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
  }

  .hexagon-container {
    width: 130px;
    height: 120px;
    margin-top: 0 !important;
  }

  .hexagon-middle {
    transform: none !important;
  }

  .hexagon-container.hexagon-middle:hover:not(:focus) {
    transform: scale(1.05) !important;
  }

  .hexagon-container.hexagon-middle:focus {
    transform: scale(1.05) !important;
  }

  .hexagon-content {
    font-size: 13px;
  }

  /* Fix pour assurer que tous les hexagones reviennent à leur état original après le focus */
  .hexagon-container:focus-visible {
    outline: none;
  }
} 