/**
 * ALTO SÉQUANAIS — modern editorial cards inspired by the light, uncluttered
 * ARTS Immobilier listing presentation. Blog data stays owned by Posts.
 */
.alto-latest-posts-section {
  background: #f9f8f7;
}
.posts-grid.alto-latest-posts-grid {
  align-items: stretch;
  gap: 24px;
}
.posts-grid.alto-latest-posts-grid > .alto-post-card {
  border: 1px solid #e8e4e7;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 18px rgba(30, 40, 62, .045);
  transition: box-shadow .25s ease, transform .25s ease;
}
.posts-grid.alto-latest-posts-grid > .alto-post-card:hover {
  box-shadow: 0 12px 30px rgba(30, 40, 62, .11);
  transform: translateY(-2px);
}
.posts-grid.alto-latest-posts-grid .card-image {
  position: relative;
  flex: none;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}
.posts-grid.alto-latest-posts-grid .card-image > a {
  display: block;
  width: 100%;
  height: 100%;
}
.posts-grid.alto-latest-posts-grid .card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  transition: transform .5s cubic-bezier(.23, 1, .32, 1);
}
.posts-grid.alto-latest-posts-grid .card-image > a:hover img {
  transform: scale(1.035);
}
.posts-grid.alto-latest-posts-grid .card-body {
  padding: clamp(20px, 2.3vw, 28px);
  gap: 12px;
  min-height: 250px;
}
.posts-grid.alto-latest-posts-grid .card-meta {
  min-height: auto;
  font-size: .76rem;
  letter-spacing: .035em;
  color: #758094;
}
.posts-grid.alto-latest-posts-grid .card-title {
  min-height: 0;
  margin: 0;
  font-size: clamp(1.08rem, 1.75vw, 1.42rem);
  line-height: 1.35;
}
.posts-grid.alto-latest-posts-grid .card-title a {
  color: #1d293d;
  text-decoration: none;
  text-decoration-color: transparent;
  transition: color .2s ease;
}
.posts-grid.alto-latest-posts-grid .card-title a:hover {
  color: var(--color-primary, #9f1f63);
}
.posts-grid.alto-latest-posts-grid .card-excerpt {
  color: #5b6678;
  line-height: 1.6;
  font-size: .94rem;
  min-height: 0;
}
.posts-grid.alto-latest-posts-grid .post-categories {
  min-height: auto;
}
.alto-post-engagement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eee9ec;
  color: #687489;
  font-size: .83rem;
  font-weight: 500;
  line-height: 1.45;
}
.alto-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.alto-post-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: #98718b;
}
.alto-post-stat-icon svg {
  width: 16px;
  height: 16px;
}
.posts-grid.alto-latest-posts-grid .post-read-more-btn {
  align-self: flex-start;
  display: inline-flex;
  width: auto;
  min-height: var(--fc-btn-height, 42px);
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: var(--fc-btn-radius, 0.5rem);
  box-shadow: none;
  background: none;
  color: var(--color-primary, #9f1f63);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
/* Read-more is an editorial link, not a raised button.
   Override inherited .btn:hover shadows/translation and keep a clean
   burgundy color change without underline in every interaction state. */
.posts-grid.alto-latest-posts-grid .post-read-more-btn {
  box-shadow: none;
  text-shadow: none;
  text-decoration: none;
  transform: none;
  transition: color .2s ease;
}
.posts-grid.alto-latest-posts-grid .post-read-more-btn:hover,
.posts-grid.alto-latest-posts-grid .post-read-more-btn:focus-visible,
.posts-grid.alto-latest-posts-grid .post-read-more-btn:active {
  background: transparent;
  color: #7d1549;
  text-decoration: none;
  box-shadow: none;
  text-shadow: none;
  transform: none;
}

/* One heart on each blog card, visible independently of the image link. */
.posts-grid > .card .card-image {
  position: relative;
}
.alto-post-favorite {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(255,255,255,.98);
  color: #23314a;
  box-shadow: 0 2px 12px rgba(30,40,55,.15);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* A count is explicitly cumulative additions, not currently active favorites. */
.alto-post-favorite.has-count {
  width: auto;
  min-width: 42px;
  padding: 0 10px;
  gap: 6px;
  border-radius: 999px;
}
.alto-post-favorite .alto-favorite-add-count {
  color: currentColor;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.alto-post-favorite .alto-favorite-add-count[hidden] {
  display: none;
}
.alto-post-favorite:hover {
  color: var(--color-primary, #9f1f63);
  transform: scale(1.06);
}
.alto-post-favorite[aria-pressed="true"] {
  color: var(--color-primary, #9f1f63);
  background: #fff;
}
.alto-post-favorite[aria-pressed="true"] svg {
  fill: currentColor;
}
.alto-post-favorite:focus-visible {
  outline: 3px solid var(--color-primary, #9f1f63);
  outline-offset: 3px;
}
.alto-post-favorite .alto-engagement-lucide {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  transition: fill .2s ease;
}
.alto-detail-favorite {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 0;
}
.alto-detail-favorite .alto-post-favorite {
  position: relative;
  top: auto;
  right: auto;
  border-color: #e1dce1;
  box-shadow: none;
}
@media (max-width: 720px) {
  .posts-grid.alto-latest-posts-grid {
    gap: 18px;
  }
  .posts-grid.alto-latest-posts-grid .card-image {
    aspect-ratio: 16 / 10;
  }
  .posts-grid.alto-latest-posts-grid .card-body {
    padding: 20px;
    min-height: 0;
  }
  .alto-post-engagement {
    gap: 8px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .posts-grid.alto-latest-posts-grid .card-image img,
  .posts-grid.alto-latest-posts-grid .post-read-more-btn,
  .alto-post-favorite,
  .posts-grid.alto-latest-posts-grid > .alto-post-card {
    transition: none;
    transform: none !important;
  }
}
