:root {
  --main-bg-color: #03001a;
  --main-color-paragraphe: #ffffff;
  --main-color-paragraphe-hover: #eaeaea;
  --secondary-color: #008be9ff;
  --third-color: #090528;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--main-bg-color) !important;
  overflow-x: hidden;
}

a {
  font-family: "Battambang", sans-serif;
}

p {
  margin: 0 !important;
  padding: 0 !important;
}

/*  ACCUEIL  */

#accueil {
  height: 100vh;
  width: 100vw;
}

#accueil img {
  height: 100vh;
  width: 100vw;
  object-fit: cover;
  opacity: 40%;
}

#accueil .informations {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#accueil h1 span {
  color: var(--secondary-color);
}

#accueil h1 {
  font-family: "Battambang", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 60px;
  text-align: center;
  color: #ffffff;
}

#accueil div h5 {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: lighter;
  font-size: 25px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 10px;
  padding: 0 15px;
}

#accueil div p {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: lighter;
  text-align: center;
  color: #ffffff;
  opacity: 80%;
}

#accueil a.btn-cv {
  text-decoration: none;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 10px;
  color: #ffffff;
  transition: all 0.2s;
  padding: 14px 17px;
}

#accueil a.btn-cv:hover {
  background: var(--main-bg-color);
}

#accueil .informations .part2 {
  margin: 70px 0;
}

@media screen and (min-width: 768px) {
  #accueil h1 {
    font-size: 80px;
  }

  #accueil div h5 {
    font-size: 30px;
  }

  #accueil div p {
    font-size: 20px;
  }
}

#presentation {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 20px 0;
}

#presentation .img-presentation {
  width: 140px;
  z-index: 1;
}

#presentation .part1 {
  height: auto;
  width: 100%;
  padding: 20px 15px;
  background: #090528;
  box-shadow: -28px 0 40px 25px #090528;
  color: #ffffff;
}

#presentation .part1 div span {
  color: var(--secondary-color);
}

#presentation .part1 div p {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 300;
}

#presentation .part1 > div div {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
}

.langages {
  margin: 30px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.langages .langage {
  height: 40px;
  width: 40px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(242, 247, 251, 0.25);
  background-color: rgba(242, 247, 251, 8%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin: 0 7px;
}

.langages .langage p {
  font-size: 12px !important;
  z-index: 2;
  position: relative;
  top: -20px;
  opacity: 0;
  transition: all 0.3s;
  height: 0;
}

.langages .langage svg {
  height: 20px;
  position: relative;
  top: 0;
  transition: all 0.3s;
  opacity: 90%;
}

.langages .langage:hover {
  height: 80px;
  width: 80px;
}

.langages .langage:hover p {
  top: -5px;
  opacity: 100%;
}

.langages .langage:hover svg {
  position: relative;
  top: -10px;
}

@media screen and (max-width: 375px) {
  #presentation .img-presentation {
    width: 100px;
  }
}

@media screen and (min-width: 768px) {
  #presentation .part1 div p {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-size: 20px;
  }

  #presentation .part1 > div div {
    font-size: 20px;
  }

  #presentation .part1 {
    padding: 30px;
  }

  #presentation .img-presentation {
    width: 165px;
  }

  .langages .langage {
    height: 60px;
    width: 60px;
  }

  .langages .langage svg {
    height: 40px;
  }
}

@media screen and (min-width: 992px) {
  #presentation {
    justify-content: space-between;
    flex-direction: initial;
  }

  #presentation .part1 {
    padding: 30px 30px 30px 90px;
    box-shadow: -28px 0 40px 25px #090528;
  }

  .langages {
    height: 90px;
  }

  #presentation .img-presentation {
    position: relative;
    width: 250px;
    left: 5%;
  }
}

@media screen and (min-width: 1440px) {
  #presentation {
    align-items: center;
    justify-content: center;
  }

  #presentation .part1 {
    box-shadow: -20px 0 40px 25px #090528;
    max-width: 1280px;
  }
}

@media screen and (min-width: 2000px) {
  #presentation .part1 {
    padding: 30px 30px 30px 130px;
  }
}

