/* ============================================
   SignaleX NexSIGN — Global Styles
   Dark theme + Orange accent
   ============================================ */

:root {
  /* Brochure colors: deep navy + white + light gray */
  --color-navy: #1B2064;
  --color-navy-dark: #121847;
  --color-navy-light: #2A3180;
  --color-bg: #ffffff;
  --color-bg-elevated: #f4f6fa;
  --color-bg-card: #ffffff;
  --color-bg-light: #f8f9fc;
  --color-bg-navy: #1B2064;
  --color-surface: #eef0f6;
  --color-border: #d8dce8;
  --color-border-light: #e8ebf2;
  --color-text: #1B2064;
  --color-text-secondary: #5a6080;
  --color-text-muted: #8890a8;
  --color-text-on-navy: #ffffff;
  --color-accent: #1B2064;
  --color-accent-hover: #2A3180;
  --color-accent-glow: rgba(27, 32, 100, 0.12);
  --color-cta: #ff6a00;
  --color-cta-hover: #e85d00;
  --color-success: #22c55e;
  --color-danger: #ef4444;
  --color-white: #ffffff;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(27,32,100,0.08);
  --shadow-md: 0 4px 16px rgba(27,32,100,0.1);
  --shadow-lg: 0 8px 30px rgba(27,32,100,0.15);
  --shadow-glow: 0 0 40px rgba(27,32,100,0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--color-navy); color: white; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Container ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-navy);
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(27,32,100,0.08);
  border-radius: 20px;
  border: 1px solid rgba(27,32,100,0.12);
}
/* Navy section tag variant */
.section-navy .section-tag,
.hero .section-tag {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}
.section-subtitle {
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 640px;
  margin: 12px auto 0;
}
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }

/* ---- Sections ---- */
section { padding: 80px 0; }
.section-dark, .section-navy { background: var(--color-navy); color: var(--color-text-on-navy); }
.section-navy h2, .section-navy h3 { color: var(--color-white); }
.section-navy p, .section-navy .section-subtitle { color: rgba(255,255,255,0.7); }
.section-light { background: var(--color-bg-light); }
.section-elevated { background: var(--color-bg-elevated); }

@media (max-width: 768px) {
  section { padding: 56px 0; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-navy-light);
  box-shadow: 0 4px 20px rgba(27,32,100,0.3);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }
/* Orange CTA variant — for "Demander une démo" */
.btn-cta, .header-cta {
  background: var(--color-cta) !important;
  color: var(--color-white) !important;
}
.btn-cta:hover, .header-cta:hover {
  background: var(--color-cta-hover) !important;
  box-shadow: 0 4px 20px rgba(255,106,0,0.35) !important;
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
}
/* White variant for navy sections */
.section-navy .btn-secondary,
.hero .btn-secondary {
  color: white;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}
