/* ============================================================
   RentaSimu — Global Stylesheet
   Design: Clean, minimal, inspired by AirDNA
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #0B1D3A;   /* Deep navy */
  --primary-mid:    #1E3A5F;   /* Mid navy */
  --accent:         #4F46E5;   /* Indigo */
  --accent-hover:   #4338CA;
  --accent-light:   #EEF2FF;
  --green:          #10B981;   /* Emerald — positive values */
  --green-light:    #ECFDF5;
  --orange:         #F59E0B;   /* Amber — warning */
  --bg:             #F9FAFB;   /* Off-white bg */
  --bg-section:     #F3F4F6;
  --white:          #FFFFFF;
  --text:           #111827;
  --text-mid:       #374151;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --border:         #E5E7EB;
  --border-mid:     #D1D5DB;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 10px 40px rgba(0,0,0,.12);
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;
  --radius-full:    9999px;
  --transition:     .2s ease;
  --nav-height:     68px;
  --max-width:      1200px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--text-mid); line-height: 1.75; }

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

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 56px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: .9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .875rem; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: transparent;
  padding-left: 12px;
  padding-right: 12px;
}
.btn-ghost:hover { color: var(--accent); background: var(--accent-light); }

/* ── Badge / Tag ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge-accent  { background: var(--accent-light); color: var(--accent); }
.badge-green   { background: var(--green-light); color: var(--green); }
.badge-primary { background: rgba(11,29,58,.08); color: var(--primary); }

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.card-icon.accent { background: var(--accent-light); }
.card-icon.green  { background: var(--green-light); }
.card-icon.orange { background: #FEF3C7; }
.card-icon.blue   { background: #EFF6FF; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

/* Transparent : fond visible dès le premier pixel */
.nav.transparent {
  background: linear-gradient(
    to bottom,
    rgba(6, 16, 38, 0.82) 0%,
    rgba(11, 29, 58, 0.0) 100%
  );
}

.nav.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav.solid {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  flex-shrink: 0;
  color: var(--text);
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .9rem;
  font-weight: 900;
  flex-shrink: 0;
}
/* Transparent state — logo blanc */
.nav.transparent .nav-logo { color: white; }
/* Scrolled / solid — logo sombre */
.nav.scrolled .nav-logo,
.nav.solid .nav-logo { color: var(--text); }

/* ── Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
  transition: all var(--transition);
  color: var(--text-mid);
}

/* Transparent : tous les liens en blanc */
.nav.transparent .nav-links a {
  color: rgba(255,255,255,.92);
  font-weight: 600;
}
/* Hover — état normal (scrolled/solid) */
.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-light);
}
/* Hover — état transparent */
.nav.transparent .nav-links a:hover {
  background: rgba(255,255,255,.14);
  color: white;
}
/* Active — état normal */
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}
/* Active — état transparent : fond blanc semi-transparent, pas de bleu */
.nav.transparent .nav-links a.active {
  color: white;
  background: rgba(255,255,255,.18);
}

/* ── Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* btn-ghost en transparent : texte blanc */
.nav.transparent .nav-actions .btn-ghost {
  color: rgba(255,255,255,.85);
}
.nav.transparent .nav-actions .btn-ghost:hover {
  color: white;
  background: rgba(255,255,255,.12);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav.transparent .nav-toggle span { background: white; }

/* ── Address Autocomplete ───────────────────────────────────── */
.autocomplete-wrapper {
  position: relative;
  display: block;
  width: 100%;
}
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  max-height: 252px;
  overflow-y: auto;
  display: none;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: 10px 16px;
  font-size: .9375rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.autocomplete-item .ac-label { font-weight: 500; }
.autocomplete-item .ac-city {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-left: 6px;
}
.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: var(--accent-light);
  color: var(--accent);
}
.autocomplete-item:hover .ac-city,
.autocomplete-item.highlighted .ac-city { color: var(--accent); opacity: .7; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: .9375rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  color: white;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .9375rem;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: white; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1E3A5F 60%, #2D4F8A 100%);
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}
.hero::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.03'%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-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text { color: white; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(1.3); }
}
.hero-text h1 { color: white; margin-bottom: 20px; }
.hero-text h1 span {
  background: linear-gradient(90deg, #A5B4FC, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  color: rgba(255,255,255,.75);
  font-size: 1.125rem;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-cta .btn { white-space: nowrap; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}
.hero-trust-item svg { color: var(--green); }

/* Hero visual card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  color: white;
}
.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.hero-card-title { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.9); }
.hero-card-badge {
  background: var(--green);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-stat {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.hero-stat-value { font-size: 1.375rem; font-weight: 700; color: white; }
.hero-stat-value.green { color: #6EE7B7; }
.hero-chart-bar {
  height: 6px;
  background: rgba(255,255,255,.12);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1, #818CF8);
  border-radius: 3px;
  transition: width 1.2s ease;
}
.hero-chart-label {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ── Stats strip ────────────────────────────────────────────── */
.stats-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: .9375rem; color: var(--text-muted); font-weight: 500; }
.stat-divider {
  width: 1px;
  background: var(--border);
}

/* ── Feature cards ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .25s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(79,70,229,.1);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.feature-card p  { font-size: .9375rem; color: var(--text-muted); }

/* ── Steps (how it works) ───────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
  opacity: .2;
}
.step-item { text-align: center; }
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(79,70,229,.35);
}
.step-item h3 { font-size: 1.125rem; margin-bottom: 10px; }
.step-item p  { font-size: .9375rem; color: var(--text-muted); }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial-stars {
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: .9375rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: .9rem;
  flex-shrink: 0;
}
.author-name  { font-size: .9375rem; font-weight: 600; color: var(--text); }
.author-role  { font-size: .8125rem; color: var(--text-muted); }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,.75); font-size: 1.125rem; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 80px;
  text-align: center;
}
.pricing-hero h1 { color: white; margin-bottom: 16px; }
.pricing-hero p   { color: rgba(255,255,255,.75); font-size: 1.125rem; max-width: 520px; margin: 0 auto 32px; }

.pricing-toggle {
  display: inline-flex;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  margin-bottom: 0;
}
.toggle-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  background: transparent;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}
.toggle-btn.active {
  background: white;
  color: var(--accent);
}
.save-badge {
  background: var(--green);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all .25s ease;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79,70,229,.08), var(--shadow-lg);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Plus populaire';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.plan-name { font-size: .875rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.plan-price { margin-bottom: 8px; line-height: 1; }
.plan-price .amount { font-size: 3rem; font-weight: 800; color: var(--text); letter-spacing: -.04em; }
.plan-price .currency { font-size: 1.5rem; font-weight: 700; color: var(--text); vertical-align: top; margin-top: 8px; display: inline-block; }
.plan-price .period { font-size: .9375rem; color: var(--text-muted); }
.plan-desc { font-size: .9375rem; color: var(--text-muted); margin-bottom: 28px; margin-top: 8px; }
.plan-features { margin-bottom: 32px; }
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: .9375rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--bg);
}
.plan-feature:last-child { border-bottom: none; }
.plan-feature .check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.plan-feature .dash  { color: var(--text-light); flex-shrink: 0; margin-top: 2px; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform .25s ease;
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding-bottom: 20px;
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }
details[open] .faq-answer { display: block; }

/* ── Simulator page ─────────────────────────────────────────── */
.simulator-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-height));
}
.simulator-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 32px 24px;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.simulator-sidebar h3 { font-size: 1rem; margin-bottom: 20px; }
.sim-section-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 24px 0 12px;
}
.sim-section-title:first-child { margin-top: 0; }

.form-group { margin-bottom: 16px; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; display: block; }
.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.input-suffix {
  position: relative;
}
.input-suffix .form-input { padding-right: 40px; }
.input-suffix span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .875rem;
  color: var(--text-muted);
  pointer-events: none;
}