#projet {
  overflow: hidden;
  width: 100vw;
}

#projet h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  text-align: center;
  color: #ffffff;
  margin: 30px 0;
}

#projet h2 span {
  color: var(--secondary-color);
}

@media screen and (min-width: 1200px) {
  #projet {
    height: 100vh;
    padding: 60px;
  }

  #projet h2 {
    font-size: 50px;
    margin: 50px 0;
  }

  .carte {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 1440px) {
  #projet {
    max-width: 1440px;
    margin: auto;
  }
}

.carte {
  background-color: var(--third-color);
  border-radius: 10px;
  width: 350px;
  margin-bottom: 40px;
}

.carte img {
  border-radius: 10px 10px 0 0;
  width: 350px;
}

.carte .info {
  padding: 20px;
}

.carte .info .sub-title {
  font-weight: 200;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 20px;
}

.carte .info .description {
  color: #ffffffad;
  margin-bottom: 20px;
}

.carte h5 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-size: 26px;
  font-weight: 400;
  margin: 0;
}

.carte .competences ul li {
  color: #ffffff;
}

.carte .competences h6 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0;
}

.carte .competences .list-langage {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.carte .competences .list-langage span {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  margin: 0;
  border: rgba(255, 255, 255, 0.8) solid 1px;
  border-radius: 20px;
  padding: 5px 7px;
}

.carte .competences a {
  color: #ffffffad;
  font-style: italic;
  width: 100%;
  text-align: center;
  display: block;
  margin-top: 20px;
  transition: color 0.1s;
}

.carte .competences a:hover {
  color: #ffffff;
}

@media screen and (max-width: 320px) {
  .carte {
    width: 300px;
  }

  .carte img {
    width: 300px;
  }
}

@media screen and (min-width: 992px) {
  .carte {
    height: 375px;
    overflow: hidden;
  }

  .carte:hover {
    box-shadow: 0 0 40px -14px var(--secondary-color);
    transition: all 0.3s;
  }

  .carte .competences {
    transform: translate(-20px);
    z-index: 10;
    opacity: 0;
    position: relative;
    top: -270px;
    transition: opacity 0.3s, transform 0.2s;
  }

  .carte .competences h6 {
    margin-bottom: 20px;
    color: var(--secondary-color);
  }

  .carte .competences .list-langage span {
    margin-top: 20px;
    border-color: #ffffff;
    color: #ffffff;
  }

  .carte:hover .competences {
    transform: translate(0px);
    opacity: 1;
  }

  .carte .competences .description {
    margin-bottom: 0;
  }

  .carte:hover img,
  .carte:hover .info .description,
  .carte:hover .info h5,
  .carte:hover .info .sub-title,
  .carte:hover .info .title-border {
    opacity: 0.5;
    filter: blur(8px) grayscale(1);
    transition: filter 0.3s;
  }
}

.title-border {
  border-bottom: var(--secondary-color) solid 2px;
  margin: 10px 0;
  width: 50px;
}

#contact {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#contact h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 50px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px;
}

#contact h2 span {
  color: var(--secondary-color);
}

.light-bar {
  z-index: -10;
  width: 600px;
  border: 15px solid #fa00ff;
  filter: blur(50px);
  position: relative;
  top: 6%;
}

#contact .connect-items {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 300px;
}

#contact .connect-items .item {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: var(--secondary-color);
  height: 70px;
  width: 70px;
  border-radius: 10px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
#contact .connect-items .item svg {
  height: 40px;
}

#contact .connect-items .item:hover {
  opacity: 1;
}

a.btn-retour {
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  border-radius: 50%;
  background-color: var(--secondary-color);
  transition: all 0.2s;
  position: relative;
  top: 120px;
}

a.btn-retour:hover {
  opacity: 0.8;
}

a.btn-retour svg {
  height: 20px;
}

@media screen and (min-width: 425px) {
  #contact h2 {
    font-size: 70px;
    margin-bottom: 60px;
  }

  #contact .connect-items {
    justify-content: space-between;
  }
}

footer {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  font-family: "Montserrat", sans-serif;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 400;
}

footer p span {
  color: var(--secondary-color);
  opacity: 0.8;
}
