/* ==========================================================================
   CAP INNOVIA v2 — Bento Tech (Apple-inspired)
   Direction C : lisible, premium, moderne. Exit le bleu marine+or "financier".
   Ponytail : CSS custom, zéro framework, tokens netters, composants bento.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Couleurs — Apple-like light */
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --surface-2: #F5F5F7;
  --surface-3: #EFEFF2;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --ink-3: #6E6E73;
  --muted: #86868B;
  --border: rgba(0, 0, 0, 0.07);
  --border-2: rgba(0, 0, 0, 0.12);

  /* Accents indigo → violet */
  --indigo-50: #EEF0FF;
  --indigo-100: #E0E3FF;
  --indigo-500: #5B5BD6;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --coral: #F97316;
  --coral-light: #FB923C;
  --emerald: #10B981;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #5B5BD6 0%, #8B5CF6 100%);
  --grad-warm: linear-gradient(135deg, #F97316 0%, #EC4899 100%);
  --grad-text: linear-gradient(135deg, #5B5BD6 0%, #7C3AED 50%, #EC4899 100%);
  --grad-hero-glow: radial-gradient(ellipse 80% 60% at 75% 20%, rgba(91, 91, 214, 0.18), transparent 60%),
                    radial-gradient(ellipse 60% 40% at 15% 90%, rgba(236, 72, 153, 0.10), transparent 60%);

  /* Dark sections */
  --dark: #0A0A0F;
  --dark-2: #13131A;
  --dark-surface: #1C1C24;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-text: rgba(255, 255, 255, 0.92);
  --dark-muted: rgba(255, 255, 255, 0.55);

  /* Typo */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;

  /* Espacements */
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 880px;
  --section-y: clamp(72px, 9vw, 128px);
  --section-y-sm: clamp(48px, 6vw, 80px);
  --gap: 16px;

  /* Rayons Apple */
  --r-sm: 10px;
  --r: 16px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-2xl: 48px;
  --r-full: 999px;

  /* Ombres subtiles */
  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --sh: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  --sh-md: 0 8px 16px -4px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --sh-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.10), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  --sh-xl: 0 32px 64px -16px rgba(0, 0, 0, 0.14), 0 12px 24px -6px rgba(0, 0, 0, 0.06);
  --sh-indigo: 0 12px 32px -8px rgba(91, 91, 214, 0.35);
  --sh-dark: 0 24px 60px -12px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.011em;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--indigo-100); color: var(--indigo-700); }

/* ---------- 3. TYPOGRAPHIE ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -0.02em; }
h4 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--ink-2); }
p.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-3); font-weight: 400; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-muted { color: var(--muted); }
.text-indigo { color: var(--indigo-600); }

/* Eyebrow / pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 0.82rem; font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--sh-xs);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.18);
}
.pill-indigo {
  background: var(--indigo-50); color: var(--indigo-700); border-color: var(--indigo-100);
}

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: var(--section-y) 0; }
.section-sm { padding: var(--section-y-sm) 0; }
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: var(--dark-muted); }
.section-tinted { background: var(--surface-2); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--ink-3); line-height: 1.55; }
.section-dark .section-head p { color: var(--dark-muted); }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  grid-auto-rows: minmax(120px, auto);
}
.bento-3 { grid-template-columns: repeat(3, 1fr); }
.bento-2 { grid-template-columns: repeat(2, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }
.row-3 { grid-row: span 3; }

/* ---------- 5. BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px;
  font-family: var(--font); font-size: 0.98rem; font-weight: 600;
  border-radius: var(--r-full);
  transition: all var(--t);
  white-space: nowrap; cursor: pointer; text-align: center;
  letter-spacing: -0.01em;
  position: relative; overflow: hidden;
}
.btn svg { width: 17px; height: 17px; transition: transform var(--t); }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: var(--sh-md);
}
.btn-primary:hover { background: var(--indigo-600); transform: translateY(-2px); box-shadow: var(--sh-indigo); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-gradient {
  background: var(--grad-primary); color: #fff;
  box-shadow: var(--sh-indigo);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(91, 91, 214, 0.5); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border-2); box-shadow: var(--sh-xs); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-1px); border-color: var(--ink-3); }
.btn-light { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.btn-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- 6. HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--t);
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(251, 251, 253, 0.88); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

/* Logo Cap Innovia v2 */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--grad-primary);
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--sh-indigo);
  position: relative;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent 50%);
  border-radius: 9px;
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1; gap: 1px;
}
.logo-text .innovia { font-size: 1.2rem; color: var(--ink); letter-spacing: -0.03em; }
.logo-text .sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 0.94rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; transition: color var(--t-fast); }
.nav a:hover { color: var(--indigo-600); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border-radius: var(--r-sm); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: all var(--t); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. HERO BENTO ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 var(--section-y); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-hero-glow);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.hero-text { padding-top: 12px; }
.hero-text h1 { margin: 24px 0 22px; }
.hero-text h1 .line { display: block; }
.hero-text .lead { font-size: clamp(1.1rem, 1.4vw, 1.28rem); line-height: 1.5; max-width: 540px; color: var(--ink-3); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; font-size: 0.88rem; color: var(--muted); }
.hero-trust-mini .stars { color: var(--coral); letter-spacing: 1px; }
.hero-trust-mini .sep { width: 4px; height: 4px; background: var(--muted); border-radius: 50%; opacity: 0.5; }

