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

:root {
  --color-primary: #4A90A4;
  --color-primary-dark: #3D7A8C;
  --color-accent: #90CDF4;
  --color-gray-900: #0F1419;
  --color-gray-800: #1C2128;
  --color-gray-700: #2D3748;
  --color-gray-600: #4A5568;
  --color-gray-500: #718096;
  --color-gray-400: #A0AEC0;
  --color-gray-300: #CBD5E0;
  --color-gray-200: #E2E8F0;
  --color-gray-100: #F7FAFC;
  --color-white: #FFFFFF;
  --color-danger: #EF4444;
  
  /* Variables de thème (dark par défaut) */
  --bg-primary: #0F1419;
  --bg-secondary: #1C2128;
  --bg-tertiary: #2D3748;
  --bg-card: #1C2128;
  --bg-input: #2D3748;
  --bg-hover: rgba(144, 205, 244, 0.1);
  --text-primary: #F7FAFC;
  --text-secondary: #A0AEC0;
  --text-muted: #718096;
  --border-color: rgba(144, 205, 244, 0.1);
  --border-color-strong: rgba(144, 205, 244, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --navbar-bg: rgba(15, 20, 25, 0.8);
  --navbar-scrolled: rgba(15, 20, 25, 0.95);
  --code-bg: rgba(0, 0, 0, 0.3);
  --scrollbar-track: rgba(255, 255, 255, 0.05);
  --scrollbar-thumb: rgba(74, 144, 164, 0.5);
}

/* ============================================
   THÈME CLAIR
   ============================================ */
html.light-theme {
  --bg-primary: #F7FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EDF2F7;
  --bg-card: #FFFFFF;
  --bg-input: #EDF2F7;
  --bg-hover: rgba(74, 144, 164, 0.1);
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border-color: rgba(74, 144, 164, 0.15);
  --border-color-strong: rgba(74, 144, 164, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --navbar-scrolled: rgba(255, 255, 255, 0.98);
  --code-bg: rgba(0, 0, 0, 0.05);
  --scrollbar-track: rgba(0, 0, 0, 0.05);
  --scrollbar-thumb: rgba(74, 144, 164, 0.4);
  
  /* Override specific colors for light theme */
  --color-gray-900: #F7FAFC;
  --color-gray-800: #FFFFFF;
  --color-gray-700: #EDF2F7;
  --color-gray-100: #1A202C;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* When dashboard is active, hide all public page elements */
body.dashboard-active > section:not(.dashboard-page),
body.dashboard-active > .footer,
body.dashboard-active > .navbar:not(.dashboard-header .navbar) {
  display: none !important;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s;
}

.navbar.scrolled {
  background: var(--navbar-scrolled);
  box-shadow: 0 10px 40px var(--shadow-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -1px;
  cursor: pointer;
}

.logo-sol {
  color: var(--color-gray-600);
}

.logo-cyte {
  color: var(--color-gray-500);
}

.logo-ai {
  color: var(--color-accent);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--color-gray-300);
  transition: 0.3s;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(74, 144, 164, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(74, 144, 164, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(74, 144, 164, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-gray-300);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.btn-large {
  padding: 1.125rem 2.25rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-nav {
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.3s;
  color: inherit;
}

.btn-icon:hover {
  background: var(--color-gray-700);
}

/* Hero avec Canvas */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(74, 144, 164, 0.1) 0%, rgba(15, 20, 25, 0.8) 70%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(144, 205, 244, 0.1);
  border: 1px solid rgba(144, 205, 244, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-gray-400);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

/* Sections */
section {
  position: relative;
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(74, 144, 164, 0.1);
  border: 1px solid rgba(74, 144, 164, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--color-gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* Services - CARTES ISO CENTRÉES */
.services {
  background: var(--color-gray-800);
  position: relative;
}

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  background: var(--color-gray-900);
  border: 1px solid rgba(144, 205, 244, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s;
  overflow: hidden;
  flex: 0 0 calc(33.333% - 1.35rem);
}

/* Les 3 premières cartes */
.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3) {
  flex: 0 0 calc(33.333% - 1.35rem);
}

/* Les 2 dernières cartes centrées */
.service-card:nth-child(4),
.service-card:nth-child(5) {
  flex: 0 0 calc(33.333% - 1.35rem);
}

.service-card:nth-child(4) {
  margin-left: calc(16.666% + 1rem);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 144, 164, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(144, 205, 244, 0.3);
}

.service-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.badge-tech {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(74, 144, 164, 0.15);
  border: 1px solid rgba(74, 144, 164, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card p {
  color: var(--color-gray-500);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.card-footer {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.time-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Process Flow */
.process {
  background: var(--color-gray-900);
}

.process-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background: var(--color-gray-800);
  border: 1px solid rgba(144, 205, 244, 0.1);
  border-radius: 16px;
  transition: all 0.4s;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(144, 205, 244, 0.3);
}

.step-visual {
  position: relative;
  margin-bottom: 2rem;
}

.step-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.step-animation {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon,
.download-icon {
  width: 50px;
  height: 50px;
  border: 3px solid var(--color-primary);
  border-radius: 12px;
  position: relative;
  animation: pulse 2s infinite;
}

.upload-icon::after {
  content: '↑';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: var(--color-accent);
}

.download-icon::after {
  content: '↓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: var(--color-accent);
}

.ai-brain {
  position: relative;
  width: 60px;
  height: 60px;
}

.neuron {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: neuronPulse 1.5s infinite;
}

.neuron:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.neuron:nth-child(2) {
  bottom: 0;
  left: 20%;
  animation-delay: 0.5s;
}

.neuron:nth-child(3) {
  bottom: 0;
  right: 20%;
  animation-delay: 1s;
}

@keyframes neuronPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 144, 164, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(74, 144, 164, 0);
  }
}

.process-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.connector-line {
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
  position: relative;
}

.connector-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: dotMove 2s infinite;
}

@keyframes dotMove {
  0%, 100% {
    transform: translateY(-30px);
    opacity: 0;
  }
  50% {
    transform: translateY(30px);
    opacity: 1;
  }
}

.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.process-step p {
  color: var(--color-gray-500);
  line-height: 1.7;
}

/* Features avec bulles animées */
.features {
  position: relative;
  background: var(--color-gray-800);
  overflow: hidden;
}

.features-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(74, 144, 164, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(144, 205, 244, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(144, 205, 244, 0.4), rgba(74, 144, 164, 0.1));
  border: 1px solid rgba(144, 205, 244, 0.2);
  animation: bubbleFloat 10s infinite ease-in-out;
  box-shadow: 0 8px 32px rgba(74, 144, 164, 0.2);
}

@keyframes bubbleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.feature-item {
  text-align: center;
  padding: 2.5rem;
  background: rgba(15, 20, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.4s;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(15, 20, 25, 0.8);
  border-color: rgba(144, 205, 244, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--color-primary);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-item p {
  color: var(--color-gray-500);
  line-height: 1.7;
}

/* Pricing */
.pricing {
  background: var(--color-gray-900);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--color-gray-800);
  border: 1px solid rgba(144, 205, 244, 0.1);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: all 0.4s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(144, 205, 244, 0.3);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(74, 144, 164, 0.1), rgba(144, 205, 244, 0.05));
  border: 2px solid var(--color-primary);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-white);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.plan-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(74, 144, 164, 0.15);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-price {
  margin: 1.5rem 0;
}

.price {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.period {
  font-size: 1.25rem;
  color: var(--color-gray-500);
}

.plan-features {
  list-style: none;
  margin: 2.5rem 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-gray-300);
}

.plan-features li.disabled {
  color: var(--color-gray-600);
  opacity: 0.5;
}

.plan-features li svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.plan-features li.disabled svg {
  color: var(--color-gray-700);
}

/* Contact */
.contact {
  background: var(--color-gray-800);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin: 1rem 0 1.5rem;
  font-weight: 700;
}

.contact-info > p {
  color: var(--color-gray-500);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

.contact-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-item p {
  color: var(--color-gray-500);
}

.contact-form {
  background: var(--color-gray-900);
  border: 1px solid rgba(144, 205, 244, 0.1);
  border-radius: 16px;
  padding: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-300);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: var(--color-gray-800);
  border: 1px solid rgba(144, 205, 244, 0.1);
  border-radius: 8px;
  color: var(--color-gray-100);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(74, 144, 164, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* CTA */
.cta {
  position: relative;
  background: var(--color-gray-900);
  padding: 6rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(74, 144, 164, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(144, 205, 244, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--color-gray-500);
  margin-bottom: 2.5rem;
}

/* Footer */
.footer {
  background: var(--color-gray-900);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-col p {
  color: var(--color-gray-500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-gray-600);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--color-gray-800);
  border: 1px solid rgba(144, 205, 244, 0.2);
  padding: 3rem;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  position: relative;
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-gray-500);
  transition: color 0.3s;
}

.close:hover {
  color: var(--color-white);
}

.modal-content h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-gray-500);
}

.link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

/* Dashboard Upload Page */
.dashboard-page {
  min-height: 100vh;
  background: var(--color-gray-900);
  position: relative;
  width: 100%;
}

.dashboard-page.hidden {
  display: none !important;
  position: absolute;
  visibility: hidden;
}

/* Ensure dashboard is at top level when active */
body.dashboard-active .dashboard-page {
  display: block !important;
  position: relative;
  z-index: 1;
}

.dashboard-header {
  background: rgba(15, 20, 25, 0.95);
  border-bottom: 1px solid rgba(144, 205, 244, 0.1);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dashboard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-container {
  padding: 4rem 0;
}

.upload-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--color-gray-500);
  margin-bottom: 3rem;
}

.upload-card {
  background: var(--color-gray-800);
  border: 1px solid rgba(144, 205, 244, 0.1);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 4rem;
}

.upload-zone {
  border: 2px dashed rgba(144, 205, 244, 0.3);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--color-accent);
  background: rgba(74, 144, 164, 0.05);
}

.upload-zone svg {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.upload-zone h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.upload-zone p {
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
}

.file-info {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-top: 1rem;
}

.files-list {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--color-gray-900);
  border-radius: 12px;
}

.files-list.hidden {
  display: none;
}

.upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.reports-section {
  margin-top: 4rem;
}

.reports-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Scroll Animations */
[data-scroll] {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .service-card {
    flex: 0 0 calc(50% - 1rem) !important;
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    margin-left: 0 !important;
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-connector {
    display: none;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(15, 20, 25, 0.98);
    width: 100%;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: left 0.3s;
    backdrop-filter: blur(20px);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .service-card {
    flex: 0 0 100% !important;
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    order: initial !important;
    margin-left: 0 !important;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===========================================
   MENU 1 - DISCUSSION STYLES
   =========================================== */

.menu-1-container {
  height: 700px;
  margin-bottom: 40px;
}

.menu-1-grid {
  height: 100%;
}

#menuPanel1 .dashboard-footer,
#menuPanel2 .dashboard-footer {
  margin-top: 40px;
}

/* ============================================
   SOLCYTE - Corrections scroll indépendant
   REMPLACE les anciennes corrections à la fin de styles.css
   ============================================ */

/* Conteneur principal - fixe la hauteur */
.menu-1-container {
  height: 700px !important;
  overflow: hidden !important;
}

/* Grille principale - prend toute la hauteur */
.menu-1-grid {
  height: 100% !important;
}

/* Sidebar historique - hauteur 100% et overflow caché */
.history-sidebar {
  height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Liste historique - scroll indépendant */
.history-list,
#chatHistoryList {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important; /* Important pour flex scroll */
}

/* Section chat - hauteur 100% et flex */
.chat-section {
  height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Zone de messages - scroll indépendant */
.chat-messages,
#chatMessages {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important; /* Important pour flex scroll */
  scroll-behavior: smooth;
}

/* Section documents - hauteur 100% et flex */
.docs-section {
  height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Contenu documents - flex pour répartir l'espace */
.docs-content {
  flex: 1 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

/* Zone d'upload - taille fixe */
.docs-upload-zone {
  flex-shrink: 0 !important;
}

/* Liste des documents - scroll indépendant */
.docs-list,
#docsList {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 150px !important;
  flex-shrink: 0 !important;
}

/* Zone de prévisualisation - prend l'espace restant */
.doc-preview,
#docPreview {
  flex: 1 !important;
  overflow: auto !important;
  min-height: 150px !important;
}

/* Notice de rétention - taille fixe en bas */
.retention-notice {
  flex-shrink: 0 !important;
}

/* ============================================
   SCROLLBARS PERSONNALISÉES
   ============================================ */

.chat-messages::-webkit-scrollbar,
.history-list::-webkit-scrollbar,
.docs-list::-webkit-scrollbar,
.doc-preview::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track,
.docs-list::-webkit-scrollbar-track,
.doc-preview::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb,
.docs-list::-webkit-scrollbar-thumb,
.doc-preview::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 164, 0.5);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover,
.docs-list::-webkit-scrollbar-thumb:hover,
.doc-preview::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 164, 0.8);
}
/* ============================================
   SOLCYTE - Layout adaptatif documents
   Ajouter à la fin de styles.css ou index.html
   ============================================ */

/* ============================================
   MODE AVEC DOCUMENTS - Layout compact
   ============================================ */

/* Conteneur docs avec documents uploadés */
.docs-content.has-documents {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 10px;
  height: 100%;
}

/* Zone upload compacte - en haut à droite */
.docs-content.has-documents .docs-upload-zone,
.docs-upload-zone.compact {
  grid-column: 2;
  grid-row: 1;
  padding: 10px !important;
  min-height: unset !important;
  height: auto !important;
  border: 2px dashed rgba(74, 144, 164, 0.3) !important;
  border-radius: 8px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-direction: row !important;
}

.docs-upload-zone.compact .upload-icon {
  font-size: 1.2rem !important;
  margin-bottom: 0 !important;
}

.docs-upload-zone.compact .upload-text {
  font-size: 0.75rem !important;
  margin: 0 !important;
}

.docs-upload-zone.compact .upload-formats {
  display: none !important;
}

/* Liste des documents - en haut à gauche */
.docs-content.has-documents .docs-list {
  grid-column: 1;
  grid-row: 1;
  max-height: 150px !important;
  overflow-y: auto;
  margin: 0 !important;
}

/* Zone de prévisualisation - prend toute la largeur en bas */
.docs-content.has-documents .doc-preview {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 300px !important;
  flex: 1;
  border: 1px solid rgba(74, 144, 164, 0.2);
  border-radius: 8px;
  overflow: auto;
}

/* Notice de rétention - en bas sur toute la largeur */
.docs-content.has-documents .retention-notice {
  grid-column: 1 / -1;
  grid-row: 3;
}

/* ============================================
   Styles pour les items de documents compact
   ============================================ */

.docs-content.has-documents .doc-item {
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.docs-content.has-documents .doc-item-icon {
  font-size: 1rem;
}

.docs-content.has-documents .doc-item-name {
  font-size: 0.75rem;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-content.has-documents .doc-item-meta {
  font-size: 0.65rem;
}

.docs-content.has-documents .doc-item-remove {
  font-size: 0.7rem;
  padding: 2px 6px;
}

/* ============================================
   Scrollbar fine pour la liste compacte
   ============================================ */

.docs-content.has-documents .docs-list::-webkit-scrollbar {
  width: 4px;
}

.docs-content.has-documents .docs-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.docs-content.has-documents .docs-list::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 164, 0.4);
  border-radius: 2px;
}

/* ============================================
   Amélioration zone de prévisualisation
   ============================================ */

.doc-preview iframe,
.doc-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Excel tabs style */
.excel-tab {
  transition: all 0.2s ease;
}

.excel-tab:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
/* ============================================
   SOLCYTE - Styles Markdown pour le Chat IA
   Ajouter à la fin de styles.css
   ============================================ */

/* Styles pour les messages IA formatés */
.chat-message.ai {
  line-height: 1.7;
}

/* Titres dans les réponses */
.chat-message.ai .md-h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 16px 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(74, 144, 164, 0.3);
}

.chat-message.ai .md-h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 14px 0 6px 0;
}

.chat-message.ai .md-h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 12px 0 6px 0;
}

/* Paragraphes */
.chat-message.ai .md-p {
  margin: 10px 0;
}

/* Listes à puces */
.chat-message.ai .md-list {
  margin: 10px 0;
  padding-left: 20px;
}

.chat-message.ai .md-list li {
  margin: 6px 0;
  padding-left: 4px;
}

.chat-message.ai .md-list li::marker {
  color: #4a90a4;
}

/* Code inline */
.chat-message.ai .md-code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.85em;
  color: #7dd3fc;
}

/* Blocs de code */
.chat-message.ai .md-pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.85em;
  overflow-x: auto;
  margin: 12px 0;
  border-left: 3px solid #4a90a4;
}

/* Séparateur */
.chat-message.ai .md-hr {
  border: none;
  border-top: 1px solid rgba(74, 144, 164, 0.3);
  margin: 16px 0;
}

/* Gras et italique */
.chat-message.ai strong {
  font-weight: 600;
  color: #e2e8f0;
}

.chat-message.ai em {
  font-style: italic;
  color: #94a3b8;
}

/* Premier élément sans marge top */
.chat-message.ai > *:first-child {
  margin-top: 0;
}

/* Dernier élément sans marge bottom */
.chat-message.ai > *:last-child {
  margin-bottom: 0;
}

/* ============================================
   THÈME CLAIR - Overrides spécifiques
   ============================================ */

/* Logo en mode clair */
html.light-theme .logo-sol {
  color: var(--color-primary);
}

html.light-theme .logo-cyte {
  color: #1A202C;
}

/* Cards et containers */
html.light-theme .settings-card,
html.light-theme .dashboard-card,
html.light-theme .card,
html.light-theme .auth-container {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px var(--shadow-color);
}

/* Inputs */
html.light-theme input,
html.light-theme textarea,
html.light-theme select {
  background: var(--bg-input);
  border-color: var(--border-color-strong);
  color: var(--text-primary);
}

html.light-theme input:focus,
html.light-theme textarea:focus,
html.light-theme select:focus {
  border-color: var(--color-primary);
  background: var(--bg-secondary);
}

html.light-theme input::placeholder {
  color: var(--text-muted);
}

/* Boutons outline/ghost */
html.light-theme .btn-ghost {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color-strong);
}

html.light-theme .btn-ghost:hover {
  background: var(--bg-hover);
}

html.light-theme .btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Textes secondaires */
html.light-theme .subtitle,
html.light-theme .info-label,
html.light-theme .text-muted,
html.light-theme p {
  color: var(--text-secondary);
}

/* Chat messages */
html.light-theme .chat-message.ai {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

html.light-theme .chat-message.user {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

html.light-theme .chat-message.ai .md-code {
  background: var(--code-bg);
  color: var(--color-primary-dark);
}

html.light-theme .chat-message.ai .md-pre {
  background: var(--code-bg);
  border-left-color: var(--color-primary);
}

/* Sections et headers */
html.light-theme .section-header p,
html.light-theme .hero-description {
  color: var(--text-secondary);
}

/* Scrollbars */
html.light-theme ::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html.light-theme ::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
}

/* Modal overlay */
html.light-theme .modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

html.light-theme .modal {
  background: var(--bg-card);
}

/* Notifications */
html.light-theme #notification {
  box-shadow: 0 10px 40px var(--shadow-color);
}

/* Tables */
html.light-theme table {
  background: var(--bg-card);
}

html.light-theme th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

html.light-theme td {
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.light-theme tr:hover {
  background: var(--bg-hover);
}

/* Docs section */
html.light-theme .docs-section,
html.light-theme .chat-section,
html.light-theme .history-sidebar {
  background: var(--bg-card);
  border-color: var(--border-color);
}

html.light-theme .doc-item {
  background: var(--bg-tertiary);
}

html.light-theme .doc-item:hover {
  background: var(--bg-hover);
}

/* Warning et danger boxes */
html.light-theme .warning-box {
  background: rgba(245, 158, 11, 0.1);
}

html.light-theme .danger-zone {
  background: var(--bg-card);
}

/* Footer */
html.light-theme .footer {
  background: var(--bg-secondary);
  border-top-color: var(--border-color);
}

/* Hero overlay pour mode clair */
html.light-theme .hero-overlay {
  background: radial-gradient(circle at 50% 50%, rgba(74, 144, 164, 0.05) 0%, rgba(247, 250, 252, 0.9) 70%);
}

/* Transition smooth pour tous les éléments */
html.light-theme * {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   THÈME CLAIR - CORRECTIONS SUPPLÉMENTAIRES
   ============================================ */

/* ===========================================
   LOGO - Forcer la visibilité dans tous les contextes
   =========================================== */
html.light-theme .logo-cyte,
html.light-theme .logo-text .logo-cyte,
html.light-theme .navbar .logo-cyte,
html.light-theme header .logo-cyte {
  color: #1A202C !important;
}

html.light-theme .logo-sol,
html.light-theme .logo-text .logo-sol,
html.light-theme .navbar .logo-sol,
html.light-theme header .logo-sol {
  color: #4A90A4 !important;
}

html.light-theme .logo-ai,
html.light-theme .logo-text .logo-ai {
  color: #3182CE !important;
}

/* ===========================================
   FEATURE CARDS - Cartes avec overlay (Image 3)
   =========================================== */
html.light-theme .feature-card,
html.light-theme .features-grid .card,
html.light-theme .benefit-card,
html.light-theme [class*="feature"],
html.light-theme .card-overlay {
  background: #FFFFFF !important;
  color: #1A202C !important;
}

html.light-theme .feature-card h3,
html.light-theme .feature-card h4,
html.light-theme .benefit-card h3,
html.light-theme .benefit-card h4,
html.light-theme [class*="feature"] h3,
html.light-theme [class*="feature"] h4 {
  color: #1A202C !important;
}

html.light-theme .feature-card p,
html.light-theme .benefit-card p,
html.light-theme [class*="feature"] p {
  color: #4A5568 !important;
}

/* Cards avec fond semi-transparent ou overlay */
html.light-theme .card,
html.light-theme .service-card,
html.light-theme .pricing-card,
html.light-theme .testimonial-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(74, 144, 164, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

html.light-theme .card h2,
html.light-theme .card h3,
html.light-theme .card h4,
html.light-theme .service-card h3,
html.light-theme .pricing-card h3 {
  color: #1A202C !important;
}

html.light-theme .card p,
html.light-theme .service-card p,
html.light-theme .pricing-card p {
  color: #4A5568 !important;
}

/* ===========================================
   DASHBOARD - Sections principales (Image 1)
   =========================================== */

/* Container principal du dashboard */
html.light-theme .dashboard-page,
html.light-theme .dashboard-container,
html.light-theme .menu-1-container,
html.light-theme .menu-1-grid {
  background: #F7FAFC !important;
}

/* Historique sidebar */
html.light-theme .history-sidebar,
html.light-theme .sidebar,
html.light-theme [class*="history"] {
  background: #FFFFFF !important;
  border-color: rgba(74, 144, 164, 0.15) !important;
}

/* Items de l'historique */
html.light-theme .history-item,
html.light-theme .history-list li,
html.light-theme .chat-history-item,
html.light-theme [class*="history"] li,
html.light-theme [class*="history"] a {
  background: #EDF2F7 !important;
  color: #1A202C !important;
  border-color: rgba(74, 144, 164, 0.1) !important;
}

html.light-theme .history-item:hover,
html.light-theme .history-list li:hover,
html.light-theme .chat-history-item:hover {
  background: #E2E8F0 !important;
}

html.light-theme .history-item.active,
html.light-theme .history-list li.active {
  background: rgba(74, 144, 164, 0.15) !important;
  border-left: 3px solid #4A90A4 !important;
}

/* Texte dans l'historique */
html.light-theme .history-item span,
html.light-theme .history-item p,
html.light-theme .history-item small,
html.light-theme [class*="history"] span,
html.light-theme [class*="history"] small {
  color: #4A5568 !important;
}

/* Section chat */
html.light-theme .chat-section,
html.light-theme .chat-container,
html.light-theme .chat-area {
  background: #FFFFFF !important;
  border-color: rgba(74, 144, 164, 0.15) !important;
}

/* Zone de messages */
html.light-theme .chat-messages,
html.light-theme #chatMessages {
  background: #FAFAFA !important;
}

/* Messages de l'utilisateur */
html.light-theme .chat-message.user {
  background: linear-gradient(135deg, #4A90A4, #63B3ED) !important;
  color: #FFFFFF !important;
}

/* Messages de l'IA */
html.light-theme .chat-message.ai {
  background: #EDF2F7 !important;
  color: #1A202C !important;
  border: 1px solid rgba(74, 144, 164, 0.1) !important;
}

html.light-theme .chat-message.ai strong {
  color: #1A202C !important;
}

html.light-theme .chat-message.ai em {
  color: #4A5568 !important;
}

/* Section documents */
html.light-theme .docs-section,
html.light-theme .documents-section,
html.light-theme [class*="docs"] {
  background: #FFFFFF !important;
  border-color: rgba(74, 144, 164, 0.15) !important;
}

/* Zone d'upload */
html.light-theme .docs-upload-zone,
html.light-theme .upload-zone,
html.light-theme [class*="upload"] {
  background: #F7FAFC !important;
  border-color: rgba(74, 144, 164, 0.3) !important;
  color: #4A5568 !important;
}

html.light-theme .docs-upload-zone:hover,
html.light-theme .upload-zone:hover {
  background: #EDF2F7 !important;
  border-color: #4A90A4 !important;
}

/* Zone de preview grise (bas de l'image 1) */
html.light-theme .doc-preview,
html.light-theme #docPreview,
html.light-theme .preview-area,
html.light-theme [class*="preview"] {
  background: #EDF2F7 !important;
  color: #4A5568 !important;
  border: 1px solid rgba(74, 144, 164, 0.15) !important;
}

/* Items de documents */
html.light-theme .doc-item,
html.light-theme .document-item {
  background: #EDF2F7 !important;
  color: #1A202C !important;
  border: 1px solid rgba(74, 144, 164, 0.1) !important;
}

html.light-theme .doc-item:hover,
html.light-theme .document-item:hover {
  background: #E2E8F0 !important;
}

/* ===========================================
   ONGLETS / TABS (Discussion, Rapports RSE)
   =========================================== */
html.light-theme .tab,
html.light-theme .tabs button,
html.light-theme [class*="tab"]:not([class*="table"]) {
  background: #EDF2F7 !important;
  color: #4A5568 !important;
  border-color: rgba(74, 144, 164, 0.2) !important;
}

html.light-theme .tab.active,
html.light-theme .tabs button.active,
html.light-theme [class*="tab"].active:not([class*="table"]) {
  background: linear-gradient(135deg, #4A90A4, #63B3ED) !important;
  color: #FFFFFF !important;
}

html.light-theme .tab:hover:not(.active),
html.light-theme .tabs button:hover:not(.active) {
  background: #E2E8F0 !important;
}

/* ===========================================
   SECTIONS AVEC FOND GRIS/OVERLAY
   =========================================== */
html.light-theme section,
html.light-theme .section {
  background: transparent !important;
}

html.light-theme section:nth-child(even),
html.light-theme .section-alt {
  background: #F7FAFC !important;
}

/* Grilles de features */
html.light-theme .features-grid,
html.light-theme .benefits-grid,
html.light-theme .services-grid {
  background: transparent !important;
}

/* ===========================================
   TITRES ET TEXTES
   =========================================== */
html.light-theme h1,
html.light-theme h2,
html.light-theme h3,
html.light-theme h4,
html.light-theme h5,
html.light-theme h6 {
  color: #1A202C !important;
}

html.light-theme .section-header h2,
html.light-theme .section-title {
  color: #1A202C !important;
}

html.light-theme .section-header p,
html.light-theme .section-subtitle {
  color: #4A5568 !important;
}

/* Texte gradient */
html.light-theme .gradient-text {
  background: linear-gradient(135deg, #2C5282, #4A90A4) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ===========================================
   NAVBAR EN MODE CLAIR
   =========================================== */
html.light-theme .navbar,
html.light-theme nav,
html.light-theme header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(74, 144, 164, 0.1) !important;
}

html.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

html.light-theme .nav-link,
html.light-theme .navbar a {
  color: #4A5568 !important;
}

html.light-theme .nav-link:hover,
html.light-theme .navbar a:hover {
  color: #4A90A4 !important;
}

/* Boutons nav */
html.light-theme .btn-nav,
html.light-theme .navbar .btn {
  color: #4A5568 !important;
}

html.light-theme .btn-nav:hover,
html.light-theme .navbar .btn:hover {
  background: rgba(74, 144, 164, 0.1) !important;
}

/* ===========================================
   INPUTS ET FORMULAIRES
   =========================================== */
html.light-theme input,
html.light-theme textarea,
html.light-theme select {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E0 !important;
  color: #1A202C !important;
}

html.light-theme input:focus,
html.light-theme textarea:focus,
html.light-theme select:focus {
  border-color: #4A90A4 !important;
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1) !important;
}

html.light-theme input::placeholder,
html.light-theme textarea::placeholder {
  color: #A0AEC0 !important;
}

/* Zone de saisie chat */
html.light-theme .chat-input,
html.light-theme .chat-input-container,
html.light-theme [class*="input-container"] {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E0 !important;
}

/* ===========================================
   BOUTONS
   =========================================== */
html.light-theme .btn-ghost {
  background: #EDF2F7 !important;
  color: #4A5568 !important;
  border: 1px solid #CBD5E0 !important;
}

html.light-theme .btn-ghost:hover {
  background: #E2E8F0 !important;
}

html.light-theme .btn-outline {
  background: transparent !important;
  border: 2px solid #4A90A4 !important;
  color: #4A90A4 !important;
}

html.light-theme .btn-outline:hover {
  background: rgba(74, 144, 164, 0.1) !important;
}

/* ===========================================
   BADGES ET TAGS
   =========================================== */
html.light-theme .badge,
html.light-theme .tag,
html.light-theme .section-tag,
html.light-theme .hero-badge {
  background: rgba(74, 144, 164, 0.1) !important;
  color: #2C5282 !important;
  border-color: rgba(74, 144, 164, 0.3) !important;
}

/* ===========================================
   FOOTER
   =========================================== */
html.light-theme footer,
html.light-theme .footer {
  background: #FFFFFF !important;
  border-top: 1px solid rgba(74, 144, 164, 0.1) !important;
  color: #4A5568 !important;
}

html.light-theme footer a,
html.light-theme .footer a {
  color: #4A90A4 !important;
}

/* ===========================================
   NOTIFICATIONS / TOASTS
   =========================================== */
html.light-theme .notification,
html.light-theme .toast,
html.light-theme #notification {
  background: #FFFFFF !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
  color: #1A202C !important;
}

/* ===========================================
   SCROLLBARS
   =========================================== */
html.light-theme ::-webkit-scrollbar-track {
  background: #EDF2F7 !important;
}

html.light-theme ::-webkit-scrollbar-thumb {
  background: #CBD5E0 !important;
}

html.light-theme ::-webkit-scrollbar-thumb:hover {
  background: #A0AEC0 !important;
}

/* ===========================================
   MODALS
   =========================================== */
html.light-theme .modal,
html.light-theme .modal-content {
  background: #FFFFFF !important;
  color: #1A202C !important;
}

html.light-theme .modal-overlay {
  background: rgba(0, 0, 0, 0.4) !important;
}

/* ===========================================
   CANVAS / HERO BACKGROUND
   =========================================== */
html.light-theme #hero-canvas {
  opacity: 0.3 !important;
}

html.light-theme .hero-overlay {
  background: radial-gradient(circle at 50% 50%, rgba(74, 144, 164, 0.05) 0%, rgba(247, 250, 252, 0.95) 70%) !important;
}

/* ===========================================
   RETENTION NOTICE
   =========================================== */
html.light-theme .retention-notice {
  background: rgba(74, 144, 164, 0.08) !important;
  color: #4A5568 !important;
  border: 1px solid rgba(74, 144, 164, 0.2) !important;
}

/* ===========================================
   MISC - Divers éléments
   =========================================== */
html.light-theme hr {
  border-color: #E2E8F0 !important;
}

html.light-theme code {
  background: #EDF2F7 !important;
  color: #2C5282 !important;
}

html.light-theme pre {
  background: #F7FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

html.light-theme blockquote {
  border-left-color: #4A90A4 !important;
  background: #F7FAFC !important;
  color: #4A5568 !important;
}

/* Liens */
html.light-theme a {
  color: #4A90A4;
}

html.light-theme a:hover {
  color: #2C5282;
}

/* ===========================================
   IMPORTANT - Force les bonnes couleurs partout
   =========================================== */
html.light-theme [style*="background: #0F1419"],
html.light-theme [style*="background:#0F1419"],
html.light-theme [style*="background-color: #0F1419"],
html.light-theme [style*="background-color:#0F1419"] {
  background: #F7FAFC !important;
}

html.light-theme [style*="background: #1C2128"],
html.light-theme [style*="background:#1C2128"],
html.light-theme [style*="background-color: #1C2128"],
html.light-theme [style*="background-color:#1C2128"] {
  background: #FFFFFF !important;
}

html.light-theme [style*="color: #ffffff"],
html.light-theme [style*="color:#ffffff"],
html.light-theme [style*="color: white"],
html.light-theme [style*="color:white"] {
  color: #1A202C !important;
}

/* ============================================
   CORRECTIONS CRITIQUES - THÈME CLAIR
   ============================================ */

/* ===========================================
   FIX LOGO - Forcer visibilité partout
   =========================================== */
html.light-theme [class*="logo"] .logo-cyte,
html.light-theme .logo-cyte,
html.light-theme span.logo-cyte {
  color: #1A202C !important;
}

html.light-theme [class*="logo"] .logo-sol,
html.light-theme .logo-sol,
html.light-theme span.logo-sol {
  color: #4A90A4 !important;
}

/* ===========================================
   FIX CARDS AVEC OVERLAY/FOND SEMI-TRANSPARENT
   (Image 3 - Rapidité, Conformité, etc.)
   =========================================== */

/* Reset tous les backgrounds semi-transparents */
html.light-theme [style*="rgba"],
html.light-theme [style*="RGBA"] {
  background: #FFFFFF !important;
}

/* Cards de fonctionnalités avec fond gris */
html.light-theme .benefit,
html.light-theme .benefit-card,
html.light-theme .feature,
html.light-theme .feature-card,
html.light-theme .features-grid > div,
html.light-theme .benefits-grid > div,
html.light-theme [class*="benefit"],
html.light-theme [class*="feature"]:not(input):not(button) {
  background: #FFFFFF !important;
  color: #1A202C !important;
  border: 1px solid rgba(74, 144, 164, 0.12) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Texte dans ces cards */
html.light-theme .benefit h3,
html.light-theme .benefit h4,
html.light-theme .benefit-card h3,
html.light-theme .benefit-card h4,
html.light-theme .feature h3,
html.light-theme .feature h4,
html.light-theme .feature-card h3,
html.light-theme .feature-card h4,
html.light-theme .features-grid h3,
html.light-theme .features-grid h4,
html.light-theme .benefits-grid h3,
html.light-theme .benefits-grid h4 {
  color: #1A202C !important;
}

html.light-theme .benefit p,
html.light-theme .benefit-card p,
html.light-theme .feature p,
html.light-theme .feature-card p,
html.light-theme .features-grid p,
html.light-theme .benefits-grid p {
  color: #4A5568 !important;
}

/* Icons dans les cards */
html.light-theme .benefit-icon,
html.light-theme .feature-icon,
html.light-theme [class*="icon"] svg,
html.light-theme [class*="benefit"] svg,
html.light-theme [class*="feature"] svg {
  color: #4A90A4 !important;
  fill: #4A90A4 !important;
}

/* ===========================================
   FIX DASHBOARD (Image 1)
   =========================================== */

/* Container principal */
html.light-theme .dashboard,
html.light-theme .dashboard-page,
html.light-theme .dashboard-container,
html.light-theme #dashboard,
html.light-theme [class*="dashboard"] {
  background: #F7FAFC !important;
}

/* Header du dashboard */
html.light-theme .dashboard-header,
html.light-theme [class*="dashboard"] header,
html.light-theme [class*="dashboard"] nav {
  background: #FFFFFF !important;
  border-color: rgba(74, 144, 164, 0.1) !important;
}

/* Panneaux du menu */
html.light-theme #menuPanel1,
html.light-theme #menuPanel2,
html.light-theme [id*="menuPanel"],
html.light-theme .menu-panel {
  background: #F7FAFC !important;
}

/* Grille du menu */
html.light-theme .menu-1-container,
html.light-theme .menu-1-grid,
html.light-theme .menu-2-container,
html.light-theme .menu-2-grid {
  background: #F7FAFC !important;
}

/* ===========================================
   FIX HISTORIQUE SIDEBAR
   =========================================== */
html.light-theme .history-sidebar,
html.light-theme [class*="history-sidebar"],
html.light-theme [class*="sidebar"] {
  background: #FFFFFF !important;
  border-color: rgba(74, 144, 164, 0.1) !important;
}

/* Titre historique */
html.light-theme .history-sidebar h3,
html.light-theme .history-header,
html.light-theme [class*="history"] h3 {
  color: #1A202C !important;
}

/* Items de l'historique */
html.light-theme .history-item,
html.light-theme [class*="history-item"],
html.light-theme .history-list > div,
html.light-theme .history-list > li,
html.light-theme #chatHistoryList > div,
html.light-theme #chatHistoryList li {
  background: #EDF2F7 !important;
  color: #1A202C !important;
  border: 1px solid rgba(74, 144, 164, 0.08) !important;
}

html.light-theme .history-item:hover,
html.light-theme [class*="history-item"]:hover {
  background: #E2E8F0 !important;
}

html.light-theme .history-item.active,
html.light-theme [class*="history-item"].active {
  background: rgba(74, 144, 164, 0.12) !important;
  border-left: 3px solid #4A90A4 !important;
}

html.light-theme .history-item span,
html.light-theme .history-item p,
html.light-theme .history-item small,
html.light-theme .history-item div {
  color: #4A5568 !important;
}

/* ===========================================
   FIX SECTION CHAT
   =========================================== */
html.light-theme .chat-section,
html.light-theme [class*="chat-section"],
html.light-theme .chat-container {
  background: #FFFFFF !important;
  border-color: rgba(74, 144, 164, 0.1) !important;
}

html.light-theme .chat-header,
html.light-theme [class*="chat"] h3 {
  color: #1A202C !important;
}

html.light-theme .chat-messages,
html.light-theme #chatMessages {
  background: #FAFBFC !important;
}

/* Message placeholder */
html.light-theme .chat-placeholder,
html.light-theme .chat-empty,
html.light-theme .empty-state {
  color: #718096 !important;
}

html.light-theme .chat-placeholder h3,
html.light-theme .empty-state h3 {
  color: #4A5568 !important;
}

/* Input chat */
html.light-theme .chat-input-container,
html.light-theme .chat-input-wrapper,
html.light-theme [class*="chat-input"] {
  background: #FFFFFF !important;
  border-color: #CBD5E0 !important;
}

html.light-theme .chat-input-container input,
html.light-theme .chat-input-container textarea {
  background: #FFFFFF !important;
  color: #1A202C !important;
}

/* ===========================================
   FIX SECTION DOCUMENTS
   =========================================== */
html.light-theme .docs-section,
html.light-theme [class*="docs-section"],
html.light-theme .documents-section {
  background: #FFFFFF !important;
  border-color: rgba(74, 144, 164, 0.1) !important;
}

html.light-theme .docs-header,
html.light-theme [class*="docs"] h3 {
  color: #1A202C !important;
}

/* Zone upload */
html.light-theme .docs-upload-zone,
html.light-theme .upload-zone,
html.light-theme [class*="upload-zone"] {
  background: #F7FAFC !important;
  border: 2px dashed rgba(74, 144, 164, 0.3) !important;
  color: #4A5568 !important;
}

html.light-theme .docs-upload-zone:hover,
html.light-theme .upload-zone:hover {
  background: #EDF2F7 !important;
  border-color: #4A90A4 !important;
}

html.light-theme .upload-text,
html.light-theme .upload-formats,
html.light-theme [class*="upload"] p,
html.light-theme [class*="upload"] span {
  color: #718096 !important;
}

/* Zone preview (le grand bloc gris en bas) */
html.light-theme .doc-preview,
html.light-theme #docPreview,
html.light-theme .preview-container,
html.light-theme [class*="preview"] {
  background: #EDF2F7 !important;
  color: #4A5568 !important;
  border: 1px solid rgba(74, 144, 164, 0.1) !important;
}

/* Liste documents */
html.light-theme .docs-list,
html.light-theme #docsList {
  background: transparent !important;
}

html.light-theme .doc-item {
  background: #EDF2F7 !important;
  color: #1A202C !important;
  border: 1px solid rgba(74, 144, 164, 0.08) !important;
}

html.light-theme .doc-item:hover {
  background: #E2E8F0 !important;
}

/* Notice de rétention */
html.light-theme .retention-notice {
  background: rgba(74, 144, 164, 0.06) !important;
  color: #4A5568 !important;
  border: 1px solid rgba(74, 144, 164, 0.15) !important;
}

/* ===========================================
   FIX ONGLETS (Discussion / Rapports RSE)
   =========================================== */
html.light-theme .tabs,
html.light-theme .tab-buttons,
html.light-theme [class*="tabs"] {
  background: transparent !important;
}

html.light-theme .tab,
html.light-theme .tab-btn,
html.light-theme [class*="tab"]:not([class*="table"]):not(td):not(th) {
  background: #EDF2F7 !important;
  color: #4A5568 !important;
  border: 1px solid rgba(74, 144, 164, 0.15) !important;
}

html.light-theme .tab.active,
html.light-theme .tab-btn.active,
html.light-theme [class*="tab"].active:not([class*="table"]) {
  background: linear-gradient(135deg, #4A90A4, #63B3ED) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}

html.light-theme .tab:hover:not(.active),
html.light-theme .tab-btn:hover:not(.active) {
  background: #E2E8F0 !important;
}

/* ===========================================
   FIX BOUTONS NAV
   =========================================== */
html.light-theme .nav-links .nav-link,
html.light-theme header .nav-link,
html.light-theme nav .nav-link {
  color: #4A5568 !important;
}

html.light-theme .nav-links .nav-link:hover,
html.light-theme header .nav-link:hover,
html.light-theme nav .nav-link:hover {
  color: #4A90A4 !important;
  background: rgba(74, 144, 164, 0.08) !important;
}

html.light-theme .nav-links .nav-link.active {
  color: #4A90A4 !important;
  background: rgba(74, 144, 164, 0.1) !important;
}

/* Bouton déconnexion */
html.light-theme #logoutBtn,
html.light-theme [id*="logout"] {
  color: #4A5568 !important;
}

html.light-theme #logoutBtn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #E53E3E !important;
}

/* ===========================================
   OVERRIDE GLOBAL - Forcer couleurs de texte
   =========================================== */
html.light-theme body {
  color: #1A202C !important;
}

html.light-theme h1, html.light-theme h2, 
html.light-theme h3, html.light-theme h4,
html.light-theme h5, html.light-theme h6 {
  color: #1A202C !important;
}

html.light-theme p {
  color: #4A5568 !important;
}

html.light-theme span:not(.logo-sol):not(.logo-ai):not([class*="badge"]) {
  color: inherit !important;
}

/* ===========================================
   EMPÊCHER LES BACKGROUNDS DARK
   =========================================== */
html.light-theme [style*="background: #0F1419"],
html.light-theme [style*="background:#0F1419"],
html.light-theme [style*="background-color: #0F1419"],
html.light-theme [style*="background-color:#0F1419"],
html.light-theme [style*="background: rgb(15"],
html.light-theme [style*="background:rgb(15"] {
  background: #F7FAFC !important;
}

html.light-theme [style*="background: #1C2128"],
html.light-theme [style*="background:#1C2128"],
html.light-theme [style*="background-color: #1C2128"],
html.light-theme [style*="background-color:#1C2128"],
html.light-theme [style*="background: rgb(28"],
html.light-theme [style*="background:rgb(28"] {
  background: #FFFFFF !important;
}

html.light-theme [style*="background: #2D3748"],
html.light-theme [style*="background:#2D3748"],
html.light-theme [style*="background-color: #2D3748"],
html.light-theme [style*="background-color:#2D3748"],
html.light-theme [style*="background: rgb(45"],
html.light-theme [style*="background:rgb(45"] {
  background: #EDF2F7 !important;
}

/* Forcer le texte blanc à devenir dark */
html.light-theme [style*="color: #fff"],
html.light-theme [style*="color:#fff"],
html.light-theme [style*="color: white"],
html.light-theme [style*="color:white"],
html.light-theme [style*="color: rgb(255"],
html.light-theme [style*="color:rgb(255"] {
  color: #1A202C !important;
}
