/* ─────────────────────────────────────────────
   DESIGN SYSTEM — OPTIMISATION ARTISAN
   ───────────────────────────────────────────── */
:root {
  --gold: #f5c842;
  --gold-light: #ffe680;
  --gold-dark: #c9973a;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dark: #4c1d95;
  --bg-deep: #08071a;
  --bg-dark: #0f0d2a;
  --bg-card: #141232;
  --bg-card2: #1a1840;
  --surface: #201e45;
  --text-primary: #f1f0ff;
  --text-secondary: #a5a3c8;
  --text-muted: #6b68a3;
  --green: #22d3a0;
  --green-light: #6ef9d1;
  --red: #f87171;
  --border: rgba(124, 58, 237, 0.2);
  --border-gold: rgba(245, 200, 66, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --shadow-purple: 0 0 60px rgba(124, 58, 237, 0.3);
  --shadow-gold: 0 0 60px rgba(245, 200, 66, 0.25);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
  --font-main: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── UTILITIES ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-badge.magic { background: rgba(245,200,66,0.1); border-color: var(--border-gold); color: var(--gold); }
.section-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  text-align: center;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a0a00;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 30px rgba(245, 200, 66, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  border-radius: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(245, 200, 66, 0.55);
}
/* ══════════════════════════════════════════════
   ÉCRAN D'ENTRÉE MAGIQUE
══════════════════════════════════════════════ */
.magic-entrance {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a0a40 0%, #08071a 70%);
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.magic-entrance.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Stars */
.entrance-bg { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--d) ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.1; transform: scale(0.8); }
  to   { opacity: 1;   transform: scale(1.4); }
}

/* Orbs */
.scroll-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--purple); top: -100px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--gold); bottom: -100px; left: -80px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: #1e90ff; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.entrance-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 1s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.entrance-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
.entrance-logo strong { color: var(--text-primary); font-weight: 700; }
.wand-icon { font-size: 1.4rem; animation: wandWiggle 2s ease-in-out infinite; }
@keyframes wandWiggle {
  0%,100% { transform: rotate(-10deg); }
  50%     { transform: rotate(10deg); }
}

.entrance-title {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
}

.entrance-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
}

/* ─── MAGIC BUTTON ─── */
.magic-btn {
  position: relative;
  max-width: 100%;
  padding: clamp(12px, 3.5vw, 22px) clamp(16px, 7vw, 56px);
  font-family: var(--font-main);
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  font-weight: 800;
  color: #1a0700;
  border-radius: 100px;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  outline: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.magic-btn-glow {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--gold), var(--purple-light), var(--gold-light), var(--gold), var(--purple-light), var(--gold));
  z-index: 0;
  animation: rotateBorder 3s linear infinite;
  filter: blur(2px);
}
@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}
.magic-btn-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 50%, #e5a800 100%);
  padding: clamp(12px, 3vw, 20px) clamp(14px, 6vw, 52px);
  border-radius: 100px;
  box-shadow: 0 0 40px rgba(245,200,66,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  white-space: nowrap;
}
.wand-svg { width: 24px; height: 24px; flex-shrink: 0; }

@media (max-width: 380px) {
  .magic-btn-inner { white-space: normal; text-align: center; }
}

.magic-btn-particles {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.magic-btn-particles i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: particle 2s ease-in-out infinite;
}
.magic-btn-particles i:nth-child(1) { top: -8px; left: 20%; animation-delay: 0s; }
.magic-btn-particles i:nth-child(2) { top: -8px; right: 25%; animation-delay: 0.25s; }
.magic-btn-particles i:nth-child(3) { bottom: -8px; left: 30%; animation-delay: 0.5s; background: var(--purple-light); }
.magic-btn-particles i:nth-child(4) { bottom: -8px; right: 20%; animation-delay: 0.75s; }
.magic-btn-particles i:nth-child(5) { left: -8px; top: 30%; animation-delay: 1s; background: var(--purple-light); }
.magic-btn-particles i:nth-child(6) { right: -8px; top: 40%; animation-delay: 1.25s; }
.magic-btn-particles i:nth-child(7) { left: -8px; bottom: 30%; animation-delay: 1.5s; }
.magic-btn-particles i:nth-child(8) { right: -8px; bottom: 25%; animation-delay: 1.75s; background: var(--purple-light); }
@keyframes particle {
  0%,100% { opacity: 0; transform: scale(0); }
  50%      { opacity: 1; transform: scale(1.5); }
}

.magic-btn:hover { transform: scale(1.06); box-shadow: 0 0 80px rgba(245,200,66,0.5); }
.magic-btn:active { transform: scale(0.97); }

