@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Syne:wght@400;500;600;700;800&display=swap');

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

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --night:         #0d1a14;
  --night-2:       #111f18;
  --sage:          #2d7a5f;
  --sage-bright:   #4aab87;
  --sage-pale:     #d4ede5;
  --sage-faint:    #f2faf7;
  --cream:         #f8f7f4;
  --cream-2:       #f0ede6;
  --white:         #ffffff;
  --text-1:        #111814;
  --text-2:        #3d5248;
  --text-3:        #7a9a8a;
  --border:        #dde6e1;
  --border-warm:   #ccd8d1;
  --green-wa:      #25d366;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Syne', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-1);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  padding: .7rem 1.375rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn-primary:hover { background: #236150; border-color: #236150; }

.btn-outline {
  background: transparent;
  color: rgba(74, 171, 135, .9);
  border-color: rgba(74, 171, 135, .35);
}
.btn-outline:hover { background: rgba(74, 171, 135, .07); border-color: var(--sage-bright); color: var(--sage-bright); }

.btn-ghost-light {
  background: transparent;
  color: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.15);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.3); color: var(--white); }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 26, 20, .97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: box-shadow .2s;
}

.nav.scrolled {
  box-shadow: 0 2px 32px rgba(0,0,0,.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.logo {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .32em;
  color: var(--white);
  text-transform: uppercase;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(160deg, #0d1a14 0%, #111f18 60%, #0d1a14 100%);
  min-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem 0 0;
  overflow: hidden;
}

/* Ligne ECG animée — bas du hero */
.pulse-wrap {
  position: relative;
  width: 100%;
  height: 72px;
  margin-top: auto;
  pointer-events: none;
  overflow: hidden;
}

.pulse-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pulse-line {
  fill: none;
  stroke: var(--sage-bright);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .22;
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: drawECG 3s cubic-bezier(.4, 0, .2, 1) .5s forwards;
}

@keyframes drawECG {
  to { stroke-dashoffset: 0; }
}

/* Contenu hero */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
}

.hero-kicker-line {
  width: 2rem;
  height: 1px;
  background: var(--sage-bright);
  flex-shrink: 0;
}

.hero-kicker-text {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-bright);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,.4);
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(.9375rem, 1.8vw, 1.0625rem);
  color: rgba(255,255,255,.42);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 500px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-size: .75rem;
  color: rgba(255,255,255,.2);
  letter-spacing: .04em;
  margin-top: 1rem;
}

/* ── Trust bar ─────────────────────────────────────────────────── */
.trust-bar {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.06);
}

.trust-inner {
  display: flex;
  align-items: stretch;
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: .625rem;
  padding: 1.125rem 0;
  flex: 1;
  border-right: 1px solid rgba(255,255,255,.05);
  padding-left: 2rem;
}

.trust-item:last-child { border-right: none; }

.trust-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--sage-bright);
  line-height: 1;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.trust-label {
  font-size: .6875rem;
  color: rgba(255,255,255,.3);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.4;
}

.trust-sep { display: none; }

/* ── Section commune ─────────────────────────────────────────── */
.section-header {
  margin-bottom: 4rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow.light { color: rgba(74, 171, 135, .8); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.section-title.light { color: rgba(255,255,255,.88); }

/* ── Features ─────────────────────────────────────────────────── */
.features {
  padding: 7rem 0;
  background: var(--cream);
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.features-intro {
  position: sticky;
  top: 6rem;
}

.features-intro .section-title {
  margin-bottom: 1.5rem;
}

.features-intro-body {
  font-size: .9375rem;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 380px;
}

.features-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.feature-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-item:hover .feature-num { color: var(--sage); }

.feature-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--border-warm);
  line-height: 1.6;
  transition: color .2s;
  padding-top: .1rem;
}

.feature-body h3 {
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
  margin-bottom: .5rem;
  letter-spacing: .01em;
}

.feature-body p {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ── How it works ─────────────────────────────────────────────── */
.how {
  padding: 7rem 0;
  background: var(--night);
}

.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.how-intro {
  position: sticky;
  top: 6rem;
}

.how-intro .section-title {
  margin-bottom: 1.5rem;
}

.how-intro-body {
  font-size: .9375rem;
  color: rgba(255,255,255,.32);
  line-height: 1.85;
}

.steps-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.07);
}

.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,.16);
  line-height: 1.6;
  padding-top: .1rem;
}

.step-content h3 {
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  margin-bottom: .5rem;
  line-height: 1.4;
  letter-spacing: .01em;
}

.step-content p {
  font-size: .875rem;
  color: rgba(255,255,255,.3);
  line-height: 1.75;
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact {
  padding: 8rem 0;
  background: var(--cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.contact-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 1.75rem;
}

.contact-body {
  font-size: .9375rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: .75rem;
  max-width: 400px;
}

.contact-geo {
  font-size: .8125rem;
  color: var(--text-3);
  letter-spacing: .02em;
}

.contact-card {
  background: var(--night);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .875rem;
  min-width: 280px;
}

.contact-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
}

.contact-phone {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.01em;
  line-height: 1.15;
  transition: color .15s;
}
.contact-phone:hover { color: var(--sage-bright); }

.contact-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  font-size: .75rem;
  color: rgba(255,255,255,.18);
  margin: .125rem 0;
}
.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.07);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  width: 100%;
  background: var(--green-wa);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  padding: .875rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .15s;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn-whatsapp:hover { background: #1db954; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--night);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.04);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p {
  font-size: .75rem;
  color: rgba(255,255,255,.2);
  letter-spacing: .03em;
}

/* ── Animations scroll ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.features-list .feature-item:nth-child(2).visible { transition-delay: .06s; }
.features-list .feature-item:nth-child(3).visible { transition-delay: .12s; }
.features-list .feature-item:nth-child(4).visible { transition-delay: .18s; }
.features-list .feature-item:nth-child(5).visible { transition-delay: .24s; }
.features-list .feature-item:nth-child(6).visible { transition-delay: .30s; }

.steps-list .step:nth-child(2).visible { transition-delay: .08s; }
.steps-list .step:nth-child(3).visible { transition-delay: .16s; }
.steps-list .step:nth-child(4).visible { transition-delay: .24s; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-layout { grid-template-columns: 1fr; gap: 3rem; }
  .features-intro { position: static; }
  .features-intro-body { max-width: 100%; }

  .how-layout { grid-template-columns: 1fr; gap: 3rem; }
  .how-intro { position: static; }
}

@media (max-width: 768px) {
  .hero { padding: 3.5rem 0 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .trust-inner { flex-direction: column; }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 1rem 1.5rem;
    flex: none;
  }
  .trust-item:last-child { border-bottom: none; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .contact-card { width: 100%; max-width: 400px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .contact-card { max-width: 100%; }
  .trust-item { padding: .875rem 1.25rem; }
  .pulse-wrap { height: 56px; }
}
