/* ============================================
   VALITECH · Dark Premium Design System
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Theme Colors */
  --color-primary: #4686fe;
  --color-primary-light: rgba(70, 134, 254, 0.15);
  --color-primary-dark: #3a74e0;
  --color-primary-glow: rgba(70, 134, 254, 0.4);
  --color-text: #e8e8ec;
  --color-text-secondary: #8a8a9a;
  --color-text-light: #5a5a6a;
  --color-bg: #0a0a0c;
  --color-bg-light: #111114;
  --color-bg-alt: #161619;
  --color-bg-card: #141417;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-dark: rgba(255, 255, 255, 0.12);
  --color-white: #ffffff;
  --color-black: #0a0a0c;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-width: 1200px;
  --header-height: 128px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows (dark-adapted) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(70, 134, 254, 0.15);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.05);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] {
  --color-text: #0d0d1a;
  --color-text-secondary: #2e2e44;
  --color-text-light: #4a4a60;
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f8;
  --color-bg-alt: #eeeef2;
  --color-bg-card: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-dark: rgba(0, 0, 0, 0.15);
  --color-white: #ffffff;
  --color-black: #1a1a2e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(70, 134, 254, 0.1);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(70, 134, 254, 0.04) 0%, transparent 70%);
}

[data-theme="light"] .grain-overlay {
  opacity: 0.015;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .faq-item {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mobile-nav {
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .menu-toggle span {
  background: var(--color-text);
}

[data-theme="light"] .logo-img {
  filter: invert(1) brightness(0.15);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Page transitions */
body.page-loading {
  opacity: 0;
  transform: translateY(8px);
}

body.page-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.page-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Cursor Glow (follows mouse) --- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 134, 254, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

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

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), #7c6cff, var(--color-primary));
  z-index: 10001;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  box-shadow: 0 0 10px var(--color-primary-glow);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

/* --- Gradient Text Utility --- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), #7c6cff, var(--color-primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header .label {
  margin-bottom: var(--space-md);
  display: block;
}

.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { font-size: 1.0625rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
}

.btn-primary::before {
  background: linear-gradient(135deg, #5a9aff, #4686fe, #3a74e0);
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--color-primary-glow), 0 10px 30px rgba(70, 134, 254, 0.3);
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-dark);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 20px rgba(70, 134, 254, 0.1);
}

.btn-secondary {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-border-dark);
  background-color: var(--color-bg-card);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.header.scrolled {
  background-color: rgba(10, 10, 12, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom-color: var(--color-border-dark);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo .logo-img {
  height: 112px !important;
  width: auto !important;
  max-width: none;
}

.footer-brand .header-logo .logo-img {
  height: 140px !important;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header-nav a {
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
  left: 0;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--color-border-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-elastic);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-elastic), opacity 0.3s ease;
}

.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; }

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 32px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.4s var(--ease-out-expo);
}

.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);
}

/* Mobile navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  z-index: 999;
  padding: var(--space-xl) var(--space-lg);
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--header-height) + var(--space-5xl));
  padding-bottom: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(70, 134, 254, 0.12) 0%, rgba(124, 108, 255, 0.05) 40%, transparent 70%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.hero p {
  max-width: 540px;
  margin: 0 auto var(--space-xl);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
}

/* Variant: Service à la Personne / crédit d'impôt · verdoyant subtil */
.hero-badge-tax {
  background-color: rgba(56, 189, 134, 0.08);
  border-color: rgba(56, 189, 134, 0.28);
  color: #6fd5a5;
}

.hero-badge-tax svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #6fd5a5;
}

[data-theme="light"] .hero-badge-tax {
  background-color: rgba(20, 140, 90, 0.08);
  border-color: rgba(20, 140, 90, 0.3);
  color: #0f7a4a;
}

[data-theme="light"] .hero-badge-tax svg {
  stroke: #0f7a4a;
}

.hero-image {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hero-image img { width: 100%; }

/* Section détail SAP (page À propos) */
.sap-detail {
  max-width: 720px;
  margin: 0 auto;
}

.sap-detail-card {
  background-color: var(--color-bg-card);
  border: 1px solid rgba(56, 189, 134, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: 0 0 40px rgba(56, 189, 134, 0.06);
}

.sap-detail-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6fd5a5;
  background: rgba(56, 189, 134, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.sap-detail-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.sap-detail-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.sap-detail-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.sap-detail-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #6fd5a5;
  fill: none;
  stroke-width: 2.5;
}

[data-theme="light"] .sap-detail-card {
  border-color: rgba(15, 122, 74, 0.25);
  box-shadow: 0 0 40px rgba(15, 122, 74, 0.06);
}

[data-theme="light"] .sap-detail-eyebrow {
  color: #0f7a4a;
  background: rgba(15, 122, 74, 0.08);
}

[data-theme="light"] .sap-detail-features li svg {
  stroke: #0f7a4a;
}

/* SAP / Crédit d'impôt banner */
.sap-banner {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, rgba(56, 189, 134, 0.06), rgba(56, 189, 134, 0.02));
  border-top: 1px solid rgba(56, 189, 134, 0.18);
  border-bottom: 1px solid rgba(56, 189, 134, 0.18);
  position: relative;
  overflow: hidden;
}

.sap-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(111, 213, 165, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.sap-banner-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}

.sap-banner-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 134, 0.12);
  border: 1px solid rgba(56, 189, 134, 0.25);
  border-radius: var(--radius-md);
  color: #6fd5a5;
  flex-shrink: 0;
}

.sap-banner-icon svg { width: 24px; height: 24px; }

.sap-banner-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.sap-banner-content p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.sap-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6fd5a5;
  padding: 8px 16px;
  border: 1px solid rgba(56, 189, 134, 0.3);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.sap-banner-link:hover {
  background: rgba(56, 189, 134, 0.1);
  border-color: rgba(56, 189, 134, 0.5);
  transform: translateY(-1px);
}

.sap-banner-link svg { width: 14px; height: 14px; }

[data-theme="light"] .sap-banner {
  background: linear-gradient(135deg, rgba(15, 122, 74, 0.05), rgba(15, 122, 74, 0.02));
  border-color: rgba(15, 122, 74, 0.2);
}

[data-theme="light"] .sap-banner-icon {
  background: rgba(15, 122, 74, 0.08);
  border-color: rgba(15, 122, 74, 0.25);
  color: #0f7a4a;
}

[data-theme="light"] .sap-banner-link {
  color: #0f7a4a;
  border-color: rgba(15, 122, 74, 0.3);
}

[data-theme="light"] .sap-banner-link:hover {
  background: rgba(15, 122, 74, 0.08);
  border-color: rgba(15, 122, 74, 0.5);
}

@media (max-width: 810px) {
  .sap-banner-inner {
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
  }
  .sap-banner-link {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Trust bar */
.trust-bar {
  text-align: center;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
}

.trust-bar p {
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.trust-logos span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  opacity: 0.5;
  transition: all 0.4s var(--ease-out-expo);
}

.trust-logos span:hover {
  color: var(--color-primary);
  opacity: 1;
  transform: scale(1.05);
}

/* --- Cards --- */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo),
              border-color 0.4s ease,
              box-shadow 0.6s var(--ease-out-expo);
}

/* Gradient glow border on hover */
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--color-primary), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  transition: transform 0.5s var(--ease-elastic), box-shadow 0.5s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin-bottom: var(--space-sm); }
.card p { font-size: 0.9375rem; }

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.features-grid .card { text-align: left; }

