html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f6f0e6;
  color: black;
  text-align: center;
}

nav {
  display: flex; /* Alignement en ligne */
  align-items: center; /* Centrage vertical des éléments */
  max-width: 1440px;
  padding: 30px;
  font-family: "Adieu", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 auto; /* Centrage du nav sur la page */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px; /* Espacement entre les liens */
  margin-left: auto; /* Pousse la liste à droite */
}

nav ul li a {
  text-decoration: none;
  color: black;
}

nav a {
  text-decoration: none;
  color: black;
}

nav ul li a:hover {
  font-style: italic;
  transition: 0.05s ease-in-out;
}

.hero {
  display: flex;
  justify-content: center; /* Centre horizontalement */
  align-items: center;
  padding: 4%;
}

#carre {
  margin-top: -40px;
  position: flex;
  width: 384px;
  height: 384px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 1px solid #de4c36;
  overflow: hidden;
  box-shadow: 8px 8px 0px #de4c36; /* Ombre décalée en bas à droite */
}

.presentation {
  width: 100%;
  height: 100%;
  position: relative; /* Permet de positionner l'image à l'intérieur */
}

/* Image occupant tout l'espace du carré */
.image-placeholder {
  width: 100%;
  height: 100%;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* L'image s'adapte sans déformation */
}

.text {
  margin-left: 5%;
  text-align: left;
  max-width: 28%;
}

@font-face {
  font-family: "Adieu";
  src: url("../fonts/Adieu-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.title {
  font-family: "Adieu", sans-serif;
  font-size: 24px;
  margin-top: -9%;
}

.content {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  margin-bottom: 5vh;
}

.contact {
  font-family: "Adieu", sans-serif;
  font-size: 18px;
  margin-bottom: 28px;
  font-weight: 700;
  line-height: 30px;
}

.contact ul {
  list-style: none;
  display: flex;
  gap: 35px; /* Espacement entre les liens */
  padding: 0;
  margin: 0;
}

.contact ul li a {
  color: black;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s ease;
}

.contact ul li a:hover {
  color: #de4c36; /* Changement de couleur au survol */
}

.see-all-projects {
  text-align: left;
}

.btn-see-all {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  color: #fff;
  background: #2e8b57;
  font-family: "IBM Plex Sans", sans-serif;
  margin-bottom: 1%;
  transition: all 0.3s ease-in-out;
  text-decoration: none; /* Désactive le soulignement */
  margin-top: -1%;
}

.btn-see-all:hover {
  background: #246a46;
}

footer {
  font-family: IBM Plex Mono, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  position: fixed; /* Fixe le footer en bas */
  bottom: 0;
  left: 0;
  width: 100%; /* Largeur complète */
  background-color: black; /* Fond noir */
  color: white; /* Texte blanc */
  text-align: center;
  padding: 15px 0;
}

.footer-content {
  max-width: 1440px; /* Largeur maximale */
  margin: 0 auto; /* Centre le contenu */
  display: flex;
  justify-content: space-between; /* Aligne les éléments à gauche et à droite */
  align-items: center; /* Centre verticalement */
  padding: 0 20px; /* Espacement intérieur */
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-right ul {
  list-style: none;
  display: flex;
  gap: 35px; /* Espacement entre les liens */
  padding: 0;
  margin: 0;
}

.footer-right ul li a {
  color: white;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-right ul li a:hover {
  color: #f6f0e6; /* Changement de couleur au survol */
}

.menu-burger {
  position: relative;
}

#burger-toggle {
  background: none;
  border: none;
  font-family: "Adieu", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  padding: 2px 0;
}

#burger-toggle i {
  font-size: 14px;
  position: relative;
  top: 1px; /* Ajuste finement l'alignement vertical de l'icône */
}

#burger-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
}

#burger-links a {
  padding: 8px 12px;
  text-decoration: none;
  color: black;
  font-size: 14px;
  font-family: "Adieu", sans-serif;
  text-align: left;
}

#burger-links a:hover {
  background-color: #f1f1f1;
}

#burger-links.burger-show {
  display: flex;
}
.menu-burger-mobile {
  display: none;
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .desktop-menu {
    display: none;
  }

  .menu-burger {
    display: none; /* version PC uniquement */
  }

  .menu-burger-mobile {
    display: flex;
    position: relative;
    margin-left: auto;
  }

  #mobile-burger {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: black;
    padding-right: 10px;
  }

  #mobile-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    z-index: 1000;

    /* Animation */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
  }

  #mobile-links.burger-show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #mobile-links a {
    color: black;
    text-decoration: none;
    font-size: 14px;
    font-family: "Adieu", sans-serif;
  }

  .hero {
    flex-direction: column;
    padding: 20px;
  }

  #carre {
    flex-direction: column;
    width: 90%;
    height: auto;
    margin: 0 auto;
    padding: 10px;
  }

  .text {
    margin: 20px auto;
    max-width: 90%;
    text-align: center;
  }

  .title {
    font-size: 18px;
    text-align: left;
    margin-top: 20px;
  }

  .content {
    font-size: 16px;
    line-height: 26px;
    text-align: left;
  }

  .contact {
    text-align: center;
    font-size: 16px;
  }

  .contact ul {
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 12px;
  }

  .btn-see-all {
    display: block;
    margin: 20px auto;
    font-size: 15px;
    text-align: center;
  }

  footer {
    position: static;
    padding: 20px 10px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }

  .footer-right ul {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
}
