/* ============================================
   AC PRO SOLUTION — Design System
   ============================================ */

:root {
  /* Couleurs — bleu nuit dominant, orange accent */
  --ink:        #0A1128;
  --ink-2:      #0F1A3D;
  --ink-3:      #172554;
  --ink-soft:   #1F2A55;
  --paper:      #FBFAF7;
  --paper-2:    #F3F1EC;
  --paper-3:    #E8E5DE;
  --line:       rgba(10, 17, 40, 0.08);
  --line-strong:rgba(10, 17, 40, 0.14);
  --line-dark:  rgba(255, 255, 255, 0.08);
  --line-dark-2:rgba(255, 255, 255, 0.14);

  --text:       #0A1128;
  --text-2:     #3A4266;
  --text-3:     #6B7290;
  --text-inv:   #FBFAF7;
  --text-inv-2: rgba(251, 250, 247, 0.72);
  --text-inv-3: rgba(251, 250, 247, 0.55);

  --orange:     #FF6A1A;
  --orange-2:   #FF8A47;
  --orange-soft:#FFE8D9;

  /* Type */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(10, 17, 40, .04), 0 2px 8px -2px rgba(10, 17, 40, .05);
  --sh-2: 0 1px 2px rgba(10, 17, 40, .05), 0 12px 32px -14px rgba(10, 17, 40, .14);
  --sh-3: 0 2px 4px rgba(10, 17, 40, .06), 0 24px 60px -20px rgba(10, 17, 40, .22);
  --sh-orange: 0 8px 24px -6px rgba(255, 106, 26, .38);

  /* Spacing rhythm */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Container */
  --container: 1200px;
  --container-tight: 960px;
}

/* ============================================ Reset ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--orange); color: white; }

/* ============================================ Layout ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-tight { max-width: var(--container-tight); }

section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-dark { background: var(--ink); color: var(--text-inv); }
.section-alt  { background: var(--paper-2); }

/* Eyebrow / label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, .18);
}
.section-dark .eyebrow {
  color: var(--text-inv-2);
  background: rgba(255,255,255,.04);
  border-color: var(--line-dark-2);
}

/* Titles */
.h-display {
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.h-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
}
.h-sub {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 60ch;
}
.section-dark .lead { color: var(--text-inv-2); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .lead { margin-top: 20px; }

/* Word highlight (orange underline in hero) */
.word-hl {
  position: relative;
  display: inline-block;
  color: var(--text-inv);
  white-space: nowrap;
}
.word-hl::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.28em;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.word-hl.on::after { transform: scaleX(1); }

/* ============================================ Buttons ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr {
  display: inline-block;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: white;
  box-shadow: var(--sh-orange);
}
.btn-primary:hover { box-shadow: 0 12px 32px -6px rgba(255,106,26,.5); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { background: var(--paper-2); border-color: var(--text); }

.section-dark .btn-ghost {
  color: var(--text-inv);
  border-color: var(--line-dark-2);
}
.section-dark .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); }

.btn-link {
  padding: 0;
  color: var(--text);
  border-radius: 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding-bottom: 3px;
}
.btn-link:hover { color: var(--orange); border-color: var(--orange); transform: none; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================ Header ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .3s cubic-bezier(.2,.7,.2,1), background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.compact {
  padding: 10px 0;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 16px;
  color: var(--ink);
  transition: opacity .2s;
}
.brand:hover { opacity: 0.85; }
.brand-logo { height: 28px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 22px; } }
.site-header.compact .brand-logo { height: 24px; }

/* Monogramme AC (header, cartes) */
.brand-mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.18));
}

