/* =========================================================================
   Cybereva — Main stylesheet
   Single source of truth for the marketing site
   ========================================================================= */

/* ============ DARK (default) ============ */
:root, [data-theme="dark"] {
  --bg: #050b18;
  --bg-2: #0a1428;
  --surface: #0f1a2e;
  --surface-2: #142339;
  --surface-3: #1a2c47;
  --border: #1e2d47;
  --border-bright: #2a3d5c;
  --text: #e8eef7;
  --text-2: #94a3b8;
  --muted: #5a6478;
  --accent: #00d9ff;
  --accent-2: #4d8eff;
  --accent-glow: rgba(0, 217, 255, 0.4);
  --accent-soft: rgba(0, 217, 255, 0.08);
  --warn: #ff6b35;
  --good: #00ff9d;
  --hex-stroke: rgba(30, 45, 71, 0.6);
  --grain-opacity: 0.018;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ============ LIGHT ============ */
[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --surface-3: #e3e9f1;
  --border: #d8dfe8;
  --border-bright: #aab5c5;
  --text: #0a1428;
  --text-2: #4a5a72;
  --muted: #8a96a8;
  --accent: #0099cc;
  --accent-2: #2563eb;
  --accent-glow: rgba(0, 153, 204, 0.2);
  --accent-soft: rgba(0, 153, 204, 0.06);
  --warn: #d94a1a;
  --good: #059669;
  --hex-stroke: rgba(170, 181, 197, 0.5);
  --grain-opacity: 0;
  --shadow: 0 30px 80px rgba(10, 20, 40, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background 0.4s, color 0.4s;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><path d='M30 1L58 17.32V51.96L30 68.28L2 51.96V17.32z' fill='none' stroke='%23000' stroke-width='0.6' stroke-opacity='0.15'/></svg>");
  background-size: 60px 52px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
[data-theme="light"] body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><path d='M30 1L58 17.32V51.96L30 68.28L2 51.96V17.32z' fill='none' stroke='%23aab5c5' stroke-width='0.6' opacity='0.4'/></svg>");
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 50%, rgba(0, 217, 255, var(--grain-opacity)) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

main, nav, footer { position: relative; z-index: 2; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

.accent-glow-bg {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}
[data-theme="light"] .accent-glow-bg { opacity: 0.5; }

/* === BINARY STREAM ===
   z-index: 1 → behind main (z-index 2). Visible on body background and in
   empty margins, never crosses or obscures text/dashboards/cards. */
.binary-stream {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: screen;
}
[data-theme="light"] .binary-stream {
  opacity: 0.18;
  mix-blend-mode: multiply;
}
[data-theme="light"] .binary-col {
  color: #aab9c9;
  font-weight: 400;
  text-shadow: none;
}
.binary-col {
  position: absolute;
  top: -100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.4;
  white-space: pre;
  animation: fall linear infinite;
  text-shadow: 0 0 6px var(--accent);
}
@keyframes fall {
  to { transform: translateY(220vh); }
}

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s;
  filter: drop-shadow(0 0 14px var(--accent-glow));
}
.logo:hover .logo-img { transform: translateY(-1px); }

/* Two logo files : light variant (dark text) for light theme,
   dark variant (light text) for dark theme. CSS toggles which one is visible. */
.logo-img.is-dark { display: none; }
[data-theme="dark"] .logo-img.is-light { display: none; }
[data-theme="dark"] .logo-img.is-dark { display: block; }

.logo-img-footer { height: 64px; border-radius: 14px; }
@media (max-width: 720px) {
  .logo-img { height: 34px; border-radius: 8px; }
  .logo-img-footer { height: 48px; border-radius: 10px; }
}

.logo-mark {
  width: 32px; height: 36px;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  filter: blur(14px);
  opacity: 0.35;
  z-index: -1;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toggles */
.toggle-group {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.toggle-btn {
  padding: 5px 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.2s;
  font-family: inherit;
  font-size: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
}
.toggle-btn:hover { color: var(--text-2); }
.toggle-btn.active {
  background: var(--accent);
  color: var(--bg);
}
.toggle-btn svg { width: 12px; height: 12px; }

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--good);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--good);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
[data-theme="light"] .btn { color: #fff; }
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
[data-theme="light"] .btn-ghost { color: var(--text); }
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

/* === HERO === */
.hero { padding: 150px 0 60px; position: relative; }
.hero .accent-glow-bg { top: 100px; right: -200px; }

.coords {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.coords-tl { top: 130px; left: 32px; }
.coords-br { bottom: 60px; right: 32px; }

.hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge.accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.badge .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: end;
  position: relative;
}

h1.hero-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 7.5vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 32px;
}
h1.hero-title .accent {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  background: var(--accent);
  vertical-align: baseline;
  margin-left: 8px;
  animation: blink 1s steps(2) infinite;
  box-shadow: 0 0 12px var(--accent);
  transform: translateY(0.05em);
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 16px;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow);
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: var(--warn); }
.terminal-dots span:nth-child(2) { background: #f0c84a; }
.terminal-dots span:nth-child(3) { background: var(--good); }

.terminal-body {
  padding: 16px 18px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}
.term-line { display: block; }
.term-prompt { color: var(--accent); }
.term-cmd { color: var(--text); }
.term-key { color: var(--accent-2); }
.term-val { color: var(--good); }
.term-warn { color: var(--warn); }
.term-mute { color: var(--muted); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.35s; }
.reveal-4 { animation-delay: 0.5s; }
.reveal-5 { animation-delay: 0.65s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* === MARQUEE === */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 60px 0 0;
  overflow: hidden;
  background: var(--bg-2);
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Manrope', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee-item::after {
  content: '◇';
  color: var(--accent);
  font-size: 14px;
  margin-left: 60px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* === SECTIONS === */
section { padding: 100px 0; position: relative; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.section-header-left { max-width: 760px; }
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.12em;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-desc {
  color: var(--text-2);
  font-size: 16px;
  max-width: 380px;
  text-align: right;
}

/* === BENTO === */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 12px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent), 0 0 40px var(--accent-soft);
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bento-card:hover::before { opacity: 1; }

.card-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.card-tag-num { color: var(--accent); }

.card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.card-desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
.card-arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 24px;
  transition: all 0.3s;
  align-self: flex-start;
  color: var(--text);
}
.bento-card:hover .card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: rotate(45deg);
}
[data-theme="light"] .bento-card:hover .card-arrow { color: #fff; }

.b-large { grid-column: span 4; grid-row: span 2; background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%); }
.b-large .card-title { font-size: 56px; }
.b-large .card-desc { font-size: 16px; max-width: 480px; }
.b-medium { grid-column: span 2; grid-row: span 2; }
.b-medium .card-title { font-size: 30px; }
.b-small { grid-column: span 2; grid-row: span 1; }

.b-large-deco {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
}
.b-large-deco::before, .b-large-deco::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.b-large-deco::before { inset: 50px; }
.b-large-deco::after { inset: 100px; border-color: var(--accent); opacity: 0.4; }
.b-large-deco-cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.b-large-deco-cross::before, .b-large-deco-cross::after {
  content: '';
  position: absolute;
  background: var(--border);
}
.b-large-deco-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.b-large-deco-cross::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.b-large-deco-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(0, 217, 255, 0.45) 340deg, transparent 360deg);
  animation: sweep 4.5s linear infinite;
  pointer-events: none;
}
[data-theme="light"] .b-large-deco-sweep {
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(0, 153, 204, 0.35) 340deg, transparent 360deg);
}
@keyframes sweep { to { transform: rotate(360deg); } }
.b-large-deco-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: blip 3s ease-in-out infinite;
}
.b-large-deco-dot:nth-child(4) { top: 28%; left: 62%; animation-delay: 0s; }
.b-large-deco-dot:nth-child(5) { top: 65%; left: 38%; animation-delay: 1s; }
.b-large-deco-dot:nth-child(6) { top: 48%; left: 78%; animation-delay: 2s; }
@keyframes blip {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

/* === GOV DASHBOARD === */
.gov-dashboard {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.gov-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.gov-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.gov-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.gov-source .accent { color: var(--accent); }

.gov-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
}
.gov-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.gov-card:hover { border-color: var(--accent); }
.gov-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.gov-card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.gov-card-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gov-radar-svg {
  width: 100%;
  height: auto;
  max-height: 380px;
  display: block;
  margin: 0 auto;
}
.gov-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.gov-axis { stroke: var(--border); stroke-width: 1; }
.gov-target {
  fill: rgba(77, 142, 255, 0.08);
  stroke: var(--accent-2);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
[data-theme="light"] .gov-target { fill: rgba(37, 99, 235, 0.08); }
.gov-current {
  fill: rgba(0, 217, 255, 0.18);
  stroke: var(--accent);
  stroke-width: 2;
}
[data-theme="light"] .gov-current { fill: rgba(0, 153, 204, 0.16); }
.gov-vertex {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}
.gov-radar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  fill: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gov-center-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: var(--muted);
  letter-spacing: 0.15em;
}
.gov-center-score {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 36px;
  fill: var(--text);
  letter-spacing: -0.04em;
}

.gov-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.gov-leg-dot {
  display: inline-block;
  width: 12px; height: 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}
.gov-leg-current { background: var(--accent); }
.gov-leg-target { background: transparent; border: 1.5px dashed var(--accent-2); }

.gov-trend-svg {
  width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
}
.gov-grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; }
.gov-axis-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: var(--muted);
  text-transform: uppercase;
}
.gov-target-line {
  stroke: var(--accent-2);
  stroke-width: 1;
  stroke-dasharray: 5 3;
  fill: none;
  opacity: 0.6;
}
.gov-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px var(--accent-glow));
}
.gov-point {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
}
.gov-point-now {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
}
.gov-now-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  fill: var(--accent);
  font-weight: 600;
}

