.deputes {
  background: #0b0b28;
  color: #fff;
  padding: 50px 90px;
  font-family: "Avenir", sans-serif;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.title-left .title-deputes {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}
.intro-text {
  margin-right: 320px;
}

.intro-text h3 {
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: "Futura Std", sans-serif;
  line-height: 1.2;
  margin-left: 100px;
  letter-spacing: -1px;
  color: #ffffff;
}

.intro-text p {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-left: 100px;
  font-family: "Avenir", sans-serif;
  font-weight: 300;
  color: #ffd40c;
}

.deputes-slider {
  width: 100%;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 cartes par ligne */
  gap: 20px;
  max-width: 85%; /* réduit la largeur */
  margin: 0 auto; /* centre le bloc */
}

.card {
  display: flex;
  align-items: stretch;
  background: #23366a; /* bleu */
  position: relative;
  padding: 0;
  overflow: hidden;
}

.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-right: 20px;
}

.card-info {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 18px;
  flex: 1;
  display: flex;
  flex-direction: column; /* empile h3 et p */
  align-items: flex-start; /* aligne à gauche */
  position: relative;
  margin-top: 25px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-header h3 {
  font-size: 23px;
  margin: 0;
  line-height: 1.2;
}

.card-link i {
  font-size: 18px;
  color: #ffd40c;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.card-link i:hover {
  color: #fff;
  transform: translateX(3px); /* petit effet de déplacement */
}

.card-info h3 {
  line-height: 1;
  margin: 0;
  font-size: 23px;
}

.card-info p {
  font-weight: 400;
  font-size: 14px;
  max-width: 50px;
}

.card-info i {
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  position: absolute;
  bottom: 10px;
  right: 15px;
}

.card-info i:hover {
  color: #ffd40c;
}

.swiper-pagination {
  bottom: -30px !important; /* descend les points */
}

.swiper-pagination-bullet {
  background: #ffd40c; /* jaune pour matcher ton design */
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #fff; /* point actif en blanc */
}

.depute-detail {
  background: #0b0b28;
  color: #fff;
  font-family: "Avenir", sans-serif;
  margin-top: 30px;
}

.detail-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* ✅ aligne les deux blocs par le bas */
  gap: 40px;
  margin-top: 20px; /* colle au titre Députés */
}

.detail-text {
  flex: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ✅ colle le texte en bas */
}

.detail-text h1 {
  font-size: 3.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1;
  font-weight: 700;
}

.detail-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #ddd;
  max-width: 700px;
  line-height: 1.2;
}

.detail-image {
  flex-shrink: 0;
  width: 350px;
  height: 450px;
  background: #ffd40c; /* jaune derrière */
  display: flex;
  align-items: flex-end; /* image en bas */
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
}

.detail-image img {
  height: 90%; /* laisse apparaître du jaune en haut */
  object-fit: cover;
}

#btn-retour {
  height: 50px;
  width: 100px;
  margin-top: 20px;
  border: none;
  background: #ffd40c;
  color: #0b0b28;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

.deputes-slider,
.depute-detail {
  transition: opacity 0.4s ease;
}

/* ---------------- RESPONSIVE ---------------- */

/* Tablette */
@media (max-width: 992px) {
  .deputes {
    padding: 40px 40px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .intro-text {
    margin-right: 0;
    margin-left: 0;
  }

  .intro-text h3 {
    font-size: 2rem;
    margin-left: 0;
  }

  .intro-text p {
    font-size: 1rem;
    margin-left: 0;
  }

  .cards-grid {
    max-width: 100%;
    gap: 15px;
  }

  .card img {
    width: 100px;
    height: 100px;
  }

  .detail-container {
    flex-direction: column;
    align-items: center;
  }

  .detail-text {
    text-align: center;
    align-items: center;
  }

  .detail-image {
    width: 100%;
    height: auto;
    max-width: 400px;
  }

  .detail-image img {
    width: 100%;
    height: auto;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .deputes {
    padding: 30px 20px;
  }

  .title-left .title-deputes {
    font-size: 1.8rem;
  }

  .cards-grid {
    grid-template-columns: 1fr; /* ✅ une seule carte par ligne */
  }

  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .card img {
    margin: 0 0 15px 0;
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .card-info {
    align-items: center;
    margin-top: 10px;
    position: relative;
  }
  .card-link {
    display: block;
    position: absolute;
    bottom: -15px; /* décale en dessous du p */
    left: 0;
    right: 70px;
  }

  .card-info p {
    margin-bottom: 30px; /* espace pour ne pas que ça chevauche */
    padding-right: 80px;
  }

  .card-info h3 {
    font-size: 18px;
  }

  .detail-text h1 {
    font-size: 2rem;
  }

  .detail-text p {
    font-size: 0.9rem;
  }
  .deputes-slider {
    position: relative; /* nécessaire pour que la pagination s’ancre */
    overflow: visible; /* sinon elle est masquée */
  }

  .deputes .swiper-pagination {
    position: relative !important; /* ✅ pour sortir du overflow */
    margin-top: -20px; /* espace avec les cartes */
    text-align: center;
    z-index: 20;
  }

  .deputes .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px;
  }

  .deputes .swiper-pagination-bullet-active {
    background: #ffd40c;
    transform: scale(1.2); /* effet visuel */
  }
}
