/* ============================================
   BATISPIRIT — Design System v2
   Light mode, confiance tranquille
   Aligned with prototype v11
   ============================================ */

:root {
  --rose: #E84E8A;
  --blue: #4A9FE5;
  --purple: #8B5CF6;
  --green: #34D399;
  --gradient: linear-gradient(135deg, #E84E8A 0%, #8B5CF6 50%, #4A9FE5 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(232,78,138,0.06) 0%, rgba(139,92,246,0.06) 50%, rgba(74,159,229,0.06) 100%);

  --bg-primary: #FFFFFF;
  --bg-soft: #F6F5F3;
  --bg-warm: #FAF9F7;
  --bg-dark: #0F1B2D;

  --text-primary: #1A1A2E;
  --text-secondary: #555770;
  --text-muted: #8B8DA3;
  --text-white: #FFFFFF;

  --border: #EBEBEB;
  --border-subtle: #F0EDE8;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: 0.3s ease;
  --transition-slow: 0.4s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

p { line-height: 1.7; font-size: 1.125rem; color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2rem; overflow-x: clip; }
.text-center { text-align: center; }

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

/* --- Section Common --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.section-label.pink { color: var(--rose); }
.section-label.blue { color: var(--blue); }
.section-label.purple { color: var(--purple); }

.section-label-line {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  background-size: 200% 100%;
  text-decoration: none;
}

.btn-primary {
  background-image: linear-gradient(90deg, var(--text-primary), var(--text-primary));
  color: white;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.15);
}

.btn-primary:hover {
  background-image: var(--gradient);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 78, 138, 0.3);
  color: white;
}

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

.btn-outline:hover {
  background: var(--bg-soft);
  border-color: var(--text-muted);
}

.btn-arrow { transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}

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

.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { width: 40px; height: 40px; border-radius: 10px; }
.nav-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-mobile-brand { display: none; }

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  background-image: linear-gradient(90deg, var(--text-primary), var(--text-primary));
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  color: white !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background-image: var(--gradient);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(232, 78, 138, 0.25);
  color: white !important;
}

.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(5px) translateX(5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-5px) translateX(5px); }

/* ============================================
   HERO — Centered layout + Sankey
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 7rem 0 2rem;
  overflow: clip;
  background: var(--bg-warm);
}

.hero-glow-1 {
  position: absolute;
  top: -10%; right: -5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  bottom: -15%; left: -8%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,78,138,0.05) 0%, transparent 55%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15px, -10px) scale(1.03); }
}

.hero-top {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem 0.45rem 0.7rem;
  background: rgba(139, 92, 246, 0.06);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s ease both;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Rotating light border effect */
.hero-badge::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(transparent 0deg, rgba(139,92,246,0.25) 60deg, rgba(232,78,138,0.2) 120deg, transparent 180deg, transparent 360deg);
  animation: badge-rotate 4s linear infinite;
  z-index: -2;
}

.hero-badge::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: var(--bg-warm);
  border-radius: 100px;
  z-index: -1;
}

@keyframes badge-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 0.5s 0.1s ease both;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
  animation: fadeUp 0.5s 0.2s ease both;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 0.5s 0.3s ease both;
}

/* ============================================
   SANKEY DIAGRAM
   ============================================ */

.sankey-section {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 0.5rem;
  animation: fadeUp 0.6s 0.6s ease both;
  overflow: clip;
}

.sankey-titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sankey-col-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.4rem;
  position: relative;
}

.sankey-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
}

.sankey-col-title.left { color: var(--text-muted); }
.sankey-col-title.left::after { left: 0; width: 40px; background: var(--border); }
.sankey-col-title.right { color: var(--rose); text-align: right; }
.sankey-col-title.right::after { right: 0; width: 40px; background: var(--gradient); }

.sankey-diagram {
  position: relative;
  height: 400px;
  overflow: clip;
}

.sankey-svg { width: 100%; height: 100%; }

.sankey-labels {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}

.sankey-label {
  position: absolute;
  font-size: 0.82rem;
  font-weight: 600;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.35s;
  white-space: nowrap;
}

