/**
 * Hyperion Design System - Composants Mutualisés
 * Theme: RSI HUD (Orange/Yellow, Angular, Military)
 * Version: 1.0.0
 * 
 * Ce fichier contient toutes les classes CSS réutilisables
 * qui remplacent les duplications dans les fichiers par page.
 * 
 * Structure:
 * 1. Page Layout
 * 2. Page Header
 * 3. Filter Bar & Search
 * 4. Grids
 * 5. Cards
 * 6. Stat Cards
 * 7. States (Loading, Empty)
 * 8. Badges & Pills
 * 9. Tabs
 * 10. Utilities
 */

/* ============================================
   1. PAGE LAYOUT
   Remplace: .events-page, .profile-page, .craft-page, 
   .shop-page, .fleet-page, .admin-page, .tactical-page, .recruitment-page
   ============================================ */

.hy-page {
    position: relative;
    z-index: 1;
    padding: 28px 36px 60px;
    width: 100%;
    animation: hy-fade-in 0.25s ease-out;
}

.hy-page--compact {
    padding: 20px 24px;
}

.hy-page--spacious {
    padding: 32px 36px 80px;
}

.hy-page--no-padding {
    padding: 0;
}

@media (max-width: 1024px) {
    .hy-page {
        padding: 24px 24px 48px;
    }
}

@media (max-width: 768px) {
    .hy-page {
        padding: 20px 16px 40px;
    }
    
    .hy-page--spacious {
        padding: 24px 16px 60px;
    }
}

/* ============================================
   2. PAGE HEADER
   Remplace: .events-header, .shop-header, .fleet-header, 
   .craft-header, .admin-header, .tactical-header, .recruitment-header
   ============================================ */

.hy-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    animation: hy-fade-up 0.3s ease-out;
}

.hy-page-header--start {
    align-items: flex-start;
}

.hy-page-header--center {
    align-items: center;
}

.hy-page-header__content {
    flex: 1;
    min-width: 280px;
}

.hy-page-header__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hy-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .hy-page-header__actions {
        width: 100%;
    }
}

/* --- Kicker (sous-titre stylisé) ---
   Remplace: .events-kicker, .profile-kicker, .shop-kicker, 
   .fleet-kicker, .craft-kicker, .tactical-header__kicker, .recruitment-header__kicker
*/

.hy-kicker {
    font-family: var(--hy-font-mono);
    font-size: 10px;
    color: var(--hy-accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hy-kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--hy-accent);
}

.hy-kicker--no-line::before {
    display: none;
}

.hy-kicker__code {
    color: var(--hy-ink-3);
    font-size: 9px;
}

.hy-kicker__separator {
    color: var(--hy-ink-3);
}

/* --- Page Title (h1) ---
   Remplace: .events-title, .profile-title, .admin-title, 
   .shop-header h1, .fleet-header h1, .craft-title, .tactical-header__title, .recruitment-header__title
*/

.hy-page-title {
    margin: 0;
    font-family: var(--hy-font-display);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--hy-ink);
    text-transform: uppercase;
    line-height: 1;
}

.hy-page-title--xl {
    font-size: 48px;
    letter-spacing: 0.1em;
}

.hy-page-title--lg {
    font-size: 42px;
}

.hy-page-title--md {
    font-size: 32px;
}

.hy-page-title--sm {
    font-size: 26px;
}

@media (max-width: 768px) {
    .hy-page-title {
        font-size: 28px;
    }
    
    .hy-page-title--xl,
    .hy-page-title--lg {
        font-size: 32px;
    }
    
    .hy-page-title--md {
        font-size: 26px;
    }
}

/* --- Page Subtitle ---
   Remplace: .events-subtitle, .craft-subtitle, .admin-subtitle, 
   .hyp-page-subtitle, .recruitment-header__subtitle
*/

