/* ===== CzechCredit - Main Stylesheet ===== */
:root {
    --primary:   #1a4f9f;
    --secondary: #e63946;
    --accent:    #f4a261;
    --dark:      #0d1b2a;
    --light:     #f8f9fa;
    --success:   #2d9e6b;
    --card-shadow: 0 4px 24px rgba(26,79,159,.12);
}

* { box-sizing: border-box; }
html, body { background-color: #eef2f7 !important; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #333; }

/* Sections blanches explicites pour les zones qui doivent rester claires */
.bg-white-section { background: #fff; }
.card { background: #fff; }
.form-card { background: #fff; }
.sim-card { background: #fff; }

/* ── Navbar ── */
.navbar-brand { font-weight: 800; font-size: 1.5rem; color: var(--primary) !important; }
.navbar { border-bottom: 3px solid var(--primary); }
.nav-link:hover { color: var(--secondary) !important; }
.btn-cta { background: var(--secondary); color: #fff; border: none; font-weight: 700; padding: .6rem 1.6rem; border-radius: 30px; transition: .2s; }
.btn-cta:hover { background: #c1121f; color: #fff; transform: translateY(-1px); }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2f6e 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.2; }
.hero .lead { font-size: 1.1rem; opacity: .9; }
.hero-badge { display: inline-block; background: var(--accent); color: var(--dark); font-weight: 700; border-radius: 20px; padding: .3rem 1rem; font-size: .85rem; margin-bottom: 1rem; }

/* ── Quick simulator ── */
.sim-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}
.sim-card h3 { color: var(--primary); font-weight: 800; }
.result-box { background: var(--primary); color: #fff; border-radius: 12px; padding: 1.5rem; text-align: center; }
.result-box .amount { font-size: 2.5rem; font-weight: 900; }
.result-box small { opacity: .8; font-size: .85rem; }

/* ── Produits ── */
.product-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(26,79,159,.2); }
.product-card .card-header { font-weight: 700; font-size: 1.05rem; padding: 1rem 1.5rem; }
.product-card .taux { font-size: 2rem; font-weight: 900; color: var(--primary); }
.product-card .taux small { font-size: .9rem; font-weight: 400; color: #666; }
.product-icon { font-size: 2.5rem; }

.bg-personnel    { background: linear-gradient(135deg,#1a4f9f,#4a90d9); }
.bg-auto         { background: linear-gradient(135deg,#e63946,#ff6b6b); }
.bg-immobilier   { background: linear-gradient(135deg,#2d9e6b,#52c88b); }
.bg-entreprise   { background: linear-gradient(135deg,#f4a261,#e76f51); }
.bg-consommation { background: linear-gradient(135deg,#7b2d8b,#b85cd0); }
.bg-rachat       { background: linear-gradient(135deg,#14213d,#2e4057); }

/* ── Steps ── */
.step-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 900;
    margin: 0 auto 1rem;
}

/* ── Form ── */
.form-section { background: var(--light); }
.form-card { background: #fff; border-radius: 16px; padding: 2.5rem; box-shadow: var(--card-shadow); }
.form-label { font-weight: 600; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(26,79,159,.2); }
.btn-submit { background: var(--primary); color: #fff; font-size: 1.1rem; font-weight: 700; padding: .8rem 3rem; border-radius: 30px; border: none; transition: .2s; }
.btn-submit:hover { background: #0d2f6e; color: #fff; transform: translateY(-2px); }

/* ── Stats ── */
.stats-bar { background: var(--primary); color: #fff; padding: 2.5rem 0; }
.stat-num  { font-size: 2.5rem; font-weight: 900; }

/* ── Simulator page ── */
.sim-page-header { background: linear-gradient(135deg,var(--primary),#0d2f6e); color:#fff; padding:3rem 0 2rem; }
.sim-table th { background: var(--primary); color: #fff; }
.sim-result-main { background: var(--primary); color: #fff; border-radius: 12px; padding: 1.5rem; }

/* ── Admin ── */
.admin-sidebar { background: var(--dark); min-height: 100vh; padding: 0; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.75); padding: .75rem 1.5rem; border-radius: 8px; margin: 2px 8px; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: var(--primary); color: #fff; }
.admin-sidebar .brand { color: #fff; font-weight: 800; padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.stat-card { border: none; border-radius: 12px; box-shadow: var(--card-shadow); }
.stat-card .icon-bg { width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.5rem; }

/* ── Footer ── */
footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 3rem 0 1.5rem; }
footer h5 { color: #fff; font-weight: 700; }
footer a { color: rgba(255,255,255,.7); text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.5rem; font-size: .85rem; }

/* ── Misc ── */
.section-title { font-weight: 900; color: var(--dark); }
.section-title span { color: var(--primary); }
.divider { width: 60px; height: 4px; background: var(--secondary); border-radius: 2px; margin: .75rem auto 2rem; }

.alert-gdpr { background: var(--dark); color: rgba(255,255,255,.85); border: none; border-radius: 0; font-size: .85rem; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; padding: 1rem 2rem; }