/* Bento right column */
.hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  grid-auto-rows: minmax(140px, auto);
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-sm);
  transition: all var(--t);
  display: flex; flex-direction: column;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border-2); }
.hero-card.tall { grid-row: span 2; }
.hero-card.wide { grid-column: span 2; }
.hero-card .label { font-size: 0.74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.hero-card .big-num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.04em; }
.hero-card .big-num.gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-card .desc { font-size: 0.88rem; color: var(--ink-3); line-height: 1.5; margin-top: 6px; }
.hero-card-dark { background: var(--dark); color: #fff; border-color: var(--dark-border); }
.hero-card-dark .label { color: rgba(255,255,255,0.5); }
.hero-card-dark .big-num { color: #fff; }
.hero-card-dark .desc { color: rgba(255,255,255,0.65); }
.hero-card-gradient { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--sh-indigo); }
.hero-card-gradient .label { color: rgba(255,255,255,0.7); }
.hero-card-gradient .big-num { color: #fff; }
.hero-card-gradient .desc { color: rgba(255,255,255,0.85); }
.hero-card-img {
  padding: 0; overflow: hidden; position: relative;
  background: var(--dark);
}
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.hero-card-img .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,15,0.85) 100%);
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.hero-card-img .overlay .label { color: rgba(255,255,255,0.7); }
.hero-card-img .overlay .desc { color: rgba(255,255,255,0.92); }

