/* Fiches en cours de vérification (maquettes : desktop/Accueil, desktop/Casinos, da/Composants « Fiche en cours »).
   Registre « en attente » : surfaces creusées (et non en relief comme les cartes publiées), pointillé pour le compteur,
   pastilles néon éteintes. Beau, mais jamais un signe de fiabilité. Survol et lumière de pointeur : system.css. */
.pending {
  display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--ds-r-lg);
  border: 1px dashed var(--dc-ligne-forte); background: var(--ds-surface-sunken); box-shadow: var(--ds-highlight);
}
.pending__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ds-space-4); }
.pending__title { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.2; }
.pending__count { font-size: 32px; line-height: 1; color: var(--dc-brume); }
.pending__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--dc-texte-2); }

/* Puces (accueil) */
.pending__chips { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.pending-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: var(--ds-r-pill);
  border: var(--ds-border); background: color-mix(in srgb, var(--dc-velours) 60%, transparent);
  color: var(--dc-texte-2); font-size: 14px; text-decoration: none;
  transition: border-color var(--ds-dur-fast) var(--ds-ease-out), color var(--ds-dur-fast) var(--ds-ease-out), background-color var(--ds-dur-base) var(--ds-ease-out), transform var(--ds-dur-base) var(--ds-ease-out);
}
@media (hover: hover) {
  .pending-chip:hover { border-color: var(--ds-border-hover); background-color: var(--dc-fumee); color: var(--dc-lumiere); transform: translateY(-1px); }
}
.pending-chip:active { transform: scale(.97); transition-duration: var(--ds-dur-press); }

/* Lignes (catalogue) */
.pending__rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--ds-space-3); margin: 0; padding: 0; list-style: none; }
.pending-row {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px;
  border: var(--ds-border); background: var(--ds-surface-sunken);
  box-shadow: var(--ds-highlight), inset 0 -10px 24px -18px color-mix(in srgb, var(--dc-nuit) 100%, transparent);
}
.pending-row .logo { box-shadow: 0 0 0 1px var(--dc-ligne); }
.pending-row__id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pending-row__name { margin: 0; font-weight: 700; font-size: 19px; line-height: 1.2; }
.pending-row__meta { margin: 0; font-size: 13px; line-height: 1.4; color: var(--dc-brume); }
.pending-row__go {
  flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--ds-r-sm);
  border: var(--ds-border); background: color-mix(in srgb, var(--dc-nuit) 70%, transparent); color: var(--dc-vert);
  transition: border-color var(--ds-dur-fast) var(--ds-ease-out), color var(--ds-dur-fast) var(--ds-ease-out), background-color var(--ds-dur-base) var(--ds-ease-out);
}
/* Le lien couvre toute la ligne : la cible devient la ligne entière (même destination, même nom accessible) */
.pending-row__go::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.pending-row__go .icon { transition: transform var(--ds-dur-base) var(--ds-ease-out); }
.pending-row__go:focus-visible { box-shadow: none; }
/* Anneau de focus sur la ligne entière, au clavier seulement (lounge.css l'affiche aussi au clic souris) */
.pending-row:focus-within { box-shadow: var(--ds-highlight), inset 0 -10px 24px -18px color-mix(in srgb, var(--dc-nuit) 100%, transparent); }
.pending-row:has(:focus-visible) { border-color: var(--ds-border-hover); box-shadow: var(--ds-focus), var(--ds-elev-1); }
@media (hover: hover) {
  .pending-row:hover .pending-row__go { border-color: var(--ds-border-proof); background-color: var(--dc-fumee); color: var(--dc-vert-clair); }
  .pending-row:hover .pending-row__go .icon { transform: translateX(3px); }
  .pending-row:hover .pending-row__name { color: var(--dc-lumiere); }
}
.pending-row:active .pending-row__go .icon { transform: translateX(5px); transition-duration: var(--ds-dur-press); }

/* Pastille néon en filigrane à droite, éteinte (aucune donnée publiée) ; elle se ravive à peine au survol */
.pending-row__art {
  position: absolute; z-index: -1; right: -26px; top: 50%; width: 132px; height: 132px; margin-top: -66px; opacity: .26;
  filter: grayscale(.85);
  -webkit-mask-image: radial-gradient(circle, var(--dc-nuit) 30%, transparent 70%); mask-image: radial-gradient(circle, var(--dc-nuit) 30%, transparent 70%);
  transition: opacity var(--ds-dur-slow) var(--ds-ease-out);
}
.pending-row__art .na-glow { opacity: .12; }
@media (hover: hover) { .pending-row:hover .pending-row__art { opacity: .5; } }

@media (max-width: 767px) {
  .pending { padding: 20px 18px; border-radius: var(--dc-r-card-m); }
  .pending__title { font-size: 19px; }
}

/* Variante « lignes » (catalogue) : titre et compteur hors carte, une ligne par fiche */
.pending--rows { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; gap: 14px; }
.pending--rows .pending__head { justify-content: flex-start; align-items: center; gap: 14px; }
.pending--rows .pending__title { font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.pending--rows .pending__count {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: var(--ds-r-pill);
  border: 1.5px dashed var(--dc-ligne-forte); font-size: 22px;
}
@media (max-width: 767px) {
  .pending--rows { padding: 0; border-radius: 0; }
  .pending--rows .pending__head { justify-content: space-between; }
  .pending--rows .pending__title { font-size: 22px; }
  .pending--rows .pending__count { min-width: 40px; height: 40px; font-size: 19px; }
  .pending--rows .pending__rows {
    gap: 0; padding: 4px 14px; border: var(--ds-border); border-radius: var(--dc-r-card-m);
    background: var(--ds-surface-sunken); box-shadow: var(--ds-highlight);
  }
  .pending--rows .pending-row { padding: 10px 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  .pending--rows .pending-row + .pending-row { border-top: 1px solid var(--dc-ligne); }
  .pending--rows .pending-row:focus-within, .pending--rows .pending-row:has(:focus-visible) { box-shadow: none; }
  .pending--rows .pending-row:has(:focus-visible) .pending-row__go { box-shadow: var(--ds-focus); }
  .pending--rows .pending-row__name { font-size: 16px; }
  .pending--rows .pending-row .logo { width: 40px; height: 40px; }
  .pending--rows .pending-row__art { width: 96px; height: 96px; margin-top: -48px; right: -8px; opacity: .22; }
  .pending--rows .pending-row:hover { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pending-chip, .pending-row__go, .pending-row__go .icon, .pending-row__art { transition: none; }
}
