.biographie {
  padding: 60px 80px;
  background: #fff;
  position: relative;
}

.biographie h2 {
  font-family: var(--avenir-font-family);
  font-size: 34px;
  margin-bottom: 30px;
  color: #39434C;
}

.biographie .accent {
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--jaune);
  margin-right: 10px;
  vertical-align: middle;
}

.carousel {
  display: flex;
  align-items: center;
  position: relative;
}

.biographie .slides {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.biographie .slide {
  display: none;
  flex: 1;
  align-items: center;
  gap: 30px;
}

.biographie .slide.active {
  display: flex;
  animation: fade 0.8s ease-in-out;
}

.biographie .slide img {
  width: 45%;
  height: 450px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
}



.biographie .slide .content {
  width: 50%;
  text-align: left;
  margin-bottom: 50px;
}

.biographie .slide h3 {
  font-size: 54px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #000;
  line-height: 0.8;
}

.biographie .slide p {
  font-size: 18px;
  color: #5c6c7c;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--jaune);
  color: #000;
  border-radius: 40px;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: 0.3s;
  margin-top: 50px;
}

.btn svg {
  flex-shrink: 0;
  width: 50px;
  height: 22px;
}

.btn:hover {
  background: var(--vert);
  color: #fff;
}

/* Boutons navigation */
.carousel button {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--jaune);
  padding: 0 15px;
  transition: 0.3s;
}

.carousel button:hover {
  color: var(--vert);
}

/* Animation */
@keyframes fade {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */

/* Tablettes & petits laptops */
@media (max-width: 992px) {
  .biographie {
    padding: 50px 40px;
  }

  .biographie .slide h3 {
    font-size: 42px;
  }

  .biographie .slide p {
    font-size: 17px;
  }
}

/* Mobiles classiques */
@media (max-width: 768px) {
  .biographie {
    padding: 40px 20px;
  }

  .biographie h2 {
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;
  }

  .biographie .slide {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

.biographie .slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-fit: top;
  }

  .biographie .slide .content {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .biographie .slide h3 {
    font-size: 28px;
    line-height: 1.2;
  }

  .biographie .slide p {
    font-size: 15px;
    line-height: 1.6;
  }

  .btn {
    font-size: 15px;
    padding: 12px 24px;
    margin-top: 20px;
  }

  .carousel button {
    font-size: 26px;
    padding: 0 10px;
  }
}

/* Très petits écrans (≤ 480px) */
@media (max-width: 480px) {
  .biographie {
    padding: 30px 15px;
  }

  .biographie .slide img {
    width: 100%;     
    height: 200px;
    object-fit: cover;
    object-fit: top;
  }
  .biographie .slide h3 {
    font-size: 22px;
  }

  .biographie .slide p {
    font-size: 14px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}
