/* ============================================================
   SOBBER ENTERPRISE 2026 - DESIGN SYSTEM
   style.css - All visual styles
   Aesthetic: Industrial-Premium - Authority - Precision Engineering
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Palette */
  --navy:      #305065;
  --teal:      #7DD1C2;
  --slate:     #8CA4D3;
  --off:       #F1F1F1;
  --pink:      #FF7B91;
  --gold:      #EEBB59;
  --lavender:  #A198D3;
  --steel:     #6BA9BF;

  /* Enterprise Dark Scale */
  --bg-0:      #080E12;
  --bg-1:      #0C1520;
  --bg-2:      #111D2B;
  --bg-3:      #162333;
  --bg-4:      #1C2D3E;
  --bg-5:      #243548;

  /* Surfaces */
  --surface-1: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.055);
  --surface-3: rgba(255,255,255,0.08);

  /* Borders */
  --border-subtle: rgba(125,209,194,0.10);
  --border-mid:    rgba(125,209,194,0.20);
  --border-strong: rgba(125,209,194,0.35);

  /* Text */
  --text-primary:   #F4F6F8;
  --text-secondary: #A8B8C8;
  --text-muted:     #5E7282;
  --text-accent:    #7DD1C2;

  /* Spacing */
  --nav-h: 76px;
  --section-py: 120px;
  --container: 1240px;

  /* Radius */
  --r-sm:  8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Transitions */
  --ease: cubic-bezier(.22,.68,0,1.2);
  --ease-std: cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Switzer', 'Helvetica Neue', sans-serif;
  background: var(--bg-0);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── LANGUAGE SYSTEM (CORRIGÉ) ─────────────────────────────────── */
[data-lang="en"] .fr { display: none !important; }
[data-lang="fr"] .en { display: none !important; }

/* ── SELECTION & SCROLLBAR ─────────────────────────────────────── */
::selection { background: rgba(125,209,194,0.25); color: var(--teal); }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

/* ════════════════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  background: rgba(8,14,18,0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease-std);
}

#nav.scrolled {
  background: rgba(8,14,18,0.97);
  border-bottom-color: var(--border-mid);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; flex-shrink: 0;
}

/* Logo responsive */
.nav-logo { height: 32px; width: auto; display: block; }

.nav-center {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
  border: none; background: none;
  text-decoration: none;
}

.nav-item:hover { color: var(--text-primary); background: var(--surface-1); }
.nav-item.active { color: var(--teal); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  min-width: 220px; background: var(--bg-2);
  border: 1px solid var(--border-mid); border-radius: var(--r-md);
  padding: 8px; box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 0.8125rem; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s;
  text-decoration: none;
}

.nav-dropdown-item:hover { background: var(--surface-2); color: var(--text-primary); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex; align-items: center;
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: 50px; padding: 3px;
}

.lang-btn {
  padding: 5px 14px; border-radius: 50px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.2s; border: none; background: none;
  color: var(--text-muted);
}

.lang-btn.on { background: var(--teal) !important; color: var(--bg-0) !important; }

.btn-nav-demo {
  display: flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--bg-0);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 10px 22px; border-radius: 50px;
  border: none; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; text-decoration: none;
}

.btn-nav-demo:hover { background: #96ddd0; transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════════════
   SHARED COMPONENTS & TYPOGRAPHY
   ════════════════════════════════════════════════════════════════════ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 48px; }
.section { padding: var(--section-py) 0; position: relative; }
.section-sm { padding: 80px 0; }

.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 20px;
}

.h1 { font-size: clamp(2.75rem, 5.5vw, 5.25rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.04; }
.h2 { font-size: clamp(1.875rem, 3.5vw, 3.125rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; }
em { color: var(--teal); font-style: normal; }

.body-lg { font-size: 1.0625rem; line-height: 1.75; color: var(--text-secondary); }
.body-md { font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary); }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: var(--bg-0);
  font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 15px 32px; border-radius: 50px;
  border: none; cursor: pointer; transition: all 0.25s var(--ease);
  text-decoration: none;
}
.btn-primary:hover { background: #96ddd0; transform: translateY(-2px); box-shadow: 0 16px 48px rgba(125,209,194,0.22); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--text-secondary);
  font-size: 0.9375rem; font-weight: 600; padding: 14px 32px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15); cursor: pointer; transition: all 0.25s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

