/* ------------------------------------------------------------
   cards.css — carte d'outil (grille « Créer »), lot 01
   Référence : handoffs/01-composants/screenshots/03-cartes-outil.png
   ------------------------------------------------------------ */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  text-decoration: none;
  color: var(--ink);
}

.tool-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
}

.tool-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--tint);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}

.tool-card__badge {
  height: 22px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.tool-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.tool-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Bientôt disponible : lisible (AAA), mais non cliquable. */
.tool-card--soon {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: default;
}
.tool-card--soon .tool-card__icon {
  background: var(--surface-2);
  color: var(--muted);
}
.tool-card--soon .tool-card__badge {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}
.tool-card--soon .tool-card__soon {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-card--soon .tool-card__soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
