/* ═══════════════════════════════════════════════════════════════
   UI-KIT v1.0.1 (P1 — audit SaaS premium 13/07)
   Composants PARTAGÉS consommant les design tokens (critical.css) :
   carte, panneau, pastille, état vide, squelette, orchestration,
   bouton, select, focus. UNE implémentation — les modules migrent
   dessus au lieu de réinventer (dette : oip- / chr- / cst- / che-).
   Réf. valeurs : .claude/skills/ui-91studio/references/premium-saas-mesures.md
   ═══════════════════════════════════════════════════════════════ */

/* ── Surfaces ── */
.uk-card {
    background: var(--surface-card);
    border-radius: var(--r-12, 12px);
    box-shadow: var(--elev-1, 0 1px 2px rgba(17, 24, 39, 0.06));
    transition: transform var(--dur-2, 180ms) var(--ease-out, ease-out), box-shadow var(--dur-2, 180ms) var(--ease-out, ease-out);
}
.uk-card-hover:hover { transform: translateY(-2px); box-shadow: var(--elev-2, 0 4px 12px rgba(17, 24, 39, 0.08)); }
.uk-ph {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-bottom: 0.5px solid var(--border-light, rgba(0, 0, 0, 0.04));
}
.uk-ph h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); margin: 0; }
.uk-ph .uk-meta { margin-left: auto; font-size: 12px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

/* ── Pastilles d'état (pattern rgba .12 de l'app) ── */
.uk-pill { font-size: 12px; font-weight: 600; border-radius: 980px; padding: 3px 10px; display: inline-block; white-space: nowrap; }
.uk-pill.info { background: rgba(10, 132, 255, 0.12); color: var(--color-info, var(--accent-blue)); }
.uk-pill.ok { background: rgba(48, 209, 88, 0.12); color: #248A3D; }
.uk-pill.warn { background: rgba(255, 159, 10, 0.12); color: #C93400; }
.uk-pill.danger { background: rgba(255, 69, 58, 0.12); color: #D70015; }
.uk-pill.muted { background: rgba(142, 142, 147, 0.12); color: var(--text-secondary); }

/* ── État vide dessiné (jamais un texte nu) ── */
.uk-empty {
    padding: 30px 18px 32px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 13px; color: var(--text-tertiary);
}
.uk-empty svg { width: 30px; height: 30px; stroke: var(--text-tertiary, var(--text-muted)); opacity: 0.65; margin-bottom: 4px; fill: none; stroke-width: 1.5; }
.uk-empty b { font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }

/* ── Squelette de chargement (perceived performance) ── */
@keyframes ukShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.uk-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.uk-skeleton i {
    display: block; height: 14px; border-radius: 7px;
    background: linear-gradient(90deg, var(--border-light, rgba(0, 0, 0, 0.05)) 25%, var(--border-color, rgba(0, 0, 0, 0.09)) 50%, var(--border-light, rgba(0, 0, 0, 0.05)) 75%);
    background-size: 200% 100%;
    animation: ukShimmer 1.4s ease-in-out infinite;
}
.uk-skeleton i:nth-child(2) { width: 82%; }
.uk-skeleton i:nth-child(3) { width: 64%; }
.uk-skeleton .uk-sk-block { height: 88px; border-radius: var(--r-12, 12px); width: 100%; }

/* ── Orchestration d'entrée ── */
@keyframes ukIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.uk-in { animation: ukIn var(--dur-2, 180ms) var(--ease-out, ease-out) both; }
.uk-stagger > * { animation: ukIn var(--dur-2, 180ms) var(--ease-out, ease-out) both; }
.uk-stagger > :nth-child(1) { animation-delay: 40ms; }
.uk-stagger > :nth-child(2) { animation-delay: 80ms; }
.uk-stagger > :nth-child(3) { animation-delay: 120ms; }
.uk-stagger > :nth-child(4) { animation-delay: 160ms; }
.uk-stagger > :nth-child(5) { animation-delay: 200ms; }
.uk-stagger > :nth-child(6) { animation-delay: 240ms; }
.uk-stagger > :nth-child(n+7) { animation-delay: 280ms; }
@media (prefers-reduced-motion: reduce) {
    .uk-in, .uk-stagger > * { animation: none; }
    .uk-skeleton i { animation: none; }
}

/* ── Contrôles ── */
.uk-btn {
    border-radius: var(--r-8, 8px); padding: 7px 14px; font-size: 13px; font-weight: 500;
    border: 0.5px solid var(--border-color, rgba(0, 0, 0, 0.1)); background: var(--surface-card);
    color: var(--text-primary); box-shadow: var(--elev-1); cursor: pointer;
    transition: background var(--dur-1, 120ms) ease, box-shadow var(--dur-1, 120ms) ease;
}
.uk-btn:hover { background: var(--bg-secondary); }
.uk-btn.pri { background: var(--color-info, var(--accent-blue)); border-color: var(--color-info, var(--accent-blue)); color: #fff; font-weight: 600; }
.uk-select {
    font-size: 12px; font-weight: 500; line-height: 1.4; font-family: inherit;
    color: var(--text-secondary); background: var(--surface-card);
    border: 0.5px solid var(--border-color, rgba(0, 0, 0, 0.12));
    border-radius: var(--r-8, 8px); padding: 4px 8px; cursor: pointer;
}
.uk-btn:focus-visible, .uk-select:focus-visible, .uk-pill:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring, 0 0 0 3px rgba(10, 132, 255, 0.25));
    border-color: var(--color-info, var(--accent-blue));
}

/* ── En-tête de page standard ── */
.uk-page { max-width: 880px; margin: 0 auto; padding: 8px 4px 48px; }
.uk-page-head { padding: 6px 0 18px; }
.uk-page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); margin: 0 0 4px; }
.uk-page-head p { font-size: 13px; color: var(--text-secondary, var(--text-tertiary)); margin: 0; }