.hy-page-subtitle {
    margin: 8px 0 0;
    font-family: var(--hy-font-mono);
    font-size: 11px;
    color: var(--hy-ink-3);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hy-page-subtitle--body {
    font-family: var(--hy-font-body);
    font-size: 13px;
    color: var(--hy-ink-2);
    letter-spacing: normal;
    text-transform: none;
    max-width: 540px;
}

.hy-page-subtitle--lg {
    font-size: 13px;
    letter-spacing: 0.15em;
}

/* ============================================
   3. FILTER BAR & SEARCH
   Remplace: .events-filter-bar, .craft-filters, .shop-filters, 
   .fleet-filters, .recruitment-filters
   ============================================ */

.hy-filter-bar {
    display: grid;
    grid-template-columns: 1fr repeat(3, 180px);
    gap: 10px;
    padding: 14px;
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    margin-bottom: 16px;
    animation: hy-fade-up 0.3s ease-out 0.1s backwards;
}

.hy-filter-bar--2cols {
    grid-template-columns: 1fr 200px;
}

.hy-filter-bar--4cols {
    grid-template-columns: 1fr repeat(3, 180px) auto;
}

.hy-filter-bar--no-panel {
    background: transparent;
    border: none;
    padding: 0;
    clip-path: none;
    backdrop-filter: none;
}

.hy-filter-bar--flat {
    clip-path: none;
}

@media (max-width: 1200px) {
    .hy-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
    
    .hy-filter-bar--2cols {
        grid-template-columns: 1fr 180px;
    }
}

@media (max-width: 768px) {
    .hy-filter-bar {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

/* --- Search Input ---
   Remplace: .events-search-input, .craft-search-input, .recruitment-filters__input
*/

.hy-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hy-search-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: var(--hy-ink-3);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}

.hy-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--hy-panel-hi);
    color: var(--hy-ink);
    border: 1px solid var(--hy-border-soft);
    font-family: var(--hy-font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    outline: none;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hy-search-input::placeholder {
    color: var(--hy-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hy-search-input:focus {
    border-color: var(--hy-accent);
    box-shadow: 0 0 12px var(--hy-accent-glow);
}

.hy-search-input--no-icon {
    padding-left: 14px;
}

/* --- Filter Select ---
   Remplace: .events-filter-select, .craft-filter-select, etc.
*/

.hy-filter-select {
    width: 100%;
    padding: 10px 32px 10px 14px;
    background: var(--hy-panel-hi);
    color: var(--hy-ink-2);
    border: 1px solid var(--hy-border-soft);
    font-family: var(--hy-font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    outline: none;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffc000' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.15s ease;
}

.hy-filter-select:focus {
    border-color: var(--hy-accent);
}

.hy-filter-select:hover {
    border-color: var(--hy-border);
}

.hy-filter-select option {
    background: var(--hy-panel-solid);
    color: var(--hy-ink);
    padding: 8px;
}

/* --- Filter Select Wrapper (for MudSelect) ---
   Use this wrapper around MudSelect in filter bars
*/

.hy-filter-select-wrapper {
    min-width: 160px;
}

.hy-filter-select-wrapper .mud-input-control {
    background: var(--hy-panel-hi) !important;
}

.hy-filter-select-wrapper .mud-input-outlined .mud-input-outlined-border {
    border-color: var(--hy-border-soft) !important;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.hy-filter-select-wrapper .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: var(--hy-border) !important;
}

.hy-filter-select-wrapper .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: var(--hy-accent) !important;
}

.hy-filter-select-wrapper .mud-input-label {
    font-family: var(--hy-font-mono) !important;
    font-size: 9px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
}

/* --- Filter Checkbox --- */

.hy-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--hy-panel-hi);
    border: 1px solid var(--hy-border-soft);
    font-family: var(--hy-font-mono);
    font-size: 10px;
    color: var(--hy-ink-2);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.hy-filter-checkbox:hover {
    border-color: var(--hy-border);
    color: var(--hy-ink);
}

.hy-filter-checkbox:has(input:checked) {
    background: rgba(255, 192, 0, 0.12);
    border-color: var(--hy-accent);
    color: var(--hy-accent);
}

.hy-filter-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--hy-accent);
    cursor: pointer;
}

/* ============================================
   4. GRIDS
   Remplace: .events-grid, .craft-grid, .shop-grid, .fleet-grid
   ============================================ */

.hy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.hy-grid--xs {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.hy-grid--sm {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.hy-grid--lg {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.hy-grid--xl {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 18px;
}

.hy-grid--2cols {
    grid-template-columns: repeat(2, 1fr);
}

.hy-grid--3cols {
    grid-template-columns: repeat(3, 1fr);
}

.hy-grid--4cols {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .hy-grid--4cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hy-grid--3cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hy-grid,
    .hy-grid--sm,
    .hy-grid--lg,
    .hy-grid--xl,
    .hy-grid--2cols,
    .hy-grid--3cols,
    .hy-grid--4cols {
        grid-template-columns: 1fr;
    }
}

/* --- Stats Grid (KPI) ---
   Remplace: .stats-grid, .fleet-stats, .recruitment-stats
*/

.hy-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.hy-stats-grid--3cols {
    grid-template-columns: repeat(3, 1fr);
}

.hy-stats-grid--5cols {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
    .hy-stats-grid,
    .hy-stats-grid--5cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hy-stats-grid--3cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hy-stats-grid,
    .hy-stats-grid--3cols,
    .hy-stats-grid--5cols {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   5. CARDS
   Remplace: .event-card, .craft-blueprint-card, .shop-listing-card, 
   .fleet-card, .tactical-plan-card
   ============================================ */

.hy-card {
    --card-accent: var(--hy-accent);
    position: relative;
    padding: 16px;
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
    animation: hy-fade-up 0.3s ease backwards;
    overflow: hidden;
}

.hy-card:hover {
    transform: translateY(-2px);
    border-color: var(--hy-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px var(--hy-accent-glow);
}

.hy-card:focus-visible {
    outline: 2px solid var(--hy-accent);
    outline-offset: 2px;
}

.hy-card--sm {
    padding: 12px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.hy-card--lg {
    padding: 20px;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.hy-card--static {
    cursor: default;
}

.hy-card--static:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--hy-border-soft);
}

.hy-card--flat {
    clip-path: none;
    border-radius: var(--hy-radius);
}

.hy-card--gradient {
    background: linear-gradient(180deg, var(--hy-panel-hi), var(--hy-panel));
}

/* Card accent bar */
.hy-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--card-accent), transparent);
}

.hy-card__accent--left {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--card-accent), transparent);
}

/* Card header */
.hy-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.hy-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Card title */
.hy-card__title {
    margin: 0 0 8px;
    font-family: var(--hy-font-title);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--hy-ink);
    text-transform: uppercase;
    line-height: 1.3;
}

.hy-card__title--lg {
    font-size: 16px;
}

/* Card description */
.hy-card__desc {
    margin: 0 0 12px;
    font-family: var(--hy-font-body);
    font-size: 12px;
    color: var(--hy-ink-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hy-card__desc--3lines {
    -webkit-line-clamp: 3;
}

/* Card meta footer */
.hy-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--hy-border-soft);
}

.hy-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--hy-font-mono);
    font-size: 10px;
    color: var(--hy-ink-3);
    letter-spacing: 0.1em;
}