.brand-name {
  line-height: 1.05;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Version dark (footer, sections sombres) */
.section-dark .brand,
.site-footer .brand { color: var(--text-inv); }
.section-dark .brand-mark img,
.site-footer .brand-mark img {
  filter: drop-shadow(0 2px 8px rgba(96, 165, 250, 0.3));
}

/* Logo complet horizontal (utilisé dans footer) */
.brand-full {
  display: inline-block;
  transition: opacity .2s;
}
.brand-full:hover { opacity: 0.85; }
.brand-full img {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 560px) {
  .brand-full img { height: 48px; }
}

.nav {
  display: flex; align-items: center; gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 18px; font-size: 14px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: 96px 24px 32px;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-menu .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* ============================================ HERO ============================================ */
.hero {
  padding-top: 140px;
  padding-bottom: clamp(80px, 10vw, 140px);
  background:
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(255,106,26,.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(23,37,84,.06), transparent 60%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 90%);
  opacity: .6;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero-title {
  margin: 20px 0 24px;
  font-size: clamp(44px, 6.4vw, 82px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero-title .word-hl { color: var(--ink); }
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.55;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 36px;
}
.hero-reassure {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 14px;
}
.hero-reassure svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }

/* Hero flow visual */
.hero-flow {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 460px;
  margin-left: auto;
  border-radius: var(--r-xl);
  padding: 32px;
  background: linear-gradient(160deg, var(--ink), var(--ink-2) 60%, var(--ink-3));
  color: var(--text-inv);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
@media (max-width: 980px) { .hero-flow { margin: 0 auto; max-width: 360px; } }
.hero-flow::before {
  content: '';
  position: absolute;
  inset: -30% -20% auto auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,26,.35), transparent 65%);
  filter: blur(20px);
}
.hero-flow::after {
  content: '';
  position: absolute;
  inset: auto auto -30% -20%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(80,120,255,.18), transparent 65%);
  filter: blur(20px);
}
.flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-inv-3);
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.flow-header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,26,.2); }
.flow-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark-2);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px);
  animation: flowIn .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.flow-node:nth-child(1) { animation-delay: .2s; }
.flow-node:nth-child(2) { animation-delay: .4s; }
.flow-node:nth-child(3) { animation-delay: .6s; }
.flow-node:nth-child(4) { animation-delay: .8s; }
.flow-node:nth-child(5) { animation-delay: 1.0s; }
.flow-node.accent {
  background: linear-gradient(135deg, rgba(255,106,26,.18), rgba(255,138,71,.08));
  border-color: rgba(255,138,71,.35);
}
.flow-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: var(--text-inv-2);
  flex-shrink: 0;
}
.flow-node.accent .flow-icon { background: rgba(255,106,26,.25); color: var(--orange-2); }
.flow-icon svg { width: 16px; height: 16px; }
.flow-label { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.flow-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-inv-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.flow-text { flex: 1; }

.flow-pulse {
  position: absolute;
  left: 40px;
  top: 78px; bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,106,26,.5), transparent);
  z-index: 0;
  animation: pulseDown 3s ease-in-out infinite;
}

@keyframes flowIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDown {
  0%   { transform: translateY(-20%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* Trust bar under hero */
.trust-bar {
  margin-top: clamp(60px, 8vw, 100px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .trust-bar { grid-template-columns: 1fr; } }
.trust-bar .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.trust-item svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }

/* ============================================ Reveal on scroll ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================ Problem section (cards) ============================================ */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-6 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--paper-2);
  display: grid; place-items: center;
  color: var(--ink);
  margin-bottom: 20px;
  transition: background .3s, color .3s;
}
.card:hover .card-icon { background: var(--ink); color: var(--orange-2); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em; }
.card p { font-size: 15px; color: var(--text-2); line-height: 1.55; }

/* ============================================ Promise (dark section) ============================================ */
.promise-title {
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
}
.promise-title em { font-style: normal; color: var(--orange-2); }
.promise-text {
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-inv-2);
  max-width: 60ch;
  line-height: 1.7;
}
.promise-text p + p { margin-top: 14px; }

.pipeline {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr) ;
  gap: 12px;
  position: relative;
}
@media (max-width: 780px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
.pipe-step {
  padding: 26px 22px;
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
  position: relative;
  transition: background .3s, border-color .3s, transform .3s;
}
.pipe-step:hover { background: rgba(255,255,255,.05); transform: translateY(-2px); border-color: rgba(255,138,71,.4); }
.pipe-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-inv-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pipe-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-inv);
}
.pipe-step .arr-down {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  width: 20px; height: 20px;
  z-index: 2;
}
@media (max-width: 780px) { .pipe-step .arr-down { display: none; } }
.pipe-step:last-child .arr-down { display: none; }

