/* ============================================================
   IGNITECH3D — Design System
   ERP/MES pour les PME manufacturières du Québec
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #ff6b00;
  --orange-dark: #e05e00;
  --orange-light: rgba(255, 107, 0, 0.12);
  --orange-glow: rgba(255, 107, 0, 0.25);
  --bg: #0d0d0d;
  --bg-card: #151515;
  --bg-card-hover: #1a1a1a;
  --bg-section-alt: #111111;
  --text: #b0b0b0;
  --text-bright: #ffffff;
  --text-muted: #707070;
  --border: #222222;
  --border-light: #2a2a2a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { color: var(--text-bright); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

.highlight { color: var(--orange); }
.accent { color: #e01e2f; }
.overline {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}
.section-dark { background: var(--bg); }
.section-alt { background: var(--bg-section-alt); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-header p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-bright);
  border-color: rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
.btn-white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.btn-white-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo:hover { color: var(--text-bright); }
.logo-mark {
  background: linear-gradient(135deg, #ff6b00, #ff8533);
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text-bright); background: rgba(255,255,255,0.05); }
.nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 0, 0.08) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 0, 0.06) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(5%, -5%) scale(1.1); opacity: 1; }
}
.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
/* Hero entrance animations */
.hero-badge { animation: fadeSlideDown 0.6s ease both; }
.hero h1 { animation: fadeSlideDown 0.7s ease 0.1s both; }
.hero-subtitle { animation: fadeSlideDown 0.7s ease 0.2s both; }
.hero-actions { animation: fadeSlideDown 0.7s ease 0.3s both; }
.hero-browser { animation: fadeSlideUp 1s ease 0.5s both; }
.hero-tagline { animation: fadeSlideDown 0.7s ease 0.4s both; }

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 2rem;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.hero-tagline {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.hero-proof-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero-proof-card {
  text-align: left;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}
.hero-proof-title {
  display: inline-block;
  color: var(--text-bright);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.hero-proof-card p {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.55;
}

/* ---------- Hero Browser Mockup ---------- */
.hero-browser {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 80px rgba(255, 107, 0, 0.12), 0 0 0 1px rgba(255, 107, 0, 0.08);
  background: var(--bg-card);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 12px; height: 12px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.3rem 1rem;
  border-radius: 6px;
  font-family: 'Inter', monospace;
}
.hero-browser img { width: 100%; display: block; }
.hero-browser:hover {
  box-shadow: 0 24px 90px rgba(255, 107, 0, 0.2), 0 0 0 1px rgba(255, 107, 0, 0.15);
  transform: translateY(-4px);
  transition: all 0.4s ease;
}

/* ---------- Traction Section ---------- */
.traction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 1.25rem;
  align-items: start;
}
.traction-card,
.traction-steps {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.traction-card h3,
.traction-steps h3 {
  margin-bottom: 1rem;
}
.traction-card-highlight {
  border-color: rgba(255, 107, 0, 0.35);
  background: linear-gradient(150deg, rgba(255, 107, 0, 0.08), rgba(255, 107, 0, 0.02));
}
.traction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.traction-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-bright);
  font-size: 0.92rem;
}
.traction-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.traction-step {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.traction-step:last-of-type {
  margin-bottom: 1.2rem;
}
.traction-step span {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.traction-step p {
  font-size: 0.9rem;
}

/* ---------- Supports Section ---------- */
.supports {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 107, 0, 0.07), transparent 38%),
    radial-gradient(circle at 85% 75%, rgba(255, 107, 0, 0.05), transparent 35%),
    var(--bg);
}
.supports-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.supports-devices {
  position: relative;
  min-height: 430px;
}
.device {
  position: absolute;
  border: 1px solid var(--border-light);
  background: #101010;
  box-shadow: var(--shadow);
}
.device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device-desktop {
  width: 100%;
  max-width: 580px;
  height: 320px;
  left: 0;
  top: 0;
  border-radius: 18px;
  padding: 12px 12px 16px;
}
.device-header {
  height: 12px;
  width: 120px;
  border-radius: 999px;
  background: #2b2b2b;
  margin: 0 auto 10px;
}
.device-desktop .device-screen {
  border-radius: 10px;
}
.device-tablet {
  width: 250px;
  height: 340px;
  right: 40px;
  top: 58px;
  border-radius: 24px;
  padding: 12px;
  transform: rotate(-6deg);
  z-index: 2;
}
.device-tablet .device-screen {
  border-radius: 14px;
}
.device-phone {
  width: 155px;
  height: 315px;
  left: 35px;
  bottom: 0;
  border-radius: 28px;
  padding: 10px;
  z-index: 3;
}
.device-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 6px;
  border-radius: 999px;
  background: #2e2e2e;
  z-index: 5;
}
.device-phone .device-screen {
  border-radius: 18px;
}
.supports-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
.support-card:hover {
  border-color: rgba(255, 107, 0, 0.35);
}
.support-icon {
  min-width: 44px;
  height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.support-card h3 {
  font-size: 1rem;
  margin-bottom: 0.22rem;
}
.support-card p {
  font-size: 0.88rem;
}
.supports-tags {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.supports-tags span {
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.25);
  color: #ffb98a;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Impact Grid ---------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
}
.impact-card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.impact-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.impact-card h3 { margin-bottom: 0.5rem; }
.impact-card p { font-size: 0.95rem; }

/* ---------- Workflow Steps ---------- */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.workflow-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}
.workflow-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.workflow-number {
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}
.workflow-step:nth-child(2) .workflow-number { animation-delay: 0.3s; }
.workflow-step:nth-child(3) .workflow-number { animation-delay: 0.6s; }
.workflow-step:nth-child(4) .workflow-number { animation-delay: 0.9s; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(255, 107, 0, 0.5), 0 0 0 8px rgba(255, 107, 0, 0.08); }
}
.workflow-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.workflow-step h4 { margin-bottom: 0.4rem; }
.workflow-step p { font-size: 0.88rem; color: var(--text); }

