/* 4.2 - Footer
 * The page footer
**/

/** Main styling **/

body {
    // On colorise le background de la page complete de la même
    // couleur que le fond du footer.
    background-color: $color-footer-back;
}

footer {
    @include angled-edge('outside top', 'upper left', $color-footer-back, 32);
    color: getTextColorFromBackground($color-footer-back);
    padding-top:$lineheight;
    font-size: 0.85rem!important;
    padding-bottom:$lineheight;

    .footer-collumns {
      @include container($container-size-large, $lineheight);
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      grid-gap: $lineheight;
      padding-bottom: $lineheight;

      @include lg() {
        grid-template-columns: 1fr 1fr 1fr;
      }

      a, a:visited {
        &:hover, &:active, &:visited {
          color: getTextColorFromBackground($color-footer-back);
        }
      }

    }
}

/** Social media buttons **/

ul.social {
    font-size:1.5em;
    padding-bottom:1.5em;
    margin:auto;
    text-align:center;
    li {
        margin:0;
        list-style: none;
        display: inline;
        a, a:visited {
            color: $color-footer-back;
            background-color: getTextColorFromBackground($color-footer-back);
            padding:0.3em;
            padding-left:0.36em;
            padding-right:0.36em;
            vertical-align:middle;
            border-radius:100%;
            &:hover {
                color:getTextColorFromBackground($color-footer-back);
                background-color: $color-footer-back;
            }
        }
    }
}
