/* ==========================================================================
   DESIGN PREMIUM ET SEXY DES CARTES CYBER (STYLE INTERFACE HUD)
   ========================================================================== */

.cyber-card-item {
    width: 135px !important;
    height: 175px !important;
    flex-shrink: 0 !important;
    perspective: 1000px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de survol : micro-zoom et élévation de la carte */
.cyber-card-item:hover {
    transform: translateY(-8px) scale(1.02);
}

.cyber-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px !important;
    /* Effet Glassmorphism Cyber : fond semi-transparent flouté */
    background: rgba(var(--bs-primary-rgb), 0.03) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Bordure lumineuse cyan/bleu progressive */
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25) !important;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(var(--bs-primary-rgb), 0.05);
    transition: all 0.25s ease;
}

/* Liseré réactif au survol de la souris */
.cyber-card-item:hover .cyber-card-inner {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 6px 25px rgba(var(--bs-primary-rgb), 0.25), inset 0 0 15px rgba(var(--bs-primary-rgb), 0.1);
}

/* Badge de famille stylisé en pastille HUD */
.f-badge {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(var(--bs-primary-rgb), 0.15) !important;
    color: var(--bs-primary) !important;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.3);
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Titre principal façon console */
.card-cyber-title {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-body-color);
    margin-top: 6px;
}

/* --- ADAPTATION SUBTILE EN MODE SOMBRE --- */
[data-bs-theme="dark"] .cyber-card-inner {
    background: rgba(0, 255, 204, 0.02) !important;
    border: 1px solid rgba(0, 255, 204, 0.2) !important;
}
[data-bs-theme="dark"] .cyber-card-item:hover .cyber-card-inner {
    border-color: #00ffcc !important;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}
[data-bs-theme="dark"] .f-badge {
    background: rgba(0, 255, 204, 0.1) !important;
    color: #00ffcc !important;
    border-color: rgba(0, 255, 204, 0.2);
}

/* --- SÉCURITÉ CONTRÔLE HAUTE VISIBILITÉ (INCLUSIF) --- */
[data-bs-theme="high-contrast"] .cyber-card-inner {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
}
[data-bs-theme="high-contrast"] .f-badge {
    background: #ffff00 !important;
    color: #000000 !important;
}

/* --- COMPACTAGE MOBILE (SMARTPHONES) --- */
@media (max-width: 767.98px) {
    .cyber-card-item {
        width: 110px !important;
        height: 140px !important;
    }
    .card-cyber-title {
        font-size: 0.75rem !important;
    }
    .f-badge {
        font-size: 0.55rem !important;
    }
}
