/* ============= AVISCORE.FR — Design System v2 ============= */
:root {
  --primary: #1E5AF0;
  --primary-dark: #1346C2;
  --primary-light: #E7EEFF;
  --primary-soft: #F0F5FF;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --star: #FBBF24;

  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --max-width: 1240px;
}

/* ============= Reset ============= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-secondary); }
section { padding: 96px 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

/* ============= Buttons ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 90, 240, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 90, 240, 0.4);
  text-decoration: none;
}
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { color: var(--primary); text-decoration: none; }
.btn-outline {
  background: var(--card);
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
}
.btn-outline:hover {
  border-color: var(--primary);
  text-decoration: none;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ============= Header / Nav ============= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 90, 240, 0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .dropdown::after {
  content: "▾";
  margin-left: 4px;
  font-size: 10px;
  color: var(--text-muted);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
}

/* ============= Hero ============= */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(circle at 95% 20%, var(--primary-soft) 0%, transparent 50%),
    radial-gradient(circle at 5% 70%, #FFFAEC 0%, transparent 40%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  color: var(--primary);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.6;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}
.hero-bullets li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-bullets li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}
.hero-bullets ul { list-style: none; padding: 0; margin: 0; display: contents; }

/* ============= Hero mockup (app preview) ============= */
.app-preview {
  position: relative;
  perspective: 1000px;
}
.app-window {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.app-window-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-soft);
}
.app-window-head .brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.app-window-head .brand-mini .brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: none;
}
.app-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 380px;
}
.app-sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--border-light);
  padding: 14px 8px;
}
.app-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
  position: relative;
}
.app-sidebar-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.app-sidebar-item .badge {
  position: absolute;
  right: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.app-main {
  padding: 20px;
}
.app-main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.app-main-head h4 { font-size: 18px; font-weight: 700; margin: 0; }
.app-main-head .period-pill {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
}
.app-main-sub { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }

.app-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.app-stat {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 10px;
}
.app-stat .l { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.app-stat .v { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1; }
.app-stat .v .unit { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.app-stat .d { font-size: 9px; color: var(--success); margin-top: 4px; font-weight: 600; }

.app-chart {
  height: 110px;
  position: relative;
  margin-bottom: 6px;
}
.app-chart svg { width: 100%; height: 100%; }
.app-chart-x {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* Cards flottantes autour de l'app */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 14px;
  border: 1px solid var(--border-light);
  font-size: 12px;
}
.float-card .fc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 6px;
}
.float-card .fc-head .ico {
  width: 18px; height: 18px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

.float-ai {
  top: 8%;
  right: -32px;
  width: 240px;
  z-index: 2;
}
.float-ai p { font-size: 11px; line-height: 1.5; color: var(--text-secondary); margin: 0 0 10px; }
.float-ai .actions { display: flex; gap: 6px; }
.float-ai .actions button {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.float-ai .btn-mod { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.float-ai .btn-send { background: var(--primary); color: #fff; }

.float-alert {
  top: 42%;
  right: -24px;
  width: 220px;
}
.float-alert .author { display: flex; justify-content: space-between; align-items: center; margin: 4px 0; font-size: 11px; }
.float-alert .author .stars { color: var(--star); letter-spacing: 1px; font-size: 10px; }
.float-alert .comment { font-size: 10px; color: var(--text-secondary); margin: 4px 0 10px; line-height: 1.4; }
.float-alert .cta {
  display: block;
  text-align: center;
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.float-auto {
  bottom: 4%;
  right: -16px;
  width: 240px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-auto .left { flex: 1; }
.float-auto .label { font-size: 12px; font-weight: 700; color: var(--text); }
.float-auto .sub { font-size: 10px; color: var(--text-muted); line-height: 1.3; }
.toggle {
  width: 36px;
  height: 20px;
  background: var(--success);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  right: 2px;
}

/* ============= Trust strip ============= */
.trust-strip {
  background: var(--bg-soft);
  padding: 32px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.trust-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
}
.trust-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-logo {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 18px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.trust-logo:hover { opacity: 1; }
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  text-align: center;
}
.trust-stat .v {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.trust-stat .l {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
  max-width: 110px;
}
.trust-stat-note {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
  text-align: center;
  opacity: 0.8;
}

/* ============= Features ============= */
.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-title .kicker {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-title p {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 16px auto 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  padding: 8px;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-icon.success { background: var(--success-light); color: var(--success); }
.feature-icon.warning { background: var(--warning-light); color: var(--warning); }
.feature-icon.danger { background: var(--danger-light); color: var(--danger); }
.feature h3 { margin-bottom: 10px; font-size: 17px; }
.feature p { color: var(--text-secondary); margin: 0; font-size: 14px; line-height: 1.6; }

/* ============= How it works (steps) ============= */
.how {
  background: var(--bg-soft);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  background: var(--card);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  counter-increment: step;
  position: relative;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 18px; }
.step p { color: var(--text-secondary); font-size: 14px; margin: 0; }

/* ============= Pricing ============= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.price-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card.featured::before {
  content: "Recommandé";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.price-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.price-tag { font-size: 40px; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -0.02em; }
.price-tag .period { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; min-height: 40px; }
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}
.price-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============= FAQ ============= */
.faq {
  background: var(--bg-soft);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 26px 22px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============= CTA Final ============= */
.cta-final {
  background: var(--primary-soft);
  border-radius: var(--radius-xl);
  margin: 0 32px 80px;
  padding: 64px 32px;
}
.cta-card {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-card h2 { margin: 0 0 12px; font-size: 2rem; }
.cta-card p { margin: 0; font-size: 16px; color: var(--text-secondary); max-width: 520px; }
.cta-card .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-bullets {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.cta-bullets li { list-style: none; display: flex; align-items: center; gap: 6px; }
.cta-bullets li::before { content: "✓"; color: var(--success); font-weight: 700; }
.cta-bullets ul { list-style: none; padding: 0; margin: 0; display: contents; }

/* ============= Footer ============= */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-tagline { color: #94A3B8; font-size: 14px; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94A3B8; font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  font-size: 13px;
  color: #64748B;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============= Legal pages ============= */
.legal-page {
  padding: 60px 0 80px;
  background: var(--card);
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 { font-size: 2.25rem; margin-bottom: 8px; }
.legal-content .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; }
.legal-content h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; }
.legal-content p, .legal-content li { color: var(--text-secondary); font-size: 15px; }
.legal-content ul { padding-left: 20px; }
.legal-content strong { color: var(--text); }

/* ============= Responsive ============= */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .float-ai, .float-alert, .float-auto { display: none; }
  .app-body { grid-template-columns: 160px 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 24px; box-shadow: var(--shadow-md); gap: 20px; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .cta-final { margin: 0 16px 64px; padding: 40px 24px; }
  .cta-card { flex-direction: column; text-align: center; align-items: flex-start; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-stats { grid-template-columns: 1fr 1fr; }
}