.simulator-main {
  padding: 40px;
  background: var(--white);
}
.sim-header {
  margin-bottom: 32px;
}
.sim-header h2 { margin-bottom: 8px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.result-card.highlight {
  background: var(--accent);
  border-color: var(--accent);
}
.result-label { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }
.result-card.highlight .result-label { color: rgba(255,255,255,.7); }
.result-value { font-size: 1.875rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.result-card.highlight .result-value { color: white; }
.result-value.positive { color: var(--green); }
.result-sub { font-size: .8125rem; color: var(--text-muted); margin-top: 4px; }
.result-card.highlight .result-sub { color: rgba(255,255,255,.65); }

/* Range slider */
.range-input {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--border-mid);
  border-radius: 2px;
  margin-top: 8px;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(79,70,229,.2);
}

/* ── Comparison table ───────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .9375rem;
}
.compare-table th {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: var(--bg);
}
.compare-table td:first-child { color: var(--text-mid); font-weight: 500; }
.compare-table .check { color: var(--green); font-size: 1.1rem; }
.compare-table .dash  { color: var(--text-light); }
.compare-table .featured-col { background: rgba(79,70,229,.04); }
.compare-table thead .featured-col {
  background: var(--accent);
  color: white;
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--bg);
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid .pricing-card:first-child { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .simulator-layout { grid-template-columns: 1fr; }
  .simulator-sidebar { position: static; height: auto; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .features-grid, .testimonials-grid, .grid-3 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-divider { display: none; }
  .cta-banner { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .pricing-card:first-child { grid-column: auto; max-width: 100%; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 64px; }
  .steps-grid::before { display: none; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .card { padding: 24px; }
  .section-subtitle { font-size: 1rem; margin-bottom: 40px; }
  /* Tableaux : scroll horizontal */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  .hero { padding-top: calc(var(--nav-height) + 48px); padding-bottom: 56px; }
  .hero-text p { font-size: 1rem; }
  .hero-trust { margin-top: 24px; gap: 8px 16px; }
  .hero-trust-item { font-size: .8rem; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.8rem; }
  .card { padding: 20px; }
  .pricing-card { padding: 28px 20px; }
  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .mobile-nav { padding: 16px 16px 20px; }
  .feature-card { padding: 24px 20px; }
  .testimonial-card { padding: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .results-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-sm { padding: 40px 0; }
}

/* ── Mobile nav drawer ──────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  transform: translateY(-110%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* ── Animations ─────────────────────────────────────────────── */
/* Progressive enhancement : les éléments sont VISIBLES par défaut.
   Quand JS tourne, <body class="js-anim"> active les transitions. */
.js-anim .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible,
.js-anim .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.js-anim .fade-up:nth-child(2) { transition-delay: .1s; }
.js-anim .fade-up:nth-child(3) { transition-delay: .2s; }
.js-anim .fade-up:nth-child(4) { transition-delay: .3s; }
.js-anim .fade-up:nth-child(5) { transition-delay: .4s; }
.js-anim .fade-up:nth-child(6) { transition-delay: .5s; }

/* ── Simulator free block (tarifs.html) ────────────────────── */
.sim-free-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-top: 0;
  box-shadow: var(--shadow);
}
.sim-free-left { min-width: 0; }
.sim-free-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sim-free-price-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  text-align: center;
  min-width: 200px;
}
.sim-free-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sim-free-features .sp-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  color: var(--text-mid);
}
.sim-free-features .check {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .sim-free-block {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .sim-free-right { justify-content: flex-start; }
  .sim-free-price-box { min-width: 0; width: 100%; max-width: 280px; }
}

/* ── Misc ───────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.bg-light { background: var(--bg); }
.bg-white { background: var(--white); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }

/* Highlight span in headings */
.highlight-text {
  background: linear-gradient(135deg, var(--accent), #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}


/* ── Nav user pill (connecté) ───────────────────────────────── */
.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  background: #ffffff;
  border: none;
  border-radius: 9999px;
  text-decoration: none;
  color: #0B1D3A;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.nav-user-pill:hover {
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4F46E5;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-user-name {
  color: #0B1D3A;
  white-space: nowrap;
}