/* ---------- Pain Punchline ---------- */
.pain-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.pain-punchline {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 3rem;
}

/* ---------- Origin Section ---------- */
.origin-section {
  background: var(--bg-section-alt);
}
.origin-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.origin-content p {
  font-size: 1.1rem;
  margin-top: 1rem;
  line-height: 1.8;
}
.origin-tagline {
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--orange) !important;
  margin-top: 2rem !important;
}

/* ---------- Gains Grid ---------- */
.gains-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.gains-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.gains-col h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.gains-less h3 { color: #ef4444; }
.gains-more h3 { color: #22c55e; }
.gains-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--text-bright);
}
.gains-icon {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ef4444;
  width: 24px;
  text-align: center;
}
.gains-icon-up { color: #22c55e; }

/* ---------- Modules Compact ---------- */
.modules-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.module-compact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}
.module-compact-card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.module-compact-card.active {
  border-color: rgba(255, 107, 0, 0.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(255,107,0,0.04));
}
.module-compact-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.module-compact-card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.module-compact-card p { font-size: 0.88rem; color: var(--text); margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(255,107,0,0.02));
  border-top: 1px solid rgba(255,107,0,0.15);
  border-bottom: 1px solid rgba(255,107,0,0.15);
}
.final-cta h2 { margin-bottom: 0.75rem; }
.final-cta p { font-size: 1.15rem; margin-bottom: 2rem; color: var(--text); }