/* Mini icon pour cards */
.card-icon-mini {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--indigo-50);
  color: var(--indigo-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card-icon-mini svg { width: 19px; height: 19px; }
.hero-card-dark .card-icon-mini { background: rgba(91, 91, 214, 0.2); color: #A5B4FC; }
.hero-card-gradient .card-icon-mini { background: rgba(255,255,255,0.2); color: #fff; }

/* ---------- 8. MARQUEE CLIENTS ---------- */
.clients-band { padding: clamp(36px, 5vw, 56px) 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.clients-head { text-align: center; margin-bottom: 32px; }
.clients-head .label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.clients-head .sub { font-size: 0.92rem; color: var(--ink-3); margin-top: 6px; }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 56px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: var(--ink-3);
  letter-spacing: -0.025em;
  white-space: nowrap;
  opacity: 0.55;
  transition: all var(--t-fast);
  display: flex; align-items: center; gap: 12px;
}
.marquee-item:hover { opacity: 1; color: var(--ink); transform: scale(1.04); }
.marquee-item .bullet { width: 6px; height: 6px; background: var(--indigo-500); border-radius: 50%; opacity: 0.5; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 9. BENTO CARDS (features / preuve) ---------- */
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh-sm);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-2); }
.bento-card.feature {
  background: var(--surface);
}
.bento-card.dark {
  background: var(--dark); color: #fff; border-color: var(--dark-border);
}
.bento-card.dark h3, .bento-card.dark h4 { color: #fff; }
.bento-card.dark p { color: var(--dark-muted); }
.bento-card.gradient {
  background: var(--grad-primary); color: #fff; border-color: transparent;
  box-shadow: var(--sh-indigo);
}
.bento-card.gradient h3, .bento-card.gradient h4 { color: #fff; }
.bento-card.gradient p { color: rgba(255,255,255,0.88); }
.bento-card.tinted { background: var(--surface-2); }

.bento-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--indigo-50);
  color: var(--indigo-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.bento-card .icon-wrap svg { width: 24px; height: 24px; }
.bento-card.dark .icon-wrap { background: rgba(91, 91, 214, 0.18); color: #A5B4FC; }
.bento-card.gradient .icon-wrap { background: rgba(255,255,255,0.18); color: #fff; }

.bento-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.bento-card p { font-size: 0.95rem; line-height: 1.55; color: var(--ink-3); }

/* Décorations géométriques cards */
.bento-card .deco {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.bento-card > * { position: relative; z-index: 1; }
.bento-card .deco-tr { top: -60px; right: -60px; background: rgba(91, 91, 214, 0.3); }
.bento-card .deco-bl { bottom: -60px; left: -60px; background: rgba(236, 72, 153, 0.25); }

/* ---------- 10. SECTION DIAGNOSTIC ---------- */
.diag-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all var(--t);
  position: relative;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--indigo-100); }
.pillar .step-num {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 700;
  color: var(--indigo-600);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pillar p { color: var(--ink-3); font-size: 0.95rem; }
.pillar .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--indigo-50); color: var(--indigo-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pillar .icon-wrap svg { width: 26px; height: 26px; }

/* ---------- 11. MÉTHODE TIMELINE ---------- */
.method-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.method-step {
  padding: 24px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  transition: all var(--t);
  position: relative;
}
.method-step:hover { background: var(--ink); color: #fff; transform: translateY(-3px); box-shadow: var(--sh-lg); }
.method-step:hover h4, .method-step:hover .step-n { color: #fff; }
.method-step:hover p { color: rgba(255,255,255,0.7); }
.method-step .step-n {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  color: var(--indigo-500);
  line-height: 1; margin-bottom: 12px;
  transition: color var(--t);
}
.method-step h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 6px; transition: color var(--t); }
.method-step p { font-size: 0.82rem; color: var(--muted); line-height: 1.45; transition: color var(--t); }

/* ---------- 12. AXES ---------- */
.axes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.axis-card {
  display: flex; gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t);
}
.axis-card:hover { border-color: var(--indigo-100); background: var(--surface); transform: translateX(4px); box-shadow: var(--sh-md); }
.axis-card .num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--sh-indigo);
}
.axis-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.axis-card p { font-size: 0.9rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- 13. SECTEURS ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.sector-card {
  padding: 24px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  transition: all var(--t);
}
.sector-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--indigo-100); background: var(--indigo-50); }
.sector-card .emoji { font-size: 1.7rem; display: block; margin-bottom: 8px; filter: grayscale(0.2); }
.sector-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--ink); }

