/* =========================
   CAS PRATIQUES (ACCUEIL)
========================= */

.cas-section {
  padding: 100px 0;
  background: #f8fafc;
}

.cas-container {
  width: 92%;
  max-width: 1100px;
  margin: auto;
}

.cas-section .section-header {
  margin-bottom: 50px;
}

.cas-subtitle {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3f5248;
}

.cas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.cas-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: .25s ease;
}

.cas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.cas-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.cas-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* les visuels hero gardent leur sujet à droite */
  object-position: 75% center;
}

.cas-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.cas-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.cas-body p {
  flex: 1;
  font-size: .95rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 18px;
}

.cas-link {
  font-weight: 700;
  color: var(--green-dark);
}

.cas-link i {
  margin-left: 6px;
  transition: .25s;
}

.cas-card:hover .cas-link i {
  transform: translateX(4px);
}

.cas-more {
  text-align: center;
  margin-top: 40px;
}

.cas-more a {
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}

.cas-more a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .cas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .cas-section {
    padding: 70px 0;
  }
}
