/* ============================================================
   AISHEN DESIGN SYSTEM — "st-"
   Identité : athletic poster / training log.
   Display: Big Shoulders Display · Body: Barlow · Data: JetBrains Mono
   3 thèmes : sporttrack (défaut) · light · amoled
   ============================================================ */

/* ---------- 1. TOKENS ---------- */

:root {
    /* surfaces */
    --st-bg: #0c0e13;
    --st-surface: #12151c;
    --st-raised: #1a1f2a;
    --st-overlay: #171b24;
    /* lines */
    --st-line: rgba(242, 244, 248, 0.08);
    --st-line-strong: rgba(242, 244, 248, 0.16);
    /* text */
    --st-ink: #f2f4f8;
    --st-sub: #9aa3b2;
    --st-muted: #5c6575;
    /* accent — volt orange */
    --st-accent: #ff5a1f;
    --st-accent-hover: #ff7a45;
    --st-accent-active: #e64c12;
    --st-accent-ink: #ffffff;
    --st-accent-subtle: rgba(255, 90, 31, 0.13);
    --st-accent-subtle-hover: rgba(255, 90, 31, 0.22);
    --st-accent-ring: rgba(255, 90, 31, 0.35);
    --st-accent-glow: rgba(255, 90, 31, 0.4);
    /* secondary — electric blue */
    --st-volt: #4d8dff;
    --st-volt-subtle: rgba(77, 141, 255, 0.14);
    /* spark — bolt yellow */
    --st-spark: #e8ff3d;
    --st-spark-hover: #f0ff6b;
    --st-spark-subtle: rgba(232, 255, 61, 0.14);
    /* semantics */
    --st-success: #2fbf71;
    --st-success-subtle: rgba(47, 191, 113, 0.14);
    --st-warning: #f5b93f;
    --st-warning-subtle: rgba(245, 185, 63, 0.14);
    --st-error: #f4536e;
    --st-error-subtle: rgba(244, 83, 110, 0.14);
    /* fx */
    --st-shadow: rgba(2, 4, 10, 0.65);
    --st-dot: rgba(242, 244, 248, 0.05);
    --st-glow-top: rgba(255, 90, 31, 0.07);
    /* radii */
    --st-radius-sm: 8px;
    --st-radius: 14px;
    --st-radius-lg: 20px;
    /* fonts */
    --st-font-display: 'Big Shoulders Display', 'Impact', sans-serif;
    --st-font-body: 'Barlow', system-ui, sans-serif;
    --st-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body[data-theme='light'],
html[data-theme='light'] {
    --st-bg: #f2f4f7;
    --st-surface: #ffffff;
    --st-raised: #f7f8fa;
    --st-overlay: #eef0f4;
    --st-line: rgba(20, 23, 30, 0.1);
    --st-line-strong: rgba(20, 23, 30, 0.2);
    --st-ink: #14171e;
    --st-sub: #565e6e;
    --st-muted: #8b93a3;
    --st-accent: #f14a0e;
    --st-accent-hover: #ff5f24;
    --st-accent-active: #d8400a;
    --st-accent-ink: #ffffff;
    --st-accent-subtle: rgba(241, 74, 14, 0.1);
    --st-accent-subtle-hover: rgba(241, 74, 14, 0.18);
    --st-accent-ring: rgba(241, 74, 14, 0.3);
    --st-accent-glow: rgba(241, 74, 14, 0.28);
    --st-volt: #2f6fe4;
    --st-volt-subtle: rgba(47, 111, 228, 0.1);
    --st-spark: #b8cc0e;
    --st-spark-hover: #cddf24;
    --st-spark-subtle: rgba(184, 204, 14, 0.16);
    --st-success: #18a957;
    --st-success-subtle: rgba(24, 169, 87, 0.12);
    --st-warning: #dd9a15;
    --st-warning-subtle: rgba(221, 154, 21, 0.14);
    --st-error: #e23a56;
    --st-error-subtle: rgba(226, 58, 86, 0.1);
    --st-shadow: rgba(20, 23, 30, 0.16);
    --st-dot: rgba(20, 23, 30, 0.07);
    --st-glow-top: rgba(241, 74, 14, 0.06);
}

body[data-theme='amoled'],
html[data-theme='amoled'] {
    --st-bg: #000000;
    --st-surface: #08080a;
    --st-raised: #121216;
    --st-overlay: #101014;
    --st-line: rgba(242, 244, 248, 0.1);
    --st-line-strong: rgba(242, 244, 248, 0.2);
    --st-ink: #f2f4f8;
    --st-sub: #9aa3b2;
    --st-muted: #5c6575;
    --st-shadow: rgba(0, 0, 0, 0.9);
    --st-dot: rgba(242, 244, 248, 0.06);
    --st-glow-top: rgba(255, 90, 31, 0.05);
}

/* ---------- 2. AMBIENT BACKGROUND ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--st-bg);
    color: var(--st-ink);
    font-family: var(--st-font-body);
}

.st-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(var(--st-dot) 1px, transparent 1.4px),
        radial-gradient(900px 420px at 50% -140px, var(--st-glow-top), transparent 70%);
    background-size:
        22px 22px,
        100% 100%;
}

.st-ambient::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 460px;
    height: 460px;
    background: repeating-linear-gradient(
        -45deg,
        var(--st-line) 0 1px,
        transparent 1px 14px
    );
    mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent);
    -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent);
}

::selection {
    background: var(--st-accent);
    color: var(--st-accent-ink);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: var(--st-line-strong);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: var(--st-muted);
    border: 2px solid transparent;
    background-clip: content-box;
}

/* ---------- 3. TYPOGRAPHIE ---------- */

.st-display {
    font-family: var(--st-font-display);
    text-transform: uppercase;
    letter-spacing: 0.015em;
    line-height: 0.98;
    font-weight: 400;
}

.st-h1 {
    font-family: var(--st-font-display);
    text-transform: uppercase;
    letter-spacing: 0.015em;
    line-height: 0.98;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.st-h2 {
    font-family: var(--st-font-display);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.02;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.st-h3 {
    font-family: var(--st-font-body);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1.0625rem;
}

/* mot accentué, effet vitesse */
.st-em {
    display: inline-block;
    color: var(--st-accent);
    transform: skewX(-6deg);
}

.st-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--st-font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--st-sub);
}

.st-num {
    font-family: var(--st-font-display);
    letter-spacing: 0.01em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.st-mono {
    font-family: var(--st-font-mono);
    font-variant-numeric: tabular-nums;
}

.st-lead {
    color: var(--st-sub);
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* ---------- 4. LAYOUT ---------- */

.st-container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.st-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
    /* L'en-tête doit rester au-dessus des sections suivantes : l'animation
       st-anim-rise (transform) crée un contexte d'empilement, sans z-index les
       sections suivantes passeraient par-dessus les menus déroulants de l'en-tête. */
    position: relative;
    z-index: 50;
}

.st-page-head .st-h1 {
    margin-top: 0.4rem;
}

.st-section {
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.st-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.st-divider {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, var(--st-line-strong), var(--st-line) 55%, transparent);
    margin: 1.5rem 0;
}

/* ---------- 5. SURFACES ---------- */

.st-card {
    background: var(--st-surface);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    padding: 1.25rem;
    position: relative;
}

.st-card--flush {
    padding: 0;
    overflow: hidden;
}

.st-card--raised {
    background: var(--st-raised);
}

.st-card--interactive {
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
    cursor: pointer;
}

.st-card--interactive:hover {
    transform: translateY(-3px);
    border-color: var(--st-accent-ring);
    box-shadow: 0 16px 36px -18px var(--st-shadow), 0 0 0 1px var(--st-accent-ring);
}

.st-inset {
    background: var(--st-overlay);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius-sm);
    padding: 0.875rem 1rem;
}

/* ---------- 6. BOUTONS ---------- */

.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--st-font-body);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    padding: 0.72rem 1.15rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.st-btn:active {
    transform: translateY(1px) scale(0.985);
}