.hy-card__meta-item .mud-icon-root {
    font-size: 14px;
    opacity: 0.7;
}

/* Card image */
.hy-card__image {
    position: relative;
    margin: -16px -16px 12px;
    height: 140px;
    overflow: hidden;
    background: var(--hy-panel-solid);
}

.hy-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hy-card:hover .hy-card__image img {
    transform: scale(1.05);
}

.hy-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6, 8, 13, 0.9) 100%);
}

/* Animation stagger for grids */
.hy-grid .hy-card:nth-child(1) { animation-delay: 0ms; }
.hy-grid .hy-card:nth-child(2) { animation-delay: 30ms; }
.hy-grid .hy-card:nth-child(3) { animation-delay: 60ms; }
.hy-grid .hy-card:nth-child(4) { animation-delay: 90ms; }
.hy-grid .hy-card:nth-child(5) { animation-delay: 120ms; }
.hy-grid .hy-card:nth-child(6) { animation-delay: 150ms; }
.hy-grid .hy-card:nth-child(7) { animation-delay: 180ms; }
.hy-grid .hy-card:nth-child(8) { animation-delay: 210ms; }
.hy-grid .hy-card:nth-child(n+9) { animation-delay: 240ms; }

/* Color variants */
.hy-card--cyan { --card-accent: var(--hy-accent-2); }
.hy-card--success { --card-accent: var(--hy-success); }
.hy-card--warn { --card-accent: var(--hy-warn); }
.hy-card--danger { --card-accent: var(--hy-danger); }