.entrance-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════
   MAIN SITE
══════════════════════════════════════════════ */
.main-site { opacity: 0; transition: opacity 1s ease; }
.main-site.visible { opacity: 1; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(8,7,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}
.nav-logo strong { color: var(--text-primary); font-weight: 800; }
.logo-wand { font-size: 1.2rem; animation: wandWiggle 3s ease-in-out infinite; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { right: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a0700;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(245,200,66,0.3);
}
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 6px 28px rgba(245,200,66,0.5); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
}
.hamburger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); align-self: center; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  background: rgba(8,7,26,0.97);
  border-top: 1px solid var(--border);
  gap: 4px;
}
.mobile-menu a { padding: 12px 0; color: var(--text-secondary); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-cta {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a0700 !important;
  padding: 14px 24px !important;
  border-radius: 50px;
  text-align: center;
  font-weight: 700;
  font-family: var(--font-main);
  border-bottom: none !important;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}
.hero-orb-1 { width: 600px; height: 600px; background: var(--purple); top: -100px; right: -200px; animation: float 10s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--gold); bottom: -100px; left: -100px; animation: float 8s ease-in-out infinite reverse; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-card-float { position: relative; height: 420px; }
.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease;
}
.float-card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2rem; }
.card-text { flex: 1; }
.card-value { display: block; font-family: var(--font-main); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.card-label { display: block; font-size: 0.75rem; color: var(--text-muted); }
.card-trend { font-size: 0.8rem; font-weight: 700; padding: 4px 8px; border-radius: 20px; }
.card-trend.up { background: rgba(34,211,160,0.15); color: var(--green); }

.card-savings { top: 0; left: 0; right: 0; animation: float3d 5s ease-in-out infinite; border-color: var(--border-gold); }
.card-orders  { top: 140px; right: 0; width: 300px; animation: float3d 6s ease-in-out infinite reverse; }
.card-stock   { bottom: 40px; left: 0; width: 280px; animation: float3d 7s ease-in-out infinite; }
@keyframes float3d {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-10px) rotate(0.5deg); }
}

/* ─── PROBLEM ─── */
.problem-section {
  padding: 100px 0;
  text-align: center;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
}
.problem-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.problem-emoji { font-size: 2.4rem; margin-bottom: 16px; }
.problem-card h3 { font-family: var(--font-main); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.problem-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── FEATURES ─── */
.features-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.features-bg { position: absolute; inset: 0; pointer-events: none; }
.feat-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}
.feat-orb-1 { width: 600px; height: 600px; background: var(--purple); top: -200px; left: -100px; }
.feat-orb-2 { width: 500px; height: 500px; background: var(--gold); bottom: -200px; right: -100px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: var(--shadow-purple);
}
.feature-card:hover::before { opacity: 1; }
.feature-card-magic {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(245,200,66,0.1));
  border-color: var(--border-gold);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-card-magic p {
  max-width: 600px;
}
.feature-card-magic:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.magic-arrow-img {
  position: absolute;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: magicArrowTwinkle 2.4s ease-in-out infinite;
  animation-play-state: paused;
}
.feature-card-magic:hover .magic-arrow-img {
  opacity: 1;
  transform: scale(1);
  animation-play-state: running;
}
@keyframes magicArrowTwinkle {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 6px rgba(245,200,66,0.4)); }
  50% { filter: brightness(1.3) drop-shadow(0 0 20px rgba(236,72,153,0.65)); }
}
.magic-star {
  display: inline-block;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(245,200,66,0.8);
}
.feature-magic-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(245,200,66,0.08), transparent 70%);
  pointer-events: none;
}
.feature-image {
  position: relative;
  margin: -36px -28px 24px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.magic-icon-anchor {
  position: absolute;
  top: 20.6%;
  right: 6.1%;
  width: 1px;
  height: 1px;
}
.feature-image img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.feature-card:hover .feature-image img { transform: scale(1.05); }
.feature-card-magic .feature-image { width: 100%; }
#feat-magic .feature-image img { border-radius: var(--radius-lg); }
.feature-card h3 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-light);
}
.feature-tag.gold {
  background: rgba(245,200,66,0.1);
  border-color: var(--border-gold);
  color: var(--gold);
}

