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

:root {
  --navy: #11161D;
  --navy-light: #1A222D;
  --blue: #2F7DE1;
  --blue-dark: #1A5BB8;
  --green: #2E7D32;
  --red: #C62828;
  --orange: #EF6C00;
  --gray: #6B7280;
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --text: #1C1C1E;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(17,22,29,0.04), 0 1px 3px rgba(17,22,29,0.06);
  --shadow-md: 0 4px 10px rgba(17,22,29,0.05), 0 2px 4px rgba(17,22,29,0.06);
  --shadow-lg: 0 24px 60px rgba(17,22,29,0.22), 0 6px 18px rgba(17,22,29,0.12);
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

button, input, select, textarea, optgroup {
  font: inherit;
  color: inherit;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .step-num, .mockup-stat .num {
  font-family: var(--font-head);
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Top bar */
.topbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: box-shadow .25s var(--ease);
}
.topbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 800;
  font-size: 18px;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,125,225,0.2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a.link {
  color: #9AA7B8;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s var(--ease);
}
.nav-links a.link:hover { color: white; }
.btn-cta {
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-cta:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47,125,225,0.35); }

/* Hero */
.hero {
  padding: 90px 0 80px;
  background: var(--bg);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: #E3F0FC;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  opacity: 0;
  animation: rise .6s var(--ease) forwards;
}
.hero h1 {
  color: var(--text);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  opacity: 0;
  animation: rise .6s var(--ease) .08s forwards;
}
.hero h1 span { color: var(--blue); }
.hero p {
  color: var(--gray);
  font-size: 17px;
  margin: 0 0 32px;
  max-width: 480px;
  opacity: 0;
  animation: rise .6s var(--ease) .16s forwards;
}
.hero-actions {
  display: flex; gap: 14px;
  opacity: 0;
  animation: rise .6s var(--ease) .24s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  display: inline-block;
  transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47,125,225,0.32); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  display: inline-block;
  border: 1px solid var(--border);
  transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-secondary:hover { background: #FAFBFC; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Mockup card */
.mockup {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: mockup-in .7s var(--ease) .3s forwards;
}
@keyframes mockup-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mockup-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; }
.mockup-dot.red { background: #ED6A5E; }
.mockup-dot.yellow { background: #F4BF4F; }
.mockup-dot.green { background: #61C454; }
.mockup-bar-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
}
.mockup-body { padding: 20px; }
.mockup-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mockup-stat { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.mockup-stat .num { font-size: 22px; font-weight: 800; }
.mockup-stat .lbl { font-size: 11px; color: var(--gray); margin-top: 2px; }
.mockup-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px; background: var(--bg); margin-bottom: 8px;
  font-size: 13px;
  transition: background .15s var(--ease);
}
.mockup-row:hover { background: #ECEFF3; }
.mockup-pill {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: #E5F3E7; color: var(--green);
}
.mockup-pill.danger {
  background: #FCE8E8; color: var(--red);
  animation: pulse-pill 1.6s infinite;
}
@keyframes pulse-pill { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Bande "sans matériel" */
.no-hardware {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.no-hardware .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.no-hardware-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.no-hardware-item .check {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: #E5F3E7; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}

/* Sections */
section.feature-section { padding: 84px 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.section-head .eyebrow {
  color: var(--blue); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 12px; }
.section-head p { color: var(--gray); font-size: 16px; margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--blue);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card.c-red { border-left-color: var(--red); }
.feature-card.c-orange { border-left-color: var(--orange); }
.feature-card.c-green { border-left-color: var(--green); }
.feature-icon {
  font-size: 20px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg); color: var(--blue);
}
.feature-card.c-red .feature-icon { color: var(--red); }
.feature-card.c-orange .feature-icon { color: var(--orange); }
.feature-card.c-green .feature-icon { color: var(--green); }
.feature-card h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { font-size: 13.5px; color: var(--gray); margin: 0; line-height: 1.6; }

/* How it works */
.how { background: var(--surface); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.how-step { text-align: center; }
.how-step .step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 16px rgba(17,22,29,0.18);
}
.how-step h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.how-step p { font-size: 14px; color: var(--gray); margin: 0; }

/* CTA band */
.cta-band {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: white; font-size: 30px; font-weight: 800; margin: 0 0 14px; }
.cta-band p { color: #C9D2DE; font-size: 15px; margin: 0 0 30px; }

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray);
}
footer .brand { color: var(--text); font-size: 14px; font-weight: 700; }
footer .brand-dot { background: var(--blue); }

/* Page devis */
.quote-hero {
  padding: 56px 0 20px;
  background: var(--bg);
  text-align: center;
}
.quote-hero .eyebrow {
  color: var(--blue); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.quote-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 12px; }
.quote-hero p { color: var(--gray); font-size: 16px; max-width: 540px; margin: 0 auto; }

.quote-wrap { max-width: 640px; margin: 0 auto; padding: 32px 24px 90px; }

.form-card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-field input, .form-field select {
  font-size: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,125,225,0.15);
}
.form-submit {
  width: 100%;
  margin-top: 8px;
  background: var(--blue);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.form-submit:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(47,125,225,0.3); }
.form-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.form-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 12px;
  min-height: 16px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success.show { display: block; }
.form-success .check-big {
  width: 56px; height: 56px; border-radius: 50%;
  background: #E5F3E7; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
  margin: 0 auto 16px;
}
.form-success h3 { font-size: 19px; margin: 0 0 8px; }
.form-success p { color: var(--gray); font-size: 14px; margin: 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .nav-links .link { display: none; }
  .no-hardware .wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .form-field { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-tag, .hero h1, .hero p, .hero-actions, .mockup {
    animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important;
  }
}