/* ============================================
   6. STAT CARDS
   Remplace: .hyp-stat-card, .recruitment-stat, .admin-stat-card
   ============================================ */

.hy-stat-card {
    --stat-color: var(--hy-accent);
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
    animation: hy-fade-up 0.3s ease backwards;
}

.hy-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--stat-color);
    box-shadow: 0 0 12px color-mix(in srgb, var(--stat-color) 55%, transparent);
}

.hy-stat-card:hover {
    border-color: color-mix(in srgb, var(--stat-color) 50%, transparent);
    transform: translateY(-2px);
}

.hy-stat-card--compact {
    padding: 14px 16px;
    gap: 12px;
}

.hy-stat-card--vertical {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hy-stat-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--stat-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--stat-color) 35%, transparent);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    color: var(--stat-color);
}

.hy-stat-card__icon .mud-icon-root {
    font-size: 20px;
}

.hy-stat-card__icon--sm {
    width: 36px;
    height: 36px;
}

.hy-stat-card__icon--sm .mud-icon-root {
    font-size: 16px;
}

.hy-stat-card__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hy-stat-card__value {
    font-family: var(--hy-font-display);
    font-size: 26px;
    color: var(--stat-color);
    line-height: 1;
    letter-spacing: 0.04em;
    text-shadow: 0 0 14px color-mix(in srgb, var(--stat-color) 35%, transparent);
}

.hy-stat-card__value--sm {
    font-size: 20px;
}

.hy-stat-card__value--lg {
    font-size: 32px;
}

.hy-stat-card__label {
    font-family: var(--hy-font-mono);
    font-size: 9px;
    color: var(--hy-ink-3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hy-stat-card__trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--hy-font-mono);
    font-size: 10px;
    margin-top: 4px;
}

.hy-stat-card__trend--up {
    color: var(--hy-success);
}

.hy-stat-card__trend--down {
    color: var(--hy-danger);
}

/* Color variants */
.hy-stat-card--cyan { --stat-color: var(--hy-accent-2); }
.hy-stat-card--success { --stat-color: var(--hy-success); }
.hy-stat-card--warn { --stat-color: var(--hy-warn); }
.hy-stat-card--danger { --stat-color: var(--hy-danger); }
.hy-stat-card--purple { --stat-color: #a78bfa; }

/* Animation stagger for stats grid */
.hy-stats-grid .hy-stat-card:nth-child(1) { animation-delay: 0ms; }
.hy-stats-grid .hy-stat-card:nth-child(2) { animation-delay: 50ms; }
.hy-stats-grid .hy-stat-card:nth-child(3) { animation-delay: 100ms; }
.hy-stats-grid .hy-stat-card:nth-child(4) { animation-delay: 150ms; }
.hy-stats-grid .hy-stat-card:nth-child(5) { animation-delay: 200ms; }

/* ============================================
   7. STATES (Loading, Empty, Error)
   Remplace: .events-loading, .craft-loading, .admin-loading, 
   .events-empty, .hyp-page-empty, .recruitment-empty, .tactical-empty-state
   ============================================ */

/* --- Loading State --- */

.hy-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    min-height: 200px;
}

.hy-loading--full {
    min-height: 400px;
}

.hy-loading--inline {
    flex-direction: row;
    padding: 20px;
    min-height: auto;
}

.hy-loading__spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--hy-border-soft);
    border-top-color: var(--hy-accent);
    border-radius: 50%;
    animation: hy-rotate 1s linear infinite;
}

.hy-loading__spinner--sm {
    width: 24px;
    height: 24px;
}

