@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Playfair+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@800&display=swap');

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  row-gap: 0;
  background-image: url(../images/back.svg);
  background-position: left top;
  background-repeat: no-repeat;
  margin: 0;
}

.name {
  margin-top: 10px;
}

h1,
h2 {
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 50px;
  line-height: 100%;
  color: #1a2236;
}

#box1 {
  display: flex;
  justify-content: flex-end;
  height: 80px;
}

#box1 a {
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 80px;
  text-align: right;
  color: #1a2236;
  text-decoration: inherit;
}

#box3 {
  background-image: url(../images/Barrier.svg);
  background-size: 100% 100%;
  width: 100%;
  height: 160px;
  background-repeat: no-repeat;
}

#works,
.work-area {
  display: flex;
  flex-direction: column;
}

.box-menu {
  display: none;
}

.intro-container {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.align-center {
  align-self: center;
  width: 90%;
}

#nav-bar2 {
  margin: 20px;
}

.description {
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.01em;
}

.contact {
  margin-top: 20px;
  width: 100%;
  height: 50px;
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #fff;
  border: none;
}

.work-image {
  width: 100%;
  height: auto;
}

.work-description {
  display: grid;
  grid-template-columns: 5% 1fr 5%;
  grid-template-rows: 5% repeat(3, 1fr) 5%;
  grid-column-gap: 0;
  grid-row-gap: 0;
  height: 180px;
  border: 0.333333px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
}

.tech-list {
  list-style-type: none;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding-left: 0;
  margin: 0;
  height: 100%;
}

.tech-list li {
  height: 100%;
  width: 100%;
}

.background-blue {
  background-color: #1a2236;
}

.color-blue {
  color: #1a2236;
}

.work-title {
  grid-area: 2 / 2 / 3 / 3;
}

.title-projects {
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 300;
  font-size: 20px;
  line-height: 80%;
  color: white;
}

.work-tech {
  grid-area: 3 / 2 / 4 / 3;
}

.work-see {
  grid-area: 4 / 2 / 5 / 3;
}

.bouton {
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 300;
  font-size: 10.3334px;
  line-height: 80%;
  background-color: #98dede;
  height: 60%;
  width: 90%;
  align-items: center;
  border: none;
}

.bouton-see {
  display: inline-block;
  text-align: center;
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  border: 1px solid white;
  color: white;
  height: 100%;
  width: 65%;
  transition: all 0.5s;
  cursor: pointer;
}

.bouton-see span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.bouton-see span::after {
  content: '\279c';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.bouton-see:hover,
.contact:hover,
.bouton:hover {
  background-color: white;
  border: 1px solid #1a2236;
  color: #1a2236;
}

.bouton-see:active,
.contact:active,
.bouton:active {
  border: 2px solid #1a2236;
}

.bouton-see:hover span {
  padding-right: 25px;
}

.bouton-see:hover span::after {
  opacity: 1;
  right: 0;
}

#language {
  width: 100%;
  height: 289px;
  background: #1c528a;
  color: white;
  background-image: url(../images/ic_languages.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
}

.projects {
  display: flex;
  flex-direction: column;
  row-gap: 0;
}

#project-6 {
  display: none;
}

#project-7 {
  display: none;
}

#frameworks {
  width: 100%;
  height: 289px;
  background: #e2505c;
  color: white;
  background-image: url(../images/ic_framework.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
}

#last-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 50px;
}

#skills-cards {
  width: 70%;
  align-self: center;
}

#skills {
  width: 100%;
  height: 289px;
  background-color: #febf52;
  color: white;
  background-image: url(../images/ic_skills.svg);
  background-repeat: no-repeat;
  background-position: bottom right;
}

.card-list {
  height: 135px;
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: -0.0525em;
}

.card-title {
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 800;
  font-size: 20px;
  line-height: 30px;
  margin: 40px;
}

#footer-icons {
  height: 100px;
}

#footer-container {
  background-color: #f9f9fa;
  background-image: url(../images/back.svg);
  background-position: left top;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  margin-top: 50px;
}

#footer-title {
  margin-top: 30px;
}

#formulaire {
  align-self: center;
  width: 90%;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 100px;
}

.form-element {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: white;
  border: 1px solid #dfdfe0;
  border-radius: 4px;
  min-height: 60px;
}

.form-element:hover {
  border: 1px solid #1a2236;
}

.form-element input,
.form-element textarea {
  border: none;
  outline: 0;
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #1a2236;
  margin-left: 16px;
}

.form-element label {
  font-family: 'Poppins', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  line-height: 15px;
  color: #7d7c84;
  margin-left: 16px;
}

#formulaire-head {
  margin-top: 80px;
}

#medium-image {
  display: none;
}

#footer-logo {
  align-self: flex-start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  background-color: #1a2236;
}

