/* ============================================================
   Ness Home — Landing Page Styles
   ============================================================ */

:root {
  --primary:     #0d3b66;
  --primary-mid: #1a5276;
  --accent:      #FF5858;
  --accent-end:  #F09819;
  --accent-dark: #e04040;
  --accent-grad: linear-gradient(135deg, #FF5858 0%, #F09819 100%);
  --green-ci:    #27ae60;
  --light-bg:    #f5f7fb;
  --dark:        #1a1a2e;
  --text-muted:  #6b7a8d;
  --white:       #ffffff;
  --radius:      12px;
  --shadow:      0 8px 32px rgba(13, 59, 102, 0.10);
  --shadow-lg:   0 16px 48px rgba(13, 59, 102, 0.16);
}

/* ── Base ──────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; }

section { padding: 96px 0; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar-immo {
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .25s;
}
.navbar-immo.scrolled {
  box-shadow: 0 2px 20px rgba(13, 59, 102, 0.10);
}
.navbar-immo > .container {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
}
.navbar-brand-logo i {
  font-size: 1.25rem;
  color: var(--accent);
}
.navbar-brand-logo span { color: var(--accent); }

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link-immo {
  display: inline-flex;
  align-items: center;
  font-size: .88rem;
  font-weight: 500;
  color: #555;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link-immo:hover {
  color: var(--primary);
  background: #f0f4fa;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-connexion {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 9px;
  padding: 9px 22px;
  line-height: 1;
  transition: background .2s, color .2s, box-shadow .2s;
  text-decoration: none;
}
.btn-connexion i { font-size: .85rem; line-height: 1; }
.btn-connexion:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 59, 102, .18);
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 700;
  background: var(--accent-grad);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 22px;
  line-height: 1;
  transition: opacity .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-demo i { font-size: .85rem; line-height: 1; }
.btn-demo:hover {
  opacity: .88;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 88, 88, .40);
}

/* ── Language switcher ─────────────────────────────────── */
.lang-switcher form {
  display: inline-flex;
  align-items: center;
  background: #f0f4fa;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  letter-spacing: .5px;
  transition: all .2s;
  line-height: 1;
}
.lang-btn:hover { color: var(--primary); background: #fff; }
.lang-btn-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(13,59,102,.12);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, #1e6091 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: .3px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent-grad);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.btn-hero-primary {
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  transition: all .25s;
  box-shadow: 0 6px 20px rgba(255, 88, 88, .35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-hero-primary:hover {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 88, 88, .45);
  color: #fff;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.4);
  transition: all .25s;
}
.btn-hero-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* Hero mockup card */
.hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
}
.hero-card-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.hero-stat-big {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hero-stat-label { font-size: .85rem; color: rgba(255,255,255,.75); }

.hero-module-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: #fff;
  margin: 4px;
}
.hero-module-pill i {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: .85rem;
}

/* ── Stats bar ─────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  padding: 36px 0;
  border-bottom: 1px solid #eaeef4;
}
.stat-item { text-align: center; padding: 8px 20px; }
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}
.stat-number span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-desc { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }

.stat-divider {
  width: 1px;
  height: 40px;
  background: #e0e6ef;
  align-self: center;
}

/* ── Section titles ────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 88, 88, .2);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 12px auto 0;
  line-height: 1.65;
}

/* ── Feature Cards ─────────────────────────────────────── */
.features-section { background: var(--light-bg); }

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  height: 100%;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 59, 102, .1);
}

.feature-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Why CI ────────────────────────────────────────────── */
.why-ci-section { background: var(--white); }

