/* ======================================
   FOOTER WRAPPER
====================================== */
.main__footer {
  padding: 1.2rem;
  background-color: var(--color-tertiary--dark);
}

.main__footer > * {
  color: var(--color-white);
}

/* ======================================
   LINKS
====================================== */
.main__footer a {
  color: var(--color-white);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 2px;
  transition: background-size 0.3s ease;
}

.main__footer a:hover,
.main__footer a:focus {
  background-size: 100% 2px;
}

.main__footer a.is-active {
  color: var(--color-white) !important;
}

/* ======================================
   BRAND
====================================== */
.brand__image {
  padding: 16px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

.brand__image img {
  max-height: 90px;
  height: auto;
}

.footer__brand--wrapper {
  flex-direction: column;
  gap: 16px;
}

.footer_brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer_brand > * {
  margin: 0;
}

.footer_brand p {
  font-size: var(--content-size);
  font-family: var(--font--barlow);
  font-weight: 500;
  max-width: 700px;
}

/* ======================================
   LEVEL 1
====================================== */
.footer__level1 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 32px;
}

/* ======================================
   SOCIALS
====================================== */
.footer__socials-wrapper {
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 32px;
  margin-top: 10px;
}

.footer_socials nav > .menu {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer_socials nav > .menu > .menu-item > a {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  text-indent: -9999px;
  overflow: hidden;
  background-image: none;
  padding-bottom: 0;
}

.footer_socials nav > .menu > .menu-item > a:hover,
.footer_socials nav > .menu > .menu-item > a:focus {
  background-image: none;
  background-size: 0;
}

.footer_socials nav > .menu > .menu-item > a::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.footer_socials nav > .menu > .menu-item > a:hover::after {
  opacity: 0.7;
}

.icon--linkedin::after {
  background-image: url("../../images/icons/linked_icon.svg");
}

/* ======================================
   MENU
====================================== */
.footer__menu nav > .menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__menu nav > .menu > .menu-item {
  font-size: var(--content-size);
}

/* ======================================
   COPYRIGHT
====================================== */
.footer__copyright {
  font-size: var(--content-size);
  color: var(--color-primary--xclear);
  align-self: center;
}

/* ======================================
   DESKTOP (999px+)
====================================== */
@media screen and (min-width: 999px) {
  .main__footer {
    padding: 5rem 6rem 6rem;
  }

  .footer__level1 {
    align-items: unset;
  }

  .footer__menu nav > .menu {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ======================================
   MENU LEVEL 2
====================================== */
.footer__menu--level2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 8px;
}

@media screen and (min-width: 999px) {
  .footer__menu--level2 {
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 5px;
    margin-top: 30px;
  }
}

/* ======================================
   UTILS
====================================== */

/* Visually hidden footer menu title */
.menu--pied-de-page---bas-menu-footer-2 > div[id="-menu"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