.st-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--st-accent-ring);
}

.st-btn--primary {
    background: var(--st-accent);
    color: var(--st-accent-ink);
    box-shadow: 0 6px 18px -8px var(--st-accent-glow);
}

.st-btn--primary:hover {
    background: var(--st-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px var(--st-accent-glow);
}

.st-btn--spark {
    background: var(--st-spark);
    color: #14171e;
}

.st-btn--spark:hover {
    background: var(--st-spark-hover);
    transform: translateY(-1px);
}

.st-btn--secondary {
    background: var(--st-volt-subtle);
    color: var(--st-volt);
    border-color: transparent;
}

.st-btn--secondary:hover {
    background: var(--st-volt);
    color: #fff;
    transform: translateY(-1px);
}

.st-btn--outline {
    background: transparent;
    color: var(--st-ink);
    border-color: var(--st-line-strong);
}

.st-btn--outline:hover {
    border-color: var(--st-accent);
    color: var(--st-accent);
    transform: translateY(-1px);
}

.st-btn--ghost {
    background: transparent;
    color: var(--st-sub);
}

.st-btn--ghost:hover {
    background: var(--st-overlay);
    color: var(--st-ink);
}

.st-btn--danger {
    background: var(--st-error-subtle);
    color: var(--st-error);
}

.st-btn--danger:hover {
    background: var(--st-error);
    color: #fff;
    transform: translateY(-1px);
}

.st-btn--sm {
    font-size: 0.8125rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--st-radius-sm);
}

