:root {
  --primary-color: #f8f5ee;
  --secondary-color: #e9e8e3;
  --tertiary-color: #1e303f;
  --text-color: #1e303f;
  --text-color-light: #f8f5ee;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text-color);
  scrollbar-width: thin;
  
}
header * {
  animation: fadeInUp 0.6s ease-in-out;
}
main h1 {
  opacity: 0;
  animation: fadeInUp 0.6s ease-in-out 0.8s forwards;
}
main *:not(h1, i) {
  opacity: 0;
  animation: fadeInUp 0.6s ease-in-out 1.6s forwards;
}
html {
  scroll-behavior: smooth;
  background-color: var(--primary-color);
  padding: 10lvh;
  @media (max-width: 500px) {
    padding: 5lvh;
  }
}
#pop_up {
  background-color: lightgreen;
  width: fit-content;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  z-index: 100;
  opacity: 0;
  top: -50px;
  padding: 5px 15px;
  border-radius: calc(infinity * 1px);
  transition: 0.4s ease-in-out;

  color: black;
  font-family: "Poppins", sans-serif;

  &.active {
    opacity: 1;
    top: 30px;
  }
}
a {
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
}
section {
  margin-top: 150px;
}
main > h1 {
  margin-top: 150px;
}
h1:not(main > h1)::after,
h2::after,
h3::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-color);
}
@media (max-width: 1024px) {
  h1,
  h2 {
    text-align: center;
  }
}
p {
  font-family: "Roboto", sans-serif;
}
header {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
@media (max-width: 480px) {
  header {
    flex-direction: column;
    justify-content: center;
  }
  nav ul {
    margin: 50px 0;
  }
}
#titre {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
}
#titre::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
}
nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-direction: row;
  list-style: none;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
}
li a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background-color: var(--text-color);
  transition: 0.3s ease-in-out;
}
li a:hover::after {
  width: 100%;
}

h1 {
  font-family: "Poppins", sans-serif;
  font-size: 50px;
  margin-top: 50px;
  font-weight: 600;
}
h1 i {
  font-weight: 300;
}

h2 {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  margin-top: 50px;
  font-weight: 600;
}

#apropos p {
  font-size: 20px;
  text-align: justify;
  margin-top: 20px;
  font-weight: 300;
}

#container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
}
.project {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 50px;
  width: 400px;
  height: 250px;
  border-radius: 10px;
  transition: 0.3s ease-in-out;
  position: relative;
  z-index: 0;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.75);
}
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  transition: 0.3s ease-in-out;
  z-index: 0;
}
.project:hover::before {
  filter: blur(5px);
}
.project p,
.project h3 {
  color: transparent;
  transition: 0.3s ease-in-out;
  position: relative;
  z-index: 1;
}
.project:hover p,
.project:hover h3 {
  color: var(--text-color-light);
}
.project p {
  text-align: justify;
  margin: 0 20px;
}
.project a {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
}
.project a:hover {
  color: var(--text-color-light);
}
.project h3::after {
  background-color: var(--primary-color);
  width: 0;
  transition: 0.3s ease-in-out;
}
.project:hover h3::after {
  width: 100%;
}

.project:nth-child(1) {
  background-image: url("./assets/img/future1.20.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.project:nth-child(2) {
  background-image: url("./assets/img/panel.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-color);
  font-family: "Roboto", sans-serif;
}
input,
textarea {
  color: var(--text-color);
  border: 2px solid var(--secondary-color);
  outline: none;
}
input:focus,
textarea:focus {
  box-shadow: 0 0 0 1px var(--tertiary-color);
}

#fieldtop {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#name {
  width: 40%;
  height: 50px;
  border-radius: 10px;
  border: none;
  padding-left: 20px;
  background-color: var(--secondary-color);
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: var(--text-color);
}
#email {
  width: 55%;
  height: 50px;
  border-radius: 10px;
  border: none;
  padding-left: 20px;
  background-color: var(--secondary-color);
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: var(--text-color);
}
#message {
  margin-top: 4%;
  width: 100%;
  max-width: 100%;
  height: 350px;
  border-radius: 10px;
  border: none;
  padding: 20px;
  background-color: var(--secondary-color);
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: var(--text-color);
}
#submit {
  margin-top: 4%;
  width: 33%;
  height: 50px;
  border-radius: 10px;
  border: none;
  background-color: var(--tertiary-color);
  color: var(--text-color-light);
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  justify-self: center;
  display: flex;
  border: #1e303f 2px solid;
}
#submit:hover {
  background-color: var(--text-color-light);
  color: var(--tertiary-color);
}