/* ─── SAVINGS ─── */
.savings-section { padding: 100px 0; text-align: center; }
.savings-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin: 0 0 60px;
  text-align: left;
  box-shadow: var(--shadow-card);
}
.calc-left h3 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}
.calc-field { margin-bottom: 28px; }
.calc-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  cursor: pointer;
  box-shadow: 0 0 12px rgba(245,200,66,0.5);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  cursor: pointer;
  box-shadow: 0 0 12px rgba(245,200,66,0.5);
}
.range-value {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}
.calc-right {
  display: flex;
  align-items: center;
}
.calc-result {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.result-item.highlight .result-value { font-size: 1.6rem; color: var(--gold); }
.result-item.daily .result-value { color: var(--green); }
.result-label { font-size: 0.9rem; color: var(--text-secondary); }
.result-value {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  transition: all 0.3s ease;
}
.result-value.green { color: var(--green); }
.result-divider { height: 1px; background: var(--border); margin: 0; }
.calc-cta { margin-top: 24px; width: 100%; }

/* ─── HOW ─── */
.how-section { padding: 100px 0; text-align: center; }
.steps-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.steps-line {
  position: absolute;
  top: 40px;
  /* Centré sur les cercles 1 et 3 : avec 3 colonnes égales, leur centre est à
     une demi-colonne du bord, soit 100%/3/2 = 100%/6. */
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold), var(--purple));
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border: 3px solid var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  box-shadow: 0 0 30px rgba(124,58,237,0.4);
}
.step-content { flex: 1; }
.step-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.step-content h3 {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  /* Réserve la hauteur de 2 lignes : les titres font 1 ou 2 lignes selon leur
     longueur, sans cette réserve le paragraphe qui suit démarre à une hauteur
     différente d'une étape à l'autre. */
  min-height: 2.8em;
  margin-bottom: 8px;
}
.step-content p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── PRICING ─── */
.pricing-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-bg { position: absolute; inset: 0; pointer-events: none; }
.pricing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}
.pricing-orb-1 { width: 600px; height: 600px; background: var(--gold); top: -100px; right: -200px; }
.pricing-orb-2 { width: 500px; height: 500px; background: var(--purple); bottom: -200px; left: -100px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px 0 48px;
}
.pricing-grid-single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: left;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(245,200,66,0.08));
  border-color: var(--purple);
  box-shadow: 0 0 40px rgba(124,58,237,0.2);
  transform: scale(1.03);
}
.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 0 60px rgba(124,58,237,0.35);
}
.plan-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a0700;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 50px;
  white-space: nowrap;
}
.plan-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.price-amount {
  font-family: var(--font-main);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-primary);
}
.price-period { font-size: 0.85rem; color: var(--text-muted); }
.plan-articles {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.articles-num {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
}
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.plan-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.btn-plan {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.btn-plan:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--purple);
  transform: translateY(-2px);
}
.btn-plan-featured {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a0700;
  border: none;
  box-shadow: 0 4px 20px rgba(245,200,66,0.3);
}
.btn-plan-featured:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 28px rgba(245,200,66,0.5);
  color: #1a0700;
}
.plan-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ─── CONTACT ─── */
.contact-section { padding: 100px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-content .section-title { text-align: left; }
.contact-content p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }
.contact-trust { display: flex; flex-direction: column; gap: 12px; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-field input,
.form-field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  /* 16px minimum : sous ce seuil, iOS Safari zoome automatiquement la page
     au focus du champ, ce qui casse la mise en page tant qu'on ne dézoome pas. */
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form-field input:focus,
.form-field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-field input::placeholder { color: var(--text-muted); }
.form-field select {
  /* appearance:none seul masque aussi le chevron natif : sans remplacement,
     un <select> devient visuellement indiscernable d'un champ texte. */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a3c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 44px;
}
.form-field select option { background: var(--bg-card2); }

.btn-submit { width: 100%; font-size: 1.05rem; padding: 18px 32px; margin-top: 8px; }
.form-disclaimer { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 12px; }
.calc-note { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-top: 12px; line-height: 1.4; }
.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(34,211,160,0.1);
  border: 1px solid rgba(34,211,160,0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
  color: var(--green);
  font-weight: 600;
}
.form-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
  color: var(--red);
  font-weight: 600;
  text-align: center;
}
.form-error a { text-decoration: underline; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--bg-dark);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.footer-logo strong { color: var(--text-primary); font-weight: 800; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; max-width: 240px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-link:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: var(--font-main); font-size: 0.85rem; font-weight: 700; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.highlight-savings {
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── CHATBOT ─── */
.chatbot { position: fixed; right: 24px; bottom: 24px; z-index: 500; }
.chatbot-toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: 0 4px 30px rgba(245, 200, 66, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}
.chatbot-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 40px rgba(245, 200, 66, 0.6); }
.chatbot-toggle-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-deep);
}
.chatbot-toggle-badge.hidden { display: none; }