.st-btn--lg {
    font-size: 1rem;
    padding: 0.9rem 1.6rem;
    border-radius: 12px;
}

/* CTA signature : display font uppercase */
.st-btn--display {
    font-family: var(--st-font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1rem;
}

.st-btn--display.st-btn--lg {
    font-size: 1.125rem;
}

.st-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--st-sub);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.st-icon-btn:hover {
    background: var(--st-overlay);
    color: var(--st-ink);
    transform: translateY(-1px);
}

.st-icon-btn--danger:hover {
    background: var(--st-error-subtle);
    color: var(--st-error);
}

/* ---------- 7. CHIPS / BADGES ---------- */

.st-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--st-font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--st-line-strong);
    color: var(--st-sub);
    background: transparent;
    white-space: nowrap;
}

.st-chip--accent {
    border-color: transparent;
    background: var(--st-accent-subtle);
    color: var(--st-accent);
}

.st-chip--volt {
    border-color: transparent;
    background: var(--st-volt-subtle);
    color: var(--st-volt);
}

.st-chip--spark {
    border-color: transparent;
    background: var(--st-spark-subtle);
    color: var(--st-spark);
}

.st-chip--success {
    border-color: transparent;
    background: var(--st-success-subtle);
    color: var(--st-success);
}

.st-chip--warning {
    border-color: transparent;
    background: var(--st-warning-subtle);
    color: var(--st-warning);
}

.st-chip--error {
    border-color: transparent;
    background: var(--st-error-subtle);
    color: var(--st-error);
}

.st-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--st-font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    background: var(--st-overlay);
    color: var(--st-sub);
    white-space: nowrap;
}

.st-badge--accent {
    background: var(--st-accent);
    color: var(--st-accent-ink);
}

.st-badge--spark {
    background: var(--st-spark);
    color: #14171e;
}

/* ---------- 8. FORMULAIRES ---------- */

.st-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--st-ink);
    margin-bottom: 0.4rem;
}

.st-hint {
    font-size: 0.75rem;
    color: var(--st-muted);
    margin-top: 0.35rem;
}