.ci-item {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.ci-icon {
  width: 50px; height: 50px;
  min-width: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(13, 59, 102, .08);
  color: var(--primary);
}
.ci-item h6 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.ci-item p  { font-size: .87rem; color: var(--text-muted); margin: 0; }

.ci-visual {
  background: linear-gradient(135deg, var(--primary) 0%, #1e6091 100%);
  border-radius: 20px;
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ci-visual::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  margin: 4px;
}

/* ── Modules grid ──────────────────────────────────────── */
.modules-section { background: var(--light-bg); }

.module-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #eaeef4;
  transition: all .25s;
  cursor: default;
}
.module-card:hover {
  border-color: rgba(13, 59, 102, .25);
  box-shadow: 0 4px 16px rgba(13, 59, 102, .1);
  transform: translateY(-2px);
}
.module-icon {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.module-name { font-size: .9rem; font-weight: 700; color: var(--primary); margin-bottom: 1px; }
.module-desc { font-size: .78rem; color: var(--text-muted); }

/* ── CTA Banner ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-section p  { color: rgba(255,255,255,.7); font-size: 1.05rem; }

/* ── Footer ────────────────────────────────────────────── */
.footer-main {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-brand { font-size: 1.4rem; font-weight: 900; color: #fff; }
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: .87rem; color: rgba(255,255,255,.5); margin-top: 6px; }
.footer-heading { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.footer-link { display: block; font-size: .88rem; color: rgba(255,255,255,.55); margin-bottom: 9px; transition: color .2s; }
.footer-link:hover { color: var(--accent); }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 30px 0 20px; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.4); }

/* ── Mobile menu ───────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none; background: none;
  cursor: pointer; padding: 4px;
  border-radius: 8px;
  transition: background .2s;
}
.hamburger:hover { background: #f0f4fa; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  box-shadow: 0 8px 24px rgba(13,59,102,.12);
  z-index: 999;
  padding: 16px 20px 24px;
  animation: slideDown .2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu.open { display: block; }
.mobile-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: 10px;
  font-size: .95rem; font-weight: 600; color: var(--primary);
  text-decoration: none; transition: background .15s;
  border-bottom: 1px solid #f5f7fb;
}
.mobile-menu-link:last-of-type { border-bottom: none; }
.mobile-menu-link:hover { background: #f0f4fa; }
.mobile-menu-link i { width: 20px; text-align: center; color: var(--accent); font-size: .9rem; }
.mobile-menu-actions {
  display: flex; gap: 10px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid #f0f4fa;
}
.mobile-menu-actions a { flex: 1; text-align: center; justify-content: center; }

/* Sticky CTA mobile */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #edf0f5;
  box-shadow: 0 -4px 20px rgba(13,59,102,.1);
  padding: 12px 16px;
  z-index: 998;
  gap: 10px;
}
.mobile-cta-bar a { flex: 1; text-align: center; justify-content: center; font-size: .88rem; padding: 12px; }

/* ── Responsive — Large tablets ────────────────────────── */
@media (max-width: 992px) {
  .hero-title { font-size: clamp(1.9rem, 5vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; }
  .ci-visual { margin-top: 0; }
}

/* ── Responsive — Tablets ──────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .stat-divider { display: none; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links-wrap { display: none !important; }
  .navbar-actions .btn-connexion { display: none !important; }
  .navbar-actions .btn-demo { font-size: .8rem; padding: 8px 14px; }
  .navbar-actions .btn-demo i { display: none; }

  /* Hero */
  .hero-section { min-height: auto; padding: 52px 0 44px; }
  .hero-badge { font-size: .77rem; padding: 5px 12px; margin-bottom: 18px; }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.4rem); letter-spacing: -.5px; margin-bottom: 16px; }
  .hero-subtitle { font-size: .95rem; margin-bottom: 28px; }
  .btn-hero-primary, .btn-hero-outline { font-size: .9rem; padding: 12px 22px; }
  .hero-cards-col { margin-top: 40px; }
  .hero-card { padding: 20px; }
  .hero-stat-big { font-size: 1.7rem; }
  .hero-stat-label { font-size: .78rem; }
  .hero-module-pill { font-size: .78rem; padding: 6px 10px; margin: 3px; }

  /* Stats bar */
  .stats-bar { padding: 28px 0; }
  .stat-item { padding: 10px 12px; min-width: 42%; }
  .stat-number { font-size: 1.65rem; }
  .stat-desc { font-size: .8rem; }

  /* Features */
  .feature-card { padding: 24px 20px; }
  .feature-card:hover { transform: none; }

  /* Why CI */
  .ci-item { gap: 14px; margin-bottom: 24px; }
  .ci-icon { width: 42px; height: 42px; min-width: 42px; font-size: 1.1rem; }
  .ci-visual { padding: 24px 20px; }
  .payment-chip { font-size: .78rem; padding: 6px 12px; }

  /* Modules */
  .module-card { padding: 16px 14px; gap: 12px; }
  .module-name { font-size: .85rem; }
  .module-desc { font-size: .74rem; }

  /* CTA */
  .cta-section { padding: 60px 0 80px; }
  .cta-section h2 { font-size: 1.6rem; }
  .cta-section p { font-size: .95rem; }
  .mobile-cta-bar { display: flex; }

  /* Footer */
  .footer-main { padding: 44px 0 100px; }
  .footer-brand { font-size: 1.2rem; }
}

/* ── Responsive — Small phones ─────────────────────────── */
@media (max-width: 480px) {
  section { padding: 50px 0; }

  /* Navbar */
  .navbar-immo > .container { height: 60px; }
  .navbar-brand-logo { font-size: 1.25rem; }
  .navbar-actions .btn-demo { padding: 7px 12px; }
  .mobile-menu { top: 60px; }

  /* Hero */
  .hero-section { padding: 44px 0 36px; }
  .hero-title { font-size: clamp(1.6rem, 8vw, 2rem); }
  .hero-subtitle { font-size: .9rem; }
  .d-flex.flex-wrap.gap-3 { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }
  .hero-card .row.g-3 { gap: 0 !important; }
  .hero-stat-big { font-size: 1.4rem; }

  /* Stats — 2 colonnes */
  .stats-bar .d-flex { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item { border-bottom: 1px solid #eaeef4; }
  .stat-item:nth-child(odd) { border-right: 1px solid #eaeef4; }

  /* Sections */
  .section-title { font-size: 1.45rem; }
  .section-subtitle { font-size: .9rem; }

  /* Why CI visual */
  .ci-visual { padding: 20px 16px; border-radius: 14px; }
  .payment-chip { font-size: .73rem; padding: 5px 10px; margin: 2px; }

  /* Modules — 1 colonne sur très petit écran */
  .modules-section .col-sm-6 { width: 100% !important; }

  /* CTA */
  .cta-section .d-flex { flex-direction: column; }
  .cta-section .btn-hero-primary,
  .cta-section .btn-hero-outline { width: 100%; justify-content: center; }

  /* Footer */
  .footer-main { padding-bottom: 110px; }
}

/* ── Scroll behavior ───────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