.gov-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.gov-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.gov-stat-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.gov-stat-value.accent { color: var(--accent); }
.gov-stat-value.good { color: var(--good); }
.gov-stat-value .small { font-size: 14px; color: var(--text-2); font-weight: 400; }

@media (max-width: 1024px) { .gov-dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .gov-stats { grid-template-columns: 1fr; gap: 12px; }
  .gov-card { padding: 20px; }
}

/* === PRODUITS === */
.produits {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cybergo-showcase {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.ide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
}
.ide-tabs { display: flex; gap: 0; }
.ide-tab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  border-radius: 4px 4px 0 0;
  margin-right: 2px;
}
.ide-tab.active {
  background: var(--surface-2);
  color: var(--accent);
  border-color: var(--accent);
}

.ide-body {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  min-height: 420px;
}
.ide-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.ide-folder {
  padding: 4px 16px;
  color: var(--text-2);
  cursor: pointer;
}
.ide-folder.active { color: var(--accent); background: var(--accent-soft); }
.ide-folder-children { padding-left: 16px; }
.ide-file {
  padding: 3px 16px 3px 32px;
  color: var(--muted);
  font-size: 11px;
}
.ide-file.active { color: var(--accent); }
.ide-file::before { content: '└─ '; opacity: 0.5; }

