/* Conformité Express landing page — single-file CSS, no framework. */

:root {
  --quebec-blue: #003F87;
  --quebec-blue-dark: #00306b;
  --accent: #F38B00;
  --accent-dark: #d97a00;
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --text: #1a1a1a;
  --text-muted: #5f6c7b;
  --border: #e2e8f0;
  --green: #22A06B;
  --red: #D72638;
  --max-w: 1100px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Manrope",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--quebec-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

/* ----- Topbar ----- */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--quebec-blue);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}
.navlinks { display: flex; gap: 22px; align-items: center; }
.navlinks a { color: var(--text-muted); font-size: 15px; }
.navlinks a:hover { color: var(--text); }
.navlinks .cta-link { color: var(--accent); font-weight: 600; }

@media (max-width: 600px) {
  .navlinks a:not(.cta-link) { display: none; }
}

/* ----- Hero ----- */
.hero {
  padding: 80px 24px 64px;
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--quebec-blue);
  font-weight: 800;
}
.hero .lede {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text);
  margin: 0 0 14px;
}
.hero .lede strong { color: var(--accent); }
.hero .sub {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 17px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.trust {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: white;
  color: var(--quebec-blue);
  border-color: var(--quebec-blue);
}
.btn-secondary:hover { background: #f0f5ff; text-decoration: none; }
.btn.block { display: flex; width: 100%; margin-top: 12px; }

/* ----- Sections ----- */
.section { padding: 72px 24px; }
.section h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.25;
  color: var(--quebec-blue);
  font-weight: 700;
  margin: 0 0 24px;
}
.section h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.section h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.problem { background: var(--bg-alt); }
.problem .alternative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.alternative {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.alternative p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* ----- Checklist ----- */
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}
.checklist.red li::before { content: "✗"; color: var(--red); }
.checklist.green li::before { color: var(--green); }

/* ----- Solution / Steps ----- */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.steps li {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 70px;
}
.step-num {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--quebec-blue);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.muted { color: var(--text-muted); font-weight: 400; font-size: 14px; }

/* ----- Pricing ----- */
.pricing { background: var(--bg-alt); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
  align-items: stretch;
}
.tier {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.tier.highlight {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.tier .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.tier h3 { color: var(--quebec-blue); margin: 0 0 8px; font-size: 22px; }
.tier .price {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.tier .price .amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-right: 4px;
}
.tier .for-who { color: var(--text-muted); margin: 0 0 14px; font-size: 14px; }
.tier .checklist { flex-grow: 1; font-size: 15px; }
.tier .btn { margin-top: 16px; }
.footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 20px;
}

/* ----- Scan form ----- */
.scan { background: white; }
.scan-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 22px;
}
.scan-form label {
  display: block;
  margin-bottom: 14px;
}
.scan-form label > span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.scan-form .required { color: var(--red); }
.scan-form input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  background: white;
}
.scan-form input:focus {
  outline: none;
  border-color: var(--quebec-blue);
  box-shadow: 0 0 0 3px rgba(0, 63, 135, 0.12);
}
.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 8px 0 0;
}
.form-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
}
.form-result.loading { background: #eef2f7; color: var(--text); }
.form-result.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-result.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ----- Comparison ----- */
.compare { background: var(--bg-alt); }
.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare th {
  background: var(--quebec-blue);
  color: white;
  font-weight: 600;
}
.compare tr:last-child td { border-bottom: none; }
.compare tr.highlight-row td { background: #fff7e6; }

/* ----- FAQ ----- */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 22px;
  color: var(--quebec-blue);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--text-muted); }

/* ----- Final CTA ----- */
.final-cta {
  background: var(--quebec-blue);
  color: white;
  text-align: center;
}
.final-cta h2 { color: white; }
.final-cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; }

/* ----- Footer ----- */
.footer {
  background: #0a1628;
  color: #cbd5e1;
  padding: 48px 24px 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer a { color: #93c5fd; }
.footer .disclaimer {
  font-size: 12px;
  color: #94a3b8;
  margin: 24px 0 8px;
  border-top: 1px solid #1f2a40;
  padding-top: 20px;
}
.footer .copyright {
  color: #94a3b8;
  font-size: 12px;
  margin: 0;
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