.section-navy .btn-secondary:hover,
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: white;
  color: white;
}
.btn-lg { padding: 18px 40px; font-size: 1.1rem; border-radius: var(--radius-md); }
.btn-primary.btn-lg {
  box-shadow: 0 4px 16px rgba(27,32,100,0.25);
}
.btn-primary.btn-lg:hover {
  box-shadow: 0 8px 30px rgba(27,32,100,0.35);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
/* On navy hero, header links are white */
.header .nav-link { color: rgba(255,255,255,0.8); }
.header .nav-link:hover, .header .nav-link.active { color: #fff; }
.header.scrolled .nav-link { color: var(--color-text-secondary); }
.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active { color: var(--color-navy); }
.header.scrolled .header-logo svg { fill: var(--color-navy); }
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-logo svg { height: 28px; transition: var(--transition); }
.header-logo:hover svg { opacity: 0.8; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--color-text); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cta);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-cta { font-size: 0.8rem !important; padding: 8px 20px !important; }

/* ---- Mobile Menu ---- */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--color-white);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  border-left: 1px solid var(--color-border);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  color: var(--color-text-secondary);
  background: none;
  border: none;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 56px;
}
.mobile-menu-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-menu-nav a:hover { background: var(--color-bg-elevated); color: var(--color-navy); }
.mobile-menu-close { color: var(--color-text-muted); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: var(--color-navy);
  color: var(--color-text-on-navy);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(18,24,71,0.4) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-visual .product-photo {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy-dark), var(--color-cta), var(--color-navy-dark));
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-content h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-white);
}
.hero-content h1 strong {
  color: var(--color-white);
  /* Matches brochure: "VISIBLE" is bold navy on white card, but hero is navy so we keep white */
}
.hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-small {
  min-height: auto;
  padding: 120px 0 60px;
}
.hero-small .hero-inner { grid-template-columns: 1fr; text-align: center; }
.hero-small .hero-content p { margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ---- LED Panel Mockup ---- */
.led-panel {
  background: linear-gradient(145deg, #0c0c0c, #050505);
  border: 2px solid rgba(255,106,0,0.2);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
  box-shadow:
    0 0 80px rgba(255,106,0,0.1),
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.led-panel-hero {
  padding: 48px 40px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.led-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
}
.led-panel::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,106,0,0.04), transparent, transparent);
  animation: ledSweep 8s linear infinite;
}
@keyframes ledSweep { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* LED scanline effect */
.led-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,106,0,0.6), transparent);
  animation: scanline 4s linear infinite;
  z-index: 2;
}
@keyframes scanline {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.led-text {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
  text-shadow:
    0 0 10px rgba(255,106,0,0.9),
    0 0 30px rgba(255,106,0,0.5),
    0 0 60px rgba(255,106,0,0.2),
    0 0 100px rgba(255,106,0,0.1);
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
  animation: ledPulse 3s ease-in-out infinite;
  line-height: 1.3;
}
@keyframes ledPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(255,106,0,0.9), 0 0 30px rgba(255,106,0,0.5), 0 0 60px rgba(255,106,0,0.2); }
  50% { text-shadow: 0 0 15px rgba(255,106,0,1), 0 0 45px rgba(255,106,0,0.7), 0 0 90px rgba(255,106,0,0.3); }
}
.led-subtext {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  color: #eab308;
  text-align: center;
  text-shadow: 0 0 10px rgba(234,179,8,0.6);
  letter-spacing: 0.08em;
  margin-top: 16px;
  position: relative;
  z-index: 1;
  animation: blink 2s steps(1) infinite;
}
@keyframes blink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0; } }
.led-counter {
  font-family: 'Space Grotesk', monospace;
  font-size: 1rem;
  color: #22c55e;
  text-align: center;
  text-shadow: 0 0 12px rgba(34,197,94,0.6);
  letter-spacing: 0.06em;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.led-counter strong {
  font-size: 1.4rem;
  color: #4ade80;
  text-shadow: 0 0 20px rgba(34,197,94,0.8);
}
.led-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}
.led-text.green { color: #22c55e; text-shadow: 0 0 20px rgba(34,197,94,0.5), 0 0 40px rgba(34,197,94,0.2); }
.led-text.multi { color: var(--color-text); }
.led-label {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}
.led-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--color-success);
  margin-top: 12px;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.led-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---- Flag colors for NexFLAG ---- */
.flag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.flag-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
}
.flag-green { background: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.4); }
.flag-yellow { background: #eab308; box-shadow: 0 0 12px rgba(234,179,8,0.4); }
.flag-red { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.4); }
.flag-blue { background: #3b82f6; box-shadow: 0 0 12px rgba(59,130,246,0.4); }

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-navy);
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ---- Cards Grid ---- */
.cards-grid {
  display: grid;
  gap: 24px;
}
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .cards-grid-3, .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-grid-2, .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr; }
}