.ide-main {
  padding: 24px;
  background: var(--surface);
  overflow: hidden;
}
.ide-main-title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--text);
}
.ide-main-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.audit-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.audit-row-name { color: var(--text-2); }
.audit-row-status { display: flex; align-items: center; gap: 6px; }
.audit-bar {
  width: 60px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.audit-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transform-origin: left;
}
.audit-pct { color: var(--accent); min-width: 32px; text-align: right; }

.ide-panel {
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.panel-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.panel-section:last-child { border-bottom: none; }
.panel-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  margin-bottom: 8px;
}
.panel-value {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
}
.panel-value.accent { color: var(--accent); }
.panel-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  margin-bottom: 4px;
}
.panel-row span:last-child { color: var(--text); }

.ide-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ide-statusbar-left, .ide-statusbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.product-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}
.product-name-large {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}
.product-name-large em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product-name-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-desc-block {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.product-desc-text {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}
.product-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.product-feature {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
}

.corpus-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.corpus-card:hover { border-color: var(--accent); }

.corpus-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 4px;
}
.corpus-name em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.corpus-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.corpus-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.file-tree {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
}
.file-tree-line { color: var(--text-2); }
.file-tree-line.folder { color: var(--accent); }
.file-tree-line.file { color: var(--muted); }
.file-tree-tag {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.ft-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === SOC === */
.soc { position: relative; overflow: hidden; }
.soc .accent-glow-bg { top: 50%; left: -200px; transform: translateY(-50%); }

.soc-header { text-align: center; margin-bottom: 60px; }
.soc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}
.soc-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--text);
}
.soc-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.soc-desc {
  color: var(--text-2);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.soc-dashboard {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.dash-header-left { display: flex; align-items: center; gap: 16px; }
.dash-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-2);
  font-size: 11px;
}
.dash-title-mssp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.05em;
}
.dash-title-mssp .accent { color: var(--accent); }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
}
.dash-cell {
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dash-cell:nth-child(4n) { border-right: none; }
.dash-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.dash-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}
.dash-value.accent { color: var(--accent); }
.dash-value.good { color: var(--good); }
.dash-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
}
.dash-sub.up { color: var(--good); }
.dash-sub.warn { color: var(--warn); }

