footer {
  overflow: hidden;
  width: 100%;
  position: relative;
}
footer .footer__partners {
  position: relative;
  padding-bottom: 64px;
  direction: rtl;
}
footer .footer__partners * {
  direction: ltr;
}
footer .footer__partners::before {
  aspect-ratio: 1/1;
  content: "";
  background: url(../../assets/img/running-water.svg) no-repeat center/contain;
  height: 101%;
  position: absolute;
  display: block;
  left: 0;
  left: 30px;
}
footer .footer__partners .partners__title {
  text-align: center;
  margin-bottom: 58px;
}
footer .footer__partners .partners__title h2 {
  color: var(--color__main);
  margin-bottom: 6px;
}
footer .footer__partners .partners__title p {
  color: var(--color__red);
  font-weight: 700;
}
footer .footer__partners .partners__list {
  margin: 0 auto;
  gap: 30px;
}
footer .footer__partners .partners__list .partner {
  display: flex;
  justify-content: center;
  align-items: center;
}
footer .footer__partners .partners__list .partner img {
  max-height: 105px;
}
footer .footer__main {
  background: var(--color__main);
  padding-top: 45px;
  padding-bottom: 45px;
}
footer .footer__main h2 {
  color: var(--color__white);
}
footer .footer__main .wrapper {
  gap: 72px;
}
footer .footer__menu {
  margin-top: 24px;
  /* .menu__item {} */
}
footer .footer__menu .menu__items {
  display: grid;
  gap: var(--grid-gap, 1rem);
  grid-template-columns: repeat(6, 1fr);
}
footer .footer__menu .menu__item {
  text-align: center;
  grid-column: span 2;
}
footer .footer__menu .menu__item {
  text-align: center;
  grid-column: span 2;
}
footer .footer__menu .menu__link {
  font-size: 21px;
  font-weight: 700;
  line-height: 21px;
  text-decoration: none;
  color: var(--color__white);
  transition: var(--transition);
  /* &:hover {
  	color: var(--color__red);
  } */
}
footer .footer__logo {
  width: 100%;
  max-width: 398px;
  margin-bottom: 30px;
}
footer .footer__services {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  height: 100%;
}
footer .footer__services .btn--thermometer{
  text-align: left;
}
footer .footer__coords ul li, footer .footer__services ul li {
  color: var(--color__white);
  font-size: var(--content-font-size);
  font-weight: var(--content-font-weight);
  line-height: var(--content-line-height);
  display: flex;
  flex-flow: row nowrap;
  gap: 15px;
  align-items: center;
}
footer .footer__services a {
  margin-top: auto;
}
footer .footer__coords a, footer .footer__services a, footer .footer__policy a {
  color: var(--color__white);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 700;
  font-size: 21px;
}
footer .footer__coords a:hover, footer .footer__services a:hover, footer .footer__policy a:hover {
  color: var(--color__red);
}
footer .footer__coords ul li:not(:last-child), footer .footer__services ul li:not(:last-child) {
  margin-bottom: 8px;
}
footer .footer__coords ul li a {
  color: var(--color__white);
}
footer .footer__coords ul li:not(.footer__socials) a {
  font: inherit;
  text-decoration: none;
  position: relative;
}
/* footer .footer__coords ul li:not(.footer__socials) a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  height: 1px;
  width: 100%;
  margin-top: 2px;
  background-color: var(--color__white);
  transition: var(--transition);
  opacity: 0;
}
footer .footer__coords ul li:not(.footer__socials) a:hover::before {
  opacity: 1;
} */
footer .footer__coords ul li.footer__socials {
  gap: 24px;
  margin-top: 24px;
}
footer .footer__coords ul li.footer__socials a {
  display: block;
  height: 35px;
  width: 35px;
  text-align: center;
}
footer .footer__coords ul li.footer__socials a i {
  font-size: 38px;
}
footer .footer__services h2 {
  margin-bottom: 0;
}
footer div:has(> .footer__policy) {
  gap: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
footer .footer__policy {
  justify-self: flex-end;
  margin-top: auto;
}
footer .footer__pannels {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 35px;
}
footer .footer__pannels .footer__pannel {
  padding: 34px 40px;
  border-radius: 15px;
  border: 5px solid var(--color__blue-light);
  background-color: var(--color__blue-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 163px;
  position: relative;
  text-decoration: none;
  color: var(--color__white);
  transition: var(--transition);
}
footer .footer__pannels .footer__pannel::before {
  content: "";
  background: url(../../assets/img/pipewrench.svg) no-repeat right/contain;
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: var(--transition);
}
footer .footer__pannels .footer__pannel span {
  margin-bottom: 0;
}
footer .footer__pannels .footer__pannel.footer__pannel--alt {
  border: 5px solid var(--color__red);
  background-color: var(--color__red);
}
footer .footer__pannels .footer__pannel:hover {
  border-color: 5px solid var(--color__white);
}
footer .footer__pannels .footer__pannel:hover::before {
  opacity: 1;
}

footer .footer__payment {
  padding-bottom: 60px;
  position: relative;
}

footer .footer__payment::before {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color__main);
  width: 100vw;
  height: 100%;
  content: '';
  display: block;
  z-index: -1;
}

footer .footer__payment h2, footer .footer__payment p, footer .footer__payment label {
  color: var(--color__white) !important;
}

footer .footer__legal {
  padding-top: 9px;
  padding-bottom: 8px;
  position: relative;
  gap: 15px;
}
footer .footer__legal::before {
  content: "";
  display: block;
  height: 100%;
  background-color: var(--color__black);
  width: 100vw;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  z-index: 0;
}
footer .footer__legal > div {
  z-index: 1;
}
footer .footer__legal p, footer .footer__legal a {
  color: var(--color__white);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-decoration: none;
}

footer .footer__legal a {
  font-weight: 700;
}

.footer__btt {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 10;
  transition: var(--transition);
}
.footer__btt > .btn--back-to-top {
  background: var(--color__white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 3px solid var(--color__red);
  height: 75px;
  width: 75px;
  padding: 0;
  transition: var(--transition);
}
.footer__btt > .btn--back-to-top::before {
  content: "";
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 11px 17px 11px;
  border-color: transparent transparent var(--color__red) transparent;
  transform: rotate(0deg);
  background: none;
  height: auto;
  width: auto;
  position: relative;
  left: unset;
  right: unset;
  top: unset;
  bottom: unset;
}
.footer__btt > .btn--back-to-top::after {
  display: none;
}
.footer__btt > .btn--back-to-top:hover {
  background-color: var(--color__red);
  border-color: var(--color__white);
}
.footer__btt > .btn--back-to-top:hover::before {
  border-color: transparent transparent var(--color__white) transparent;
  transform: translateY(-4px);
}

.footer__form {
  max-height: 85vh;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: var(--color__red);
  border-radius: 15px;
  border: 3px solid var(--color__white);
  padding: 25px;
  width: 100%;
  max-width: 450px;
  color: var(--color__white);
  transition: var(--transition);
}
.footer__form.form-is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* La transition vient de votre classe .footer__form de base */
}
.footer__form .form__title {
  text-align: center;
  margin-bottom: 23px;
}
.footer__form h2, .footer__form h3 {
  margin-bottom: 0;
}
.footer__form h3 {
  font-size: 20px;
}
.footer__form .form__btn {
  display: none;
  border: 3px solid var(--color__white);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-color: transparent;
  background: var(--color__red);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-61%, -50%) rotate(-90deg);
  cursor: pointer;
  transition: var(--transition);
}
.footer__form .form__btn:hover {
  background: var(--color__main);
  border-right-color: var(--color__white);
}
.footer__form .form__btn .btn__form {
  height: 100%;
  width: 100%;
  position: relative;
  padding: 15px;
}
/* .footer__form .form__btn .btn__form::before {
  border-bottom: 3px solid var(--color__white);
  border-left: 3px solid var(--color__white);
  content: "";
  display: block;
  height: 25px;
  width: 25px;
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: var(--transition);
} */

