/* ═══════════════════════════════════════════════════════
   Chroma Dashboard — Site Vitrine
   Couleur principale : #959af7 (lavande)
   ═══════════════════════════════════════════════════════ */

:root {
  --primary:      #959af7;
  --primary-d:    rgba(149,154,247,0.15);
  --primary-mid:  rgba(149,154,247,0.30);
  --primary-glow: rgba(149,154,247,0.20);
  --primary-dark: #7c82ef;

  --bg:       #06060f;
  --bg-card:  #0e0e1c;
  --bg-card2: #141426;
  --bg-hover: #1a1a2e;
  --border:   rgba(149,154,247,0.12);
  --border-s: rgba(255,255,255,0.06);

  --text-1: #f0f0fa;
  --text-2: #9195b8;
  --text-3: #52566e;

  --green:  #4ade80;
  --red:    #f87171;
  --gold:   #fbbf24;

  --radius: 12px;
  --nav-h:  68px;
}

/* Thème "Légal" (Chroma Entreprises) — même structure, accent ambre/doré au lieu de
   lavande, pour distinguer visuellement les pages du 2e produit. Appliqué via
   <body class="legal-theme"> sur les pages fonctionnalites-legal.html / tarifs-legal.html. */
body.legal-theme {
  --primary:      #e0a84a;
  --primary-d:    rgba(224,168,74,0.15);
  --primary-mid:  rgba(224,168,74,0.30);
  --primary-glow: rgba(224,168,74,0.20);
  --primary-dark: #c9903a;
  --border:       rgba(224,168,74,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; }
img { max-width: 100%; }

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-mid); border-radius: 3px; }

/* ══════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 800; color: var(--text-1);
}

.nav-logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 0 16px var(--primary-glow);
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  margin: 0 auto;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-2);
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-1); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px;
  background: var(--primary);
  color: #06060f; font-weight: 700; font-size: 0.85rem;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 20px var(--primary-glow);
}
.nav-cta:hover { opacity: 0.88; box-shadow: 0 0 32px var(--primary-mid); }

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}

.hero-orbs {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
}
.orb-1 {
  width: 600px; height: 600px; top: -100px; left: -150px;
  background: var(--primary);
  animation: orb-float 12s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px; bottom: -50px; right: -100px;
  background: #6366f1;
  animation: orb-float 16s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px; height: 300px; top: 40%; left: 60%;
  background: #a78bfa;
  animation: orb-float 20s ease-in-out infinite 4s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 40px) scale(0.96); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--primary-d); border: 1px solid var(--primary-mid);
  color: var(--primary); font-size: 0.78rem; font-weight: 600;
  margin-bottom: 28px; position: relative; z-index: 1;
  animation: fade-up 0.6s ease both;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--primary-mid); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px transparent; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.03em;
  position: relative; z-index: 1;
  animation: fade-up 0.6s ease 0.1s both;
}
.hero-title .accent { color: var(--primary); }

.hero-sub {
  max-width: 600px; margin: 20px auto 0;
  font-size: 1.05rem; color: var(--text-2); line-height: 1.7;
  position: relative; z-index: 1;
  animation: fade-up 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px; position: relative; z-index: 1;
  animation: fade-up 0.6s ease 0.3s both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  background: var(--primary); color: #06060f;
  font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 0 24px var(--primary-glow), 0 4px 16px rgba(0,0,0,0.4);
  transition: all 0.15s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 0 36px var(--primary-mid), 0 8px 24px rgba(0,0,0,0.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-s);
  color: var(--text-1); font-weight: 600; font-size: 0.92rem;
  backdrop-filter: blur(10px);
  transition: all 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.09); border-color: var(--border); }

/* ── Dashboard Mockup Animé ───────────────────────────── */
.hero-mockup {
  width: 100%; max-width: 900px;
  margin: 60px auto 0;
  position: relative; z-index: 1;
  animation: fade-up 0.7s ease 0.4s both;
}

.mockup-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(149,154,247,0.12), 0 0 0 1px var(--border);
  overflow: hidden;
}