.dash-chart {
  grid-column: span 2;
  padding: 24px;
  border-right: 1px solid var(--border);
}
.dash-chart-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 2px 2px 0 0;
  opacity: 0.8;
  transition: height 0.6s ease, opacity 0.2s;
  min-height: 4px;
}
.chart-bar:hover { opacity: 1; }

.dash-events { grid-column: span 2; padding: 24px; }
.events-list {
  list-style: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
}
.events-list li {
  display: flex;
  gap: 12px;
  color: var(--text-2);
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.events-list li:last-child { border-bottom: none; }
.ev-time { color: var(--muted); min-width: 60px; }
.ev-tag-warn { color: var(--warn); }
.ev-tag-good { color: var(--good); }
.ev-tag-info { color: var(--accent); }

.soc-features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.soc-feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.3s;
}
.soc-feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.soc-feature-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--accent-soft);
}
.soc-feature-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 6px;
}
.soc-feature-desc {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

/* === APPROACH === */
.approach { background: var(--bg-2); border-top: 1px solid var(--border); }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.pillar {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--border);
  position: relative;
}
.pillar:last-child { border-right: none; }
.pillar:not(:first-child) { padding-left: 32px; }
.pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.pillar-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}
.pillar-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
}

/* === EXPERTISE === */
.expertise-list { border-top: 1px solid var(--border); }
.exp-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 60px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.exp-row::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-row:hover::before { transform: scaleX(1); }
.exp-row:hover .exp-name { color: var(--accent); padding-left: 12px; }
.exp-row:hover .exp-arrow { background: var(--accent); color: var(--bg); border-color: var(--accent); }
[data-theme="light"] .exp-row:hover .exp-arrow { color: #fff; }

.exp-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
.exp-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: all 0.4s;
}
.exp-desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  max-width: 480px;
}
.exp-arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.3s;
  color: var(--text);
}

/* === CTA === */
.cta {
  padding: 120px 0;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}