/* RESPOSNIVE */
@media (max-width: 1440px) {
  footer .footer__partners .partners__list {
    max-width: 1000px;
  }
  .footer__form {
    max-height: initial;
    bottom: initial;
    top: 50%;
    right: 0;
    transform: translate(100%, -50%);
  }
  .footer__form .form__btn {
    display: block;
  }
  .footer__form.footer__form--active {
    transform: translate(-15px, -50%);
  }
  .footer__form.footer__form--active .form__btn .btn__form::before {
    transform: translate(-50%, -50%) rotate(225deg);
  }
}
@media (min-width: 1201px) {
  footer .footer__menu .menu__item:first-child {
    text-align: left;
  }
  footer .footer__menu .menu__item:last-child {
    text-align: right;
  }
}
@media (max-width: 1200px) {
  footer .footer__partners .partners__list {
    gap: 30px;
  }
  footer .footer__partners::before {
    display: none;
  }
  footer .footer__main .wrapper {
    gap: 36px;
  }
  footer .footer__menu .menu__items{
    grid-column-gap: 36px;
  }
  footer .footer__menu .menu__item {
    grid-column: span 3;
    text-align: left;
  }
  footer .footer__menu .menu__item:first-child {
    order: 3;
    grid-column: span 6;
  }

}
@media (max-width: 768px) {
  footer .footer__partners .partners__list {
    width: 100%;
    max-width: 360px;
    margin: auto;
    gap: 30px 15px;
  }
  footer .footer__partners .partners__list .partner {
    text-align: center;
  }
  footer .footer__partners .partners__list .partner img {
    display: block;
    margin: auto;
  }
  footer .footer__logo {
    margin: auto;
  }
  footer .footer__main .footer__menu .menu__items {
    grid-template-columns: 1fr;
  }
  footer .footer__main .footer__menu .menu__item {
    grid-column: span 6;
    text-align: center;
  }
  footer .footer__main div {
    text-align: center;
  }
  footer .footer__main div ul {
    width: 100%;
  }
  footer .footer__main div ul li {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  footer .footer__legal > div {
    text-align: center;
  }
  .footer__form {
    max-width: calc(100vw - 45px);
  }
  .footer__form .form__btn {
    transform: translate(-57%,-50%) rotate(-90deg);
  }
  .footer__form .form__btn .btn__form {
    padding: 5px 10px;
  }
  .footer__form.footer__form--active {
    transform: translate(0, -50%);
  }
}
/* Mobile */
@media (max-width: 480px) {
  footer .footer__partners {
    padding-bottom: 64px;
  }
  footer .footer__partners::before {
    display: none;
  }
  footer .footer__partners .partners__title {
    margin-bottom: 58px;
  }
  footer .footer__partners .partners__title h2 {
    margin-bottom: 6px;
  }
  footer .footer__partners .partners__title p {
    color: var(--color__red);
    font-weight: 700;
  }
  footer .footer__main {
    padding-top: 45px;
    padding-bottom: 45px;
  }
  footer .footer__main .wrapper {
    gap: 15px;
  }

  .footer__btt {
    right: 15px;
    bottom: 15px;
  }

  .footer__btt > .btn--back-to-top {
    height: 45px;
    width: 45px;
  }
}