/* Landing Page — Tableau → Power BI */
/* Design System — Sally UX Spec v1.0 */

:root {
  --color-primary: #0F52BA;
  --color-primary-dark: #0A3A8A;
  --color-trust: #1B3A6B;
  --color-success: #16A34A;
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --font-stack: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-stack);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ─── Nav ───────────────────────────────────── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 0.75rem 1.5rem;
}
.landing-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.landing-nav .nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.landing-nav .nav-brand span { color: var(--color-primary); }
.landing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.landing-nav .nav-links a.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}
.landing-nav .nav-links a.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

/* ─── Buttons ───────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 150ms;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--color-primary-dark); color: white; }
.btn-primary:focus { outline: 3px solid rgba(15,82,186,0.4); }

.btn-ghost {
  display: inline-block;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}
.btn-ghost:hover { background: var(--color-primary); color: white; }
.btn-ghost:focus { outline: 3px solid rgba(15,82,186,0.3); }

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 8px;
}

/* ─── Layout helpers ────────────────────────── */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.py-section { padding: 5rem 0; }
.py-section-sm { padding: 3rem 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* ─── Hero ──────────────────────────────────── */
#hero {
  background: var(--color-surface);
  padding: 6rem 0 5rem;
  text-align: center;
}
#hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #EFF6FF;
  color: var(--color-primary);
  border: 1px solid #BFDBFE;
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
#hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--color-text);
  max-width: 760px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.02em;
}
#hero h1 .highlight { color: var(--color-primary); }
#hero .hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-cta-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.hero-cta-link:hover { text-decoration: underline; }

/* ─── Trust Banner ──────────────────────────── */
#trust-banner {
  background: var(--color-trust);
  color: white;
  padding: 1.25rem 1.5rem;
}
#trust-banner .trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
#trust-banner .trust-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
#trust-banner .trust-text strong {
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}
#trust-banner .trust-text p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
}
#trust-banner .trust-link {
  color: #93C5FD;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
#trust-banner .trust-link:hover { text-decoration: underline; }

/* ─── Process Steps ─────────────────────────── */
#processus {
  background: var(--color-bg);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}
.step-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.step-badge {
  display: inline-block;
  background: #EFF6FF;
  color: var(--color-primary);
  border: 1px solid #BFDBFE;
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ─── Transparency Table ────────────────────── */
#securite {
  background: var(--color-surface);
}
.transparency-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}
.transparency-table thead {
  background: var(--color-trust);
  color: white;
}
.transparency-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}
.transparency-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}
.transparency-table tbody tr:last-child { border-bottom: none; }
.transparency-table tbody tr:hover { background: #F8FAFF; }
.transparency-table td {
  padding: 0.875rem 1.25rem;
  vertical-align: top;
}
.transparency-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
  width: 45%;
}
.transparency-table td:last-child { color: var(--color-success); font-weight: 600; }
.check-icon { margin-right: 0.35rem; }

.legal-box {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #075985;
}
.legal-box a { color: var(--color-primary); }
.compliance-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ─── Pricing ───────────────────────────────── */
#tarifs {
  background: var(--color-bg);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  max-width: 800px;
}
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}
.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(15,82,186,0.15);
}
.pricing-card .plan-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.pricing-card .plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.pricing-card .plan-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}
.pricing-features li .feat-check { color: var(--color-success); font-weight: 700; flex-shrink: 0; }
.pricing-features li .feat-dash { color: #D1D5DB; flex-shrink: 0; }
.plan-soon-badge {
  display: inline-block;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.pricing-cta-wrapper { text-align: center; margin-top: 2.5rem; }
.pricing-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* ─── Tech Stack ────────────────────────────── */
#stack {
  background: var(--color-surface);
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stack-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.stack-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
}
.stack-badge span { font-size: 1rem; }

/* ─── CTA Final ─────────────────────────────── */
#cta-final {
  background: linear-gradient(135deg, var(--color-trust) 0%, #0F52BA 100%);
  color: white;
  text-align: center;
}
#cta-final h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: white;
}
#cta-final p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 520px;
  margin: 0 auto 2rem;
}
#cta-final .btn-white {
  display: inline-block;
  background: white;
  color: var(--color-trust);
  padding: 1rem 2.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
#cta-final .btn-white:hover { opacity: 0.92; }
#cta-final .cta-secondary-link {
  display: block;
  margin-top: 1.25rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-decoration: none;
}
#cta-final .cta-secondary-link a { color: rgba(255,255,255,0.9); text-decoration: underline; }

/* ─── Footer ────────────────────────────────── */
.landing-footer {
  background: #0B1220;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}
.landing-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: white; }
.footer-baseline {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-baseline .hosted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── Dark Theme Overrides ───────────────────── */

/* Hero badge */
:root[data-theme="dark"] #hero .hero-badge {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
  color: var(--color-primary);
}

/* Step badges */
:root[data-theme="dark"] .step-badge {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
  color: var(--color-primary);
}

/* Transparency table row hover */
:root[data-theme="dark"] .transparency-table tbody tr:hover {
  background: var(--color-surface-hover);
}

/* Legal box (IP protection) */
:root[data-theme="dark"] .legal-box {
  background: rgba(15, 31, 61, 0.9);
  border-color: var(--color-border);
  color: var(--color-text);
}
:root[data-theme="dark"] .legal-box a {
  color: var(--color-primary);
}

/* Plan "Bientôt" badge */
:root[data-theme="dark"] .plan-soon-badge {
  background: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.3);
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  #hero h1 { font-size: 2rem; }
  #hero .hero-subtitle { font-size: 1rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .landing-nav .nav-links a.nav-link { padding: 0.4rem 0.5rem; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  #hero { padding: 4rem 0 3rem; }
  .hero-cta-group { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-primary.btn-large, .btn-ghost { width: 100%; text-align: center; }
}