.st-input,
.st-select,
.st-textarea {
    width: 100%;
    background: var(--st-overlay);
    border: 1px solid var(--st-line);
    border-radius: 10px;
    padding: 0.66rem 0.9rem;
    font-size: 0.9rem;
    color: var(--st-ink);
    font-family: var(--st-font-body);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.st-input::placeholder,
.st-textarea::placeholder {
    color: var(--st-muted);
}

.st-input:hover,
.st-select:hover,
.st-textarea:hover {
    border-color: var(--st-line-strong);
}

.st-input:focus,
.st-select:focus,
.st-textarea:focus {
    outline: none;
    border-color: var(--st-accent);
    box-shadow: 0 0 0 3px var(--st-accent-subtle);
    background: var(--st-surface);
}

.st-input--error {
    border-color: var(--st-error);
}

.st-field {
    margin-bottom: 1.1rem;
}

.st-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--st-sub);
}

.st-check input[type='checkbox'],
.st-check input[type='radio'] {
    accent-color: var(--st-accent);
    width: 1.05rem;
    height: 1.05rem;
}

/* ---------- 9. STATS ---------- */

.st-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.st-stat .st-num {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    color: var(--st-ink);
}

.st-stat-label {
    font-family: var(--st-font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--st-muted);
}

.st-stat-delta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--st-font-mono);
    font-size: 0.75rem;
    font-weight: 600;
}

.st-stat-delta--up {
    color: var(--st-success);
}

.st-stat-delta--down {
    color: var(--st-error);
}

.st-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--st-line);
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    overflow: hidden;
}

.st-stat-grid .st-stat {
    background: var(--st-surface);
    padding: 1.1rem 1.25rem;
    transition: background-color 0.18s ease;
}

.st-stat-grid .st-stat:hover {
    background: var(--st-raised);
}

/* anneau de progression (conique) */
.st-ring {
    --p: 0;
    --ring-color: var(--st-accent);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) calc(var(--p) * 1%), var(--st-overlay) 0);
    display: grid;
    place-items: center;
    position: relative;
}

.st-ring::before {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--st-surface);
}

.st-ring > * {
    position: relative;
    font-family: var(--st-font-display);
    font-size: 1rem;
}

/* ---------- 10. PROGRESSION ---------- */

.st-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--st-overlay);
    overflow: hidden;
}

.st-progress > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--st-accent), var(--st-accent-hover));
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-progress--volt > span {
    background: linear-gradient(90deg, var(--st-volt), #7fb0ff);
}

.st-progress--spark > span {
    background: linear-gradient(90deg, #c8dc1e, var(--st-spark));
}

/* ---------- 11. NAVIGATION ---------- */

.st-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: var(--st-sub);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.st-nav-item:hover {
    background: var(--st-overlay);
    color: var(--st-ink);
    transform: translateX(2px);
}

.st-nav-item.active,
.st-nav-item[aria-current='page'] {
    background: var(--st-accent-subtle);
    color: var(--st-accent);
    font-weight: 600;
}

.st-nav-icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: var(--st-radius-sm);
    background: var(--st-overlay);
    color: var(--st-sub);
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.st-nav-item:hover .st-nav-icon {
    color: var(--st-ink);
}

.st-nav-item.active .st-nav-icon {
    background: var(--st-accent);
    color: var(--st-accent-ink);
}

/* onglets */
.st-tabs {
    display: inline-flex;
    gap: 0.25rem;
    background: var(--st-overlay);
    border: 1px solid var(--st-line);
    padding: 0.25rem;
    border-radius: 12px;
}

.st-tab {
    padding: 0.45rem 0.95rem;
    border-radius: var(--st-radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--st-sub);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.st-tab:hover {
    color: var(--st-ink);
}

.st-tab.active,
.st-tab[aria-selected='true'] {
    background: var(--st-surface);
    color: var(--st-ink);
    box-shadow: 0 2px 8px -2px var(--st-shadow);
}

/* ---------- 12. TABLES ---------- */

.st-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.st-table th {
    font-family: var(--st-font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--st-muted);
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--st-line-strong);
    white-space: nowrap;
}

.st-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--st-line);
    color: var(--st-sub);
    vertical-align: middle;
}

