/* ═══════════════════════════════════════════════
   NexoraIA — Feuille de style principale
   ═══════════════════════════════════════════════ */

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

/* ─── TOKENS ─── */
:root {
  --bg:          #06060A;
  --bg2:         #0D0D14;
  --bg3:         #12121C;
  --surface:     #1A1A28;
  --surface2:    #222236;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);
  --accent:      #7C6DFF;
  --accent2:     #A08CFF;
  --accent-glow: rgba(124,109,255,0.25);
  --green:       #3EFFA8;
  --green-dim:   rgba(62,255,168,0.12);
  --amber:       #FFB547;
  --text:        #F0EFF8;
  --text2:       #9896B0;
  --text3:       #5A5870;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --r:    12px;
  --r-lg: 20px;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── KEYFRAMES ─── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

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

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(6,6,10,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent2); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,109,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(62,255,168,0.06) 0%, transparent 60%);
}

.grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,109,255,0.1);
  border: 1px solid rgba(124,109,255,0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 32px;
  position: relative; z-index: 1;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 800px;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s ease 0.1s both;
}
h1 .accent { color: var(--accent2); }
h1 .underline-green {
  position: relative;
  display: inline-block;
}
h1 .underline-green::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--accent));
  border-radius: 2px;
}

.hero-sub {
  max-width: 520px;
  font-size: 18px;
  color: var(--text2);
  font-weight: 300;
  margin: 28px 0 48px;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s ease 0.3s both;
}

/* ─── BOUTONS ─── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 0 40px rgba(124,109,255,0.3);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124,109,255,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border2);
}

/* ─── HERO STATS ─── */
.hero-stats {
  display: flex; gap: 48px; margin-top: 80px;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s ease 0.4s both;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.stat-num span { color: var(--accent2); }
.stat-label { font-size: 13px; color: var(--text3); margin-top: 2px; }

/* ─── HERO CARD ─── */
.hero-card {
  position: relative; z-index: 1;
  margin-top: 64px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 16px 24px;
  display: inline-flex; align-items: center; gap: 16px;
  animation: fadeUp 0.7s ease 0.5s both;
  box-shadow: 0 0 60px rgba(124,109,255,0.1);
}
.hero-card-icon {
  width: 40px; height: 40px;
  background: var(--green-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.hero-card-text { text-align: left; }
.hero-card-text strong { font-size: 14px; font-weight: 500; display: block; }
.hero-card-text span  { font-size: 12px; color: var(--text3); }
.hero-card-tag {
  background: var(--green-dim);
  color: var(--green);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* ─── SECTION BASE ─── */
section { padding: 100px 48px; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}

.section-sub {
  font-size: 17px;
  color: var(--text2);
  font-weight: 300;
  max-width: 520px;
  margin-top: 16px;
  line-height: 1.7;
}

/* ─── PROBLÈMES ─── */
.problems { background: var(--bg2); }
.problems-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.problems-list {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.problem-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s;
}
.problem-item:hover { border-color: rgba(124,109,255,0.3); }
.problem-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(255,80,80,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.problem-text strong { font-size: 15px; font-weight: 500; display: block; margin-bottom: 4px; }
.problem-text span   { font-size: 13px; color: var(--text3); }

/* ─── SOLUTION CARD ─── */
.solution-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,109,255,0.2), transparent 70%);
  pointer-events: none;
}
.solution-card h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  margin-bottom: 16px;
}
.solution-card p { color: var(--text2); font-size: 15px; line-height: 1.7; }
.solution-points {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.solution-point {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text2);
}
.solution-point::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0;
  background: var(--green-dim);
  border-radius: 50%;
  border: 1px solid rgba(62,255,168,0.3);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%233EFFA8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ─── SERVICES ─── */
.services { max-width: 1100px; margin: 0 auto; }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-sub { margin: 16px auto 0; }

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card:hover {
  border-color: rgba(124,109,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,109,255,0.15);
}
.service-card.featured {
  border-color: rgba(124,109,255,0.4);
  background: linear-gradient(135deg, rgba(124,109,255,0.08), var(--surface));
}
.service-card.featured::after {
  content: 'Populaire';
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 12px;
}
.service-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }
.service-features {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.service-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text2);
}
.feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}
.service-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.service-price {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
}
.service-price span {
  font-size: 13px; font-weight: 400; color: var(--text3); font-family: var(--font-body);
}
.service-btn {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.service-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── PROCESS ─── */
.process { background: var(--bg2); }
.process-inner { max-width: 1100px; margin: 0 auto; }
.process-header { text-align: center; margin-bottom: 64px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px; left: calc(25% / 2); right: calc(25% / 2);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--green), transparent);
  opacity: 0.4;
}
.process-step { text-align: center; padding: 0 20px; }

.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--accent2);
  margin: 0 auto 24px;
  position: relative; z-index: 1;
  transition: all 0.2s;
}
.process-step:hover .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  margin-bottom: 10px;
}
.process-step p { font-size: 14px; color: var(--text3); line-height: 1.6; }

/* ─── RÉSULTATS ─── */
.results { max-width: 1100px; margin: 0 auto; }
.results-header { text-align: center; margin-bottom: 64px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 0.2s;
}
.result-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.result-quote {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 24px;
}
.result-quote::before {
  content: '"';
  color: var(--accent2); font-size: 24px; font-style: normal; display: block; margin-bottom: 8px;
}
.result-metric {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 20px;
}
.metric-val {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--green);
}
.metric-label { font-size: 13px; color: var(--text3); }

.result-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  color: #fff;
}
.author-info strong { font-size: 14px; font-weight: 500; display: block; }
.author-info span   { font-size: 12px; color: var(--text3); }

/* ─── CTA FINAL ─── */
.cta-section { background: var(--bg2); text-align: center; }
.cta-inner {
  max-width: 700px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 64px;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(124,109,255,0.15), transparent 70%);
  pointer-events: none;
}
.cta-inner h2           { position: relative; z-index: 1; }
.cta-inner p            { position: relative; z-index: 1; color: var(--text2); font-size: 17px; font-weight: 300; margin: 20px 0 40px; }
.cta-inner .btn-primary { position: relative; z-index: 1; font-size: 17px; padding: 18px 40px; }
.cta-disclaimer         { position: relative; z-index: 1; margin-top: 16px; font-size: 13px; color: var(--text3); }

/* ─── FOOTER ─── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.footer-logo span { color: var(--accent2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text2); }
.footer-copy { font-size: 13px; color: var(--text3); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible       { opacity: 1; transform: none; }
.reveal-delay-1       { transition-delay: 0.1s; }
.reveal-delay-2       { transition-delay: 0.2s; }
.reveal-delay-3       { transition-delay: 0.3s; }
