/* HERO */

.home-hero__logo {
  display: flex;
}

.home-hero__logo svg {
  height: 5rem;
  width: auto;
}

@media (max-width: 1024px) {
  .home-hero__logo {
    display: none;
  }
}

.home-hero__img {
  display: flex;
  flex-grow: 1;
}

.home-hero__img img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-site);
}

.home-hero-figures {
  margin-top: -8rem;
  padding: 0 2rem;
}

@media (max-width: 1024px) {
  .home-hero__img img {
    position: relative;
  }
  .home-hero-figures {
    margin-top: 0;
    padding: 0;
  }
}

.home-hero__card {
  padding: var(--space-xs);
  background-color: var(--clr-bg-light);
  border: 1px solid var(--clr-border-primary);
  border-radius: var(--radius-site);
  gap: 0;
}

.home-hero__reviews {
  flex-direction: row !important;
  align-items: center !important;
  gap: var(--space-2xs);
  padding-top: 1.6rem;
  border-top: 1px solid var(--clr-border-grey-l-1);
}

/* BANNIERE CONTACT */

.home-banner {
  background-color: var(--clr-bg-primary);
  padding-block: 5rem;
}

.home-banner__grid {
  align-items: center !important;
  gap: 4rem;
}

@media (min-width: 1025px) {
  .home-banner > div > *:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--clr-bg-light);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .home-banner
    > div
    > *:not(:last-child):not(:nth-child(2))::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--clr-bg-light);
  }
}

.home-banner__grid > div {
  width: auto !important;
  align-items: center !important;
}

@media (min-width: 1025px) {
  .home-banner__grid > div {
    justify-content: center !important;
  }
}

@media (max-width: 1024px) {
  .home-banner__grid > div {
    justify-content: start !important;
    padding-left: 2rem;
  }
}

.home-banner__grid > div > div:nth-child(2) {
  width: auto;
}

.home-banner__card {
  flex-direction: row !important;
  gap: var(--space-xs);
}

.home-banner-icon {
  display: flex;
}

.home-banner-icon svg {
  height: 4rem;
  fill: var(--clr-bg-light);
}

/* POL */

.home-pol__img {
  min-height: 36rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-site);
}

.home-pol__profiles {
  padding-top: var(--space-m);
  border-top: 1px solid var(--clr-border-grey-l-1);
}

/* POUR QUI ? */

.home-values {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.home-values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--clr-bg-primary);
  opacity: 0.8;
}

.home-values__card {
  padding: var(--space-l) var(--space-m);
  border: 1px solid var(--clr-border-primary);
  background-color: var(--clr-bg-primary-l-2);
  border-radius: var(--radius-site);
  text-align: center;
}

/* DOMAINES D'INTERVENTION */

.home-zones__card {
  padding: var(--space-m);
  border: 1px solid var(--clr-border-primary-l-1);
  border-radius: var(--radius-site);
  align-items: flex-start !important;
}

.home-zones__card:last-child {
  background-color: var(--clr-bg-primary-l-2);
  padding: var(--space-l);
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
}

.home-zones__card__icon {
  display: flex;
  padding: 1rem;
  background-color: var(--clr-border-primary-l-2);
  border-radius: var(--radius-site);
}

.home-zones__card__icon svg {
  height: 6rem;
  width: 6rem;
}

.home-zones__card__title::after {
  content: "";
  position: absolute;
  bottom: -0.8rem;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: var(--clr-bg-accent1);
}

.icon1-clr1 {
  fill: var(--clr-bg-grey);
  stroke: var(--clr-bg-primary);
}

.icon1-clr2 {
  fill: var(--clr-bg-primary);
  stroke: var(--clr-bg-primary);
}

.home-zones__card__points span {
  color: var(--clr-text-primary);
  font-weight: 600;
}

/* DOULEURS */

.home-douleurs__img img {
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-site);
}

@media (min-width: 1025px) {
  .home-douleurs__img img {
    height: 60rem;
  }
}

