/* ===================================
   BANQUE POPULAIRE - STYLES GÉNÉRAUX
   E-BANKING MODERNE - DÉCEMBRE 2025
   =================================== */

:root {
    /* Couleurs UBS Bank + variantes */
    --primary-color: #0f1115;
    --primary-dark: #08090b;
    --primary-light: #23262d;
    --secondary-color: #c62828;
    --secondary-light: #e53935;
    --secondary-dark: #8e0000;
    --gradient-start: #c62828;
    --gradient-end: #0f1115;
    --gradient-vivid: linear-gradient(135deg, #c62828 0%, #0f1115 50%, #c62828 100%);
    --gradient-soft: linear-gradient(135deg, rgba(198, 40, 40, 0.12) 0%, rgba(15, 17, 21, 0.08) 100%);
    --accent-purple: #7f1d1d;
    --accent-pink: #b71c1c;
    --accent-orange: #d32f2f;
    
    /* Couleurs interface moderne */
    --text-dark: #111111;
    --text-medium: #4a4a4a;
    --text-light: #7a7a7a;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0f1115 0%, #c62828 100%);
    --bg-gradient-light: linear-gradient(135deg, rgba(15, 17, 21, 0.05) 0%, rgba(198, 40, 40, 0.05) 100%);
    --border-color: #e5e5e5;
    --border-light: #f2f2f2;
    
    /* États */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --info-color: #3b82f6;
    --info-light: #dbeafe;
    
    /* Ombres modernes */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 17, 21, 0.07);
    --shadow-md: 0 4px 16px rgba(15, 17, 21, 0.1);
    --shadow-lg: 0 8px 24px rgba(15, 17, 21, 0.14);
    --shadow-xl: 0 16px 48px rgba(15, 17, 21, 0.16);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Espacements */
    --header-height: 64px;
    --sidebar-width: 280px;
    --sidebar-collapsed: 72px;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   ANIMATIONS IMPRESSIONNANTES
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Appliquer les animations au chargement */
.main-content {
    animation: fadeInUp 0.6s ease;
}

.page-header {
    animation: fadeInDown 0.5s ease;
}

.quick-action-card {
    animation: scaleIn 0.5s ease;
    animation-fill-mode: both;
}

.quick-action-card:nth-child(1) { animation-delay: 0.1s; }
.quick-action-card:nth-child(2) { animation-delay: 0.2s; }
.quick-action-card:nth-child(3) { animation-delay: 0.3s; }
.quick-action-card:nth-child(4) { animation-delay: 0.4s; }

.account-card {
    animation: fadeInLeft 0.6s ease;
    animation-fill-mode: both;
}

.account-card:nth-child(1) { animation-delay: 0.2s; }
.account-card:nth-child(2) { animation-delay: 0.3s; }
.account-card:nth-child(3) { animation-delay: 0.4s; }

.transaction-item {
    animation: fadeInRight 0.5s ease;
    animation-fill-mode: both;
}

.transaction-item:nth-child(1) { animation-delay: 0.1s; }
.transaction-item:nth-child(2) { animation-delay: 0.2s; }
.transaction-item:nth-child(3) { animation-delay: 0.3s; }
.transaction-item:nth-child(4) { animation-delay: 0.4s; }
.transaction-item:nth-child(5) { animation-delay: 0.5s; }

/* ===================================
   PAGE DE CONNEXION - DESIGN MODERNE
   =================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f1115 0%, #2b0c0c 25%, #8e0000 60%, #c62828 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(198, 40, 40, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 17, 21, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
    margin: auto;
    padding: 24px;
    gap: 24px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    min-height: calc(100vh - 100px);
}

.login-left {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5);
    width: 100%;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 181, 226, 0.8), transparent);
    animation: shimmer 3s infinite;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.info-card p {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

.logo-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.logo-container img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.logo-fallback {
    background: var(--primary-color);
    color: white;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    display: inline-block;
}

.logo-fallback h1 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.logo-fallback h1 .cyan {
    color: var(--secondary-color);
}

.subtitle {
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.login-form-container h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.welcome-text {
    color: var(--text-medium);
    margin-bottom: 32px;
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
}

.login-form label i {
    margin-right: 8px;
    color: var(--secondary-color);
    font-size: 14px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(0, 181, 226, 0.2);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.login-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(0, 181, 226, 0.15), 0 8px 16px rgba(0, 181, 226, 0.1);
    background: white;
    transform: translateY(-2px);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-container input {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(198, 40, 40, 0.45);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.login-footer {
    text-align: center;
    margin-top: 40px;
}

.login-footer p {
    color: var(--text-medium);
    margin-bottom: 15px;
}

.login-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.info-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-medium);
    font-size: 14px;
}

.login-footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===================================
   DASHBOARD - LAYOUT MODERNE
   =================================== */

.dashboard-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-light);
}

