/* Styles du plugin "Autres Bâtiments" */

.ab-grille-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.ab-grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .ab-grille {
    grid-template-columns: 1fr;
  }
}

.ab-carte {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ab-carte:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}

.ab-carte__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.ab-carte__image--vide {
  background: #eeeeee;
}

.ab-carte__contenu {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.4rem 1.2rem 1.4rem;
}

.ab-carte__titre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.ab-carte__texte {
  font-size: 0.9rem;
  color: #5a5a5a;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.ab-carte__fleche {
  align-self: flex-end;
  margin-top: 1rem;
  color: #c8102e;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}