.features-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* --- Steps Section --- */
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.steps-content h2 { margin-bottom: var(--space-lg); }

.step-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out-expo);
}

.step-item:hover {
  background-color: var(--color-bg-alt);
  transform: translateX(8px);
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.5s var(--ease-elastic), box-shadow 0.5s ease;
}

.step-item:hover .step-number {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.step-item h4 { margin-bottom: var(--space-xs); }
.step-item p { font-size: 0.9375rem; }

.steps-visual { position: relative; }
.steps-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- Pricing Section --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-glow);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), #7c6cff);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(70, 134, 254, 0.1);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-10px);
}

.pricing-tier {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.pricing-tier svg { width: 16px; height: 16px; }

.pricing-price { margin-bottom: var(--space-lg); }

.pricing-price .amount {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.pricing-price .period {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2.5;
}

.pricing-card .btn { width: 100%; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: var(--color-border-dark);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: #f5a623;
}

.testimonial-card blockquote {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.testimonial-author-info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-author-info span {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  background-color: var(--color-bg-card);
}

.faq-item:hover { border-color: var(--color-border-dark); }

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(70, 134, 254, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  background: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-question:hover { background-color: var(--color-bg-alt); }

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--color-text-secondary);
  fill: none;
  stroke-width: 2;
  transition: transform 0.5s var(--ease-elastic), stroke 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
  stroke: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo);
}

.faq-answer-inner { padding: 0 var(--space-xl) var(--space-lg); }
.faq-answer p { font-size: 0.9375rem; line-height: 1.7; }

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg-card);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: var(--color-bg-alt);
  overflow: hidden;
}

