/* ============================================
   NexBoost — Premium Redesign
   Agence Marketing Digital · Valenciennes
   ============================================ */

/* --- RESET & CUSTOM PROPERTIES --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Dark theme (default) */
:root {
  --bg: #060609;
  --bg-soft: #0b0b12;
  --bg-card: #10101a;
  --bg-card-hover: #161625;
  --bg-elevated: #1a1a2e;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-glow-strong: rgba(99, 102, 241, 0.35);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.15);
  --orange: #f59e0b;
  --text: #f1f0ee;
  --text-secondary: #9ca3af;
  --text-muted: #8a8d95;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(99, 102, 241, 0.3);
  --nav-bg-scroll: rgba(6, 6, 9, 0.88);
  --noise-opacity: 0.02;
  --shadow-card: rgba(99, 102, 241, 0.06);
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', sans-serif;
  --nav-h: 100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease);
}

/* Light theme */
[data-theme="light"] {
  --bg: #f8f8fa;
  --bg-soft: #f0f0f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f9;
  --bg-elevated: #eeeef3;
  --accent: #4f46e5;
  --accent-light: #6366f1;
  --accent-dark: #4338ca;
  --accent-glow: rgba(79, 70, 229, 0.1);
  --accent-glow-strong: rgba(79, 70, 229, 0.2);
  --green: #059669;
  --green-glow: rgba(5, 150, 105, 0.1);
  --orange: #d97706;
  --text: #1a1a2e;
  --text-secondary: #555770;
  --text-muted: #656880;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(79, 70, 229, 0.25);
  --nav-bg-scroll: rgba(248, 248, 250, 0.9);
  --noise-opacity: 0.012;
  --shadow-card: rgba(0, 0, 0, 0.05);
  --overlay-bg: rgba(0, 0, 0, 0.35);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }

/* --- UTILITY --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.section-center { text-align: center; }
.section-center .section-label { justify-content: center; }
.section-center .section-label::before { display: none; }
.section-center .section-subtitle { margin: 0 auto; }

.accent { color: var(--accent-light); }
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-light);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-hover);
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: var(--nav-bg-scroll);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 170px;
  width: auto;
  display: block;
  transition: filter 0.3s;
}
[data-theme="light"] .logo-img {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-xs);
  background: var(--accent);
  color: white;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10000;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    z-index: 9999;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { font-size: 1.2rem; color: var(--text-secondary); }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  animation: float-orb 14s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation: float-orb 10s ease-in-out infinite alternate-reverse;
}
@keyframes float-orb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.12); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 600px;
}

/* Hero visual — floating cards */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px var(--shadow-card), 0 0 0 1px var(--border-hover);
}
.hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.hero-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-light);
}
.hero-card span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.hero-card small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-card-1 {
  top: 10%;
  right: 10%;
  animation: floatCard1 6s ease-in-out infinite alternate;
}
.hero-card-2 {
  bottom: 15%;
  right: 5%;
  animation: floatCard2 7s ease-in-out infinite alternate;
}
.hero-card-3 {
  top: 45%;
  left: 5%;
  animation: floatCard3 5s ease-in-out infinite alternate;
}

@keyframes floatCard1 {
  0% { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes floatCard2 {
  0% { transform: translateY(0) rotate(1deg); }
  100% { transform: translateY(-10px) rotate(-1.5deg); }
}
@keyframes floatCard3 {
  0% { transform: translateY(0) rotate(0.5deg); }
  100% { transform: translateY(-14px) rotate(-1deg); }
}

.hero-glow-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 80px var(--accent-glow), inset 0 0 60px var(--accent-glow);
  animation: pulseRing 4s ease-in-out infinite alternate;
}
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 0.8; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.06);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s 0.1s both;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 8px var(--green-glow);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  animation: fadeInUp 0.8s 0.25s both;
}

.hero-description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.55s both;
}

.hero-reassurance {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s 0.7s both;
  flex-wrap: wrap;
}
.hero-reassurance-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-reassurance-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-light);
  flex-shrink: 0;
}

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

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-content .hero-badge { margin: 0 auto 28px; }
  .hero-description { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-reassurance { justify-content: center; }
}
@media (max-width: 600px) {
  .hero { padding: calc(var(--nav-h) + 24px) 0 60px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* --- SERVICES --- */
.services { padding: 120px 0; }

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.06);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.3s, transform 0.4s var(--ease-spring);
}
.service-card:hover .service-icon {
  background: rgba(99, 102, 241, 0.18);
  transform: scale(1.08);
}
.service-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.service-card p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .services { padding: 80px 0; }
}

