/******************************************
 * GLOBAL FOOTER — BASE + MOBILE
 ******************************************/
.main__footer {
  padding: 1.2rem;
  margin-top: auto;
  background-color: var(--color-primary--1);
}

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

/*** Brand section ***/
.footer_brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer_brand > * {
  margin: 0;
}

.brand__image > article {
  max-height: 90px;
  height: 100%;
}

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

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

.brand__title {
  font-size: var(--heading-size-s);
  font-family: var(--font--garamond);
  font-weight: 500;
  max-width: 700px;
}

/******************************************
 * SOCIAL ICONS
 ******************************************/
.footer_socials > nav > .menu {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin: 0;
}

.footer_socials > nav > .menu > .menu__item > a {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  text-indent: -9999px; /* masque le texte mais garde l’accessibilité */
  overflow: hidden;
}

.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; /* le clic passe au lien */
}

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

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

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

/******************************************
 * MENU LEVEL 1 — BASE + MOBILE
 ******************************************/
.footer__menu--level1 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 16px;
  margin-bottom: 8px;
  margin-top: 16px;
}

.footer__menu > nav > .menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

.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;
}

/******************************************
 * MENU LEVEL 1 — DESKTOP
 ******************************************/
@media screen and (min-width: 999px) {
  .main__footer {
    padding: 6rem;
  }

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

  .footer__menu--level1 {
    padding-bottom: 16px;
    align-items: unset;
  }
}

/******************************************
 * MENU LEVEL 2 — BASE + DESKTOP
 ******************************************/
.footer__menu--level2 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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