:root {
  --bg: #f8f6f1;
  --bg-card: #ffffff;
  --accent: #2563eb;
  --accent-warm: #d97706;
  --accent-warm-light: #fef3c7;
  --accent-light: #dbeafe;
  --text: #1a1a2e;
  --text-muted: #5a6478;
  --border: rgba(26, 26, 46, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 26, 46, 0.12);

  /* Mode-specific accent colors */
  --mode-primary: var(--accent-warm);
  --mode-primary-hover: #b45309;
  --mode-primary-light: var(--accent-warm-light);
  --mode-accent: var(--accent-warm);
}

/* Active mode: Professionnels overrides */
[data-mode="professionnels"] {
  --mode-primary: var(--accent);
  --mode-primary-hover: #1d4ed8;
  --mode-primary-light: var(--accent-light);
  --mode-accent: var(--accent);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 24px;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -0.02em; }
.nav-links { display: none; gap: 6px; align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(26, 26, 46, 0.05); }
.nav-link--active { color: var(--mode-primary) !important; font-weight: 600; }
.nav-dashboard-btn {
  display: inline-block;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-dashboard-btn:hover { background: #1d4ed8; }

/* ── HERO ── */
.hero {
  padding: 130px 24px 80px;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: radial-gradient(ellipse at 50% -10%, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 18px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.tab-btn--seniors {
  background: var(--accent-warm);
  color: #fff;
  border-color: var(--accent-warm);
}
.tab-btn--seniors:hover { background: #b45309; border-color: #b45309; }
.tab-btn--enterprises {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.tab-btn--enterprises:hover { border-color: var(--accent); color: var(--accent); }
.tab-arrow { font-size: 1.1em; }

/* ── HERO MODE TOGGLE ── */
.hero-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  background: var(--bg-card);
  color: var(--text-muted);
  border-color: var(--border);
}
.toggle-btn:hover {
  border-color: var(--mode-accent);
  color: var(--text);
}
.toggle-btn.active {
  background: var(--mode-primary);
  color: #fff;
  border-color: var(--mode-primary);
}
.toggle-btn-icon { font-size: 1.1em; }

.hero-toggle-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
}

/* ── SECTION VISIBILITY ── */
[data-mode="professionnels"] .section--particuliers { display: none; }
[data-mode="particuliers"] .section--professionnels { display: none; }

/* Default: show both on load (no JS: both visible) */
/* Also controls why section per mode */
[data-mode="particuliers"] .pourquoi--enterprises { display: none; }
[data-mode="professionnels"] .pourquoi--particuliers { display: none; }

/* ── OFFRE SECTIONS ── */
.offre,
.section--particuliers,
.section--professionnels {
  padding: 80px 24px;
}
.offre + .offre,
.section--particuliers + .section--particuliers { padding-top: 0; }
.offre--seniors,
.section--particuliers { background: #fff; }
.offre--enterprises,
.section--professionnels { background: var(--bg); }

.offre-inner { max-width: 1100px; margin: 0 auto; }

.offre-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.offre-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mode-primary);
}
.offre--enterprises .offre-tag-dot,
.section--professionnels .offre-tag-dot { background: var(--accent); }

.offre-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text);
}
.offre-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* Offre card grid */
.offre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .offre-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.offre-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.offre-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.offre-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.offre--seniors .offre-icon,
.section--particuliers .offre-icon { background: var(--accent-warm-light); }
.offre--enterprises .offre-icon,
.section--professionnels .offre-icon { background: var(--accent-light); }
.offre-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.offre-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Pricing — new grid layout */
.offre-pricing {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.offre-pricing--particuliers { border-color: var(--accent-warm-light); }
.offre-pricing--professionnels { border-color: var(--accent-light); }

.pricing-grid {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.pricing-tier {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 4px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pricing-tier-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  min-height: 60px;
}
.pricing-tier-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing-tier-amount {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.pricing-tier-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.pricing-credit-row {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #166534;
}
.roi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e40af;
}

/* Legacy pricing */
.pricing-main { flex: 1; min-width: 200px; }
.pricing-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.pricing-amount { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.pricing-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.pricing-divider { width: 1px; height: 60px; background: var(--border); }
.pricing-credits { flex: 1; min-width: 200px; }

/* CTA form */
.offre-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offre-cta-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.cta-input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.cta-input::placeholder { color: #9ca3af; }
.cta-input:focus { border-color: var(--accent); }
.cta-submit {
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.cta-submit--seniors,
.cta-submit--particuliers { background: var(--mode-primary); color: #fff; }
.cta-submit--seniors:hover,
.cta-submit--particuliers:hover { background: var(--mode-primary-hover); }
.cta-submit--enterprises,
.cta-submit--professionnels { background: var(--accent); color: #fff; }
.cta-submit--enterprises:hover,
.cta-submit--professionnels:hover { background: #1d4ed8; }
.cta-note { font-size: 0.78rem; color: var(--text-muted); }

/* ── POURQUOI ── */
.pourquoi {
  padding: 80px 24px;
  background: #fff;
}
.pourquoi-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.pourquoi .section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pourquoi .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 50px; color: var(--text); }
.pourquoi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
}
@media (min-width: 768px) { .pourquoi-grid { grid-template-columns: repeat(3, 1fr); } }
.pourquoi-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.pourquoi-card .card-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.pourquoi-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.pourquoi-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ── FOOTER ── */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand { margin-bottom: 28px; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.footer-tagline { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col p, .footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── SAP SECTION ── */
.sap-section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}
.sap-header { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.sap-title {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}
.sap-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* SAP card grid */
.sap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .sap-grid { grid-template-columns: 1fr 1fr 1fr; } }
.offre-card--sap { border-color: var(--accent-warm-light); }
.offre-card--sap:hover { border-color: var(--accent-warm); }

/* SAP pricing */
.sap-pricing {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.sap-pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 40px;
  background: var(--accent-warm-light);
  border: 2px solid var(--accent-warm);
  border-radius: var(--radius);
  text-align: center;
}
.sap-pricing-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sap-pricing-amount {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.sap-pricing-net { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sap-pricing-net-amount {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* SAP comparison table */
.sap-pricing-compare { width: 100%; max-width: 520px; }
.sap-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.sap-compare-table th {
  background: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
}
.sap-compare-table td { padding: 12px 16px; border-top: 1px solid var(--border); }
.sap-compare-row--highlight td { background: rgba(217, 119, 6, 0.04); font-weight: 600; }
.sap-compare-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  /* Stack pricing tiers vertically on mobile */
  .pricing-grid { flex-direction: column; gap: 16px; }
  .pricing-tier-divider {
    width: 100%;
    height: 1px;
    min-height: unset;
  }
  .pricing-tier { padding: 8px 0; }
  .pricing-tier-amount { font-size: 1.4rem; }

  /* Stack toggle buttons */
  .hero-toggle { flex-direction: column; align-items: center; gap: 8px; }
  .toggle-btn { width: 100%; max-width: 300px; justify-content: center; }

  /* 2-col grid for service cards on small screens */
  .offre-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .offre-card { padding: 20px; }
}
@media (min-width: 768px) {
  .offre-sub { margin-bottom: 56px; }
}

/* ── SCROLL OFFSET FOR ANCHORS ── */
section[id], footer[id] { scroll-margin-top: 80px; }

/* ── CTA SUCCESS STATE ── */
.cta-success {
  display: none;
  padding: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  text-align: center;
}
.cta-success.show { display: block; }
.cta-success p { color: #166534; font-weight: 600; font-size: 0.95rem; }