:root {
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #0a2a66;
  --brand-2: #1d4ed8;
  --accent: #0e7490;
  --warn-bg: #fff7ed;
  --warn-ink: #9a3412;
  --ok: #15803d;
  --bad: #b91c1c;
  --mid: #b45309;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 8px 30px rgba(2, 8, 23, 0.08);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-2);
}
h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--brand);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.muted {
  color: var(--muted);
}

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo {
  font-weight: 800;
  color: var(--brand);
  font-size: 1.15rem;
  letter-spacing: 0;
}
.logo span {
  color: var(--brand-2);
}
header .nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}
header .nav a:hover {
  color: var(--brand);
}
/* Language switcher (FR ⇄ EN) — distinct pill in the header */
header .nav a.nav-lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 700;
  color: var(--brand);
}
header .nav a.nav-lang:hover {
  border-color: var(--brand);
  background: #f1f5f9;
}

/* Québec flag (Fleurdelisé) + fleur-de-lis accents */
.qc-flag {
  width: 32px;
  height: 21px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(2, 8, 23, 0.12);
  display: block;
  flex: 0 0 auto;
}
.qc-flag--lg {
  width: 60px;
  height: 40px;
  border-radius: 4px;
}
.fdl-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 0;
  color: var(--brand-2);
}
.fdl-rule::before,
.fdl-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.fdl-rule svg {
  width: 22px;
  height: 24px;
  flex: 0 0 auto;
}
.qc-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 18px;
}

/* Trust bar */
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 16px 0 0;
}
.trust li {
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust li::before {
  content: '✓';
  color: var(--ok);
  font-weight: 800;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #f8fafc, #eef6ff 52%, #ffffff);
  padding: 64px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(2, 8, 23, 0.06);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 0.75rem;
}
.urgency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 16px;
}
.hero p.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 28px;
}

.hero-proof {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  background: #0f172a;
  color: #fff;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(10, 42, 102, 0.18);
}
.proof-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.proof-head span {
  display: block;
  color: #bfdbfe;
  font-size: 0.9rem;
}
.proof-head strong {
  display: block;
  font-size: 2.35rem;
  line-height: 1.05;
  margin-top: 4px;
}
.mini-gauge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(#f59e0b 64%, #334155 0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.mini-gauge span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0f172a;
  display: grid;
  place-items: center;
  color: #fcd34d;
  font-weight: 800;
  font-size: 1.15rem;
}
.proof-risk {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
}
.proof-risk strong {
  color: #fde68a;
  display: block;
}
.proof-risk span {
  color: #cbd5e1;
  font-size: 0.85rem;
}
.proof-list {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
}
.proof-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  color: #e2e8f0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}
.proof-list li:last-child {
  border-bottom: 0;
}
.proof-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.proof-foot span {
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.25);
  color: #dbeafe;
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Scan form */
.scan {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  flex-wrap: wrap;
}
.scan input {
  flex: 1 1 280px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1rem;
}
.scan button {
  flex: 0 0 auto;
  background: var(--brand-2);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.scan button:hover {
  background: var(--brand);
}
.scan-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

/* Sections */
section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
}
section .sub {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 720px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}
.card h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Penalties callout */
.penalty {
  background: var(--warn-bg);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 24px;
}
.penalty strong {
  color: var(--warn-ink);
}
.stat {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}
.stat .n {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--warn-ink);
}
.stat .l {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sample report */
.report {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 560px;
}
.report .top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.gauge {
  --val: 64;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--mid) calc(var(--val) * 1%), var(--line) 0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.gauge .inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--mid);
}
.report ul {
  list-style: none;
  margin: 0;
  padding: 14px 22px 22px;
}
.report li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.report li:last-child {
  border-bottom: 0;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  flex: 0 0 auto;
}
.dot.bad {
  background: var(--bad);
}
.dot.mid {
  background: var(--mid);
}
.dot.ok {
  background: var(--ok);
}

/* FAQ */
details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
  margin-bottom: 12px;
  background: #fff;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  color: var(--brand);
}
details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* CTA */
.cta {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: #cbd5e1;
}
.cta .scan {
  margin: 22px auto 0;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
footer.site a {
  color: var(--muted);
}
.disclaimer {
  margin-top: 24px;
  padding: 14px 16px;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  header.site .wrap {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  header .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 14px;
    max-width: 190px;
    line-height: 1.25;
  }
  header .nav a {
    margin-left: 0;
    font-size: 0.9rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-proof {
    order: 2;
  }
  .scan {
    flex-direction: column;
  }
  .scan input,
  .scan button {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 64px 0 38px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p.lede {
    font-size: 1.08rem;
  }
  .urgency,
  .eyebrow {
    border-radius: 22px;
  }
  header .nav a:not(:last-child) {
    display: none;
  }
  header .nav {
    max-width: none;
  }
  .brand {
    min-height: 40px;
  }
  .proof-head {
    align-items: flex-start;
  }
  .mini-gauge {
    width: 76px;
    height: 76px;
  }
  .mini-gauge span {
    width: 54px;
    height: 54px;
  }
}
