/* ------------------------------------------------------------------ *
 * Testimonials page (Rails port — Postmark-style speech-bubble cards)
 * ------------------------------------------------------------------ */

.temoignages-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  font-family: 'Inter', system-ui, sans-serif;
  background: #f5f1e8;          /* warm off-white, matches the reference */
}

.temoignages-page__title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 36px;
}

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

/* Card = a speech bubble + an author line below it. */
.temoignage-card {
  display: flex;
  flex-direction: column;
}

/* The speech bubble */
.temoignage-card__bubble {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 22px 24px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  margin-bottom: 18px;
}
/* The little tail at the bottom-left of the bubble (CSS triangle) */
.temoignage-card__bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 28px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #ffffff;
  filter: drop-shadow(0 4px 4px rgba(15, 23, 42, 0.05));
}

.temoignage-card__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #2563eb;
}

.temoignage-card__content {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #334155;
  text-align: left;
  font-style: italic;
}

.temoignage-card__author {
  padding-left: 28px;      /* aligns with the bubble tail */
  font-size: 13.5px;
  color: #475569;
  line-height: 1.4;
}
.temoignage-card__author strong {
  display: block;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 2px;
}
.temoignage-card__meta {
  color: #94a3b8;
  font-size: 12.5px;
}

/* Pagination */
.temoignages-pagination {
  margin-top: 36px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.temoignages-pagination__link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}
.temoignages-pagination__link:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.temoignages-pagination__counter {
  color: #64748b;
  font-size: 13px;
}

.temoignages-empty {
  text-align: center;
  color: #64748b;
  font-style: italic;
  padding: 40px 0;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .temoignages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone: 1 column */
@media (max-width: 640px) {
  .temoignages-page {
    padding: 24px 16px 40px;
  }
  .temoignages-page__title {
    font-size: 22px;
    margin-bottom: 24px;
  }
  .temoignages-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
