/* ============================================
   APPSM - PAGE TÉMOIGNAGES & HISTOIRES À SUCCÈS
   Fichier: css/temoignages.css
============================================ */

/* ============================================
   1. GRILLE HISTOIRES À SUCCÈS
============================================ */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 30, 92, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(91, 45, 142, 0.08);
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(74, 30, 92, 0.18);
  border-color: transparent;
}

.story-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.story-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-card:hover .story-img-wrapper img {
  transform: scale(1.08);
}

.story-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(232, 103, 42, 0.4);
}

.story-body {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  font-family: "Poppins", sans-serif;
  line-height: 1.3;
}

.story-excerpt {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.story-quote {
  background: var(--off-white);
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
  font-style: italic;
  font-size: 13.5px;
  color: var(--purple);
  margin-bottom: 20px;
  position: relative;
}

.story-quote i {
  color: var(--orange);
  margin-right: 5px;
  opacity: 0.6;
}

.story-author {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.story-author strong {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: var(--navy);
}

.story-author small {
  font-size: 12px;
  color: var(--gray-400);
}

/* ============================================
   2. GRILLE TÉMOIGNAGES (CARTES AVIS)
============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-box {
  background: var(--white);
  padding: 35px 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(74, 30, 92, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--purple);
}

.testimonial-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(74, 30, 92, 0.15);
  border-top-color: var(--orange);
}

.testimonial-stars {
  color: #f39c12;
  font-size: 14px;
  margin-bottom: 15px;
}

.testimonial-box p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 25px;
  flex: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.user-info h4 {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.user-info span {
  font-size: 12px;
  color: var(--gray-400);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .stories-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stories-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