.mockup-topbar {
  height: 38px; background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px; gap: 6px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #f87171; }
.mockup-dot:nth-child(2) { background: #fbbf24; }
.mockup-dot:nth-child(3) { background: #4ade80; }
.mockup-url {
  margin: 0 auto; background: var(--bg-hover); border-radius: 6px;
  padding: 3px 14px; font-size: 0.72rem; color: var(--text-3);
  width: 220px; text-align: center;
}

.mockup-body {
  display: flex; height: 420px;
}

.mockup-sidebar {
  width: 60px; background: var(--bg-card2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0; gap: 4px;
}
.mockup-nav-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-3); transition: all 0.2s;
}
.mockup-nav-icon.active {
  background: var(--primary-d); color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary-mid);
}

.mockup-content {
  flex: 1; padding: 20px; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
}

.mockup-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.mockup-stat {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.mockup-stat-lbl { font-size: 0.6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.mockup-stat-val {
  font-size: 1.1rem; font-weight: 800; color: var(--text-1);
  margin-top: 4px;
  background: linear-gradient(90deg, var(--text-1), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.mockup-table-hd {
  height: 28px; background: var(--bg-card2); border-radius: 6px;
  border: 1px solid var(--border);
}
.mockup-table-rows { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mockup-row {
  height: 32px; background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 6px; display: flex; align-items: center; padding: 0 10px; gap: 8px;
  animation: row-in 0.3s ease both;
}
.mockup-row:nth-child(1) { animation-delay: 0.8s; }
.mockup-row:nth-child(2) { animation-delay: 1.0s; }
.mockup-row:nth-child(3) { animation-delay: 1.2s; }
.mockup-row:nth-child(4) { animation-delay: 1.4s; }
.mockup-row:nth-child(5) { animation-delay: 1.6s; }

@keyframes row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mockup-row-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.mockup-row-bar { height: 8px; border-radius: 4px; background: var(--border); flex: 1; overflow: hidden; position: relative; }
.mockup-row-bar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), #6366f1);
  animation: bar-fill 1s ease both;
}
.mockup-row:nth-child(1) .mockup-row-bar::after { width: 75%; animation-delay: 0.9s; }
.mockup-row:nth-child(2) .mockup-row-bar::after { width: 55%; animation-delay: 1.1s; }
.mockup-row:nth-child(3) .mockup-row-bar::after { width: 88%; animation-delay: 1.3s; }
.mockup-row:nth-child(4) .mockup-row-bar::after { width: 42%; animation-delay: 1.5s; }
.mockup-row:nth-child(5) .mockup-row-bar::after { width: 63%; animation-delay: 1.7s; }

@keyframes bar-fill {
  from { width: 0 !important; }
}

.mockup-row-val { font-size: 0.65rem; color: var(--primary); font-weight: 700; white-space: nowrap; }

/* ══════════════════════════════════════════════════════
   SECTIONS COMMUNES
   ══════════════════════════════════════════════════════ */
.section {
  padding: 100px 24px;
  max-width: 1100px; margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); background: var(--primary-d); border: 1px solid var(--primary-mid);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-title .accent { color: var(--primary); }

.section-sub {
  font-size: 1rem; color: var(--text-2); max-width: 560px; line-height: 1.7;
}

.section-centered { text-align: center; }
.section-centered .section-sub { margin: 0 auto; }

/* ── Séparateur lumineux ──────────────────────────────── */
.sep {
  height: 1px; max-width: 1100px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--primary-mid), transparent);
}

/* ══════════════════════════════════════════════════════
   FEATURES GRID
   ══════════════════════════════════════════════════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 60px;
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 28px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden; isolation: isolate;
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover {
  border-color: var(--primary-mid);
  box-shadow: 0 8px 32px rgba(149,154,247,0.08);
  transform: translateY(-3px);
}
.feature-card:hover .feature-card-bg { opacity: .22; }

.feature-card-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: top center; background-repeat: no-repeat;
  opacity: .14; transition: opacity 0.3s ease;
  -webkit-mask-image: linear-gradient(155deg, black 0%, black 35%, transparent 78%);
  mask-image: linear-gradient(155deg, black 0%, black 35%, transparent 78%);
}

.feature-title {
  font-size: 0.98rem; font-weight: 700; color: var(--text-1);
  margin-bottom: 8px; margin-top: 4px;
}

.feature-desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   STATS BANDE
   ══════════════════════════════════════════════════════ */
.stats-band {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
}
.stats-band-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px; text-align: center;
}
.stat-num {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -0.04em;
  color: var(--primary); line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--text-2); margin-top: 6px; }