/* --- STORY --- */
.story { padding: 120px 0; }
.story-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.story-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  aspect-ratio: 4/3.5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-visual-inner {
  text-align: center;
  padding: 40px;
}
.story-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 14px;
}
.story-quote-accent {
  color: var(--accent-light);
}
.story-quote-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.story-visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: -80px;
  right: -80px;
  pointer-events: none;
}

.story-text h2 { margin-bottom: 22px; }
.story-text p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.story-text p:last-of-type { margin-bottom: 32px; }

.story-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.story-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}
.story-value-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .story-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .story-visual { aspect-ratio: 16/9; }
  .story { padding: 80px 0; }
}

/* --- PRICING --- */
.pricing { padding: 120px 0; }

.pricing-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 48px;
}
.pricing-tab {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}
.pricing-tab:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.pricing-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.06);
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px var(--accent-glow);
}
.pricing-card.popular::after {
  content: 'Populaire';
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.pricing-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.pricing-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-includes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex: 1;
}
.pricing-includes li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-includes li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-add-btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 11px 20px;
}

.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 32px;
  font-style: italic;
}

@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing { padding: 80px 0; }
}

/* --- CART FLOATING --- */
.cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px var(--accent-glow-strong);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}
.cart-fab.visible {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}
.cart-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px var(--accent-glow-strong);
}
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* --- CART SIDEBAR --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--ease);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.cart-close:hover { border-color: var(--border-hover); color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.cart-empty svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.3; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.cart-item-price {
  font-size: 0.8rem;
  color: var(--accent-light);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cart-qty-btn:hover { border-color: var(--border-hover); color: var(--text); }
.cart-qty { font-size: 0.88rem; font-weight: 600; color: var(--text); min-width: 20px; text-align: center; }
.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.08);
  border: none;
  color: #ef4444;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 4px;
}
.cart-item-remove:hover { background: rgba(239, 68, 68, 0.18); }

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-total-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.cart-total-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.cart-total-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
}

.cart-devis-btn {
  width: 100%;
  justify-content: center;
}

/* --- CART DEVIS FORM (modal inside cart) --- */
.cart-devis-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cart-devis-form.visible { display: flex; }
.cart-devis-form .form-group { display: flex; flex-direction: column; gap: 4px; }
.cart-devis-form label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cart-devis-form input,
.cart-devis-form textarea {
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cart-devis-form input:focus,
.cart-devis-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.cart-devis-form textarea { resize: vertical; min-height: 60px; }
.cart-devis-form input.error,
.cart-devis-form textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.field-error {
  font-size: 0.72rem;
  color: #ef4444;
  display: none;
}
.field-error.visible { display: block; }

/* --- FAQ --- */
.faq { padding: 120px 0; }

.faq-grid {
  max-width: 760px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s;
}
.faq-question:hover { color: var(--accent-light); }
.faq-question-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.faq-question-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}
.faq-item.open .faq-question-icon {
  transform: rotate(45deg);
  background: rgba(99, 102, 241, 0.12);
}
.faq-item.open .faq-question-icon svg { stroke: var(--accent-light); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
}
.faq-answer-inner {
  padding-bottom: 22px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

@media (max-width: 600px) { .faq { padding: 80px 0; } }

/* --- CONTACT --- */
.contact { padding: 120px 0; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px;
  position: relative;
  overflow: hidden;
}
.contact-wrapper::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06), transparent 70%);
  top: -120px;
  right: -120px;
  pointer-events: none;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.contact-info > p {
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail-text strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.contact-detail-text span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input.error,
.form-group textarea.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }

