/* =========================================================================
   STYLE.CSS - THÈME CLAIR FAIRPAY FINAL
   ========================================================================= */

:root {
    --violet: #7c3aed;
    --bg-light: #f4f6f8;
    --card-bg: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --primary-violet: var(--violet);
    --border-color: #dee2e6;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding-bottom: 80px;
}

/* CONTENEUR PRINCIPAL */
.main-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-bg);
    min-height: 100vh;
}

/* HEADER VIOLLET */
.header-violet {
    background: linear-gradient(135deg, var(--violet), #a78bfa);
    color: white;
    padding: 60px 24px 80px;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.header-violet h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}
.header-violet p {
    opacity: 0.9;
}

/* BALANCE CARTE SUPERPOSÉE */
.balance-card {
    background: var(--card-bg);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: 2rem;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin-bottom: 24px;
}

/* CARTES ARRONDIES */
.light-card {
    background-color: var(--card-bg);
    border-radius: 1.5rem;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.light-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* BOTTOM NAV 5 ICÔNES */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 1000;
}
.nav-item {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 8px;
    transition: color 0.2s;
}
.nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}
.nav-item.active {
    color: var(--violet);
}
.nav-item.active i {
    background: var(--violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FAB BOUTON */
.fab-button {
    position: fixed;
    bottom: 95px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--violet);
    color: white;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
    z-index: 999;
}

/* FORMULAIRE */
.form-control, .form-select {
    background-color: #f8f9fa !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
}

.main-container .light-card {
    margin: 0 20px 16px;
}
