footer {
  bottom: 0;
  width: 100%;
}

footer a {
  text-decoration: none;
  color: blanchedalmond;
  line-height: 1.6;
}

footer p {
  padding: 0;
}

.footer-top,
.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  min-height: auto;
  margin: 0 auto;
}

.footer-top:first-child div a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titre-footer {
  text-align: center;
  color: blue;
  margin: 20px;
}

.footer-bottom {
  width: 100%;
  min-height: 45vh;
  padding-top: 50px;
  background-image: url("../images/icones/Footer_ecran_1-40b6fb203b68ba3ce87c0e6900bdaffd.webp");
  background-size: 100% 100%;
  background-position: bottom center;
  background-repeat: no-repeat;

  ul {
    list-style: none;
  }
}

footer div>a {
  text-decoration: none;
  color: blue;
}

footer div>.titre-footer {
  text-decoration: none;
  color: blue;
}

.liens_sociaux {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;

  a {
    display: inline-block;
    width: 48px;
    height: 48px;
  }
}

.ctivitesList a {
  line-height: 1.5;
}

.planSite {
  display: flex;
  width: 50%;
  justify-content: space-around;
}

.sous_activites {
  padding-left: 5px;
}

a.aggrego-tech {
  display: flex;
  align-items: center;
  font-size: 50px;
  justify-content: center;
}

.Slide-AggregoTech {
  background-color: var(--couleur-primary);
  height: 75px;
  display: flex;
  width: 100%;
  position: relative;
  background-image: url("../images/Aggregotech-logo-f616359a5f8e98f92800a1a22817ceb3.webp");
  background-image: image-set(
    url("../images/Aggregotech-logo-6ea528243db3dd55f8e622311a2ad3f7.avif") type('image/avif') 1x,
    url("../images/Aggregotech-logo-f616359a5f8e98f92800a1a22817ceb3.webp") type('image/webp') 1x
  );
  background-repeat: repeat-x;
  background-position:left;
  background-size: auto 55px;

  a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;

    &:focus-visible {
      box-shadow: inset 0 0 0 4px #ffd700;
      border-radius: 4px;
    }
  }
}

#buttonTop {
  position: fixed;
  bottom: 3rem;
  right: 0.5rem;
  width: clamp(40px, 6vw, 60px);
  height : clamp(40px, 6vw, 60px);
  z-index: 999;
  transition: 0.5s ease-in;
  opacity: 0;
  border: 2px solid white;
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    width: 100%;
    height: auto;
    display: block;
  }

  &:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
    border-radius: 50%;
  }
}

@media only screen and (max-width: 768px) {
  footer {
    width: 100%;
    bottom: 0;
    position: relative;
  }

  .footer-top {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
  }

  .footer-top div {
    width: 30%;
    padding-top: 6vh;
  }

  .footer-top div svg {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 80px;
  }

  .liens_sociaux {
    display: flex;
    justify-content: space-between;
    align-items: center;
    order: -1;
  }

  .planSite {
    height: 160px;
    margin-bottom: 40vh;
    width: 90%;
  }

  .footer-bottom {
    background-image: url("../images/icones/footer_tablette_1-c92fae16dbba823adc0393e8ebcfcccf.webp");
    height: 380px;
  }
}

@media only screen and (max-width: 425px) {
  .footer-bottom {
    height: 400px;
    background-image: url("../images/icones/footer_Mobile_3-a31ba5766d07f6c1f75648d1a5a8ba4e.webp");
  }
}