/* ============================================================
   CrystalSuite — Stylesheet
   Palette : #1B2A4A | #F7F8FA | #2E6BDB | #2D2D2D | #0F1A2E
   Font    : Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #1B2A4A;
  --night:      #0F1A2E;
  --blue:       #2E6BDB;
  --blue-hover: #2459bf;
  --bg:         #F7F8FA;
  --white:      #ffffff;
  --text:       #2D2D2D;
  --muted:      #6B7280;
  --border:     #E2E5EA;

  --max-w:      1140px;
  --radius:     8px;
  --transition: 0.2s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text); }

/* Light section headings (white text context) */
.light h1, .light h2, .light h3, .light h4,
.light p, .light li { color: var(--white); }
.light .muted { color: rgba(255,255,255,0.65); }

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 90px 0; }
section.bg-gray { background: var(--bg); }
section.bg-navy { background: var(--navy); }
section.bg-night { background: var(--night); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-intro {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Grid ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-hover); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--bg); }

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost-white:hover { border-color: var(--white); }

.btn-cta { padding: 16px 36px; font-size: 1rem; }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

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

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }

.nav-cta { margin-left: 16px; }
.nav-links .btn-primary { color: #ffffff; font-weight: 700; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* Page content offset for fixed nav */
main { padding-top: 72px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 100px 0 110px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.7;
}
.hero-visual {
  display: flex;
  justify-content: center;
}

/* ── Dashboard Mockup ────────────────────────────────────────── */
.mockup {
  background: #1a2438;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 420px;
}
.mockup-bar {
  background: #141e2f;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mockup-dot.r { background: #ff5f57; }
.mockup-dot.y { background: #febc2e; }
.mockup-dot.g { background: #28c840; }
.mockup-title-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  margin: 0 8px;
}
.mockup-body { padding: 20px; }

.mockup-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.mockup-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}
.mockup-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(46,107,219,0.25);
  color: #7aaeff;
  font-weight: 500;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.kpi-box {
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 10px;
}
.kpi-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.kpi-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}
.kpi-value.positive { color: #4ade80; }
.kpi-value.negative { color: #f87171; }

.chart-area {
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
}
.chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(46,107,219,0.5);
  transition: background 0.2s;
}
.chart-bar.accent { background: var(--blue); }
.chart-bar.prev   { background: rgba(46,107,219,0.25); }

.table-rows { display: flex; flex-direction: column; gap: 6px; }
.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.table-row:last-child { border-bottom: none; }
.row-label { font-size: 0.65rem; color: rgba(255,255,255,0.5); }
.row-value { font-size: 0.65rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.row-value.pos { color: #4ade80; }

/* Small mockup variant */
.mockup-sm { max-width: 320px; }
.mockup-sm .kpi-value { font-size: 0.75rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.card.bg-gray { background: var(--bg); border-color: transparent; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(46,107,219,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { color: var(--blue); }

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 1px;
  background: var(--border);
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ── Comparison Columns ──────────────────────────────────────── */
.compare-col {
  padding: 28px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.compare-col h3 { color: var(--navy); margin-bottom: 12px; font-size: 1.1rem; }
.compare-col p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* ── Profile Cards ───────────────────────────────────────────── */
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.profile-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 24px rgba(46,107,219,0.1);
}
.profile-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(27,42,74,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.profile-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.profile-card p { color: var(--muted); font-size: 0.95rem; }

/* ── Testimonial / Social Proof ──────────────────────────────── */
.proof-section { background: var(--bg); }
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.testimonial blockquote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}
.testimonial cite strong { color: var(--navy); font-weight: 600; }

.proof-metric {
  text-align: center;
  padding: 32px;
}
.proof-metric .metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-metric .metric-label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── CTA Block ───────────────────────────────────────────────── */
.cta-block {
  background: var(--night);
  padding: 100px 0;
  text-align: center;
}
.cta-block h2 { color: var(--white); margin-bottom: 16px; }
.cta-block p  { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
.cta-block .btn-group { justify-content: center; margin-top: 36px; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 56px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: 12px; color: var(--white); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.65; max-width: 260px; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ── Page Header (inner pages) ───────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 80px 0;
}
.page-header h1 { color: var(--white); margin-bottom: 16px; }
.page-header p  { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 560px; }

/* ── Prose content ───────────────────────────────────────────── */
.prose p { margin-bottom: 16px; }
.prose h2 { margin-top: 48px; margin-bottom: 16px; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; }

/* ── Form ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(46,107,219,0.1);
}
.pricing-card.featured {
  border-color: var(--blue);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Recommandé';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.pricing-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.pricing-includes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.pricing-includes li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(46,107,219,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232E6BDB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ── About ───────────────────────────────────────────────────── */
.founder-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 12px;
  background: var(--bg);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
  gap: 10px;
}
.founder-placeholder svg { color: var(--border); width: 48px; height: 48px; }

/* ── Animations ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner        { grid-template-columns: 1fr; }
  .hero-visual       { display: none; }
  .grid-3            { grid-template-columns: 1fr; }
  .grid-4            { grid-template-columns: 1fr; }
  .steps             { grid-template-columns: 1fr; }
  .steps::before     { display: none; }
  .footer-inner      { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero   { padding: 72px 0 80px; }
  .cta-block { padding: 72px 0; }

  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
}
