/* ============================================
   AGENCE WEB STRATÈGE - DESIGN SYSTEM
   Landing Page Premium - Light Theme
   ============================================ */

/* Google Fonts - Loaded via preconnect in HTML for better performance */
/* @import moved to HTML link tag for render-blocking optimization */

/* CSS Variables */
:root {
  /* Colors - Light Premium Theme */
  --color-background: #ffffff;
  --color-background-alt: #f8fafc;
  --color-background-dark: #0f172a;
  
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-text-light: #ffffff;
  
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-light: #eef2ff;
  
  --color-accent: #7c3aed;
  --color-accent-hover: #6d28d9;
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-light: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 10px 40px -10px rgba(79, 70, 229, 0.4);
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --section-padding: 6rem;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-highlight {
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(
    90deg,
    #fbbf24,
    #f59e0b,
    #ec4899,
    #8b5cf6,
    #3b82f6,
    #06b6d4,
    #10b981,
    #fbbf24
  );
  background-size: 400% 100%;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  animation: shimmer 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

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

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -10px rgba(79, 70, 229, 0.5);
}

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

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-background-dark);
  color: white;
}

.btn-dark:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 14px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   URGENCY BAR - Compte à rebours
   ============================================ */
.urgency-bar {
  background: var(--gradient-primary);
  color: white;
  padding: 0.375rem 1rem;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.urgency-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
  flex-wrap: wrap;
}

.urgency-icon {
  font-size: 1.125rem;
}

.urgency-text {
  font-size: 0.875rem;
}

