/* ===== SECTION CARP ===== */

.carp {
  width: 100%;
  background: #ffffff;
  padding: 80px 0;
}

.carp__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Titre */
.carp__title {
  color: #252338;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: normal;
  margin: 0;
  text-align: center;
}

.carp__title--blue {
  color: #0086F5;
}

/* Zone textes + timeline */
.carp__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Les 3 textes alignés en bas */
.carp__texts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: end; /* alignés en bas */
}

.carp__text {
  width: 100%;
  color: #000;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

/* Timeline */
.carp__timeline {
  position: relative;
  width: 100%;
  height: 20px;
}

.carp__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #6B7284;
  transform: translateY(-50%);
  overflow: hidden;
}

.carp__line-fill {
  height: 100%;
  width: 0%;
  background: #0086F5;
  transition: width 1.2s ease;
}

.carp__line-fill.animated {
  width: 100%;
}

/* Points sur la timeline */
.carp__dots {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0;
}

/* Positionnement des dots aux tiers */
.carp__dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.carp__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #6B7284;
  border: 2px solid #6B7284;
  justify-self: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.carp__dot.active,
.carp__dot:hover {
  background: #0086F5;
  border-color: #0086F5;
  transform: scale(1.3);
}

/* Bouton */
.carp__cta {
  display: flex;
  justify-content: center;
}

.btn-carp {
  display: inline-flex;
  padding: 16px 32px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid #27289D;
  background: transparent;
  color: #27289D;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-carp:hover {
  background: #27289D;
  color: #F5FAFF;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .carp__container { padding: 0 24px; }
  .carp__title { font-size: 30px; }
  .carp__text { font-size: 17px; }
}

@media (max-width: 768px) {
  .carp { padding: 48px 0; }

  .carp__container {
    padding: 0 16px;
    gap: 32px;
  }

  .carp__title { font-size: 22px; }

  /* 1 colonne sur mobile */
  .carp__texts {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .carp__text { font-size: 16px; }

  .carp__timeline { display: none; }

  .btn-carp {
    font-size: 16px;
    padding: 14px 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}