.hero {
  background-image: url("/images/fond-dev-orange.webp");

  height: 80vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  width: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  flex-direction: column;
}

.hero-left .btn {
  width: 250px;
  text-align: center;
}

.front-btn {
  z-index: 10;
  position: relative;
}

.hero-right {
  width: 20%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-right img {
  height: 70%;
}

h1 {
  font-family: "poppins", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
}

.presentation {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  background-color: #fffefb;
  position: relative;
  z-index: 2;
  min-height: 90vh;
}

.presentation-text {
  width: 45%;
}

.presentation-img {
  width: 30%;
  padding: 50px;
}

.presentation-img img {
  width: 100%;
  height: auto;
  max-width: 600px;
}
.presentation-text p,
.a-contact p,
.faq-card p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 20px;
  line-height: 1.2;
}

.presentation h2 {
  text-align: left;
}

h2 {
  text-align: center;
  font-size: 4rem;
  font-weight: 700;
  font-family: "poppins", sans-serif;
  margin-bottom: 20px;
}

.trait {
  position: relative;
  z-index: 1;
  display: inline-block;
  position: relative;
  background-image: url("/images/backtext-yellow.webp");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center center;
  padding: 20px 0;
  font-weight: 700;
}

.accomp {
  background-color: #f6f6f6;
  min-height: 100vh;
  padding: 100px 5%;
}

.accomp-head {
  display: flex;
  padding: 0 5%;
  justify-content: space-between;
}

.accomp-head img {
  width: 300px;
}

.accomp-head h2 {
  width: 60%;
  text-align: right;
}
.card-list {
  display: flex;
  justify-content: center;
  margin-top: 0px;
  gap: 40px;
  width: 100%;
}

.card {
  width: 25%;
  padding: 30px;
  border-radius: 30px;
  background-color: #fffefb;
  -webkit-box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  position: relative;
  z-index: 2;
}

.card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.card-icon img {
  width: 50px;
  height: 50px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.card p {
  font-size: 1.2rem;
  font-weight: 200;
}

.a-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5%;
  background-color: #fffefb;
}

.a-contact-left,
.a-contact-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.a-contact-right {
  width: 40%;
}
.a-contact-left {
  width: 60%;
  padding-left: 50px;
}
.a-contact-right img {
  width: 100%;
  max-width: 600px;
}

.a-contact-left .trait {
  padding: 48px 96px;
  font-weight: bold;
  color: black;
  transition: 0.2s;
  background-image: url("/images/backtext-orange.webp");
  text-align: center;
  text-wrap: nowrap;
}

.a-contact-left .trait:hover {
  transform: scale(1.05);
}

.project-section {
  position: relative;
  overflow: hidden;
}

/* L'image de fond est déplacée en absolute */
.project-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* un peu plus grand pour donner de la marge au scroll */
  background-image: url("/images/fond-work.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}

.project-opacity {
  background-color: #0000006f;
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 5%;
  position: relative;
  z-index: 1;
}

.project-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 52px 26px;
}

.last-project {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  padding: 64px 32px;
}

.project {
  background-color: #f6f6f6;
  width: 30%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 15px;
  padding: 18px;
  position: relative;
  -webkit-box-shadow: 0px 5px 11px -3px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 5px 11px -3px rgba(0, 0, 0, 0.15);
}

.project-opacity h2 {
  color: #fffefb;
}
.project-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #d8d8d8;
  border-radius: 3px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
  transform: scale(1.1);
}
.project:hover .project-image img {
  transform: scale(1);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 0;
}
.project-desc {
  margin-bottom: 15px;
}

.projet .liste-lien {
  margin-top: 15px;
}

.faq {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 100px 5%;
}

.faq-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.faq-card {
  width: 400px;
  padding: 30px;
  border-radius: 30px;
  background-color: #fffefb;
  -webkit-box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 20px 5px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
}

.faq a {
  color: rgb(0, 0, 0);
}

@media (max-width: 1700px) {
  .card-list {
    flex-wrap: wrap;
  }
  .card {
    width: 45%;
  }
}

@media (max-width: 1350px) {
  .presentation-text {
    width: 50%;
  }

  .presentation-img {
    width: 40%;
    padding: 50px;
  }

  .project {
    width: 45%;
    min-width: 300px;
    padding: 24px;
  }
}

@media (max-width: 1000px) {
  .presentation {
    flex-direction: column-reverse;
    padding: 50px 5%;
  }

  .presentation-text {
    width: 100%;
  }

  .presentation h2 {
    text-align: center;
  }

  .presentation-img {
    width: 100%;
    padding-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .presentation-img img {
    max-width: 400px;
  }

  .card {
    width: 100%;
  }

  .a-contact {
    flex-direction: column;
    align-items: center;
  }

  .a-contact-left,
  .a-contact-right {
    width: 100%;
    padding: 0;
  }

  .a-contact-right img {
    width: 50%;
    max-width: 600px;
    margin-top: 50px;
  }
}

@media (max-width: 747px) {
  h2 {
    font-size: 2.5rem;
  }

  .hero {
    flex-direction: column;
  }
  .hero-left {
    width: 90%;
    height: 80vh;
    align-items: flex-start;
  }
  .hero-right {
    margin-top: -80vh;
    width: 90%;
    height: 80vh;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .hero-right img {
    height: 200px;
  }

  .hero-left .btn {
    width: fit-content;
    text-align: center;
  }

  h1 {
    font-size: 2.5rem;
  }

  .accomp {
    padding: 50px 5%;
  }

  .accomp-head {
    flex-direction: column-reverse;
    align-items: center;
  }
  .accomp-head img {
    width: 150px;
  }

  .accomp-head h2 {
    width: 100%;
    text-align: center;
  }

  .a-contact {
    padding: 50px 5%;
  }
  .a-contact h2 {
    font-size: 2rem;
  }

  .project-container {
    margin: 50px 0;
  }

  .project {
    width: 100%;
    padding: 18px;
    margin: 0;
  }

  .a-contact-left .trait {
    padding: 24px 24px;
    max-width: 100vw;
  }

  .faq-list {
    flex-direction: column;
    align-items: center;
  }
  .faq-card {
    width: 100%;
  }
}
