* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {

  background-image: url("../images/background.png");
  background-repeat: no-repeat;
  background-size: cover;
  /* makes it cover full screen */
  background-attachment: fixed;
  /* optional: makes it scroll with you */
  background-position: center;
  /* center the image */
  min-height: 100vh;
  height: 100%;
  padding-top: 80px;

}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  background-color: #fff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 50px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

#nav-title {
  margin-right: auto;
  font-size: 1.5em;
}

nav {
  margin-right: 80px;
}

nav ul {
  display: flex;
  gap: 20px;
}

header li {
  list-style: none;
}

header a {
  text-decoration: none;
  color: #555;
  transition: all 0.3s ease;
}

header a:hover {
  color: #b2dfdb;
}
img.logo {
  width: 50px;
  height: auto;
}

/* end header */
.main-container {
  width: 50%;
  margin: 0 auto;
  /*background-color: #f4f5f4;*/
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 30px;

}

.main-container h1,
h3,
p {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

.first-body {
  background-color: #ad77cc;
  padding: 10px;
  border-radius: 10px;
  color: rgb(13, 1, 45);
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Pour chaque section à l'intérieur */
.mesProject,
.mesProject2,
.mesProject3,
.mesProject4,
.mesProject-p,
.mesProject5,
.mesProject6 {
  background-color: #e7d6f6;
  border-left: 5px solid #4caf50;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  color: #FFF;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0px;
  flex-wrap: wrap
}


/* Pour que l'image ne soit pas trop grosse */


.mesProject h2,
.mesProject2 h2,
.mesProject3 h2,
.mesProject4 h2 
.mesProject5 h2,
.mesProject6 h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
  text-align: center;

}


.project-row p {
  flex: 1;
  /* texte prend plus d'espace */
}


.project-img {
  flex: 1;
  width: 50%;
  border-radius: 50%;
}

.project-text {
  flex: 1;
  max-width: 50%;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.project-img img {
  width: 60%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 60%;
}

.mesProject-p{
  color: #000;

  
}
/*end content-first*/



/* --- FOOTER --- */
footer {
  background-color: #ad77cc;


  padding: 40px 20px;
}

.footer-section {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  color: #fff;
}

.footer-col {
  flex: 1 1 30%;
  margin: 10px;

}

.footer-col h4 {
  margin-bottom: 15px;
}

.footer-col a {
  text-decoration: none;
  color: #060000;

}

.footer-col p {
  line-height: 20px;
  margin-top: 15px;

}

.social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  /* Display in a row */
  gap: 10px;
  /* Space between icons */
  align-items: center;


}


.social-icons li a {
  color: white;
  font-size: 24px;
}




.social-icons li a:hover {
  transform: scale(1.2);
  color: #000;
}

/* end footer */


@media (max-width: 768px) {

  /* image + texte vertical au lieu de ligne */
  .project-row {
    flex-direction: column;
    text-align: center;
  }

  .project-row img {
    width: 90%;
    max-width: 300px;
    margin: 15px auto;
  }

  .main-container {
    width: 95%;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 20px;
  }

  #nav-title {
    margin-bottom: 10px;
  }

  nav {
    margin-right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  footer {
    text-align: center;
  }

  .footer-section {
    flex-direction: column;
    align-items: center;
  }

  .footer-col {
    margin: 20px 0;
    flex: 1 1 100%;
  }
}