.sankey-label-left {
  color: var(--text-muted);
  transform: translateX(-100%) translateY(-50%);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--bg-warm);
  border: 1px solid #E8E6EC;
  border-right: none;
  border-radius: 100px 0 0 100px;
  padding: 0.3rem 0.7rem 0.3rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-direction: row-reverse;
  opacity: 0.45;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sankey-label-left .pill-icon {
  width: 16px; height: 16px; min-width: 16px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.35;
  color: #9B9BAA;
  transition: all 0.35s;
}
.sankey-label-left .pill-icon svg { width: 13px; height: 13px; }

.sankey-label-left:hover,
.sankey-label-left.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-primary);
  border-color: #B0AEBE;
  opacity: 1;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
  transform: translateX(-100%) translateY(-50%);
}

.sankey-label-left:hover .pill-icon,
.sankey-label-left.active .pill-icon {
  opacity: 0.8;
  color: var(--text-secondary);
}

.sankey-label-right {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateX(12px) translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  transition: all 0.35s;
}

.sankey-label-right.active { opacity: 1; }

.sankey-label-right .label-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-top: 0.1rem;
}

.sankey-label-right.pink { color: var(--rose); }
.sankey-label-right.blue { color: var(--blue); }
.sankey-label-right.purple { color: var(--purple); }
.sankey-label-right.green { color: var(--green); }

.sankey-tooltip {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.25s;
  z-index: 10;
  max-width: 220px;
  line-height: 1.4;
}

.sankey-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   MARQUEE (inside hero)
   ============================================ */

.section-marquee-hero {
  padding: 2rem 0 0;
  overflow: clip;
  position: relative;
  max-width: 100vw;
  z-index: 2;
  margin-top: 1.5rem;
  animation: fadeUp 0.5s 0.7s ease both;
}

.marquee-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.marquee-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}

.marquee-arrow {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
  letter-spacing: 0.12em;
}

.marquee-arrow:hover {
  color: var(--text-primary);
}

.marquee-track-wrapper { overflow: clip; position: relative; }

.marquee-track-wrapper::before,
.marquee-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}

.marquee-track-wrapper::before { left: 0; background: linear-gradient(90deg, var(--bg-warm), transparent); }
.marquee-track-wrapper::after { right: 0; background: linear-gradient(270deg, var(--bg-warm), transparent); }

.marquee-track {
  display: flex;
  gap: 3.5rem;
  animation: marquee 35s linear infinite;
}

.marquee-track img {
  width: 150px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1) opacity(0.4);
  transition: filter 0.4s ease;
}

.marquee-track img.logo-compact {
  height: 68px;
}

.marquee-track img:hover {
  filter: grayscale(0) opacity(1);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */

.section-problem { padding: 8rem 0; background: var(--bg-primary); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pain-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pain-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

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

.pain-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.pain-icon.pink { background: rgba(232,78,138,0.08); color: var(--rose); }
.pain-icon.blue { background: rgba(74,159,229,0.08); color: var(--blue); }
.pain-icon.purple { background: rgba(139,92,246,0.08); color: var(--purple); }
.pain-icon svg { width: 24px; height: 24px; }

.pain-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; font-weight: 600; }
.pain-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   SERVICES
   ============================================ */

.section-services { padding: 8rem 0; background: var(--bg-soft); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.service-card p { flex: 1; }

.service-card:hover {
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: 0 25px 80px rgba(0,0,0,0.06);
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}

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

.service-icon.pink { background: rgba(232,78,138,0.08); border: 1px solid rgba(232,78,138,0.12); color: var(--rose); }
.service-icon.blue { background: rgba(74,159,229,0.08); border: 1px solid rgba(74,159,229,0.12); color: var(--blue); }
.service-icon.purple { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.12); color: var(--purple); }
.service-icon.green { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.12); color: var(--green); }

.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.service-link.pink { color: var(--rose); }
.service-link.blue { color: var(--blue); }
.service-link.purple { color: var(--purple); }
.service-link.green { color: var(--green); }
.service-card:hover .service-link { gap: 0.7rem; }

/* ============================================
   WHY / DIFFERENCE SECTION
   ============================================ */

