/* ============================================================
   CFI Landing Pages — Production CSS
   Design: CFI grammar (full-width bands) + impeccable + emil
   ============================================================ */

@font-face {
  font-family: 'SVHFlib';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('SVHFlib-Regular.otf') format('opentype');
}
@font-face {
  font-family: 'SVHFlib';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('SVHFlib-Bold.otf') format('opentype');
}

/* ===== Tokens ===== */
:root {
  /* Colors — OKLCH */
  --ink: oklch(0.180 0.003 75);
  --ink-soft: oklch(0.35 0.005 75);
  --paper: oklch(0.973 0.011 95);
  --paper-warm: oklch(0.955 0.014 80);
  --white: oklch(1 0 0);

  --yellow: oklch(0.901 0.187 99);
  --orange: oklch(0.692 0.211 47);
  --blue: oklch(0.840 0.080 235);
  --pink: oklch(0.870 0.046 0);
  --lila: oklch(0.840 0.062 305);
  --green: oklch(0.870 0.077 145);
  --purple-footer: oklch(0.78 0.110 305);

  --rule: oklch(0.180 0.003 75);
  --rule-soft: oklch(0.88 0.005 80);

  /* Spacing — 4pt scale, semantic */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Typography */
  --font-display: 'SVHFlib', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'SVHFlib', 'Helvetica Neue', Arial, sans-serif;

  /* Type scale — fluid for hero, fixed for UI */
  --fs-hero: clamp(2.25rem, 4vw + 1rem, 4rem);
  --fs-display: clamp(1.75rem, 2.5vw + 0.75rem, 2.75rem);
  --fs-section: clamp(1.35rem, 1.5vw + 0.75rem, 2.25rem);
  --fs-sub: 1.0625rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Easing — emil */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-snap: cubic-bezier(0.32, 0.72, 0, 1);

  /* Durations */
  --dur-instant: 80ms;
  --dur-fast: 160ms;
  --dur-base: 220ms;
  --dur-slow: 400ms;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overscroll-behavior-y: none;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
blockquote, figure { margin: 0; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ===== Top brand bar ===== */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--ink);
  color: var(--white);
  padding: 0 var(--gutter);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-bar__title {
  overflow: hidden;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  min-width: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  flex: 1 1 auto;
}
.brand-bar__title-prefix {
  opacity: 0.7;
  white-space: nowrap;
  font-size: 0.6875rem;
}
.brand-bar__title-main {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* On mobile, stack prefix above main label, brand-bar height auto */
@media (max-width: 540px) {
  .brand-bar { height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
  .brand-bar__title { flex-direction: column; gap: 2px; }
  .brand-bar__title-prefix { font-size: 0.625rem; letter-spacing: 0.06em; }
  .brand-bar__title-main { font-size: 0.8125rem; letter-spacing: 0.02em; }
}
.brand-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.brand-bar__cta:active { transform: scale(0.97); }

.form__error { font-size: 0.8125rem; color: oklch(0.55 0.2 28); margin-top: 8px; }

/* ===== Hero — split with form right on desktop ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
}

.hero__panel {
  --hero-img: url('img/hero-dcdg.webp');
  --hero-img-sm: url('img/hero-dcdg-800.webp');
  position: relative;
  min-height: 480px;
  background-color: oklch(0.18 0.003 75);
  background-image:
    linear-gradient(180deg, oklch(0.10 0.005 75 / 0.20) 0%, oklch(0.10 0.005 75 / 0.85) 100%),
    image-set(var(--hero-img) 1x);
  background-size: cover, cover;
  background-position: center, center 25%;
  background-repeat: no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2xl) var(--gutter);
  overflow: hidden;
}
.hero__panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, oklch(0 0 0 / 0) 0%, oklch(0 0 0 / 0.55) 80%);
  pointer-events: none;
}
@media (max-width: 540px) {
  .hero__panel {
    background-image:
      linear-gradient(180deg, oklch(0.10 0.005 75 / 0.20) 0%, oklch(0.10 0.005 75 / 0.85) 100%),
      var(--hero-img-sm);
  }
}
.hero__panel > * { position: relative; z-index: 1; }

.badge {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.hero__lede {
  font-size: var(--fs-sub);
  line-height: 1.45;
  max-width: 48ch;
  margin-bottom: var(--space-md);
  text-wrap: pretty;
}
.hero__desc {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: var(--space-sm);
  color: oklch(1 0 0 / 0.85);
  text-wrap: pretty;
}
.hero__desc:last-of-type { margin-bottom: var(--space-lg); }
.checks {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
  padding: 0; margin: 0 0 var(--space-lg) 0;
}
.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: var(--space-sm);
}
.check__mark {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
  margin-top: 2px;
}
.check__text { font-size: 0.9375rem; line-height: 1.4; text-wrap: pretty; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: oklch(from var(--orange) calc(l - 0.05) c h); }
.btn--secondary { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border: 1px solid oklch(1 0 0 / 0.6); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--full { width: 100%; }

/* ===== Form panel (inside hero on desktop, below on mobile/tablet) ===== */
.form-panel {
  background: var(--paper-warm);
  padding: var(--space-xl) var(--gutter);
  display: flex;
  align-items: center;
}
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.form__title { font-size: var(--fs-display); margin-bottom: var(--space-xs); letter-spacing: -0.02em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field__input {
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: var(--white);
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  border-radius: 0;
  width: 100%;
}
.field__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px oklch(from var(--orange) l c h / 0.25);
}
.field__select {
  appearance: none;
  cursor: pointer;
}

/* Custom select (replaces native dropdown popup) */
.select-wrap { position: relative; }
.select-wrap > select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.select-trigger {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  text-align: left;
  border-radius: 0;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
  position: relative;
}
.select-trigger:hover:not(:focus):not([aria-expanded="true"]) {
  background: oklch(from var(--white) calc(l - 0.012) c h);
}
.select-trigger:focus-visible,
.select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px oklch(from var(--orange) l c h / 0.22), 0 1px 0 var(--orange);
}
.select-trigger[data-placeholder="true"] { color: oklch(from var(--ink-soft) l c h / 0.7); }
.select-trigger::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-base) var(--ease-out);
}
.select-trigger[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(225deg);
  border-color: var(--orange);
}
.select-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 25;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--ink);
  border-top: 0;
  box-shadow: 0 18px 32px -16px oklch(0.18 0.003 75 / 0.35);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.select-menu[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.select-option {
  padding: 12px 14px;
  font-size: 0.9375rem;
  cursor: pointer;
  color: var(--ink);
  border-top: 1px solid var(--rule-soft);
  transition: background-color var(--dur-instant) linear, color var(--dur-instant) linear;
  user-select: none;
}
.select-option:first-child { border-top: 0; }
.select-option:hover,
.select-option[data-active="true"] {
  background: var(--ink);
  color: var(--white);
}
.select-option[data-selected="true"] {
  background: oklch(from var(--orange) l c h / 0.12);
  color: var(--ink);
  font-weight: 700;
}
.select-option[data-selected="true"]:hover,
.select-option[data-selected="true"][data-active="true"] {
  background: var(--orange);
  color: var(--white);
}
.form__row { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); }
.form__note { font-size: 0.6875rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.form__note a { color: inherit; text-decoration: underline; }

/* ===== Section heads (CFI bandeau pattern) ===== */
.section-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 64px;
  font-weight: 700;
  font-size: var(--fs-section);
  letter-spacing: -0.015em;
}
.section-band h2 { font-size: inherit; }
.section-band--ink { background: var(--ink); color: var(--white); }
.section-band--blue { background: var(--blue); color: var(--ink); }
.section-band--pink { background: var(--pink); color: var(--ink); }
.section-band--lila { background: var(--lila); color: var(--ink); }
.section-band--yellow { background: var(--yellow); color: var(--ink); }

