@keyframes h1_start {
  from {
    right: -100%;
  }
  to {
    right: 0;
  }
}
:root{ /*endroit où on met des variables*/
  --blur-color:rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth; /*comportement du scroll*/
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  top: 0;
  position: fixed;
  width: 100vw;
  z-index: 10;
  backdrop-filter: blur(5px);
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.293); */
  /* background-color: var(--blur-color); */
  box-shadow: 3px 4px 7px 1px #0000001c;
  padding: 5px 0 5px 0;
}

a {
  color: white;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px;
  transition: all 0.5s ease-out;
  /* maxou tell me how ease-in-out */
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  background: radial-gradient(#276f79, #263537);
  color: white;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  /* background-repeat: no-repeat;
  background-size: cover; */
  background-attachment: fixed;
  font-size: 1.3em;
}
section {
  padding-top: 15vh;
  display: flex;
  /*overflow: hidden; overflow: comportement des objets qui sortent des limites du conteneur - hidden; pour que tout ce qui sortent du conteneur soient cachés*/
}

.h1-section {
  height: 100vh;
  padding-top: unset;
}

/* ce le mot pour un truc qui a ce design */

.cards {
  margin: auto 5vw auto auto;
  width: 600px;
  max-width: 90vw;
  text-align: center;
  backdrop-filter: blur(5px);
  padding: 10px;
  border-radius: 20px;
  /* background-color: rgba(255, 255, 255, 0.1); */
  background-color: var(--blur-color);
  box-shadow: 3px 4px 7px 1px #0000001c;
}

#mes_projets p {
  text-align: left;
  margin: 15px;
}

h1 {
  position: relative; /*need pour animation*/
  text-align: center;
  margin: auto 5vw auto auto;
  width: 600px;
  max-width: 90vw;
  animation-name: h1_start; /*need pour animation*/
  animation-duration: 1s; /*need pour animation*/
  animation-timing-function: cubic-bezier(
    0,
    0.6,
    0,
    0.96
  ); /*need pour animation*/
}

footer {
  margin-top: 15vh;
  padding: 50px;
  /* background-color: var(--blur-color); */
  background-color: #05121f;
}

a:hover {
  text-decoration: underline;
  transform: scale(1.05); /*le lien augmente au hover*/
}

#last_name {
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  font-style: normal;
  font-size: 2.8em;
}

#first_name {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 2.5em;
}

#profession {
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  font-style: normal;
  font-size: 2.5em;
}

#me_contacter {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 1.5em;
}

.coordonnees {
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  font-style: normal;
  font-size: 1 em;
}

h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 3em;
}

section p {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 1.2em;
}

.hero {
  position: fixed;
  top: 50vh;
  transform: translate(0, -50%); /* "-" = remonter vers le haut en Y*/
  left: 5vw;
  z-index: -1;
  max-height: 60vh;
  max-width: 90vw;
}

.flat {
  max-width: 100%;
  max-height: 60vh;
}

.flatsec {
  margin: auto 5vw auto auto ;
  display: flex;
  justify-content: center;
  width: 600px;
  max-width: 90vw;
}

.icones {
  margin-right: 15px;
}

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

li,
ul {
  list-style: none;
  padding: 0;
}

ul li:first-child {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1em;
  margin: 5px;
}

.mobile-only{
  display: none !important;
}
#hamburger {
  position: fixed;
  top: 3px;
  right: 0;
  z-index: 5;
}


/* 1589 depend du design ici on remove les "colonnes" */

@media screen and (max-width: 1589px) {
  .cards,h1,.flatsec {
    margin: auto;
  }
  .hero {
    transform: translate(-50%, -0%); 
    top: unset;
    left: 50vw;
    position: relative;
  }
  /* nav {
    background-color: var(--blur-color)
    } */
    
  }
  /* 768 = valeur "universelle" */
  @media screen and (max-width: 768px) {
  .h1-section{
    height: unset;
    margin-bottom: 10vh;
  }
  .nav-icons{
    font-size: 1.5em;
    padding: 15px;
  }
  h1 {
    margin: 5vh auto auto auto;
    font-size: 1em;
  }
  nav {
    flex-direction: column;
    height: 100vh;
    width: unset;
    justify-content: unset;
    right: 0;
    transform: translate(100%,0); /*on commence en dehors de l'ecran par défaut et le JavaScript rajoutera la classe shown*/
    transition: all 0.3s ease-out;
  }
    footer {
      text-align: center;
    }
  /*début JavaScript
  shown = visible
  le shown est rajouté par le JavaScript quand on clique sur l'hamburger
  */
  nav.shown {
    transform: translate(0,0); 
  }
  /*fin JavaScript*/


  nav a {
    padding: 20px;
  }
  nav > * {
    text-align: end;
  }
  .mobile-only{
    display: unset !important;
  }



}
