/* CSS Variable Setup - Dark Premium Cockpit Landing Page */
:root {
  /* Atmosphere */
  --bg-space: #05070A;         /* Deepest black for background */
  --bg-surface: #0B111A;       /* Panel backgrounds */
  --bg-surface-elevated: #111827; /* Raised/Interactive elements */
  
  /* Borders and Edges */
  --border-subtle: #1E293B;
  --border-glow: rgba(56, 189, 248, 0.15);
  
  /* Typography */
  --text-white: #F8FAFC;
  --text-muted: #94A3B8;
  --text-darker: #475569;
  
  /* Accents */
  --primary: #38BDF8;          /* Operational readyness / Glow */
  --primary-hover: #0EA5E9;
  --accent-success: #10B981;   /* Integrity */
  --accent-neutral: #64748B;   /* Confidential */
  --cta: #38BDF8;              /* Re-using blue for elegance, or #F97316 for pure conversion */
  
  /* Fonts */
  --font-system: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  --spacing-xxl: 8rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-space);
}

body {
  font-family: var(--font-system);
  background-color: var(--bg-space);
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--text-white);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.2s ease;
}

.text-accent { 
  background: linear-gradient(90deg, #FFFFFF, #38BDF8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.py-xxl { padding-top: var(--spacing-xxl); padding-bottom: var(--spacing-xxl); }
.pt-xxl { padding-top: var(--spacing-xxl); }
.pb-xl { padding-bottom: var(--spacing-xl); }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(5, 7, 10, 0.8);
  backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo img {
  height: 40px;
  border-radius: 8px; /* Assuming it's a square or rect, add slight rounding */
}
.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #FFFFFF, #94A3B8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--primary);
  opacity: 0.8;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-links a {
  white-space: nowrap;
}
.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-white);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1 !important;
  background: transparent;
  padding: 0.6rem 1.25rem;
}
.btn-outline:hover {
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-white) !important;
  background: rgba(255, 255, 255, 0.02);
}
.btn-primary {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary) !important;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}
.btn-primary:hover {
  background: var(--primary);
  color: var(--bg-space) !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}
.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-white) !important;
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255,255,255,0.05);
}
.btn-cta {
  background: linear-gradient(90deg, rgba(56,189,248,0.2), transparent);
  border: 1px solid var(--primary);
  color: var(--text-white) !important;
  padding: 1rem 2rem;
  font-size: 1rem;
}
.btn-cta:hover {
  background: var(--primary);
  color: var(--bg-space) !important;
  box-shadow: 0 0 30px rgba(56,189,248,0.5);
}

/* Hero */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.05);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.hero { 
  background: radial-gradient(circle at top, rgba(11, 17, 26, 0.8) 0%, var(--bg-space) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+PGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjAzKSIvPjwvc3ZnPg==') repeat;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero .subtitle {
  font-size: 1.35rem;
  color: #CBD5E1;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  font-weight: 300;
}
.hero-actions { display: flex; justify-content: center; gap: 1rem; }

.trust-marks {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-darker);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-mono);
  margin-top: 4rem;
}
.trust-marks span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-marks svg { width: 16px; color: var(--text-muted); }

/* Images formatting */
.visual-showcase {
  margin-top: 5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  position: relative;
}
.visual-showcase img {
  width: 100%;
  display: block;
}

