.hero {
  background-image: url("/images/fond-com-rose.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 {
  background-color: #fffefb;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%; /* ou une largeur fixe selon le besoin */
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("/images/camille-loupe.webp"),
    url("/images/media-list.webp");
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto 60%, auto 60%; /* ou "contain", "cover", selon le rendu voulu */
}

.presentation-text {
  width: 55%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.presentation-text p,
.pourquoi p,
.k-contact p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 20px;
  line-height: 1.2;
}

.pourquoi {
  background-color: #f6f6f6;
  min-height: 100vh;
  padding: 150px 100px;
}

.pourquoi h2 {
  text-align: left;
}

.pourquoi-text {
  width: 60%;
}

.card-list {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  gap: 40px;
}

.card {
  width: 33%;
  min-width: 300px;
  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: 600px;
  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;
}

.icon-k {
  position: absolute;
  transform: translateY(calc(-100% - 31px));
  width: 60%;
}

.icon-k-2 {
  display: none;
}

.space {
  background-color: #b65e2e;
}

.image-k {
  display: none;
}

.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-pink.webp");
  text-align: center;
  text-wrap: nowrap;
}

.k-right .trait:hover {
  transform: scale(1.05);
}

.project-separator {
  padding: 100px 0;
  width: 100%;
  background-image: url("/images/image.webp");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fffefb;
}

.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-2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}

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

.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: 350px;
  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;
}

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

  .presentation {
    position: relative;
    background-size: auto 50%, auto 50%; /* ou "contain", "cover", selon le rendu voulu */
  }

  .presentation-text {
    width: 55%;
  }

  .card-list {
    flex-wrap: wrap;
    justify-content: flex-between;
  }
  .card {
    width: calc(50% - 30px);
  }

  .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) {
  h2 {
    font-size: 3rem;
  }

  .presentation {
    min-height: 70vh;
    padding: 50px 0px;
    background-size: auto 40%, auto 40%; /* ou "contain", "cover", selon le rendu voulu */
  }

  .presentation-text {
    width: 55%;
  }

  .card-list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  .card {
    width: 90%;
    margin-bottom: 30px;
    max-width: none;
  }

  .presentation-text {
    width: 90%;
  }
  .pourquoi-text {
    width: 90%;
  }
  .pourquoi {
    padding: 100px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pourquoi h2 {
    font-size: 2.5rem;
  }

  .image-k {
    margin-bottom: -100px;
    width: 50%;
    padding-top: 0;
  }
}

@media (max-width: 747px) {
  .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;
  }

  h2 {
    font-size: 2.5rem;
    margin-bottom: 0px;
  }

  .small-title {
    font-size: 2.5rem;
    padding: 0 50px;
  }
  .presentation {
    min-height: 70vh;
    padding: 100px 0px;
    background-size: auto 20%, auto 15%; /* ou "contain", "cover", selon le rendu voulu */
    background-position: left 5%, right 95%;
  }

  .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-separator {
    background-attachment: scroll;
    padding: 50px;
    gap: 16px;
  }

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

  .trait {
    padding: 0;
  }
}