.st-table tbody tr {
    transition: background-color 0.12s ease;
}

.st-table tbody tr:hover {
    background: var(--st-overlay);
}

.st-table tbody tr:last-child td {
    border-bottom: none;
}

.st-table td strong,
.st-table td .st-strong {
    color: var(--st-ink);
    font-weight: 600;
}

/* ---------- 13. ALERTES / ÉTATS ---------- */

.st-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1.1rem;
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-line);
    background: var(--st-overlay);
    font-size: 0.875rem;
    color: var(--st-sub);
}

.st-alert--success {
    background: var(--st-success-subtle);
    color: var(--st-success);
}

.st-alert--warning {
    background: var(--st-warning-subtle);
    color: var(--st-warning);
}

.st-alert--error {
    background: var(--st-error-subtle);
    color: var(--st-error);
}

.st-alert--info {
    background: var(--st-volt-subtle);
    color: var(--st-volt);
}

.st-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.9rem;
    padding: 3rem 1.5rem;
    border: 1px dashed var(--st-line-strong);
    border-radius: var(--st-radius);
}

.st-empty-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: var(--st-radius);
    background: var(--st-overlay);
    color: var(--st-muted);
    font-size: 1.4rem;
}

.st-skeleton {
    border-radius: var(--st-radius-sm);
    background: linear-gradient(100deg, var(--st-overlay) 40%, var(--st-raised) 50%, var(--st-overlay) 60%);
    background-size: 200% 100%;
    animation: st-shimmer 1.4s ease-in-out infinite;
}

/* ---------- 14. ÉLÉMENTS VIVANTS ---------- */

.st-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--st-success);
    position: relative;
    flex-shrink: 0;
}

.st-live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--st-success);
    opacity: 0.5;
    animation: st-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.st-live-dot--accent {
    background: var(--st-accent);
}

.st-live-dot--accent::after {
    border-color: var(--st-accent);
}

/* ticker défilant (landing) */
.st-ticker {
    overflow: hidden;
    white-space: nowrap;
    border-block: 1px solid var(--st-line);
    background: var(--st-surface);
}

.st-ticker-track {
    display: inline-flex;
    gap: 2.5rem;
    padding: 0.7rem 0;
    animation: st-ticker 28s linear infinite;
    will-change: transform;
}

.st-ticker:hover .st-ticker-track {
    animation-play-state: paused;
}

.st-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--st-font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--st-sub);
}

.st-ticker-item b {
    color: var(--st-accent);
    font-weight: 700;
}

/* ---------- 15. MOTION ---------- */

.st-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-reveal.is-in {
    opacity: 1;
    transform: none;
}

.st-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.st-stagger.is-in > * {
    opacity: 1;
    transform: none;
}

.st-stagger.is-in > *:nth-child(1) { transition-delay: 0.04s; }
.st-stagger.is-in > *:nth-child(2) { transition-delay: 0.1s; }
.st-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.st-stagger.is-in > *:nth-child(4) { transition-delay: 0.22s; }
.st-stagger.is-in > *:nth-child(5) { transition-delay: 0.28s; }
.st-stagger.is-in > *:nth-child(6) { transition-delay: 0.34s; }
.st-stagger.is-in > *:nth-child(7) { transition-delay: 0.4s; }
.st-stagger.is-in > *:nth-child(8) { transition-delay: 0.46s; }

.st-hover-lift {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.st-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -18px var(--st-shadow);
}

@keyframes st-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes st-ping {
    0% { transform: scale(0.6); opacity: 0.7; }
    80%, 100% { transform: scale(1.5); opacity: 0; }
}