.blog-card-image > * {
  transition: transform 0.8s var(--ease-out-expo);
  width: 100%;
  height: 100%;
}

.blog-card:hover .blog-card-image > * {
  transform: scale(1.08);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-content { padding: var(--space-lg); }

.blog-card-meta {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.blog-card-content h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-content h3 { color: var(--color-primary); }

.blog-card-content p {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* --- Contact Section --- */
.contact-section {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(70, 134, 254, 0.1), 0 0 20px rgba(70, 134, 254, 0.05);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* --- Footer --- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: var(--space-xs) 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-col a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

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

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: var(--color-text-light);
  font-size: 0.8125rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover { color: var(--color-text); }

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg-card));
  border-radius: var(--radius-xl);
  margin: var(--space-2xl) 0;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.6s var(--ease-out-expo);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(70, 134, 254, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section:hover {
  box-shadow: 0 0 60px rgba(70, 134, 254, 0.08);
}

.cta-section h2 { margin-bottom: var(--space-md); }

.cta-section p {
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  font-size: 1.0625rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

/* --- Services Page --- */
.services-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail-content .label {
  margin-bottom: var(--space-md);
  display: block;
}

.service-detail-content h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.service-detail-content p { margin-bottom: var(--space-lg); }

.service-detail-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-detail-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: transform 0.3s var(--ease-out-expo), color 0.3s ease;
}

.service-detail-features li:hover {
  transform: translateX(6px);
  color: var(--color-text);
}

.service-detail-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2.5;
}

.service-detail-visual {
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg-card));
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.service-detail-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(70, 134, 254, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.service-detail-visual svg {
  width: 120px;
  height: 120px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.3;
}

.service-detail-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.6s var(--ease-out-expo);
}

.service-detail-visual:hover img {
  transform: scale(1.03);
}

.service-detail-visual {
  padding: 0;
  overflow: hidden;
}

/* --- About Page --- */
.about-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-photo {
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-bg-card));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}

.about-photo:hover img {
  transform: scale(1.04);
}

.steps-visual .steps-photo {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease-out-expo);
}

.steps-visual .steps-photo:hover {
  transform: translateY(-4px);
}

.about-atelier-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-stats-overlay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.about-stats-overlay .stat-item { text-align: center; }
.about-stats-overlay .stat-label { font-size: 0.8125rem; }

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* --- Blog Page --- */
.blog-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-xl);
  text-align: center;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* --- Contact Page --- */
.contact-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-xl);
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out-expo);
}

.contact-info-item .card-icon { flex-shrink: 0; }
.contact-info-item h4 { margin-bottom: var(--space-xs); }
.contact-info-item p { font-size: 0.9375rem; }

.contact-info-item:hover {
  transform: translateX(8px);
  background-color: var(--color-bg-alt);
}

/* --- Zone d'intervention --- */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.zone-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.zone-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(70, 134, 254, 0.06);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(70, 134, 254, 0.12);
}

/* ============================================
   FRAMER-STYLE ANIMATIONS
   ============================================ */

/* Base state: hidden */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity, filter;
}

/* Fade up */
[data-animate="fade-up"] {
  transform: translateY(60px) scale(0.97);
}
[data-animate="fade-up"].visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
}

/* Fade down */
[data-animate="fade-down"] {
  transform: translateY(-60px) scale(0.97);
}
[data-animate="fade-down"].visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
}

/* Fade left */
[data-animate="fade-left"] {
  transform: translateX(-60px) scale(0.97);
}
[data-animate="fade-left"].visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
}

/* Fade right */
[data-animate="fade-right"] {
  transform: translateX(60px) scale(0.97);
}
[data-animate="fade-right"].visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity 1s var(--ease-out-expo),
              transform 1s var(--ease-out-expo);
}

