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

@font-face {
  font-family: 'Nutgame';
  src: url('font/nutgame/NutgameDEMO-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nutgame';
  src: url('font/nutgame/NutgameDEMO-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Nutgame';
  src: url('font/nutgame/NutgameDEMO-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'NoirPro';
  src: url('font/NoirPro/NoirPro-BoldItalic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'NoirPro', sans-serif;
  font-style: normal;
  background-color: #f8f9fa;
  color: #0f0f0f;
}

/* CSS for desktop */

.menu {
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin-inline: auto;
  padding: 15px;
}

.logo {
  display: block;
  width: 100px;
}

.logo img {
  width: 100%;
}

.menu-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.menu-list a {
  text-decoration: none;
  color: #0f0f0f;
  padding: 30px;
  font-size: 1.3rem;
  font-family: 'Nutgame', sans-serif;
}

.menu-list a:hover {
  color: #A6A6A6;
  transition: ease 500ms;
}

.mobile-menu {
  width: 100%;
  top: 0;
  height: 80px;
  background-color: #fff;
  z-index: 10000;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.material-symbols-outlined {
  cursor: pointer;
  position: absolute;
  right: 20px;
}

@media (max-width : 768px) {
  .menu-container {
      width: 100%;
      flex-direction: column;
      justify-content: center;
  }

  .mobile-menu {
      display: flex;
  }

  .menu-list {
      flex-direction: column;
      padding: 0;
  }

  .menu-list a {
      box-sizing: border-box;
      display: block;
      font-size: 1.2rem;
  }

  .logo {
      margin-bottom: 20px;
      width: 120px;
  } 

  .menu {
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
      top: 80px;
      position: absolute;
      background-color: #f8f9fa;
  }

  .logo-mobile {
      display: block;
      width: 100px;
  }
}

.anim {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: #0f0f0f 1px solid;
}

svg path {
  fill: transparent;
  stroke: #0f0f0f;
  stroke-width: 1;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: textAnimation 4s ease-in-out 1 forwards;
}

@keyframes textAnimation {
  0% {
    stroke-dashoffset: 230;
  }
  80% {
    fill: transparent;
  }
  100% {
    stroke-dashoffset: 0;
    fill: #0f0f0f;
  }
}

.contact-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  font-family: 'Nutgame', sans-serif;
  font-size: 1.5rem;
}

.contact-title p {
  font-family: 'NoirPro', sans-serif;
}

.socials-container {
  text-align: center;
  margin-top: 20px;
}

.socials-container h2 {
  font-family: 'Nutgame', sans-serif;
  font-size: 2.5rem;
}

.socials ul {
  list-style: none;
  padding: 0;
}

.socials li {
  display: inline-block;
  margin: 0 10px;
}

.socials a {
  text-decoration: none;
  color: #0f0f0f;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #A6A6A6;
}

.socials i {
  margin-right: 8px;
}

.footer {
  text-align: center;
  padding: 20px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #0f0f0f;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer p {
  margin: 0;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  font-family: 'Nutgame', sans-serif;
  font-size: 1.5rem;
}

.footer-links li {
  margin: 0 15px;
}

.footer-links a {
  color: #0f0f0f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #A6A6A6;
}

  @media (width <= 510px) {
    svg {
      width: 370px;
      height: 370px;
      overflow: hidden;
    }
  }

  @media (width <= 768px) {
    .footer-links {
      font-size: 1.2rem;
      margin: 0;
      margin-bottom: 20px;
      margin-top: 10px;
    }
  
    .footer {
      padding: 5px;
      margin-top: 30px;
    }
  }


  .logo-anim {
  width: 70%;
  margin: 40px auto 0 auto;
  /* apparition lente */
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 2s ease-in-out 0.3s forwards;
}
/* animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}