.cta-content { position: relative; z-index: 2; }
.cta-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.cta-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-desc {
  color: var(--text-2);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 48px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 44px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand .logo { margin-bottom: 24px; }
.footer-tag {
  color: var(--text-2);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom-right { display: flex; gap: 24px; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted); font-size: 11px; text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

.wordmark {
  font-family: 'Orbitron', 'Manrope', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-bright);
  text-align: center;
  margin: 18px 0 0;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}
.wordmark em {
  font-style: normal;
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
}

/* ============================================================
   PAGES INTÉRIEURES — patterns réutilisables
   ============================================================ */

.page-hero {
  padding: 160px 0 60px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.page-hero .accent-glow-bg { top: 80px; right: -200px; }
.page-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 900px;
  padding-bottom: 0.08em;
}
.page-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0.06em 0.14em 0.18em 0;
  margin-right: -0.04em;
  line-height: 1.05;
}
.page-hero .lead {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 32px;
}
.page-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  display: inline-block;
}
.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-bright); margin: 0 8px; }

.prose {
  max-width: 760px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
}
.prose h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 48px 0 16px;
}
.prose h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin: 32px 0 12px;
}
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 16px 0 16px 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.prose .placeholder {
  display: inline-block;
  padding: 1px 8px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-field input, .contact-field textarea, .contact-field select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}