.section-why { padding: 8rem 0; background: var(--bg-primary); }

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-text p { font-size: 1rem; max-width: 480px; margin-top: 1rem; }

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-block {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
}

.stat-block:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* ============================================
   PROCESS
   ============================================ */

.section-process { padding: 8rem 0; background: var(--bg-soft); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

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

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.step p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2rem; right: -1rem;
  width: 2rem; height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ============================================
   USE CASES
   ============================================ */

.section-cases { padding: 8rem 0; background: var(--bg-warm); }

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

.case-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: 0 25px 80px rgba(0,0,0,0.06);
}

.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.case-tag svg { flex-shrink: 0; }

.case-tag.pink { background: rgba(232,78,138,0.08); color: var(--rose); border: 1px solid rgba(232,78,138,0.12); }
.case-tag.blue { background: rgba(74,159,229,0.08); color: var(--blue); border: 1px solid rgba(74,159,229,0.12); }
.case-tag.purple { background: rgba(139,92,246,0.08); color: var(--purple); border: 1px solid rgba(139,92,246,0.12); }
.case-tag.green { background: rgba(34,197,94,0.08); color: #16a34a; border: 1px solid rgba(34,197,94,0.12); }

.case-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.case-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   INTELLIGENCE ARTIFICIELLE
   ============================================ */

.section-ia {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.ia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.ia-features { display: flex; flex-direction: column; gap: 1.25rem; }

.ia-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all 0.4s;
  cursor: default;
}

.ia-feature:hover {
  background: white;
  border-color: var(--border);
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.ia-feature-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,0.08);
  color: var(--purple);
}

.ia-feature-icon svg { width: 22px; height: 22px; }
.ia-feature h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.ia-feature p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

/* IA Chat Mockup */
.ia-visual {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.ia-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

.ia-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ia-chat-header-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(139,92,246,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
}

.ia-chat-header-icon svg { width: 16px; height: 16px; }

.ia-chat-header-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.ia-chat-header-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: rgba(52,211,153,0.1);
  color: var(--green);
  border-radius: 100px;
  font-weight: 600;
  margin-left: auto;
}

.ia-messages { display: flex; flex-direction: column; gap: 0.6rem; }

.ia-msg {
  max-width: 88%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.ia-msg.user {
  align-self: flex-end;
  background: var(--purple);
  color: white;
  border-bottom-right-radius: 4px;
}

.ia-msg.bot {
  align-self: flex-start;
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

.ia-typing {
  display: flex;
  gap: 4px;
  padding: 0.6rem 1rem;
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.ia-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.3;
  animation: ia-typing 1.4s ease-in-out infinite;
}

.ia-typing span:nth-child(2) { animation-delay: 0.2s; }
.ia-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ia-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-4px); opacity: 0.8; }
}

/* ============================================
   KSAAR SECTION (dark)
   ============================================ */

.section-ksaar {
  padding: 8rem 0;
  background: var(--bg-dark);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.section-ksaar .section-subtitle { color: rgba(255,255,255,0.6); }
.section-ksaar .section-title { color: var(--text-white); }

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

.stack-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.stack-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.stack-card-featured {
  border-color: rgba(52,211,153,0.2);
  background: rgba(52,211,153,0.04);
  position: relative;
}

.stack-card-featured:hover {
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.07);
  box-shadow: 0 20px 50px rgba(52,211,153,0.1);
}

.stack-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(52,211,153,0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  overflow: hidden;
  z-index: 1;
}

.stack-card-badge::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(transparent 0deg, rgba(52,211,153,0.3) 60deg, rgba(52,211,153,0.15) 120deg, transparent 180deg, transparent 360deg);
  animation: badge-rotate 4s linear infinite;
  z-index: -2;
}

.stack-card-badge::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: var(--bg-dark);
  border-radius: 100px;
  z-index: -1;
}

.stack-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.stack-card-icon.purple {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.15);
  color: var(--purple);
}

.stack-card-icon.blue {
  background: rgba(74,159,229,0.1);
  border: 1px solid rgba(74,159,229,0.15);
  color: var(--blue);
}

.stack-card-icon.green {
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.15);
  overflow: hidden;
}

