/* =================================================================
   Mario Vitte — Automatisation sur-mesure
   Identité « Encre & Cuivre »
   Vanilla CSS, mobile-first, piloté par tokens.
   ================================================================= */

/* ---------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------- */
:root {
  /* — Palette de base — */
  --ink-900: #0E1A1C;   /* fond sombre le plus profond */
  --ink-800: #11201E;   /* titres sur clair, fonds sombres */
  --ink-700: #1A302C;
  --ink-600: #24403B;

  --paper:      #F7F4EF; /* fond clair dominant (chaud) */
  --paper-2:    #FBF8F3; /* section alternée */
  --paper-card: #FFFFFF; /* surface des cartes */

  --line:        #E7E0D4; /* filets sur clair */
  --line-strong: #DAD0BF;

  --text:  #283733; /* corps sur clair */
  --muted: #50605B; /* texte secondaire sur clair (AA ✓) */

  /* — Marque — */
  --copper:     #C9772F; /* cuivre signature (graphique/grand) */
  --copper-ink: #9E5618; /* cuivre pour texte sur clair (AA ✓) */
  --amber:      #E2964A; /* ambre clair (remplissage boutons) */
  --amber-soft: #F3D9B6;
  --teal:       #2E8C7E; /* sarcelle — flux / second accent */
  --teal-ink:   #1C6B5E; /* sarcelle pour texte sur clair (AA ✓) */
  --teal-soft:  #BFE3DC;

  /* — Sur fond sombre — */
  --on-dark:        #F3EFE7;
  --on-dark-muted:  #A9B8B3;
  --line-dark:      rgba(243, 239, 231, .14);
  --copper-on-dark: #E9A961;
  --teal-on-dark:   #5BCBB8;

  /* — Typographie — */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-eyebrow: 0.78rem;
  --fs-small:   clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --fs-body:    clamp(1rem, 0.96rem + 0.22vw, 1.12rem);
  --fs-lead:    clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  --fs-h3:      clamp(1.18rem, 1.05rem + 0.6vw, 1.4rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-display: clamp(2.6rem, 1.6rem + 4.6vw, 4.7rem);
  --fs-stat:    clamp(2.6rem, 1.8rem + 3vw, 3.8rem);

  /* — Espacement — */
  --space-2xs: 0.375rem;
  --space-xs:  0.625rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.25rem;
  --space-xl:  3.25rem;
  --space-2xl: clamp(4rem, 7vw, 7rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --container: 1180px;
  --container-pad: clamp(1.15rem, 4vw, 2.5rem);

  /* — Rayons — */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* — Ombres (teintées chaud) — */
  --sh-sm: 0 1px 2px rgba(20, 24, 18, .06), 0 2px 8px rgba(20, 24, 18, .04);
  --sh-md: 0 4px 14px rgba(24, 30, 22, .07), 0 14px 40px rgba(24, 30, 22, .07);
  --sh-lg: 0 10px 30px rgba(20, 26, 20, .10), 0 30px 70px rgba(20, 26, 20, .12);
  --sh-copper: 0 8px 26px rgba(201, 119, 47, .32);

  /* — Motion — */
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 560ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .54, 1);
}

/* ---------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain premium subtil sur le fond clair */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

a { color: var(--copper-ink); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink-800);
  font-optical-sizing: auto;
}

strong { font-weight: 600; color: var(--ink-700); }
em { font-style: italic; }