/* ===== Chiffres ===== */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--ink);
}
.stat {
  background: var(--paper);
  padding: var(--space-2xl) var(--gutter);
  text-align: center;
}
.stat__num {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat__label {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== Description block ===== */
.formation-detail {
  padding: var(--space-2xl) var(--gutter);
}
.formation-detail p {
  font-size: var(--fs-sub);
  max-width: 70ch;
  line-height: 1.55;
  margin-bottom: var(--space-md);
  text-wrap: pretty;
}
.formation-detail p:last-child { margin-bottom: 0; }
.formation-detail .lede { font-weight: 700; }

/* ===== Les + de la Fonderie ===== */
.plus {
  display: grid;
  grid-template-columns: 1fr;
}
.plus__item {
  padding: var(--space-xl) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.plus__item:last-child { border-bottom: 0; }
.plus__kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}
.plus__title {
  font-size: clamp(1.125rem, 1.2vw + 0.5rem, 1.5rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.plus__body { font-size: var(--fs-body); line-height: 1.5; max-width: 50ch; text-wrap: pretty; }

/* ===== Témoignages ===== */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
}
.testimonial {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-md);
  padding: var(--space-xl) var(--gutter);
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.testimonial:last-child { border-bottom: 0; }
.testimonial__photo {
  width: 64px; height: 64px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  display: block;
  background-color: oklch(0.92 0.005 80);
}
.testimonial__quote {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  text-wrap: pretty;
}
.testimonial__name { font-weight: 700; font-size: 0.9375rem; }
.testimonial__role { font-size: 0.8125rem; color: var(--ink-soft); }

/* ===== Projets ===== */
.projets { display: grid; grid-template-columns: 1fr; }
.projet {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: oklch(0.82 0.012 80);
  overflow: hidden;
  display: block;
  text-decoration: none;
  isolation: isolate;
}
.projet__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 700ms var(--ease-out),
              filter var(--dur-base) var(--ease-out);
  will-change: transform;
}
.projet:hover .projet__img,
.projet:focus-visible .projet__img {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(0.92);
}
.projet__overlay {
  position: absolute;
  inset: 0;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(to top,
    oklch(0.10 0.005 75 / 0.92) 0%,
    oklch(0.10 0.005 75 / 0.55) 38%,
    oklch(0.10 0.005 75 / 0) 70%);
  color: var(--white);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}
.projet__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.92;
  color: var(--yellow);
}
.projet__title {
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.projet__sub {
  font-size: 0.8125rem;
  line-height: 1.35;
  opacity: 0.84;
  margin-top: 4px;
  max-width: 32ch;
}
.projet__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: max-height var(--dur-slow) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.projet:hover .projet__cta,
.projet:focus-visible .projet__cta {
  max-height: 24px;
  opacity: 1;
  transform: translateY(0);
}
.projet__cta .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.projet:hover .projet__cta .arrow,
.projet:focus-visible .projet__cta .arrow {
  transform: translateX(4px);
}
@media (hover: none) {
  .projet__cta { max-height: 24px; opacity: 1; transform: none; }
}

/* ===== Video ===== */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  margin: 0;
}
.video iframe,
.video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video__poster {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, oklch(0.28 0.005 75) 0%, oklch(0.13 0.003 75) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.video__play {
  position: absolute;
  top: 50%; left: 50%;
  --mx: 0px;
  --my: 0px;
  --scale: 1;
  transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my))) scale(var(--scale));
  width: 80px; height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow var(--dur-base) var(--ease-out);
  pointer-events: none;
  box-shadow: 0 6px 24px -8px oklch(0 0 0 / 0.5);
}
.video__poster:hover .video__play {
  --scale: 1.08;
  box-shadow: 0 10px 36px -8px oklch(0 0 0 / 0.55);
}
.video__poster:active .video__play { --scale: 0.94; }
.video__poster.is-magnet .video__play {
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
.video__play svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 4px; }
.video__caption {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px oklch(0.18 0.003 75 / 0.8);
}

