@font-face {
  font-family: "Google Sans Code";
  src: url(../fonts/GoogleSansCode-Regular.ttf) format("ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switza Regular";
  src: url("../fonts/swiza-regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html,
body {
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

body {
  font-family: "Switza Regular", sans-serif;
  font-size: 1em;
  background: #f9f9f9;
  color: #000000;
  min-width: 100vw;
  padding: 42px 32px 42px 32px;
}

.nn {
  transition: opacity 0.2s;
  opacity: 1;
  color: #626262;
  display: block;
}
.nn.fade-out {
  opacity: 0;
}

nav {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.l-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 12;
}

.l-nav a {
  display: flex;
}

.r-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
}

.nav-button {
  border-radius: 4px;
  background: #e7e7e7;
  padding: 4px 12px;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  transition: ease 200ms;
}

@-moz-document url-prefix() {
  .nav-button {
    padding: 6px 12px 4px 12px;
  }
}

.nav-button:hover {
  background: #dad8d8;
  transition: ease 200ms;
}

.nav-activ {
  background: #dad8d8;
}

.nn-generator {
  display: flex;
  border-radius: 4px;
  background: #e7e7e7;
  padding: 4px 12px;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  gap: 10px;
}

@-moz-document url-prefix() {
  .nn-generator {
    padding: 6px 12px 4px 12px;
  }
}

h1 {
  font-size: 42px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 0px;
  margin: 0px;
}

h2 {
  font-size: 33px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 0px;
  margin: 0px;
}

h3 {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 0px;
  margin: 0px;
}

p {
  margin: 0px;
}

.nav-guide {
  border-radius: 4px;
  background: #e7e7e7;
  padding: 10px 12px;
  position: absolute;
  top: 35px;
  z-index: 10;
}

a {
  color: #000;
  text-decoration-line: none;
}

/* Responsive navbar */

.burger {
  display: none; /* caché en desktop */
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 12;
  padding: 10px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: black;
  transition: 0.3s;
}

/* Animation menu burger */

.burger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menu nav mobile */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;

  font-size: 2rem;
  text-transform: uppercase;

  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 11;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Responsive */

@media (max-width: 1024px) {
  .r-nav {
    display: none; /* cache la nav desktop */
  }

  .burger {
    display: flex; /* affiche le burger */
  }

  .nav-guide {
    display: none;
  }

  h1 {
    font-size: 36px;
  }
}

@media (max-width: 577px) {
  h1 {
    font-size: 28px;
  }
}

@media (max-width: 512px) {
  .nn {
    display: none;
  }
}

@media (max-width: 465px) {
  h1 {
    font-size: 21px;
  }
}