@keyframes st-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes st-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@keyframes st-pop {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

.st-anim-rise {
    animation: st-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.st-anim-pop {
    animation: st-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .st-reveal,
    .st-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .st-ticker-track,
    .st-skeleton,
    .st-live-dot::after {
        animation: none;
    }
    .st-card--interactive:hover,
    .st-btn:hover,
    .st-hover-lift:hover {
        transform: none;
    }
}

/* ---------- 16. SHELL (sidebar / nav mobile) ---------- */

.st-sidebar {
    background: var(--st-surface);
    border-right: 1px solid var(--st-line);
}

.st-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.st-sidebar-logo img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
}

.st-sidebar-logo .st-wordmark {
    font-family: var(--st-font-display);
    font-weight: 800;
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--st-ink);
    line-height: 1;
}

.st-sidebar-logo .st-wordmark i {
    font-style: normal;
    color: var(--st-accent);
}

.st-sidebar-label {
    font-family: var(--st-font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--st-muted);
    padding: 1.1rem 0.75rem 0.4rem;
}

.st-sidebar-label:first-child {
    padding-top: 0.25rem;
}

/* items de navigation (classes historiques : nav-item-enhanced + active) */
.st-sidebar .nav-item-enhanced {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    color: var(--st-sub);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    position: relative;
    border: 1px solid transparent;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.st-sidebar .nav-item-enhanced:hover {
    background: var(--st-overlay);
    color: var(--st-ink);
    transform: translateX(2px);
}

.st-sidebar .nav-item-enhanced.active {
    background: var(--st-accent-subtle);
    color: var(--st-accent);
    font-weight: 600;
    border-color: var(--st-accent-ring);
}

.st-sidebar .nav-icon-box {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: var(--st-radius-sm);
    background: var(--st-overlay);
    color: var(--st-sub);
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.st-sidebar .nav-item-enhanced:hover .nav-icon-box {
    color: var(--st-ink);
}

.st-sidebar .nav-item-enhanced.active .nav-icon-box {
    background: var(--st-accent);
    color: var(--st-accent-ink);
}

.st-sidebar .submenu {
    border-left: 1px solid var(--st-line-strong);
    margin-left: 1.55rem;
    padding-left: 0.6rem;
}

.st-sidebar .submenu .nav-item-enhanced {
    font-size: 0.83rem;
    padding: 0.42rem 0.65rem;
}

.st-sidebar .submenu .nav-icon-box {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 7px;
}

.st-sidebar .nav-chevron {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--st-muted);
}

/* profil bas de sidebar */
.st-sidebar-profile {
    border-top: 1px solid var(--st-line);
    background: var(--st-overlay);
}

.st-avatar-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--st-accent), var(--st-accent-active));
    color: var(--st-accent-ink);
    font-family: var(--st-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: 2px solid var(--st-accent-ring);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.st-avatar-circle:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 4px var(--st-accent-subtle);
}

.st-role-chip {
    font-family: var(--st-font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--st-muted);
}

.st-role-chip--premium {
    color: var(--st-spark);
}

.st-role-chip--admin {
    color: var(--st-volt);
}

.profile-dropdown-menu {
    background: var(--st-surface) !important;
    border: 1px solid var(--st-line-strong) !important;
    border-radius: var(--st-radius) !important;
    box-shadow: 0 24px 50px -20px var(--st-shadow) !important;
    padding: 0.5rem !important;
    bottom: calc(100% + 10px);
}

.profile-dropdown-menu li > a,
.profile-dropdown-menu li > form > button {
    border-radius: var(--st-radius-sm) !important;
    color: var(--st-sub) !important;
    font-size: 0.85rem;
    transition: background-color 0.13s ease, color 0.13s ease;
}

.profile-dropdown-menu li > a:hover,
.profile-dropdown-menu li > form > button:hover {
    background: var(--st-overlay) !important;
    color: var(--st-ink) !important;
}

.profile-dropdown-menu .st-drop-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--st-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-overlay);
    color: var(--st-sub);
    flex-shrink: 0;
}

.profile-dropdown-menu .st-drop-icon--danger {
    background: var(--st-error-subtle);
    color: var(--st-error);
}