/* ===== Footer ===== */
.footer {
  background: var(--purple-footer);
  color: var(--paper-warm);
  padding: var(--space-2xl) var(--gutter) 0;
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.footer__brand-block {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-lg);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  align-self: start;
}
.footer__brand-block--logo {
  /* the official logo asset has a pure black background, blend the block with it */
  background: #000;
}
.footer__brand-block--logo img { display: block; width: 84px; height: auto; }
.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--paper-warm);
}
.footer__col p {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.footer__nav a {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-warm);
  transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.footer__nav a:hover { opacity: 0.7; }
.footer__legal {
  margin-top: var(--space-2xl);
  background: var(--ink);
  color: var(--paper-warm);
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--space-md) var(--gutter);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  align-items: center;
}
.footer__legal a {
  color: var(--paper-warm);
  transition: opacity var(--dur-fast) var(--ease-out);
}
.footer__legal a:hover { opacity: 0.65; }
.footer__legal span { font-weight: 700; }

/* ===== Sticky bottom (mobile + tablet) ===== */
.sticky-actions {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  padding: var(--space-xs);
  background: var(--ink);
  box-shadow: 0 -10px 30px -10px oklch(0.18 0.003 75 / 0.35);
  transform: translateY(0);
  transition: transform var(--dur-base) var(--ease-out);
}
.sticky-actions[hidden] { transform: translateY(100%); display: grid; }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .plus { grid-template-columns: repeat(3, 1fr); }
  .plus__item { border-bottom: 0; border-right: 1px solid var(--rule); }
  .plus__item:last-child { border-right: 0; }
  .projets { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .testimonial {
    grid-template-columns: 80px 1fr;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .testimonial:last-child { border-right: 0; }
  .footer__grid {
    grid-template-columns: 200px 1fr 1fr 1fr;
    grid-template-areas:
      "brand address address address"
      "brand nav1    nav2    nav3";
    gap: var(--space-lg) var(--space-2xl);
    row-gap: var(--space-xl);
  }
  .footer__brand-block { grid-area: brand; }
  .footer__address     { grid-area: address; }
  .footer__nav:nth-of-type(1) { grid-area: nav1; }
  .footer__nav:nth-of-type(2) { grid-area: nav2; }
  .footer__nav:nth-of-type(3) { grid-area: nav3; }
  .footer__address { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); }
  .footer__address p { white-space: normal; }
  body { padding-bottom: 76px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky-actions { display: none !important; }
  /* HERO: split 50/50 with form panel right */
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: min(800px, calc(100vh - 56px));
  }
  .hero__panel {
    min-height: 600px;
    padding: var(--space-3xl) var(--space-2xl);
  }
  .form-panel {
    padding: var(--space-2xl);
  }
  .brand-bar__title { font-size: 0.875rem; }
}

