/* Klario Atelier : complements au theme MudBlazor (cf. Services/KlarioTheme.cs). */
html, body { font-family: Inter, "Segoe UI", sans-serif; }
.stat-link { text-decoration: none; color: inherit; display: block; }
.stat-link:focus-visible > * { outline: 3px solid #FCD116; outline-offset: 2px; }
.stat-card, .order-card { height: 100%; transition: box-shadow .15s ease, transform .15s ease; }
.stat-link:hover .stat-card, .stat-link:hover .order-card { box-shadow: 0 6px 18px -8px rgba(22, 33, 62, .35); transform: translateY(-1px); }
.kv-key { color: #6b6b7b; width: 40%; }
.text-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Medias d'un modele */
.media-tile { position: relative; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #EEF1F7; }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tile .media-chip { position: absolute; left: 4px; top: 4px; margin: 0; }
.media-tile .media-del { position: absolute; right: 4px; bottom: 4px; }

/* Pages de session (rendu statique) */
.public-shell { min-height: 100vh; background: #F5F5F5; }
.public-bar { height: 64px; background: #1F3A6E; color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 20px; font-weight: 600; font-size: 1.25rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.public-main { max-width: 520px; margin: 0 auto; padding: 32px 16px 48px; }
.public-card { border-top: 4px solid #FCD116; }
.k-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; min-width: 0; }
.k-field label { font-size: .8rem; font-weight: 600; color: #4a4a5a; }
.k-field input, .k-field select {
  height: 48px; padding: 0 14px; border: 1px solid #c4c4cc; border-radius: 8px; font: inherit; font-size: 1rem; background: #fff; color: #1e1e2a; width: 100%;
}
.k-field input:focus, .k-field select:focus { outline: none; border-color: #1F3A6E; box-shadow: 0 0 0 2px rgba(31, 58, 110, .25); }
.k-row { display: flex; gap: 12px; }
@media (max-width: 480px) { .k-row { flex-direction: column; gap: 0; } }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000; background: #FFF3CD; padding: 10px 16px; box-shadow: 0 -1px 3px rgba(0,0,0,.2); }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 12px; top: 8px; }

/* Menu lateral sombre : lien actif en jaune Klario (le bleu Couture serait illisible sur fond sombre) */
.mud-drawer .mud-nav-link.active:not(.mud-nav-link-disabled) { color: #FCD116 !important; background-color: rgba(252, 209, 22, .12) !important; font-weight: 600; }
.mud-drawer .mud-nav-link:hover:not(.mud-nav-link-disabled) { background-color: rgba(255, 255, 255, .06) !important; }
.appbar-shop { background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
.media-tile .media-play { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); pointer-events: none; }
.media-tile video { background: #1E2A44; }