.profile-dropdown-menu .st-drop-icon--spark {
    background: var(--st-spark-subtle);
    color: var(--st-spark);
}

#notification-count {
    background: var(--st-error) !important;
    color: #fff !important;
    font-family: var(--st-font-mono);
}

/* top bar mobile */
#mobile-top-bar {
    background: color-mix(in srgb, var(--st-surface) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--st-line) !important;
}

#mobile-top-bar .header-title {
    font-family: var(--st-font-display) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.05rem;
    color: var(--st-ink);
}

/* bottom nav mobile */
#mobile-bottom-nav {
    background: color-mix(in srgb, var(--st-surface) 94%, transparent) !important;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--st-line) !important;
    box-shadow: 0 -8px 30px -12px var(--st-shadow);
}

#mobile-bottom-nav .mobile-nav-item {
    color: var(--st-muted) !important;
    font-family: var(--st-font-body);
}

#mobile-bottom-nav .mobile-nav-item .nav-icon-wrapper {
    color: inherit;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#mobile-bottom-nav .mobile-nav-item:hover:not(.active) {
    color: var(--st-ink) !important;
    background: transparent;
}

#mobile-bottom-nav .mobile-nav-item.active {
    color: var(--st-accent) !important;
}

#mobile-bottom-nav .mobile-nav-item.active .nav-icon-wrapper {
    background: var(--st-accent) !important;
    color: var(--st-accent-ink) !important;
    border-radius: 9px;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -6px var(--st-accent-glow);
}

.mobile-floating-menu {
    background-color: var(--st-surface) !important;
    border: 1px solid var(--st-line-strong) !important;
    border-radius: var(--st-radius) !important;
    box-shadow: 0 24px 50px -18px var(--st-shadow) !important;
    animation: st-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-floating-menu a,
.mobile-floating-menu form button {
    color: var(--st-sub);
    transition: background-color 0.13s ease, color 0.13s ease;
}

.mobile-floating-menu a:hover,
.mobile-floating-menu form button:hover {
    background: var(--st-overlay) !important;
    color: var(--st-ink);
}

.mobile-floating-menu .w-8.h-8 {
    background: var(--st-overlay) !important;
    color: var(--st-sub) !important;
    border-radius: var(--st-radius-sm);
}

.mobile-floating-menu .w-8.h-8 svg {
    color: var(--st-sub) !important;
    stroke: var(--st-sub) !important;
}

/* flash alerts (daisyui) thémés */
#flash-container .alert {
    background: var(--st-surface);
    border: 1px solid var(--st-line-strong);
    color: var(--st-ink);
    border-radius: var(--st-radius-sm);
    box-shadow: 0 18px 40px -18px var(--st-shadow);
    font-size: 0.875rem;
}

#flash-container .alert-success svg {
    color: var(--st-success);
}

#flash-container .alert-error svg,
#flash-container .alert-danger svg {
    color: var(--st-error);
}

#flash-container .alert-warning svg {
    color: var(--st-warning);
}

#flash-container .alert-info svg {
    color: var(--st-volt);
}

/* ---------- 17. DIVERS ---------- */

.st-kbd {
    font-family: var(--st-font-mono);
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    border: 1px solid var(--st-line-strong);
    border-bottom-width: 2px;
    background: var(--st-overlay);
    color: var(--st-sub);
}

.st-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--st-line-strong);
    background: var(--st-overlay);
}

.st-link {
    color: var(--st-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.st-link:hover {
    color: var(--st-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.st-text-sub {
    color: var(--st-sub);
}

.st-text-muted {
    color: var(--st-muted);
}

.st-text-accent {
    color: var(--st-accent);
}

.st-text-volt {
    color: var(--st-volt);
}

.st-text-spark {
    color: var(--st-spark);
}

.st-text-success {
    color: var(--st-success);
}

.st-text-warning {
    color: var(--st-warning);
}

.st-text-error {
    color: var(--st-error);
}
