/* =============================================
   VIGIE · style.css
   La sentinelle de votre trésorerie
   ============================================= */

/* --- Imports -------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Outfit:wght@300;400;500;600&display=swap');

/* --- Variables ------------------------------ */
:root {
  --navy:        #0A1628;
  --navy-mid:    #0F2040;
  --navy-soft:   #1A3A6B;
  --blue:        #1D9E75;
  --blue-light:  #26C48F;
  --blue-pale:   #D4F2E8;
  --gold:        #C9A84C;
  --gold-light:  #F0D080;
  --green:       #1A6B45;
  --green-light: #E6F5EE;
  --red:         #B83232;
  --red-light:   #FAEAEA;
  --amber:       #D97B20;
  --amber-light: #FEF3E2;
  --ink:         #111827;
  --ink-mid:     #374151;
  --ink-soft:    #6B7280;
  --stone:       #F5F4F0;
  --stone-mid:   #E8E6DF;
  --white:       #FFFFFF;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --shadow-sm:   0 2px 8px rgba(10,22,40,.08);
  --shadow-md:   0 6px 24px rgba(10,22,40,.12);
  --shadow-lg:   0 16px 48px rgba(10,22,40,.18);
  --max-w:       1140px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --nav-h:       68px;
}

/* --- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  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 { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stone-mid);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  display: none; /* remplacé par vigie-logo.svg */
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 14px;
  font-size: .875rem;
  font-weight: 400;
  color: var(--ink-mid);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--navy); background: var(--stone); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-login {
  padding: 8px 16px;
  font-size: .875rem;
  color: var(--ink-mid);
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: color .2s;
}
.nav-login:hover { color: var(--navy); }

.nav-cta {
  padding: 9px 20px;
  background: var(--navy);
  color: var(--white);
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--navy-soft); transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--stone-mid);
  background: var(--white);
}
.nav-mobile a {
  padding: 12px 0;
  font-size: .95rem;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--stone-mid);
}
.nav-mobile a:last-child { border-bottom: none; }
.mobile-cta {
  margin-top: 8px;
  padding: 12px 20px !important;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  border-bottom: none !important;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 72px) 24px 80px;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(29,158,117,.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(201,168,76,.1) 0%, transparent 60%),
    var(--navy);
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(29,158,117,.2);
  border: 1px solid rgba(29,158,117,.35);
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 500;
  color: #5DCBA8;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #5DCBA8;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: var(--gold-light); white-space: nowrap; }
.hero h1 strong { font-weight: 500; display: block; }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: var(--blue);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(29,158,117,.35);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,158,117,.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 400;
  border-radius: var(--radius-md);
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

.hero-trust { display: flex; align-items: center; gap: 14px; }
.trust-faces { display: flex; }
.trust-face {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 600;
  color: var(--white);
  margin-right: -8px;
}
.trust-text { font-size: .875rem; color: rgba(255,255,255,.55); margin-left: 18px; }
.trust-text strong { color: rgba(255,255,255,.85); }

/* Dashboard mockup */
.hero-right { position: relative; }

.dash-mockup {
  background: #0F1E38;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.dash-bar {
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}
.dash-dots { display: flex; gap: 5px; }
.dash-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}

