/* public/css/style.css */

/* --- PALETTE DE COULEURS (STRICTE) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #F4F6F8;
    color: #374151;
    min-height: 100vh;
}

a { text-decoration: none; }

.navbar {
    background-color: #FFFFFF;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: #E63946;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-item:hover { background-color: #F4F6F8; }
.nav-item.logout { color: #E63946; }

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
}

.btn-add {
    background-color: #007AFF;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.3s;
}

.btn-add:hover { opacity: 0.9; }

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.account-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    position: relative;
}

.account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #007AFF;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.account-name {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
}

.account-type {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #007AFF;
    font-weight: 700;
    background-color: rgba(0, 122, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.account-desc {
    font-size: 14px;
    color: #374151;
    opacity: 0.7;
    margin-bottom: 25px;
    line-height: 1.4;
}

.account-balance {
    border-top: 1px solid #F4F6F8;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #374151;
    opacity: 0.6;
}

.balance-amount {
    font-size: 24px;
    font-weight: 800;
    color: #374151;
}