:root {
  --background-color: #292c36;
  --second-background-color: #1d1f25;
  --blue-color: #43c5d6;
  --blue-color-hover: #083b42;
  --main-text-color: #d3d3d3;
}

body {
  font-family: Verdana;
  background: var(--background-color);
  /* VH = 100% de la taille de l'écran */
  min-height: 100vh;
  color: lightgray;
}

nav {
  width: 70%;
  margin: 30px auto;
  padding: 10px;
  background: var(--second-background-color);
  border-radius: 30px;
  max-width: 550px;
  box-shadow: 0px 0px 7px 2px #e6e6e6;
}

nav ul {
  margin: 0;
  display: flex;
  justify-content: space-between;
  padding: 0;
}

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

nav a {
  border-radius: 30px;
  padding: 10px 20px;
  margin: 0 5px;
  transition: 0.2s;
}

nav a:hover {
  background: var(--blue-color-hover);
}

a:visited {
  color: var(--main-text-color);
  text-decoration: none;
}

nav li {
  list-style: none;
}

.actual-page {
  background: var(--blue-color);
}

.actual-page:hover {
  background: var(--blue-color);
}

.content {
  list-style: none;
  display: flex;
  justify-content: space-around;
}

.my-photo {
  width: 30%;
  padding: 0;
  border-radius: 30px;
  box-shadow: 0px 0px 7px 2px #e6e6e6;
  height: fit-content;
}

.my-photo img {
  width: 100%;
  margin: 0;
  border-radius: 30px;
}

.text {
  width: 50%;
  height: fit-content;
  background: var(--second-background-color);
  border-radius: 30px;
  box-shadow: 0px 0px 7px 2px #e6e6e6;
  padding: 5px 10px;
}

.formations {
  width: 50%;
  margin: auto;
}

.formation {
  background: var(--second-background-color);
  width: fit-content;
  max-width: 500px;
  border-radius: 30px;
  box-shadow: 0px 0px 7px 2px #e6e6e6;
  display: grid;
  grid-row: 3;
  grid-column: 2;
  grid-template:
    "name date"
    "desc desc"
    "plac plac";
  margin: 5% auto;
  padding: 0 15px;
}

.formation-name {
  grid-area: name;
  margin: 10px 0;
}

.formation-date {
  grid-area: date;
  justify-self: right;
  margin: 10px 0;
}

.formation-description {
  grid-area: desc;
  margin: 5px 0;
}

.formation-place {
  grid-area: plac;
  font-style: italic;
  margin: 10px 0;
}

.projects {
  display: flex;
  flex-wrap: wrap;
}

.project {
  width: 30%;
}

.project-box {
  background: var(--second-background-color);
  border-radius: 30px;
  padding: 1rem;
  margin: 0.8%;
}

.project-name {
  color: var(--blue-color);
  margin: 0;
  font-weight: bold;
  font-size: x-large;
}

.project-date {
  margin-top: 5px;
  font-size: large;
}

.project-image {
  width: 100%;
  margin: 5px;
}

.technologies {
  display: flex;
}

.technologie {
  position: relative;
  color: black;
}

.technologie::before {
  content: attr(data-tip);

  width: auto;
  background-color: var(--blue-color);
  padding: 5px auto;
  border-radius: 6px;

  position: absolute;
  white-space: nowrap;
  z-index: 1;
  bottom: 125%;
  left: 0;
  margin-left: -60px;
  opacity: 0;
}

.technologie:hover::before {
  opacity: 1;
}

.technologie-logo {
  max-width: 2rem;
}

.contact {
  padding-top: 10%;
  margin: auto;
  width: 30%;
  text-align: center;
}

.box-contact {
  box-shadow: 0px 0px 7px 2px #e6e6e6;
  border-radius: 30px;
  background: var(--second-background-color);
  padding: 0 0 40px 0;
  display: grid;
  grid-template-columns: auto auto;
}

.box-contact > h1 {
  grid-column: 1 / span 2;
}

.lien-contact a{
  text-decoration: underline;
  color: white;
}