@import url("./utils/modern-normalize.css");
@import url("./utils/archivo-font.css");
@import url("./utils/roboto-font.css");
@import url("./utils/ruda-font.css");
@import url("./utils/archivo-black-font.css");

@layer base {
  :root {
    --primary-color: #646363;
    --secondary-color: #00ff00;
    --tertiary-color: #456990;
    --background-color: #ffffff;
    --secondary-background-color: #f9f9f9;
    --field-background-color: #f4f4f4;
    --w4tch-red: #ff0600;
    --w4tch-blue: #1877f2;
    --text-color: #000000;
    --border-radius: 5px;
    --base-title-size: 1.25rem;
    --base-text-size: 1rem;
    --base-title-line-height: 1.75rem;
    --base-text-line-height: 1.5rem;
  }

  body {
    background-color: var(--background-color);
    color: var(--primary-color);
    font-family: "Archivo", sans-serif;
    font-size: var(--base-text-size);
    line-height: var(--base-text-line-height);
    width: 100vw;
    overflow-x: hidden;
  }

  a:visited,
  a:link,
  a:active {
    color: initial;
    text-decoration: none;
  }

  .hidden {
    display: none !important;
  }

  .transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }

  /* <!-- W4tch Header | CSS --> */
  header {
    display: flex;
    justify-content: space-between;
    padding-left: 8rem;
    padding-right: 14rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-family: "Roboto", sans-serif;
    font-size: var(--base-text-size);
    line-height: var(--base-text-line-height);
  }

  header > .logo_link {
    display: flex;
    align-items: center;
  }

  header > #desktop-nav > ul {
    display: flex;
    list-style: none;
    column-gap: 2.25rem;
  }

  header .hover-underline-animation {
    color: var(--text-color);
    text-decoration: none;
  }
  .hover-underline-animation {
    display: inline-block;
    position: relative;
    transition: color 0.25s ease-out;
  }

  .hover-underline-animation::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2.5px;
    bottom: 0;
    left: 0;
    background-color: var(--tertiary-color);
    transition: transform 0.25s ease-out;
  }
  .hover-underline-animation:hover::after {
    transform: scaleX(1);
  }
  .hover-underline-animation.center::after {
    transform-origin: bottom center;
  }
  .hover-underline-animation.center:hover::after {
    transform-origin: bottom center;
  }
  .hover-underline-animation.active {
    font-weight: 700;
  }
  .hover-underline-animation.active::after {
    transform: scaleX(1);
  }

  /* <!-- W4tch Navigation Mobile | CSS --> */
  .stop-scrolling {
    height: 100dvh;
    overflow: hidden;
  }
  #mobile-nav {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100dvw;
    background-color: var(--background-color);
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 5rem;
  }

  #mobile-nav > .links_container {
    height: 95%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    margin-bottom: 2rem;
  }

  #mobile-nav > .links_container > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    row-gap: 2rem;
    width: fit-content;
    padding-left: 0;
  }
  #mobile-nav a.active {
    font-weight: 700;
  }
  #mobile-nav a.active::after {
    content: "";
    display: block;
    width: 100%;
    border-bottom: 2px solid var(--tertiary-color);
    margin-top: 1rem;
  }
  #mobile-nav > .links_container > .languages_buttons_mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
    height: 2rem;
  }
  #mobile-nav > .links_container > .languages_buttons_mobile > a {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  #mobile-nav > .links_container > .languages_buttons_mobile > a::after {
    border-bottom: 2px solid var(--w4tch-red);
  }
  /* END */

  .languages_buttons {
    position: absolute;
    top: 0;
    right: 6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 2rem;
  }

  .languages_buttons > a {
    padding: 0.375rem;
    color: var(--primary-color);
    text-align: center;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }
  .languages_buttons > a:hover {
    text-decoration: underline;
    transform: scale(1.1);
  }

  .languages_buttons > a.active {
    font-weight: bold;
    color: var(--background-color);
    background-color: var(--w4tch-red);
  }

  .default_button {
    padding: 0.625rem 1.25rem;
    background-color: var(--tertiary-color);
    border: 2px solid var(--tertiary-color);
    border-radius: var(--border-radius);
    color: var(--background-color) !important;
    text-align: center;
    text-decoration: none;
    width: fit-content;
    font-weight: 700;
  }
  .default_button:hover {
    opacity: 0.7;
  }

  .reset-html-button {
    -webkit-appearance: none;
    border-radius: 0;
    text-align: inherit;
    background: none;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
    border: none;
    color: inherit;
    font: inherit;
  }

  .button {
    background-color: rgb(102, 102, 102, 0.56);
    padding: 1rem 0.875rem;
    margin: auto 0.5rem !important;
  }
  .button:hover {
    background-color: rgb(102, 102, 102, 0.8);
  }
  .button:disabled {
    opacity: 0.5;
  }
  .button:hover:disabled {
    background-color: rgb(102, 102, 102, 0.56);
  }
  /* END */

  /* <!-- W4tch Footer | CSS --> */
  .blue_gradient {
    background: rgb(0, 0, 0);
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(69, 105, 144, 0.9654455532212886) 67%,
      rgba(69, 105, 144, 1) 100%
    );
  }

  .red_gradient {
    background: rgb(0, 0, 0);
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(255, 6, 0, 1) 67%,
      rgba(255, 6, 0, 1) 100%
    );
  }

  footer > .contact {
    height: 300px;
    display: flex;
    justify-content: space-between;
    padding-left: 8rem;
    padding-right: 13rem;
  }
  footer > .contact div:first-child {
    width: 60%;
    display: flex;
    align-items: center;
  }
  footer > .contact div:last-child {
    width: 40%;
    display: flex;
    align-items: end;
    justify-content: end;
    padding-bottom: 5rem;
  }
  footer > .contact h2 {
    font-family: "Ruda", sans-serif;
    font-weight: 900;
    font-size: 3rem;
    line-height: 1;
    color: var(--background-color);
  }
  footer > .contact a {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5rem;
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
  }
  footer > .contact a:hover {
    opacity: 0.7;
  }
  footer > .footer-content {
    background: rgb(0, 0, 0);
    color: var(--background-color);
    padding-left: 8rem;
    padding-right: 8rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  footer > .footer-content > div {
    display: flex;
    justify-content: space-between;
  }

  footer > .footer-content > div > div:first-child {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  footer > .footer-content > div > div:first-child > img {
    width: 154px;
  }
  footer > .footer-content > div > div:first-child > p {
    width: 60%;
  }
  footer > .footer-content > div > div:last-child {
    width: 60%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  footer > .footer-content a {
    color: var(--background-color) !important;
  }
  footer > .footer-content a:hover {
    color: var(--background-color) !important;
    opacity: 0.7;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 5rem;
    padding: 0;
  }

  .footer-links-column > ul {
    list-style: none;
    padding: 0;
  }

  .footer-links-column h3 {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  .footer-links-column li {
    list-style: none;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .footer-infos {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
  }

  .footer-infos .infos-title {
    font-weight: 700;
    padding: 0;
    margin: 0;
  }
  .footer-infos .infos-data {
    padding: 0;
    margin: 0;
  }

  footer hr {
    opacity: 0.3;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  /* END */

  @media (max-width: 1024px) {
    :root {
      --base-text-size: 0.875rem;
      --base-title-size: 1.125rem;
    }

    .sm-hidden {
      display: none !important;
    }
    .sm-block {
      display: block !important;
    }

    .md-hidden {
      display: hidden !important;
    }
    .md-block {
      display: block !important;
    }

    .lg-hidden {
      display: hidden !important;
    }
    .lg-block {
      display: block !important;
    }

    /* <!-- W4tch Header | CSS --> */
    header {
      padding-left: 2rem;
      padding-right: 2rem;
      font-size: var(--base-text-size);
    }
    /* END */

    /* <!-- W4tch Footer | CSS --> */
    footer > .contact {
      padding-left: 2rem;
      padding-right: 2rem;
      flex-direction: column;
      height: auto;
      padding-bottom: 2rem;
    }
    footer > .contact div:first-child {
      width: 100%;
    }
    footer > .contact div:last-child {
      width: 100%;
      align-items: start;
      justify-content: start;
      padding-bottom: 0;
    }
    footer > .contact h2 {
      font-size: 2rem;
      line-height: 1;
    }
    footer > .contact a {
      font-size: 1rem;
      line-height: 1.5rem;
      padding: 1rem 1.25rem;
    }

    footer > .footer-content {
      padding-left: 2rem;
      padding-right: 2rem;
      padding-top: 2rem;
      padding-bottom: 2rem;
    }

    footer > .footer-content > div {
      flex-direction: column;
    }
    footer > .footer-content > div > div:first-child {
      width: 100%;
    }
    footer > .footer-content > div > div:first-child > img {
      width: 154px;
    }
    footer > .footer-content > div > div:first-child > p {
      width: 100%;
    }

    footer > .footer-content > div > div:last-child {
      width: 100%;
      flex-direction: column;
      align-items: initial;
      row-gap: 1rem;
    }

    .footer-infos {
      justify-content: flex-start;
      flex-direction: row;
      flex-wrap: wrap;
      column-gap: 1rem;
    }
    /* END */
  }

  @media (max-width: 1280px) {
    /* <!-- W4tch Header | CSS --> */
    header {
      padding-left: 3rem;
      padding-right: 3rem;
    }
  }
}