@media (max-width: 1024px) {
  .home-douleurs__img img {
    height: 30rem;
  }
}

/* PLATEAU TECHNIQUE */

.home-plateau__grid {
  display: grid !important;
  gap: var(--space-m);
}

@media (min-width: 1025px) {
  .home-plateau__grid {
    grid-template-columns: 1fr 36rem 1fr !important;
    grid-template-rows: repeat(3, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .home-plateau__grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }
}

.home-plateau__illust {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (min-width: 1025px) {
  .home-plateau__illust {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 1024px) {
  .home-plateau__illust {
    grid-row: 1;
  }
}

.home-plateau__img {
  display: flex !important;
  width: 100%;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .home-plateau__img {
    width: 50%;
  }
}

.home-plateau__img img {
  aspect-ratio: 1;
  height: auto;
  width: 100%;
  object-position: center;
  object-fit: cover;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border-primary-l-1);
  padding: 1.2rem;
}

.home-plateau__card {
  padding: var(--space-m);
  border: 1px solid var(--clr-border-primary-l-1);
  background-color: var(--clr-bg-light);
  border-radius: var(--radius-site);
}

@media (max-width: 1024px) {
  .home-plateau__card {
    align-items: center !important;
    text-align: center;
  }
}

@media (min-width: 1025px) {
  .home-plateau__card:hover {
    background-color: var(--clr-bg-primary);
  }

  .home-plateau__card:hover h3,
  .home-plateau__card:hover p {
    color: var(--clr-bg-light);
  }

  .home-plateau__card:is(
      :nth-child(2),
      :nth-child(4),
      :nth-child(6)
    ) {
    text-align: start;
  }

  .home-plateau__card:is(
      :nth-child(1),
      :nth-child(3),
      :nth-child(5)
    ) {
    text-align: end;
  }
}

.home-plateau__illust > div:nth-child(2) {
  position: absolute;
  width: 100%;
  height: 100%;
}

@media (min-width: 1025px) {
  .dot {
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--clr-bg-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
      rotate(calc(var(--i) * 45deg)) translateY(-180px);
  }

  .home-plateau__grid
    > .home-plateau__card:nth-child(1):hover
    ~ .home-plateau__illust
    .dot:nth-child(6),
  .home-plateau__grid
    > .home-plateau__card:nth-child(2):hover
    ~ .home-plateau__illust
    .dot:nth-child(1),
  .home-plateau__grid
    > .home-plateau__card:nth-child(3):hover
    ~ .home-plateau__illust
    .dot:nth-child(5),
  .home-plateau__grid
    > .home-plateau__card:nth-child(4):hover
    ~ .home-plateau__illust
    .dot:nth-child(2),
  .home-plateau__grid
    > .home-plateau__card:nth-child(5):hover
    ~ .home-plateau__illust
    .dot:nth-child(4),
  .home-plateau__grid
    > .home-plateau__card:nth-child(6):hover
    ~ .home-plateau__illust
    .dot:nth-child(3) {
    background-color: red;
    animation: pulse 0.8s infinite ease-in-out;
  }

  @keyframes pulse {
    0% {
      transform: translate(-50%, -50%)
        rotate(calc(var(--i) * 45deg)) translateY(-180px)
        scale(1);
      opacity: 1;
    }
    50% {
      transform: translate(-50%, -50%)
        rotate(calc(var(--i) * 45deg)) translateY(-180px)
        scale(1.8);
      opacity: 0.6;
    }
    100% {
      transform: translate(-50%, -50%)
        rotate(calc(var(--i) * 45deg)) translateY(-180px)
        scale(1);
      opacity: 1;
    }
  }
}

@media (max-width: 1024px) {
  .dot {
    display: none;
  }
}

/* AVIS GOOGLE */

.google-reviews__title {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center;
  gap: var(--space-2xs);
  padding-top: 1.6rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--clr-border-grey-l-1);
}
