/* Importation d'une police Google */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

/* Style global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif; /* Police moderne */
}

body {
  background-color: #f4f4f9; /* Couleur de fond douce */
  color: #333; /* Couleur du texte principal */
  line-height: 1.6;
}

ul li {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease; /* Transition sur les liens */
}

.container {
  width: 100vw;
  display: grid;
  grid-template-areas:
    "header header header"
    ". main ."
    "footer footer footer";
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 10% 1fr 10%;
  overflow: hidden;
}

/*Header de la page*/
header {
  grid-area: header;
  position: relative;
  display: grid;
  background-color: #006d77;
  padding: 20px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Styles for ul, li, and a elements */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li {
  position: relative;
  padding: 10px;
  transition: all 0.3s ease;
}

.nav-links li:hover {
  transform: scale(1.1); /* Slight scaling effect on hover */
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #006d77;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  background-color: #83c5be;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* Adding line under the hovered link */
.nav-links li::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background-color: #042c30;
  bottom: 0;
  left: 0;
  transition: width 0.4s ease-in-out;
}

.nav-links li:hover::after {
  width: 100%;
}

.logo {
  width: 150px;
  height: 150px;
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  justify-self: center;
  top: 80%;
}

.logo > .img_logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  margin: 0;
}

header > h1 {
  text-align: center;
  margin-top: 20px;
  font-size: 2.5em;
  font-weight: 600;
}
/**Menu de navigation menue burger */

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger-bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

/*Main ou corps de la page*/

main {
  grid-area: main;
  display: grid;
  grid-template-areas:
    "presentation"
    "competences"
    "projet"
    "fromulaire";
  gap: 30px;
  padding: 50px 20px;
}

#presentation {
  grid-area: presentation;
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#presentation > h2 {
  padding-top: 50px;
  text-align: center;
  font-size: 2em;
}

#presentation > p {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px;
  line-height: 1.8;
}

.skills {
  grid-area: competences;
  background-color: #e29578;
  padding: 30px;
  border-radius: 10px;
  color: rgb(27, 26, 26);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  text-align: center;
}

/* Info bulles */

/* Infobulle de base */

/*Projet */
#projet {
  grid-area: projet;
  background-color: #006d77; /* Couleur principale */
  padding: 30px;
  border-radius: 10px;
  color: white; /* Texte en blanc pour le contraste */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projet_content {
  cursor: pointer;
  width: 80%;
}

.projet_content > h3 {
  text-align: center;
  padding: 20px;
}

.projet_content > iframe {
  width: 100%;
  height: 400px;
  margin: 0 auto;
  border: none;
  border-radius: 20px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
  background-color: #f4f4f9;
}
/**Formulaire de mail*/
.contact-form {
  grid-area: fromulaire;
  width: 600px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}
.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.contact-form button {
  padding: 10px 20px;
  background-color: #006d77;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.contact-form button:hover {
  background-color: #004f4d;
}
/**Footer */

footer {
  grid-area: footer;
  background-color: #006d77;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

footer h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: 600;
}

footer p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons li {
  display: inline-block;
}

.social-icons li a {
  text-decoration: none;
  color: white;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.social-icons li a:hover {
  color: #83c5be; /* Changement de couleur au survol */
}

.social-icons li i {
  font-size: 1.5em;
  margin-right: 8px;
}

footer p:last-of-type {
  margin-top: 30px;
  font-size: 1em;
  color: #83c5be;
}

/* Responsiveness */
@media (max-width: 768px) {
  /* Cacher les liens du menu sur les petits écrans */
  .social-icons {
    flex-direction: column;
    gap: 15px;
  }

  .social-icons li a {
    font-size: 1.2em;
  }
  .burger {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
  }
  header {
    padding: 5px 20px;
  }
  header > h1 {
    text-align: center;
    margin-top: 25px;
    font-size: 1.4em;
    font-weight: 600;
  }
  .logo {
    width: 100px;
    height: 100px;
    top: 90%;
  }
  .container {
    grid-template-areas:
      "header header header"
      "main main main"
      "footer footer footer";
  }
  main {
    padding: 20px 0;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    height: 100vh;
    width: 100%;
    background-color: #006d77;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }
  #presentation {
    width: 100%;
    height: 40vh;
    padding: 10px;
    overflow-y: scroll;
  }
  .skills {
    padding: 20px;
  }

  #projet {
    padding: 30px 0;
    margin: 0 2px;
    border-radius: 2px;
    background-color: aliceblue;
    color: black;
  }
  .projet_content {
    width: 100%;
  }

  .nav-links.active {
    transform: translateX(0);
    position: fixed;
  }

  /* Bouton burger visible sur les petits écrans */
  .burger {
    display: flex;
  }

  /* Animation pour ouvrir le burger */
  .burger.toggle .burger-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.toggle .burger-bar:nth-child(2) {
    opacity: 0;
  }

  .burger.toggle .burger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .projet_content > iframe {
    width: 100%;
  }
  /**Formulaire de mail*/
  .contact-form {
    width: 100%;
  }
}
