/* ================= CAS CLIENTS (témoignages d'entreprises) ================= */
.cas-clients__haut {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.cas-clients__haut .entete { margin: 0; }
.cas-clients__haut .pilule { margin-bottom: 8px; }

/* Rangée de 4 cartes sombres */
.cas-clients__grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cas {
  display: flex;
  flex-direction: column;
  background: var(--encre);
  color: #fff;
  border-radius: var(--r-carte);
  padding: 28px;
  box-shadow: 0 18px 40px -22px rgba(30, 31, 32, 0.40);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.45s ease,
    box-shadow 0.45s ease;
}
.cas:hover {
  transform: translateY(-8px);
  /* le coin haut-droit s'arrondit davantage */
  border-radius: var(--r-carte) 70px var(--r-carte) var(--r-carte);
  box-shadow: 0 32px 56px -24px rgba(30, 31, 32, 0.50);
}

.cas__nom {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.cas__citation {
  flex: 1;
  font-family: var(--f-corps);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.cas__lien {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: transform 0.3s ease, text-decoration-color 0.3s ease;
}
.cas__fleche { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cas__lien:hover { transform: translateX(4px); text-decoration-color: var(--peche); }
.cas__lien:hover .cas__fleche { transform: translateX(5px); }

/* --- Responsive --- */
@media (max-width: 991px) {
  .cas-clients__grille { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .cas-clients__haut {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 36px;
  }
  .cas-clients__haut .pilule { margin-bottom: 0; }

  /* Scroll horizontal doux, cartes qui s'aimantent */
  .cas-clients__grille {
    display: flex;
    gap: 16px;
    margin: 0 -22px;               /* déborde du padding de la section-carte */
    padding: 6px 22px 26px;        /* laisse respirer les ombres */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 22px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cas-clients__grille::-webkit-scrollbar { display: none; }
  .cas {
    flex: 0 0 76%;
    max-width: 320px;
    scroll-snap-align: start;
  }
}

@media (max-width: 479px) {
  .cas { flex-basis: 84%; padding: 24px; }
  .cas__nom { font-size: 20px; }
}
