/* ============================================
   Lionel Demangeon — Consultant IA PME
   Design system inspired by Stripe
   ============================================ */

:root {
  /* Primary */
  --purple: #533afd;
  --purple-hover: #4434d4;
  --purple-light: #b9b9f9;
  --purple-bg: rgba(83,58,253,0.06);

  /* Darks */
  --navy: #061b31;
  --brand-dark: #1c1e54;
  --dark-navy: #0d253d;

  /* Neutrals */
  --white: #ffffff;
  --bg-subtle: #f6f9fc;
  --border: #e5edf5;
  --body: #4a5568;
  --body-light: #64748b;
  --label: #273951;

  /* Accents */
  --ruby: #ea2261;
  --success: #15be53;

  /* Shadows */
  --shadow-sm: rgba(23,23,23,0.06) 0px 3px 6px;
  --shadow-md: rgba(23,23,23,0.08) 0px 15px 35px;
  --shadow-lg: rgba(50,50,93,0.25) 0px 30px 45px -30px, rgba(0,0,0,0.1) 0px 18px 36px -18px;
  --shadow-focus: 0 0 0 3px rgba(83,58,253,0.3);

  /* Radius */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  /* Layout */
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }

p { color: var(--body); line-height: 1.65; margin-bottom: 1rem; }
a { color: var(--purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple-hover); }

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--body-light);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--purple); }

.nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 400;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--purple-hover);
  color: var(--white) !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(83,58,253,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--purple-bg);
  color: var(--purple);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(83,58,253,0.12);
}

.hero h1 {
  max-width: 780px;
  margin: 0 auto 20px;
}

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

.hero-sub {
  font-size: 1.125rem;
  color: var(--body-light);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--purple-hover);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple-light);
}

.btn-ghost:hover {
  background: var(--purple-bg);
  color: var(--purple-hover);
}

.btn-white {
  background: var(--white);
  color: var(--brand-dark);
}

.btn-white:hover {
  box-shadow: var(--shadow-md);
  color: var(--brand-dark);
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--brand-dark); color: var(--white); }
.section-subtle { background: var(--bg-subtle); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-dark .section-label { color: var(--purple-light); }

.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ===== PAIN POINTS ===== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pain-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.3s;
}

.pain-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.pain-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-bg);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.pain-card h3 { margin-bottom: 12px; }
.pain-card p { font-size: 0.9375rem; margin-bottom: 0; }

/* ===== BENEFITS / VALUE PROPS ===== */
.benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}

.benefit + .benefit { border-top: 1px solid var(--border); }

.benefit-content { max-width: 480px; }

.benefit-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-bg);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.benefit h2 { margin-bottom: 16px; }

.benefit-visual {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefit-stat {
  font-size: 3rem;
  font-weight: 300;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 8px;
}

.benefit-stat-label {
  font-size: 0.8125rem;
  color: var(--body-light);
  margin-bottom: 24px;
}

.benefit-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--body);
}

.metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.metric-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.metric-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--purple);
  border-radius: 3px;
}

/* ===== PROCESS / HOW IT WORKS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--border);
}

.process-step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--white);
  border: 2px solid var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--purple);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9375rem;
}

/* ===== CREDIBILITY / TECH ===== */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cred-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 0.3s;
}

.cred-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.cred-card h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.cred-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.cred-card a {
  color: var(--purple-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.cred-card a:hover { color: var(--white); }

/* ===== TESTIMONIAL / RESULTS ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.result-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.result-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 8px;
}

.result-label {
  font-size: 0.875rem;
  color: var(--body-light);
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 48px 0;
  font-size: 0.8125rem;
}

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

.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--white); }

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

/* ===== TECH PAGE SPECIFICS ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.3s;
}

.tech-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.tech-card-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.tech-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.tech-card p { font-size: 0.875rem; margin-bottom: 0; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin-bottom: 16px; }
.page-header p { max-width: 560px; margin: 0 auto; font-size: 1.0625rem; }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--label);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: var(--shadow-focus);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info h3 { margin-bottom: 8px; }
.contact-info p { margin-bottom: 24px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--purple-bg);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .pain-grid,
  .process-steps,
  .results-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .benefit {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cred-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero { padding: 120px 0 60px; }
  .section { padding: 56px 0; }
  .cta-section { padding: 64px 0; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
}
