/* ===== CSS Variables ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.1) 100%);

  /* Light Mode */
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --nav-bg: rgba(255,255,255,0.92);
}

[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-2: #111827;
  --bg-3: #1e293b;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #64748b;
  --border: #1e293b;
  --card: #111827;
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --nav-bg: rgba(10,15,30,0.92);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== Typography ===== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.5); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
  color: var(--text);
}
.theme-toggle:hover { background: var(--bg-2); transform: scale(1.05); }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 500px; height: 500px;
  background: var(--accent);
  bottom: -100px; right: -100px;
  animation-delay: 3s;
}
.hero-blob-3 {
  width: 400px; height: 400px;
  background: var(--secondary);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
[data-theme="dark"] .hero-blob { opacity: 0.2; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-soft);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-3); margin-top: 4px; }

/* ===== Section Commons ===== */
section { padding: 90px 24px; }
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-badge {
  display: inline-block;
  background: var(--gradient-soft);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-header p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; }

/* ===== Features ===== */
.features { background: var(--bg-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--gradient-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: 0.93rem; line-height: 1.6; }

/* Feature card NOUVEAU */
.feature-card-new {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899) border-box;
  grid-column: 1 / -1;
}
.feature-card-new::before { opacity: 1; background: linear-gradient(135deg, #6366f1, #ec4899); }
.feature-card-new h3 { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.feature-new-badge {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  font-size: 0.7rem; font-weight: 800;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Themes ===== */
.themes { background: var(--bg); }
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.theme-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.3s ease;
  cursor: pointer;
}
.theme-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.theme-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.theme-preview-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
.theme-card:hover .theme-preview-inner { transform: scale(1.03); }

/* Theme 1 - Restaurant */
.theme-restaurant { background: linear-gradient(135deg, #1a0a00 0%, #4a1a00 100%); display: flex; align-items: center; justify-content: center; }
.theme-restaurant-content { text-align: center; color: white; padding: 20px; }
.theme-restaurant-content .t-logo { font-size: 2rem; font-weight: 900; color: #f59e0b; }
.theme-restaurant-content .t-sub { color: #fcd34d; font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; }
.theme-restaurant-content .t-nav { display: flex; gap: 12px; justify-content: center; margin-top: 10px; font-size: 0.65rem; color: #fef3c7; }
.theme-restaurant-content .t-hero { margin-top: 12px; font-size: 1.1rem; font-weight: 700; color: #fbbf24; }

/* Theme 2 - Fashion */
.theme-fashion { background: #000; display: flex; align-items: center; justify-content: center; }
.theme-fashion-content { text-align: center; color: white; padding: 20px; }
.theme-fashion-content .t-logo { font-size: 1.8rem; font-weight: 900; letter-spacing: 8px; text-transform: uppercase; }
.theme-fashion-content .t-line { width: 60px; height: 1px; background: white; margin: 12px auto; }
.theme-fashion-content .t-sub { font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase; color: #aaa; }
.theme-fashion-content .t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 12px; }
.theme-fashion-content .t-item { height: 40px; background: #222; border-radius: 4px; }

/* Theme 3 - Tech */
.theme-tech { background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3e 100%); display: flex; align-items: center; justify-content: center; }
.theme-tech-content { text-align: center; color: white; padding: 20px; }
.theme-tech-content .t-logo { font-size: 1.5rem; font-weight: 900; color: #818cf8; letter-spacing: -1px; }
.theme-tech-content .t-hero-text { font-size: 1rem; font-weight: 700; margin-top: 10px; color: white; }
.theme-tech-content .t-sub { font-size: 0.65rem; color: #94a3b8; margin-top: 6px; }
.theme-tech-content .t-btn { display: inline-block; margin-top: 10px; padding: 6px 16px; background: linear-gradient(135deg, #6366f1, #8b5cf6); border-radius: 20px; font-size: 0.65rem; color: white; }

/* Theme 4 - Immobilier */
.theme-realestate { background: linear-gradient(135deg, #1e3a5f 0%, #0c2340 100%); display: flex; align-items: center; justify-content: center; }
.theme-realestate-content { text-align: center; color: white; padding: 20px; }
.theme-realestate-content .t-logo { font-size: 1.3rem; font-weight: 800; color: #f0a500; }
.theme-realestate-content .t-search { margin-top: 12px; background: rgba(255,255,255,0.1); border-radius: 8px; padding: 8px 12px; font-size: 0.65rem; color: #94a3b8; text-align: left; }
.theme-realestate-content .t-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.theme-realestate-content .t-prop { height: 35px; background: rgba(255,255,255,0.08); border-radius: 6px; }

/* Theme 5 - Nature */
.theme-nature { background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); display: flex; align-items: center; justify-content: center; }
.theme-nature-content { text-align: center; color: white; padding: 20px; }
.theme-nature-content .t-logo { font-size: 1.5rem; font-weight: 800; color: #6ee7b7; }
.theme-nature-content .t-sub { font-size: 0.7rem; color: #a7f3d0; margin-top: 4px; }
.theme-nature-content .t-leaves { font-size: 2rem; margin-top: 8px; }
.theme-nature-content .t-text { font-size: 0.65rem; color: #d1fae5; margin-top: 8px; line-height: 1.5; }

/* Theme 6 - Photo */
.theme-photo { background: #111; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.theme-photo-content { text-align: center; color: white; padding: 10px; width: 100%; }
.theme-photo-content .t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.theme-photo-content .t-img { height: 55px; border-radius: 4px; }
.theme-photo-content .t-img:nth-child(1) { background: #333; }
.theme-photo-content .t-img:nth-child(2) { background: #444; }
.theme-photo-content .t-img:nth-child(3) { background: #2a2a2a; }
.theme-photo-content .t-logo { font-size: 1.2rem; font-weight: 900; letter-spacing: 4px; margin-bottom: 8px; }

/* Theme 7 - Beauté */
.theme-beauty { background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%); display: flex; align-items: center; justify-content: center; }
.theme-beauty-content { text-align: center; color: #831843; padding: 20px; }
.theme-beauty-content .t-logo { font-size: 1.4rem; font-weight: 800; font-style: italic; }
.theme-beauty-content .t-flower { font-size: 2rem; margin: 8px 0; }
.theme-beauty-content .t-menu { display: flex; gap: 8px; justify-content: center; font-size: 0.65rem; color: #9d174d; }
.theme-beauty-content .t-btn { display: inline-block; margin-top: 10px; padding: 6px 16px; background: #be185d; border-radius: 20px; font-size: 0.65rem; color: white; }

/* Theme 8 - E-commerce */
.theme-ecommerce { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); display: flex; align-items: center; justify-content: center; }
.theme-ecommerce-content { text-align: center; color: #1e3a8a; padding: 20px; }
.theme-ecommerce-content .t-logo { font-size: 1.3rem; font-weight: 900; color: #1d4ed8; }
.theme-ecommerce-content .t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.theme-ecommerce-content .t-prod { height: 45px; border-radius: 8px; }
.theme-ecommerce-content .t-prod:nth-child(1) { background: #bfdbfe; }
.theme-ecommerce-content .t-prod:nth-child(2) { background: #93c5fd; }
.theme-ecommerce-content .t-prod:nth-child(3) { background: #60a5fa; }

.theme-info { padding: 20px; }
.theme-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.theme-info p { font-size: 0.82rem; color: var(--text-3); margin-bottom: 12px; }
.theme-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--bg-3);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.theme-card .btn-sm { width: 100%; justify-content: center; margin-top: 12px; }

/* Theme 9 - Fitness */
.theme-fitness { background: linear-gradient(135deg, #0f1923 0%, #1a0a0a 100%); display: flex; align-items: center; justify-content: center; }
.theme-fitness-content { text-align: center; color: white; padding: 20px; }
.theme-fitness-content .t-logo { font-size: 1.3rem; font-weight: 900; color: #f97316; letter-spacing: -1px; }
.theme-fitness-content .t-sub { font-size: 0.65rem; color: #94a3b8; margin-top: 4px; letter-spacing: 2px; text-transform: uppercase; }
.theme-fitness-content .t-stats { font-size: 1.5rem; margin: 12px 0; display: flex; gap: 12px; justify-content: center; }
.theme-fitness-content .t-btn-fit { display: inline-block; margin-top: 4px; padding: 7px 18px; background: #f97316; border-radius: 6px; font-size: 0.7rem; font-weight: 700; color: white; }

/* Theme 10 - Education */
.theme-education { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); display: flex; align-items: center; justify-content: center; }
.theme-education-content { text-align: center; color: white; padding: 20px; }
.theme-education-content .t-logo { font-size: 1.3rem; font-weight: 800; color: #93c5fd; }
.theme-education-content .t-sub { font-size: 0.65rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.theme-education-content .t-courses { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.theme-education-content .t-course { background: rgba(255,255,255,0.1); border-radius: 6px; padding: 5px 10px; font-size: 0.65rem; color: #bfdbfe; text-align: left; }

/* Theme 11 — Blog / Magazine */
.theme-blog { background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%); display: flex; align-items: center; justify-content: center; border: 1px solid #e7e5e4; }
.theme-blog-content { width: 90%; padding: 16px; }
.theme-blog-content .t-logo { font-size: 1rem; font-weight: 900; color: #1c1917; border-bottom: 2px solid #0ea5e9; padding-bottom: 6px; margin-bottom: 10px; }
.theme-blog-content .t-articles { display: flex; flex-direction: column; gap: 6px; }
.theme-blog-content .t-article-row { display: flex; align-items: center; gap: 6px; }
.theme-blog-content .t-dot { width: 6px; height: 6px; background: #0ea5e9; border-radius: 50%; flex-shrink: 0; }
.theme-blog-content .t-line-sm { height: 7px; background: #e7e5e4; border-radius: 4px; flex: 1; }

/* Theme 12 — Mariage & Événements */
.theme-mariage { background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #ede9fe 100%); display: flex; align-items: center; justify-content: center; }
.theme-mariage-content { text-align: center; padding: 20px; }
.theme-mariage-content .t-mariage-logo { font-size: 1rem; font-weight: 800; color: #9d174d; margin-bottom: 6px; }
.theme-mariage-content .t-mariage-date { font-size: 0.65rem; color: #be185d; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; border: 1px solid #fbcfe8; border-radius: 50px; padding: 3px 10px; display: inline-block; }
.theme-mariage-content .t-mariage-hearts { font-size: 1.1rem; color: #ec4899; letter-spacing: 6px; }

/* ===== Image Library ===== */
.image-library { background: var(--bg-2); }
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto 32px;
}
.image-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.image-item:hover img { transform: scale(1.05); }
.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99,102,241,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1.5rem;
  color: white;
}
.image-item:hover .image-overlay { opacity: 1; }
.library-cta { text-align: center; }

/* ===== Pricing ===== */
.pricing { background: var(--bg); }
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.toggle-label { font-weight: 600; color: var(--text-2); }
.toggle-label.active { color: var(--text); }
.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--bg-3);
  border-radius: 50px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-switch.yearly { background: var(--primary); }
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.toggle-switch.yearly .toggle-thumb { transform: translateX(28px); }
.saving-badge {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s;
  position: relative;
}
.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.03);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.plan-icon { font-size: 2.5rem; margin-bottom: 16px; }
.plan-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 20px 0;
}
.price-currency { font-size: 1.3rem; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.price-amount { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.price-period { color: var(--text-3); margin-bottom: 8px; font-size: 0.9rem; }
.price-save { font-size: 0.8rem; color: #059669; font-weight: 600; margin-top: 4px; display: none; }
.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 0.93rem; color: var(--text-2); }
.feature-check { width: 22px; height: 22px; background: linear-gradient(135deg, #059669, #10b981); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.65rem; flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===== Pricing — extensions nouvelles offres ===== */
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
}
@media (max-width: 900px) {
  .pricing-grid-3 { grid-template-columns: 1fr; max-width: 480px; }
}
.plan-desc { color: var(--text-3); font-size: 0.88rem; margin-bottom: 0; line-height: 1.5; }
.plan-note { text-align: center; font-size: 0.76rem; color: var(--text-3); margin-top: 10px; }
.annual-badge {
  background: linear-gradient(135deg,rgba(5,150,105,0.12),rgba(16,185,129,0.12));
  border: 1px solid #10b981;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
  text-align: center;
}
.feature-item-warning { color: var(--text-3) !important; font-size: 0.85rem !important; }
.feature-warn {
  width: 22px; height: 22px;
  background: #f59e0b;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.68rem; font-weight: 800; flex-shrink: 0;
}
.feature-item-highlight { color: var(--text) !important; font-weight: 500; }
.feature-check-star {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem;
}
.pricing-domain-note {
  text-align: center;
  margin: 32px auto 0;
  font-size: 0.82rem;
  color: var(--text-3);
  max-width: 620px;
  line-height: 1.7;
}
.note-star { color: #f59e0b; font-weight: 700; }

/* Extra help card */
.extra-help-card {
  max-width: 1080px;
  margin: 40px auto 0;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.extra-help-left { display: flex; align-items: flex-start; gap: 18px; flex: 1; min-width: 260px; }
.extra-help-icon { font-size: 2.8rem; flex-shrink: 0; }
.extra-help-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.extra-help-desc { color: var(--text-2); font-size: 0.9rem; margin-bottom: 6px; line-height: 1.5; }
.extra-help-sub { font-size: 0.8rem; color: var(--text-3); }
.extra-help-right { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.extra-help-price {
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.extra-help-price span { font-size: 1rem; font-weight: 600; }
.btn-wa-small {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px;
  background: #25d366; color: white;
  font-weight: 600; font-size: 0.85rem;
  transition: all .2s;
  text-decoration: none;
}
.btn-wa-small:hover { background: #1fb855; transform: translateY(-1px); }

/* WhatsApp pricing banner */
.whatsapp-pricing-banner {
  max-width: 1080px;
  margin: 24px auto 0;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.wa-banner-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 240px; }
.wa-icon { font-size: 2.2rem; flex-shrink: 0; }
.whatsapp-pricing-banner h4 { color: white; font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.whatsapp-pricing-banner p { color: rgba(255,255,255,0.85); font-size: 0.88rem; }
.wa-number { color: white; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.5px; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: white;
  color: #128c7e;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* ===== App Mobile Section ===== */
.app-mobile-section { background: var(--bg-2); }
.app-mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 768px) { .app-mobile-grid { grid-template-columns: 1fr; gap: 32px; } }
.app-features-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.app-feature { display: flex; align-items: flex-start; gap: 14px; }
.app-feature-icon {
  width: 44px; height: 44px;
  background: var(--gradient-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(99,102,241,0.2);
}
.app-feature h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.app-feature p { font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }
.app-whatsapp-contact { display: flex; flex-direction: column; gap: 10px; }
.app-whatsapp-contact p { font-size: 0.9rem; color: var(--text-2); }
.app-devis-card {
  background: var(--card);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}
.app-devis-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.app-devis-card > p { color: var(--text-3); font-size: 0.85rem; margin-bottom: 24px; }
.app-devis-card .form-group { margin-bottom: 16px; }
.app-devis-card .form-group label {
  display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-2);
}
.app-devis-card .form-group input,
.app-devis-card .form-group select,
.app-devis-card .form-group textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 0.9rem; font-family: inherit;
  transition: border-color .2s;
}
.app-devis-card .form-group input:focus,
.app-devis-card .form-group select:focus,
.app-devis-card .form-group textarea:focus {
  border-color: var(--primary); outline: none;
}
.app-devis-success {
  background: linear-gradient(135deg, rgba(5,150,105,0.1), rgba(16,185,129,0.1));
  border: 1.5px solid #10b981;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #059669;
  font-weight: 600;
  font-size: 1rem;
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 998;
  background: #25d366;
  border-radius: 50px;
  padding: 13px 18px 13px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: all .25s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
.wa-float-label {
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .whatsapp-float { padding: 13px; border-radius: 50%; }
  .wa-float-label { display: none; }
}

/* Footer WA strip */
.footer-wa-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(37,211,102,0.1);
  border-top: 1px solid rgba(37,211,102,0.2);
  font-size: 0.88rem;
  color: var(--text-2);
  flex-wrap: wrap;
}
.footer-wa-strip a { color: #25d366; font-weight: 600; }
.footer-wa-strip a:hover { text-decoration: underline; }
.footer-wa-link { color: #25d366 !important; font-weight: 600 !important; }
.footer-wa-link:hover { text-decoration: underline; }

/* ===== Devis Section ===== */
.devis { background: var(--bg-2); }
.devis-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.devis-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.devis-info p { color: var(--text-2); line-height: 1.7; margin-bottom: 24px; }
.devis-points { display: flex; flex-direction: column; gap: 14px; }
.devis-point { display: flex; align-items: center; gap: 12px; font-size: 0.93rem; color: var(--text-2); }
.devis-point-icon { width: 36px; height: 36px; background: var(--gradient-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.devis-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.93rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-estimate {
  background: var(--gradient-soft);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.devis-form-card .btn { width: 100%; justify-content: center; }

/* ===== Chatbot ===== */
/* ===== Dragon Chatbot — Drako ===== */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Speech bubble tooltip */
.dragon-tooltip {
  background: #1e3a8a;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px 20px 4px 20px;
  margin-bottom: 10px;
  box-shadow: 0 4px 18px rgba(30,58,138,0.45);
  opacity: 0;
  transform: translateX(10px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  white-space: nowrap;
}
.dragon-tooltip.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Dragon chat button */
.chat-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 50%, #3b82f6 100%);
  border: 3px solid rgba(147,197,253,0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(29,78,216,0.6), 0 2px 8px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  position: relative;
  animation: dragon-float 3.5s ease-in-out infinite;
  overflow: visible;
}
.chat-btn:hover {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 10px 36px rgba(29,78,216,0.7), 0 0 28px rgba(251,146,60,0.45), 0 0 56px rgba(251,146,60,0.15);
  border-color: rgba(251,146,60,0.55);
  animation: none;
}
/* CSS dragon tail */
.chat-btn::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 2px;
  width: 22px;
  height: 16px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-radius: 50% 20% 60% 10% / 40% 20% 70% 30%;
  transform: rotate(35deg);
  animation: tail-wag 2.5s ease-in-out infinite;
}
.chat-btn:hover::after {
  animation: tail-wag-fast 0.4s ease-in-out infinite;
  background: #3b82f6;
}
.dragon-face {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  position: relative;
  z-index: 1;
}
.chat-notification {
  position: absolute;
  top: -3px; right: -3px;
  width: 20px; height: 20px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: white;
  font-weight: 700;
  z-index: 2;
}

/* Animations */
@keyframes dragon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-9px) rotate(2deg); }
  60% { transform: translateY(-6px) rotate(-1deg); }
}
@keyframes tail-wag {
  0%, 100% { transform: rotate(35deg) scaleX(1); }
  50% { transform: rotate(52deg) scaleX(0.75); }
}
@keyframes tail-wag-fast {
  0%, 100% { transform: rotate(20deg) scaleX(1); }
  50% { transform: rotate(55deg) scaleX(0.65); }
}

/* Chat window */
.chat-window {
  position: absolute;
  bottom: 88px;
  right: 0;
  width: 365px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(30,58,138,0.22), 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 530px;
  animation: window-appear 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.chat-window.open { display: flex; }
@keyframes window-appear {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dragon header */
.chat-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.chat-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 13px 13px;
  pointer-events: none;
}
.chat-header::after {
  content: '🔥';
  position: absolute;
  right: 54px; top: 5px;
  font-size: 0.65rem;
  animation: fire-flicker 1.8s ease-in-out infinite;
}
@keyframes fire-flicker {
  0%, 100% { opacity: 0.3; transform: scale(1) rotate(-6deg); }
  50% { opacity: 0.75; transform: scale(1.25) rotate(6deg); }
}
.chat-avatar {
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(147,197,253,0.35);
  flex-shrink: 0;
}
.chat-header-info h4 { color: white; font-size: 0.9rem; font-weight: 700; }
.chat-header-info p { color: rgba(255,255,255,0.72); font-size: 0.73rem; }
.chat-status {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  animation: pulse-green 2s ease-in-out infinite;
  box-shadow: 0 0 6px #4ade80;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.chat-close {
  margin-left: auto;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  background: var(--bg);
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.3); border-radius: 2px; }
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.87rem;
  line-height: 1.55;
}
.msg-bot {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e3a8a;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid rgba(59,130,246,0.14);
}
[data-theme="dark"] .msg-bot {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #dbeafe;
  border-color: rgba(59,130,246,0.3);
}
.msg-user {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.msg-time { font-size: 0.68rem; color: rgba(30,58,138,0.45); margin-top: 4px; }
.msg-user .msg-time { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .msg-bot .msg-time { color: rgba(219,234,254,0.45); }

/* Typing dots */
.typing-dots { display: flex; gap: 4px; padding: 2px 0; align-items: center; }
.typing-dots span {
  width: 7px; height: 7px;
  background: #3b82f6;
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-7px); opacity: 1; }
}

/* Suggestions */
.chat-suggestions {
  padding: 8px 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(59,130,246,0.1);
  background: var(--bg);
}
.suggestion-btn {
  font-size: 0.76rem;
  padding: 5px 11px;
  border-radius: 50px;
  background: rgba(59,130,246,0.07);
  border: 1px solid rgba(59,130,246,0.22);
  cursor: pointer;
  color: #2563eb;
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 500;
}
.suggestion-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(37,99,235,0.35);
}
[data-theme="dark"] .suggestion-btn { color: #93c5fd; border-color: rgba(147,197,253,0.28); background: rgba(30,58,138,0.28); }
[data-theme="dark"] .suggestion-btn:hover { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; border-color: transparent; }

/* Input area */
.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid rgba(59,130,246,0.12);
  display: flex;
  gap: 8px;
  background: var(--card);
}
.chat-input {
  flex: 1;
  padding: 10px 15px;
  background: var(--bg-3);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.87rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.14);
}
.chat-send {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(37,99,235,0.4);
}
.chat-send:hover { transform: scale(1.12) rotate(12deg); box-shadow: 0 4px 16px rgba(37,99,235,0.55); }

/* ===== Auth Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-logo { text-align: center; margin-bottom: 28px; }
.modal-logo .logo-icon { width: 52px; height: 52px; margin: 0 auto 12px; font-size: 1.4rem; }
.modal-logo h2 { font-size: 1.4rem; font-weight: 800; }
.modal-logo p { color: var(--text-3); font-size: 0.88rem; margin-top: 4px; }
.auth-tabs {
  display: flex;
  background: var(--bg-3);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--bg-3); }
.divider-line { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider-line::before, .divider-line::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-line span { color: var(--text-3); font-size: 0.8rem; }
.auth-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--text-3); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 0.85rem; }
.remember-row label { display: flex; align-items: center; gap: 7px; color: var(--text-2); cursor: pointer; }
.remember-row a { color: var(--primary); }
.success-msg {
  background: linear-gradient(135deg, rgba(5,150,105,0.1), rgba(16,185,129,0.1));
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  color: #059669;
  font-weight: 600;
  display: none;
  margin-top: 16px;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.footer-brand p { color: var(--text-3); font-size: 0.88rem; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 38px; height: 38px;
  background: var(--bg-3);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-3);
  transition: all 0.2s;
  cursor: pointer;
}
.social-icon:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.footer-links h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links ul a { color: var(--text-3); font-size: 0.87rem; transition: color 0.2s; }
.footer-links ul a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { color: var(--text-3); font-size: 0.83rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-3); font-size: 0.83rem; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 4000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; }
.toast-msg { font-size: 0.82rem; color: var(--text-3); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.mobile-open a { padding: 12px 16px; }
  .devis-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card.popular { transform: scale(1); }
  .chat-window { width: 310px; }
  .chat-btn { width: 64px; height: 64px; }
  .dragon-face { width: 52px; height: 52px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 60px 16px; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .pricing-card { padding: 28px 24px; }
  .modal { padding: 28px 24px; }
}

/* ===== Misc ===== */
::selection { background: rgba(99,102,241,0.3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Typing indicator */
.typing-dots { display: flex; gap: 4px; align-items: center; padding: 2px 0; }
.typing-dots span {
  width: 7px; height: 7px;
  background: var(--text-3);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Notification dot animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.chat-notification { animation: pulse 2s infinite; }