.btn-submit {
  align-self: flex-start;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.visible { display: flex; flex-direction: column; align-items: center; }
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.form-success p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact { padding: 80px 0; }
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: 80px 0;
}
.cta-banner-inner {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), #818cf8);
  border-radius: 20px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
}
.cta-banner p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
}
.cta-banner .btn {
  background: white;
  color: var(--accent-dark);
  font-weight: 700;
  position: relative;
}
.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; display: flex; }
.footer-brand .logo-img { height: 120px; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 270px;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}
.footer-socials a:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}
.footer-socials svg {
  width: 15px;
  height: 15px;
  fill: var(--text-secondary);
  transition: fill 0.3s;
}
.footer-socials a:hover svg { fill: var(--accent-light); }

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* --- MENTIONS LEGALES PAGE --- */
.legal-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 14px;
}
.legal-section p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.legal-section ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
}
.legal-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.legal-section a {
  color: var(--accent-light);
  text-decoration: none;
}
.legal-section a:hover { text-decoration: underline; }
.legal-section strong { color: var(--text); }

.footer-legal-link {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-legal-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- THEME TOGGLE --- */
.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--accent-light);
}
.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-spring); }
.theme-toggle:hover svg { transform: rotate(25deg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Light theme overrides */
[data-theme="light"] .hero-bg::before {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
}
[data-theme="light"] .hero-bg::after {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}
[data-theme="light"] #particles-canvas { opacity: 0.5; }
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, var(--accent-dark), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .service-card:hover {
  box-shadow: 0 16px 48px var(--shadow-card);
}
[data-theme="light"] .pricing-card:hover {
  box-shadow: 0 16px 48px var(--shadow-card);
}
[data-theme="light"] .pricing-card.popular {
  box-shadow: 0 0 0 1px var(--accent), 0 16px 48px rgba(79, 70, 229, 0.1);
}
[data-theme="light"] .story-visual {
  background: linear-gradient(160deg, #f0f0f4, #e8e8f0);
}
[data-theme="light"] .cta-banner-inner {
  background: linear-gradient(135deg, #4338ca, var(--accent), #818cf8);
}
[data-theme="light"] .contact-wrapper {
  box-shadow: 0 16px 48px var(--shadow-card);
}
[data-theme="light"] .toast {
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
[data-theme="light"] .cart-sidebar {
  box-shadow: -8px 0 40px rgba(0,0,0,0.1);
}

/* --- NOISE --- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* --- TOAST --- */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  z-index: 300;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.35s var(--ease);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* --- CURSOR BUBBLE --- */
.cursor-bubble {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: left, top;
}
.cursor-bubble.visible { opacity: 1; }
[data-theme="light"] .cursor-bubble {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.06) 40%, transparent 70%);
  mix-blend-mode: multiply;
}
@media (max-width: 900px) { .cursor-bubble { display: none; } }

/* --- CHATBOT --- */
.chatbot-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px var(--accent-glow-strong);
  transition: all var(--transition);
}
.chatbot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px var(--accent-glow-strong);
}
.chatbot-fab svg { width: 26px; height: 26px; }
.chatbot-fab-close { display: none; }
.chatbot-fab.active .chatbot-fab-icon { display: none; }
.chatbot-fab.active .chatbot-fab-close { display: block; }

.chatbot {
  position: fixed;
  bottom: 100px;
  left: 28px;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s var(--ease);
}
.chatbot.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.chatbot-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.chatbot-status {
  font-size: 0.72rem;
  opacity: 0.8;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
}

.chatbot-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  animation: fadeInUp 0.3s both;
}
.chatbot-msg-bot {
  background: var(--bg-elevated);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot-msg-user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeInUp 0.4s 0.2s both;
}
.chatbot-suggestion {
  padding: 8px 14px;
  min-height: 48px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.chatbot-suggestion:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.06);
}

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.chatbot-input input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0 18px;
  min-height: 48px;
  color: var(--text);
  font-size: 0.82rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s;
}
.chatbot-input input:focus { border-color: var(--accent); }
.chatbot-input input::placeholder { color: var(--text-muted); }
.chatbot-input button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chatbot-input button:hover { background: var(--accent-dark); }
.chatbot-input button svg { width: 18px; height: 18px; }

.chatbot-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
}
.chatbot-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.4s infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
  .chatbot {
    left: 12px;
    right: 12px;
    bottom: 96px;
    width: auto;
    max-height: 70vh;
  }
  .chatbot-fab { bottom: 20px; left: 20px; }
}

[data-theme="light"] .chatbot {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