/* ---------- 14. STATS ---------- */
.stats-section { background: var(--dark); color: #fff; padding: var(--section-y) 0; position: relative; overflow: hidden; }
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 80% 30%, rgba(91, 91, 214, 0.25), transparent 60%);
}
.stats-section .container { position: relative; z-index: 1; }
.stats-section h1, .stats-section h2, .stats-section h3, .stats-section h4 { color: #fff; }
.stats-section .section-head p { color: var(--dark-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1; letter-spacing: -0.04em;
}
.stat-item .num .suffix { font-size: 0.5em; color: var(--coral-light); }
.stat-item .lbl { font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); margin-top: 14px; font-weight: 500; }

/* ---------- 15. ÉQUIPE / EXPERTS ---------- */
.experts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.expert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all var(--t);
  display: flex; gap: 18px; align-items: center;
}
.expert-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border-2); }
.expert-card.stacked { flex-direction: column; align-items: stretch; text-align: center; padding: 0; overflow: hidden; }
.expert-card.stacked .photo-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.expert-card.stacked .photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.expert-card.stacked:hover .photo-wrap img { transform: scale(1.05); }
.expert-card.stacked .body { padding: 22px; }
.expert-photo {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--sh-sm);
}
.expert-photo img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h4 { font-size: 1.05rem; margin-bottom: 2px; }
.expert-card .role { font-size: 0.82rem; font-weight: 600; color: var(--indigo-600); margin-bottom: 6px; }
.expert-card .bio { font-size: 0.86rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- 16. TÉMOIGNAGES ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: all var(--t);
  display: flex; flex-direction: column;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.testimonial-card .stars { color: var(--coral); letter-spacing: 2px; font-size: 1rem; margin-bottom: 14px; }
.testimonial-card .text { font-size: 0.98rem; line-height: 1.6; color: var(--ink); margin-bottom: 22px; flex: 1; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.testimonial-card .name { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.testimonial-card .meta { font-size: 0.8rem; color: var(--muted); }

/* Note Trustindex */
.rating-band {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--sh-sm);
  margin-top: 32px;
}
.rating-band .big { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--ink); line-height: 1; }
.rating-band .stars-big { color: var(--coral); font-size: 1.1rem; letter-spacing: 2px; }
.rating-band .src { font-size: 0.82rem; color: var(--muted); }
.rating-band .sep { width: 1px; height: 32px; background: var(--border-2); }

/* ---------- 17. FINANCEMENTS ---------- */
.funding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.funding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t);
}
.funding-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border-2); }
.funding-card .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: var(--emerald); color: #fff;
  border-radius: var(--r-full);
  font-size: 0.74rem; font-weight: 600;
  margin-bottom: 14px;
}
.funding-card .badge.blue { background: var(--indigo-500); }
.funding-card .badge.orange { background: var(--coral); }
.funding-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.funding-card p { font-size: 0.92rem; color: var(--ink-3); }
.funding-card .pct { font-family: var(--font-display); font-weight: 800; color: var(--emerald); }

/* ---------- 18. CTA ---------- */
.cta-section { padding: var(--section-y) 0; }
.cta-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(48px, 7vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(91, 91, 214, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(236, 72, 153, 0.25), transparent 60%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; margin-bottom: 18px; }
.cta-card p { color: rgba(255,255,255,0.78); font-size: 1.12rem; max-width: 580px; margin: 0 auto 32px; }
.cta-card .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 19. CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info {
  background: var(--dark); color: #fff;
  border-radius: var(--r-lg);
  padding: 36px;
}
.contact-info h3 { color: #fff; margin-bottom: 20px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-mini {
  flex-shrink: 0; width: 38px; height: 38px;
  background: rgba(91, 91, 214, 0.18); color: #A5B4FC;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list .icon-mini svg { width: 18px; height: 18px; }
.contact-list .lbl { font-size: 0.74rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list .val { font-size: 0.96rem; color: #fff; font-weight: 500; }
.contact-list .val a:hover { color: #A5B4FC; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--sh-md);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 12px 16px;
  font: inherit; font-size: 0.96rem;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  color: var(--ink);
}
.form-control:focus { outline: none; border-color: var(--indigo-500); background: var(--surface); box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.12); }
textarea.form-control { min-height: 110px; resize: vertical; font-family: inherit; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- 20. FOOTER ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,0.78); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer .logo-text .innovia { color: #fff; }
.footer .logo-text .sub { color: rgba(255,255,255,0.65); }
.footer-about { margin-top: 18px; font-size: 0.92rem; line-height: 1.6; max-width: 320px; color: rgba(255,255,255,0.7); }
.footer h5 { color: #fff; font-family: var(--font); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 0.9rem; transition: color var(--t-fast); }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; margin-bottom: 11px; }
.footer-contact svg { width: 16px; height: 16px; color: #A5B4FC; flex-shrink: 0; margin-top: 3px; }
.footer-brand-row { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--dark-border); }
.footer-brand-row img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-brand-row .txt { font-size: 0.76rem; color: rgba(255,255,255,0.5); line-height: 1.4; }
.footer-brand-row .txt strong { color: #fff; display: block; font-size: 0.86rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--dark-border); font-size: 0.82rem; }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- 21. MOTION ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--t-slow), transform 0.7s var(--t-slow); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 21.5 CANVAS HERO + BADGES FLOTTANTS ---------- */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.floating-badges {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
  pointer-events: none;
}
.floating-badge {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--sh-sm);
  animation: badge-float 4.5s ease-in-out infinite;
  letter-spacing: -0.01em;
}
.floating-badge:nth-child(2) { animation-delay: 0.6s; }
.floating-badge:nth-child(3) { animation-delay: 1.2s; }
.floating-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.floating-badge .dot.indigo { background: var(--indigo-500); box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.18); }
.floating-badge .dot.coral { background: var(--coral); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18); }
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1024px) {
  .floating-badges { display: none; }
}

/* Marquee témoignages sur mobile */
@media (max-width: 768px) {
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 20px 8px;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 20px;
  }
  .testimonials-grid .testimonial-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }
}

