/* InferenceVision — mouvement et icônes d'applications
   Chargé après finishing.css. Aucune animation si l'utilisateur préfère réduire le mouvement. */

/* --- Icônes réelles à la place des lettres --- */
.card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-visual .app-icon {
  width: 112px;
  height: 112px;
  border-radius: 26%;
  box-shadow: 0 12px 32px rgba(20, 25, 20, .18);
  transition: transform .35s cubic-bezier(.2, .6, .2, 1), box-shadow .35s cubic-bezier(.2, .6, .2, 1);
}

.app-card:hover .app-icon {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 40px rgba(20, 25, 20, .22);
}

/* les anciens repères (cercle + lettre) ne servent plus là où une icône est posée */
.card-visual .circle,
.card-visual .visual-title { display: none; }

.featured-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  vertical-align: middle;
  margin-right: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

/* nouvelle teinte pour Tesem, dans la même famille que les autres */
.card-visual.tesem { background: #d6d2be; }

/* --- Bouton App Store --- */
.store-badge {
  display: flex;          /* bloc : le bouton passe sous le texte, jamais collé */
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 40px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, .5);
  transition: background .22s, color .22s, border-color .22s, transform .22s;
}

.store-badge:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}

.store-badge.soon {
  opacity: .55;
  border-style: dashed;
  cursor: default;
}

/* --- Apparition au défilement --- */
@media (prefers-reduced-motion: no-preference) {
  /* sans JS, rien n'est masqué : le contenu reste lisible */
  html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s cubic-bezier(.2, .6, .2, 1), transform .65s cubic-bezier(.2, .6, .2, 1);
    transition-delay: calc(var(--i, 0) * 60ms);
  }

  html.js .reveal.in {
    opacity: 1;
    transform: none;
  }

  /* léger flottement de l'icône à la une, très lent */
  @keyframes iv-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .featured-icon { animation: iv-float 6s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .featured-icon { animation: none !important; }
}

/* carte = article + lien interne + badge externe (un <a> ne peut pas en contenir un autre) */
.app-card { display: block; }
.card-link { display: block; }
.app-card .store-badge { margin-left: 0; }
