/* Style général de la carte bancaire */
.bank-card {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.25rem;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    min-width: 85%;
    max-width: 100%;
    flex-shrink: 0;
    margin: 2px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.25);
}

/* Texture/Puce de carte */
.bank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.card-chip {
    width: 38px;
    height: 26px;
    background: linear-gradient(135deg, #e0aa3e 0%, #f9d976 50%, #e0aa3e 100%);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.4);
}

.bank-card.active-card {
    outline: 3px solid #842424; /* Couleur signature */
    transform: translateY(-4px);
}

.bank-card:active {
    transform: scale(0.98);
}

.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
} 

/* Permet aux cartes de garder une largeur fixe en scroll horizontal */
.debt-card {
    min-width: 85%;
    max-width: 100%;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.debt-card.active-card {
    border-color: #842424;
    box-shadow: 0 4px 14px rgba(132, 36, 36, 0.15);
}

/* Style de la carte active lors de la sélection */
.debt-card-selected {
    border-color: #842424 !important;
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

/* Thèmes par type de compte */
.card-theme-bank {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); /* Premium Dark/Navy */
}

.card-theme-savings_account {
    background: linear-gradient(135deg, #842424 0%, #4a0d0d 100%); /* Signature Burgundy */
}

.card-theme-mobile_money {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); /* Vibrant Amber/Orange */
}

.card-theme-wallet {
    background: linear-gradient(135deg, #059669 0%, #047857 100%); /* Emerald Green */
}

.card-theme-receivables {
    background: linear-gradient(135deg, #2b0405 0%, #1e293b 100%); /* Royal Indigo */
}
.card-theme-investment {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); /* Royal Indigo */
}

/* Sur les écrans plus larges (tablettes et PC), on remet une limite de taille élégante */
@media (min-width: 640px) {
    .bank-card, .debt-card {
        width: 380px;
        max-width: 420px;
    }
}