/**
 * Module Pathologies Interactives
 * Styles compilés manuellement depuis SCSS
 *
 * @package centre_dos
 */

.pathology-module {
  margin:0;
  background-color: #ededed;
  padding: 2.5rem 1.25rem 0 1.25rem;
}

.pathology-module .grid-container {
  /* max-width: 100%; */
}

.pathology-module .grid-x {
  /* width: 100%; */
}

.pathology-module .cell {
  /* width: 100%; */
}

.pathology-module__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

@media screen and (min-width: 64em) {
  .pathology-module__wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    max-width: 100%;
  }
}

.pathology-module__image-container {
  position: relative;
  width: 100%;
  margin-bottom: 1.875rem;
  display: block;
}

@media screen and (min-width: 64em) {
  .pathology-module__image-container {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
    margin-right: 2.5rem;
  }
}

.pathology-module__image-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
}

.pathology-module__body-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  position: relative;
}

.pathology-module__hotspots-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pathology-module__hotspot {
  position: absolute;
  width: 1.875rem;
  height: 1.875rem;
  border: 0.1875rem solid #ffffff;
  border-radius: 50%;
  background-color: var(--hotspot-color, #ff7e6b);
  cursor: pointer;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  z-index: 100;
  box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.2);
}

.pathology-module__hotspot:hover,
.pathology-module__hotspot:focus {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.3);
  outline: none;
}

.pathology-module__hotspot[aria-expanded="true"],
.pathology-module__hotspot.is-selected {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 1.25rem var(--hotspot-color-selected, #ee7038);
  z-index: 200;
  background-color: var(--hotspot-color-selected, #ee7038);
}

.pathology-module__hotspot.is-selected .pathology-module__hotspot-pulse {
  background-color: var(--hotspot-color-selected, #ee7038);
}

/* État normal : remettre à la taille et couleur par défaut */
.pathology-module__hotspot:not(.is-selected):not([aria-expanded="true"]) {
  transform: translate(-50%, -50%) scale(1);
  background-color: var(--hotspot-color, #ff7e6b);
}

.pathology-module__hotspot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--hotspot-color, #ff7e6b);
  opacity: 0.6;
  animation: pathology-pulse 2s ease-in-out infinite;
}

.pathology-module__hotspot-dot {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 1;
}

.pathology-module__panel {
  width: 100%;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
}

@media screen and (min-width: 64em) {
  .pathology-module__panel {
    width: auto;
    min-width: 600px;
    max-width: 700px;
    position: absolute;
    top: 0;
    left: 0;
    max-height: none;
    visibility: visible;
    z-index: 50;
  }
}

.pathology-module__panel.is-active {
  max-height: 50rem;
  padding: 1rem;
  margin-top: 0;
  visibility: visible;
}

@media screen and (min-width: 64em) {
  .pathology-module__panel.is-active {
    max-height: none;
    margin-top: 18rem;
    padding: 1rem;
  }
}

.pathology-module__panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pathology-module__panel[aria-hidden="true"] {
  display: none;
}

@media screen and (min-width: 64em) {
  .pathology-module__panel[aria-hidden="true"] {
    display: block;
    opacity: 0;
    visibility: hidden;
  }
}

.pathology-module__panel-content {
  position: relative;
}

.pathology-module__panel-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.875rem;
  height: 1.875rem;
  border: none;
  background-color: transparent;
  color: #5e5b5b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 10;
}

.pathology-module__panel-close:hover,
.pathology-module__panel-close:focus {
  color: #ee7038;
  outline: none;
}

.pathology-module__panel-close span {
  font-size: 1.75rem;
  line-height: 1;
}

.pathology-module__panel-body {
  padding: 0.625rem 1.2rem 1.2rem 1.2rem;
  background-color: #ededed;
}

.pathology-module__panel-empty {
  text-align: center;
  color: #5e5b5b;
  padding: 2.5rem 1.25rem;
}

.pathology-module__panel-empty p {
  margin: 0;
  font-style: italic;
}

.pathology-module__panel-title {
  font-size: 1.75rem;
  font-weight: 400;
  color: #ee7038;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

@media screen and (max-width: 39.9375em) {
  .pathology-module__panel-title {
    font-size: 1.375rem;
  }
}

.pathology-module__panel-description {
  margin-bottom: 1.875rem;
  color: #0a0a0a;
  line-height: 1.6;
}

.pathology-module__panel-description p {
  margin-bottom: 0.9375rem;
}

.pathology-module__panel-description p:last-child {
  margin-bottom: 0;
}

.pathology-module__panel-description ul,
.pathology-module__panel-description ol {
  margin-left: 1.25rem;
  margin-bottom: 0.9375rem;
}

.pathology-module__panel-description li {
  margin-bottom: 0.5rem;
}

.pathology-module__panel-pathologies {
  margin-top: .275rem;
}

.pathology-module__panel-pathologies-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: #5e5b5b;
  margin-bottom: 0.9375rem;
}

@media screen and (max-width: 39.9375em) {
  .pathology-module__panel-pathologies-title {
    font-size: 1.125rem;
  }
}

.pathology-module__panel-pathologies-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pathology-module__panel-pathologies-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.4rem;
  position: relative;
}

.pathology-module__panel-pathologies-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  background-image: url(../img/puce.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 1.1rem;
  height: 1.1rem;
}

.pathology-module__panel-pathology-link {
  color: #0a0a0a;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  font-size: 1.25rem;
  line-height: 1.2;
}

.pathology-module__panel-pathology-link:hover,
.pathology-module__panel-pathology-link:focus {
  color: #ee7038;
  
}

@keyframes pathology-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@media screen and (max-width: 39.9375em) {
  .pathology-module__panel.is-active {
    position: relative;
    top: auto;
    margin-top: 0 !important;
  }
  
  .pathology-module__hotspot {
    width: 1.5625rem;
    height: 1.5625rem;
  }
  
  .pathology-module__hotspot-dot {
    width: 0.625rem;
    height: 0.625rem;
  }
}

