body {
  font-family: "Montserrat Alternates", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000000;
}

nav {
  background: #000000;
  color: white;
  padding: 5px 0;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  color: #7f878e;
  text-decoration: underline;
}

/*cacher le menu burger en version desktop*/
.menu-toggle {
  display: none;
}

#hero {
  background-image: url("/img/herobanner2bis.jpg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  text-align: center;
  padding: 25vh 5vw;
  color: rgb(255, 255, 255);
  background-color: #000000;
  text-shadow: 1px 3px 0 #969696, 1px 13px 5px #aba8a8;
}

#about {
  margin: 5vh 0;
  padding: 0 5vw;
  color: white;
}

#about p {
  margin: 20px auto;
}

h2 {
  text-align: center;
}

#skills {
  margin: 5vh 0;
}

#skills h2 {
  color: white;
}

.skill-cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
  gap: 25px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  width: 150px;
  height: 150px;
  align-items: center;
  text-align: center;
}

.skill-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  box-shadow: 0px 0px 5px 1px #FFF;
  transition: transform 0.3s;
}

.skill-card img:hover {
  transform: scale(1.1);
}

.skill-card h3 {
  text-align: center;
  color: white;
}

#projects {
  margin: 5vh 0;
}

#projects h2 {
  color: white;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.project-card {
  border-radius: 5px;
  box-shadow: 0px 0px 5px 1px #FFF;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.project-card p {
  padding: 5px 10px;
  text-align: center;
}

.project-card h3 {
  padding: 5px 10px;
  text-align: center;
}

.project-card .btn {
  display: block;
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  margin: 15px;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s;
}

.project-card .btn:hover {
  transform: scale(1.05);
}

#contact {
  color: white;
  margin: 5vh 0;
}

#contact h2 {
  text-align: center;
}

form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  color: white;
  border: 1px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0px 0px 5px 1px #FFF;
}

form input,
form textarea {
  background-color: #ffffff;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 4px;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 100%;
}

form textarea {
  min-height: 100px;
}

form div {
  margin-bottom: 15px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form button {
  padding: 15px;
  width: 100%;
  border-radius: 4px;
  background-color: #ffffff;
  color: black;
  border: none;
  font-weight: bold;
  transition: transform 0.3s;
  cursor: pointer;
  font-size: 16px;

}

form button:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  nav {
    position: sticky;
    top: 0;
    height: 45px;
  }

  #nav-links {
    display: none;

  }

  #nav-links.show {
    display: flex;
    flex-direction: column;
    background-color: #003366;
    width: 100%;
    gap: 30px;
    padding: 30px 0px;

  }



}