::selection { background: var(--amber); color: var(--ink-900); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  background: var(--ink-800);
  color: var(--on-dark);
  padding: .65rem 1.1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  z-index: 200;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------------------------------------------------------------
   3. ÉLÉMENTS PARTAGÉS
   --------------------------------------------------------------- */

/* Eyebrow (label mono) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper-ink);
  margin-bottom: var(--space-md);
  max-width: 100%;
}
@media (max-width: 420px) {
  .eyebrow { font-size: .72rem; letter-spacing: .1em; }
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px rgba(201, 119, 47, .16);
}
.eyebrow--on-dark { color: var(--copper-on-dark); }
.eyebrow--on-dark .eyebrow__dot {
  background: var(--copper-on-dark);
  box-shadow: 0 0 0 4px rgba(233, 169, 97, .18);
}

/* En-tête de section */
.section-head { max-width: 760px; margin-bottom: var(--space-2xl); }
.section-title { font-size: var(--fs-h2); }
.section-title em { color: var(--copper-ink); font-style: italic; }
.section-title--on-dark { color: var(--on-dark); }
.section-title--on-dark em { color: var(--copper-on-dark); }
.section-intro {
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.section { padding-block: var(--section-y); position: relative; z-index: 2; }
.section--services { background: var(--paper-2); }
.section--why { background: var(--paper-2); }

/* Boutons */
.btn {
  --btn-bg: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1;
  padding: .85rem 1.35rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur) var(--ease-spring),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(180deg, var(--amber), var(--copper));
  color: #25160A;
  box-shadow: var(--sh-copper);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(201, 119, 47, .42);
}
.btn--primary:active { transform: translateY(0) scale(.985); }

.btn--ghost-light {
  background: rgba(255, 255, 255, .04);
  color: var(--on-dark);
  border-color: var(--line-dark);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover {
  border-color: rgba(243, 239, 231, .4);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-2px);
}

.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------
   4. BARRE DE PROGRESSION
   --------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--copper), var(--amber), var(--teal));
  transition: width 80ms linear;
}

/* ---------------------------------------------------------------
   5. EN-TÊTE / NAV
   --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-block: .85rem;
}
.site-header.is-scrolled {
  background: rgba(247, 244, 239, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(20,24,18,.02);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--ink-800);
  margin-right: auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--ink-800);
  box-shadow: var(--sh-sm);
}
.mk-node-a { fill: var(--copper-on-dark); }
.mk-node-b { fill: var(--teal-on-dark); }
.mk-node-c { fill: var(--paper); }
.mk-link { stroke: rgba(243,239,231,.55); }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.6vw, 1.6rem);
  list-style: none;
  padding: 0;
}
.site-nav__list a {
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .15rem;
  transition: color var(--dur) var(--ease);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav__list a:hover,
.site-nav__list a.is-active { color: var(--ink-800); }
.site-nav__list a:hover::after,
.site-nav__list a.is-active::after { transform: scaleX(1); }

.header-cta { margin-left: .25rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px; width: 100%;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md) var(--container-pad) var(--space-lg);
  background: rgba(247, 244, 239, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav a {
  display: block;
  padding: .95rem .25rem;
  color: var(--ink-800);
  font-weight: 500;
  font-size: 1.05rem;
}
.mobile-nav__cta { margin-top: .25rem; }
.mobile-nav.is-open { display: flex; animation: drop var(--dur) var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------
   6. HÉRO
   --------------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 75% -10%, #163230 0%, var(--ink-800) 42%, var(--ink-900) 100%);
  color: var(--on-dark);
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 18% 12%, rgba(201,119,47,.14), transparent 60%),
    radial-gradient(50% 60% at 92% 80%, rgba(46,140,126,.14), transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(14,26,28,.55) 100%);
}
.hero__inner { position: relative; max-width: 940px; }

.hero__title {
  font-size: var(--fs-display);
  font-weight: 500;
  color: var(--on-dark);
  letter-spacing: -0.025em;
  margin-top: .25rem;
  text-wrap: balance;
}
.hero__lead {
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 60ch;
}
.hero__lead strong { color: var(--on-dark); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.hero__cue svg { color: var(--teal-on-dark); flex: none; }

.hero__signature {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  color: var(--on-dark);
  max-width: 40ch;
}
.hero__signature span { color: var(--copper-on-dark); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--line-dark);
  border-radius: var(--r-pill);
  display: grid;
  place-items: start center;
  padding-top: 7px;
  z-index: 3;
}
.scroll-hint__line {
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--copper-on-dark);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------------------------------------------------------------
   7. PROBLÈME
   --------------------------------------------------------------- */
.pain-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: var(--space-md);
}
.pain-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--line-strong);
}
.pain-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  margin-bottom: var(--space-md);
  color: var(--copper-ink);
  background: linear-gradient(180deg, #FBEFE0, #F6E3CC);
  border: 1px solid #F0DBBE;
}
.pain-card h3 { font-size: var(--fs-h3); margin-bottom: .4rem; }
.pain-card p { color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }

/* ---------------------------------------------------------------
   8. SERVICES
   --------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-md);
}
.service-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  margin-bottom: var(--space-md);
  color: var(--teal-ink);
  background: linear-gradient(180deg, #E8F4F0, #D9ECE6);
  border: 1px solid #CDE6DF;
}
.service-card h3 { font-size: var(--fs-h3); margin-bottom: .45rem; }
.service-card p { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }

.services-note {
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-lead);
}
.services-note a {
  color: var(--copper-ink);
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}

/* ---------------------------------------------------------------
   9. MÉTHODE / ÉTAPES
   --------------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--space-lg);
}
.steps__flow {
  position: absolute;
  top: 26px;
  left: 6%;
  width: 88%;
  height: 8px;
  color: var(--teal-soft);
  display: none;
}
.steps__flow svg { width: 100%; height: 100%; overflow: visible; }
#flowPath {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.steps.is-flowing #flowPath { stroke-dashoffset: 0; }

.step { position: relative; padding-top: 4px; }
.step__num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--copper-ink);
  letter-spacing: .08em;
}
.step__node {
  position: absolute;
  top: 22px; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--copper);
  display: none;
}
.step h3 { font-size: var(--fs-h3); margin: .8rem 0 .45rem; }
.step p { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }

/* ---------------------------------------------------------------
   10. CAS CONCRET (section sombre)
   --------------------------------------------------------------- */
.section--case {
  background: radial-gradient(120% 120% at 90% 0%, #173430 0%, var(--ink-800) 45%, var(--ink-900) 100%);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.section--case::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 50% at 12% 90%, rgba(201,119,47,.12), transparent 60%);
  pointer-events: none;
}
.case {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.case__content { max-width: 620px; }
.case__problem, .case__solution {
  margin-top: var(--space-md);
  color: var(--on-dark-muted);
  line-height: 1.65;
}
.case__problem strong, .case__solution strong { color: var(--on-dark); }
.case__solution em { color: var(--copper-on-dark); font-style: normal; font-weight: 600; }

.case__results {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.case__results li {
  border-left: 2px solid var(--line-dark);
  padding-left: var(--space-sm);
}
.case__stat {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 1;
  color: var(--copper-on-dark);
  letter-spacing: -0.02em;
}
.case__stat-label {
  display: block;
  margin-top: .5rem;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  line-height: 1.4;
}

/* Pipeline visuel */
.case__visual {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: var(--space-xl) var(--space-lg);
  backdrop-filter: blur(6px);
}
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.4rem, 1.5vw, 1rem);
}
.pipeline__node {
  flex: 1;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
  padding: var(--space-md) .5rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark);
  font-size: .8rem;
  line-height: 1.25;
  color: var(--on-dark);
}
.pipeline__node svg { color: var(--on-dark); }
.pipeline__node--brain {
  border-color: rgba(233,169,97,.45);
  background: rgba(201,119,47,.10);
}
.pipeline__node--brain svg { color: var(--copper-on-dark); }
.pipeline__node--out { border-color: rgba(91,203,184,.4); }
.pipeline__node--out svg { color: var(--teal-on-dark); }