/* ============================================ Services (4 big cards) ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.service-card p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  flex-grow: 1;
}
.service-card .btn-link { margin-top: 28px; align-self: flex-start; }

/* ============================================ Before / After ============================================ */
.ba-wrapper {
  background: var(--ink);
  color: var(--text-inv);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.ba-wrapper::before {
  content: '';
  position: absolute;
  inset: -50% -20% auto auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,26,.14), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.ba-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dark-2);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.ba-toggle button {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-inv-2);
  transition: color .3s;
  position: relative;
  z-index: 2;
}
.ba-toggle button.active { color: white; }
.ba-toggle .indicator {
  position: absolute;
  top: 4px; bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.ba-toggle[data-state="after"] .indicator { transform: translateX(100%); }


/* Correctif : l attribut [hidden] est masque malgre display:grid de .ba-timeline */
.ba-timeline[hidden]{ display:none !important; }
.ba-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .ba-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ba-timeline { grid-template-columns: 1fr; } }

.ba-step {
  padding: 20px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-dark-2);
  background: rgba(255,255,255,.03);
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.ba-step .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-inv-3);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  display: block;
}
.ba-step .lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-inv);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.ba-step .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,.06);
  color: var(--text-inv-3);
}
.ba-step[data-state="manual"] .tag { background: rgba(255,255,255,.08); color: var(--text-inv-2); }
.ba-step[data-state="auto"] .tag { background: rgba(255,106,26,.2); color: var(--orange-2); }

.ba-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark-2);
  font-size: 15px;
  color: var(--text-inv-2);
  max-width: 60ch;
  position: relative;
  z-index: 1;
}
.ba-note strong { color: var(--text-inv); font-weight: 600; }

/* ============================================ Case study timeline ============================================ */
.case-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .case-wrapper { grid-template-columns: 1fr; } }
.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.case-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
}
.case-stack {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--text-inv);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.005em;
}
.case-stack .dot { color: var(--orange-2); }

.case-timeline {
  border-left: 1px solid var(--line-strong);
  padding-left: 24px;
  position: relative;
}
.case-item {
  padding: 14px 0 28px 8px;
  position: relative;
}
.case-item:last-child { padding-bottom: 0; }
.case-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 18px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  transition: background .3s, border-color .3s;
}
.case-item.on::before { background: var(--orange); border-color: var(--orange); }
.case-item h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.case-item p {
  font-size: 14px;
  color: var(--text-2);
}
.case-item .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  display: block;
}

/* ============================================ Simulator ============================================ */
.sim-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--sh-2);
}
@media (max-width: 900px) { .sim-wrapper { grid-template-columns: 1fr; } }

.sim-controls .field { margin-bottom: 28px; }
.sim-controls label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all .2s;
  background: transparent;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.slider-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.slider-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.slider-val small { font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 4px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--paper-3);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--orange);
  box-shadow: 0 2px 8px rgba(255,106,26,.35);
  cursor: grab;
  transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.1); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--orange);
  box-shadow: 0 2px 8px rgba(255,106,26,.35);
  cursor: grab;
}

.sim-result {
  padding: 32px;
  background: linear-gradient(160deg, var(--ink), var(--ink-2) 70%, var(--ink-3));
  border-radius: var(--r-lg);
  color: var(--text-inv);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.sim-result::before {
  content: '';
  position: absolute;
  inset: auto auto -40% -20%;
  width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,26,.22), transparent 70%);
  filter: blur(30px);
}
.sim-result .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inv-3);
  position: relative;
}
.sim-figure {
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 12px 0 16px;
  line-height: 1;
  position: relative;
  color: white;
}
.sim-figure .unit { font-size: 0.55em; color: var(--orange-2); font-weight: 700; }
.sim-caption {
  font-size: 15px;
  color: var(--text-inv-2);
  line-height: 1.55;
  position: relative;
}
.sim-caption strong { color: var(--text-inv); }
.sim-disclaimer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark-2);
  font-size: 12px;
  color: var(--text-inv-3);
  position: relative;
  line-height: 1.5;
}
.sim-cta { margin-top: 24px; position: relative; }

