@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  --background-color: #14171e;
  --primary-text-color: #eac556;
  --primary-font: 'Inter', sans-serif;
  font-size: 2vh; /* 16px approximativement */
}
a {
  text-decoration: none;
  color: var(--primary-text-color);
  font-weight: bold;
}
body {
  font-family: var(--primary-font);
  background-color: var(--background-color);
  color: var(--primary-text-color);
  margin: 0;
  padding: 0;
  text-align: center;
}

span {
  font-weight: bold;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  background-color: var(--background-color);
  display: flex;
  justify-content: flex-end;
}
nav {
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 2vh;
}

nav ul li a.active {
  border-bottom: 0.25vh solid var(--primary-text-color);
  padding-bottom: 0.25vh;
}

nav ul li {
  margin: 2vh;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary-text-color);
  font-weight: bold;
}

#accueil {
  padding: 4vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
}

#accueil h1 {
  text-align: justify;
  font-size: 6vh;
}

#accueil p {
  font-size: 3.5vh;
  text-align: justify;
}

#accueil img {
  border-radius: 25%;
  width: 30vw;
  margin-right: 5vw;
}

#left-column {
  margin-left: 6vh;
  margin-right: 30vh;
}

#projets {
  margin: 3.334vw 40vh;
  font-size: 2vh;
}

#projets ul {
  list-style-type: none;
  padding: 0;
}

#projets ul li {
  text-align: left;
  margin: 2vh 0;
}

#technos {
  display: flex;
  justify-content: space-around;
  font-size: 2.5vh;
}

#technos ul {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  padding: 0;
}

#technos ul li {
  margin-bottom: 3.2vh;
}

#technos ul li:last-child {
  margin-bottom: 0;
}

#a-propos {
  margin: 0 20vw;
  font-size: 3.5vh;
  text-align: justify;
  line-height: 1.3;
  margin-bottom: 25vh;
}

#a-propos h2 {
  font-size: 4.5vh;
  text-align: center;
}

#cvLink {
  border-bottom: 0.25vh solid var(--primary-text-color);
  padding-bottom: 0.125vh;
}
footer {
  background-color: var(--background-color);
  padding: 0.2vh;
  position: fixed;
  width: 100vw;
  bottom: 0;
}

footer p {
  margin: 2vh;
}

footer a img {
  width: 4vh;
  height: 4vh;
  margin: 0 1vh;
}

#hover-image {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100vw;
  /* height: 100vh; */
  border: 0.125vh solid #ccc;
  background-color: #fff;
}
#hover-container {
  position: relative;
  display: inline-block;
}

@media (max-width: 768px) {
  #accueil {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #accueil p {
    font-size: 3.5vh;
    text-align: justify;
  }

  #accueil img {
    border-radius: 25%;
    width: 45vw;
    margin-right: 5vw;
    margin-bottom: 20vh;
  }

  #left-column {
    margin-left: 0;
    margin-right: 0;
  }

  #technos {
    display: flex;
    justify-content: space-around;
    font-size: 2.5vh;
  }

  #technos ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
  }

  #technos ul li {
    margin-bottom: 3.2vh;
  }

  #technos ul li:last-child {
    margin-bottom: 0;
  }

  #projets {
    margin: 0;
    font-size: 2vh;
  }

  #a-propos {
    margin: 0;
    font-size: 3.5vh;
    text-align: justify;
    margin-bottom: 30vh;
  }

  #a-propos h2 {
    font-size: 4.5vh;
    text-align: center;
  }
}