/* ---------- Pain Points ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}
.pain-card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pain-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.pain-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.pain-card p { font-size: 0.92rem; }

/* ---------- Module Cards ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.module-card.active {
  border-color: rgba(255, 107, 0, 0.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(255,107,0,0.04));
}
.module-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  width: fit-content;
}
.module-status.operational { background: rgba(34,197,94,0.15); color: #22c55e; }
.module-status.dev { background: rgba(59,130,246,0.15); color: #3b82f6; }
.module-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.module-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.module-problem {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--orange);
}
.module-solution {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.module-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}
.module-features li {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.9rem;
}
.module-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.module-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

/* ---------- Sovereignty ---------- */
.sovereignty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.sovereignty-content h2 { margin-bottom: 1.25rem; }
.sovereignty-content > p { margin-bottom: 2rem; }
.sovereignty-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sov-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.sov-card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.sov-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.sov-card p { font-size: 0.85rem; }

.sov-compliance { display: flex; flex-direction: column; gap: 1.25rem; }
.sov-compliance-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.sov-compliance-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.sov-compliance-text h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.sov-compliance-text p { font-size: 0.85rem; }

/* ---------- Programme ---------- */
.programme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.programme-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: all var(--transition);
}
.benefit-card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-2px);
}
.benefit-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.benefit-card h4 { margin-bottom: 0.35rem; }
.benefit-card p { font-size: 0.88rem; }

.programme-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.step h4 { margin-bottom: 0.25rem; }
.step p { font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.contact-detail-icon { font-size: 1.2rem; }
.contact-detail a { color: var(--orange); }

form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text-bright); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  color: var(--text-bright);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { cursor: pointer; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; color: var(--text-muted); }
.footer-links a { color: var(--text); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--text-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.fleurdelis {
  color: #2563eb;
  font-weight: 700;
}
.fleurdelis.before {
  margin-right: 0.25rem;
}
.mapleleaf.before {
  margin-right: 0.28rem;
}
.quebec-signature .fleurdelis {
  margin-left: 0.15rem;
}
.quebec-signature .mapleleaf {
  margin-left: 0.12rem;
}
.media-disclaimer {
  margin: 1rem 0 0.35rem;
  font-size: 0.78rem;
  color: #8a8a8a;
  opacity: 0.9;
  text-align: center;
  line-height: 1.5;
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MODULE DETAIL PAGE STYLES
   ============================================================ */

/* --- Module Hero --- */
.module-hero {
  padding: 10rem 0 4rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 0, 0.08) 0%, transparent 60%);
}
.module-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.module-hero-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}
.module-hero-inner h1 { margin-bottom: 1rem; }
.module-hero-inner > p {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

/* --- Module Nav Preview --- */
.module-nav-preview {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.module-nav-pill {
  --pill-color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pill-color);
  background: color-mix(in srgb, var(--pill-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--pill-color) 25%, transparent);
  transition: all var(--transition);
}
.module-nav-pill:hover {
  background: color-mix(in srgb, var(--pill-color) 18%, transparent);
  transform: translateY(-1px);
}
.module-nav-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pill-color);
  flex-shrink: 0;
}