/* Stats */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-subtle); border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl); overflow: hidden; margin-top: 80px;
}
.stat-box { background: var(--bg-1); padding: 40px 36px; text-align: center; transition: background 0.3s; }
.stat-box:hover { background: var(--bg-2); }
.stat-val { font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 900; color: var(--text-primary); }
.stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }

/* Bento Grid */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento-card {
  background: var(--bg-2); border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  transition: all 0.35s var(--ease-std);
}
.bento-card:hover { border-color: var(--border-mid); box-shadow: 0 24px 64px rgba(0,0,0,0.35); }
.bento-6 { grid-column: span 6; }
.bento-4 { grid-column: span 4; }
.bento-8 { grid-column: span 8; }

/* Timeline (How it works) */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--teal), transparent);
}
.timeline-step { position: relative; padding: 0 0 48px 40px; }
.timeline-step::before {
  content: ''; position: absolute; left: -9px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--teal);
}
.step-num { font-size: 0.65rem; font-weight: 800; color: var(--teal); margin-bottom: 8px; text-transform: uppercase; }
.step-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }

/* Hero Specifics */
.hero { min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding-bottom: 100px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 90% 70% at 55% 10%, rgba(48,80,101,0.35) 0%, transparent 65%),
              linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 80px); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade-up { animation: fadeUp 0.7s var(--ease-std) both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }

/* Responsive */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .bento-6, .bento-8, .bento-4 { grid-column: span 12; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

footer a { 
  text-decoration: none; 
  color: var(--text-muted); 
  font-size: 0.8125rem; 
  transition: 0.2s; 
}
footer a:hover { color: var(--teal); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--teal); text-transform: uppercase; margin-bottom: 8px; }
.form-input, .form-textarea { 
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-subtle); 
  padding: 14px; border-radius: var(--r-sm); color: white; font-family: inherit;
}
.form-textarea { height: 120px; resize: none; }

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

/* ════════════════════════════════════════════════════════════════════
   CLASSES MANQUANTES — HERO & UTILITAIRES
   ════════════════════════════════════════════════════════════════════ */

/* Noise texture sur le body */
.noise::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Hero Visual Layout */
.hero-visual-wrap {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}

.hero-img-main {
  position: absolute; inset: 0;
}

.hero-img-main .img-placeholder {
  position: absolute; inset: 0;
  background-size: cover !important;
  background-position: center top !important;
}

.hero-img-overlay {
  position: absolute; bottom: 120px; right: 6%;
  z-index: 3;
}

/* Overlay Result Card */
.overlay-result {
  background: rgba(12, 21, 32, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 24px 32px;
  display: flex; align-items: center; gap: 20px;
  min-width: 260px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(125,209,194,0.05);
}

.result-bac {
  font-size: 2.75rem; font-weight: 900;
  color: var(--teal); letter-spacing: -0.04em;
  line-height: 1;
}

.result-info { display: flex; flex-direction: column; gap: 4px; }

.result-status {
  font-size: 0.6875rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}

.result-meta {
  font-size: 0.6875rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.04em;
}

/* Hero Announce Badge */
.hero-announce {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 50px; padding: 6px 16px 6px 8px;
  margin-bottom: 28px;
}

.hero-announce-badge {
  background: var(--teal); color: var(--bg-0);
  font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 50px;
}

.hero-announce-text {
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.04em;
}

/* Animation delays */
.anim-d3 { animation-delay: 0.3s; }
.anim-d4 { animation-delay: 0.4s; }
.anim-d5 { animation-delay: 0.5s; }

/* Body SM */
.body-sm { font-size: 0.875rem; line-height: 1.65; color: var(--text-secondary); }

/* ── RESPONSIVE HERO OVERLAY ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-img-overlay { display: none; }
}

/* ── HAMBURGER / MOBILE NAV ─────────────────────────────────────── */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text-primary); padding: 8px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--surface-1); }
.hamburger svg { pointer-events: none; }

