/* ================================================
   KELEXIA LLC — DESIGN SYSTEM
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --primary: #5B6CFF;
  --primary-light: #7C8CFF;
  --primary-dark: #3F4FCC;

  --secondary: #7B3FE4;

  --accent: #F59E0B;
  --accent-light: #FDBA74;
  --accent-glow: rgba(245, 158, 11, 0.35);

  --success: #10b981;
  --warning: #f59e0b;

  /* Dark Background System */
  --bg-darkest: #040b14;
  --bg-dark: #071020;
  --bg-card: #0c1a2e;
  --bg-card-hover: #112040;
  --bg-glass: rgba(13, 26, 52, 0.6);

  /* Text */
  --text-primary: #f0f6ff;
  --text-secondary: #94aac5;
  --text-muted: #5a7299;

  /* Borders (FIXED ) */
  --border: rgba(123, 63, 228, 0.15);
  --border-hover: rgba(123, 63, 228, 0.35);

  /* Gradients (FIXED ) */
  --gradient-primary: linear-gradient(135deg, #5B6CFF 0%, #7B3FE4 60%, #F59E0B 100%);
  
  --gradient-hero: 
    radial-gradient(ellipse at 70% 30%, rgba(123,63,228,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(245,158,11,0.14) 0%, transparent 60%),
    linear-gradient(180deg, #040b14 0%, #040b14 100%);

  --gradient-card: linear-gradient(
    135deg, 
    rgba(91,108,255,0.08) 0%, 
    rgba(123,63,228,0.06) 50%, 
    rgba(245,158,11,0.04) 100%
  );

  /* Shadows (FIXED) */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(123, 63, 228, 0.25);
  --shadow-btn: 0 10px 30px rgba(245, 158, 11, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Inter', 'Manrope', sans-serif;
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;

  /*  Améliorations premium */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Liens */
a { 
  color: var(--secondary);
  text-decoration: none; 
  transition: all 0.2s ease;
}

a:hover { 
  color: var(--accent); /* orange uniquement au hover */
}

/*  NAVBAR  */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: var(--bg-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar__logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar__logo:hover img {
  transform: scale(1.05);
}

.navbar__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.navbar__links a {
  color: var(--text-secondary); /* texte secondaire pour contraste */
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s, text-shadow 0.3s;
}

.navbar__links a:hover { 
  color: var(--accent); /* orange accentué au hover */
  text-shadow: 0 0 8px var(--accent-glow); /* glow subtil */
}

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

/*  BUTTONS  */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  /*border-radius: 50px;*/
  border-radius: var(--radius-xl);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  /*color: #fff;*/
  color: var(--text-primary);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 110, 253, 0.55);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 50px;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.84rem;
}

/*  SECTION UTILITIES  */
section { padding: 100px 5%; }

.section-label {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/*  CARDS  */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.card:hover::before { opacity: 1; }

/*.card-icon {*/
/*  width: 56px; height: 56px;*/
/*  background: rgba(13, 110, 253, 0.12);*/
/*  border: 1px solid rgba(13, 110, 253, 0.25);*/
/*  border-radius: var(--radius-md);*/
/*  display: flex; align-items: center; justify-content: center;*/
/*  font-size: 1.5rem;*/
/*  margin-bottom: 24px;*/
/*}*/

.card-icon {
  width: 56px; 
  height: 56px;
  
  /* Fond et bordures harmonisés avec la charte */
  background: rgba(123, 63, 228, 0.12); /* violet léger */
  border: 1px solid rgba(123, 63, 228, 0.25); /* violet plus prononcé */
  
  border-radius: var(--radius-md);
  display: flex; 
  align-items: center; 
  justify-content: center;
  
  font-size: 1.5rem;
  margin-bottom: 24px;
  
  transition: all 0.3s ease;
}

.card-icon:hover {
  background: rgba(123, 63, 228, 0.18);
  box-shadow: 0 4px 15px rgba(123, 63, 228, 0.25);
  transform: translateY(-2px);
}

.card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* FOOTER  */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 60px 5% 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.75;
}

.footer__col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer__col ul { list-style: none; }

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__col ul li a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal a {
  color: var(--text-muted);
  margin-left: 20px;
  font-size: 0.84rem;
}

.footer__legal a:hover { color: var(--text-secondary); }

/* LEGAL PAGES */
.legal-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
  background: var(--gradient-hero);
}

.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 5% 100px;
}

.legal-body h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--text-primary);
}

.legal-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--accent);
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-body ul {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.85;
  margin: 10px 0 18px 24px;
}

.legal-body ul li { margin-bottom: 8px; }

.legal-body .last-updated {
  display: inline-block;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.18);
  color: var(--accent);
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 36px;
}

.legal-body .legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* BADGE  */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

/* STATS ROW  */
.stats-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 52px;
}

.stat-item strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/*  STEP FLOW  */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step-flow::before {
  content: '';
  position: absolute;
  left: 27px; top: 56px; bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0.25;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 32px 32px 0;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,212,255,0.25);
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/*  TESTIMONIAL  */
.testimonial {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.testimonial-author-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.testimonial-author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* PRICING */
.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 50px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pricing-price {
  font-family: 'Manrope', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  margin: 16px 0 8px;
}

.pricing-price span {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 28px 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: '\2713';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  gap: 16px;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: background 0.3s, transform 0.3s;
}

.faq-item.open .faq-icon {
  background: var(--primary);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 28px 22px;
}

/*  COOKIE BANNER  */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideUp 0.4s ease;
}

.cookie-banner[hidden] { display: none; }

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* HERO VISUAL */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 340px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-card-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.hero-card-dot.red { background: #ff5f57; }
.hero-card-dot.yellow { background: #febc2e; }
.hero-card-dot.green { background: #28c840; }

.call-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.call-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.call-info { flex: 1; }
.call-info strong { display: block; font-size: 0.85rem; font-weight: 600; }
.call-info span { font-size: 0.75rem; color: var(--text-muted); }

.call-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.call-status.scheduled { background: rgba(0,212,255,0.12); color: var(--accent); }
.call-status.completed { background: rgba(16,185,129,0.12); color: var(--success); }
.call-status.pending { background: rgba(245,158,11,0.12); color: var(--warning); }

/* GLOWING ORB BACKGROUND */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/*  RESPONSIVE  */
@media (max-width: 768px) {
  .navbar__links { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
  .stats-row { gap: 28px; }
  section { padding: 70px 5%; }
}
