/* ============================================
   Jns Courtage - Banque 100% Digitale
   Design Premium | Mode Clair/Sombre
   ============================================ */

:root {
    --primary: #0B3D91;
    --primary-light: #1a56c9;
    --primary-dark: #082e6e;
    --accent: #00C9A7;
    --accent-light: #00e6bf;
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #27ae60;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --border: #334155;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-light); }

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 32px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
    transition: var(--transition); position: relative; overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; box-shadow: 0 4px 15px rgba(11, 61, 145, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(11, 61, 145, 0.4); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white; box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 201, 167, 0.4); }

.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* Cards */
.card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    padding: 32px; transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Header / Navbar */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); transition: var(--transition);
}
[data-theme="dark"] .header { background: rgba(15,23,42,0.85); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.5rem; font-weight: 800; color: var(--primary);
}
.logo-icon {
    width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
    font-weight: 500; color: var(--text-light); position: relative;
    padding: 4px 0;
}
.nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* Theme Toggle */
.theme-toggle {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-card);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text); transition: var(--transition); font-size: 1.1rem;
}
.theme-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Mobile Menu */
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px; background: radial-gradient(circle, rgba(11,61,145,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(11,61,145,0.08); color: var(--primary);
    padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 { margin-bottom: 24px; }
.hero h1 span { color: var(--primary); position: relative; }
.hero h1 span::after {
    content: ''; position: absolute; bottom: 4px; left: 0; right: 0;
    height: 8px; background: rgba(0,201,167,0.3); z-index: -1; border-radius: 4px;
}

.hero p { font-size: 1.15rem; margin-bottom: 40px; max-width: 500px; }

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
    position: relative; display: flex; align-items: center; justify-content: center;
}

.phone-mockup {
    width: 280px; height: 560px; background: var(--bg-card);
    border-radius: 40px; box-shadow: var(--shadow-lg);
    border: 8px solid var(--border); position: relative;
    transform: rotate(-5deg); animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

@keyframes float {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-20px); }
}

.phone-screen {
    width: 100%; height: 100%; background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 20px; display: flex; flex-direction: column; gap: 16px;
}

.phone-balance { color: white; }
.phone-balance small { opacity: 0.7; font-size: 0.8rem; }
.phone-balance h3 { font-size: 1.8rem; margin-top: 4px; }