@media (max-width: 900px) {

  /* Hamburger visible */
  .hamburger { display: flex; align-items: center; justify-content: center; }

  /* nav-center cachée par défaut */
  .nav-center { display: none; }

  #nav { padding: 0 18px; }
  .container { padding: 0 18px; }

  /* ✅ nav-right poussé à droite + logo réduit */
  .nav-right { margin-left: auto; gap: 8px; }
  .nav-logo { height: 24px; }

  /* ✅ Lang-switch toujours visible dans la barre */
  .nav-right .lang-switch { display: flex; }

  /* Request Demo desktop caché */
  .nav-right .btn-nav-demo { display: none; }

  /* ── Panneau mobile : liens de pages uniquement ── */
  body.mobile-nav-open .nav-center {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border-mid);
    padding: 12px 18px 20px;
    gap: 4px;
    z-index: 999;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    animation: slideDown 0.2s var(--ease-std);
  }

  body.mobile-nav-open .nav-center .nav-item {
    width: 100%;
    padding: 18px 20px;
    font-size: 1rem;
    display: flex;
    min-height: 56px;
    align-items: center;
    border-radius: var(--r-sm);
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PRODUCT PAGE ───────────────────────────────────────────────── */
.spec-row {
  display: grid; grid-template-columns: 1fr 1.5fr;
  background: var(--bg-1); padding: 18px 24px; gap: 16px;
  transition: background 0.2s;
}
.spec-row:hover { background: var(--bg-2); }

.spec-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  display: flex; align-items: center;
}
.spec-val {
  font-size: 0.9375rem; font-weight: 500; color: var(--text-primary);
}

.box-item {
  background: var(--bg-2); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); padding: 32px 28px;
  transition: all 0.3s var(--ease-std);
}
.box-item:hover { border-color: var(--border-mid); transform: translateY(-4px); }

.box-icon {
  width: 52px; height: 52px;
  background: var(--surface-2); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 20px;
}
.box-item-name {
  font-size: 0.9375rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
}
.box-item-desc {
  font-size: 0.8125rem; color: var(--text-muted);
}

/* ── PLATFORM PAGE ──────────────────────────────────────────────── */
.dashboard-kpi {
  background: var(--bg-2); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); padding: 20px 24px;
}
.kpi-val {
  font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--text-primary); line-height: 1;
}
.kpi-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-top: 6px;
}

.platform-feat-card {
  padding: 40px; transition: all 0.35s var(--ease-std);
}
.platform-feat-card:hover { border-color: var(--border-mid); }

.feat-icon {
  width: 52px; height: 52px;
  background: var(--surface-2); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 24px;
}

/* ── INDUSTRIES PAGE ────────────────────────────────────────────── */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ind-card {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 40px;
  display: flex; flex-direction: column; gap: 0;
  transition: all 0.35s var(--ease-std);
}
.ind-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.ind-card-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}

.ind-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}

.ind-tag {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}

.ind-stat {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.ind-stat-val {
  font-size: 1.5rem; font-weight: 900;
  color: var(--teal); letter-spacing: -0.03em;
  flex-shrink: 0;
}

.ind-stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  line-height: 1.4;
}

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

/* ── COMPLIANCE PAGE ────────────────────────────────────────────── */
.comp-badges-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.comp-badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-1); border: 1px solid var(--border-mid);
  border-radius: 50px; padding: 8px 18px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal);
}

.comp-card {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 40px;
  transition: all 0.35s var(--ease-std);
}
.comp-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.comp-card-icon {
  width: 56px; height: 56px;
  background: var(--surface-2); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 28px;
}

.spec-badge {
  display: inline-flex; align-items: center;
  background: rgba(125,209,194,0.08);
  border: 1px solid rgba(125,209,194,0.25);
  border-radius: 50px; padding: 5px 14px;
  font-size: 0.625rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}

/* ── CONTACT PAGE ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 48px;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-info-card {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.contact-info-card:hover { border-color: var(--border-mid); }

.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-mid);
  background: var(--bg-3);
}

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