/* ===============================
   APPLICATIONS – BASE
================================ */

.page-applications {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Align WP page title */
.entry-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===============================
   INTRO
================================ */

.applications-intro {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.applications-lead {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #444;
}

/* ===============================
   GRID
================================ */

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));

  /* 🔑 CLÉ ABSOLUE */
  grid-auto-rows: 1fr;

  gap: 2.5rem;
  justify-content: start;
  margin-top: 2rem;
}

/* ===============================
   CARD
================================ */

.application-card {
  display: flex;
  flex-direction: column;
  height: 100%;

  background: #fff;
  border-radius: 8px;
  padding: 1.8rem;

  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.application-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.1);
}

/* ===============================
   IMAGE
================================ */

.application-card-image {
  aspect-ratio: 16 / 9;
  background: #f3f3f3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.application-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   CONTENT
================================ */

.application-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Title */
.application-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: rgba(0, 58, 143, 0.35);
  transition: color 0.3s ease;
}

.application-card:hover h3 {
  color: #003A8F;
}

/* Description */
.application-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

/* Meta — IMPORTANT */
.application-meta {
  display: block;          /* 🔑 sinon inline = espace visuel cassé */
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: #777;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 800px) {
  .applications-grid {
    grid-template-columns: 1fr;
  }
}