.phone-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px; padding: 20px; color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.phone-card-chip { width: 40px; height: 30px; background: linear-gradient(135deg, #f1c40f, #f39c12); border-radius: 6px; margin-bottom: 20px; }
.phone-card-num { font-family: monospace; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 16px; }
.phone-card-info { display: flex; justify-content: space-between; font-size: 0.75rem; opacity: 0.8; }

.floating-card {
    position: absolute; background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 20px; display: flex; align-items: center; gap: 12px;
    animation: floatCard 5s ease-in-out infinite;
}
.floating-card:nth-child(2) { top: 10%; right: 0; animation-delay: 1s; }
.floating-card:nth-child(3) { bottom: 20%; right: -20px; animation-delay: 2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.floating-icon.green { background: rgba(39,174,96,0.1); color: var(--success); }
.floating-icon.blue { background: rgba(11,61,145,0.1); color: var(--primary); }

/* Sections */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-header h2 { margin-bottom: 16px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 40px 20px; }
.stat-card h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 8px; }
.stat-card p { font-size: 0.95rem; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { text-align: center; }
.feature-icon {
    width: 64px; height: 64px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(11,61,145,0.1), rgba(0,201,167,0.1));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.5rem; color: var(--primary);
}
.feature-card h3 { margin-bottom: 12px; font-size: 1.2rem; }

/* Pricing / Comptes */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.pricing-card { position: relative; overflow: hidden; }
.pricing-card.popular { border: 2px solid var(--primary); transform: scale(1.05); }
.pricing-badge {
    position: absolute; top: 20px; right: -35px;
    background: var(--primary); color: white;
    padding: 6px 40px; font-size: 0.75rem; font-weight: 700;
    transform: rotate(45deg);
}
.pricing-header { text-align: center; margin-bottom: 30px; }
.pricing-header h3 { margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--primary); }
.pricing-price span { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.pricing-features { list-style: none; margin-bottom: 30px; }
.pricing-features li {
    padding: 12px 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
    content: '✓'; color: var(--accent); font-weight: 700;
}

/* Cards Section */
.cards-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bank-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius); padding: 30px; color: white;
    position: relative; overflow: hidden; min-height: 200px;
    transition: var(--transition);
}
.bank-card:hover { transform: translateY(-8px) rotate(1deg); }
.bank-card.gold { background: linear-gradient(135deg, #c9a227, #f4d03f); color: #1a1a2e; }
.bank-card.platinum { background: linear-gradient(135deg, #7f8c8d, #bdc3c7); color: #1a1a2e; }
.bank-card.metal { background: linear-gradient(135deg, #2c3e50, #4a6274); }

.bank-card-chip {
    width: 44px; height: 34px; background: linear-gradient(135deg, #f1c40f, #e67e22);
    border-radius: 8px; margin-bottom: 30px;
}
.bank-card-num { font-family: monospace; font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 20px; }
.bank-card-info { display: flex; justify-content: space-between; font-size: 0.8rem; opacity: 0.9; }
.bank-card-logo { position: absolute; bottom: 20px; right: 20px; font-weight: 800; font-size: 1.2rem; opacity: 0.8; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 600;
}
.faq-answer { max-height: 0; overflow: hidden; transition: var(--transition); }
.faq-answer.active { max-height: 200px; padding-bottom: 24px; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { position: relative; }
.testimonial-stars { color: #f39c12; margin-bottom: 16px; font-size: 1.1rem; }
.testimonial-text { font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700;
}

/* App Download */
.app-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius); padding: 80px; color: white; text-align: center;
    position: relative; overflow: hidden;
}
.app-section h2 { color: white; margin-bottom: 16px; }
.app-section p { color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.app-buttons { display: flex; justify-content: center; gap: 16px; }
.app-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: white; color: var(--primary); padding: 14px 28px;
    border-radius: var(--radius-sm); font-weight: 600; transition: var(--transition);
}
.app-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* Footer */
.footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand p { margin: 20px 0; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; background: var(--bg-card);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; border-color: var(--primary); }

.footer-links h4 { margin-bottom: 20px; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-light); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-light); font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 16px 24px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-weight: 500; display: flex; align-items: center; gap: 12px;
}
.alert-success { background: rgba(39,174,96,0.1); color: var(--success); border: 1px solid rgba(39,174,96,0.2); }
.alert-danger { background: rgba(231,76,60,0.1); color: var(--danger); border: 1px solid rgba(231,76,60,0.2); }
.alert-warning { background: rgba(243,156,18,0.1); color: var(--warning); border: 1px solid rgba(243,156,18,0.2); }
.alert-info { background: rgba(11,61,145,0.1); color: var(--primary); border: 1px solid rgba(11,61,145,0.2); }

/* Forms */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
    font-size: 1rem; transition: var(--transition); font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,61,145,0.1); }

/* Auth Pages */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 480px; }
.auth-header { text-align: center; margin-bottom: 40px; }
.auth-header h2 { margin-bottom: 8px; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-light); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Animations */
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.slide-up { animation: slideUp 0.5s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 40px; }
    .hero-visual { order: -1; }
    .features-grid, .pricing-grid, .testimonials-grid, .stats-grid, .cards-showcase { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
    .nav.active { display: flex; }
    .mobile-toggle { display: block; }
    .features-grid, .pricing-grid, .testimonials-grid, .stats-grid, .cards-showcase { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .app-section { padding: 40px 20px; }
    .app-buttons { flex-direction: column; }
}