.hy-loading__spinner--lg {
    width: 56px;
    height: 56px;
    border-width: 3px;
}

.hy-loading__text {
    font-family: var(--hy-font-mono);
    font-size: 11px;
    color: var(--hy-ink-3);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* --- Empty State --- */

.hy-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    background: var(--hy-panel);
    border: 1px dashed var(--hy-border-soft);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    animation: hy-fade-in 0.3s ease;
}

.hy-empty--no-bg {
    background: transparent;
    border: none;
    clip-path: none;
}

.hy-empty--compact {
    padding: 40px 20px;
}

.hy-empty__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--hy-ink-3);
    opacity: 0.6;
}

.hy-empty__icon .mud-icon-root {
    font-size: 48px;
}

.hy-empty__title {
    font-family: var(--hy-font-display);
    font-size: 16px;
    color: var(--hy-ink-2);
    letter-spacing: 0.15em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.hy-empty__desc {
    font-family: var(--hy-font-mono);
    font-size: 11px;
    color: var(--hy-ink-3);
    letter-spacing: 0.1em;
    max-width: 400px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.hy-empty__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Error State --- */

.hy-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.hy-error__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--hy-danger);
}

.hy-error__title {
    font-family: var(--hy-font-display);
    font-size: 16px;
    color: var(--hy-danger);
    letter-spacing: 0.15em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.hy-error__desc {
    font-family: var(--hy-font-mono);
    font-size: 11px;
    color: var(--hy-ink-2);
    letter-spacing: 0.1em;
    max-width: 400px;
    margin: 0 0 24px;
}

/* ============================================
   8. BADGES & PILLS
   Remplace: .event-card__type-badge, .badge, .service-badge, .recruitment-status
   ============================================ */

.hy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-family: var(--hy-font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid currentColor;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
    transition: all 0.15s ease;
}

.hy-badge--sm {
    padding: 2px 6px;
    font-size: 8px;
}

.hy-badge--lg {
    padding: 6px 14px;
    font-size: 10px;
}

.hy-badge--flat {
    clip-path: none;
    border-radius: 2px;
}

.hy-badge--pill {
    clip-path: none;
    border-radius: 999px;
    padding: 4px 12px;
}

/* Badge colors */
.hy-badge--accent {
    background: rgba(255, 192, 0, 0.12);
    color: var(--hy-accent);
    border-color: rgba(255, 192, 0, 0.4);
}

.hy-badge--cyan {
    background: rgba(34, 211, 238, 0.12);
    color: var(--hy-accent-2);
    border-color: rgba(34, 211, 238, 0.35);
}

.hy-badge--success {
    background: rgba(61, 220, 132, 0.12);
    color: var(--hy-success);
    border-color: rgba(61, 220, 132, 0.35);
}

.hy-badge--warn {
    background: rgba(251, 191, 36, 0.12);
    color: var(--hy-warn);
    border-color: rgba(251, 191, 36, 0.35);
}

.hy-badge--danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--hy-danger);
    border-color: rgba(239, 68, 68, 0.35);
}

.hy-badge--muted {
    background: rgba(94, 107, 128, 0.12);
    color: var(--hy-ink-3);
    border-color: rgba(94, 107, 128, 0.35);
}

.hy-badge--purple {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.35);
}

/* Status dot */
.hy-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.hy-badge__dot--pulse {
    animation: hy-pulse 2s ease-in-out infinite;
}

/* Badge icon */
.hy-badge__icon {
    font-size: 12px;
    opacity: 0.9;
}

/* ============================================
   9. TABS (MudTabs Override)
   Remplace: .shop-tabs, .fleet-tabs, .admin-tabs
   ============================================ */

.hy-tabs.mud-tabs {
    background: transparent !important;
}

.hy-tabs .mud-tabs-toolbar {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--hy-border-soft);
    background: transparent !important;
    flex-wrap: wrap;
    min-height: auto !important;
}