/* ---- Card ---- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--color-navy);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(27,32,100,0.12);
}
/* Cards in navy sections */
.section-navy .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: white;
}
.section-navy .card:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.section-navy .card h3 { color: white; }
.section-navy .card p { color: rgba(255,255,255,0.7); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card-icon-orange { background: rgba(255, 107, 0, 0.12); }
.card-icon-orange .icon { color: #ff6b00; }
.card-icon-amber { background: rgba(245, 158, 11, 0.12); }
.card-icon-amber .icon { color: #f59e0b; }
.card-icon-purple { background: rgba(139, 92, 246, 0.12); }
.card-icon-purple .icon { color: #8b5cf6; }
.card-icon-blue { background: rgba(59, 130, 246, 0.12); }
.card-icon-blue .icon { color: #3b82f6; }
.card-icon-green { background: rgba(34, 197, 94, 0.12); }
.card-icon-green .icon { color: #22c55e; }
.card-icon-cyan { background: rgba(6, 182, 212, 0.12); }
.card-icon-cyan .icon { color: #06b6d4; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-text-secondary); font-size: 0.95rem; line-height: 1.65; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
  transition: var(--transition);
}
.card-link:hover { gap: 10px; }
.card-link::after { content: '\2192'; }

.card-winner {
  border-color: var(--color-navy);
  box-shadow: 0 0 20px rgba(27,32,100,0.1);
  background: linear-gradient(135deg, rgba(27,32,100,0.04), transparent);
}

/* ---- Comparison ---- */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comparison-list { list-style: none; }
.comparison-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.comparison-list li:last-child { border-bottom: none; }
.check { color: var(--color-success); font-weight: 700; flex-shrink: 0; }
.cross { color: var(--color-danger); font-weight: 700; flex-shrink: 0; opacity: 0.6; }

@media (max-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr; }
}

/* ---- Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step-card { position: relative; }
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--color-text-secondary); font-size: 0.95rem; line-height: 1.65; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ---- CTA Banner ---- */
.cta-banner {
  text-align: center;
  padding: 80px 0;
  background: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(42,49,128,0.5), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 16px; color: white; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 1.1rem; position: relative; }
.cta-contact-info {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-contact-info {
  position: relative;
}
.cta-contact-info a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.cta-contact-info a:hover { color: white; }
.cta-banner .btn { position: relative; }
.cta-banner .btn-primary {
  background: var(--color-cta);
  box-shadow: 0 4px 20px rgba(255,106,0,0.3);
}
.cta-banner .btn-primary:hover {
  background: var(--color-cta-hover);
  box-shadow: 0 6px 30px rgba(255,106,0,0.4);
}

/* ---- Specs Table ---- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.specs-table th, .specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.specs-table th {
  color: var(--color-text-secondary);
  font-weight: 500;
  width: 40%;
  background: var(--color-bg-card);
}
.specs-table td { color: var(--color-text); }
.specs-table tr:hover td { background: rgba(27,32,100,0.03); }

/* Dark/navy section specs table */
.section-dark .specs-table th,
.section-navy .specs-table th {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}
.section-dark .specs-table td,
.section-navy .specs-table td { color: rgba(255,255,255,0.9); }
.section-dark .specs-table th,
.section-dark .specs-table td,
.section-navy .specs-table th,
.section-navy .specs-table td {
  border-bottom-color: rgba(255,255,255,0.1);
}
.section-dark .specs-table tr:hover td,
.section-navy .specs-table tr:hover td { background: rgba(255,255,255,0.05); }

/* ---- Certifications ---- */
.certifications {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  min-width: 120px;
  min-height: 100px;
  flex: 1;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: var(--transition);
  text-align: center;
}
.cert-badge:hover { border-color: var(--color-accent); }
.cert-badge .cert-icon {
  font-size: 1.6rem;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

/* ---- Contact Form ---- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}
.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--color-accent);
}
.honeypot { position: absolute; left: -9999px; }

.contact-info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon { color: var(--color-navy); flex-shrink: 0; font-size: 1.1rem; }
.contact-info-item a { color: var(--color-text-secondary); transition: var(--transition); }
.contact-info-item a:hover { color: var(--color-accent); }

.form-success {
  display: none;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: var(--color-success);
  font-weight: 500;
}
.form-success.visible { display: block; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Legal ---- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin-top: 40px; margin-bottom: 16px; color: var(--color-accent); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--color-text-secondary); margin-bottom: 12px; font-size: 0.95rem; line-height: 1.7; }
.legal-content ul { margin-bottom: 16px; padding-left: 20px; }
.legal-content ul li { color: var(--color-text-secondary); font-size: 0.95rem; margin-bottom: 6px; list-style: disc; }

/* ---- Footer ---- */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}
.footer h4 {
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  font-size: 0.8rem;
}
.footer ul li { margin-bottom: 8px; }
.footer ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer ul li a:hover { color: var(--color-white); }
.footer ul li:not(:has(a)) { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-bottom a:hover { color: white; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- System Diagram ---- */
.system-diagram {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  text-align: center;
  animation: float 4s ease-in-out infinite;
}
.system-diagram .highlight { color: var(--color-accent); font-weight: 600; }
.system-diagram .arrow { color: var(--color-accent); opacity: 0.5; }

/* ---- Made in France / Feature Grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid, .feature-grid-2 { grid-template-columns: 1fr; }
}

/* ---- Dashboard Preview ---- */
.dashboard-preview {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 700px;
  margin: 32px auto 0;
}
.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dashboard-dot.red { background: #ef4444; }
.dashboard-dot.yellow { background: #eab308; }
.dashboard-dot.green { background: #22c55e; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dashboard-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}
.dashboard-item .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
}
.dashboard-item .label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Product Hero (2-col) ---- */
.product-hero .hero-inner {
  grid-template-columns: 1.2fr 0.8fr;
}
@media (max-width: 768px) {
  .product-hero .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .product-hero .hero-content { align-items: center; }
  .product-hero .hero-actions { justify-content: center; flex-wrap: wrap; }
  .product-hero .product-photo { max-width: 100% !important; margin: 0 auto; }
  .product-hero .product-logo { margin: 0 auto; }
  .product-hero .hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
  .certifications { gap: 12px; }
  .cert-badge { min-width: 80px; padding: 12px 8px; font-size: 0.72rem; }
  .cert-badge .cert-icon img { height: 28px !important; }
  /* Product photos in content sections */
  .product-photo, .product-photo-wrapper img { max-width: 100% !important; height: auto; }
  .product-photo-wrapper { max-width: 100%; }
  .product-photo-grid { grid-template-columns: 1fr; gap: 16px; }
  /* Interface preview */
  .interface-preview img { max-width: 100%; height: auto; border-radius: 8px; }
  /* Dashboard stats */
  .dashboard-grid { gap: 12px; }
  /* Flag colors grid */
  .flag-colors { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .flag-colors img { max-width: 100%; height: auto; }
  /* Section headings */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  /* Buttons */
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
  /* Flag gallery */
  .flag-gallery { grid-template-columns: repeat(3, 1fr); }
  /* Specs tables */
  .specs-table { font-size: 0.85rem; }
  .specs-table td, .specs-table th { padding: 10px 12px; }
  /* CTA banner */
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-banner p { font-size: 0.9rem; }
}

/* ---- Utility ---- */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-16 { gap: 16px; }

/* ---- Real Product Images ---- */
.product-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: var(--transition);
}
.product-image:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 70px rgba(0,0,0,0.6), 0 0 30px rgba(255,106,0,0.08);
}

/* ---- Flag Gallery (NexFLAG) ---- */
.flag-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.flag-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.flag-gallery img:hover {
  border-color: var(--color-accent);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255,106,0,0.2);
  z-index: 1;
  position: relative;
}

/* ---- Interface Preview ---- */
.interface-preview {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: var(--transition);
}
.interface-preview:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,0.6), 0 0 30px rgba(255,106,0,0.08);
  transform: translateY(-4px);
}
.interface-preview img {
  width: 100%;
  display: block;
}

/* ---- Animated Gradient Background ---- */
.gradient-bg {
  background: linear-gradient(-45deg, #0a0a0a, #111111, #0d0a1a, #0a0a0a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Glowing Divider ---- */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,0,0.4), transparent);
  border: none;
  margin: 0;
}

/* ---- Product Photos ---- */
.product-photo {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.product-photo:hover {
  transform: scale(1.02);
}
.product-photo-wrapper {
  text-align: center;
  margin-top: 24px;
}
.product-photo-wrapper .product-photo {
  max-width: 560px;
}
.product-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 640px) {
  .product-photo-grid {
    grid-template-columns: 1fr;
  }
}
.product-photo-caption {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 8px;
  text-align: center;
}

/* ---- Lucide Icons ---- */
.icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.icon-sm {
  width: 18px;
  height: 18px;
}
.icon-lg {
  width: 32px;
  height: 32px;
}
.icon-xl {
  width: 48px;
  height: 48px;
}

/* Icon colors in different contexts */
.section-navy .icon,
.section-dark .icon,
.hero .icon {
  color: rgba(255,255,255,0.9);
}
.card .icon,
.feature-card .icon {
  color: #1B2064;
}
.stats-bar .icon {
  color: #ff6a00;
}

/* Icon in feature cards - larger, with background circle */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(27, 32, 100, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-circle .icon {
  color: #1B2064;
}
.section-navy .icon-circle,
.section-dark .icon-circle {
  background: rgba(255, 255, 255, 0.1);
}
.section-navy .icon-circle .icon,
.section-dark .icon-circle .icon {
  color: #ffffff;
}

/* Card icon with Lucide - ensure icon fits in card-icon box */
.card-icon .icon {
  width: 24px;
  height: 24px;
}
/* colored icon colors — override section-navy/dark */
.section-navy .card-icon .icon,
.section-dark .card-icon .icon { color: rgba(255,255,255,0.9); }
.section-navy .card-icon-orange .icon, .section-dark .card-icon-orange .icon { color: #ff6b00; }
.section-navy .card-icon-amber .icon, .section-dark .card-icon-amber .icon { color: #f59e0b; }
.section-navy .card-icon-purple .icon, .section-dark .card-icon-purple .icon { color: #8b5cf6; }
.section-navy .card-icon-blue .icon, .section-dark .card-icon-blue .icon { color: #3b82f6; }
.section-navy .card-icon-green .icon, .section-dark .card-icon-green .icon { color: #22c55e; }
.section-navy .card-icon-cyan .icon, .section-dark .card-icon-cyan .icon { color: #06b6d4; }

/* Cert badge icons */
.cert-icon .icon {
  width: 20px;
  height: 20px;
}

/* Contact info icons */
.contact-info-item .icon {
  width: 20px;
  height: 20px;
  color: var(--color-navy);
  flex-shrink: 0;
}

/* ============================================
   Carousel
   ============================================ */
.carousel {
  position: relative;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  border-radius: 16px;
}
.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
  width: 100%;
}
.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(27, 32, 100, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-btn:hover {
  background: rgba(27, 32, 100, 0.95);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.carousel-dot.active {
  background: white;
  border-color: white;
}

/* ============================================
   Language Toggle
   ============================================ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.lang-btn.active {
  color: white;
  background: rgba(255,255,255,0.15);
}
.lang-btn:hover:not(.active) {
  color: rgba(255,255,255,0.8);
}
.lang-sep {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}
/* On white header after scroll */
.header.scrolled .lang-btn {
  color: rgba(27, 32, 100, 0.4);
}
.header.scrolled .lang-btn.active {
  color: var(--color-navy);
  background: rgba(27, 32, 100, 0.08);
}
.header.scrolled .lang-sep {
  color: rgba(27, 32, 100, 0.2);
}

/* ============================================
   Comparison Cards — Reversed (white vs dark)
   ============================================ */
.card-dark {
  background: var(--color-navy);
  color: white;
  border-color: var(--color-navy);
}
.card-dark h3 { color: white; }
.card-dark .comparison-list li { color: rgba(255,255,255,0.85); }

/* Card with logo thumbnail */
.card-logo {
  margin-bottom: 12px;
}
.card-thumb {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Product photos stack for NexPROD */
.product-photos-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.product-photos-stack img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  background: #fff;
  padding: 10px;
}
.product-photos-stack .product-photo-main {
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.product-photos-stack .product-photo-secondary {
  max-width: 340px;
  width: 85%;
  margin-top: -32px;
  margin-left: 80px;
  position: relative;
  z-index: 2;
  transform: rotate(1.5deg);
}

/* Product logo on product pages */
.product-logo {
  display: block;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .carousel { max-width: 100%; }
  .carousel-btn { width: 32px; height: 32px; font-size: 14px; }
  .lang-toggle { margin-right: 0; }
  /* Mobile menu lang toggle - dark text on white bg */
  .mobile-menu .lang-toggle { justify-content: center; margin: 12px 0; }
  .mobile-menu .lang-btn { color: rgba(27, 32, 100, 0.4); }
  .mobile-menu .lang-btn.active { color: var(--color-navy); background: rgba(27, 32, 100, 0.08); }
  .mobile-menu .lang-sep { color: rgba(27, 32, 100, 0.3); }
  /* Mobile menu CTA button white text */
  .mobile-menu .btn { color: #fff !important; }
  .product-photos-stack .product-photo-main {
    max-width: 100%;
  }
  .product-photos-stack .product-photo-secondary {
    max-width: 85%;
    margin-left: 40px;
    margin-top: -24px;
  }
}