/* ============================================ Method (4 steps) ============================================ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .method-grid { grid-template-columns: 1fr; } }

.method-step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.method-step:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.method-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}
.method-step h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.method-step p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ============================================ For who (audience) ============================================ */
.audience-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .audience-wrapper { grid-template-columns: 1fr; } }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.audience-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: all .3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.audience-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.audience-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  color: var(--orange-2);
  display: grid; place-items: center;
}
.audience-icon svg { width: 20px; height: 20px; }
.audience-card h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.audience-card p { font-size: 13px; color: var(--text-3); }

/* ============================================ Differentiation ============================================ */
.diff-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
}
@media (max-width: 900px) { .diff-columns { grid-template-columns: 1fr; } }

.diff-col {
  padding: 32px;
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
}
.diff-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.diff-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.diff-col li {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-inv);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.diff-col li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.diff-center {
  padding: 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--orange);
  background: linear-gradient(135deg, rgba(255,106,26,.15), rgba(255,138,71,.05));
  color: var(--text-inv);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.005em;
  text-align: center;
  min-width: 180px;
  position: relative;
}
.diff-center::before, .diff-center::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px; height: 1px;
  background: linear-gradient(to right, transparent, var(--orange));
}
.diff-center::before { right: 100%; }
.diff-center::after { left: 100%; background: linear-gradient(to left, transparent, var(--orange)); }
@media (max-width: 900px) {
  .diff-center::before, .diff-center::after { display: none; }
}

/* ============================================ Local area ============================================ */
.local-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .local-wrapper { grid-template-columns: 1fr; } }

.local-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.local-city {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
}
.local-city:hover { background: var(--ink); color: white; border-color: var(--ink); transform: translateY(-2px); }
.local-city .pin {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,106,26,.14);
}

.map-viz {
  aspect-ratio: 1 / 0.95;
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.map-viz svg { width: 100%; height: 100%; }

/* ============================================ Resources ============================================ */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } }

.res-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: all .35s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}
.res-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.res-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.res-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.res-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.res-card p { font-size: 15px; color: var(--text-2); flex-grow: 1; }
.res-card .btn-link { align-self: flex-start; }

/* ============================================ FAQ ============================================ */
.faq-wrapper {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: -0.015em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--ink);
}
.faq-q .plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .3s, color .3s, transform .4s;
}
.faq-item.open .faq-q .plus {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: rotate(45deg);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s cubic-bezier(.2,.7,.2,1);
}
.faq-a-inner {
  padding: 0 0 24px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 68ch;
}

/* ============================================ Final CTA ============================================ */
.final-cta {
  padding: clamp(60px, 8vw, 100px) 0;
}
.final-block {
  padding: clamp(48px, 6vw, 88px);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink-3) 100%);
  color: var(--text-inv);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.final-block::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 80%; aspect-ratio: 2;
  background: radial-gradient(ellipse, rgba(255,106,26,.24), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.final-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  pointer-events: none;
}
.final-block .container-tight { position: relative; z-index: 1; }
.final-block h2 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
  line-height: 1.05;
}
.final-block p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-inv-2);
  max-width: 56ch;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.final-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-contacts {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark-2);
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-inv-2);
}
.final-contacts a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.final-contacts a:hover { color: var(--orange-2); }
.final-contacts svg { width: 16px; height: 16px; color: var(--orange-2); }

/* ============================================ Footer ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--text-inv-2);
  padding: clamp(60px, 8vw, 88px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { max-width: 340px; }
.footer-brand .brand { color: white; margin-bottom: 16px; }
.footer-brand .brand-full { display: inline-block; margin-bottom: 4px; }
.footer-brand .brand-full img {
  height: 68px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(59, 130, 246, 0.15));
}
.footer-brand p { font-size: 14px; color: var(--text-inv-3); line-height: 1.6; }
@media (max-width: 900px) {
  .footer-brand .brand-full img { height: 56px; }
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-inv-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-inv-2);
  transition: color .2s;
}
.footer-col a:hover { color: var(--orange-2); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line-dark-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-inv-3);
}
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-inv-3); transition: color .2s; }
.footer-bottom a:hover { color: var(--orange-2); }

/* ============================================ Utility ============================================ */
.no-scroll { overflow: hidden; }
.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;
}
