.tabs {
  text-align: center;

  > * {
    text-align: initial;
  }

  header {
    display: inline-block;
    padding: 6px;
    background: #eee;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    background: transparent;
    margin-right: 10px;
    position: relative;

    &:hover {
      &::after {
        transform: scaleX(1);
      }
    }

    i {
      font-weight: normal;
      font-size: 24px;
      margin-top: -2px;
      margin-right: 6px;
      display: inline-block;
      vertical-align: middle;
    }

    i18n {
      display: inline-block;
    }

    &::after {
      content: " ";
      display: block;
      transform: scaleX(0);
      height: 2px;
      width: 100%;
      position: absolute;
      bottom: 0;
      left: 0;
      transition: transform 250ms ease;
    }
  }

  header.selected {
    &::after {
      transform: scaleX(1);
    }
  }

  section {
    margin-top: -1px;
    border: 1px solid;
    padding: 6px;
    position: relative;
  }
}

.tabs.heading-tabs {
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  margin-bottom: 2rem !important;
  overflow-x: auto;

  > * {
    text-align: initial;
  }

  header {
    cursor: pointer;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    margin: 0 0.4rem;
    padding: 0.625rem 1.5rem;
    transition: color 250ms ease;

    a {
      vertical-align: middle;

      i {
        font-size: 15px;
        margin-right: 5px;
      }

      &:hover {
        color: $primary;
      }
    }
  }
}

@media screen and (max-width: $tablette) {
  .tabs.heading-tabs {
    header {
      font-size: 12px;
    }
  }
}

@media screen and (max-width: $fat-mobile) {
  .tabs.heading-tabs {
    header {
      &.selected {
        order: -1;
      }
    }
  }
}
