@import url("#{$common_srv}/css/fonts.php") all;

body {
  font-size: 16px;
  line-height: 1.846;
  color: #575756;
  font-family: fonts(default), "Helvetica", "Sans-Serif";
}

.italic {
  font-style: italic;
}

.bold {
  font-weight: bold;
}

.normal {
  font-weight: normal;
  font-family: fonts(default);
}

.uppercase {
  text-transform: uppercase;
}

$font-weight: (
        100: 100,
        200: 200,
        300: 300,
        400: 400,
        500: 500,
        600: 600,
        700: 700,
        800: 800,
        900: 900
);

// Generation for all font-weight
@each $name, $weight in $font-weight {
  .font-weight-#{$name} {
    font-weight: $weight;
  }
}

u,
.underline {
  text-decoration: underline;
}

.no-underline {
  text-decoration: none !important;

  &:hover,
  &:focus,
  &:active {
    text-decoration: none !important;
  }
}

.center {
  margin: auto;
  text-align: center;
  justify-content: center;
}

.justify {
  text-align: justify;
}

.align-right {
  text-align: right;
}

.align-left {
  text-align: left;
}

.indent {
  text-indent: 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
  font-family: fonts(titles);
  transition: font-size 0.3s;
  -webkit-transition: font-size 0.3s;
  -o-transition: font-size 0.3s;
  -moz-transition: font-size 0.3s;
  max-width: 100%;

  &.normal,
  .normal {
    font-weight: normal;
    font-family: fonts(titles);
    font-weight: lighter;
  }
}

h1.colored,
h2.colored,
h3.colored,
h4.colored,
h5.colored,
h6.colored {
  color: esprit-sentiers(orange);
}

h1 {
  font-size: 65px;

  &.uppercase,
  &.uppercase.big {
    font-size: 50px;
  }

  @media (max-width: 420px) {
    font-size: 50px;
    &.uppercase,
    &.uppercase.big {
      font-size: 35px;
    }
  }

  @media (max-width: 600px) {
    font-size: 55px;
    &.uppercase,
    &.uppercase.big {
      font-size: 45px;
    }
  }

  @media (max-width: 490px) {
    &.uppercase.big {
      font-size: 38px;
    }
  }

  @media (max-width: 430px) {
    &.uppercase,
    &.uppercase.big {
      font-size: 32px;
    }
  }
  @media (max-width: 310px) {
    font-size: 45px;
    &.uppercase,
    &.uppercase.big {
      font-size: 30px;
    }
  }
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 22px;
}

h4,
footer h4 {
  font-size: 18px;
}

@each $name, $color in $esprit-sentiers {
  .text-es-#{$name} {
    color: $color !important;
  }
}

@each $name, $color in $colors {
  .text-es-#{$name} {
    color: $color !important;
  }
}