/* ---------- 21.7 BACKGROUNDS IMAGES + JOURNEY (parcours) ---------- */
.section-bg { position: relative; overflow: hidden; }
.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.025;
  z-index: 0;
  pointer-events: none;
}
.section-bg > * { position: relative; z-index: 1; }
.bg-earth::before { background-image: url('../img/unsplash/abstract-earth.jpg'); }
.bg-circuit::before { background-image: url('../img/unsplash/circuit.jpg'); }
.bg-gradient::before { background-image: url('../img/unsplash/gradient-abstract.jpg'); }
.bg-aiflow::before { background-image: url('../img/unsplash/ai-flow.jpg'); }
.bg-matrix::before { background-image: url('../img/unsplash/matrix.jpg'); }

/* Parcours accompagnement (timeline vertical) */
.journey {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 8px;
}
.journey::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--indigo-500) 0%, var(--violet-500) 50%, var(--coral) 100%);
  opacity: 0.4;
}
.journey-step {
  position: relative;
  padding-left: 68px;
  margin-bottom: 28px;
}
.journey-step:last-child { margin-bottom: 0; }
.journey-step .num {
  position: absolute;
  left: 6px;
  top: 0;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 2px solid var(--indigo-500);
  color: var(--indigo-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--sh-sm);
  transition: all var(--t);
}
.journey-step:hover .num {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: var(--sh-indigo);
}
.journey-step h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.journey-step p {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.55;
}

.bg-nature::before { background-image: url('../img/unsplash/foret.jpg'); }

/* Canvas stats (particules derrière les chiffres) */
.stats-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.stats-section .container { position: relative; z-index: 1; }

/* CTA — déco flottante additionnelle */
.cta-band::after {
  content: '';
  position: absolute;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.32), transparent 60%);
  filter: blur(50px);
  bottom: -140px; left: -80px;
  animation: cta-float 11s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes cta-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,-30px) scale(1.12); }
}

/* ---------- 22. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-4 { grid-column: span 2; }
  .diag-pillars { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: repeat(3, 1fr); }
  .axes-grid { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .funding-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    padding: 24px; gap: 4px;
    align-items: stretch;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav.open a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--border); }
  .header-cta .btn:not(.menu-toggle) { display: none; }

  .bento, .bento-3, .bento-2 { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .row-2, .row-3 { grid-row: auto; }
  .hero-bento { grid-template-columns: 1fr; }
  .hero-card.tall, .hero-card.wide { grid-row: auto; grid-column: auto; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .method-steps { grid-template-columns: 1fr 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .rating-band { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
}
