/* APPLICATION CARDS
   Liste des apps (page d'accueil) : une carte par app. */

.app-list-section {
  width: min(1160px, calc(100% - 32px));
  margin: 48px auto 64px;
}

.app-list-heading {
  margin: 0 0 22px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: box-shadow .2s, transform .2s;
}

.app-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

/* EN-TÊTE : logo + titre + sous-titre */

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.app-card-head img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 15px;
}

.app-card-head div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-card-head strong {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.app-card-head span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.app-card-head:hover strong {
  color: var(--green);
}

.app-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ACTIONS : en savoir plus + stores */

/* "En savoir plus" sur une ligne, les boutons stores sur la ligne suivante */
.app-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.app-card-stores {
  display: flex;
  align-self: center;
  margin-top: 8px;
  flex-wrap: nowrap;
  gap: 8px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 4px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.more-link:hover {
  color: var(--green-dark);
}

.more-link .bi {
  font-size: 13px;
  transition: transform .2s;
}

.more-link:hover .bi {
  transform: translateX(2px);
}

.store-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}

.store-mini:hover {
  background: var(--bg);
  border-color: #d6d8d0;
}

.more-link:focus-visible,
.store-mini:focus-visible,
.app-card-head:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .app-card,
  .more-link .bi {
    transition: none;
  }

  .app-card:hover {
    transform: none;
  }
}
