.hero {
  background-image: url("/images/fond-photo-vert.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;
}

.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,
.k-contact 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;
}

.atout {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-self: center;
  padding: 100px 5%;
  background-color: #f6f6f6;
}

.atout-contain {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.atout-text {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.atout-image {
  width: 30%;
  padding-left: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.atout-image img {
  height: auto;
  max-width: 600px;
  width: 100%;
}
.atout-text p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 20px;
  line-height: 1.2;
}

.atout h2 {
  text-align: center;
}

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

.atout .trait:hover {
  transform: scale(1.05);
}

.atout a {
  width: fit-content;
}

.atout-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0;
}

.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;
}

.k-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 150px;
}

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

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

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

.k-right .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-3.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;
}

.fixed-bounce-btn {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.fixed-bounce-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.fixed-bounce-btn a {
  color: white;
  text-decoration: none;
}

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

.btn:hover {
  animation: none;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@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;
  }

  .atout-contain {
    flex-direction: column;
  }
  .atout-text {
    width: 100%;
    padding: 0;
  }

  .icon-k {
    display: none;
  }

  .image-k {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: calc(50% - 30px);
    margin-bottom: -150px;
    padding-top: 150px;
  }
  .icon-k-2 {
    display: inline-block;
    width: 100%;
    height: auto;
  }

  .k-contact {
    padding: 100px 50px;
  }

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

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

  .presentation-text {
    width: 100%;
  }

  .presentation h2 {
    text-align: center;
  }

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

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

  .card {
    width: 100%;
  }

  .atout-image {
    width: 300px;
    margin-top: 24px;
  }
}

@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;
  }

  .atout .trait {
    padding: 24px 24px;
    max-width: 100vw;
  }

  .k-contact {
    padding: 50px 20px;
    flex-direction: column-reverse;
    align-items: center;
  }

  .k-left,
  .k-right {
    width: 90%;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .k-left img {
    width: 50%;
    max-width: 600px;
  }

  .k-right .trait {
    padding: 24px 36px;
  }

  .k-contact h2 {
    font-size: 2rem;
  }

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

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

  .social-fixed {
    display: none;
  }

  .fixed-bounce-btn {
    width: 60%;
  }
}