.stack-card-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.stack-card h3 {
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.stack-card > p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.stack-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.stack-card-list li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.stack-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}

.stack-card-featured .stack-card-list li::before { color: var(--green); }
.stack-card-icon.purple ~ .stack-card-list li::before,
.stack-card:nth-child(2) .stack-card-list li::before { color: var(--purple); }
.stack-card-icon.blue ~ .stack-card-list li::before,
.stack-card:nth-child(3) .stack-card-list li::before { color: var(--blue); }

/* ============================================
   FORMATION SECTION
   ============================================ */

.section-formation {
  padding: 8rem 0;
  background: var(--bg-soft);
}

.formation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.formation-card {
  padding: 2.5rem 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s ease;
}

.formation-card:hover {
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.formation-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.formation-card-badge::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  animation: badge-rotate 4s linear infinite;
  z-index: -2;
}

.formation-card-badge::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: #fff;
  border-radius: 100px;
  z-index: -1;
}

.formation-card-badge.pink { color: var(--rose); }
.formation-card-badge.pink::before { background: conic-gradient(transparent 0deg, rgba(232,78,138,0.3) 60deg, rgba(232,78,138,0.15) 120deg, transparent 180deg, transparent 360deg); }

.formation-card-badge.purple { color: var(--purple); }
.formation-card-badge.purple::before { background: conic-gradient(transparent 0deg, rgba(139,92,246,0.3) 60deg, rgba(139,92,246,0.15) 120deg, transparent 180deg, transparent 360deg); }

.formation-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.formation-card > p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; }

.formation-details {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.formation-details li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.formation-details li svg {
  width: 16px; height: 16px;
  color: var(--rose);
  flex-shrink: 0;
}

/* ============================================
   FAQ
   ============================================ */

.section-faq { padding: 8rem 0; background: var(--bg-primary); }

.faq-layout {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 4rem;
  align-items: start;
}

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover,
.faq-item.active { border-color: var(--border); }
.faq-item.active { box-shadow: 0 4px 20px rgba(0,0,0,0.04); }

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  gap: 1rem;
}

.faq-question:hover { color: var(--rose); }

.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.active .faq-toggle {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.section-contact {
  padding: 8rem 0;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper {
  max-width: 680px;
  margin: 3rem auto 0;
  position: relative;
  padding: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(
    transparent 0deg,
    rgba(232,78,138,0.2) 40deg,
    rgba(232,78,138,0.6) 58deg,
    #E84E8A 62deg,
    rgba(139,92,246,0.5) 70deg,
    rgba(139,92,246,0.2) 100deg,
    rgba(74,159,229,0.15) 140deg,
    transparent 180deg,
    transparent 360deg
  );
  animation: badge-rotate 6s linear infinite;
  z-index: 0;
}

.contact-form-wrapper form {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 2.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-required { color: var(--rose); }

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(232,78,138,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox a {
  color: var(--rose);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--rose);
}

.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-chip {
  cursor: pointer;
  flex: none;
}

.form-chip input { display: none; }

.form-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-primary);
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
}

.form-chip-label svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: opacity 0.25s;
}

/* Hover par couleur */
.form-chip.pink .form-chip-label:hover { border-color: var(--rose); color: var(--rose); }
.form-chip.blue .form-chip-label:hover { border-color: var(--blue); color: var(--blue); }
.form-chip.purple .form-chip-label:hover { border-color: var(--purple); color: var(--purple); }
.form-chip.green .form-chip-label:hover { border-color: var(--green); color: var(--green); }

/* Checked par couleur */
.form-chip.pink input:checked + .form-chip-label { background: rgba(232,78,138,0.08); border-color: var(--rose); color: var(--rose); }
.form-chip.blue input:checked + .form-chip-label { background: rgba(74,159,229,0.08); border-color: var(--blue); color: var(--blue); }
.form-chip.purple input:checked + .form-chip-label { background: rgba(139,92,246,0.08); border-color: var(--purple); color: var(--purple); }
.form-chip.green input:checked + .form-chip-label { background: rgba(52,211,153,0.08); border-color: var(--green); color: var(--green); }

.form-chip input:checked + .form-chip-label svg { opacity: 1; }

