/* ═══════════════════════════════════════════════════
   DROQ — Design System v2
   Fond : réseau de neurones animé (canvas JS)
   Palette : bleu-violet profond, plus lumineux
   Police : Syne (titres) + Inter (corps)
   ═══════════════════════════════════════════════════ */

:root {
  --bg-0: #10112a;
  --bg-1: #161830;
  --bg-2: #1c1e3a;
  --bg-card: rgba(255, 255, 255, 0.055);
  --accent: #6C63FF;
  --accent-light: #9b95ff;
  --accent2: #00D4AA;
  --accent2-light: #33e0be;
  --text-1: #eeeeff;
  --text-2: #c2bfe8;
  --text-3: #8e8ab5;
  --border: rgba(108, 99, 255, 0.2);
  --border-hover: rgba(108, 99, 255, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: 0.22s ease;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── CANVAS NEURONES ─── */
#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#navbar,
section,
.metrics-band,
.cta-section,
footer {
  position: relative;
  z-index: 1;
}

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(108, 99, 255, 0.38);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  border: 0.5px solid rgba(108, 99, 255, 0.35);
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text-1);
  background: rgba(108,99,255,0.1);
  transform: translateY(-1px);
}

.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-nav:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.42);
}

/* ─── SECTION COMMONS ─── */
.section { padding: 90px 0; }
.section-header { margin-bottom: 52px; }

.section-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub {
  font-size: 15px;
  color: var(--text-3);
  max-width: 480px;
  line-height: 1.7;
}

/* ─── ANIMATIONS ─── */
[data-anim] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════ NAV ═══════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 0.5px solid transparent;
}
#navbar.scrolled {
  background: rgba(12, 13, 32, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
}
.nav-logo span { color: var(--accent-light); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-3);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-1); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-2);
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 40px 20px;
  background: rgba(12, 13, 32, 0.96);
  border-top: 0.5px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  color: var(--text-2);
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 8px; }
.mobile-menu a:hover { color: var(--text-1); }

/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 65% at 50% 45%,
    rgba(16, 17, 42, 0.68) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse,
    rgba(108, 99, 255, 0.2) 0%,
    rgba(0, 212, 170, 0.06) 55%,
    transparent 75%
  );
  pointer-events: none;
  filter: blur(52px);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.13);
  border: 0.5px solid rgba(108, 99, 255, 0.32);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--accent-light);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  margin: 0 auto 22px;
  max-width: 740px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 40px rgba(108, 99, 255, 0.28);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-3);
  max-width: 500px;
  margin: 0 auto 38px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════ METRICS ═══════════════════════════ */
.metrics-band {
  display: flex;
  justify-content: center;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: rgba(18, 20, 48, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-wrap: wrap;
}
.metric-item {
  padding: 28px 44px;
  text-align: center;
  border-right: 0.5px solid var(--border);
  flex: 1;
  min-width: 150px;
}
.metric-item:last-child { border-right: none; }
.metric-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.metric-val span { color: var(--accent2-light); }
.metric-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 5px;
  line-height: 1.4;
}

/* ═══════════════════════════ SERVICES ═══════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.service-card {
  background: rgba(20, 22, 50, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(108, 99, 255, 0.18);
}
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(108, 99, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.service-card p {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
  flex: 1;
}
.card-link {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
  transition: color var(--transition);
  margin-top: auto;
}
.card-link:hover { color: #fff; }

/* ═══════════════════════════ PROCESS ═══════════════════════════ */
.process-section { background: transparent; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(18, 20, 48, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.step {
  padding: 36px 32px;
  border-right: 0.5px solid var(--border);
  transition: background var(--transition);
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(108, 99, 255, 0.07); }
.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.step p {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.65;
}

/* ═══════════════════════════ AUDIT ═══════════════════════════ */
.audit-card {
  max-width: 580px;
  margin: 0 auto;
  background: rgba(18, 20, 48, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
}
.progress-wrap {
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  height: 3px;
  margin-bottom: 36px;
  overflow: hidden;
}
.progress-fill {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz-step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.quiz-question {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.35;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.1);
  color: var(--text-2);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.12s;
  width: 100%;
}
.quiz-option:hover {
  background: rgba(108, 99, 255, 0.13);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(4px);
}
.quiz-option.selected {
  background: rgba(108, 99, 255, 0.2);
  border-color: var(--accent);
  color: #fff;
}
.quiz-success { text-align: center; padding: 16px 0; }
.quiz-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.12);
  border: 0.5px solid rgba(0, 212, 170, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
}
.quiz-success h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.quiz-success p {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 28px;
}

/* ═══════════════════════════ RESOURCES ═══════════════════════════ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.resource-card {
  background: rgba(20, 22, 50, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.resource-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(108, 99, 255, 0.14);
}
.resource-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent2-light);
  background: rgba(0, 212, 170, 0.08);
  border: 0.5px solid rgba(0, 212, 170, 0.22);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}
.resource-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.resource-card p {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
  flex: 1;
}

/* ═══════════════════════════ CTA ═══════════════════════════ */
.cta-section {
  padding: 90px 0;
  background: rgba(18, 20, 48, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 0.5px solid var(--border);
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-section > .container > p {
  color: var(--text-3);
  margin-bottom: 32px;
  font-size: 15px;
}
.contact-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}
.contact-form input {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.12);
  color: var(--text-1);
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  outline: none;
}
.contact-form input::placeholder { color: var(--text-3); }
.contact-form input:focus { border-color: var(--accent); }

.form-success {
  display: none;
  color: var(--accent2-light);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
  animation: fadeInUp 0.4s ease;
}
.form-success.visible { display: block; }

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

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
footer {
  padding: 28px 0;
  border-top: 0.5px solid var(--border);
  background: rgba(10, 11, 26, 0.75);
  backdrop-filter: blur(12px);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: var(--text-3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px;
  color: var(--text-3);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-1); }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 0.5px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }
  .metric-item { padding: 22px 28px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
  .mobile-menu { padding: 16px 20px 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 70px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 15px; }
  .section-title { font-size: 26px; }
  .audit-card { padding: 28px 22px; }
  .cta-section h2 { font-size: 28px; }
  .contact-form { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer-links { justify-content: center; }
}