/* Grids & Cards */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.2);
}
.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; font-weight: 500; }
.card p { color: #CBD5E1; font-size: 1rem; line-height: 1.6; }

/* Split section */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.layout-split.reverse {
  direction: rtl;
}
.layout-split.reverse > * {
  direction: ltr;
}

.feature-list { list-style: none; }
.feature-list li {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: -2px; top: 0;
  width: 3px; height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-list li:hover::before { opacity: 1; }
.feature-list strong { display: block; font-size: 1.1rem; color: var(--text-white); font-weight: 500; margin-bottom: 0.25rem;}
.feature-list span { color: #CBD5E1; font-size: 0.95rem; line-height: 1.6; }

.visual-block {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.visual-block img { width: 100%; display: block; }

/* Process Steps / RAGQ */
.ragq-badge {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.step {
  flex: 1;
  background: rgba(255,255,255,0.01);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.1);
  position: relative;
}
.step::after {
  content: "→";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.2);
  font-size: 1.5rem;
}
.step:last-child::after { display: none; }

.step-content h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem;}
.step-content p { color: #CBD5E1; font-size: 1rem; line-height: 1.6; }

/* Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
}
.bento-item {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.bento-item:hover {
  border-color: rgba(255,255,255,0.1);
}
.bento-item.span-2 { grid-column: span 2; }
.bento-primary {
  background: linear-gradient(135deg, rgba(11, 17, 26, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(56, 189, 248, 0.2);
}
.bento-item h3 { margin-bottom: 1rem; font-size: 1.25rem; font-weight: 500; }
.bento-item p { color: #CBD5E1; font-size: 1.05rem; line-height: 1.6; }

/* Reassurance Section */
.check-list { list-style: none; }
.check-list li { margin-bottom: 0.75rem; position: relative; padding-left: 1.5rem; font-weight: 400; color: var(--text-muted);}
.check-list li::before { content: "✓"; color: var(--accent-success); position: absolute; left: 0; }

.reassurance-card {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}
.r-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.r-item:last-child { margin-bottom: 0; }
.r-item .icon { 
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  color: var(--primary);
}
.r-item svg { width: 20px; height: 20px;}
.r-item strong { display: block; font-weight: 500; color: var(--text-white); margin-bottom: 0.25rem;}
.r-item p { color: #CBD5E1; font-size: 1rem; line-height: 1.6; }

/* Call to Action Section */
.cta-section { 
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-space) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cta-container h2 { font-size: 3rem; font-weight: 400; margin-bottom: 1.5rem;}
.cta-container p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.contact-direct a { color: var(--text-white); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,0.3); padding-bottom: 2px;}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-darker);
  font-size: 0.85rem;
}
.footer .logo-text { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.5rem;}
.separator { margin: 0 1rem; color: rgba(255,255,255,0.1); }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .grid-4, .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.span-2 { grid-column: span 2; }
  .layout-split { grid-template-columns: 1fr; gap: 3rem; }
  .process-steps { flex-direction: column; gap: 1rem;}
  .step::after { display: none; }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .grid-2, .grid-4, .bento-grid { grid-template-columns: 1fr; }
  .bento-item.span-2 { grid-column: span 1; }
  .trust-marks { flex-direction: column; gap: 1rem; }
  
  /* Mobile Navigation Fix */
  .menu-toggle { display: block; z-index: 200; }
  .nav-links {
    position: absolute;
    top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
    background: rgba(5, 7, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 150;
    overflow-y: auto;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a:not(.btn) { font-size: 1.25rem; }
  .nav-links .btn { font-size: 1.1rem; width: 80%; text-align: center; }
  
  /* Reduction des textes et espaces vides inline */
  .section-header h2 { font-size: 1.8rem; }
  .split-content h2, .legal-content h2, .cta-container h2 { font-size: 1.6rem !important; margin-bottom: 1rem; }
  .py-xxl, .pt-xxl { padding-top: 4rem !important; }
  .py-xxl, .pb-xl { padding-bottom: 4rem !important; }
  .py-xl { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .layout-split { gap: 3rem !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; width: 100%; gap: 1rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .bento-item { padding: 1.5rem; }
  .container { padding: 0 1.25rem; }
  .lightbox-content { max-width: 98%; max-height: 98%; }
  .lightbox-close { top: 1rem; right: 1rem; font-size: 2.2rem; }
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: rgba(5, 7, 10, 0.95);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.show {
  opacity: 1;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox.show .lightbox-content {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: var(--text-white);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: var(--primary);
}