.urgency-text strong {
  font-weight: 700;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.countdown-item {
  display: flex;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.countdown-value {
  font-size: 0.9375rem;
  font-weight: 700;
  min-width: 1.25rem;
  text-align: center;
}

.countdown-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-left: 2px;
}

.urgency-cta {
  background: white;
  color: var(--color-primary);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.urgency-cta:hover {
  background: var(--color-background-alt);
  transform: scale(1.05);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-primary);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-text);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
    gap: 0.75rem;
  }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 10rem 0 5rem;
  background: var(--gradient-light);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 12rem 0 6rem;
  }
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero Grid - Text Left, Visual Right */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* Par défaut, les lignes du H1 restent en inline (desktop) */
.hero-line {
  display: inline;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

/* Google Reviews Badge */
.google-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.google-reviews-badge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.google-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-reviews-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.google-stars {
  display: flex;
  gap: 2px;
}

.google-reviews-text {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.google-reviews-text strong {
  color: var(--color-text);
  font-weight: 700;
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .google-reviews-badge {
    margin: 1.5rem 0 0 0;
  }
}

.hero-google-badge {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: float 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

@media (max-width: 1023px) {
  .hero-google-badge {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2rem;
  }
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .hero-trust {
    justify-content: flex-start;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-visual {
    justify-content: flex-end;
    margin-left: 2rem;
  }
}

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--color-background);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.25rem;
  background: var(--color-background-alt);
  border-bottom: 1px solid var(--color-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #22c55e; }

.mockup-url {
  flex: 1;
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-background);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mockup-body {
  padding: 1.5rem;
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mockup-stat {
  padding: 1rem;
  background: var(--color-background-alt);
  border-radius: 12px;
  text-align: center;
}

.mockup-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.mockup-stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mockup-chart {
  height: 120px;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, transparent 100%);
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 1rem;
  gap: 8px;
}

.chart-bar {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 4px 4px 0 0;
  animation: chartGrow 1s ease-out forwards;
  transform-origin: bottom;
}

@keyframes chartGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Floating elements */
.hero-float {
  position: absolute;
  padding: 1rem 1.25rem;
  background: var(--color-background);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite;
}

.hero-float-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.hero-float-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.hero-float-text {
  font-size: 0.875rem;
}

.hero-float-text strong {
  display: block;
  color: var(--color-text);
}

.hero-float-text span {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.hero-float.top-right {
  top: 0;
  right: -20px;
  animation-delay: 0s;
}

.hero-float.bottom-left {
  bottom: 40px;
  left: -20px;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--color-background-alt);
}

.section-dark {
  background: var(--gradient-dark);
  color: white;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-dark .section-header .badge {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .problem-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.problem-card {
  padding: 2rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.problem-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: #fef2f2;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.problem-icon svg {
  width: 28px;
  height: 28px;
}

.problem-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.875rem;
}

/* ============================================
   SOLUTION SECTION - Cartes empilées au scroll
   ============================================ */
.process-section {
  background: var(--color-background);
}

.process-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.stack-card {
  position: sticky;
  top: 100px;
  background: var(--color-background);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.stack-card:nth-child(1) { top: 100px; }
.stack-card:nth-child(2) { top: 120px; }
.stack-card:nth-child(3) { top: 140px; }
.stack-card:nth-child(4) { top: 160px; }
.stack-card:nth-child(5) { top: 180px; }
.stack-card:nth-child(6) { top: 200px; }

.stack-card-inner {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  align-items: flex-start;
}

.stack-number {
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.3;
}

.stack-content {
  flex: 1;
}

.stack-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  background: var(--color-primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.stack-icon svg {
  width: 28px;
  height: 28px;
}

.stack-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.stack-content p {
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.stack-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .stack-card {
    position: relative;
    top: 0 !important;
  }
  
  .stack-card-inner {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .stack-number {
    font-size: 2.5rem;
  }
  
  .stack-content h3 {
    font-size: 1.25rem;
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  padding: 2rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
}

.services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   TESTIMONIALS SECTION - CAROUSEL
   ============================================ */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
  padding-bottom: 1rem;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonials-track .testimonial-card {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 1rem;
  margin: 0;
}

.testimonials-track .testimonial-card .card-inner {
  background: var(--color-background);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .testimonials-track .testimonial-card {
    width: 50%;
    min-width: 50%;
    max-width: 50%;
  }
}

@media (min-width: 1024px) {
  .testimonials-track .testimonial-card {
    width: 33.333%;
    min-width: 33.333%;
    max-width: 33.333%;
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  color: var(--color-text);
}

.carousel-arrow:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

.testimonial-card {
  transition: none;
}

.testimonial-text {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.testimonial-text.truncated {
  max-height: 72px;
}

.testimonial-text.text-small {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.testimonial-text.text-small.truncated {
  max-height: 100px;
}

.card-inner .voir-plus-inline {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline;
  margin-left: 0.25rem;
}

.card-inner .voir-plus-inline:hover {
  text-decoration: underline;
}

.testimonial-text.truncated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(transparent, var(--color-background));
}

.voir-plus-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-top: 0.5rem;
}

.voir-plus-btn:hover {
  text-decoration: underline;
}

.testimonial-text.expanded {
  max-height: none;
  overflow: visible;
}

.testimonial-text.expanded::after {
  display: none;
}

.card-inner.expanded {
  height: auto;
  min-height: 220px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-xl);
}

.card-inner.expanded .testimonial-text {
  background: white;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.card-inner.expanded .voir-plus-inline {
  display: block;
  margin-left: 0;
  color: var(--color-primary);
  font-weight: 600;
}

.card-inner .text-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

.card-inner.expanded .text-footer {
  background: white;
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  position: relative;
  z-index: 15;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.card-inner.expanded .text-footer .review-date {
  display: none;
}

.testimonials-track .testimonial-card .card-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Google Review Style */
.google-review {
  border: 1px solid var(--color-border);
}

.google-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.google-icon {
  flex-shrink: 0;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-top: 0.25rem;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: #fbbf24;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.review-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.testimonial-author {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-info strong {
  display: block;
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.testimonial-info span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.logos-section {
  margin-top: 4rem;
  text-align: center;
}

.logos-section p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  opacity: 0.6;
}

.logo-item {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  background: var(--color-background);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.project-card img {
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image span {
  font-size: 3rem;
}

.project-content {
  padding: 1.5rem;
}

.project-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
}

.project-content p {
  font-size: 0.875rem;
}

.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.process-step {
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -1rem;
    width: calc(100% - 64px);
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(50%);
  }
}

.process-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
}

.process-step:hover .process-number {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 5rem 0;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: var(--gradient-primary);
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 5rem 4rem;
  }
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-card .btn-primary {
  background: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.cta-card .btn-primary:hover {
  background: var(--color-background-alt);
}

.cta-card .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 0 2rem;
  background: var(--color-background-dark);
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-links h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   RESPONSIVE - MOBILE & TABLET OPTIMIZATIONS
   ============================================ */

/* Mobile First - Small devices (< 640px) */
@media (max-width: 639px) {
  :root {
    --section-padding: 2.5rem;
  }
  
  .container {
    padding: 0 0.75rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Empêcher scroll horizontal sur body */
  body {
    overflow-x: hidden;
    min-width: 320px;
  }
  
  /* Sections container */
  section {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Urgency Bar Mobile */
  .urgency-bar {
    padding: 0.25rem 0.5rem;
    min-height: 32px;
    position: sticky;
    top: 0;
    z-index: 1001;
  }
  
  .urgency-content {
    gap: 0.5rem;
    font-size: 0.6875rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .urgency-icon {
    display: none;
  }
  
  .urgency-text {
    font-size: 0.6875rem;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }
  
  .countdown-item {
    padding: 0.125rem 0.25rem;
  }
  
  .countdown-value {
    font-size: 0.6875rem;
    min-width: 0.875rem;
  }
  
  .countdown-label {
    font-size: 0.5625rem;
  }
  
  .urgency-cta {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-height: 36px;
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 20px;
    font-weight: 600;
  }
  
  /* Header Mobile */
  .header {
    top: 0;
    padding: 0.5rem 0 0 !important;
  }
  
  .header-content {
    padding: 0.75rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 56px;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .logo {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 0;
  }
  
  /* Menu hamburger optimisé mobile */
  .mobile-menu-btn {
    padding: 0.5rem;
    min-width: 52px;
    min-height: 52px;
  }
  
  .mobile-menu-btn span {
    width: 26px;
    height: 3px;
  }
  
  .mobile-menu-btn:hover {
    background-color: var(--color-background-alt);
  }
  
  .mobile-menu-btn:active {
    transform: scale(0.95);
  }
  
  .header-cta .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    min-height: 48px; /* Touch target accessibility */
    min-width: 120px;
    border-radius: 8px;
  }
  
  /* Hero Badge Mobile - design original visible */
  .hero-badge {
    display: inline-flex !important;
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
    margin-bottom: 1rem;
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
  }
  
  /* Hero Mobile - padding optimisé */
  .hero {
    padding: 1.5rem 0 1rem;
    min-height: auto;
    overflow: hidden;
    width: 100%;
  }
  
  #hero-canvas {
    opacity: 0.15;
  }
  
  /* Centrer tout le contenu hero sur mobile */
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 0.5rem;
  }
  
  .hero-text h1 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    text-align: center;
    width: 100%;
    letter-spacing: -0.02em;
  }
  
  /* Chaque ligne du H1 sur sa propre ligne sur mobile */
  .hero-line {
    display: block;
  }
  
  .hero-subtitle {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    align-items: center;
    padding: 0 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    min-width: 280px;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    min-height: 52px; /* Touch target size for better UX */
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    will-change: transform;
  }
  
  .hero-buttons .btn:active {
    transform: scale(0.98);
  }
  
  .hero-buttons .btn svg {
    width: 14px;
    height: 14px;
  }
  
  .hero-buttons .btn-primary {
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  }
  
  .hero-trust {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
  }
  
  .trust-item {
    font-size: 0.75rem;
  }
  
  /* Hero Visual Mobile - Optimisé pour performance */
  .hero-visual {
    margin-top: 1rem;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    position: relative;
    transform: scale(0.45);
    transform-origin: top center;
    margin-bottom: -3rem;
    overflow: hidden;
  }
  
  /* Désactiver animations lourdes sur mobile */
  .hero-float {
    animation: none !important;
    opacity: 0.8;
  }
  
  #hero-canvas {
    display: none; /* Cacher canvas sur mobile pour performance */
  }
  
  .hero-mockup {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: auto;
  }
  
  .hero-mockup img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  /* Îlots flottants sur mobile - statiques pour performance */
  .hero-float {
    display: flex;
    opacity: 0.8;
    animation: none !important;
  }
  
  .hero-float.top-right {
    top: 0;
    right: -20px;
  }
  
  .hero-float.bottom-left {
    bottom: 40px;
    left: -20px;
  }
  
  /* Badge Google - dans la frame */
  .hero-google-badge {
    position: absolute;
    bottom: 80px;
    right: 0;
    left: auto;
    transform: scale(0.6);
    transform-origin: center right;
    margin: 0;
  }
  
  /* Google Reviews Badge Mobile - compact */
  .google-reviews-badge {
    padding: 0.5rem 0.75rem;
    gap: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .google-reviews-text {
    font-size: 0.625rem;
  }
  
  .google-reviews-badge .google-logo {
    width: 18px;
    height: 18px;
  }
  
  .google-reviews-badge .stars svg {
    width: 12px;
    height: 12px;
  }
  
  .google-reviews-badge .rating {
    font-size: 1rem;
  }
  
  /* Section Headers Mobile - Typo optimisée */
  .section-header h2 {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .section-header p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Problem Cards Mobile - Optimisé pour petits écrans */
  .problem-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding: 0 0.75rem 1rem;
    margin: 0 -0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .problem-grid::-webkit-scrollbar {
    display: none;
  }
  
  .problem-card {
    flex: 0 0 min(280px, calc(100vw - 2.25rem));
    scroll-snap-align: start;
    padding: 1rem;
    min-width: 260px;
  }
  
  /* Process Stack Mobile - Scroll horizontal */
  .process-stack {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .process-stack::-webkit-scrollbar {
    display: none;
  }
  
  .stack-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    position: relative !important;
    top: 0 !important;
  }
  
  .stack-card-inner {
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.75rem;
    height: 100%;
  }
  
  .stack-number {
    font-size: 2.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.15;
  }
  
  .stack-icon {
    width: 48px;
    height: 48px;
  }
  
  .stack-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .stack-content h3 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.3;
    font-weight: 600;
  }
  
  .stack-content p {
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    line-height: 1.5;
  }
  
  .stack-list li {
    font-size: clamp(0.75rem, 2vw, 0.8125rem);
    line-height: 1.4;
  }
  
  /* Optimiser les cards mobile */
  .problem-card, .service-card, .stack-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .problem-card h3, .service-card h3 {
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.3;
  }
  
  .problem-card p, .service-card p {
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    line-height: 1.5;
  }
  
  /* Services Mobile - Optimisé pour petits écrans */
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding: 0 0.75rem 1rem;
    margin: 0 -0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .services-grid::-webkit-scrollbar {
    display: none;
  }
  
  .service-card {
    flex: 0 0 min(280px, calc(100vw - 2.25rem));
    scroll-snap-align: start;
    padding: 1.25rem;
    min-width: 260px;
  }
  
  /* Testimonials Mobile - Carousel optimisé */
  .testimonials-carousel {
    padding: 0 1rem;
    overflow: hidden;
  }
  
  .testimonial-card {
    min-height: auto;
  }
  
  .card-inner {
    padding: 1rem;
  }
  
  .testimonial-text {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.5;
  }
  
  .card-inner.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1000;
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  }
  
  .card-inner.expanded .testimonial-text {
    max-height: none;
    overflow: visible;
  }
  
  /* Projects Mobile - Scroll horizontal */
  .projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .projects-grid::-webkit-scrollbar {
    display: none;
  }
  
  .project-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
  
  .project-image {
    height: 160px;
  }
  
  /* Process Steps Mobile - Scroll horizontal */
  .process-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .process-grid::-webkit-scrollbar {
    display: none;
  }
  
  .process-step {
    flex: 0 0 260px;
    scroll-snap-align: start;
    padding: 1.5rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* CTA Section Mobile - Optimisée */
  .cta-card {
    padding: 1.5rem 1rem;
    margin: 0 0.75rem;
    border-radius: 16px;
  }
  
  .cta-content h2 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .cta-content p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    border-radius: 12px;
  }
  
  /* Footer Mobile - Optimisé */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 0.75rem;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-brand p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .social-links {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-links ul li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Very Small Screens (320px - 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero-text h1 {
    font-size: 1.125rem;
  }
  
  .hero-subtitle {
    font-size: 0.8125rem;
    max-width: 280px;
  }
  
  .hero-buttons .btn {
    min-width: 240px;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .problem-card, .service-card {
    flex: 0 0 min(260px, calc(100vw - 1.5rem));
    min-width: 240px;
    padding: 1rem;
  }
  
  .testimonials-carousel {
    padding: 0 0.5rem;
  }
  
  .cta-card {
    padding: 1.25rem 0.75rem;
    margin: 0 0.5rem;
  }
  
  .footer-content {
    padding: 1.5rem 0.5rem;
  }
}

/* Tablet - Medium devices (640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  :root {
    --section-padding: 4rem;
  }
  
  /* Hero Tablet */
  .hero {
    padding: 7rem 0 4rem;
  }
  
  .hero-grid {
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
  }
  
  .hero-visual {
    margin-top: 2rem;
  }
  
  .hero-float {
    transform: scale(0.85);
  }
  
  .hero-float.top-right {
    top: -10px;
    right: -10px;
  }
  
  .hero-float.bottom-left {
    bottom: 60px;
    left: -10px;
  }
  
  /* Problem Grid Tablet */
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Services Grid Tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Testimonials Tablet - géré par le carousel */
  
  /* Projects Tablet */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Process Steps Tablet */
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Footer Tablet */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
  
  .hero-visual {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }
  
  .project-card:hover,
  .service-card:hover,
  .testimonial-card:hover,
  .problem-card:hover {
    transform: none;
  }
  
  .project-card:hover img {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .project-card:active,
  .service-card:active {
    transform: scale(0.99);
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  
  .hero-float {
    animation: none;
  }
  
  #hero-canvas {
    display: none;
  }
  
  .chart-bar {
    animation: none;
  }
}

/* ============================================
   CALENDLY MODAL
   ============================================ */
.calendly-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.calendly-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.calendly-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  z-index: 1;
}

.calendly-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.calendly-modal-close:hover {
  background: var(--color-background-alt);
  transform: scale(1.1);
}

.calendly-modal-close svg {
  color: var(--color-text);
}

.calendly-inline-widget {
  border-radius: 16px;
  overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Mobile responsive */
@media (max-width: 639px) {
  .calendly-modal {
    padding: 0;
  }
  
  .calendly-modal-content {
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
  }
  
  .calendly-inline-widget {
    height: 100vh !important;
    border-radius: 0;
  }
  
  .calendly-modal-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* ============================================
   CONTACT FORM MODAL
   ============================================ */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.contact-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  z-index: 1;
  padding: 2rem;
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-background-alt);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.contact-modal-close:hover {
  background: var(--color-border);
  transform: scale(1.1);
}

.contact-modal-close svg {
  color: var(--color-text);
}

.contact-form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-form-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-form-header p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-background);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* Contact Success Message */
.contact-success {
  text-align: center;
  padding: 2rem;
  animation: fadeInScale 0.4s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPulse 0.6s ease;
}

.success-icon svg {
  color: white;
  stroke-width: 3;
}

.contact-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.contact-success p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.success-close {
  min-width: 150px;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile responsive */
@media (max-width: 639px) {
  .contact-modal {
    padding: 0;
  }
  
  .contact-modal-content {
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
    padding: 1.5rem;
    padding-top: 3rem;
  }
  
  .contact-modal-close {
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .contact-form-header h3 {
    font-size: 1.25rem;
  }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .calendly-modal-overlay,
  .calendly-modal-content,
  .contact-modal-overlay,
  .contact-modal-content {
    animation: none;
  }
}