.dash-content { padding: 18px; }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi {
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.kpi-l { font-size: .7rem; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.kpi-v { font-size: 1rem; font-weight: 600; color: var(--white); }
.kpi-v.green { color: #4ADE80; }
.kpi-v.red { color: #F87171; }

.mini-chart { margin-bottom: 14px; }
.mini-chart-label { font-size: .7rem; color: rgba(255,255,255,.35); margin-bottom: 6px; }

.alert-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(184,50,50,.15);
  border: 1px solid rgba(184,50,50,.3);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}
.alert-card span { font-size: .95rem; flex-shrink: 0; }
.alert-card strong { display: block; color: #F87171; margin-bottom: 2px; }

.float-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: .8rem;
  color: var(--ink);
}
.fb-icon { font-size: 1.2rem; }
.float-badge strong { display: block; font-weight: 600; font-size: .85rem; }
.float-badge span { color: var(--ink-soft); font-size: .75rem; }

/* Animations */
.animate-in {
  animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   PARTNERS BAR
   ============================================= */
.partners-bar {
  background: var(--stone);
  border-bottom: 1px solid var(--stone-mid);
  padding: 16px 24px;
}
.partners-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.p-label {
  font-size: .78rem;
  color: var(--ink-soft);
  white-space: nowrap;
  font-weight: 400;
}
.p-logos {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.p-logos span {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: .7;
  letter-spacing: .02em;
}

/* =============================================
   SECTIONS — BASE
   ============================================= */
.section { padding: 96px 24px; }
.section.bg-light { background: var(--stone); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
h2 em { font-style: italic; color: #1D9E75; }

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 52px;
}

/* =============================================
   PROBLÈME
   ============================================= */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.prob-card {
  padding: 32px 28px;
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-lg);
  background: var(--white);
  position: relative;
  transition: box-shadow .25s, transform .25s;
}
.prob-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.prob-n {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--stone-mid);
  line-height: 1;
  margin-bottom: 16px;
}
.prob-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.prob-card p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }

/* =============================================
   STATS BAND
   ============================================= */
.stats-band {
  background: var(--navy);
  padding: 56px 24px;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-n {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat p { font-size: .875rem; color: rgba(255,255,255,.5); }

/* =============================================
   CALCULATEUR
   ============================================= */
.calc-section {
  background: var(--navy);
  padding: 96px 24px;
}
.calc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.calc-inner h2 { color: var(--white); }
.calc-inner .section-lead { color: rgba(255,255,255,.45); }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-group {}
.field-label { font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.field-row { display: flex; align-items: center; gap: 10px; }
.calc-hint { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: 6px; line-height: 1.4; font-style: italic; }

/* ── Diagnostic interactif ── */
.diag-wrap { max-width: 780px; margin: 0 auto; position: relative; }
.diag-step { display: none !important; }
.diag-step.active { display: block !important; animation: diagIn .35s ease; }
@keyframes diagIn { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
.diag-step-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 10px; }
.diag-question { font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 20px; line-height: 1.4; }
.diag-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.diag-choice { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 18px; color: rgba(255,255,255,.85); font-size: .88rem; font-family: inherit; cursor: pointer; text-align: left; transition: all .2s; line-height: 1.4; }
.diag-choice:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.diag-choice.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.diag-alert-box { background: rgba(220,38,38,.08); border: 1.5px solid rgba(220,38,38,.25); border-radius: 16px; padding: 24px 26px; margin-bottom: 20px; }
.diag-alert-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(220,38,38,.15); border-radius: 99px; padding: 4px 12px; font-size: .75rem; font-weight: 600; color: #f87171; margin-bottom: 14px; }
.diag-alert-header { margin-bottom: 12px; }
.diag-alert-body { font-size: .92rem; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 14px; }
.diag-alert-impact { font-size: .82rem; color: #5DCBA8; font-weight: 500; background: rgba(93,203,168,.08); border-radius: 8px; padding: 8px 12px; }
.diag-num-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 4px; }
.diag-num { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px; text-align: center; }
.diag-num-val { font-size: 1.3rem; font-weight: 700; color: #F0C96C; margin-bottom: 4px; }
.diag-num-label { font-size: .72rem; color: rgba(255,255,255,.45); line-height: 1.4; }
.diag-progress { height: 3px; background: rgba(255,255,255,.1); border-radius: 99px; margin-top: 32px; overflow: hidden; }
.diag-progress-bar { height: 100%; background: var(--blue); border-radius: 99px; transition: width .5s ease; width: 0%; }
@media (max-width: 600px) { .diag-choices { grid-template-columns: 1fr; } .diag-num-grid { grid-template-columns: 1fr; } }
.field-ico { font-size: 1rem; flex-shrink: 0; }

.slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.15);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  cursor: pointer;
  transition: transform .15s;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  cursor: pointer;
}
.slider-val {
  min-width: 80px;
  text-align: right;
  font-size: .85rem;
  font-weight: 500;
  color: var(--white);
}

.calc-result {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.result-label { font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.result-big {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.result-ratio { font-size: .85rem; color: rgba(255,255,255,.45); margin-bottom: 24px; }

.result-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.result-row:last-child { border-bottom: none; }
.result-row .gold { color: var(--gold-light); font-weight: 500; }
.result-row.dimmed { opacity: .5; }

.calc-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--blue);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(29,158,117,.35);
  letter-spacing: .01em;
}
.calc-cta:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(29,158,117,.5); }

/* =============================================
   COMMENT ÇA MARCHE
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step-card {
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-lg);
  position: relative;
  transition: box-shadow .25s, transform .25s;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-ico { font-size: 1.6rem; margin-bottom: 12px; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--stone-mid);
  line-height: 1;
  margin-bottom: 12px;
}
.step-card h3 { font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: .85rem; color: var(--ink-soft); line-height: 1.6; }

/* =============================================
   FONCTIONNALITÉS
   ============================================= */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.feat-list { display: flex; flex-direction: column; gap: 28px; }
.feat-item { display: flex; gap: 16px; align-items: flex-start; }
.feat-dot {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feat-dot.blue { background: var(--blue-pale); }
.feat-dot.gold { background: #FEF5E0; }
.feat-dot.green { background: var(--green-light); }
.feat-item h3 { font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.feat-item p { font-size: .875rem; color: var(--ink-soft); line-height: 1.65; }

/* Feature visual panel */
.feat-visual {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.fv-header {
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
}
.fv-body { padding: 18px; }

.scen { margin-bottom: 14px; }
.scen-label { font-size: .72rem; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.scen-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.scen-fill { height: 100%; border-radius: 99px; }
.scen-val { font-size: .8rem; font-weight: 600; }

.pred-rows { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.pred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.pred-amt { color: var(--white); font-weight: 500; }
.badge {
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.badge.ok { background: rgba(26,107,69,.3); color: #4ADE80; }
.badge.warn { background: rgba(201,168,76,.2); color: var(--gold-light); }
.badge.danger { background: rgba(184,50,50,.25); color: #F87171; }

/* =============================================
   TÉMOIGNAGES
   ============================================= */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.testi-card {
  padding: 28px;
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-lg);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .25s, transform .25s;
}
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
blockquote {
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); }
.testi-author span { font-size: .78rem; color: var(--ink-soft); }

/* =============================================
   SÉCURITÉ
   ============================================= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.trust-card {
  padding: 28px 22px;
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
  transition: box-shadow .25s;
}
.trust-card:hover { box-shadow: var(--shadow-sm); }
.trust-ico { font-size: 1.8rem; margin-bottom: 14px; }
.trust-card h3 { font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.trust-card p { font-size: .83rem; color: var(--ink-soft); line-height: 1.6; }

/* =============================================
   TARIFS
   ============================================= */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  align-items: start;
}
.price-card {
  padding: 32px 28px;
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-lg);
  background: var(--white);
  position: relative;
  transition: box-shadow .25s, transform .25s;
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 4px var(--blue-pale);
}

.feat-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 99px;
  margin-bottom: 16px;
}

.plan-name { font-size: .85rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.plan-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.plan-desc { font-size: .82rem; color: var(--ink-soft); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--stone-mid); }

.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--ink-mid);
}
.plan-features li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' stroke='%231A6B45' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background .2s, color .2s;
}
.plan-btn:hover { background: var(--navy); color: var(--white); }
.price-card.featured .plan-btn {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(29,158,117,.35);
}
.price-card.featured .plan-btn:hover { background: var(--blue-light); border-color: var(--blue-light); box-shadow: 0 8px 28px rgba(29,158,117,.45); }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  position: relative;
  padding: 96px 24px;
  background: var(--navy);
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(29,158,117,.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,.5); font-size: 1rem; line-height: 1.7; margin-bottom: 36px; }

.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

.btn-white {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--blue);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(29,158,117,.35);
}
.btn-white:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(29,158,117,.45); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  border-radius: var(--radius-md);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); }

.cta-guarantee { font-size: .8rem; color: rgba(255,255,255,.35); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 56px 24px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.35);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links { display: contents; }
.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links strong {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.35);
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.7); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}