.form-message {
  margin-top: 1rem;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-message-success { background: #E8F5E9; color: #2E7D32; display: block; }
.form-message-error { background: #FFEBEE; color: #C62828; display: block; }

.form-success {
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeUp 0.5s ease both;
}

.form-success-icon {
  color: var(--green);
  margin-bottom: 1.5rem;
}

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

.form-success p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* --- Contact direct --- */
.contact-direct {
  max-width: 680px;
  margin: 2.5rem auto 0;
}

.contact-direct-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

/* Gradient accent bar on the left — draws on scroll */
.contact-direct-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.contact-direct.visible .contact-direct-inner::before {
  transform: scaleY(1);
}

.contact-direct-inner:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-color: rgba(139,92,246,0.2);
}

.contact-direct-photo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.contact-direct-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.contact-direct-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-direct-links {
  display: flex;
  gap: 1.25rem;
}

.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.contact-direct-link:hover {
  color: var(--rose);
}

.contact-direct-link svg {
  flex-shrink: 0;
}

button.contact-direct-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

@media (max-width: 480px) {
  .contact-direct-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
  .contact-direct-links {
    justify-content: center;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-dark);
  color: var(--text-white);
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-logo { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo img { width: 40px; height: 40px; border-radius: 10px; }
.footer-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

.footer h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.4);
}

.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-white); }

.footer-bottom span a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-bottom span a:hover {
  color: var(--text-white);
  color: rgba(255,255,255,0.4);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,0.5);
}

.footer-social a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-white);
}

.footer-social a svg { width: 18px; height: 18px; }

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-inner p { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin: 0; }
.cookie-inner a { color: var(--blue); }

.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}

.cookie-accept { background: var(--rose); color: #fff; }
.cookie-accept:hover { background: #d63f7a; }
.cookie-decline { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.cookie-decline:hover { background: rgba(255,255,255,0.2); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }

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

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

/* ============================================
   LEGAL PAGE
   ============================================ */

.legal-page { padding: 10rem 0 5rem; }

.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 2rem; font-size: clamp(2rem, 4vw, 3rem); }
.legal-content h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0.5rem 0 1rem 1.5rem; list-style: disc; }
.legal-content li { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.3rem; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: 1fr; }
  .why-layout { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .formation-grid { grid-template-columns: 1fr; }
  .why-text { text-align: center; }
  .why-text p { margin-left: auto; margin-right: auto; }
  .contact-form-wrapper form { padding: 1.5rem; }
  .ia-grid { grid-template-columns: 1fr; }
  .ia-visual { order: 1; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-glow-1, .hero-glow-2 { display: none; }
  #sankeyContainer { display: none; }
}

@media (max-width: 640px) {
  .process-steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    padding-top: 5rem;
  }
  .nav-links.open { display: flex; }
  .nav-mobile-brand {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .nav-mobile-brand img { width: 40px; height: 40px; border-radius: 10px; }
  .nav-mobile-brand span {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
  }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 1001; }
  h1 { font-size: 2.25rem !important; }
  .section-title { font-size: 1.75rem !important; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 100svh; padding: 5rem 0 1rem; display: flex; flex-direction: column; }
  .hero > .container { flex: 1; display: flex; flex-direction: column; }
  .hero .hero-top { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .hero .section-marquee-hero { margin-top: auto; }
  .hero h1 { font-size: 1.85rem !important; margin-bottom: 0.75rem; }
  .hero-badge { margin-bottom: 0.75rem; font-size: 0.75rem; padding: 0.35rem 0.9rem 0.35rem 0.6rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.25rem; }
  .hero-ctas .btn { font-size: 0.9rem; padding: 0.7rem 1.5rem; }
  .section-marquee-hero { padding: 0.75rem 0 0; }
  .marquee-track { animation-duration: 15s; gap: 2rem; }
  .marquee-track img { width: 100px; height: 40px; }
  .marquee-track img.logo-compact { height: 46px; }
  .marquee-header { margin-bottom: 0.5rem; }
  .marquee-label { font-size: 0.7rem; }
  .cases-grid { grid-template-columns: 1fr; }
}
