/* ============================================
   BANKING APP UI — Premium Financial Interface
   Style: Clean, Trustworthy, Minimal, Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-base: #f5f7fa;
  --bg-card: #ffffff;
  --bg-subtle: #f0f3f7;
  --bg-input: #f8f9fb;
  
  --text-primary: #1a1f36;
  --text-secondary: #525f7f;
  --text-muted: #8792a2;
  --text-inverse: #ffffff;
  
  --accent: #0d9f6f;
  --accent-hover: #0b8a5f;
  --accent-subtle: rgba(13, 159, 111, 0.08);
  --accent-border: rgba(13, 159, 111, 0.25);
  
  --blue: #3a5bc7;
  --blue-subtle: rgba(58, 91, 199, 0.08);
  
  --border-light: #e6e9ef;
  --border-medium: #d9dde5;
  
  --shadow-xs: 0 1px 2px rgba(26, 31, 54, 0.04);
  --shadow-sm: 0 1px 3px rgba(26, 31, 54, 0.06), 0 1px 2px rgba(26, 31, 54, 0.04);
  --shadow-md: 0 4px 8px rgba(26, 31, 54, 0.06), 0 2px 4px rgba(26, 31, 54, 0.04);
  --shadow-lg: 0 8px 16px rgba(26, 31, 54, 0.08), 0 4px 8px rgba(26, 31, 54, 0.04);
  --shadow-card: 0 2px 8px rgba(26, 31, 54, 0.06), 0 0 1px rgba(26, 31, 54, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(26, 31, 54, 0.1), 0 2px 8px rgba(26, 31, 54, 0.06);
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 120ms ease;
  --transition-base: 180ms ease;
  --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

::selection {
  background: var(--accent);
  color: white;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  max-width: 60ch;
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: var(--text-sm);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

main.container {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

/* === HEADER === */
header,
.header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-md);
}

.brand-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
  font-weight: 600;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  max-width: 680px;
  margin: 0 auto;
}

.hero.compact {
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-md);
  font-size: var(--text-3xl);
  line-height: 1.25;
}

.hero .lead {
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  font-size: var(--text-base);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.pill {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill::before {
  content: '✓';
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

/* === BUTTONS === */
button,
.btn,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary,
.btn,
button,
input[type="submit"] {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: white;
}

.btn-primary:active,
.btn:active,
button:active {
  transform: translateY(0);
}

.btn-ghost,
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.full {
  width: 100%;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card h2 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h2::before {
  content: counter(card-counter);
  counter-increment: card-counter;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

.grid-3 {
  counter-reset: card-counter;
}

.callout {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
}

.callout:hover {
  border-color: var(--accent);
}

.callout h2::before {
  content: '→';
  background: var(--accent);
  color: white;
}

/* Pricing cards */
.pricing {
  display: flex;
  flex-direction: column;
}

.pricing h2::before {
  display: none;
}

.pricing .btn {
  margin-top: auto;
}

.pricing.highlight {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(13, 159, 111, 0.03) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing.highlight:hover {
  transform: translateY(-2px);
}

.pricing.highlight::before {
  content: 'Recommandé';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Gadget card */
.card.gadget {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-medium);
  padding: var(--space-lg);
}

.card.gadget:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.card.gadget h2::before {
  content: '🛠';
  background: transparent;
  width: auto;
  height: auto;
  font-size: var(--text-lg);
}

/* === GRIDS === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: stretch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

/* === LISTS === */
.list {
  list-style: none;
  margin: var(--space-md) 0;
}

.list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-light);
}

.list li:last-child {
  border-bottom: none;
}

.list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* === PRICING === */
.price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin: var(--space-md) 0;
  letter-spacing: -0.02em;
}

.price .muted,
.price span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}

/* === FORMS === */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
textarea,
select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  transition: all var(--transition-base);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-medium);
  background: var(--bg-card);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-xl) 0;
}

/* === RESULTS === */
.result-box {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
}

.result-box h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.mini-card:hover {
  border-color: var(--accent-border);
}

.mini-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.mini-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

/* === TEST PAGE SPECIFIC === */
.test-container {
  max-width: 720px;
  margin: 0 auto;
}

.test-container .card {
  padding: var(--space-xl);
}

.test-container h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.test-container .lead {
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

/* === LOGIN PAGE SPECIFIC === */
.login-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.login-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.login-grid .card .btn {
  margin-top: auto;
}

/* === FOOTER === */
footer,
.footer {
  text-align: center;
  padding: var(--space-lg);
  margin-top: var(--space-2xl);
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer a:hover {
  color: var(--accent);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
  }
  
  .container {
    padding: 0 var(--space-lg);
  }
  
  header,
  .header,
  .site-header {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
  }
  
  .brand {
    width: 100%;
    justify-content: center;
  }
  
  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: var(--text-xs);
  }
  
  .hero {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero.compact {
    padding: var(--space-lg) var(--space-md);
  }
  
  .grid-2,
  .grid-3,
  .login-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .mini-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .card:hover {
    transform: none;
  }
  
  .cta-row {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }
  
  .cta-row .btn,
  .cta-row .btn-ghost {
    width: 100%;
  }
  
  .trust {
    gap: 6px;
  }
  
  .pill {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .price {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 400px) {
  .logo {
    width: 36px;
    height: 36px;
    font-size: var(--text-base);
  }
  
  .brand-title {
    font-size: var(--text-sm);
  }
  
  .card {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }
  
  .card h2::before {
    width: 24px;
    height: 24px;
    font-size: var(--text-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body { background: white; }
  header, footer, .btn, button, .trust, .cta-row { display: none; }
  .card { border: 1px solid #ddd; box-shadow: none; break-inside: avoid; }
}
/* ===== HEADER FIX DASHBOARD ===== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #16a34a;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.logo-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.logo-text small {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a.active {
  color: #16a34a;
  font-weight: 700;
}

.btn-logout {
  padding: 6px 12px;
  border: 1px solid #dc2626;
  border-radius: 6px;
  color: #dc2626;
}
/* ===== HEADER FIX DASHBOARD ===== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #16a34a;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.logo-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.logo-text small {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a.active {
  color: #16a34a;
  font-weight: 700;
}

.btn-logout {
  padding: 6px 12px;
  border: 1px solid #dc2626;
  border-radius: 6px;
  color: #dc2626;
}