@media (min-width: 1280px) {
  .projets { grid-template-columns: repeat(3, 1fr); }
  .hero__panel { padding: var(--space-4xl) var(--space-3xl); }
}

@media (min-width: 1440px) {
  :root { --gutter: 56px; }
}

/* ===== Stagger reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal[data-visible] {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Motion layer ===== */

/* Hero entrance choreography — page load */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes formSlideIn {
  from { opacity: 0; transform: translate3d(20px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero__panel > .badge,
.hero__panel > .hero__title,
.hero__panel > .hero__lede,
.hero__panel > .checks > .check,
.hero__panel > .hero__ctas {
  opacity: 0;
  animation: heroFadeUp 620ms var(--ease-out) forwards;
}
.hero__panel > .badge       { animation-delay:  60ms; }
.hero__panel > .hero__title { animation-delay: 160ms; }
.hero__panel > .hero__lede  { animation-delay: 300ms; }
.hero__panel > .checks > .check:nth-child(1) { animation-delay: 400ms; }
.hero__panel > .checks > .check:nth-child(2) { animation-delay: 460ms; }
.hero__panel > .checks > .check:nth-child(3) { animation-delay: 520ms; }
.hero__panel > .checks > .check:nth-child(4) { animation-delay: 580ms; }
.hero__panel > .hero__ctas  { animation-delay: 660ms; }
.checks > .check {
  opacity: 0;
  animation: heroFadeUp 540ms var(--ease-out) forwards;
}
.form-panel {
  opacity: 0;
  animation: formSlideIn 720ms var(--ease-out) 220ms forwards;
}

/* Stagger reveal — softer ease, sub-pixel transform */
.reveal { transition-duration: var(--dur-slow); transition-timing-function: var(--ease-out); }

/* Section band — subtle ink sweep under the title on first reveal */
.section-band h2 {
  position: relative;
  display: inline-block;
  transform: translateZ(0);
}
.section-band[data-band-visible] h2 {
  animation: bandTitleSlide 520ms var(--ease-out) both;
}
@keyframes bandTitleSlide {
  from { opacity: 0; transform: translate3d(-12px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Brand bar — elevation on scroll */
.brand-bar {
  transition: box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}
.brand-bar.is-elevated {
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.08), 0 6px 18px oklch(0 0 0 / 0.18);
}
.brand-bar__cta { transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.brand-bar__cta:hover { transform: translateY(-1px); background: oklch(from var(--orange) calc(l + 0.04) c h); }

/* Buttons — hover lift + arrow nudge via attribute */
.btn { will-change: transform; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* CTA arrows in text — animated via JS wrapping */
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
  will-change: transform;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Form fields — focus refinement */
.field { position: relative; }
.field__input { transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.field__input:hover:not(:focus) { background: oklch(from var(--white) calc(l - 0.012) c h); }
.field__input:focus { box-shadow: 0 0 0 3px oklch(from var(--orange) l c h / 0.22), 0 1px 0 var(--orange); }
.field__label { transition: color var(--dur-fast) var(--ease-out); }
.field__input:focus ~ .field__label,
.field:focus-within .field__label { color: var(--orange); }

/* Stats counters — emerge */
.stat__num {
  font-variant-numeric: tabular-nums;
  transition: transform var(--dur-base) var(--ease-out);
}
.stat[data-visible] .stat__num {
  animation: countPulse 480ms var(--ease-out) 80ms;
}
@keyframes countPulse {
  0%   { transform: translate3d(0, 6px, 0) scale(0.985); opacity: 0.6; }
  60%  { transform: translate3d(0, 0, 0) scale(1.012); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

/* Testimonial photo — scale-in on reveal */
.testimonial__photo {
  transform: scale(0.92);
  opacity: 0;
  transition: transform 520ms var(--ease-out), opacity 360ms var(--ease-out);
}
.testimonial[data-visible] .testimonial__photo {
  transform: scale(1);
  opacity: 1;
}

/* Plus item — left bar sweep on reveal */
.plus__item { position: relative; }
.plus__item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 520ms var(--ease-out);
}
.plus__item[data-visible]::before { transform: scaleY(1); }
.plus__item:nth-child(2)[data-visible]::before { transition-delay: 80ms; }
.plus__item:nth-child(3)[data-visible]::before { transition-delay: 160ms; }

/* Video poster — soft tint on hover (play button handled earlier with magnet support) */
.video__poster::after {
  content: '';
  position: absolute; inset: 0;
  background: oklch(0 0 0 / 0);
  transition: background-color var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.video__poster:hover::after { background: oklch(0 0 0 / 0.08); }

/* Sticky actions — slide up entrance */
.sticky-actions {
  transform: translateY(120%);
  transition: transform var(--dur-slow) var(--ease-snap);
}
.sticky-actions:not([hidden]) { transform: translateY(0); }

/* Reduced motion override — everything calm */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__panel > .badge,
  .hero__panel > .hero__title,
  .hero__panel > .hero__lede,
  .hero__panel > .checks > .check,
  .hero__panel > .hero__ctas,
  .form-panel,
  .checks > .check { opacity: 1; animation: none; }
  .testimonial__photo { opacity: 1; transform: none; }
  .plus__item::before { transform: scaleY(1); }
  .sticky-actions { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