/* --- Module breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  justify-content: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--text-muted); }

/* --- Sub-modules grid --- */
.submodules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.submodule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}
.submodule-card:hover {
  border-color: rgba(255,107,0,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.submodule-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.submodule-card h3 .sub-icon { font-size: 1.3rem; }
.submodule-phase-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(30, 41, 59, 0.4);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.submodule-card > p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.section-progress-note {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #9ca3af;
}
.section-progress-note strong {
  color: #d1d5db;
  font-weight: 600;
}
.submodule-features {
  list-style: none;
}
.submodule-features li {
  position: relative;
  padding-left: 1.3rem;
  padding-bottom: 0.4rem;
  font-size: 0.88rem;
}
.submodule-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* --- Integration banner --- */
.integration-banner {
  background: var(--bg-card);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}
.integration-banner h3 { margin-bottom: 0.75rem; }
.integration-banner p { max-width: 600px; margin: 0 auto 1.5rem; }
.integration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.integration-tag {
  background: var(--orange-light);
  color: var(--orange);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.back-link:hover { color: var(--orange); }

/* --- CTA Section inside module pages --- */
.module-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255,107,0,0.06), transparent);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius);
  margin-top: 2rem;
}
.module-cta h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.module-cta p { max-width: 500px; margin: 0 auto 1.5rem; }
.module-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,13,13,0.98); backdrop-filter: blur(20px); padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-proof-grid { grid-template-columns: 1fr; }
  .traction-grid { grid-template-columns: 1fr; }
  .supports-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .supports-devices { min-height: 390px; }
  .device-desktop { max-width: 100%; }
  .device-tablet { right: 22px; top: 68px; width: 215px; height: 295px; }
  .device-phone { left: 20px; width: 140px; height: 285px; }
  .impact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .workflow-steps { grid-template-columns: 1fr 1fr; }
  .workflow-steps::before { display: none; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .pain-grid-4 { grid-template-columns: 1fr 1fr; }
  .gains-grid { grid-template-columns: 1fr; }
  .modules-compact { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .sovereignty-grid { grid-template-columns: 1fr; gap: 2rem; }
  .programme-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .submodules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .hero { padding: 6rem 0 3rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .hero-proof-card { padding: 0.95rem; }
  .traction-card, .traction-steps { padding: 1.2rem; }
  .supports-devices { min-height: 315px; }
  .device-desktop { height: 210px; padding: 9px 9px 12px; }
  .device-header { height: 8px; margin-bottom: 7px; width: 80px; }
  .device-tablet { width: 160px; height: 225px; right: 0; top: 45px; border-radius: 18px; padding: 8px; }
  .device-phone { width: 108px; height: 210px; left: 0; bottom: 5px; border-radius: 20px; padding: 7px; }
  .device-notch { width: 42px; height: 4px; top: 6px; }
  .support-card { padding: 0.9rem; }
  .supports-tags span { font-size: 0.74rem; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-grid-4 { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
  .programme-benefits { grid-template-columns: 1fr; }
  .sovereignty-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .module-hero { padding: 7rem 0 3rem; }
}

/* ============================================================
   WOW-like homepage layout (structure only)
   ============================================================ */

body.wow-layout .container {
  max-width: 1320px;
}

body.wow-layout .overline,
body.wow-layout .nav-links a,
body.wow-layout .btn { letter-spacing: 0.04em; }

body.wow-layout .nav-links a {
  text-transform: uppercase;
  font-size: 0.85rem;
}

body.wow-layout .section {
  padding: 5rem 0;
}

body.wow-layout .section-header {
  text-align: left;
  max-width: 980px;
  margin: 0 0 2.4rem;
}

body.wow-layout .hero {
  min-height: 100vh;
  padding: 8.2rem 0 3.4rem;
  background:
    radial-gradient(circle at 18% 72%, rgba(255, 107, 0, 0.17), transparent 44%),
    radial-gradient(circle at 84% 28%, rgba(255, 107, 0, 0.09), transparent 42%),
    linear-gradient(180deg, #090909 0%, #0b0907 58%, #090807 100%);
}

body.wow-layout .hero::before {
  display: none;
}

body.wow-layout .hero-content {
  max-width: none;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  grid-template-areas:
    "badge browser"
    "title browser"
    "subtitle browser"
    "actions browser"
    "tagline browser"
    "stats browser";
  gap: 1rem 2.2rem;
  align-items: start;
}

body.wow-layout .hero-badge {
  grid-area: badge;
  margin-bottom: 0.2rem;
}

body.wow-layout .hero h1 {
  grid-area: title;
}

body.wow-layout .hero-subtitle {
  grid-area: subtitle;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: 95%;
}

body.wow-layout .hero-actions {
  grid-area: actions;
  margin-top: 0.45rem;
  justify-content: flex-start;
}

body.wow-layout .hero-tagline {
  grid-area: tagline;
  margin-top: 0.25rem;
}

body.wow-layout .hero-browser {
  grid-area: browser;
  margin-top: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #0a0a0a;
  position: relative;
}

body.wow-layout .hero-visual {
  padding: 1rem;
  background:
    radial-gradient(circle at 18% 88%, rgba(34, 197, 94, 0.08), transparent 55%),
    radial-gradient(circle at 85% 14%, rgba(59, 130, 246, 0.08), transparent 52%),
    #07090d;
}

body.wow-layout .hero-video-shell {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  min-height: 338px;
  background: #090c12;
}

body.wow-layout .hero-video {
  width: 100%;
  height: 100%;
  min-height: 338px;
  display: block;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transition: opacity 0.32s ease;
}

body.wow-layout .hero-video.is-switching {
  opacity: 0.45;
}

body.wow-layout .hero-video-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0) 0%, rgba(7, 9, 13, 0.9) 74%);
}

body.wow-layout .hero-video-kicker {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ced6e4;
  margin-bottom: 0.32rem;
}

body.wow-layout .hero-video-overlay strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #ffffff;
}

body.wow-layout .hero-module-pills {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.wow-layout .module-pill {
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 18, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d5dbe7;
}

body.wow-layout .pill-gmao { border-color: rgba(245, 158, 11, 0.48); color: #f8c67b; }
body.wow-layout .pill-stock { border-color: rgba(34, 197, 94, 0.48); color: #93e6ad; }
body.wow-layout .pill-production { border-color: rgba(139, 92, 246, 0.48); color: #c4b2ff; }
body.wow-layout .pill-rh { border-color: rgba(6, 182, 212, 0.48); color: #92e5f2; }
body.wow-layout .pill-qualite { border-color: rgba(236, 72, 153, 0.48); color: #f5a5cd; }
body.wow-layout .pill-ventes { border-color: rgba(59, 130, 246, 0.48); color: #a8ccff; }

body.wow-layout .hero-proof-grid {
  display: none;
}

body.wow-layout .hero-stats {
  grid-area: stats;
  margin-top: 0.3rem;
  padding-top: 1.5rem;
  max-width: 95%;
}

body.wow-layout .traction .section-header,
body.wow-layout #modules .section-header,
body.wow-layout #workflow .section-header,
body.wow-layout #contact .section-header {
  max-width: 100%;
}

body.wow-layout .traction-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.wow-layout .traction-card,
body.wow-layout .traction-steps {
  height: 100%;
}

body.wow-layout .traction-steps .btn {
  margin-top: 0.8rem;
}

body.wow-layout .supports-layout {
  grid-template-columns: 1.25fr 1fr;
  gap: 2.4rem;
  align-items: center;
}

body.wow-layout .impact-grid,
body.wow-layout .workflow-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.wow-layout .workflow-step:last-child {
  grid-column: 2;
}

body.wow-layout .modules-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.wow-layout .sovereignty-grid,
body.wow-layout .programme-grid,
body.wow-layout .contact-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

body.wow-layout .footer-inner {
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
}

@media (max-width: 1180px) {
  body.wow-layout .hero-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "title"
      "subtitle"
      "actions"
      "tagline"
      "browser"
      "stats";
    text-align: center;
  }

  body.wow-layout .hero-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  body.wow-layout .hero-actions {
    justify-content: center;
  }

  body.wow-layout .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.wow-layout .workflow-step:last-child {
    grid-column: auto;
  }

  body.wow-layout .modules-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.wow-layout .sovereignty-grid,
  body.wow-layout .programme-grid,
  body.wow-layout .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 968px) {
  body.wow-layout .hero-video-shell,
  body.wow-layout .hero-video {
    min-height: 260px;
  }

  body.wow-layout .hero-video-overlay strong {
    font-size: 0.94rem;
  }

  body.wow-layout .module-pill {
    font-size: 0.62rem;
    padding: 0.3rem 0.56rem;
  }

  body.wow-layout .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.wow-layout .traction-grid,
  body.wow-layout .impact-grid,
  body.wow-layout .workflow-steps,
  body.wow-layout .modules-compact {
    grid-template-columns: 1fr;
  }
}