.contact-links .resume {
  font-family: 'Poppins', sans-serif;
  color: #92dcdc;
  margin: 32px auto auto 16px;
}

.social-media-icons .fa {
  color: white;
  transition: 0.5s;
}

.social-media-icons .fa:hover {
  transform: scale(1.5);
}

.social-media-icons {
  display: flex;
  justify-content: space-around;
  margin: 24px;
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .intro-container {
    flex-direction: row;
    align-items: stretch;
    height: 800px;
    justify-content: flex-start;
    margin-bottom: 200px;
  }

  #box1 {
    box-shadow: 0 0.5px 0 #dddfe6;
    justify-content: center;
    align-items: center;
    column-gap: 5%;
    margin: 0;
  }

  #box2 {
    background-image: url(../images/image_dots.svg);
    background-position: bottom right;
    width: 100%;
    height: 100%;
    background-size: 40%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  #box2 h1 {
    margin-top: 80px;
    margin-bottom: 0;
  }

  #box3 {
    background-image: url(../images/border.svg);
    height: 100%;
    background-position: top;
    background-repeat: no-repeat;
  }

  .box-menu {
    display: block;
  }

  .box-menu:hover,
  #box1 a.active {
    border-bottom: 4px solid #1a2236;
  }

  .icon {
    display: none;
  }

  body {
    background-image: none;
    row-gap: 0;
    width: 100%;
  }

  #intro-content {
    width: 80%;
    display: flex;
    flex-direction: column;
    row-gap: 40px;
  }

  .contact {
    max-width: 254px;
    width: 100%;
  }

  #works {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    grid-template-rows: auto auto 0.6fr;
    gap: 0 0;
    grid-template-areas:
      "title first-project"
      "project-container project-container"
      "last-container last-container";
    margin-bottom: 150px;
  }

  #project-title {
    position: relative;
    grid-area: title;
    width: 100%;
    height: 100%;
    background-image: url(../images/image_dots.svg);
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 40%;
  }

  #project-title h2 {
    position: absolute;
    transform: translateX(-100%) rotate(-90deg);
    transform-origin: right;
    left: 80px;
    top: -60px;
  }

  .projects {
    grid-area: first-project;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .work-description {
    display: none;
    width: 100%;
    transition: 0.3s ease;
  }

  .projects:hover .work-description {
    display: grid;
    position: absolute;
    bottom: 0;
  }

  #project-container {
    display: grid;
    grid-auto-flow: row dense;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1.5fr 0.5fr 1fr;
    gap: 0 0;
    grid-area: project-container;
  }

  #second-project {
    grid-area: 1 / 1 / 2 / 2;
    align-self: end;
  }

  #medium-image {
    display: grid;
    grid-area: 1 / 2 / 2 / 3;
    background-image: url(../images/medium_pic.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  #second-container {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr 1fr;
    grid-template-rows: 0.9fr 1.1fr;
    gap: 0 0;
    grid-template-areas:
      "project-3 . ."
      "project-3 background2 background2";
    grid-area: 2 / 1 / 4 / 4;
  }

  #project3 {
    grid-area: project-3;
  }

  #background2 {
    grid-area: background2;
    background-image: url(../images/background3.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  #side-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1.1fr 1.1fr 0.8fr;
    gap: 0 0;
    grid-template-areas:
      "Project-5"
      "Project-6"
      ".";
    grid-area: 1 / 3 / 4 / 4;
  }

  #project-5 {
    grid-area: Project-5;
  }

  #project-6 {
    grid-area: Project-6;
    display: block;
  }

  #last-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 0;
    grid-template-areas:
      "background3 project-7"
      "skills-cards about";
    grid-area: last-container;
  }

  #background3 {
    grid-area: background3;
    background-image: url(../images/background4.svg);
    background-repeat: no-repeat;
  }

  #project-7 {
    grid-area: project-7;
    display: block;
  }

  #skills-cards {
    grid-area: skills-cards;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0 0;
    margin-left: 10%;
    grid-template-areas:
      "language frameworks"
      "skills background-card";
  }

  #language {
    grid-area: language;
  }

  #frameworks {
    grid-area: frameworks;
  }

  #skills {
    grid-area: skills;
  }

  #background-card {
    grid-area: background-card;
  }

  #about {
    grid-area: about;
  }

  #footer-container {
    background-image: url(../images/footer1.svg), url(../images/footer2.svg);
    background-position: left top, right bottom;
    background-size: 30%;
  }

  #formulaire-head,
  #formulaire {
    width: 30%;
  }

  .contact-links {
    flex-direction: row;
    height: 100px;
    justify-content: space-around;
  }

  .social-media-icons {
    display: flex;
    justify-content: space-around;
    width: 20%;
    margin-top: 32px;
  }

  #formulaire input {
    align-self: center;
  }
}
