/* ============================================================
   FRONT-END FINTECH LIGHT THEME — MODERN & RESPONSIVE
   ============================================================ */

:root {
  --front-bg: #f8fafc;
  --front-surface: #ffffff;
  --front-surface-alt: #f1f5f9;
  --front-card-bg: #ffffff;
  --front-border: #e2e8f0;
  --front-border-subtle: #cbd5e1;
  --front-text: #0f172a;
  --front-text-secondary: #334155;
  --front-muted: #64748b;
  --front-primary: #0284c7;
  --front-primary-dark: #0369a1;
  --front-primary-light: #e0f2fe;
  --front-accent: #10b981;
  --front-accent-light: #d1fae5;
  --front-card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --front-card-shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

.front-body {
  background-color: var(--front-bg);
  color: var(--front-text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.front-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* TOPBAR */
.front-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--front-border);
  padding: 10px 0;
  font-size: 0.85rem;
}

.front-topbar a {
  color: var(--front-text-secondary);
  transition: color 0.15s ease;
}

.front-topbar a:hover {
  color: var(--front-primary);
}

/* NAVBAR */
.front-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--front-border);
  padding: 14px 0;
  transition: all 0.2s ease;
}

.front-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--front-text);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.front-logo__mark {
  color: var(--front-primary);
  font-size: 1.35rem;
}

.front-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.front-link {
  color: var(--front-text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.15s ease;
  position: relative;
  padding: 4px 0;
}

.front-link:hover, .front-link.is-active {
  color: var(--front-primary);
}

.front-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--front-primary);
  border-radius: 2px;
}

/* BOUTONS */
.front-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.front-btn--primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.front-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
  color: #ffffff;
}

.front-btn--ghost {
  background: #ffffff;
  color: var(--front-text);
  border: 1px solid var(--front-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.front-btn--ghost:hover {
  background: var(--front-surface-alt);
  border-color: var(--front-border-subtle);
  color: var(--front-text);
}

.front-btn--glass {
  background: rgba(255, 255, 255, 0.9);
  color: var(--front-text);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.front-btn--glass:hover {
  background: #ffffff;
  color: var(--front-primary);
}

.front-btn--lg {
  padding: 14px 28px;
  font-size: 1.02rem;
}

/* BADGES & CHIPS */
.front-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.front-badge--glow {
  background: var(--front-primary-light);
  color: var(--front-primary-dark);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

/* SECTIONS */
.front-hero {
  padding: 70px 0 60px;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--front-bg) 100%);
  border-bottom: 1px solid var(--front-border);
}

.front-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.front-section {
  padding: 80px 0;
  position: relative;
}

.front-section--alt {
  background: #ffffff;
  border-top: 1px solid var(--front-border);
  border-bottom: 1px solid var(--front-border);
}

/* CARDS FINTECH */
.front-card {
  background: var(--front-card-bg);
  border: 1px solid var(--front-border);
  border-radius: 16px;
  padding: 30px 26px;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: var(--front-card-shadow);
}

.front-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: var(--front-card-shadow-hover);
}

.front-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--front-primary-light);
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: grid;
  place-items: center;
  color: var(--front-primary);
  margin-bottom: 18px;
}

.front-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--front-text);
  margin: 0 0 10px;
}

.front-card__text {
  font-size: 0.92rem;
  color: var(--front-muted);
  line-height: 1.6;
  margin: 0;
}

/* SIMULATEUR DE CRÉDIT FRONT */
.calc-card {
  background: #ffffff;
  border: 1px solid var(--front-border);
  border-radius: 20px;
  padding: 36px 34px;
  box-shadow: var(--front-card-shadow-hover);
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--front-surface-alt);
  outline: none;
  accent-color: var(--front-primary);
}

/* BANDEAU CTA GLOBAL */
.front-cta-strip {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 70px 0;
  position: relative;
}

/* FOOTER */
.front-footer {
  background: #ffffff;
  border-top: 1px solid var(--front-border);
  padding: 60px 0 30px;
}

.front-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 45px;
}

.front-footer__title {
  color: var(--front-text);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 18px;
}

.front-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.front-footer__links li {
  margin-bottom: 11px;
}

.front-footer__links a {
  color: var(--front-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.front-footer__links a:hover {
  color: var(--front-primary);
}

.front-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--front-surface-alt);
  border: 1px solid var(--front-border);
  font-size: 0.82rem;
  color: var(--front-text-secondary);
}

.front-footer__bottom {
  border-top: 1px solid var(--front-border);
  padding-top: 25px;
}

/* BURGER BUTTON & MOBILE DRAWER */
.front-burger-btn {
  display: none;
  background: #ffffff;
  border: 1px solid var(--front-border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--front-text);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.front-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}
.front-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.front-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
  box-sizing: border-box;
}
.front-drawer.is-open {
  right: 0 !important;
}

.front-drawer__head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--front-border);
}
.front-drawer__close {
  background: var(--front-surface-alt);
  border: 1px solid var(--front-border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--front-text);
  cursor: pointer;
}

.front-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  flex: 1;
  overflow-y: auto;
}
.front-drawer__link {
  color: var(--front-text-secondary);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.front-drawer__link:hover, .front-drawer__link.is-active {
  color: var(--front-primary);
  background: var(--front-primary-light);
}

.front-drawer__foot {
  border-top: 1px solid var(--front-border);
  padding-top: 20px;
}

/* RESPONSIVE & MOBILE DESIGN */
@media (max-width: 992px) {
  .front-burger-btn {
    display: inline-flex !important;
  }
  .front-hide-mobile {
    display: none !important;
  }
  .front-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .front-hero-grid h1 {
    font-size: 2.3rem !important;
  }

  .front-hero-grid p {
    margin-left: auto;
    margin-right: auto;
  }

  .front-hero-grid .flex {
    justify-content: center;
  }

  .front-menu {
    display: none !important;
  }

  .front-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .front-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

@media (max-width: 640px) {
  .front-hero {
    padding: 40px 0;
  }

  .front-hero-grid h1 {
    font-size: 1.9rem !important;
  }

  .front-btn--lg {
    width: 100%;
  }

  .front-footer__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .calc-card {
    padding: 22px 18px;
  }

  .front-footer__bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .front-topbar .front-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