/* ===================================
   HEADER MODERNE AVEC MENU BURGER
   =================================== */

.main-header {
    background: linear-gradient(90deg, #ffffff 0%, #f7f7f7 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(198, 40, 40, 0.15);
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(15, 17, 21, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-vivid);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Menu Burger - Visible et Coloré */
.burger-menu {
    display: none;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.28);
    transition: var(--transition);
}

.burger-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    margin: 4px auto;
    transition: var(--transition);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo */
.logo-container-small {
    width: 140px;
    height: 48px;
    display: flex;
    align-items: center;
}

.logo-small {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-fallback-small {
    width: 48px;
    height: 48px;
    background: var(--bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.bank-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-button {
    position: relative;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-medium);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.icon-button .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.user-menu {
    position: relative;
}

.user-button {
    background: var(--bg-light);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.user-button:hover {
    background: var(--border-color);
}

.user-button i.fa-user-circle {
    font-size: 28px;
    color: var(--secondary-color);
}

.user-button span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: none;
}

.user-button i.fa-chevron-down {
    font-size: 10px;
    color: var(--text-light);
    display: none;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.user-menu:hover .user-dropdown {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 14px;
}

.user-dropdown a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 8px 0;
}

/* ===================================
   SIDEBAR - MENU LATÉRAL MODERNE
   =================================== */

/* Overlay pour mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border-right: 1px solid rgba(198, 40, 40, 0.12);
    padding: 24px 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

/* Scrollbar custom */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.nav-menu {
    list-style: none;
    padding: 0 12px;
}

.nav-menu li {
    margin-bottom: 4px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 500;
}

.nav-menu a:hover {
    background: rgba(198, 40, 40, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-menu li.active a {
    background: linear-gradient(90deg, rgba(198, 40, 40, 0.12) 0%, rgba(15, 17, 21, 0.04) 100%);
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-menu li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 3px;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
    border-radius: 0 2px 2px 0;
}

.nav-menu a i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    transition: var(--transition-fast);
}

.nav-menu li.active a i {
    transform: scale(1.1);
}

/* ===================================
   MAIN CONTENT - ZONE PRINCIPALE
   =================================== */

.main-content {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
    margin-left: var(--sidebar-width);
    background: var(--bg-light);
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s ease;
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 6px;
    font-weight: 800;
    background: var(--gradient-vivid);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.page-subtitle {
    color: var(--text-medium);
    font-size: 16px;
    font-weight: 500;
}

/* Connection info */
.connection-info {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 13px;
    padding: 8px 16px;
    background: rgba(0, 181, 226, 0.05);
    border-radius: 20px;
    width: fit-content;
    border: 1px solid rgba(0, 181, 226, 0.1);
}

.connection-info i {
    color: var(--secondary-color);
    font-size: 14px;
}

.connection-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Alert Banner */
.alert-banner {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    position: relative;
    animation: slideInDown 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 5px solid #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.alert-danger .alert-icon {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    color: #dc3545;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.alert-content p {
    color: #721c24;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.alert-close {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    background: rgba(220, 53, 69, 0.1);
    transform: rotate(90deg);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 22px;
    color: var(--text-dark);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 12px;
}

/* ===================================
   QUICK ACTIONS
   =================================== */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.quick-action-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    padding: 20px 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-vivid);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.quick-action-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-vivid);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.quick-action-card:hover::before {
    transform: scaleX(1);
}

.quick-action-card:hover::after {
    opacity: 0.1;
}

.quick-action-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 181, 226, 0.3);
    border-color: var(--secondary-color);
}

.quick-action-card:nth-child(1) i { color: var(--secondary-color); }
.quick-action-card:nth-child(2) i { color: var(--accent-purple); }
.quick-action-card:nth-child(3) i { color: var(--accent-orange); }
.quick-action-card:nth-child(4) i { color: var(--accent-pink); }

.quick-action-card i {
    font-size: 36px;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.quick-action-card:hover i {
    transform: scale(1.15) rotate(5deg);
    animation: float 2s ease-in-out infinite;
}

.quick-action-card span {
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   ACCOUNT CARDS
   =================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.account-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-vivid);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.account-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(198, 40, 40, 0.14) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.account-card:hover::before {
    transform: scaleY(1);
}

.account-card:hover::after {
    opacity: 1;
}

.account-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px rgba(198, 40, 40, 0.22);
    border-color: var(--secondary-color);
}

.account-card:nth-child(1) .account-icon { color: var(--secondary-color); }
.account-card:nth-child(2) .account-icon { color: var(--accent-purple); }
.account-card:nth-child(3) .account-icon { color: var(--accent-orange); }

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.account-header h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.account-number {
    font-size: 13px;
    color: var(--text-light);
}

.account-icon {
    font-size: 36px;
    opacity: 0.9;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.account-card:hover .account-icon {
    transform: scale(1.15) rotate(-5deg);
    animation: float 2s ease-in-out infinite;
}

.account-balance {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.balance-label {
    font-size: 13px;
    color: var(--text-light);
}

.balance-amount {
    font-size: 28px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.balance-amount.positive {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.balance-amount.neutral {
    color: var(--text-dark);
}

.balance-amount.negative {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
}

.account-card:hover .balance-amount {
    animation: pulse 1.5s ease-in-out infinite;
}

.account-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.account-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.account-link:hover {
    text-decoration: underline;
}

/* ===================================
   TRANSACTIONS
   =================================== */

.transactions-list {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
    border-radius: var(--border-radius-sm);
    margin-bottom: 4px;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background: var(--bg-light);
    transform: translateX(4px);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.transaction-icon.debit {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--danger-color);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.transaction-icon.credit {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--success-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.transaction-item:hover .transaction-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 181, 226, 0.3);
}

.transaction-icon.debit i,
.transaction-icon.credit i {
    animation: pulse 2s ease-in-out infinite;
}

.transaction-details {
    flex: 1;
}

.transaction-details h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.transaction-details p {
    font-size: 13px;
    color: var(--text-light);
}

.transaction-amount {
    font-size: 18px;
    font-weight: 700;
}

.transaction-amount.debit {
    color: var(--danger-color);
}

.transaction-amount.credit {
    color: var(--success-color);
}

/* ===================================
   INFO CARDS DASHBOARD
   =================================== */

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card-dashboard {
    background: var(--bg-gradient);
    color: white;
    padding: 24px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card-dashboard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-card-dashboard i {
    font-size: 40px;
    opacity: 0.9;
}

.info-card-dashboard div {
    flex: 1;
}

.info-card-dashboard h4 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-card-dashboard p {
    font-size: 13px;
    opacity: 0.9;
}

.btn-outline-small {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-outline-small:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-mdon);
    white-space: nowrap;
}

.btn-outline-small:hover {
    background: white;
    color: var(--primary-color);
}

/* ===================================
   COMPTE DETAILS PAGE
   =================================== */

.account-detail-card {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    padding: 30px;
}

.account-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.account-detail-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.account-detail-number {
    color: var(--text-light);
    font-size: 14px;
}

.account-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-medium);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

.account-balance-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.balance-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.balance-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.balance-value.positive {
    color: var(--success-color);
}

.balance-value.warning {
    color: var(--warning-color);
}

.balance-item.main-balance .balance-value {
    font-size: 28px;
}

/* ===================================
   FILTERS & SEARCH
   =================================== */

.transactions-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-group {
    flex: 1;
    position: relative;
    min-width: 200px;
}

.search-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-group input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.search-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===================================
   TRANSACTIONS TABLE
   =================================== */

.transactions-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table thead {
    background: var(--bg-light);
}

.transactions-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table td {
    padding: 18px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.transactions-table tbody tr:hover {
    background: var(--bg-light);
}

.transaction-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transaction-label i {
    color: var(--primary-color);
}

.amount {
    font-weight: 600;
    text-align: right;
}

.amount.debit {
    color: var(--danger-color);
}

.amount.credit {
    color: var(--success-color);
}

/* ===================================
   PAGINATION
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
}

.pagination-info {
    color: var(--text-medium);
    font-size: 14px;
}

/* ===================================
   VIREMENTS - TRANSFER TYPES
   =================================== */

.transfer-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.transfer-type-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.transfer-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.transfer-type-card.active {
    border-color: var(--primary-color);
    background: rgba(226, 6, 19, 0.05);
}

.transfer-type-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.transfer-type-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.transfer-type-card p {
    font-size: 14px;
    color: var(--text-medium);
}

/* ===================================
   FORM CONTAINER
   =================================== */

.form-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.form-container h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 24px;
    color: var(--text-dark);
}

.form-container h2 i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(226, 6, 19, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button select {
    flex: 1;
}

.amount-input-container {
    position: relative;
}

.amount-input-container input {
    padding-right: 40px;
}

.currency-symbol {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-medium);
    font-size: 16px;
}

/* ===================================
   TRANSFER SUMMARY
   =================================== */

.transfer-summary {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
}

.transfer-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:first-child {
    color: var(--text-medium);
    font-size: 14px;
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.amount-highlight {
    font-size: 20px !important;
    color: var(--primary-color) !important;
}

/* ===================================
   FORM ACTIONS
   =================================== */

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    width: auto;
    padding: 14px 35px;
}

/* ===================================
   MODAL
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--success-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 80px;
    color: var(--success-color);
}

.success-message {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.confirmation-details {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.confirmation-details p {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.confirmation-details p:last-child {
    border-bottom: none;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* ===================================
   RESPONSIVE - DESIGN MOBILE FIRST
   =================================== */

/* Desktop Large (>1200px) - Bank name visible */
@media (min-width: 1200px) {
    .bank-name {
        display: block;
    }
    
    .user-button span {
        display: inline;
    }
    
    .user-button i.fa-chevron-down {
        display: inline;
    }
}

/* Tablet & Mobile (<1200px) */
@media (max-width: 1199px) {
    :root {
        --sidebar-width: 72px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    /* Afficher le burger menu */
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Sidebar cachée par défaut sur mobile/tablet */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu {
        padding: 0 16px;
    }
    
    .nav-menu a {
        padding: 16px 20px;
    }
}

/* Login responsive */
@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        padding: 16px;
        gap: 16px;
    }
    
    .login-left {
        padding: 36px 24px;
        border-radius: 20px;
    }
    
    .login-right {
        gap: 16px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .login-header {
        margin-bottom: 28px;
    }
    
    .login-form input[type="text"],
    .login-form input[type="password"] {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 12px;
    }
    
    .login-left {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .info-card {
        padding: 18px;
    }
    
    .login-form-container h2 {
        font-size: 20px;
    }
    
    .logo-container img {
        max-width: 140px;
    }
}

/* Tablet (<992px) */
@media (max-width: 991px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    :root {
        --header-height: 56px;
    }
    
    .main-header {
        padding: 0 16px;
        height: var(--header-height);
    }
    
    .sidebar {
        top: var(--header-height);
        width: 280px;
    }
    
    .main-content {
        padding: 16px;
        min-height: calc(100vh - var(--header-height));
    }
    
    .page-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .page-subtitle {
        font-size: 13px;
    }
    
    /* Quick actions sur 2 colonnes */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .quick-action-card {
        padding: 16px 12px;
        font-size: 13px;
    }
    
    .quick-action-card i {
        font-size: 24px;
    }
    
    /* Cards full width */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .account-card,
    .form-container,
    .transactions-container {
        padding: 20px;
    }
    
    /* Forms */
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
    
    .transactions-filters {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-group {
        width: 100%;
    }
    
    /* Header icons */
    .header-right {
        gap: 8px;
    }
    
    .icon-button {
        width: 36px;
        height: 36px;
    }
    
    .user-button {
        padding: 6px;
    }
    
    /* Hide bank name on mobile */
    .bank-name {
        display: none !important;
    }
}

/* Small Mobile (<576px) */
@media (max-width: 575px) {
    .login-left {
        padding: 32px 20px;
    }
    
    .logo-container {
        transform: scale(0.9);
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        flex-wrap: wrap;
    }
    
    .transaction-details {
        flex: 1;
        min-width: 100%;
        margin-bottom: 8px;
    }
    
    .transaction-amount {
        width: 100%;
        text-align: left;
    }
}

/* ===================================
   CARTES BANCAIRES
   =================================== */

.cards-grid-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.carte-bancaire-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    min-height: 220px;
}

.carte-bancaire-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.carte-bancaire-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.25);
}

.carte-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.carte-type {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.95;
}

.carte-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #f4d03f, #c19d2f);
    border-radius: 6px;
    opacity: 0.9;
}

.carte-numero {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.carte-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.carte-titulaire {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.carte-expiration {
    font-size: 12px;
    opacity: 0.9;
}

.plafonds-container {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
}

.plafond-item {
    margin-bottom: 15px;
}

.plafond-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-medium);
    font-size: 13px;
}

.plafond-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.plafond-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ===================================
   ÉPARGNE
   =================================== */

.total-epargne-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 20px;
    padding: 40px;
    color: white;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    text-align: center;
}

.total-epargne-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.total-epargne-header i {
    font-size: 32px;
}

.total-epargne-amount {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.total-epargne-evolution {
    font-size: 16px;
    opacity: 0.95;
}

.evolution-positive {
    color: #4caf50;
    font-weight: 600;
}

.offres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.offre-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
}

.offre-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.offre-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.offre-taux {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 15px 0;
}

.conseils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.conseil-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.conseil-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.conseil-card i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ===================================
   PRÊTS
   =================================== */

.prets-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pret-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pret-card:hover {
    box-shadow: var(--shadow-md);
}

.pret-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.pret-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pret-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.pret-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pret-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pret-info-label {
    font-size: 13px;
    color: var(--text-light);
}

.pret-info-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.pret-progress-bar {
    margin: 20px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-medium);
}

.progress-bar {
    height: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 10px;
    transition: width 0.8s ease;
}

.simulateur-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.simulateur-form {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.simulation-result {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-label {
    font-size: 14px;
    color: var(--text-medium);
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.offre-pret-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.offre-pret-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--secondary-color);
}

.offre-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
}

.offre-avantages {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

.offre-avantages li {
    padding: 8px 0;
    color: var(--text-medium);
}

.offre-avantages i {
    color: var(--success-color);
    margin-right: 10px;
}

/* ===================================
   DOCUMENTS
   =================================== */

.documents-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: var(--bg-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.documents-list {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.document-item:last-child {
    border-bottom: none;
}

.document-item:hover {
    background: var(--bg-light);
}

.document-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-right: 20px;
}

.document-info {
    flex: 1;
}

.document-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.document-meta {
    font-size: 13px;
    color: var(--text-light);
}

.document-actions {
    display: flex;
    gap: 10px;
}

.info-banner {
    background: linear-gradient(135deg, rgba(0, 181, 226, 0.1), rgba(0, 181, 226, 0.05));
    border-left: 4px solid var(--secondary-color);
    border-radius: 10px;
    padding: 20px 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-banner i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 2px;
}

/* ===================================
   CONTACT
   =================================== */

.conseiller-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.conseiller-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    flex-shrink: 0;
}

.conseiller-info {
    flex: 1;
    min-width: 250px;
}

.conseiller-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.conseiller-contact {
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-medium);
}

.contact-item i {
    color: var(--secondary-color);
    width: 20px;
}

.rdv-container {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.rdv-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    resize: vertical;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-method-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-method-card i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.contact-details {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.agence-details {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.agence-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.agence-horaires {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.horaire-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
}

.faq-list {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    text-align: left;
}

.faq-question:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-medium);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

@media (max-width: 576px) {
    .login-left {
        padding: 30px 20px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        flex-wrap: wrap;
    }
    
    .transaction-amount {
        margin-left: auto;
    }
    
    .account-balance-row {
        grid-template-columns: 1fr;
    }
    
    .cards-grid-cartes {
        grid-template-columns: 1fr;
    }
    
    .total-epargne-amount {
        font-size: 36px;
    }
    
    .conseiller-card {
        text-align: center;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