.pipeline__link {
  flex: none;
  display: flex;
  gap: 5px;
  align-items: center;
}
.pipeline__link i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--copper-on-dark);
  opacity: .35;
  animation: flowPulse 1.6s var(--ease) infinite;
}
.pipeline__link i:nth-child(2) { animation-delay: .2s; }
.pipeline__link i:nth-child(3) { animation-delay: .4s; }
@keyframes flowPulse {
  0%, 100% { opacity: .25; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.pipeline__caption {
  margin-top: var(--space-md);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}

/* ---------------------------------------------------------------
   11. POURQUOI MOI
   --------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-md);
}
.why-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.why-card__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  margin-bottom: var(--space-md);
  color: var(--copper-ink);
  background: linear-gradient(180deg, #FBEFE0, #F6E3CC);
  border: 1px solid #F0DBBE;
}
.why-card h3 { font-size: var(--fs-h3); margin-bottom: .45rem; }
.why-card p { color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }

/* ---------------------------------------------------------------
   12. OFFRE FONDATEUR
   --------------------------------------------------------------- */
.section--offer { background: var(--paper); }
.offer {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  background:
    linear-gradient(180deg, var(--paper-card), #FFFDF9);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-2xl) clamp(1.25rem, 5vw, 3.5rem);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201,119,47,.5), transparent 40%, transparent 60%, rgba(46,140,126,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.offer__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper-ink);
  background: #FBEFE0;
  border: 1px solid #F0DBBE;
  padding: .45rem .85rem;
  border-radius: var(--r-pill);
  margin-bottom: var(--space-md);
}
.offer__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper);
  animation: livePulse 2s var(--ease) infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,119,47,.5); }
  50% { box-shadow: 0 0 0 6px rgba(201,119,47,0); }
}
.offer__title { font-size: var(--fs-h2); }
.offer__text {
  margin: var(--space-md) auto 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.offer__points {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) auto;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  text-align: left;
}
.offer__points li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-700);
}
.offer__points svg { color: var(--teal-ink); flex: none; margin-top: 2px; }

/* ---------------------------------------------------------------
   13. CONTACT (section sombre)
   --------------------------------------------------------------- */
.section--contact {
  background: radial-gradient(110% 120% at 10% 0%, #15302D 0%, var(--ink-800) 48%, var(--ink-900) 100%);
  color: var(--on-dark);
}
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact__lead {
  margin-top: var(--space-md);
  color: var(--on-dark-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 48ch;
}
.contact__direct {
  list-style: none;
  padding: 0;
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.contact__direct li {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}
.contact__direct svg { color: var(--copper-on-dark); flex: none; }
.contact__direct a { color: var(--on-dark); font-weight: 500; }
.contact__direct a:hover { color: var(--copper-on-dark); }

/* Formulaire */
.contact__form {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  backdrop-filter: blur(8px);
}
.contact__form-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--on-dark);
  margin-bottom: var(--space-md);
}
.field { margin-bottom: var(--space-md); }
.field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: .4rem;
}
.field__opt { color: var(--on-dark-muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* évite le zoom auto iOS */
  color: var(--on-dark);
  background: rgba(14,26,28,.35);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: .8rem .9rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(169,184,179,.7); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper-on-dark);
  background: rgba(14,26,28,.55);
  box-shadow: 0 0 0 3px rgba(233,169,97,.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #E08A6A;
  box-shadow: 0 0 0 3px rgba(224,138,106,.16);
}
.contact__form-note {
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  line-height: 1.5;
}
.contact__form-note.is-success { color: var(--teal-on-dark); }

/* ---------------------------------------------------------------
   14. PIED DE PAGE
   --------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: var(--on-dark-muted);
  padding-top: var(--space-2xl);
  position: relative;
  z-index: 2;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line-dark);
}
.brand--footer { color: var(--on-dark); margin-right: 0; }
.site-footer__tag {
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 32ch;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  align-content: start;
}
.site-footer__nav a {
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.site-footer__nav a:hover { color: var(--copper-on-dark); }
.site-footer__contact { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.site-footer__contact p { font-size: var(--fs-small); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs);
  padding-block: var(--space-md) var(--space-lg);
  font-size: var(--fs-small);
}
.site-footer__made { font-style: italic; opacity: .8; }

/* ---------------------------------------------------------------
   15. ANIMATIONS DE RÉVÉLATION
   --------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------
   16. RESPONSIVE
   --------------------------------------------------------------- */
@media (min-width: 620px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
}

@media (min-width: 760px) {
  .case__results li { padding-left: var(--space-md); }
}

@media (min-width: 900px) {
  .steps__flow,
  .step__node { display: block; }
  .step { padding-left: 0; padding-top: 26px; }
  .case { grid-template-columns: 1.05fr .95fr; }
  .contact { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}

/* Affiche nav desktop / masque burger au-delà du mobile */
@media (max-width: 880px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 881px) {
  .mobile-nav { display: none !important; }
}

/* ---------------------------------------------------------------
   17. PRÉFÉRENCE MOUVEMENT RÉDUIT
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  #flowPath { stroke-dashoffset: 0; }
}
