* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Handlee', cursive;
  text-align: center;
  background: #1A1A1A;
  color: white;
  user-select: none;
  margin-top: 5rem;
}

main {
  padding-bottom: 2rem;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  text-transform: uppercase;
  background-color: rgba(105, 105, 105, 0.07);
  backdrop-filter: blur(5px);
  z-index: 2;
}

section div {
  padding: 0 1.5rem;
}

p {
  font-size: 1.3em;
}

#navbar {
  display: flex;
  gap: 4rem;
  list-style-type: none;
  justify-content: center;
  align-items: center;
}

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

#navbar a:hover {
  color: #8A91C8;
  text-shadow: 1px 1px 1px whitesmoke;
}

#navbar li:last-child {
  border: 0.1px dotted rgb(120, 120, 120);
  padding: 3px 5px 0px;
}

h1 img {
  width: 35rem;
}

.minalogo {
  height: auto;
}

h2 {
  font-family: 'Shadows Into Light', cursive;
  margin-bottom: 1.5rem;
  padding-top: 3rem;
  font-size: 3.5rem;
  text-shadow: 1px 1px 1px whitesmoke;
}

h3 {
  font-family: 'Shadows Into Light', cursive;
  font-size: 2.5rem;
}

h4 {
  font-size: 1.3rem;
  text-decoration: 1px underline whitesmoke;
  margin-bottom: 0.5rem;
}

h5 {
  margin-bottom: 1.5rem;
}

.container {
  padding: 0 0.5rem;
  margin-bottom : 2rem;
}

.color {
  color: #8A91C8;
}

/* section formation */

#formation div {
  padding-bottom: 2rem;
}

#formation .school h3 {
  font-size: 3rem;
}

#formation .title h3 {
  text-decoration: 1px underline whitesmoke;
}

.title p:nth-child(2) {
  padding-bottom: 0.5rem;
}

.descriptif {
  width: 60vw;
  position: relative;
  left: 50%;
  transform: translate(-50%);
  z-index: -1;
}

.diploma a {
  color: gold;
  text-decoration: none;
}

.diploma a:hover {
  color: gold;
  text-shadow: 1px 1px whitesmoke;
}


/* section portfolio */

#portfolio .container {
  display: flex;
  /* justify-content: end; */
  gap: 0.5rem;
}

#portfolio img {
  width: 100%;
  aspect-ratio:  16/9;
}

#portfolio h3 {
  padding-bottom: 1rem;
}

#portfolio h3 a {
  color: #8A91C8;
  text-decoration: none;
}

#portfolio h3 a:hover {
  color: #8A91C8;
  text-shadow: 1px 1px 0.5px whitesmoke;
}

#portfolio p a {
  color: #ffd1fd;
  text-decoration: none;
}

#portfolio p a:hover {
  color: white;
}

.proj {
  position: relative;
  margin-bottom : 2rem;
  padding: 0.5rem;
  background-color: rgba(105, 105, 105, 0.07);
  border-radius: 1.5rem;
  width: 100%
}

.personal {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 30rem;
}

.proj h3:nth-child(even) {
  margin-bottom: 1rem;
}

.proj h3:first-of-type {
  text-decoration: 1px underline whitesmoke;
}

.proj ol {
  text-align: left;
  padding: 0 1rem 2rem; 
}

.proj p {
  position: absolute;
  bottom: 0;
  right: 0;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-right: 0.8rem;
  color: gold;
}

.proj h4 {
  color: gold;
  text-decoration: 1px underline gold;
}



/* section contact */

#contacts {
  margin-top: 2rem;
}

#logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.logo {
  display: flex;
  flex-direction: row;
}

#contacts img {
  box-shadow: white;
}

.gmail {
  justify-content: center;
}


footer {
  position: absolute;
  z-index: 0;
  width: 100%;
  padding: 0.2rem;
  background-color: rgba(105, 105, 105, 0.07);
  backdrop-filter: blur(5px);
  font-size: 0.8rem;
  text-transform: uppercase;
}


a:hover {
  cursor: url('/favicon/favicon-32x32.png'), pointer;
}


/* Responsive */

@media screen and (max-width: 640px ) {


  #navbar {
    gap: 0.5rem;
  }

  h1 {
    margin-top: 1.5rem;
  } 

  h1 img {
    width: 100%;
  }

  h2 {
    font-size: 2.8rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1rem;
  }

  p.minim {
    font-size: 1rem;
  }

  .descriptif {
    width: 90vw;
  }
  
  #portfolio .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  #portfolio div img {
    width: 100%;
  }

  .personal {
    width: 100%;
  }

  #logos {
    gap: 0.5rem;
  }

  .logo {
    display: flex;
    flex-direction: column;
  }
  
}