/* Scale */
[data-animate="scale"] {
  transform: scale(0.88);
}
[data-animate="scale"].visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.1s var(--ease-out-expo),
              transform 1.1s var(--ease-out-expo);
}

/* Blur in */
[data-animate="blur"] {
  filter: blur(15px);
  transform: translateY(30px) scale(0.95);
}
[data-animate="blur"].visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
  transition: opacity 1.1s var(--ease-out-expo),
              filter 1.1s var(--ease-out-expo),
              transform 1.1s var(--ease-out-expo);
}

/* Clip reveal (new) */
[data-animate="clip"] {
  clip-path: inset(100% 0 0 0);
}
[data-animate="clip"].visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-out-expo),
              opacity 0.5s ease;
}

/* Rotate in (new) */
[data-animate="rotate"] {
  transform: perspective(1000px) rotateX(15deg) translateY(40px);
  transform-origin: bottom center;
}
[data-animate="rotate"].visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0);
  transition: opacity 1s var(--ease-out-expo),
              transform 1.2s var(--ease-out-expo);
}

/* Stagger children */
[data-stagger] > *.visible:nth-child(1)  { transition-delay: 0s; }
[data-stagger] > *.visible:nth-child(2)  { transition-delay: 0.1s; }
[data-stagger] > *.visible:nth-child(3)  { transition-delay: 0.2s; }
[data-stagger] > *.visible:nth-child(4)  { transition-delay: 0.3s; }
[data-stagger] > *.visible:nth-child(5)  { transition-delay: 0.4s; }
[data-stagger] > *.visible:nth-child(6)  { transition-delay: 0.5s; }
[data-stagger] > *.visible:nth-child(7)  { transition-delay: 0.6s; }
[data-stagger] > *.visible:nth-child(8)  { transition-delay: 0.7s; }
[data-stagger] > *.visible:nth-child(9)  { transition-delay: 0.8s; }
[data-stagger] > *.visible:nth-child(10) { transition-delay: 0.9s; }
[data-stagger] > *.visible:nth-child(11) { transition-delay: 1.0s; }
[data-stagger] > *.visible:nth-child(12) { transition-delay: 1.1s; }
[data-stagger] > *.visible:nth-child(13) { transition-delay: 1.2s; }
[data-stagger] > *.visible:nth-child(14) { transition-delay: 1.3s; }
[data-stagger] > *.visible:nth-child(15) { transition-delay: 1.4s; }
[data-stagger] > *.visible:nth-child(16) { transition-delay: 1.5s; }

/* Legacy fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

/* Hero text reveal */
.hero h1 { overflow: hidden; }
.hero-text-line {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out-expo);
}
.hero-text-line.visible { transform: translateY(0); }

/* --- Smooth Page Load --- */
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

body { animation: pageLoad 0.6s ease-out; }

/* --- Accessibility: reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate], .fade-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  .cursor-glow, .grain-overlay, .scroll-progress { display: none !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .blog-grid,
  .blog-list,
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .zone-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 810px) {
  .header-nav { display: none; }
  .header-actions .btn { display: none; }
  .header-actions { gap: var(--space-md); order: 1; }
  .menu-toggle { display: flex; order: 2; width: 38px; gap: 6px; margin-left: var(--space-lg); }
  .menu-toggle span { height: 2.5px; }
  .header .container { flex-wrap: nowrap; }
  .header-logo { flex: 1; }

  .hero { padding-top: calc(var(--header-height) + var(--space-2xl)); }

  .steps,
  .service-detail,
  .about-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .service-detail:nth-child(even) { direction: ltr; }

  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .blog-grid,
  .blog-list,
  .stats-bar,
  .features-split {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .section { padding: var(--space-3xl) 0; }
  .contact-section { padding: var(--space-xl); }
  .about-values { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: repeat(2, 1fr); }

  /* Reduce animation distances on mobile */
  [data-animate="fade-up"] { transform: translateY(30px); }
  [data-animate="fade-down"] { transform: translateY(-30px); }
  [data-animate="fade-left"] { transform: translateX(-30px); }
  [data-animate="fade-right"] { transform: translateX(30px); }

  .cursor-glow { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  .zone-grid { grid-template-columns: 1fr; }
}

/* --- Legal Pages --- */
.legal-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-xl);
  text-align: center;
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}
.legal-content p, .legal-content li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