.chatbot-window {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatbotOpen 0.25s ease;
}
@keyframes chatbotOpen {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(245,200,66,0.12));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chatbot-header-info { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.chatbot-header-text { display: flex; flex-direction: column; gap: 2px; }
.chatbot-header-text strong { font-family: var(--font-main); font-size: 0.95rem; color: var(--text-primary); }
.chatbot-status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); }
.chatbot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.chatbot-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}
.chatbot-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chatbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  animation: chatbotMsgIn 0.25s ease;
}
@keyframes chatbotMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chatbot-msg.bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chatbot-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}
/* Lien d'activation rendu sous le texte d'une réponse (voir addChatMessage).
   display:block + margin-top pour qu'il se détache de la phrase qui l'introduit
   plutôt que de se fondre dans le paragraphe. */
.chatbot-cta {
  display: block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chatbot-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.chatbot-msg.typing { display: flex; align-items: center; gap: 4px; padding: 14px; }
.chatbot-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: chatbotTyping 1.2s ease-in-out infinite;
}
.chatbot-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatbotTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
  flex-shrink: 0;
}
.chatbot-suggestions.hidden { display: none; }
.chatbot-chip {
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.78rem;
  color: var(--purple-light);
  transition: var(--transition);
  cursor: pointer;
}
.chatbot-chip:hover { background: rgba(124,58,237,0.28); border-color: var(--purple); }

.chatbot-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chatbot-input-row input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 11px 16px;
  color: var(--text-primary);
  /* 16px minimum pour éviter le zoom automatique d'iOS Safari au focus. */
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.chatbot-input-row input:focus { border-color: var(--purple); }
.chatbot-input-row input::placeholder { color: var(--text-muted); }
.chatbot-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a0700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.chatbot-send:hover { transform: scale(1.06); }

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  /* Nav collapses to hamburger a step earlier than the content grids,
     since 5 links + logo + CTA get cramped well before 768px. */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }

  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .savings-calculator { grid-template-columns: 1fr; }
  .steps-container { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-content .section-title { text-align: center; }
  .contact-content p { text-align: center; }
  .contact-trust { align-items: center; }
}

@media (max-width: 768px) {
  /* .hero-visual is hidden below, so forcing full-viewport height here just
     leaves a large empty gap before the next section (and 100vh is unreliable
     on mobile browsers whose address bar resizes the viewport on scroll). */
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-actions { flex-direction: column; }
  .btn-primary { width: 100%; justify-content: center; }
  .problem-section, .features-section, .savings-section,
  .how-section, .pricing-section, .contact-section { padding: 64px 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .steps-container { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .savings-calculator { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .entrance-title { font-size: 2.4rem; }
  .nav-inner { gap: 16px; }
}

@media (max-width: 480px) {
  .d-none-sm { display: none; }
  .container { padding: 0 16px; }
  .section-title { font-size: 1.8rem; }
  .section-desc { margin-bottom: 40px; }
  .hero { padding: 90px 0 48px; }
  .hero-title { font-size: 1.9rem; }
  .contact-form { padding: 24px; }
  .pricing-card { padding: 28px 20px; }
  .feature-card { padding: 28px 20px; }
  .feature-image { margin: -28px -20px 24px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-inner { gap: 32px; }
  .nav-logo span:not(.logo-wand) { font-size: 0.95rem; }
  .entrance-title { font-size: 2rem; }
  .entrance-subtitle { font-size: 1rem; }
  .chatbot { right: 16px; bottom: 16px; }
  .chatbot-toggle { width: 52px; height: 52px; font-size: 1.4rem; }
  .chatbot-window {
    /* right:0 reste ancré au parent .chatbot (déjà décalé de 16px du bord) :
       la fenêtre garde ainsi une marge symétrique de 16px des deux côtés,
       au lieu d'un décalage qui la collait au bord droit de l'écran. */
    right: 0;
    bottom: 64px;
    width: calc(100vw - 32px);
    height: calc(100vh - 140px);
    height: calc(100svh - 140px);
  }
}

@media (max-width: 360px) {
  .nav-inner { padding: 0 16px; }
  .hero-title { font-size: 1.7rem; }
  .price-amount { font-size: 2rem; }
}

/* ─── ACCESSIBILITÉ — FOCUS CLAVIER ───
   Certains composants désactivent l'outline natif (boutons custom, slider) ;
   on le restaure ici pour la navigation clavier sans l'imposer au clic souris. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
}
