/* Style pour les mobiles */
footer {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  color: var(--footer-couleur-iconesEtTextes);

  .mascotte_footer_mobile {
    display: block;
    position: absolute;
    bottom: 0;
    right: 10px;

    img {
      width: clamp(8rem, 3.8621rem + 16.9761vw, 12rem);
    }

  }

  .reseau-lien {
    img {
      width: clamp(2rem, 1.6421rem + 1.7897vw, 2.5rem);
      transition: transform 0.2s ease-in-out;
      
      &:hover {
        filter:
          brightness(0) contrast(210%) invert(83%) sepia(68%) saturate(820%) hue-rotate(135deg) brightness(110%) drop-shadow(0 0 6px #37E6D5) drop-shadow(0 0 12px #37E6D5);
        transform: scale(1.05);
      }
    }

  }

  /* === SECTION PRINCIPALE === */
  .footer_section {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 4rem;

    .menu_footer {
      font-size: var(--mobile-taille-liens);
      margin: 10px 0;

      a {
        color: var(--footer-couleur-iconesEtTextes);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        padding: 0 0 1rem;
        
          &:hover {
            filter:
              brightness(0) contrast(210%) invert(83%) sepia(68%) saturate(820%) hue-rotate(135deg) brightness(110%) drop-shadow(0 0 6px #37E6D5) drop-shadow(0 0 12px #37E6D5);
            transform: scale(1.05);
          }
      }
    }

    .menu {
      list-style: none;
    }

    .espace {
      display: none;
    }

    .mascotte_footer {
      display: none;
    }

    .reseau_sociaux {
      z-index: 99;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      padding: 1rem 0 1rem;
    }
  }

  /* === COPYRIGHT === */
  .copyright {
    font-size: var(--mobile-taille-miniTextes);
    margin: 0 4rem 1rem;
    text-align: center;
    font-family: var(--police-secondaire);
  }

  /* === TABLETTE === */
  @media (min-width: 768px) {

    .mascotte_footer_mobile {
      display: none;
    }

    .footer_section {
      display: grid;
      grid-template-columns: 2fr 1fr;
      grid-template-rows: 1fr 1fr;
      flex-direction: column;
      margin: 4rem 0 0;
      height: 20rem;
      align-items: end;

      .menu_footer {
        display: flex;
        flex-wrap: wrap;
        gap: 3rem;
        grid-row-start: 1;
        font-size: var(--tablette-taille-liens);
      }

      .mascotte_footer {
        display: block;
        position: absolute;
        width: 55%;
        align-self: end;
        height: auto;
        translate: -30px 60px;

        img {
          width: 100%;
          max-width: 40rem;
        }
      }

      .info_footer {
        display: flex;
        flex-direction: column;
        width: 350px;
        grid-row-start: 1;
        grid-column-start: 2;
      }

      .reseau_sociaux {
        align-self: flex-start;
        grid-row-start: 2;
        grid-column-start: 2;
      }
    }

    .copyright {
      display: flex;
      justify-content: center;
      font-size: var(--tablette-taille-miniTextes);
      margin: 1rem;
    }
  }

  /* === DESKTOP === */
  @media (min-width: 1024px) {
    .footer_section {
      grid-template-columns: 1fr 1fr 1fr;

      .menu_footer {
        flex-direction: column;

        a {
          font-size: var(--desktop-taille-liens);
          display: flex;
          flex-wrap: wrap;
          gap: 3rem;
        }
      }

      .espace {
        display: flex;
        opacity: 0;
        width: 30%;
      }

      .info_footer {
        order: 2;
        grid-column-start: 3;
      }

      .reseau_sociaux {
        grid-row-start: 1;
        justify-self: center;
        grid-column-start: 2;

        .reseau_lien {
          width: 68px;
          height: 68px;
        }
      }
    }

    .copyright {
      display: flex;
      justify-content: center;
      margin: 1rem;
      z-index: 200;
    }
  }
}