.contact-field input:focus, .contact-field textarea:focus, .contact-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-field textarea { min-height: 120px; resize: vertical; }
.contact-info {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 32px;
}
.contact-info h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  margin-bottom: 16px;
}
.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-info-value { color: var(--text); font-size: 15px; }
.contact-info-value a { color: var(--accent); text-decoration: none; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.3s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.news-card-tag { color: var(--accent); }
.news-card-body { padding: 24px; }
.news-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.news-card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.news-card a {
  color: var(--accent);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   MATURITY DASHBOARD (CYBERGO 360 / Corpus Doc style)
   ============================================================ */
.mat-dash {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.mat-dash-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.mat-dash-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.mat-dash-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mat-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.mat-kpi {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
}
.mat-kpi::after {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 3px solid var(--mat-color, var(--accent));
  border-radius: 10px 0 0 10px;
  pointer-events: none;
}
.mat-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mat-kpi-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.mat-kpi-letter {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--mat-color, var(--accent));
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  display: grid;
  place-items: center;
}
[data-theme="light"] .mat-kpi-letter { color: #fff; }
.mat-kpi-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.mat-kpi-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.mat-kpi-target {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-2);
  margin-left: 6px;
  font-weight: 400;
}
.mat-kpi-meta {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-2);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.mat-kpi-meta strong { color: var(--text); font-weight: 600; }

.mat-scale {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mat-scale-label { color: var(--text); margin-right: 4px; }
.mat-scale-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mat-scale-dot::before {
  content: attr(data-level);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--mat-dot, var(--muted));
  color: var(--bg);
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
[data-theme="light"] .mat-scale-dot::before { color: #fff; }

.mat-charts {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
}
.mat-chart {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.mat-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.mat-chart-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.mat-chart-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mat-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.mat-chart-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.mat-leg-dot {
  display: inline-block;
  width: 14px; height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .mat-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .mat-charts { grid-template-columns: 1fr; }
  .mat-dash .feature-grid[style*="repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .mat-kpi-row { grid-template-columns: 1fr; }
  .mat-dash { padding: 18px; }
  .mat-dash .feature-grid[style*="repeat(5"] { grid-template-columns: 1fr !important; }
}

/* Cookie consent is handled by Cookiebot (loaded in <head>) — no in-page banner CSS. */

/* ============================================================
   PROGRAM DETAIL (formation-et-sensibilisation)
   ============================================================ */
.program-day-trigger {
  font: inherit;
  background: var(--surface);
  position: relative;
}
.program-day-trigger:hover { border-color: var(--mat-color, var(--accent)) !important; transform: translateY(-2px); }
.program-day-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.program-day-trigger::after {
  content: '↓';
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--mat-color, var(--accent));
  opacity: 0.6;
  transition: opacity 0.2s;
}
.program-day-trigger:hover::after { opacity: 1; }

.program-detail {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
  animation: progReveal 0.4s ease-out;
}
@keyframes progReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.program-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.program-meta-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.program-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.program-meta-block ul {
  list-style: none;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.program-meta-block li { padding: 3px 0; }
.program-meta-block strong { color: var(--text); font-weight: 600; }
.program-meta-block small { color: var(--muted); font-size: 11px; }

.program-prez,
.program-pedago {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 18px 0;
}
.program-prez h3,
.program-pedago h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.program-prez p,
.program-pedago p {
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 10px;
  font-size: 14px;
}
.program-prez ul {
  list-style: none;
  margin: 12px 0;
}
.program-prez li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text-2);
  line-height: 1.5;
  font-size: 14px;
}
.program-prez li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

.program-day {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-left: 4px solid var(--mat-color, var(--accent));
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}
.program-day[data-color="#4d8eff"] { border-left-color: #4d8eff; }
.program-day[data-color="#00ff9d"] { border-left-color: #00ff9d; }
.program-day[data-color="#f0c84a"] { border-left-color: #f0c84a; }
.program-day[data-color="#ff6b35"] { border-left-color: #ff6b35; }
.program-day[data-color="#a855f7"] { border-left-color: #a855f7; }
.program-day-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap;
}
.program-day-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--accent);
}
.program-day-head h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.program-day-half {
  margin-top: 12px;
}
.program-day-half h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.program-day-half ul {
  list-style: none;
  margin-left: 0;
}
.program-day-half li {
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.program-day-half li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.program-day-half li strong { color: var(--text); font-weight: 600; }
.program-day-half li em {
  color: var(--accent);
  font-style: italic;
  font-size: 12.5px;
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--accent);
  margin-left: 4px;
  display: inline-block;
}

.program-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 80%);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .program-meta-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */

.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  z-index: 90;
  display: grid;
  place-items: center;
  color: var(--bg);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.3);
}
[data-theme="light"] .chat-fab { color: #fff; }
.chat-fab:hover { transform: translateY(-2px) scale(1.05); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .chat-fab-close { display: none; }
.chat-fab.open .chat-fab-icon { display: none; }
.chat-fab.open .chat-fab-close { display: block; }
.chat-fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: chatPulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes chatPulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.chat-teaser {
  position: fixed;
  bottom: 100px;
  right: 24px;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
  z-index: 89;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.chat-teaser.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-teaser::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 22px;
  width: 16px;
  height: 16px;
  background: var(--surface);
  border-right: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
  transform: rotate(45deg);
}
.chat-teaser-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
}
.chat-teaser-close:hover { color: var(--text); }

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 130px);
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s;
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-header-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.chat-header-logo svg { width: 18px; height: 20px; }
.chat-header-logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px; height: 10px;
  background: var(--good);
  border-radius: 50%;
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 6px var(--good);
}
.chat-header-info { display: flex; flex-direction: column; min-width: 0; }
.chat-header-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.chat-header-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--good);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chat-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-close:hover { background: var(--surface-2); color: var(--text); border-color: var(--accent); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
  animation: chatMsgIn 0.25s ease-out;
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg-bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}
[data-theme="light"] .chat-msg-user { color: #fff; }
.chat-msg-system {
  align-self: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 100px;
  max-width: 90%;
  text-align: center;
}
.chat-msg-warning {
  align-self: stretch;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid var(--warn);
  color: var(--warn);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg-warning a { color: var(--warn); font-weight: 600; }

.chat-typing {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  display: flex;
  gap: 4px;
}
.chat-typing span {
  width: 6px; height: 6px;
  background: var(--text-2);
  border-radius: 50%;
  animation: chatDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px;
  margin-top: 4px;
}
.chat-qr-btn {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-qr-btn:hover, .chat-qr-btn:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.chat-qr-btn.urgent {
  border-color: var(--warn);
  color: var(--warn);
}
.chat-qr-btn.urgent:hover { background: rgba(255, 107, 53, 0.1); }

.chat-form-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  align-self: flex-start;
  width: 92%;
}
.chat-form-fields .chat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.chat-form-fields .chat-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-phone-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.chat-phone-prefix {
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  display: grid;
  place-items: center;
  min-width: 56px;
}
.chat-phone-row input { flex: 1; }
.chat-form-fields input, .chat-form-fields select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  width: 100%;
}
.chat-form-fields input:focus, .chat-form-fields select:focus {
  outline: none;
  border-color: var(--accent);
}
.chat-form-fields label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.chat-form-error {
  color: var(--warn);
  font-size: 11px;
  margin-top: -2px;
}
.chat-form-submit {
  margin-top: 6px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.chat-form-submit:hover { box-shadow: 0 0 14px var(--accent-glow); }
.chat-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
[data-theme="light"] .chat-form-submit { color: #fff; }

.chat-consent {
  align-self: stretch;
  background: var(--surface);
  border: 1px dashed var(--border-bright);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.45;
}
.chat-consent a { color: var(--accent); }

.chat-footer {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  gap: 8px;
  background: var(--surface);
  flex-shrink: 0;
}
.chat-footer-hint {
  justify-content: center;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  text-align: center;
}
.chat-input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 14px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  resize: none;
  max-height: 100px;
  line-height: 1.4;
  transition: border-color 0.2s;
}
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-input:disabled { opacity: 0.6; }
.chat-send {
  background: var(--accent);
  color: var(--bg);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-send:hover:not(:disabled) { transform: rotate(-15deg); box-shadow: 0 0 14px var(--accent-glow); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-send svg { width: 16px; height: 16px; }
[data-theme="light"] .chat-send { color: #fff; }

@media (max-width: 600px) {
  .chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .chat-fab { bottom: 16px; right: 16px; }
  .chat-teaser { right: 16px; bottom: 86px; max-width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .chat-panel { transition: none; }
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .ide-body { grid-template-columns: 1fr; }
  .ide-sidebar { display: none; }
  .ide-panel { border-left: none; border-top: 1px solid var(--border); }
  .product-desc-block { grid-template-columns: 1fr; gap: 24px; }
  .corpus-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .b-large { grid-column: span 4; }
  .b-medium { grid-column: span 2; }
  .b-small { grid-column: span 2; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-cell:nth-child(2n) { border-right: none; }
  .dash-cell:nth-child(2n+1) { border-right: 1px solid var(--border); }
  .dash-chart, .dash-events { grid-column: span 2; border-right: none; }
  .soc-features { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 0 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-status .status-pill { display: none; }
  .toggle-btn span:not(.icon) { display: none; }
  .hero { padding: 120px 0 60px; }
  .coords { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-desc { text-align: left; }
  .bento { grid-template-columns: 1fr; }
  .b-large, .b-medium, .b-small { grid-column: span 1; }
  .product-name-large { font-size: 48px; }
  .corpus-name { font-size: 40px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-cell { border-right: none !important; }
  .dash-chart, .dash-events { grid-column: span 1; }
  .soc-features { grid-template-columns: 1fr; }
  .exp-row { grid-template-columns: 50px 1fr 40px; gap: 12px; }
  .exp-desc { display: none; }
  .exp-name { font-size: 22px; }
  .pillar-title { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .feature-grid, .news-grid { grid-template-columns: 1fr; }
}

/* italique + gradient text-clip — réserver l'espace droite ET bas pour descenders ('g', 'p', 'q', 'y') */
h1.hero-title .accent,
.section-title em,
.soc-title em,
.cta-title em,
.product-name-large em,
.corpus-name em,
.wordmark em,
.pillar-title,
.page-hero h1 em {
  display: inline-block;
  padding: 0.06em 0.14em 0.18em 0;
  margin-right: -0.04em;
  line-height: 1.05;
}
/* Same fix for h1/h2 containers — keep enough vertical room. */
h1.hero-title,
.section-title,
.soc-title,
.cta-title,
.product-name-large,
.corpus-name,
.page-hero h1 { line-height: 1.02; padding-bottom: 0.06em; }

::selection { background: var(--accent); color: var(--bg); }
[data-theme="light"] ::selection { color: #fff; }