/* =============================================
   CHAT BUBBLE
   ============================================= */
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(29,158,117,.4);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(29,158,117,.5); }

.chat-notif {
  position: absolute;
  top: 2px; right: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--white);
}
.chat-notif.hidden { display: none; }

.chat-window {
  display: none;
  flex-direction: column;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--stone-mid);
  overflow: hidden;
}
.chat-window.open { display: flex; }

.chat-head {
  padding: 14px 16px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-head-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.chat-name { font-size: .875rem; font-weight: 500; color: var(--white); }
.chat-online { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: rgba(255,255,255,.5); }
.online-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
}
.chat-close {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.chat-close:hover { background: rgba(255,255,255,.2); }

.chat-messages {
  flex: 1;
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: var(--radius-md);
  font-size: .85rem;
  line-height: 1.55;
}
.chat-msg.bot {
  background: var(--stone);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-suggestions {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--stone-mid);
}
.sug {
  padding: 5px 10px;
  background: var(--stone);
  color: var(--ink-mid);
  font-size: .75rem;
  border-radius: 99px;
  transition: background .2s;
}
.sug:hover { background: var(--stone-mid); }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--stone-mid);
}
.chat-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--stone-mid);
  border-radius: var(--radius-md);
  font-size: .875rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.chat-input:focus { border-color: var(--blue); }
.chat-send {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.chat-send:hover { background: var(--blue-light); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { max-width: 500px; margin: 0 auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 20px; }
  .problems-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .calc-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-right { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.open { display: flex; }
  .hero { padding: calc(var(--nav-h) + 48px) 20px 60px; }
  .hero h1 { font-size: 2.2rem; }
  .float-badge { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
  .cta-btns { flex-direction: column; }
  .chat-window { width: 290px; }
}
