h1 {
  text-align:center;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  transition: all 0.5s;
  padding: 0 15px;
  background: #1a1e2e;
  overflow-y: auto;
}

#header .profile img {
  margin: 15px auto;
  display: block;
  width: 130px;
  border: 6px solid #393d4f;
}

#header .profile h1 {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  -moz-text-align-last: center;
  font-family: sans-serif;
  transition: 0.3s;
}

#header .profile h1 a,
#header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}

/* Desktop Navigation */
.nav-menu {
  padding: 30px 0 0 0;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #a8a9b4;
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 24px;
  padding-right: 8px;
  color: #6f7180;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  text-decoration: none;
  color: #fff;
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover>a i {
  color: #149ddd;
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  #header {
    left: -300px;
  }
}

.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  background-color: #149ddd;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 50px;
  cursor: pointer;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

/* Homepage */
#homepage {
  width: 100%;
  height: 100vh;
  padding: 0;
}

#particles-js { 
  background-color: #393d4f;
  width: 100%;
  height: 100%;
} 

#homepage .homepage-container {
  position: relative;
  z-index: 2;
  min-width: 300px;
}

#homepage h1 {
  margin: 180px 0 10px 250px;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
  font-family: sans-serif;
}

#homepage p {
  margin: 0 0 0 250px;
  color: #fff;
  margin-bottom: 50px;
  font-size: 26px;
  font-family: sans-serif;
  text-align: center;
}

#homepage p span {
  color: #fff;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid #149ddd;
}

@media (max-width: 1199px) {
  #homepage h1 {
    margin: 150px 0 10px 0;
    font-size: 34px;
    line-height: 36px;
  }
  #homepage p {
    font-size: 22px;
    line-height: 24px;
    margin-bottom: 30px;
    margin: 10px 0 50px 0;
  }
}

/* Main page */
#main {
  margin-left: 250px;
  overflow-x: auto;
  overflow-y: hidden;
}

.container,
.container-fluid {
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 1199px) {
  #main {
    margin-left: 0;
  }

  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Sections General */
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background: #f5f8fd;
}

.section-title {
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #173b6c;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #149ddd;
  bottom: 0;
  left: 0;
}

.section-title p {
  margin-bottom: 0;
}

/* Resume */
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #050d18;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #1f5297;
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #050d18;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: #e4edf9;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #1f5297;
}

/* Skills */
.skills .skills-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #050d18;
}

.skills .skills-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  position: relative;
}

.skills .skills-item h4 {
  font-size: 16px;
  background: #e4edf9;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.skills .skills-item ul {
  padding-left: 20px;
}

.skills .skills-item ul li {
  padding-bottom: 10px;
}

.skills .skills-item:last-child {
  padding-bottom: 0;
}

/* Contact */
#contact {
  width: 100%;
  height: 100%;
  padding: 0;
}

#contact .contact-container {
  position: relative;
  float: left;
  outline: solid;
  outline-offset: -20px;
  padding: 5% 5% 2% 5%;
  height: 100%;
  width: 100%;
  background-image: url("../img/contact-img.jpg");
  background-position: 100% 70%;
  background-repeat: no-repeat;
  background-size: 50%;
}

#contact .contact-container section-title {
  padding: 30px;
}

.formulaire {
  width: 40%;
}

.form-group {
  margin: 10px;
}

.form-group label {
  margin: 10px;
  font-weight: bold;
}

input[name=test]{ /* bait input */
  /* do not use display:none or visibility:hidden
     that will not fool the bot*/
  position:absolute;
  left:-2000px;
}

button {
  border-radius: 8px;
  background-color: #e4edf9;
  border: none;
  padding: 10px 10px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 4px 4px #bbb;
  width: 100%;
  margin-top: 20px;
}

button:active {
  box-shadow: 2px 2px #888;
  transform: translateY(4px);
}

.form-error {
  background-color: #1a1e2e;
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  visibility: hidden;
}

.activate-form-error {
  visibility: visible;
}

@media (max-width: 1199px) {
  #contact .contact-container {
    outline-offset: -10px;
    background-image: url("../img/contact-img-mob.jpg");
    background-position: center top;
    background-size: 100%;
    padding-top: 42%;
  }
  .formulaire {
    width: 100%;
  }
}

.popup {
  width: 400px;
  border-style: solid;
  border-width: 2px;
  border-radius: 8px;
  background: #fff;
  position: absolute;
  padding: 0 30px 30px;
  transform: scale(0.1);
  visibility: hidden;
  transition: transform 0.4s;
}

.open-popup {
  visibility: visible;
  margin-top: 15%;
  transform: scale(1);
}

.popup img {
  width: 110px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: -55px;
  background: #fff;
  padding: 3px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1199px) {
  .popup {
    width: 80%;
  }
  .open-popup {
    margin-top: 60%;
  }
}

/* Footer */
#footer {
  margin-left: 250px;
  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 1199px) {
  #footer {
    margin-left: 0;
  }
}
