/* !GENERAL */

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px */
  overflow-x: hidden;
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* @font-face {
    font-family: 'Aileron';
    src: url(fonts/Aileron-Regular.otf);
} */

@font-face {
  font-family: "Space";
  src: url(fonts/SpaceGrotesk-VariableFont_wght.ttf);
}

body {
  font-family: "Space", sans-serif;
  letter-spacing: 1px;
  line-height: 2;
  overflow-x: hidden;
  position: relative;
  background: #ffd527;
  /* background: white; */
  /* scroll-behavior: smooth; */
}

h2 {
  font-size: 2.4rem;
}

h4,
p {
  font-size: 1.6rem;
}

.mob {
  display: none;
}

#topnav_hamburger_icon {
  display: none;
}

svg {
  width: 20px;
  height: 20px;
  align-self: center;
}

/* NAV */

nav {
  grid-area: nav;
  position: fixed;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 50px 100px;
  /* text-align: right; */
  font-size: 1.8rem;
  text-transform: uppercase;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: black;
}

a:active {
  color: indigo;
}

.breathe:hover {
  animation-name: breathe;
  animation-duration: 4.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes breathe {
  0% {
    color: rgba(250, 250, 250, 0.8);
  }

  50% {
    color: rgba(250, 250, 250, 0.137);
  }

  100% {
    color: rgba(250, 250, 250, 0.8);
  }
}

/* !CONTACT */

#contact {
  height: 100vh;
  /* background: #ffd527; */
  display: grid;
  grid-column: 1fr 2fr 1fr;
  grid-template-areas:
    ". h1 ."
    ". h2 ."
    ". social sign";
  /* border: 2px solid red; */
}

.contact h1 {
  /* border: 2px solid blue; */
  grid-area: h1;
}

.contact h2 {
  grid-area: h2;
}
.contact .social {
  grid-area: social;
}

.contact .social a {
  display: flex;
  gap: 0.6rem;
}

.contact .signature {
  grid-area: sign;
  line-height: 1.4;
  text-align: right;
  justify-self: center;
  align-self: center;
}

.signature p {
  font-size: 1.2rem;
}

.signature span {
  font-size: 1rem;
  font-style: italic;
}

/* CONTACT */

/* !-------------- Responsive -------------- */

@media (max-width: 950px) {
  #contact {
    grid-column: 1fr auto auto;
  }

  /* -------------------- Menu Burger ----------------------- */
  .hide {
    display: none;
  }

  .mob {
    display: block;
    position: fixed;
  }

  .burger {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .burger span {
    width: 45px;
    height: 5px;
    background-color: black;
    border-radius: 15px;
  }

  #topnav_hamburger_icon {
    margin: 20px;
    position: fixed;
    display: block;
  }

  #root {
    position: fixed;
    overflow-x: hidden;
    z-index: 3;
  }

  #topnav_responsive_menu {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    width: 55vw;
    height: 55vh;

    z-index: 3;

    transform-origin: 0% 0%;
    transform: translate(-200%, 0);

    transition: transform 1s;
  }

  /* and let's slide it in from the left */
  #topnav_responsive_menu.open {
    transform: none;
    position: fixed;
  }

  #topnav_responsive_menu ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 40px;
    text-align: right;
    background: rgba(0, 0, 0, 0.85);
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
  }

  #topnav_responsive_menu li {
    font-size: 16px;
    padding: 5% 0;
  }

  #topnav_responsive_menu a {
    color: #ffd527;
  }

  #topnav_responsive_menu a:active {
    color: indigo;
  }

  .retour {
    text-decoration: none;
    color: rgb(185, 0, 176);
  }
  /* -------------------- Menu Burger ----------------------- */
}

@media (max-width: 700px) {
  h1 {
    font: 700 20vw "Aileron", sans-serif;
    letter-spacing: none;
    padding-top: 40px;
    padding-left: 40px;
  }

  #contact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 30px;
    height: 85vh;
  }

  .contact h1 {
    padding: 0;
    padding-top: 10px;
  }

  .contact h2 {
    font-size: 20px;
  }

  .contact .signature {
    justify-self: flex-end;
    align-self: flex-end;
  }
}
