/* ─────────────────────────────────────────────
   Répondeur — Landing page stylesheet
   Sans framework, vanilla CSS + CSS vars
   ───────────────────────────────────────────── */

/* ── Variables ── */
:root {
  --c-bg:        #F5F7FA;
  --c-white:     #FFFFFF;
  --c-text:      #1A2035;
  --c-muted:     #5A6880;
  --c-accent:    #1D6BF0;
  --c-accent-h:  #1558CC;
  --c-dark:      #0E1524;
  --c-surface:   #FFFFFF;
  --c-border:    #E2E8F0;
  --c-success:   #059669;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --radius:      12px;
  --max-w:       1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: -0.5px;
}

.navbar-logo span { color: var(--c-accent); }

.navbar-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  color: var(--c-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.navbar-links a:hover { color: var(--c-text); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29,107,240,.3);
}

.btn-primary:hover {
  background: var(--c-accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29,107,240,.4);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--c-accent);
  border: 2px solid var(--c-accent);
}

.btn-outline:hover {
  background: var(--c-accent);
  color: #fff;
  text-decoration: none;
}

.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EFF6FF;
  color: var(--c-accent);
  border: 1px solid #BFDBFE;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--c-success);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-dark);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--c-accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero-note {
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: #E8EFFC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Social proof bar ── */
.proof-bar {
  padding: 28px 0;
  background: var(--c-dark);
}

.proof-bar .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.proof-stat {
  text-align: center;
  color: var(--c-white);
}

.proof-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #60A5FA;
  display: block;
}

.proof-stat .label {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 2px;
}

.proof-sep {
  width: 1px;
  height: 36px;
  background: #334155;
}

/* ── Features ── */
.features { padding: 80px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.features h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-dark);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.features .section-sub {
  color: var(--c-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 560px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #EFF6FF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; color: var(--c-accent); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── How it works ── */
.how { padding: 80px 0; background: var(--c-white); border-top: 1px solid var(--c-border); }

.how h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-dark);
  letter-spacing: -0.4px;
  margin-bottom: 48px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── CTA band ── */
.cta-band {
  padding: 80px 0;
  background: var(--c-dark);
  text-align: center;
}

.cta-band h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 1.05rem;
  color: #94A3B8;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .price {
  color: #60A5FA;
  font-weight: 700;
}

.cta-band .price span {
  font-size: 0.85em;
  font-weight: 400;
  color: #64748B;
}

/* ── Test banner ── */
.test-banner {
  padding: 72px 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
  border-top: 1px solid #BFDBFE;
}

.test-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.test-tag {
  display: inline-block;
  background: #DBEAFE;
  color: var(--c-accent);
  border: 1px solid #BFDBFE;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.test-banner h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-dark);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.test-banner-text p {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 480px;
  line-height: 1.6;
}

.test-number-box {
  background: var(--c-white);
  border: 2px solid var(--c-accent);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  min-width: 280px;
  box-shadow: 0 4px 24px rgba(29,107,240,.15);
}

.test-number-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-accent);
  margin-bottom: 8px;
}

.test-number-phone {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-dark);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.test-number-hint {
  font-size: 0.8rem;
  color: var(--c-muted);
}

/* ── Free trial section ── */
.trial-section {
  padding: 80px 0;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
}

.trial-header {
  text-align: center;
  margin-bottom: 48px;
}

.trial-tag {
  display: inline-block;
  background: #F0FDF4;
  color: #059669;
  border: 1px solid #A7F3D0;
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.trial-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-dark);
  letter-spacing: -0.4px;
  line-height: 1.3;
  max-width: 600px;
  margin: 0 auto;
}

.trial-header h2 em {
  font-style: normal;
  color: var(--c-muted);
  font-weight: 400;
  font-size: 1.4rem;
}

/* Steps row */
.trial-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
  row-gap: 24px;
}

.trial-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 260px;
}

.trial-step-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.trial-step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trial-step-body strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.3;
}

.trial-step-body span {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.4;
}

.trial-step-arrow {
  font-size: 1.4rem;
  color: var(--c-border);
  padding: 0 20px;
  flex-shrink: 0;
}

/* Form */
.trial-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: 20px;
  padding: 40px;
}

.trial-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.trial-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trial-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-dark);
  letter-spacing: 0.2px;
}

.trial-field input,
.trial-field select {
  padding: 12px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--c-text);
  background: var(--c-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.trial-field input:focus,
.trial-field select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(29, 107, 240, 0.12);
}

.trial-field input.error,
.trial-field select.error {
  border-color: #EF4444;
}

.trial-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.trial-btn {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

.trial-note {
  font-size: 0.8rem;
  color: var(--c-muted);
  text-align: center;
}

.trial-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #F0FDF4;
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  color: #059669;
  font-size: 0.95rem;
  margin-top: 16px;
  justify-content: center;
}

.trial-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  color: #DC2626;
  font-size: 0.9rem;
  margin-top: 16px;
}

.trial-proof {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--c-muted);
}

/* ── Footer ── */
.footer {
  padding: 32px 0;
  background: #0A0F1E;
  border-top: 1px solid #1A2A40;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
}

.footer-logo span { color: var(--c-accent); }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: #64748B;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--c-white); text-decoration: none; }

.footer-copy {
  font-size: 0.8rem;
  color: #475569;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { order: -1; max-height: 280px; }
  .hero h1 { font-size: 2.1rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .proof-bar .container { justify-content: center; gap: 28px; }
  .test-banner-inner { grid-template-columns: 1fr; gap: 40px; }
  .test-number-box { min-width: auto; }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 56px 0 48px; }
  .features, .how, .cta-band, .test-banner { padding: 56px 0; }
  .navbar-links { display: none; }
  .footer .container { flex-direction: column; text-align: center; gap: 12px; }
}