/* ============================================================
   BORÉAL NUMÉRIQUE — Full Stylesheet
   Dark industrial minimal. Sharp. Quebec.
   ============================================================ */

:root {
  --bg:           #0d0f12;
  --bg-2:         #111418;
  --bg-3:         #161b20;
  --accent:       #a8d8f0;
  --accent-dim:   #5fa8cc;
  --accent-glow:  rgba(168, 216, 240, 0.15);
  --text:         #e8eaed;
  --text-dim:     #8a9099;
  --text-muted:   #4a5058;
  --border:       #1e2530;
  --border-2:     #252d38;

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --max-w:        1100px;
  --section-gap:  112px;
  --nav-h:        56px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
input, select, button, textarea { font-family: inherit; }

/* ---- GRAIN ---- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain 0.4s steps(1) infinite;
}
@keyframes grain {
  0%  { transform: translate(0,0); }
  20% { transform: translate(-2%,-3%); }
  40% { transform: translate(3%,2%); }
  60% { transform: translate(-1%,3%); }
  80% { transform: translate(2%,-2%); }
}

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(34px, 5.5vw, 68px); }
h2 { font-size: clamp(26px, 3.8vw, 48px); }
h3 { font-size: clamp(16px, 1.8vw, 21px); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

.accent { color: var(--accent); }
.accent-bright {
  color: var(--accent);
  text-shadow: 0 0 32px rgba(168, 216, 240, 0.35);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-sub {
  color: var(--text-dim);
  max-width: 540px;
  margin-top: 14px;
  font-size: 14px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 7px 14px; font-size: 11px; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 500;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-large { font-size: 14px; padding: 15px 34px; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 15, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* ---- HERO ---- */
.hero {
  padding: calc(var(--nav-h) + 72px) 0 80px;
  border-top: none;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.hero-headline { margin-bottom: 22px; }
.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.hero-note { font-size: 12px; color: var(--text-muted); }

/* Stat Row */
.stat-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 26px;
  gap: 5px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat-label { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.stat-divider { width: 1px; background: var(--border); flex-shrink: 0; }

/* ---- PROBLEM ---- */
.problem h2 { margin-bottom: 44px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.problem-card {
  padding: 36px 30px;
  border-right: 1px solid var(--border);
}
.problem-card:last-child { border-right: none; }
.problem-icon {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--border-2);
  line-height: 1;
  margin-bottom: 16px;
}
.problem-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ---- CALCULATOR ---- */
.calculator-section h2 { margin-bottom: 6px; }
.calc-wrapper {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}
.calc-inputs {
  padding: 36px;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.calc-field { display: flex; flex-direction: column; gap: 7px; }
.calc-field label {
  font-size: 11px;
  color: var(--accent-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.calc-field input,
.calc-field select {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 11px 14px;
  font-size: 13px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.calc-field input:focus,
.calc-field select:focus { border-color: var(--accent); }
.calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235fa8cc' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.calc-field select option { background: var(--bg-3); }

.calc-results {
  padding: 36px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}
.calc-result-placeholder {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

/* Fade-in on results */
.calc-result-data {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp 0.3s ease both;
}
.calc-result-data.hidden { display: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.calc-result-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.calc-result-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.calc-result-item.highlight { padding: 18px; background: var(--bg-2); border: 1px solid var(--border-2); }
.calc-result-item.calc-roi  { padding: 16px 18px; background: var(--bg-3); border: 1px solid var(--border); }

.calc-result-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.calc-result-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.calc-result-val.accent       { color: var(--accent); }
.calc-result-val.accent-bright {
  color: var(--accent);
  font-size: 40px;
  text-shadow: 0 0 40px rgba(168, 216, 240, 0.3);
}
.calc-retainer { font-size: 22px !important; color: var(--text-dim) !important; }
.calc-roi-note {
  font-size: 12px;
  color: var(--accent-dim);
  margin-top: 4px;
  line-height: 1.55;
}
.calc-sentence {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  padding-top: 4px;
}

/* ---- SERVICES ---- */
.services h2 { margin-bottom: 44px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.service-card {
  padding: 36px 30px;
  border-right: 1px solid var(--border);
  background: var(--bg-2);
  transition: background 0.18s;
}
.service-card:hover { background: var(--bg-3); }
.service-card:last-child { border-right: none; }
.service-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  color: var(--border-2);
  line-height: 1;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.7; }
.service-features { display: flex; flex-direction: column; gap: 7px; }
.service-features li {
  font-size: 12px;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}
.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-size: 11px;
}

/* ---- HOW IT WORKS ---- */
.how-it-works h2 { margin-bottom: 52px; }
.steps {
  display: flex;
  align-items: flex-start;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.step-connector {
  flex-shrink: 0;
  align-self: center;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-2), var(--accent-dim), var(--border-2));
  position: relative;
  margin-top: -18px;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--accent-dim);
  border-top: 1px solid var(--accent-dim);
  transform: rotate(45deg);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  color: var(--border-2);
  line-height: 1;
}
.step-content h3 { font-size: 16px; margin-bottom: 7px; }
.step-content p  { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* ---- L'OFFRE BORÉAL ---- */
.offre-section { }
.offre-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
}
.offre-header {
  padding: 44px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.offre-sub { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 320px; }
.offre-list {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.offre-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.offre-check {
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font-mono);
}
.offre-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.offre-list span { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ---- TRUST ---- */
.trust h2 { margin-bottom: 44px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
.trust-item {
  padding: 30px 26px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 14px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-item h4 { margin-bottom: 8px; }
.trust-item p  { font-size: 13px; color: var(--text-dim); line-height: 1.65; }

.founder-line {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.founder-quote {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

/* ---- CTA SECTION ---- */
.cta-section { }
.cta-box {
  text-align: center;
  padding: 80px 40px 64px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-box .section-tag {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.cta-box h2 { margin-bottom: 18px; }
.cta-sub {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-guarantees {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Scarcity line */
.scarcity-line {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  text-transform: lowercase;
}
.scarcity-line::before {
  content: '⬤ ';
  color: var(--accent);
  font-size: 7px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ---- REFERENCES ---- */
sup.ref {
  font-size: 9px;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
}
sup.ref a {
  color: var(--accent-dim);
  font-family: var(--font-mono);
  font-weight: 400;
  transition: color 0.15s;
}
sup.ref a:hover { color: var(--accent); }

.sources {
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.sources-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 10px;
}
.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sources-list li { display: flex; gap: 10px; align-items: baseline; }
.src-num {
  font-size: 10px;
  color: var(--accent-dim);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.src-text { font-size: 11px; color: var(--text-muted); font-style: italic; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-location { font-size: 12px; color: var(--text-muted); }
.footer-email, .footer-phone {
  font-size: 12px;
  color: var(--accent-dim);
  margin-left: auto;
  transition: color 0.15s;
}
.footer-email:hover, .footer-phone:hover { color: var(--accent); }
.footer-bottom { font-size: 11px; color: var(--text-muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  :root { --section-gap: 72px; }

  .stat-row { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
  .stat-divider { display: none; }

  .problem-grid,
  .services-grid { grid-template-columns: 1fr; }
  .problem-card,
  .service-card { border-right: none; border-bottom: 1px solid var(--border); }
  .problem-card:last-child,
  .service-card:last-child { border-bottom: none; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2n) { border-right: none; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }

  .steps { flex-direction: column; }
  .step-connector {
    width: 1px;
    height: 30px;
    margin: 0 0 0 36px;
    background: linear-gradient(180deg, var(--border-2), var(--accent-dim), var(--border-2));
  }
  .step-connector::after {
    right: -3px;
    top: auto;
    bottom: -4px;
    transform: rotate(135deg);
  }

  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }
  .calc-results { min-height: auto; }

  .offre-block { grid-template-columns: 1fr; }
  .offre-header { border-right: none; border-bottom: 1px solid var(--border); }

  .cta-box { padding: 56px 24px 48px; }
  .cta-guarantees { gap: 16px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: calc(var(--nav-h) + 48px) 0 56px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: none; }
  .footer-email { margin-left: 0; }
  .offre-list { padding: 28px 24px; }
  .offre-header { padding: 32px 24px; }
}