.hy-tabs .mud-tab {
    padding: 10px 18px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: var(--hy-ink-2) !important;
    font-family: var(--hy-font-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease !important;
    min-width: auto !important;
    min-height: auto !important;
}

.hy-tabs .mud-tab:hover {
    background: rgba(255, 192, 0, 0.08) !important;
    color: var(--hy-ink) !important;
}

.hy-tabs .mud-tab.mud-tab-active {
    background: rgba(255, 192, 0, 0.18) !important;
    border-bottom: 2px solid var(--hy-accent) !important;
    color: var(--hy-accent) !important;
    clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}

.hy-tabs .mud-tab-slider {
    display: none !important;
}

.hy-tabs .mud-tabs-panels {
    padding-top: 16px !important;
    background: transparent !important;
}

.hy-tabs .mud-tab .mud-icon-root {
    font-size: 16px;
}

/* Tabs compact variant */
.hy-tabs--compact .mud-tab {
    padding: 8px 14px !important;
    font-size: 10px !important;
}

/* Tabs vertical */
.hy-tabs--vertical .mud-tabs-toolbar {
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid var(--hy-border-soft);
}

.hy-tabs--vertical .mud-tab {
    border-bottom: none !important;
    border-right: 2px solid transparent !important;
}

.hy-tabs--vertical .mud-tab.mud-tab-active {
    border-bottom: none !important;
    border-right: 2px solid var(--hy-accent) !important;
}

/* ============================================
   10. UTILITIES
   ============================================ */

/* Section dividers */
.hy-section {
    margin-bottom: 28px;
}

.hy-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hy-border-soft);
}

.hy-section__title {
    font-family: var(--hy-font-mono);
    font-size: 11px;
    color: var(--hy-ink-2);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hy-section__actions {
    display: flex;
    gap: 8px;
}

/* Divider line */
.hy-divider {
    height: 1px;
    background: var(--hy-border-soft);
    margin: 20px 0;
}

.hy-divider--accent {
    background: linear-gradient(90deg, var(--hy-accent), transparent);
}

/* Text utilities */
.hy-text-mono {
    font-family: var(--hy-font-mono) !important;
}

.hy-text-display {
    font-family: var(--hy-font-display) !important;
}

.hy-text-title {
    font-family: var(--hy-font-title) !important;
}

.hy-text-accent {
    color: var(--hy-accent) !important;
}

.hy-text-cyan {
    color: var(--hy-accent-2) !important;
}

.hy-text-muted {
    color: var(--hy-ink-3) !important;
}

.hy-text-success {
    color: var(--hy-success) !important;
}

.hy-text-warn {
    color: var(--hy-warn) !important;
}

.hy-text-danger {
    color: var(--hy-danger) !important;
}

.hy-text-uppercase {
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
}

/* Spacing utilities */
.hy-mb-0 { margin-bottom: 0 !important; }
.hy-mb-1 { margin-bottom: 8px !important; }
.hy-mb-2 { margin-bottom: 16px !important; }
.hy-mb-3 { margin-bottom: 24px !important; }
.hy-mb-4 { margin-bottom: 32px !important; }

.hy-mt-0 { margin-top: 0 !important; }
.hy-mt-1 { margin-top: 8px !important; }
.hy-mt-2 { margin-top: 16px !important; }
.hy-mt-3 { margin-top: 24px !important; }
.hy-mt-4 { margin-top: 32px !important; }

.hy-gap-1 { gap: 8px !important; }
.hy-gap-2 { gap: 12px !important; }
.hy-gap-3 { gap: 16px !important; }
.hy-gap-4 { gap: 24px !important; }

/* Flex utilities */
.hy-flex {
    display: flex !important;
}

.hy-flex-col {
    display: flex !important;
    flex-direction: column !important;
}

.hy-flex-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hy-flex-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.hy-flex-wrap {
    flex-wrap: wrap !important;
}

.hy-flex-1 {
    flex: 1 !important;
}

/* Visibility utilities */
.hy-hidden {
    display: none !important;
}

.hy-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    .hy-hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hy-hidden-desktop {
        display: none !important;
    }
}

/* Focus visible */
.hy-focus-ring:focus-visible {
    outline: 2px solid var(--hy-accent);
    outline-offset: 2px;
}

/* Truncate text */
.hy-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hy-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hy-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