/* ══════════════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 60px; align-items: start;
}

.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  position: relative;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s;
}
.pricing-card.visible { opacity: 1; transform: translateY(0); }

.pricing-card.featured {
  border-color: var(--primary-mid);
  box-shadow: 0 0 60px rgba(149,154,247,0.12), inset 0 1px 0 var(--primary-mid);
}

.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #06060f;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 14px; border-radius: 999px;
}

.pricing-type { font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.pricing-name { font-size: 1.2rem; font-weight: 800; color: var(--text-1); margin-top: 4px; }
.pricing-price {
  font-size: 2.6rem; font-weight: 900; letter-spacing: -0.04em;
  color: var(--primary); margin: 20px 0 4px; line-height: 1;
}
.pricing-price sup { font-size: 1.1rem; vertical-align: super; letter-spacing: 0; }
.pricing-period { font-size: 0.78rem; color: var(--text-3); }

.pricing-sep { height: 1px; background: var(--border); margin: 22px 0; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-2);
}
.pricing-features li::before {
  content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0;
}
.pricing-features li.disabled { color: var(--text-3); }
.pricing-features li.disabled::before { content: '✕'; color: var(--text-3); }

.pricing-btn {
  display: block; text-align: center; margin-top: 28px;
  padding: 12px; border-radius: 8px; font-weight: 700; font-size: 0.88rem;
  transition: all 0.15s;
}
.pricing-btn-primary {
  background: var(--primary); color: #06060f;
  box-shadow: 0 0 20px var(--primary-glow);
}
.pricing-btn-primary:hover { opacity: 0.88; }
.pricing-btn-secondary {
  background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text-1);
}
.pricing-btn-secondary:hover { border-color: var(--primary-mid); }

/* ══════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-top: 60px; align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.contact-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--primary-d); border: 1px solid var(--primary-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-title { font-weight: 700; font-size: 0.9rem; color: var(--text-1); }
.contact-item-val { font-size: 0.85rem; color: var(--text-2); margin-top: 2px; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.form-input, .form-textarea {
  background: var(--bg-card2); border: 1px solid var(--border-s);
  border-radius: 8px; padding: 10px 14px;
  color: var(--text-1); font: inherit; font-size: 0.88rem;
  transition: border-color 0.15s;
  resize: none;
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(149,154,247,0.08);
}
.form-textarea { height: 120px; }

.form-btn {
  padding: 12px; border-radius: 8px; font-weight: 700; font-size: 0.9rem;
  background: var(--primary); color: #06060f;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: opacity 0.15s;
}
.form-btn:hover { opacity: 0.88; }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1rem; margin-bottom: 12px;
}
.footer-logo span { color: var(--primary); }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--text-3); transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.78rem; color: var(--text-3); }

/* ══════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   PAGE DEMO
   ══════════════════════════════════════════════════════ */
.demo-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.demo-header {
  padding: 40px 48px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.demo-iframe-wrap {
  flex: 1; position: relative;
}
.demo-iframe-wrap iframe {
  width: 100%; height: calc(100vh - var(--nav-h) - 100px);
  border: none;
}

.demo-notice {
  background: var(--primary-d); border-top: 1px solid var(--primary-mid);
  padding: 12px 24px; text-align: center;
  font-size: 0.82rem; color: var(--primary);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .mockup-body { height: 280px; }
  .mockup-stat-row { grid-template-columns: repeat(2,1fr); }
  .mockup-sidebar { display: none; }
}
