.carte {
    background: var(--carte);
    border-radius: var(--rayon);
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.carte:hover {
    transform: translateY(-10px);
}

.carte-commune {
    border-color: #9ca3af;
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.3);
}

.carte-rare {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.carte-epique {
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.carte-legendaire {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(255, 212, 0, 0.7);
    animation: pulse-aura 2s infinite alternate;
}

@keyframes pulse-aura {
    from {
        box-shadow: 0 0 15px rgba(255, 212, 0, 0.4);
    }
    to {
        box-shadow: 0 0 35px rgba(255, 212, 0, 0.8);
    }
}

.carte.np {
    opacity: 0.8;
}

.carte.np .carte-img {
    filter: grayscale(1) brightness(0.7);
}

.carte.np .remplissage {
    filter: saturate(0.3);
}

.carte-nom {
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
    font-size: 1.6rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 2px;
}

.carte-univers {
    font-size: 0.8rem;
    text-align: center;
    color: var(--texte-muet);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.img-class {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carte-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.carte-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 20px;
    min-height: 60px;
}

.carte-stats {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 12px;
}

.stat {
    margin-bottom: 8px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    font-family: 'Bangers', cursive;
    font-size: 0.9rem;
    color: var(--texte);
    margin-bottom: 4px;
}

.barre {
    height: 6px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.remplissage {
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px currentColor;
}

.attaque .remplissage {
    background: #ff4d4d;
    color: #ff4d4d;
}

.agilite .remplissage {
    background: #ffd400;
    color: #ffd400;
}

.intelligence .remplissage {
    background: #4da6ff;
    color: #4da6ff;
}

.endurance .remplissage {
    background: #2ecc71;
    color: #2ecc71;
}